@guihz/trading-vue-editor-tes 0.0.210 → 0.0.212

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,284 +0,0 @@
1
- var Zg=Object.defineProperty;var Qg=(po,pi,Or)=>pi in po?Zg(po,pi,{enumerable:!0,configurable:!0,writable:!0,value:Or}):po[pi]=Or;var D=(po,pi,Or)=>(Qg(po,typeof pi!="symbol"?pi+"":pi,Or),Or);(function(){"use strict";var po={92:()=>{}},pi={};function Or(t){var e=pi[t];if(e!==void 0)return e.exports;var n=pi[t]={exports:{}};return po[t](n,n.exports,Or),n.exports}Or.d=(t,e)=>{for(var n in e)Or.o(e,n)&&!Or.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Or.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Dt={};(()=>{function t(f){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(f)}function e(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(t(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),t(p)==="symbol"?p:String(p)),s)}var p}Or.d(Dt,{dx:()=>mn,q2:()=>hh,FO:()=>$m,xf:()=>tu,Gy:()=>Gm,s4:()=>Ia,c7:()=>Wm,_7:()=>Fm,gp:()=>Mm,cK:()=>Ra,zs:()=>Vh,AV:()=>tu,Xp:()=>ve,VS:()=>ie,ul:()=>Bo,hW:()=>sr,x1:()=>Vs,z5:()=>Bc,oN:()=>Lh,TB:()=>Lm,u1:()=>Vc,_b:()=>np,$F:()=>Nm,_T:()=>sp,db:()=>Im,Zx:()=>Kn,_x:()=>$o,r8:()=>Yi,JI:()=>Fe,TP:()=>sn,WU:()=>n,Nj:()=>B,ZP:()=>Jg});var n=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}var i,m;return i=f,(m=[{key:"getTokenSource",value:function(){return this.source[0]}},{key:"getInputStream",value:function(){return this.source[1]}},{key:"text",get:function(){return this._text},set:function(s){this._text=s}}])&&e(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function r(f,i){if(!Array.isArray(f)||!Array.isArray(i))return!1;if(f===i)return!0;if(f.length!==i.length)return!1;for(var m=0;m<f.length;m++)if(!(f[m]===i[m]||f[m].equals&&f[m].equals(i[m])))return!1;return!0}function a(f){return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},a(f)}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1;var c=Math.round(Math.random()*Math.pow(2,32));function h(f){if(!f)return 0;var i,m,s=a(f),p=s==="string"?f:!(s!=="object"||!f.toString)&&f.toString();if(!p)return 0;for(var l=3&p.length,_=p.length-l,o=c,u=3432918353,E=461845907,x=0;x<_;)m=255&p.charCodeAt(x)|(255&p.charCodeAt(++x))<<8|(255&p.charCodeAt(++x))<<16|(255&p.charCodeAt(++x))<<24,++x,o=27492+(65535&(i=5*(65535&(o=(o^=m=(65535&(m=(m=(65535&m)*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*E+(((m>>>16)*E&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(m=0,l){case 3:m^=(255&p.charCodeAt(x+2))<<16;case 2:m^=(255&p.charCodeAt(x+1))<<8;case 1:o^=m=(65535&(m=(m=(65535&(m^=255&p.charCodeAt(x)))*u+(((m>>>16)*u&65535)<<16)&4294967295)<<15|m>>>17))*E+(((m>>>16)*E&65535)<<16)&4294967295}return o^=p.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}function d(f){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},d(f)}function v(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(d(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(d(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),d(p)==="symbol"?p:String(p)),s)}var p}var S=function(){function f(){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.count=0,this.hash=0}var i,m,s;return i=f,m=[{key:"update",value:function(){for(var p=0;p<arguments.length;p++){var l=arguments[p];if(l!=null)if(Array.isArray(l))this.update.apply(this,l);else{var _=0;switch(d(l)){case"undefined":case"function":continue;case"number":case"boolean":_=l;break;case"string":_=h(l);break;default:l.updateHashCode?l.updateHashCode(this):console.log("No updateHashCode for "+l.toString());continue}_=(_*=3432918353)<<15|_>>>17,_*=461845907,this.count=this.count+1;var o=this.hash^_;o=5*(o=o<<13|o>>>19)+3864292196,this.hash=o}}}},{key:"finish",value:function(){var p=this.hash^4*this.count;return p^=p>>>16,p*=2246822507,p^=p>>>13,(p*=3266489909)^p>>>16}}],s=[{key:"hashStuff",value:function(){var p=new f;return p.update.apply(p,arguments),p.finish()}}],m&&v(i.prototype,m),s&&v(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function C(f){return f?typeof f=="string"?h(f):f.hashCode():-1}function T(f,i){return f?f.equals(i):f===i}function k(f){return f===null?"null":f}function B(f){return Array.isArray(f)?"["+f.map(k).join(", ")+"]":"null"}function L(f){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},L(f)}function b(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(L(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(L(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),L(p)==="symbol"?p:String(p)),s)}var p}var y="h-",g=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||C,this.equalsFunction=p||T}var i,m;return i=f,(m=[{key:"add",value:function(s){var p=y+this.hashFunction(s);if(p in this.data){for(var l=this.data[p],_=0;_<l.length;_++)if(this.equalsFunction(s,l[_]))return l[_];return l.push(s),s}return this.data[p]=[s],s}},{key:"has",value:function(s){return this.get(s)!=null}},{key:"get",value:function(s){var p=y+this.hashFunction(s);if(p in this.data){for(var l=this.data[p],_=0;_<l.length;_++)if(this.equalsFunction(s,l[_]))return l[_]}return null}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(p){return p.startsWith(y)}).flatMap(function(p){return s.data[p]},this)}},{key:"toString",value:function(){return B(this.values())}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(p){return p.startsWith(y)}).map(function(p){return s.data[p].length},this).reduce(function(p,l){return p+l},0)}}])&&b(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function O(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&R(f,i)}function R(f,i){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},R(f,i)}function w(f){var i=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 m,s=U(f);if(i){var p=U(this).constructor;m=Reflect.construct(s,arguments,p)}else m=s.apply(this,arguments);return function(l,_){if(_&&(X(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function U(f){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},U(f)}function X(f){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},X(f)}function ee(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function z(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(X(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(X(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),X(p)==="symbol"?p:String(p)),s)}var p}function Y(f,i,m){return i&&z(f.prototype,i),m&&z(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var $=function(){function f(){ee(this,f)}return Y(f,[{key:"hashCode",value:function(){var i=new S;return this.updateHashCode(i),i.finish()}},{key:"evaluate",value:function(i,m){}},{key:"evalPrecedence",value:function(i,m){return this}}],[{key:"andContext",value:function(i,m){if(i===null||i===f.NONE)return m;if(m===null||m===f.NONE)return i;var s=new ne(i,m);return s.opnds.length===1?s.opnds[0]:s}},{key:"orContext",value:function(i,m){if(i===null)return m;if(m===null)return i;if(i===f.NONE||m===f.NONE)return f.NONE;var s=new Q(i,m);return s.opnds.length===1?s.opnds[0]:s}}]),f}(),ne=function(f){O(m,f);var i=w(m);function m(s,p){var l;ee(this,m),l=i.call(this);var _=new g;s instanceof m?s.opnds.map(function(E){_.add(E)}):_.add(s),p instanceof m?p.opnds.map(function(E){_.add(E)}):_.add(p);var o=_e(_);if(o.length>0){var u=null;o.map(function(E){(u===null||E.precedence<u.precedence)&&(u=E)}),_.add(u)}return l.opnds=Array.from(_.values()),l}return Y(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"AND")}},{key:"evaluate",value:function(s,p){for(var l=0;l<this.opnds.length;l++)if(!this.opnds[l].evaluate(s,p))return!1;return!0}},{key:"evalPrecedence",value:function(s,p){for(var l=!1,_=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],E=u.evalPrecedence(s,p);if(l|=E!==u,E===null)return null;E!==$.NONE&&_.push(E)}if(!l)return this;if(_.length===0)return $.NONE;var x=null;return _.map(function(A){x=x===null?A:$.andContext(x,A)}),x}},{key:"toString",value:function(){var s=this.opnds.map(function(p){return p.toString()});return(s.length>3?s.slice(3):s).join("&&")}}]),m}($),Q=function(f){O(m,f);var i=w(m);function m(s,p){var l;ee(this,m),l=i.call(this);var _=new g;s instanceof m?s.opnds.map(function(x){_.add(x)}):_.add(s),p instanceof m?p.opnds.map(function(x){_.add(x)}):_.add(p);var o=_e(_);if(o.length>0){var u=o.sort(function(x,A){return x.compareTo(A)}),E=u[u.length-1];_.add(E)}return l.opnds=Array.from(_.values()),l}return Y(m,[{key:"equals",value:function(s){return this===s||s instanceof m&&r(this.opnds,s.opnds)}},{key:"updateHashCode",value:function(s){s.update(this.opnds,"OR")}},{key:"evaluate",value:function(s,p){for(var l=0;l<this.opnds.length;l++)if(this.opnds[l].evaluate(s,p))return!0;return!1}},{key:"evalPrecedence",value:function(s,p){for(var l=!1,_=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],E=u.evalPrecedence(s,p);if(l|=E!==u,E===$.NONE)return $.NONE;E!==null&&_.push(E)}return l?(_.length===0||_.map(function(x){return x}),null):this}},{key:"toString",value:function(){var s=this.opnds.map(function(p){return p.toString()});return(s.length>3?s.slice(3):s).join("||")}}]),m}($);function _e(f){var i=[];return f.values().map(function(m){m instanceof $.PrecedencePredicate&&i.push(m)}),i}function ge(f){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ge(f)}function re(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ge(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ge(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ge(p)==="symbol"?p:String(p)),s)}var p}function de(f,i){if(f===null){var m={state:null,alt:null,context:null,semanticContext:null};return i&&(m.reachesIntoOuterContext=0),m}var s={};return s.state=f.state||null,s.alt=f.alt===void 0?null:f.alt,s.context=f.context||null,s.semanticContext=f.semanticContext||null,i&&(s.reachesIntoOuterContext=f.reachesIntoOuterContext||0,s.precedenceFilterSuppressed=f.precedenceFilterSuppressed||!1),s}var fe=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.checkContext(s,p),s=de(s),p=de(p,!0),this.state=s.state!==null?s.state:p.state,this.alt=s.alt!==null?s.alt:p.alt,this.context=s.context!==null?s.context:p.context,this.semanticContext=s.semanticContext!==null?s.semanticContext:p.semanticContext!==null?p.semanticContext:$.NONE,this.reachesIntoOuterContext=p.reachesIntoOuterContext,this.precedenceFilterSuppressed=p.precedenceFilterSuppressed}var i,m;return i=f,(m=[{key:"checkContext",value:function(s,p){s.context!==null&&s.context!==void 0||p!==null&&p.context!==null&&p.context!==void 0||(this.context=null)}},{key:"hashCode",value:function(){var s=new S;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&(this.context===null?s.context===null:this.context.equals(s.context))&&this.semanticContext.equals(s.semanticContext)&&this.precedenceFilterSuppressed===s.precedenceFilterSuppressed}},{key:"hashCodeForConfigSet",value:function(){var s=new S;return s.update(this.state.stateNumber,this.alt,this.semanticContext),s.finish()}},{key:"equalsForConfigSet",value:function(s){return this===s||s instanceof f&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&this.semanticContext.equals(s.semanticContext)}},{key:"toString",value:function(){return"("+this.state+","+this.alt+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==$.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}])&&re(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Oe(f){return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Oe(f)}function Ie(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Oe(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Oe(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Oe(p)==="symbol"?p:String(p)),s)}var p}var ve=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.start=s,this.stop=p}var i,m;return i=f,(m=[{key:"clone",value:function(){return new f(this.start,this.stop)}},{key:"contains",value:function(s){return s>=this.start&&s<this.stop}},{key:"toString",value:function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}},{key:"length",get:function(){return this.stop-this.start}}])&&Ie(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ue(f){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ue(f)}function J(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ue(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ue(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ue(p)==="symbol"?p:String(p)),s)}var p}ve.INVALID_INTERVAL=new ve(-1,-2);var ie=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.intervals=null,this.readOnly=!1}var i,m;return i=f,(m=[{key:"first",value:function(s){return this.intervals===null||this.intervals.length===0?n.INVALID_TYPE:this.intervals[0].start}},{key:"addOne",value:function(s){this.addInterval(new ve(s,s+1))}},{key:"addRange",value:function(s,p){this.addInterval(new ve(s,p+1))}},{key:"addInterval",value:function(s){if(this.intervals===null)this.intervals=[],this.intervals.push(s.clone());else{for(var p=0;p<this.intervals.length;p++){var l=this.intervals[p];if(s.stop<l.start)return void this.intervals.splice(p,0,s);if(s.stop===l.start)return void(this.intervals[p]=new ve(s.start,l.stop));if(s.start<=l.stop)return this.intervals[p]=new ve(Math.min(l.start,s.start),Math.max(l.stop,s.stop)),void this.reduce(p)}this.intervals.push(s.clone())}}},{key:"addSet",value:function(s){var p=this;return s.intervals!==null&&s.intervals.forEach(function(l){return p.addInterval(l)},this),this}},{key:"reduce",value:function(s){if(s<this.intervals.length-1){var p=this.intervals[s],l=this.intervals[s+1];p.stop>=l.stop?(this.intervals.splice(s+1,1),this.reduce(s)):p.stop>=l.start&&(this.intervals[s]=new ve(p.start,l.stop),this.intervals.splice(s+1,1))}}},{key:"complement",value:function(s,p){var l=new f;return l.addInterval(new ve(s,p+1)),this.intervals!==null&&this.intervals.forEach(function(_){return l.removeRange(_)}),l}},{key:"contains",value:function(s){if(this.intervals===null)return!1;for(var p=0;p<this.intervals.length;p++)if(this.intervals[p].contains(s))return!0;return!1}},{key:"removeRange",value:function(s){if(s.start===s.stop-1)this.removeOne(s.start);else if(this.intervals!==null)for(var p=0,l=0;l<this.intervals.length;l++){var _=this.intervals[p];if(s.stop<=_.start)return;if(s.start>_.start&&s.stop<_.stop){this.intervals[p]=new ve(_.start,s.start);var o=new ve(s.stop,_.stop);return void this.intervals.splice(p,0,o)}s.start<=_.start&&s.stop>=_.stop?(this.intervals.splice(p,1),p-=1):s.start<_.stop?this.intervals[p]=new ve(_.start,s.start):s.stop<_.stop&&(this.intervals[p]=new ve(s.stop,_.stop)),p+=1}}},{key:"removeOne",value:function(s){if(this.intervals!==null)for(var p=0;p<this.intervals.length;p++){var l=this.intervals[p];if(s<l.start)return;if(s===l.start&&s===l.stop-1)return void this.intervals.splice(p,1);if(s===l.start)return void(this.intervals[p]=new ve(l.start+1,l.stop));if(s===l.stop-1)return void(this.intervals[p]=new ve(l.start,l.stop-1));if(s<l.stop-1){var _=new ve(l.start,s);return l.start=s+1,void this.intervals.splice(p,0,_)}}}},{key:"toString",value:function(s,p,l){return s=s||null,p=p||null,l=l||!1,this.intervals===null?"{}":s!==null||p!==null?this.toTokenString(s,p):l?this.toCharString():this.toIndexString()}},{key:"toCharString",value:function(){for(var s=[],p=0;p<this.intervals.length;p++){var l=this.intervals[p];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push("'"+String.fromCharCode(l.start)+"'"):s.push("'"+String.fromCharCode(l.start)+"'..'"+String.fromCharCode(l.stop-1)+"'")}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toIndexString",value:function(){for(var s=[],p=0;p<this.intervals.length;p++){var l=this.intervals[p];l.stop===l.start+1?l.start===n.EOF?s.push("<EOF>"):s.push(l.start.toString()):s.push(l.start.toString()+".."+(l.stop-1).toString())}return s.length>1?"{"+s.join(", ")+"}":s[0]}},{key:"toTokenString",value:function(s,p){for(var l=[],_=0;_<this.intervals.length;_++)for(var o=this.intervals[_],u=o.start;u<o.stop;u++)l.push(this.elementName(s,p,u));return l.length>1?"{"+l.join(", ")+"}":l[0]}},{key:"elementName",value:function(s,p,l){return l===n.EOF?"<EOF>":l===n.EPSILON?"<EPSILON>":s[l]||p[l]}},{key:"length",get:function(){return this.intervals.map(function(s){return s.length}).reduce(function(s,p){return s+p})}}])&&J(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ue(f){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ue(f)}function Ae(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ue(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ue(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ue(p)==="symbol"?p:String(p)),s)}var p}var be=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=null,this.stateNumber=f.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}var i,m;return i=f,(m=[{key:"toString",value:function(){return this.stateNumber}},{key:"equals",value:function(s){return s instanceof f&&this.stateNumber===s.stateNumber}},{key:"isNonGreedyExitState",value:function(){return!1}},{key:"addTransition",value:function(s,p){p===void 0&&(p=-1),this.transitions.length===0?this.epsilonOnlyTransitions=s.isEpsilon:this.epsilonOnlyTransitions!==s.isEpsilon&&(this.epsilonOnlyTransitions=!1),p===-1?this.transitions.push(s):this.transitions.splice(p,1,s)}}])&&Ae(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function At(f){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},At(f)}function Vt(f,i){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Vt(f,i)}function Et(f,i){if(i&&(At(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mt(f)}function Mt(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function gt(f){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},gt(f)}be.INVALID_TYPE=0,be.BASIC=1,be.RULE_START=2,be.BLOCK_START=3,be.PLUS_BLOCK_START=4,be.STAR_BLOCK_START=5,be.TOKEN_START=6,be.RULE_STOP=7,be.BLOCK_END=8,be.STAR_LOOP_BACK=9,be.STAR_LOOP_ENTRY=10,be.PLUS_LOOP_BACK=11,be.LOOP_END=12,be.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],be.INVALID_STATE_NUMBER=-1;var Ot=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Vt(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=gt(m);if(s){var u=gt(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Et(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.RULE_STOP,Et(_,Mt(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function Zt(f){return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zt(f)}function se(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Zt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Zt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Zt(p)==="symbol"?p:String(p)),s)}var p}function De(f,i,m){return i&&se(f.prototype,i),m&&se(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var me=De(function f(i){if(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}(this,f),i==null)throw"target cannot be null.";this.target=i,this.isEpsilon=!1,this.label=null});function bt(f){return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},bt(f)}function xt(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(bt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(bt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),bt(p)==="symbol"?p:String(p)),s)}var p}function kt(f,i){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},kt(f,i)}function Un(f){return Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Un(f)}me.EPSILON=1,me.RANGE=2,me.RULE=3,me.PREDICATE=4,me.ATOM=5,me.ACTION=6,me.SET=7,me.NOT_SET=8,me.WILDCARD=9,me.PRECEDENCE=10,me.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],me.serializationTypes={EpsilonTransition:me.EPSILON,RangeTransition:me.RANGE,RuleTransition:me.RULE,PredicateTransition:me.PREDICATE,AtomTransition:me.ATOM,ActionTransition:me.ACTION,SetTransition:me.SET,NotSetTransition:me.NOT_SET,WildcardTransition:me.WILDCARD,PrecedencePredicateTransition:me.PRECEDENCE};var Qt=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&kt(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Un(s);if(p){var E=Un(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(bt(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x){var A;return function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),(A=l.call(this,o)).ruleIndex=u,A.precedence=E,A.followState=x,A.serializationType=me.RULE,A.isEpsilon=!0,A}return i=_,(m=[{key:"matches",value:function(o,u,E){return!1}}])&&xt(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function dn(f){return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},dn(f)}function jt(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(dn(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(dn(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),dn(p)==="symbol"?p:String(p)),s)}var p}function Pt(f,i){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pt(f,i)}function fn(f){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fn(f)}var xi=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pt(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=fn(s);if(p){var E=fn(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(dn(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o)).serializationType=me.SET,u!=null?E.label=u:(E.label=new ie,E.label.addOne(n.INVALID_TYPE)),E}return i=_,(m=[{key:"matches",value:function(o,u,E){return this.label.contains(o)}},{key:"toString",value:function(){return this.label.toString()}}])&&jt(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function j(f){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},j(f)}function Ne(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(j(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(j(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),j(p)==="symbol"?p:String(p)),s)}var p}function Be(){return Be=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,_){for(;!Object.prototype.hasOwnProperty.call(l,_)&&(l=ut(l))!==null;);return l}(f,i);if(s){var p=Object.getOwnPropertyDescriptor(s,i);return p.get?p.get.call(arguments.length<3?f:m):p.value}},Be.apply(this,arguments)}function Me(f,i){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Me(f,i)}function ut(f){return ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ut(f)}var on=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Me(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=ut(s);if(p){var E=ut(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(j(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o,u)).serializationType=me.NOT_SET,E}return i=_,(m=[{key:"matches",value:function(o,u,E){return o>=u&&o<=E&&!Be(ut(_.prototype),"matches",this).call(this,o,u,E)}},{key:"toString",value:function(){return"~"+Be(ut(_.prototype),"toString",this).call(this)}}])&&Ne(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(xi);function ft(f){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ft(f)}function vn(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ft(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ft(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ft(p)==="symbol"?p:String(p)),s)}var p}function Cn(f,i){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Cn(f,i)}function fi(f){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fi(f)}var Mn=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Cn(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=fi(s);if(p){var E=fi(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ft(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this,o)).serializationType=me.WILDCARD,u}return i=_,(m=[{key:"matches",value:function(o,u,E){return o>=u&&o<=E}},{key:"toString",value:function(){return"."}}])&&vn(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function hn(f){return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},hn(f)}function lo(f,i){return lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},lo(f,i)}function Ci(f){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ci(f)}var fo=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&lo(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Ci(m);if(s){var u=Ci(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(hn(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(_){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),p.call(this,_)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(me);function Ar(f){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ar(f)}function Wr(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ar(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ar(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ar(p)==="symbol"?p:String(p)),s)}var p}function Po(f,i,m){return i&&Wr(f.prototype,i),m&&Wr(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function Xi(f){return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xi(f)}function Fr(f,i){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Fr(f,i)}function hi(f){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hi(f)}function Fo(f){return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fo(f)}function _t(f,i){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},_t(f,i)}function or(f){return or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},or(f)}var N=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&_t(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=or(m);if(s){var u=or(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Fo(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){return function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),p.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Fr(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=hi(m);if(s){var u=hi(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Xi(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){return function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),p.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(Po(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)})));function G(f){return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},G(f)}function W(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(G(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(G(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),G(p)==="symbol"?p:String(p)),s)}var p}function Z(f,i){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Z(f,i)}function oe(f){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},oe(f)}var Fe=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Z(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=oe(s);if(p){var E=oe(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(G(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.apply(this,arguments)}return i=_,(m=[{key:"ruleContext",get:function(){throw new Error("missing interface implementation")}}])&&W(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(N);function Pe(f){return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Pe(f)}function rt(f,i){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},rt(f,i)}function Ht(f){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ht(f)}var sn=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&rt(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Ht(m);if(s){var u=Ht(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Pe(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){return function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),p.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(N);function En(f){return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},En(f)}function Lr(f,i){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Lr(f,i)}function Bt(f){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Bt(f)}var Xr=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Lr(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Bt(m);if(s){var u=Bt(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(En(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){return function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),p.apply(this,arguments)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(sn),xr={toStringTree:function(f,i,m){i=i||null,(m=m||null)!==null&&(i=m.ruleNames);var s=xr.getNodeText(f,i);s=function(o,u){return o=o.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(s);var p=f.getChildCount();if(p===0)return s;var l="("+s+" ";p>0&&(s=xr.toStringTree(f.getChild(0),i),l=l.concat(s));for(var _=1;_<p;_++)s=xr.toStringTree(f.getChild(_),i),l=l.concat(" "+s);return l.concat(")")},getNodeText:function(f,i,m){if(i=i||null,(m=m||null)!==null&&(i=m.ruleNames),i!==null){if(f instanceof Fe){var s=f.ruleContext.getAltNumber();return s!=0?i[f.ruleIndex]+":"+s:i[f.ruleIndex]}if(f instanceof Xr)return f.toString();if(f instanceof sn&&f.symbol!==null)return f.symbol.text}var p=f.getPayload();return p instanceof n?p.text:f.getPayload().toString()},getChildren:function(f){for(var i=[],m=0;m<f.getChildCount();m++)i.push(f.getChild(m));return i},getAncestors:function(f){var i=[];for(f=f.getParent();f!==null;)i=[f].concat(i),f=f.getParent();return i},findAllTokenNodes:function(f,i){return xr.findAllNodes(f,i,!0)},findAllRuleNodes:function(f,i){return xr.findAllNodes(f,i,!1)},findAllNodes:function(f,i,m){var s=[];return xr._findAllNodes(f,i,m,s),s},_findAllNodes:function(f,i,m,s){m&&f instanceof sn?f.symbol.type===i&&s.push(f):!m&&f instanceof Fe&&f.ruleIndex===i&&s.push(f);for(var p=0;p<f.getChildCount();p++)xr._findAllNodes(f.getChild(p),i,m,s)},descendants:function(f){for(var i=[f],m=0;m<f.getChildCount();m++)i=i.concat(xr.descendants(f.getChild(m)));return i}};const Xu=xr;function qi(f){return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qi(f)}function mf(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(qi(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qi(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qi(p)==="symbol"?p:String(p)),s)}var p}function Lo(f,i){return Lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Lo(f,i)}function as(f){return as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},as(f)}var Yi=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Lo(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=as(s);if(p){var E=as(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(qi(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this)).parentCtx=o||null,E.invokingState=u||-1,E}return i=_,(m=[{key:"depth",value:function(){for(var o=0,u=this;u!==null;)u=u.parentCtx,o+=1;return o}},{key:"isEmpty",value:function(){return this.invokingState===-1}},{key:"getSourceInterval",value:function(){return ve.INVALID_INTERVAL}},{key:"ruleContext",get:function(){return this}},{key:"getPayload",value:function(){return this}},{key:"getText",value:function(){return this.getChildCount()===0?"":this.children.map(function(o){return o.getText()}).join("")}},{key:"getAltNumber",value:function(){return 0}},{key:"setAltNumber",value:function(o){}},{key:"getChild",value:function(o){return null}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitChildren(this)}},{key:"toStringTree",value:function(o,u){return Xu.toStringTree(this,o,u)}},{key:"toString",value:function(o,u){o=o||null,u=u||null;for(var E=this,x="[";E!==null&&E!==u;){if(o===null)E.isEmpty()||(x+=E.invokingState);else{var A=E.ruleIndex;x+=A>=0&&A<o.length?o[A]:""+A}E.parentCtx===null||o===null&&E.parentCtx.isEmpty()||(x+=" "),E=E.parentCtx}return x+"]"}}])&&mf(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Fe);function Mo(f){return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Mo(f)}function us(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Mo(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Mo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Mo(p)==="symbol"?p:String(p)),s)}var p}var it=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.cachedHashCode=s}var i,m;return i=f,(m=[{key:"isEmpty",value:function(){return this===f.EMPTY}},{key:"hasEmptyPath",value:function(){return this.getReturnState(this.length-1)===f.EMPTY_RETURN_STATE}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(s){s.update(this.cachedHashCode)}}])&&us(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function H(f){return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},H(f)}function K(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(H(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(H(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),H(p)==="symbol"?p:String(p)),s)}var p}function q(f,i){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},q(f,i)}function ce(f,i){if(i&&(H(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(f)}function Se(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ee(f){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ee(f)}it.EMPTY=null,it.EMPTY_RETURN_STATE=2147483647,it.globalNodeCount=1,it.id=it.globalNodeCount,it.trace_atn_sim=!1;var Te=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&q(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Ee(s);if(p){var E=Ee(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return ce(this,o)});function _(o,u){var E;(function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")})(this,_);var x=new S;x.update(o,u);var A=x.finish();return(E=l.call(this,A)).parents=o,E.returnStates=u,ce(E,Se(E))}return i=_,(m=[{key:"isEmpty",value:function(){return this.returnStates[0]===it.EMPTY_RETURN_STATE}},{key:"getParent",value:function(o){return this.parents[o]}},{key:"getReturnState",value:function(o){return this.returnStates[o]}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.hashCode()===o.hashCode()&&r(this.returnStates,o.returnStates)&&r(this.parents,o.parents)}},{key:"toString",value:function(){if(this.isEmpty())return"[]";for(var o="[",u=0;u<this.returnStates.length;u++)u>0&&(o+=", "),this.returnStates[u]!==it.EMPTY_RETURN_STATE?(o+=this.returnStates[u],this.parents[u]!==null?o=o+" "+this.parents[u]:o+="null"):o+="$";return o+"]"}},{key:"length",get:function(){return this.returnStates.length}}])&&K(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(it);function Ke(f){return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ke(f)}function Le(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ke(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ke(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ke(p)==="symbol"?p:String(p)),s)}var p}function ot(f,i){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ot(f,i)}function Ut(f){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ut(f)}var ct=function(f){(function(u,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(E&&E.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),E&&ot(u,E)})(o,f);var i,m,s,p,l,_=(p=o,l=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 u,E=Ut(p);if(l){var x=Ut(this).constructor;u=Reflect.construct(E,arguments,x)}else u=E.apply(this,arguments);return function(A,I){if(I&&(Ke(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(te){if(te===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return te}(A)}(this,u)});function o(u,E){var x;(function(te,we){if(!(te instanceof we))throw new TypeError("Cannot call a class as a function")})(this,o);var A,I=new S;return u!==null?I.update(u,E):I.update(1),A=I.finish(),(x=_.call(this,A)).parentCtx=u,x.returnState=E,x}return i=o,s=[{key:"create",value:function(u,E){return E===it.EMPTY_RETURN_STATE&&u===null?it.EMPTY:new o(u,E)}}],(m=[{key:"getParent",value:function(u){return this.parentCtx}},{key:"getReturnState",value:function(u){return this.returnState}},{key:"equals",value:function(u){return this===u||u instanceof o&&this.hashCode()===u.hashCode()&&this.returnState===u.returnState&&(this.parentCtx==null?u.parentCtx==null:this.parentCtx.equals(u.parentCtx))}},{key:"toString",value:function(){var u=this.parentCtx===null?"":this.parentCtx.toString();return u.length===0?this.returnState===it.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+u}},{key:"length",get:function(){return 1}}])&&Le(i.prototype,m),s&&Le(i,s),Object.defineProperty(i,"prototype",{writable:!1}),o}(it);function Gt(f){return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gt(f)}function On(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Gt(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Gt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Gt(p)==="symbol"?p:String(p)),s)}var p}function Gn(f,i){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Gn(f,i)}function Jn(f){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Jn(f)}var Mr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Gn(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Jn(s);if(p){var E=Jn(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Gt(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,null,it.EMPTY_RETURN_STATE)}return i=_,(m=[{key:"isEmpty",value:function(){return!0}},{key:"getParent",value:function(o){return null}},{key:"getReturnState",value:function(o){return this.returnState}},{key:"equals",value:function(o){return this===o}},{key:"toString",value:function(){return"$"}}])&&On(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(ct);function qr(f){return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qr(f)}function Ta(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(qr(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qr(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qr(p)==="symbol"?p:String(p)),s)}var p}it.EMPTY=new Mr;var Zn="h-",Ji=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={},this.hashFunction=s||C,this.equalsFunction=p||T}var i,m;return i=f,(m=[{key:"set",value:function(s,p){var l=Zn+this.hashFunction(s);if(l in this.data){for(var _=this.data[l],o=0;o<_.length;o++){var u=_[o];if(this.equalsFunction(s,u.key)){var E=u.value;return u.value=p,E}}return _.push({key:s,value:p}),p}return this.data[l]=[{key:s,value:p}],p}},{key:"containsKey",value:function(s){var p=Zn+this.hashFunction(s);if(p in this.data)for(var l=this.data[p],_=0;_<l.length;_++){var o=l[_];if(this.equalsFunction(s,o.key))return!0}return!1}},{key:"get",value:function(s){var p=Zn+this.hashFunction(s);if(p in this.data)for(var l=this.data[p],_=0;_<l.length;_++){var o=l[_];if(this.equalsFunction(s,o.key))return o.value}return null}},{key:"entries",value:function(){var s=this;return Object.keys(this.data).filter(function(p){return p.startsWith(Zn)}).flatMap(function(p){return s.data[p]},this)}},{key:"getKeys",value:function(){return this.entries().map(function(s){return s.key})}},{key:"getValues",value:function(){return this.entries().map(function(s){return s.value})}},{key:"toString",value:function(){return"["+this.entries().map(function(s){return"{"+s.key+":"+s.value+"}"}).join(", ")+"]"}},{key:"length",get:function(){var s=this;return Object.keys(this.data).filter(function(p){return p.startsWith(Zn)}).map(function(p){return s.data[p].length},this).reduce(function(p,l){return p+l},0)}}])&&Ta(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function cs(f,i){if(i==null&&(i=Yi.EMPTY),i.parentCtx===null||i===Yi.EMPTY)return it.EMPTY;var m=cs(f,i.parentCtx),s=f.states[i.invokingState].transitions[0];return ct.create(m,s.followState.stateNumber)}function qu(f,i,m){if(f.isEmpty())return f;var s=m.get(f)||null;if(s!==null)return s;if((s=i.get(f))!==null)return m.set(f,s),s;for(var p=!1,l=[],_=0;_<l.length;_++){var o=qu(f.getParent(_),i,m);if(p||o!==f.getParent(_)){if(!p){l=[];for(var u=0;u<f.length;u++)l[u]=f.getParent(u);p=!0}l[_]=o}}if(!p)return i.add(f),m.set(f,f),f;var E;return E=l.length===0?it.EMPTY:l.length===1?ct.create(l[0],f.getReturnState(0)):new Te(l,f.returnStates),i.add(E),m.set(E,E),m.set(f,E),E}function ls(f,i,m,s){if(f===i)return f;if(f instanceof ct&&i instanceof ct)return function(p,l,_,o){if(o!==null){var u=o.get(p,l);if(u!==null||(u=o.get(l,p))!==null)return u}var E=function(ze,_n,pn){if(pn){if(ze===it.EMPTY||_n===it.EMPTY)return it.EMPTY}else{if(ze===it.EMPTY&&_n===it.EMPTY)return it.EMPTY;if(ze===it.EMPTY){var zn=[_n.returnState,it.EMPTY_RETURN_STATE],$r=[_n.parentCtx,null];return new Te($r,zn)}if(_n===it.EMPTY){var wi=[ze.returnState,it.EMPTY_RETURN_STATE],Ri=[ze.parentCtx,null];return new Te(Ri,wi)}}return null}(p,l,_);if(E!==null)return o!==null&&o.set(p,l,E),E;if(p.returnState===l.returnState){var x=ls(p.parentCtx,l.parentCtx,_,o);if(x===p.parentCtx)return p;if(x===l.parentCtx)return l;var A=ct.create(x,p.returnState);return o!==null&&o.set(p,l,A),A}var I=null;if((p===l||p.parentCtx!==null&&p.parentCtx===l.parentCtx)&&(I=p.parentCtx),I!==null){var te=[p.returnState,l.returnState];p.returnState>l.returnState&&(te[0]=l.returnState,te[1]=p.returnState);var we=new Te([I,I],te);return o!==null&&o.set(p,l,we),we}var ke=[p.returnState,l.returnState],He=[p.parentCtx,l.parentCtx];p.returnState>l.returnState&&(ke[0]=l.returnState,ke[1]=p.returnState,He=[l.parentCtx,p.parentCtx]);var st=new Te(He,ke);return o!==null&&o.set(p,l,st),st}(f,i,m,s);if(m){if(f instanceof Mr)return f;if(i instanceof Mr)return i}return f instanceof ct&&(f=new Te([f.getParent()],[f.returnState])),i instanceof ct&&(i=new Te([i.getParent()],[i.returnState])),function(p,l,_,o){if(o!==null){var u=o.get(p,l);if(u!==null||(u=o.get(l,p))!==null)return it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+l+" -> previous"),u}for(var E=0,x=0,A=0,I=new Array(p.returnStates.length+l.returnStates.length).fill(0),te=new Array(p.returnStates.length+l.returnStates.length).fill(null);E<p.returnStates.length&&x<l.returnStates.length;){var we=p.parents[E],ke=l.parents[x];if(p.returnStates[E]===l.returnStates[x]){var He=p.returnStates[E];He===it.EMPTY_RETURN_STATE&&we===null&&ke===null||we!==null&&ke!==null&&we===ke?(te[A]=we,I[A]=He):(te[A]=ls(we,ke,_,o),I[A]=He),E+=1,x+=1}else p.returnStates[E]<l.returnStates[x]?(te[A]=we,I[A]=p.returnStates[E],E+=1):(te[A]=ke,I[A]=l.returnStates[x],x+=1);A+=1}if(E<p.returnStates.length)for(var st=E;st<p.returnStates.length;st++)te[A]=p.parents[st],I[A]=p.returnStates[st],A+=1;else for(var ze=x;ze<l.returnStates.length;ze++)te[A]=l.parents[ze],I[A]=l.returnStates[ze],A+=1;if(A<te.length){if(A===1){var _n=ct.create(te[0],I[0]);return o!==null&&o.set(p,l,_n),_n}te=te.slice(0,A),I=I.slice(0,A)}var pn=new Te(te,I);return pn.equals(p)?(o!==null&&o.set(p,l,p),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+l+" -> a"),p):pn.equals(l)?(o!==null&&o.set(p,l,l),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+l+" -> b"),l):(function(zn){for(var $r=new Ji,wi=0;wi<zn.length;wi++){var Ri=zn[wi];$r.containsKey(Ri)||$r.set(Ri,Ri)}for(var Cr=0;Cr<zn.length;Cr++)zn[Cr]=$r.get(zn[Cr])}(te),o!==null&&o.set(p,l,pn),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+l+" -> "+pn),pn)}(f,i,m,s)}function Zi(f){return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zi(f)}function Qi(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Zi(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Zi(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Zi(p)==="symbol"?p:String(p)),s)}var p}var Br=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.data=[]}var i,m;return i=f,(m=[{key:"add",value:function(s){this.data[s]=!0}},{key:"or",value:function(s){var p=this;Object.keys(s.data).map(function(l){return p.add(l)},this)}},{key:"remove",value:function(s){delete this.data[s]}},{key:"has",value:function(s){return this.data[s]===!0}},{key:"values",value:function(){return Object.keys(this.data)}},{key:"minValue",value:function(){return Math.min.apply(null,this.values())}},{key:"hashCode",value:function(){return S.hashStuff(this.values())}},{key:"equals",value:function(s){return s instanceof f&&r(this.data,s.data)}},{key:"toString",value:function(){return"{"+this.values().join(", ")+"}"}},{key:"length",get:function(){return this.values().length}}])&&Qi(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ho(f){return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ho(f)}function Yu(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ho(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ho(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ho(p)==="symbol"?p:String(p)),s)}var p}var Bo=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.atn=s}var i,m;return i=f,(m=[{key:"getDecisionLookahead",value:function(s){if(s===null)return null;for(var p=s.transitions.length,l=[],_=0;_<p;_++){l[_]=new ie;var o=new g;this._LOOK(s.transition(_).target,null,it.EMPTY,l[_],o,new Br,!1,!1),(l[_].length===0||l[_].contains(f.HIT_PRED))&&(l[_]=null)}return l}},{key:"LOOK",value:function(s,p,l){var _=new ie,o=(l=l||null)!==null?cs(s.atn,l):null;return this._LOOK(s,p,o,_,new g,new Br,!0,!0),_}},{key:"_LOOK",value:function(s,p,l,_,o,u,E,x){var A=new fe({state:s,alt:0,context:l},null);if(!o.has(A)){if(o.add(A),s===p){if(l===null)return void _.addOne(n.EPSILON);if(l.isEmpty()&&x)return void _.addOne(n.EOF)}if(s instanceof Ot){if(l===null)return void _.addOne(n.EPSILON);if(l.isEmpty()&&x)return void _.addOne(n.EOF);if(l!==it.EMPTY){var I=u.has(s.ruleIndex);try{u.remove(s.ruleIndex);for(var te=0;te<l.length;te++){var we=this.atn.states[l.getReturnState(te)];this._LOOK(we,p,l.getParent(te),_,o,u,E,x)}}finally{I&&u.add(s.ruleIndex)}return}}for(var ke=0;ke<s.transitions.length;ke++){var He=s.transitions[ke];if(He.constructor===Qt){if(u.has(He.target.ruleIndex))continue;var st=ct.create(l,He.followState.stateNumber);try{u.add(He.target.ruleIndex),this._LOOK(He.target,p,st,_,o,u,E,x)}finally{u.remove(He.target.ruleIndex)}}else if(He instanceof fo)E?this._LOOK(He.target,p,l,_,o,u,E,x):_.addOne(f.HIT_PRED);else if(He.isEpsilon)this._LOOK(He.target,p,l,_,o,u,E,x);else if(He.constructor===Mn)_.addRange(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var ze=He.label;ze!==null&&(He instanceof on&&(ze=ze.complement(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),_.addSet(ze))}}}}}])&&Yu(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Aa(f){return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Aa(f)}function S0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Aa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Aa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Aa(p)==="symbol"?p:String(p)),s)}var p}Bo.HIT_PRED=n.INVALID_TYPE;var mn=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.grammarType=s,this.maxTokenType=p,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}var i,m;return i=f,(m=[{key:"nextTokensInContext",value:function(s,p){return new Bo(this).LOOK(s,null,p)}},{key:"nextTokensNoContext",value:function(s){return s.nextTokenWithinRule!==null||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}},{key:"nextTokens",value:function(s,p){return p===void 0?this.nextTokensNoContext(s):this.nextTokensInContext(s,p)}},{key:"addState",value:function(s){s!==null&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}},{key:"removeState",value:function(s){this.states[s.stateNumber]=null}},{key:"defineDecisionState",value:function(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}},{key:"getDecisionState",value:function(s){return this.decisionToState.length===0?null:this.decisionToState[s]}},{key:"getExpectedTokens",value:function(s,p){if(s<0||s>=this.states.length)throw"Invalid state number.";var l=this.states[s],_=this.nextTokens(l);if(!_.contains(n.EPSILON))return _;var o=new ie;for(o.addSet(_),o.removeOne(n.EPSILON);p!==null&&p.invokingState>=0&&_.contains(n.EPSILON);){var u=this.states[p.invokingState].transitions[0];_=this.nextTokens(u.followState),o.addSet(_),o.removeOne(n.EPSILON),p=p.parentCtx}return _.contains(n.EPSILON)&&o.addOne(n.EOF),o}}])&&S0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();mn.INVALID_ALT_NUMBER=0;function _f(f){return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_f(f)}function yf(f,i){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},yf(f,i)}function Ju(f){return Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ju(f)}var Ld=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&yf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Ju(m);if(s){var u=Ju(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(_f(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.BASIC,_}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function gf(f){return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gf(f)}function bf(f,i){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},bf(f,i)}function Md(f,i){if(i&&(gf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bd(f)}function Bd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Zu(f){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Zu(f)}var fs=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&bf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Zu(m);if(s){var u=Zu(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Md(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).decision=-1,_.nonGreedy=!1,Md(_,Bd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function vf(f){return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},vf(f)}function Ef(f,i){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ef(f,i)}function Ud(f,i){if(i&&(vf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $d(f)}function $d(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Qu(f){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qu(f)}var hs=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Ef(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Qu(m);if(s){var u=Qu(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Ud(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).endState=null,Ud(_,$d(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(fs);function Sf(f){return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Sf(f)}function Tf(f,i){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Tf(f,i)}function Vd(f,i){if(i&&(Sf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jd(f)}function jd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ec(f){return ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ec(f)}var Af=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Tf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=ec(m);if(s){var u=ec(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Vd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.BLOCK_END,_.startState=null,Vd(_,jd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function xf(f){return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xf(f)}function Cf(f,i){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Cf(f,i)}function Hd(f,i){if(i&&(xf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gd(f)}function Gd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function tc(f){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tc(f)}var ps=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Cf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=tc(m);if(s){var u=tc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Hd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.LOOP_END,_.loopBackState=null,Hd(_,Gd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function Of(f){return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Of(f)}function kf(f,i){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},kf(f,i)}function Kd(f,i){if(i&&(Of(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zd(f)}function zd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function nc(f){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nc(f)}var Wd=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&kf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=nc(m);if(s){var u=nc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Kd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.RULE_START,_.stopState=null,_.isPrecedenceRule=!1,Kd(_,zd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function Df(f){return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Df(f)}function wf(f,i){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},wf(f,i)}function Xd(f,i){if(i&&(Df(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qd(f)}function qd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function rc(f){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},rc(f)}var T0=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&wf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=rc(m);if(s){var u=rc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Xd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.TOKEN_START,Xd(_,qd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(fs);function Rf(f){return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Rf(f)}function Nf(f,i){return Nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Nf(f,i)}function Yd(f,i){if(i&&(Rf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jd(f)}function Jd(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ic(f){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ic(f)}var Zd=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Nf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=ic(m);if(s){var u=ic(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Yd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.PLUS_LOOP_BACK,Yd(_,Jd(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(fs);function If(f){return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},If(f)}function Pf(f,i){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pf(f,i)}function Qd(f,i){if(i&&(If(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return em(f)}function em(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function oc(f){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},oc(f)}var Ff=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Pf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=oc(m);if(s){var u=oc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return Qd(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.STAR_LOOP_BACK,Qd(_,em(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(be);function Lf(f){return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Lf(f)}function Mf(f,i){return Mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Mf(f,i)}function tm(f,i){if(i&&(Lf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nm(f)}function nm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function sc(f){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},sc(f)}var Uo=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Mf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=sc(m);if(s){var u=sc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return tm(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.STAR_LOOP_ENTRY,_.loopBackState=null,_.isPrecedenceDecision=null,tm(_,nm(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(fs);function Bf(f){return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Bf(f)}function Uf(f,i){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Uf(f,i)}function rm(f,i){if(i&&(Bf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return im(f)}function im(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function ac(f){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},ac(f)}var $f=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Uf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=ac(m);if(s){var u=ac(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return rm(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.PLUS_BLOCK_START,_.loopBackState=null,rm(_,im(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(hs);function Vf(f){return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Vf(f)}function jf(f,i){return jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},jf(f,i)}function om(f,i){if(i&&(Vf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sm(f)}function sm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function uc(f){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},uc(f)}var Hf=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&jf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=uc(m);if(s){var u=uc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return om(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.STAR_BLOCK_START,om(_,sm(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(hs);function Gf(f){return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gf(f)}function Kf(f,i){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Kf(f,i)}function am(f,i){if(i&&(Gf(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return um(f)}function um(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function cc(f){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},cc(f)}var cm=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Kf(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=cc(m);if(s){var u=cc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return am(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).stateType=be.BLOCK_START,am(_,um(_))}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(hs);function ds(f){return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ds(f)}function A0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ds(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ds(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ds(p)==="symbol"?p:String(p)),s)}var p}function zf(f,i){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zf(f,i)}function lc(f){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},lc(f)}var Wf=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=lc(s);if(p){var E=lc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ds(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o)).label_=u,E.label=E.makeLabel(),E.serializationType=me.ATOM,E}return i=_,(m=[{key:"makeLabel",value:function(){var o=new ie;return o.addOne(this.label_),o}},{key:"matches",value:function(o,u,E){return this.label_===o}},{key:"toString",value:function(){return this.label_}}])&&A0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function ms(f){return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ms(f)}function x0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ms(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ms(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ms(p)==="symbol"?p:String(p)),s)}var p}function Xf(f,i){return Xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Xf(f,i)}function fc(f){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},fc(f)}var C0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Xf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=fc(s);if(p){var E=fc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ms(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E){var x;return function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}(this,_),(x=l.call(this,o)).serializationType=me.RANGE,x.start=u,x.stop=E,x.label=x.makeLabel(),x}return i=_,(m=[{key:"makeLabel",value:function(){var o=new ie;return o.addRange(this.start,this.stop),o}},{key:"matches",value:function(o,u,E){return o>=this.start&&o<=this.stop}},{key:"toString",value:function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}])&&x0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function _s(f){return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_s(f)}function O0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(_s(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(_s(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),_s(p)==="symbol"?p:String(p)),s)}var p}function qf(f,i){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},qf(f,i)}function hc(f){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},hc(f)}var lm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&qf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=hc(s);if(p){var E=hc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(_s(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x){var A;return function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),(A=l.call(this,o)).serializationType=me.ACTION,A.ruleIndex=u,A.actionIndex=E===void 0?-1:E,A.isCtxDependent=x!==void 0&&x,A.isEpsilon=!0,A}return i=_,(m=[{key:"matches",value:function(o,u,E){return!1}},{key:"toString",value:function(){return"action_"+this.ruleIndex+":"+this.actionIndex}}])&&O0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function ys(f){return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ys(f)}function k0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ys(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ys(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ys(p)==="symbol"?p:String(p)),s)}var p}function Yf(f,i){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Yf(f,i)}function pc(f){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},pc(f)}var xa=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Yf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=pc(s);if(p){var E=pc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ys(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o)).serializationType=me.EPSILON,E.isEpsilon=!0,E.outermostPrecedenceReturn=u,E}return i=_,(m=[{key:"matches",value:function(o,u,E){return!1}},{key:"toString",value:function(){return"epsilon"}}])&&k0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(me);function gs(f){return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},gs(f)}function D0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(gs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(gs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),gs(p)==="symbol"?p:String(p)),s)}var p}function Jf(f,i){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Jf(f,i)}function dc(f){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},dc(f)}var fm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Jf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=dc(s);if(p){var E=dc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(gs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E){var x;return function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}(this,_),(x=l.call(this)).ruleIndex=o===void 0?-1:o,x.predIndex=u===void 0?-1:u,x.isCtxDependent=E!==void 0&&E,x}return i=_,(m=[{key:"evaluate",value:function(o,u){var E=this.isCtxDependent?u:null;return o.sempred(E,this.ruleIndex,this.predIndex)}},{key:"updateHashCode",value:function(o){o.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}},{key:"toString",value:function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}])&&D0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}($);function bs(f){return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},bs(f)}function w0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(bs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(bs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),bs(p)==="symbol"?p:String(p)),s)}var p}function Zf(f,i){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Zf(f,i)}function mc(f){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},mc(f)}$.NONE=new fm;var hm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=mc(s);if(p){var E=mc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(bs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x){var A;return function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),(A=l.call(this,o)).serializationType=me.PREDICATE,A.ruleIndex=u,A.predIndex=E,A.isCtxDependent=x,A.isEpsilon=!0,A}return i=_,(m=[{key:"matches",value:function(o,u,E){return!1}},{key:"getPredicate",value:function(){return new fm(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"toString",value:function(){return"pred_"+this.ruleIndex+":"+this.predIndex}}])&&w0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(fo);function vs(f){return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},vs(f)}function R0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(vs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(vs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),vs(p)==="symbol"?p:String(p)),s)}var p}function Qf(f,i){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Qf(f,i)}function _c(f){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},_c(f)}var pm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Qf(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=_c(s);if(p){var E=_c(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(vs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this)).precedence=o===void 0?0:o,u}return i=_,(m=[{key:"evaluate",value:function(o,u){return o.precpred(u,this.precedence)}},{key:"evalPrecedence",value:function(o,u){return o.precpred(u,this.precedence)?$.NONE:null}},{key:"compareTo",value:function(o){return this.precedence-o.precedence}},{key:"updateHashCode",value:function(o){o.update(this.precedence)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.precedence===o.precedence}},{key:"toString",value:function(){return"{"+this.precedence+">=prec}?"}}])&&R0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}($);function Es(f){return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Es(f)}function N0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Es(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Es(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Es(p)==="symbol"?p:String(p)),s)}var p}function eh(f,i){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},eh(f,i)}function yc(f){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},yc(f)}$.PrecedencePredicate=pm;var I0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&eh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=yc(s);if(p){var E=yc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Es(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o)).serializationType=me.PRECEDENCE,E.precedence=u,E.isEpsilon=!0,E}return i=_,(m=[{key:"matches",value:function(o,u,E){return!1}},{key:"getPredicate",value:function(){return new pm(this.precedence)}},{key:"toString",value:function(){return this.precedence+" >= _p"}}])&&N0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(fo);function Ca(f){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ca(f)}function dm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ca(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ca(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ca(p)==="symbol"?p:String(p)),s)}var p}function P0(f,i,m){return i&&dm(f.prototype,i),m&&dm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}var Oa=P0(function f(i){(function(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")})(this,f),i===void 0&&(i=null),this.readOnly=!1,this.verifyATN=i===null||i.verifyATN,this.generateRuleBypassTransitions=i!==null&&i.generateRuleBypassTransitions});Oa.defaultOptions=new Oa,Oa.defaultOptions.readOnly=!0;function ka(f){return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ka(f)}function F0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ka(p)==="symbol"?p:String(p)),s)}var p}var eo=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.actionType=s,this.isPositionDependent=!1}var i,m;return i=f,(m=[{key:"hashCode",value:function(){var s=new S;return this.updateHashCode(s),s.finish()}},{key:"updateHashCode",value:function(s){s.update(this.actionType)}},{key:"equals",value:function(s){return this===s}}])&&F0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ss(f){return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ss(f)}function L0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ss(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ss(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ss(p)==="symbol"?p:String(p)),s)}var p}function th(f,i){return th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},th(f,i)}function gc(f){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},gc(f)}var nh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&th(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=gc(s);if(p){var E=gc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ss(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,6)}return i=_,(m=[{key:"execute",value:function(o){o.skip()}},{key:"toString",value:function(){return"skip"}}])&&L0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Ts(f){return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ts(f)}function M0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ts(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ts(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ts(p)==="symbol"?p:String(p)),s)}var p}function rh(f,i){return rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},rh(f,i)}function bc(f){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},bc(f)}nh.INSTANCE=new nh;var B0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&rh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=bc(s);if(p){var E=bc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ts(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this,0)).channel=o,u}return i=_,(m=[{key:"execute",value:function(o){o._channel=this.channel}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.channel)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.channel===o.channel}},{key:"toString",value:function(){return"channel("+this.channel+")"}}])&&M0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function As(f){return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},As(f)}function U0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(As(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(As(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),As(p)==="symbol"?p:String(p)),s)}var p}function ih(f,i){return ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ih(f,i)}function vc(f){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},vc(f)}var $0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ih(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=vc(s);if(p){var E=vc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(As(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,1)).ruleIndex=o,E.actionIndex=u,E.isPositionDependent=!0,E}return i=_,(m=[{key:"execute",value:function(o){o.action(null,this.ruleIndex,this.actionIndex)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.ruleIndex,this.actionIndex)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.ruleIndex===o.ruleIndex&&this.actionIndex===o.actionIndex}}])&&U0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function xs(f){return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},xs(f)}function V0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(xs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(xs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),xs(p)==="symbol"?p:String(p)),s)}var p}function oh(f,i){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},oh(f,i)}function Ec(f){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ec(f)}var sh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&oh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Ec(s);if(p){var E=Ec(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(xs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,3)}return i=_,(m=[{key:"execute",value:function(o){o.more()}},{key:"toString",value:function(){return"more"}}])&&V0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Cs(f){return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Cs(f)}function j0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Cs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Cs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Cs(p)==="symbol"?p:String(p)),s)}var p}function ah(f,i){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ah(f,i)}function Sc(f){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Sc(f)}sh.INSTANCE=new sh;var H0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ah(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Sc(s);if(p){var E=Sc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Cs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this,7)).type=o,u}return i=_,(m=[{key:"execute",value:function(o){o.type=this.type}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.type)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.type===o.type}},{key:"toString",value:function(){return"type("+this.type+")"}}])&&j0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Os(f){return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Os(f)}function G0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Os(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Os(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Os(p)==="symbol"?p:String(p)),s)}var p}function uh(f,i){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},uh(f,i)}function Tc(f){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Tc(f)}var K0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&uh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Tc(s);if(p){var E=Tc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Os(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this,5)).mode=o,u}return i=_,(m=[{key:"execute",value:function(o){o.pushMode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.mode===o.mode}},{key:"toString",value:function(){return"pushMode("+this.mode+")"}}])&&G0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function ks(f){return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ks(f)}function z0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ks(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ks(p)==="symbol"?p:String(p)),s)}var p}function ch(f,i){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ch(f,i)}function Ac(f){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ac(f)}var lh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ch(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Ac(s);if(p){var E=Ac(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ks(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,4)}return i=_,(m=[{key:"execute",value:function(o){o.popMode()}},{key:"toString",value:function(){return"popMode"}}])&&z0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Ds(f){return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ds(f)}function W0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ds(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ds(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ds(p)==="symbol"?p:String(p)),s)}var p}function fh(f,i){return fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},fh(f,i)}function xc(f){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},xc(f)}lh.INSTANCE=new lh;var X0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&fh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=xc(s);if(p){var E=xc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ds(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this,2)).mode=o,u}return i=_,(m=[{key:"execute",value:function(o){o.mode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.mode===o.mode}},{key:"toString",value:function(){return"mode("+this.mode+")"}}])&&W0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Da(f){return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Da(f)}function q0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Da(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Da(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Da(p)==="symbol"?p:String(p)),s)}var p}function Cc(f,i){var m=[];return m[f-1]=i,m.map(function(s){return i})}var hh=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),s==null&&(s=Oa.defaultOptions),this.deserializationOptions=s,this.stateFactories=null,this.actionFactories=null}var i,m;return i=f,m=[{key:"deserialize",value:function(s){var p=this.reset(s);this.checkVersion(p),p&&this.skipUUID();var l=this.readATN();this.readStates(l,p),this.readRules(l,p),this.readModes(l);var _=[];return this.readSets(l,_,this.readInt.bind(this)),p&&this.readSets(l,_,this.readInt32.bind(this)),this.readEdges(l,_),this.readDecisions(l),this.readLexerActions(l,p),this.markPrecedenceDecisions(l),this.verifyATN(l),this.deserializationOptions.generateRuleBypassTransitions&&l.grammarType===1&&(this.generateRuleBypassTransitions(l),this.verifyATN(l)),l}},{key:"reset",value:function(s){if((s.charCodeAt?s.charCodeAt(0):s[0])===3){var p=s.split("").map(function(l){var _=l.charCodeAt(0);return _>1?_-2:_+65534});return p[0]=s.charCodeAt(0),this.data=p,this.pos=0,!0}return this.data=s,this.pos=0,!1}},{key:"skipUUID",value:function(){for(var s=0;s++<8;)this.readInt()}},{key:"checkVersion",value:function(s){var p=this.readInt();if(!s&&p!==4)throw"Could not deserialize ATN with version "+p+" (expected 4)."}},{key:"readATN",value:function(){var s=this.readInt(),p=this.readInt();return new mn(s,p)}},{key:"readStates",value:function(s,p){for(var l,_,o,u=[],E=[],x=this.readInt(),A=0;A<x;A++){var I=this.readInt();if(I!==be.INVALID_TYPE){var te=this.readInt();p&&te===65535&&(te=-1);var we=this.stateFactory(I,te);if(I===be.LOOP_END){var ke=this.readInt();u.push([we,ke])}else if(we instanceof hs){var He=this.readInt();E.push([we,He])}s.addState(we)}else s.addState(null)}for(l=0;l<u.length;l++)(_=u[l])[0].loopBackState=s.states[_[1]];for(l=0;l<E.length;l++)(_=E[l])[0].endState=s.states[_[1]];var st=this.readInt();for(l=0;l<st;l++)o=this.readInt(),s.states[o].nonGreedy=!0;var ze=this.readInt();for(l=0;l<ze;l++)o=this.readInt(),s.states[o].isPrecedenceRule=!0}},{key:"readRules",value:function(s,p){var l,_=this.readInt();for(s.grammarType===0&&(s.ruleToTokenType=Cc(_,0)),s.ruleToStartState=Cc(_,0),l=0;l<_;l++){var o=this.readInt();if(s.ruleToStartState[l]=s.states[o],s.grammarType===0){var u=this.readInt();p&&u===65535&&(u=n.EOF),s.ruleToTokenType[l]=u}}for(s.ruleToStopState=Cc(_,0),l=0;l<s.states.length;l++){var E=s.states[l];E instanceof Ot&&(s.ruleToStopState[E.ruleIndex]=E,s.ruleToStartState[E.ruleIndex].stopState=E)}}},{key:"readModes",value:function(s){for(var p=this.readInt(),l=0;l<p;l++){var _=this.readInt();s.modeToStartState.push(s.states[_])}}},{key:"readSets",value:function(s,p,l){for(var _=this.readInt(),o=0;o<_;o++){var u=new ie;p.push(u);var E=this.readInt();this.readInt()!==0&&u.addOne(-1);for(var x=0;x<E;x++){var A=l(),I=l();u.addRange(A,I)}}}},{key:"readEdges",value:function(s,p){var l,_,o,u,E,x=this.readInt();for(l=0;l<x;l++){var A=this.readInt(),I=this.readInt(),te=this.readInt(),we=this.readInt(),ke=this.readInt(),He=this.readInt();u=this.edgeFactory(s,te,A,I,we,ke,He,p),s.states[A].addTransition(u)}for(l=0;l<s.states.length;l++)for(o=s.states[l],_=0;_<o.transitions.length;_++){var st=o.transitions[_];if(st instanceof Qt){var ze=-1;s.ruleToStartState[st.target.ruleIndex].isPrecedenceRule&&st.precedence===0&&(ze=st.target.ruleIndex),u=new xa(st.followState,ze),s.ruleToStopState[st.target.ruleIndex].addTransition(u)}}for(l=0;l<s.states.length;l++){if((o=s.states[l])instanceof hs){if(o.endState===null||o.endState.startState!==null)throw"IllegalState";o.endState.startState=o}if(o instanceof Zd)for(_=0;_<o.transitions.length;_++)(E=o.transitions[_].target)instanceof $f&&(E.loopBackState=o);else if(o instanceof Ff)for(_=0;_<o.transitions.length;_++)(E=o.transitions[_].target)instanceof Uo&&(E.loopBackState=o)}}},{key:"readDecisions",value:function(s){for(var p=this.readInt(),l=0;l<p;l++){var _=this.readInt(),o=s.states[_];s.decisionToState.push(o),o.decision=l}}},{key:"readLexerActions",value:function(s,p){if(s.grammarType===0){var l=this.readInt();s.lexerActions=Cc(l,null);for(var _=0;_<l;_++){var o=this.readInt(),u=this.readInt();p&&u===65535&&(u=-1);var E=this.readInt();p&&E===65535&&(E=-1),s.lexerActions[_]=this.lexerActionFactory(o,u,E)}}}},{key:"generateRuleBypassTransitions",value:function(s){var p,l=s.ruleToStartState.length;for(p=0;p<l;p++)s.ruleToTokenType[p]=s.maxTokenType+p+1;for(p=0;p<l;p++)this.generateRuleBypassTransition(s,p)}},{key:"generateRuleBypassTransition",value:function(s,p){var l,_,o=new cm;o.ruleIndex=p,s.addState(o);var u=new Af;u.ruleIndex=p,s.addState(u),o.endState=u,s.defineDecisionState(o),u.startState=o;var E=null,x=null;if(s.ruleToStartState[p].isPrecedenceRule){for(x=null,l=0;l<s.states.length;l++)if(_=s.states[l],this.stateIsEndStateFor(_,p)){x=_,E=_.loopBackState.transitions[0];break}if(E===null)throw"Couldn't identify final state of the precedence rule prefix section."}else x=s.ruleToStopState[p];for(l=0;l<s.states.length;l++){_=s.states[l];for(var A=0;A<_.transitions.length;A++){var I=_.transitions[A];I!==E&&I.target===x&&(I.target=u)}}for(var te=s.ruleToStartState[p],we=te.transitions.length;we>0;)o.addTransition(te.transitions[we-1]),te.transitions=te.transitions.slice(-1);s.ruleToStartState[p].addTransition(new xa(o)),u.addTransition(new xa(x));var ke=new Ld;s.addState(ke),ke.addTransition(new Wf(u,s.ruleToTokenType[p])),o.addTransition(new xa(ke))}},{key:"stateIsEndStateFor",value:function(s,p){if(s.ruleIndex!==p||!(s instanceof Uo))return null;var l=s.transitions[s.transitions.length-1].target;return l instanceof ps&&l.epsilonOnlyTransitions&&l.transitions[0].target instanceof Ot?s:null}},{key:"markPrecedenceDecisions",value:function(s){for(var p=0;p<s.states.length;p++){var l=s.states[p];if(l instanceof Uo&&s.ruleToStartState[l.ruleIndex].isPrecedenceRule){var _=l.transitions[l.transitions.length-1].target;_ instanceof ps&&_.epsilonOnlyTransitions&&_.transitions[0].target instanceof Ot&&(l.isPrecedenceDecision=!0)}}}},{key:"verifyATN",value:function(s){if(this.deserializationOptions.verifyATN)for(var p=0;p<s.states.length;p++){var l=s.states[p];if(l!==null)if(this.checkCondition(l.epsilonOnlyTransitions||l.transitions.length<=1),l instanceof $f)this.checkCondition(l.loopBackState!==null);else if(l instanceof Uo)if(this.checkCondition(l.loopBackState!==null),this.checkCondition(l.transitions.length===2),l.transitions[0].target instanceof Hf)this.checkCondition(l.transitions[1].target instanceof ps),this.checkCondition(!l.nonGreedy);else{if(!(l.transitions[0].target instanceof ps))throw"IllegalState";this.checkCondition(l.transitions[1].target instanceof Hf),this.checkCondition(l.nonGreedy)}else l instanceof Ff?(this.checkCondition(l.transitions.length===1),this.checkCondition(l.transitions[0].target instanceof Uo)):l instanceof ps?this.checkCondition(l.loopBackState!==null):l instanceof Wd?this.checkCondition(l.stopState!==null):l instanceof hs?this.checkCondition(l.endState!==null):l instanceof Af?this.checkCondition(l.startState!==null):l instanceof fs?this.checkCondition(l.transitions.length<=1||l.decision>=0):this.checkCondition(l.transitions.length<=1||l instanceof Ot)}}},{key:"checkCondition",value:function(s,p){if(!s)throw p==null&&(p="IllegalState"),p}},{key:"readInt",value:function(){return this.data[this.pos++]}},{key:"readInt32",value:function(){return this.readInt()|this.readInt()<<16}},{key:"edgeFactory",value:function(s,p,l,_,o,u,E,x){var A=s.states[_];switch(p){case me.EPSILON:return new xa(A);case me.RANGE:return new C0(A,E!==0?n.EOF:o,u);case me.RULE:return new Qt(s.states[o],u,E,A);case me.PREDICATE:return new hm(A,o,u,E!==0);case me.PRECEDENCE:return new I0(A,o);case me.ATOM:return new Wf(A,E!==0?n.EOF:o);case me.ACTION:return new lm(A,o,u,E!==0);case me.SET:return new xi(A,x[o]);case me.NOT_SET:return new on(A,x[o]);case me.WILDCARD:return new Mn(A);default:throw"The specified transition type: "+p+" is not valid."}}},{key:"stateFactory",value:function(s,p){if(this.stateFactories===null){var l=[];l[be.INVALID_TYPE]=null,l[be.BASIC]=function(){return new Ld},l[be.RULE_START]=function(){return new Wd},l[be.BLOCK_START]=function(){return new cm},l[be.PLUS_BLOCK_START]=function(){return new $f},l[be.STAR_BLOCK_START]=function(){return new Hf},l[be.TOKEN_START]=function(){return new T0},l[be.RULE_STOP]=function(){return new Ot},l[be.BLOCK_END]=function(){return new Af},l[be.STAR_LOOP_BACK]=function(){return new Ff},l[be.STAR_LOOP_ENTRY]=function(){return new Uo},l[be.PLUS_LOOP_BACK]=function(){return new Zd},l[be.LOOP_END]=function(){return new ps},this.stateFactories=l}if(s>this.stateFactories.length||this.stateFactories[s]===null)throw"The specified state type "+s+" is not valid.";var _=this.stateFactories[s]();if(_!==null)return _.ruleIndex=p,_}},{key:"lexerActionFactory",value:function(s,p,l){if(this.actionFactories===null){var _=[];_[0]=function(o,u){return new B0(o)},_[1]=function(o,u){return new $0(o,u)},_[2]=function(o,u){return new X0(o)},_[3]=function(o,u){return sh.INSTANCE},_[4]=function(o,u){return lh.INSTANCE},_[5]=function(o,u){return new K0(o)},_[6]=function(o,u){return nh.INSTANCE},_[7]=function(o,u){return new H0(o)},this.actionFactories=_}if(s>this.actionFactories.length||this.actionFactories[s]===null)throw"The specified lexer action type "+s+" is not valid.";return this.actionFactories[s](p,l)}}],m&&q0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function wa(f){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},wa(f)}function Y0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(wa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),wa(p)==="symbol"?p:String(p)),s)}var p}var Ra=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"syntaxError",value:function(s,p,l,_,o,u){}},{key:"reportAmbiguity",value:function(s,p,l,_,o,u,E){}},{key:"reportAttemptingFullContext",value:function(s,p,l,_,o,u){}},{key:"reportContextSensitivity",value:function(s,p,l,_,o,u){}}])&&Y0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function ws(f){return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ws(f)}function J0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ws(p)==="symbol"?p:String(p)),s)}var p}function ph(f,i){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ph(f,i)}function Oc(f){return Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Oc(f)}var dh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ph(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Oc(s);if(p){var E=Oc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ws(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this)}return i=_,(m=[{key:"syntaxError",value:function(o,u,E,x,A,I){console.error("line "+E+":"+x+" "+A)}}])&&J0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Ra);function Rs(f){return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Rs(f)}function Z0(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Rs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Rs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Rs(p)==="symbol"?p:String(p)),s)}var p}function mh(f,i){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},mh(f,i)}function mm(f,i){if(i&&(Rs(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _m(f)}function _m(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function kc(f){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},kc(f)}dh.INSTANCE=new dh;var Q0=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&mh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=kc(s);if(p){var E=kc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return mm(this,o)});function _(o){var u;if(function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),u=l.call(this),o===null)throw"delegates";return u.delegates=o,mm(u,_m(u))}return i=_,m=[{key:"syntaxError",value:function(o,u,E,x,A,I){this.delegates.map(function(te){return te.syntaxError(o,u,E,x,A,I)})}},{key:"reportAmbiguity",value:function(o,u,E,x,A,I,te){this.delegates.map(function(we){return we.reportAmbiguity(o,u,E,x,A,I,te)})}},{key:"reportAttemptingFullContext",value:function(o,u,E,x,A,I){this.delegates.map(function(te){return te.reportAttemptingFullContext(o,u,E,x,A,I)})}},{key:"reportContextSensitivity",value:function(o,u,E,x,A,I){this.delegates.map(function(te){return te.reportContextSensitivity(o,u,E,x,A,I)})}}],m&&Z0(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Ra);function Na(f){return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Na(f)}function eg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Na(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Na(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Na(p)==="symbol"?p:String(p)),s)}var p}var Dc=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this._listeners=[dh.INSTANCE],this._interp=null,this._stateNumber=-1}var i,m;return i=f,(m=[{key:"checkVersion",value:function(s){var p="4.13.0";p!==s&&console.log("ANTLR runtime and generated code versions disagree: "+p+"!="+s)}},{key:"addErrorListener",value:function(s){this._listeners.push(s)}},{key:"removeErrorListeners",value:function(){this._listeners=[]}},{key:"getLiteralNames",value:function(){return Object.getPrototypeOf(this).constructor.literalNames||[]}},{key:"getSymbolicNames",value:function(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}},{key:"getTokenNames",value:function(){if(!this.tokenNames){var s=this.getLiteralNames(),p=this.getSymbolicNames(),l=s.length>p.length?s.length:p.length;this.tokenNames=[];for(var _=0;_<l;_++)this.tokenNames[_]=s[_]||p[_]||"<INVALID"}return this.tokenNames}},{key:"getTokenTypeMap",value:function(){var s=this.getTokenNames();if(s===null)throw"The current recognizer does not provide a list of token names.";var p=this.tokenTypeMapCache[s];return p===void 0&&((p=s.reduce(function(l,_,o){l[_]=o})).EOF=n.EOF,this.tokenTypeMapCache[s]=p),p}},{key:"getRuleIndexMap",value:function(){var s=this.ruleNames;if(s===null)throw"The current recognizer does not provide a list of rule names.";var p=this.ruleIndexMapCache[s];return p===void 0&&(p=s.reduce(function(l,_,o){l[_]=o}),this.ruleIndexMapCache[s]=p),p}},{key:"getTokenType",value:function(s){var p=this.getTokenTypeMap()[s];return p!==void 0?p:n.INVALID_TYPE}},{key:"getErrorHeader",value:function(s){return"line "+s.getOffendingToken().line+":"+s.getOffendingToken().column}},{key:"getTokenErrorDisplay",value:function(s){if(s===null)return"<no token>";var p=s.text;return p===null&&(p=s.type===n.EOF?"<EOF>":"<"+s.type+">"),"'"+(p=p.replace(`
2
- `,"\\n").replace("\r","\\r").replace(" ","\\t"))+"'"}},{key:"getErrorListenerDispatch",value:function(){return new Q0(this._listeners)}},{key:"sempred",value:function(s,p,l){return!0}},{key:"precpred",value:function(s,p){return!0}},{key:"atn",get:function(){return this._interp.atn}},{key:"state",get:function(){return this._stateNumber},set:function(s){this._stateNumber=s}}])&&eg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ns(f){return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ns(f)}function tg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ns(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ns(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ns(p)==="symbol"?p:String(p)),s)}var p}function _h(f,i){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},_h(f,i)}function wc(f){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},wc(f)}Dc.tokenTypeMapCache={},Dc.ruleIndexMapCache={};var Ia=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&_h(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=wc(s);if(p){var E=wc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ns(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x,A){var I;return function(te,we){if(!(te instanceof we))throw new TypeError("Cannot call a class as a function")}(this,_),(I=l.call(this)).source=o!==void 0?o:_.EMPTY_SOURCE,I.type=u!==void 0?u:null,I.channel=E!==void 0?E:n.DEFAULT_CHANNEL,I.start=x!==void 0?x:-1,I.stop=A!==void 0?A:-1,I.tokenIndex=-1,I.source[0]!==null?(I.line=o[0].line,I.column=o[0].column):I.column=-1,I}return i=_,(m=[{key:"clone",value:function(){var o=new _(this.source,this.type,this.channel,this.start,this.stop);return o.tokenIndex=this.tokenIndex,o.line=this.line,o.column=this.column,o.text=this.text,o}},{key:"cloneWithType",value:function(o){var u=new _(this.source,o,this.channel,this.start,this.stop);return u.tokenIndex=this.tokenIndex,u.line=this.line,u.column=this.column,o===n.EOF&&(u.text=""),u}},{key:"toString",value:function(){var o=this.text;return o=o!==null?o.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}},{key:"text",get:function(){if(this._text!==null)return this._text;var o=this.getInputStream();if(o===null)return null;var u=o.size;return this.start<u&&this.stop<u?o.getText(this.start,this.stop):"<EOF>"},set:function(o){this._text=o}}])&&tg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(n);function Is(f){return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Is(f)}function yh(f,i){return yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},yh(f,i)}function Rc(f){return Rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Rc(f)}function ym(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Is(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Is(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Is(p)==="symbol"?p:String(p)),s)}var p}function gm(f,i,m){return i&&ym(f.prototype,i),m&&ym(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function bm(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}Ia.EMPTY_SOURCE=[null,null];var gh=function(f){(function(l,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(_&&_.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),_&&yh(l,_)})(p,f);var i,m,s=(i=p,m=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 l,_=Rc(i);if(m){var o=Rc(this).constructor;l=Reflect.construct(_,arguments,o)}else l=_.apply(this,arguments);return function(u,E){if(E&&(Is(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(u)}(this,l)});function p(l){var _;return bm(this,p),(_=s.call(this)).copyText=l!==void 0&&l,_}return gm(p,[{key:"create",value:function(l,_,o,u,E,x,A,I){var te=new Ia(l,_,u,E,x);return te.line=A,te.column=I,o!==null?te.text=o:this.copyText&&l[1]!==null&&(te.text=l[1].getText(E,x)),te}},{key:"createThin",value:function(l,_){var o=new Ia(null,l);return o.text=_,o}}]),p}(gm(function f(){bm(this,f)}));function Ps(f){return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ps(f)}function ng(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ps(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ps(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ps(p)==="symbol"?p:String(p)),s)}var p}function vm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function bh(f){var i=typeof Map=="function"?new Map:void 0;return bh=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,p)}function p(){return vh(m,arguments,Fa(this).constructor)}return p.prototype=Object.create(m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),Pa(p,m)},bh(f)}function vh(f,i,m){return vh=Em()?Reflect.construct.bind():function(s,p,l){var _=[null];_.push.apply(_,p);var o=new(Function.bind.apply(s,_));return l&&Pa(o,l.prototype),o},vh.apply(null,arguments)}function Em(){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 Pa(f,i){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Pa(f,i)}function Fa(f){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Fa(f)}gh.DEFAULT=new gh;var $o=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pa(o,u)})(_,f);var i,m,s,p,l=(s=_,p=Em(),function(){var o,u=Fa(s);if(p){var E=Fa(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ps(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vm(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),u=l.call(this,o.message),Error.captureStackTrace&&Error.captureStackTrace(vm(u),_),u.message=o.message,u.recognizer=o.recognizer,u.input=o.input,u.ctx=o.ctx,u.offendingToken=null,u.offendingState=-1,u.recognizer!==null&&(u.offendingState=u.recognizer.state),u}return i=_,(m=[{key:"getExpectedTokens",value:function(){return this.recognizer!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}},{key:"toString",value:function(){return this.message}}])&&ng(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(bh(Error));function Fs(f){return Fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Fs(f)}function rg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Fs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Fs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Fs(p)==="symbol"?p:String(p)),s)}var p}function Eh(f,i){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Eh(f,i)}function Nc(f){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Nc(f)}var Sh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Eh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Nc(s);if(p){var E=Nc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Fs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x){var A;return function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),(A=l.call(this,{message:"",recognizer:o,input:u,ctx:null})).startIndex=E,A.deadEndConfigs=x,A}return i=_,(m=[{key:"toString",value:function(){var o="";return this.startIndex>=0&&this.startIndex<this.input.size&&(o=this.input.getText(new ve(this.startIndex,this.startIndex))),"LexerNoViableAltException"+o}}])&&rg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}($o);function Ls(f){return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ls(f)}function ig(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ls(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ls(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ls(p)==="symbol"?p:String(p)),s)}var p}function Th(f,i){return Th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Th(f,i)}function Sm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Ic(f){return Ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ic(f)}var sr=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Th(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Ic(s);if(p){var E=Ic(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ls(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sm(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this))._input=o,u._factory=gh.DEFAULT,u._tokenFactorySourcePair=[Sm(u),o],u._interp=null,u._token=null,u._tokenStartCharIndex=-1,u._tokenStartLine=-1,u._tokenStartColumn=-1,u._hitEOF=!1,u._channel=n.DEFAULT_CHANNEL,u._type=n.INVALID_TYPE,u._modeStack=[],u._mode=_.DEFAULT_MODE,u._text=null,u}return i=_,(m=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=_.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}},{key:"nextToken",value:function(){if(this._input===null)throw"nextToken requires a non-null input stream.";var o=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var u=!1;;){this._type=n.INVALID_TYPE;var E=_.SKIP;try{E=this._interp.match(this._input,this._mode)}catch(x){if(!(x instanceof $o))throw console.log(x.stack),x;this.notifyListeners(x),this.recover(x)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=E),this._type===_.SKIP){u=!0;break}if(this._type!==_.MORE)break}if(!u)return this._token===null&&this.emit(),this._token}}finally{this._input.release(o)}}},{key:"skip",value:function(){this._type=_.SKIP}},{key:"more",value:function(){this._type=_.MORE}},{key:"mode",value:function(o){this._mode=o}},{key:"pushMode",value:function(o){this._interp.debug&&console.log("pushMode "+o),this._modeStack.push(this._mode),this.mode(o)}},{key:"popMode",value:function(){if(this._modeStack.length===0)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}},{key:"emitToken",value:function(o){this._token=o}},{key:"emit",value:function(){var o=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(o),o}},{key:"emitEOF",value:function(){var o=this.column,u=this.line,E=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,u,o);return this.emitToken(E),E}},{key:"getCharIndex",value:function(){return this._input.index}},{key:"getAllTokens",value:function(){for(var o=[],u=this.nextToken();u.type!==n.EOF;)o.push(u),u=this.nextToken();return o}},{key:"notifyListeners",value:function(o){var u=this._tokenStartCharIndex,E=this._input.index,x=this._input.getText(u,E),A="token recognition error at: '"+this.getErrorDisplay(x)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,A,o)}},{key:"getErrorDisplay",value:function(o){for(var u=[],E=0;E<o.length;E++)u.push(o[E]);return u.join("")}},{key:"getErrorDisplayForChar",value:function(o){return o.charCodeAt(0)===n.EOF?"<EOF>":o===`
3
- `?"\\n":o===" "?"\\t":o==="\r"?"\\r":o}},{key:"getCharErrorDisplay",value:function(o){return"'"+this.getErrorDisplayForChar(o)+"'"}},{key:"recover",value:function(o){this._input.LA(1)!==n.EOF&&(o instanceof Sh?this._interp.consume(this._input):this._input.consume())}},{key:"inputStream",get:function(){return this._input},set:function(o){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=o,this._tokenFactorySourcePair=[this,this._input]}},{key:"sourceName",get:function(){return this._input.sourceName}},{key:"type",get:function(){return this._type},set:function(o){this._type=o}},{key:"line",get:function(){return this._interp.line},set:function(o){this._interp.line=o}},{key:"column",get:function(){return this._interp.column},set:function(o){this._interp.column=o}},{key:"text",get:function(){return this._text!==null?this._text:this._interp.getText(this._input)},set:function(o){this._text=o}}])&&ig(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Dc);function La(f){return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},La(f)}function og(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(La(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(La(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),La(p)==="symbol"?p:String(p)),s)}var p}function sg(f){return f.hashCodeForConfigSet()}function ag(f,i){return f===i||f!==null&&i!==null&&f.equalsForConfigSet(i)}sr.DEFAULT_MODE=0,sr.MORE=-2,sr.SKIP=-3,sr.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,sr.HIDDEN=n.HIDDEN_CHANNEL,sr.MIN_CHAR_VALUE=0,sr.MAX_CHAR_VALUE=1114111;var Ur=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.configLookup=new g(sg,ag),this.fullCtx=s===void 0||s,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}var i,m;return i=f,(m=[{key:"add",value:function(s,p){if(p===void 0&&(p=null),this.readOnly)throw"This set is readonly";s.semanticContext!==$.NONE&&(this.hasSemanticContext=!0),s.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var l=this.configLookup.add(s);if(l===s)return this.cachedHashCode=-1,this.configs.push(s),!0;var _=!this.fullCtx,o=ls(l.context,s.context,_,p);return l.reachesIntoOuterContext=Math.max(l.reachesIntoOuterContext,s.reachesIntoOuterContext),s.precedenceFilterSuppressed&&(l.precedenceFilterSuppressed=!0),l.context=o,!0}},{key:"getStates",value:function(){for(var s=new g,p=0;p<this.configs.length;p++)s.add(this.configs[p].state);return s}},{key:"getPredicates",value:function(){for(var s=[],p=0;p<this.configs.length;p++){var l=this.configs[p].semanticContext;l!==$.NONE&&s.push(l.semanticContext)}return s}},{key:"optimizeConfigs",value:function(s){if(this.readOnly)throw"This set is readonly";if(this.configLookup.length!==0)for(var p=0;p<this.configs.length;p++){var l=this.configs[p];l.context=s.getCachedContext(l.context)}}},{key:"addAll",value:function(s){for(var p=0;p<s.length;p++)this.add(s[p]);return!1}},{key:"equals",value:function(s){return this===s||s instanceof f&&r(this.configs,s.configs)&&this.fullCtx===s.fullCtx&&this.uniqueAlt===s.uniqueAlt&&this.conflictingAlts===s.conflictingAlts&&this.hasSemanticContext===s.hasSemanticContext&&this.dipsIntoOuterContext===s.dipsIntoOuterContext}},{key:"hashCode",value:function(){var s=new S;return s.update(this.configs),s.finish()}},{key:"updateHashCode",value:function(s){this.readOnly?(this.cachedHashCode===-1&&(this.cachedHashCode=this.hashCode()),s.update(this.cachedHashCode)):s.update(this.hashCode())}},{key:"isEmpty",value:function(){return this.configs.length===0}},{key:"contains",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(s)}},{key:"containsFast",value:function(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(s)}},{key:"clear",value:function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new g}},{key:"setReadonly",value:function(s){this.readOnly=s,s&&(this.configLookup=null)}},{key:"toString",value:function(){return B(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==mn.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}},{key:"items",get:function(){return this.configs}},{key:"length",get:function(){return this.configs.length}}])&&og(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ma(f){return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ma(f)}function ug(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ma(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ma(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ma(p)==="symbol"?p:String(p)),s)}var p}var Vo=function(){function f(s,p){return function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),s===null&&(s=-1),p===null&&(p=new Ur),this.stateNumber=s,this.configs=p,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}var i,m;return i=f,(m=[{key:"getAltSet",value:function(){var s=new g;if(this.configs!==null)for(var p=0;p<this.configs.length;p++){var l=this.configs[p];s.add(l.alt)}return s.length===0?null:s}},{key:"equals",value:function(s){return this===s||s instanceof f&&this.configs.equals(s.configs)}},{key:"toString",value:function(){var s=this.stateNumber+":"+this.configs;return this.isAcceptState&&(s+="=>",this.predicates!==null?s+=this.predicates:s+=this.prediction),s}},{key:"hashCode",value:function(){var s=new S;return s.update(this.configs),s.finish()}}])&&ug(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ba(f){return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ba(f)}function cg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ba(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ba(p)==="symbol"?p:String(p)),s)}var p}var Oi=function(){function f(s,p){return function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),this.atn=s,this.sharedContextCache=p,this}var i,m;return i=f,m=[{key:"getCachedContext",value:function(s){if(this.sharedContextCache===null)return s;var p=new Ji;return qu(s,this.sharedContextCache,p)}}],m&&cg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Ah(f){return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ah(f)}function xh(f,i){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},xh(f,i)}function Pc(f){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Pc(f)}Oi.ERROR=new Vo(2147483647,new Ur);var Tm=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&xh(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Pc(m);if(s){var u=Pc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Ah(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),(_=p.call(this)).configLookup=new g,_}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(Ur);function Ms(f){return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ms(f)}function lg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ms(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ms(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ms(p)==="symbol"?p:String(p)),s)}var p}function Ch(){return Ch=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,i,m){var s=function(l,_){for(;!Object.prototype.hasOwnProperty.call(l,_)&&(l=Bs(l))!==null;);return l}(f,i);if(s){var p=Object.getOwnPropertyDescriptor(s,i);return p.get?p.get.call(arguments.length<3?f:m):p.value}},Ch.apply(this,arguments)}function Oh(f,i){return Oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Oh(f,i)}function Am(f,i){if(i&&(Ms(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xm(f)}function xm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Bs(f){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Bs(f)}var ki=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Oh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Bs(s);if(p){var E=Bs(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return Am(this,o)});function _(o,u){var E;(function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")})(this,_),E=l.call(this,o,u);var x=o.lexerActionExecutor||null;return E.lexerActionExecutor=x||(u!==null?u.lexerActionExecutor:null),E.passedThroughNonGreedyDecision=u!==null&&E.checkNonGreedyDecision(u,E.state),E.hashCodeForConfigSet=_.prototype.hashCode,E.equalsForConfigSet=_.prototype.equals,Am(E,xm(E))}return i=_,(m=[{key:"updateHashCode",value:function(o){o.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.passedThroughNonGreedyDecision===o.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(o.lexerActionExecutor):!o.lexerActionExecutor)&&Ch(Bs(_.prototype),"equals",this).call(this,o)}},{key:"checkNonGreedyDecision",value:function(o,u){return o.passedThroughNonGreedyDecision||u instanceof fs&&u.nonGreedy}}])&&lg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(fe);function Us(f){return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Us(f)}function fg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Us(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Us(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Us(p)==="symbol"?p:String(p)),s)}var p}function kh(f,i){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},kh(f,i)}function Fc(f){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Fc(f)}var Dh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&kh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Fc(s);if(p){var E=Fc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Us(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,u.actionType)).offset=o,E.action=u,E.isPositionDependent=!0,E}return i=_,(m=[{key:"execute",value:function(o){this.action.execute(o)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.offset,this.action)}},{key:"equals",value:function(o){return this===o||o instanceof _&&this.offset===o.offset&&this.action===o.action}}])&&fg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(eo);function Ua(f){return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ua(f)}function Cm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ua(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ua(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ua(p)==="symbol"?p:String(p)),s)}var p}var hg=function(){function f(p){return function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}(this,f),this.lexerActions=p===null?[]:p,this.cachedHashCode=S.hashStuff(p),this}var i,m,s;return i=f,s=[{key:"append",value:function(p,l){return new f(p===null?[l]:p.lexerActions.concat([l]))}}],(m=[{key:"fixOffsetBeforeMatch",value:function(p){for(var l=null,_=0;_<this.lexerActions.length;_++)!this.lexerActions[_].isPositionDependent||this.lexerActions[_]instanceof Dh||(l===null&&(l=this.lexerActions.concat([])),l[_]=new Dh(p,this.lexerActions[_]));return l===null?this:new f(l)}},{key:"execute",value:function(p,l,_){var o=!1,u=l.index;try{for(var E=0;E<this.lexerActions.length;E++){var x=this.lexerActions[E];if(x instanceof Dh){var A=x.offset;l.seek(_+A),x=x.action,o=_+A!==u}else x.isPositionDependent&&(l.seek(u),o=!1);x.execute(p)}}finally{o&&l.seek(u)}}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(p){p.update(this.cachedHashCode)}},{key:"equals",value:function(p){if(this===p)return!0;if(p instanceof f){if(this.cachedHashCode!=p.cachedHashCode||this.lexerActions.length!=p.lexerActions.length)return!1;for(var l=this.lexerActions.length,_=0;_<l;++_)if(!this.lexerActions[_].equals(p.lexerActions[_]))return!1;return!0}return!1}}])&&Cm(i.prototype,m),s&&Cm(i,s),Object.defineProperty(i,"prototype",{writable:!1}),f}();function wh(f,i){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},wh(f,i)}function Lc(f){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Lc(f)}function $s(f){return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$s(f)}function Om(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function km(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if($s(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($s(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$s(p)==="symbol"?p:String(p)),s)}var p}function Dm(f,i,m){return i&&km(f.prototype,i),m&&km(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function wm(f){f.index=-1,f.line=0,f.column=-1,f.dfaState=null}var pg=function(){function f(){Om(this,f),wm(this)}return Dm(f,[{key:"reset",value:function(){wm(this)}}]),f}(),Vs=function(f){(function(l,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(_&&_.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),_&&wh(l,_)})(p,f);var i,m,s=(i=p,m=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 l,_=Lc(i);if(m){var o=Lc(this).constructor;l=Reflect.construct(_,arguments,o)}else l=_.apply(this,arguments);return function(u,E){if(E&&($s(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(u)}(this,l)});function p(l,_,o,u){var E;return Om(this,p),(E=s.call(this,_,u)).decisionToDFA=o,E.recog=l,E.startIndex=-1,E.line=1,E.column=0,E.mode=sr.DEFAULT_MODE,E.prevAccept=new pg,E}return Dm(p,[{key:"copyState",value:function(l){this.column=l.column,this.line=l.line,this.mode=l.mode,this.startIndex=l.startIndex}},{key:"match",value:function(l,_){this.mode=_;var o=l.mark();try{this.startIndex=l.index,this.prevAccept.reset();var u=this.decisionToDFA[_];return u.s0===null?this.matchATN(l):this.execATN(l,u.s0)}finally{l.release(o)}}},{key:"reset",value:function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=sr.DEFAULT_MODE}},{key:"matchATN",value:function(l){var _=this.atn.modeToStartState[this.mode];p.debug&&console.log("matchATN mode "+this.mode+" start: "+_);var o=this.mode,u=this.computeStartState(l,_),E=u.hasSemanticContext;u.hasSemanticContext=!1;var x=this.addDFAState(u);E||(this.decisionToDFA[this.mode].s0=x);var A=this.execATN(l,x);return p.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[o].toLexerString()),A}},{key:"execATN",value:function(l,_){p.debug&&console.log("start state closure="+_.configs),_.isAcceptState&&this.captureSimState(this.prevAccept,l,_);for(var o=l.LA(1),u=_;;){p.debug&&console.log("execATN loop starting closure: "+u.configs);var E=this.getExistingTargetState(u,o);if(E===null&&(E=this.computeTargetState(l,u,o)),E===Oi.ERROR||(o!==n.EOF&&this.consume(l),E.isAcceptState&&(this.captureSimState(this.prevAccept,l,E),o===n.EOF)))break;o=l.LA(1),u=E}return this.failOrAccept(this.prevAccept,l,u.configs,o)}},{key:"getExistingTargetState",value:function(l,_){if(l.edges===null||_<p.MIN_DFA_EDGE||_>p.MAX_DFA_EDGE)return null;var o=l.edges[_-p.MIN_DFA_EDGE];return o===void 0&&(o=null),p.debug&&o!==null&&console.log("reuse state "+l.stateNumber+" edge to "+o.stateNumber),o}},{key:"computeTargetState",value:function(l,_,o){var u=new Tm;return this.getReachableConfigSet(l,_.configs,u,o),u.items.length===0?(u.hasSemanticContext||this.addDFAEdge(_,o,Oi.ERROR),Oi.ERROR):this.addDFAEdge(_,o,null,u)}},{key:"failOrAccept",value:function(l,_,o,u){if(this.prevAccept.dfaState!==null){var E=l.dfaState.lexerActionExecutor;return this.accept(_,E,this.startIndex,l.index,l.line,l.column),l.dfaState.prediction}if(u===n.EOF&&_.index===this.startIndex)return n.EOF;throw new Sh(this.recog,_,this.startIndex,o)}},{key:"getReachableConfigSet",value:function(l,_,o,u){for(var E=mn.INVALID_ALT_NUMBER,x=0;x<_.items.length;x++){var A=_.items[x],I=A.alt===E;if(!I||!A.passedThroughNonGreedyDecision){p.debug&&console.log(`testing %s at %s
4
- `,this.getTokenName(u),A.toString(this.recog,!0));for(var te=0;te<A.state.transitions.length;te++){var we=A.state.transitions[te],ke=this.getReachableTarget(we,u);if(ke!==null){var He=A.lexerActionExecutor;He!==null&&(He=He.fixOffsetBeforeMatch(l.index-this.startIndex));var st=u===n.EOF,ze=new ki({state:ke,lexerActionExecutor:He},A);this.closure(l,ze,o,I,!0,st)&&(E=A.alt)}}}}}},{key:"accept",value:function(l,_,o,u,E,x){p.debug&&console.log(`ACTION %s
5
- `,_),l.seek(u),this.line=E,this.column=x,_!==null&&this.recog!==null&&_.execute(this.recog,l,o)}},{key:"getReachableTarget",value:function(l,_){return l.matches(_,0,sr.MAX_CHAR_VALUE)?l.target:null}},{key:"computeStartState",value:function(l,_){for(var o=it.EMPTY,u=new Tm,E=0;E<_.transitions.length;E++){var x=_.transitions[E].target,A=new ki({state:x,alt:E+1,context:o},null);this.closure(l,A,u,!1,!1,!1)}return u}},{key:"closure",value:function(l,_,o,u,E,x){var A=null;if(p.debug&&console.log("closure("+_.toString(this.recog,!0)+")"),_.state instanceof Ot){if(p.debug&&(this.recog!==null?console.log(`closure at %s rule stop %s
6
- `,this.recog.ruleNames[_.state.ruleIndex],_):console.log(`closure at rule stop %s
7
- `,_)),_.context===null||_.context.hasEmptyPath()){if(_.context===null||_.context.isEmpty())return o.add(_),!0;o.add(new ki({state:_.state,context:it.EMPTY},_)),u=!0}if(_.context!==null&&!_.context.isEmpty()){for(var I=0;I<_.context.length;I++)if(_.context.getReturnState(I)!==it.EMPTY_RETURN_STATE){var te=_.context.getParent(I),we=this.atn.states[_.context.getReturnState(I)];A=new ki({state:we,context:te},_),u=this.closure(l,A,o,u,E,x)}}return u}_.state.epsilonOnlyTransitions||u&&_.passedThroughNonGreedyDecision||o.add(_);for(var ke=0;ke<_.state.transitions.length;ke++){var He=_.state.transitions[ke];(A=this.getEpsilonTarget(l,_,He,o,E,x))!==null&&(u=this.closure(l,A,o,u,E,x))}return u}},{key:"getEpsilonTarget",value:function(l,_,o,u,E,x){var A=null;if(o.serializationType===me.RULE){var I=ct.create(_.context,o.followState.stateNumber);A=new ki({state:o.target,context:I},_)}else{if(o.serializationType===me.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(o.serializationType===me.PREDICATE)p.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),u.hasSemanticContext=!0,this.evaluatePredicate(l,o.ruleIndex,o.predIndex,E)&&(A=new ki({state:o.target},_));else if(o.serializationType===me.ACTION)if(_.context===null||_.context.hasEmptyPath()){var te=hg.append(_.lexerActionExecutor,this.atn.lexerActions[o.actionIndex]);A=new ki({state:o.target,lexerActionExecutor:te},_)}else A=new ki({state:o.target},_);else o.serializationType===me.EPSILON?A=new ki({state:o.target},_):o.serializationType!==me.ATOM&&o.serializationType!==me.RANGE&&o.serializationType!==me.SET||x&&o.matches(n.EOF,0,sr.MAX_CHAR_VALUE)&&(A=new ki({state:o.target},_))}return A}},{key:"evaluatePredicate",value:function(l,_,o,u){if(this.recog===null)return!0;if(!u)return this.recog.sempred(null,_,o);var E=this.column,x=this.line,A=l.index,I=l.mark();try{return this.consume(l),this.recog.sempred(null,_,o)}finally{this.column=E,this.line=x,l.seek(A),l.release(I)}}},{key:"captureSimState",value:function(l,_,o){l.index=_.index,l.line=this.line,l.column=this.column,l.dfaState=o}},{key:"addDFAEdge",value:function(l,_,o,u){if(o===void 0&&(o=null),u===void 0&&(u=null),o===null&&u!==null){var E=u.hasSemanticContext;if(u.hasSemanticContext=!1,o=this.addDFAState(u),E)return o}return _<p.MIN_DFA_EDGE||_>p.MAX_DFA_EDGE||(p.debug&&console.log("EDGE "+l+" -> "+o+" upon "+_),l.edges===null&&(l.edges=[]),l.edges[_-p.MIN_DFA_EDGE]=o),o}},{key:"addDFAState",value:function(l){for(var _=new Vo(null,l),o=null,u=0;u<l.items.length;u++){var E=l.items[u];if(E.state instanceof Ot){o=E;break}}o!==null&&(_.isAcceptState=!0,_.lexerActionExecutor=o.lexerActionExecutor,_.prediction=this.atn.ruleToTokenType[o.state.ruleIndex]);var x=this.decisionToDFA[this.mode],A=x.states.get(_);if(A!==null)return A;var I=_;return I.stateNumber=x.states.length,l.setReadonly(!0),I.configs=l,x.states.add(I),I}},{key:"getDFA",value:function(l){return this.decisionToDFA[l]}},{key:"getText",value:function(l){return l.getText(this.startIndex,l.index-1)}},{key:"consume",value:function(l){l.LA(1)===10?(this.line+=1,this.column=0):this.column+=1,l.consume()}},{key:"getTokenName",value:function(l){return l===-1?"EOF":"'"+String.fromCharCode(l)+"'"}}]),p}(Oi);function $a(f){return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$a(f)}function dg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if($a(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if($a(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),$a(p)==="symbol"?p:String(p)),s)}var p}Vs.debug=!1,Vs.dfa_debug=!1,Vs.MIN_DFA_EDGE=0,Vs.MAX_DFA_EDGE=127;var Rm=function(){function f(s,p){(function(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")})(this,f),this.alt=p,this.pred=s}var i,m;return i=f,(m=[{key:"toString",value:function(){return"("+this.pred+", "+this.alt+")"}}])&&dg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Va(f){return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Va(f)}function mg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Va(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Va(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Va(p)==="symbol"?p:String(p)),s)}var p}var _g=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.data={}}var i,m;return i=f,(m=[{key:"get",value:function(s){return this.data["k-"+s]||null}},{key:"set",value:function(s,p){this.data["k-"+s]=p}},{key:"values",value:function(){var s=this;return Object.keys(this.data).filter(function(p){return p.startsWith("k-")}).map(function(p){return s.data[p]},this)}}])&&mg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}(),Di={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(f,i){if(Di.allConfigsInRuleStopStates(i))return!0;if(f===Di.SLL&&i.hasSemanticContext){for(var m=new Ur,s=0;s<i.items.length;s++){var p=i.items[s];p=new fe({semanticContext:$.NONE},p),m.add(p)}i=m}var l=Di.getConflictingAltSubsets(i);return Di.hasConflictingAltSet(l)&&!Di.hasStateAssociatedWithOneAlt(i)},hasConfigInRuleStopState:function(f){for(var i=0;i<f.items.length;i++)if(f.items[i].state instanceof Ot)return!0;return!1},allConfigsInRuleStopStates:function(f){for(var i=0;i<f.items.length;i++)if(!(f.items[i].state instanceof Ot))return!1;return!0},resolvesToJustOneViableAlt:function(f){return Di.getSingleViableAlt(f)},allSubsetsConflict:function(f){return!Di.hasNonConflictingAltSet(f)},hasNonConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length===1)return!0;return!1},hasConflictingAltSet:function(f){for(var i=0;i<f.length;i++)if(f[i].length>1)return!0;return!1},allSubsetsEqual:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m];if(i===null)i=s;else if(s!==i)return!1}return!0},getUniqueAlt:function(f){var i=Di.getAlts(f);return i.length===1?i.minValue():mn.INVALID_ALT_NUMBER},getAlts:function(f){var i=new Br;return f.map(function(m){i.or(m)}),i},getConflictingAltSubsets:function(f){var i=new Ji;return i.hashFunction=function(m){S.hashStuff(m.state.stateNumber,m.context)},i.equalsFunction=function(m,s){return m.state.stateNumber===s.state.stateNumber&&m.context.equals(s.context)},f.items.map(function(m){var s=i.get(m);s===null&&(s=new Br,i.set(m,s)),s.add(m.alt)}),i.getValues()},getStateToAltMap:function(f){var i=new _g;return f.items.map(function(m){var s=i.get(m.state);s===null&&(s=new Br,i.set(m.state,s)),s.add(m.alt)}),i},hasStateAssociatedWithOneAlt:function(f){for(var i=Di.getStateToAltMap(f).values(),m=0;m<i.length;m++)if(i[m].length===1)return!0;return!1},getSingleViableAlt:function(f){for(var i=null,m=0;m<f.length;m++){var s=f[m].minValue();if(i===null)i=s;else if(i!==s)return mn.INVALID_ALT_NUMBER}return i}};const Kn=Di;function Rh(f){return Rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Rh(f)}function Nh(f,i){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Nh(f,i)}function Mc(f){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Mc(f)}var Bc=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Nh(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Mc(m);if(s){var u=Mc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Rh(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(_,o,u,E,x,A){var I;return function(te,we){if(!(te instanceof we))throw new TypeError("Cannot call a class as a function")}(this,l),A=A||_._ctx,E=E||_.getCurrentToken(),u=u||_.getCurrentToken(),o=o||_.getInputStream(),(I=p.call(this,{message:"",recognizer:_,input:o,ctx:A})).deadEndConfigs=x,I.startToken=u,I.offendingToken=E,I}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}($o);function ja(f){return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ja(f)}function yg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ja(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ja(p)==="symbol"?p:String(p)),s)}var p}var gg=function(){function f(s){(function(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")})(this,f),this.defaultMapCtor=s||Ji,this.cacheMap=new this.defaultMapCtor}var i,m;return i=f,(m=[{key:"get",value:function(s,p){var l=this.cacheMap.get(s)||null;return l===null?null:l.get(p)||null}},{key:"set",value:function(s,p,l){var _=this.cacheMap.get(s)||null;_===null&&(_=new this.defaultMapCtor,this.cacheMap.set(s,_)),_.set(p,l)}}])&&yg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function js(f){return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},js(f)}function bg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(js(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(js(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),js(p)==="symbol"?p:String(p)),s)}var p}function Ih(f,i){return Ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ih(f,i)}function Uc(f){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Uc(f)}var Nm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Ih(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Uc(s);if(p){var E=Uc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(js(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E,x){var A;return function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),(A=l.call(this,u,x)).parser=o,A.decisionToDFA=E,A.predictionMode=Kn.LL,A._input=null,A._startIndex=0,A._outerContext=null,A._dfa=null,A.mergeCache=null,A.debug=!1,A.debug_closure=!1,A.debug_add=!1,A.trace_atn_sim=!1,A.dfa_debug=!1,A.retry_debug=!1,A}return i=_,m=[{key:"reset",value:function(){}},{key:"adaptivePredict",value:function(o,u,E){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+u+" exec LA(1)=="+this.getLookaheadName(o)+" line "+o.LT(1).line+":"+o.LT(1).column),this._input=o,this._startIndex=o.index,this._outerContext=E;var x=this.decisionToDFA[u];this._dfa=x;var A=o.mark(),I=o.index;try{var te;if((te=x.precedenceDfa?x.getPrecedenceStartState(this.parser.getPrecedence()):x.s0)===null){E===null&&(E=Yi.EMPTY),this.debug&&console.log("predictATN decision "+x.decision+" exec LA(1)=="+this.getLookaheadName(o)+", outerContext="+E.toString(this.parser.ruleNames));var we=this.computeStartState(x.atnStartState,Yi.EMPTY,!1);x.precedenceDfa?(x.s0.configs=we,we=this.applyPrecedenceFilter(we),te=this.addDFAState(x,new Vo(null,we)),x.setPrecedenceStartState(this.parser.getPrecedence(),te)):(te=this.addDFAState(x,new Vo(null,we)),x.s0=te)}var ke=this.execATN(x,te,o,I,E);return this.debug&&console.log("DFA after predictATN: "+x.toString(this.parser.literalNames,this.parser.symbolicNames)),ke}finally{this._dfa=null,this.mergeCache=null,o.seek(I),o.release(A)}}},{key:"execATN",value:function(o,u,E,x,A){var I;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+o.decision+", DFA state "+u+", LA(1)=="+this.getLookaheadName(E)+" line "+E.LT(1).line+":"+E.LT(1).column);var te=u;this.debug&&console.log("s0 = "+u);for(var we=E.LA(1);;){var ke=this.getExistingTargetState(te,we);if(ke===null&&(ke=this.computeTargetState(o,te,we)),ke===Oi.ERROR){var He=this.noViableAlt(E,A,te.configs,x);if(E.seek(x),(I=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(te.configs,A))!==mn.INVALID_ALT_NUMBER)return I;throw He}if(ke.requiresFullContext&&this.predictionMode!==Kn.SLL){var st=null;if(ke.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var ze=E.index;if(ze!==x&&E.seek(x),(st=this.evalSemanticContext(ke.predicates,A,!0)).length===1)return this.debug&&console.log("Full LL avoided"),st.minValue();ze!==x&&E.seek(ze)}this.dfa_debug&&console.log("ctx sensitive state "+A+" in "+ke);var _n=this.computeStartState(o.atnStartState,A,!0);return this.reportAttemptingFullContext(o,st,ke.configs,x,E.index),this.execATNWithFullContext(o,ke,_n,E,x,A)}if(ke.isAcceptState){if(ke.predicates===null)return ke.prediction;var pn=E.index;E.seek(x);var zn=this.evalSemanticContext(ke.predicates,A,!0);if(zn.length===0)throw this.noViableAlt(E,A,ke.configs,x);return zn.length===1||this.reportAmbiguity(o,ke,x,pn,!1,zn,ke.configs),zn.minValue()}te=ke,we!==n.EOF&&(E.consume(),we=E.LA(1))}}},{key:"getExistingTargetState",value:function(o,u){var E=o.edges;return E===null?null:E[u+1]||null}},{key:"computeTargetState",value:function(o,u,E){var x=this.computeReachSet(u.configs,E,!1);if(x===null)return this.addDFAEdge(o,u,E,Oi.ERROR),Oi.ERROR;var A=new Vo(null,x),I=this.getUniqueAlt(x);if(this.debug){var te=Kn.getConflictingAltSubsets(x);console.log("SLL altSubSets="+B(te)+", configs="+x+", predict="+I+", allSubsetsConflict="+Kn.allSubsetsConflict(te)+", conflictingAlts="+this.getConflictingAlts(x))}return I!==mn.INVALID_ALT_NUMBER?(A.isAcceptState=!0,A.configs.uniqueAlt=I,A.prediction=I):Kn.hasSLLConflictTerminatingPrediction(this.predictionMode,x)&&(A.configs.conflictingAlts=this.getConflictingAlts(x),A.requiresFullContext=!0,A.isAcceptState=!0,A.prediction=A.configs.conflictingAlts.minValue()),A.isAcceptState&&A.configs.hasSemanticContext&&(this.predicateDFAState(A,this.atn.getDecisionState(o.decision)),A.predicates!==null&&(A.prediction=mn.INVALID_ALT_NUMBER)),this.addDFAEdge(o,u,E,A)}},{key:"predicateDFAState",value:function(o,u){var E=u.transitions.length,x=this.getConflictingAltsOrUniqueAlt(o.configs),A=this.getPredsForAmbigAlts(x,o.configs,E);A!==null?(o.predicates=this.getPredicatePredictions(x,A),o.prediction=mn.INVALID_ALT_NUMBER):o.prediction=x.minValue()}},{key:"execATNWithFullContext",value:function(o,u,E,x,A,I){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+E);var te,we=!1,ke=E;x.seek(A);for(var He=x.LA(1),st=-1;;){if((te=this.computeReachSet(ke,He,!0))===null){var ze=this.noViableAlt(x,I,ke,A);x.seek(A);var _n=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(ke,I);if(_n!==mn.INVALID_ALT_NUMBER)return _n;throw ze}var pn=Kn.getConflictingAltSubsets(te);if(this.debug&&console.log("LL altSubSets="+pn+", predict="+Kn.getUniqueAlt(pn)+", resolvesToJustOneViableAlt="+Kn.resolvesToJustOneViableAlt(pn)),te.uniqueAlt=this.getUniqueAlt(te),te.uniqueAlt!==mn.INVALID_ALT_NUMBER){st=te.uniqueAlt;break}if(this.predictionMode!==Kn.LL_EXACT_AMBIG_DETECTION){if((st=Kn.resolvesToJustOneViableAlt(pn))!==mn.INVALID_ALT_NUMBER)break}else if(Kn.allSubsetsConflict(pn)&&Kn.allSubsetsEqual(pn)){we=!0,st=Kn.getSingleViableAlt(pn);break}ke=te,He!==n.EOF&&(x.consume(),He=x.LA(1))}return te.uniqueAlt!==mn.INVALID_ALT_NUMBER?(this.reportContextSensitivity(o,st,te,A,x.index),st):(this.reportAmbiguity(o,u,A,x.index,we,null,te),st)}},{key:"computeReachSet",value:function(o,u,E){this.debug&&console.log("in computeReachSet, starting closure: "+o),this.mergeCache===null&&(this.mergeCache=new gg);for(var x=new Ur(E),A=null,I=0;I<o.items.length;I++){var te=o.items[I];if(this.debug&&console.log("testing "+this.getTokenName(u)+" at "+te),te.state instanceof Ot)(E||u===n.EOF)&&(A===null&&(A=[]),A.push(te),this.debug_add&&console.log("added "+te+" to skippedStopStates"));else for(var we=0;we<te.state.transitions.length;we++){var ke=te.state.transitions[we],He=this.getReachableTarget(ke,u);if(He!==null){var st=new fe({state:He},te);x.add(st,this.mergeCache),this.debug_add&&console.log("added "+st+" to intermediate")}}}var ze=null;if(A===null&&u!==n.EOF&&(x.items.length===1||this.getUniqueAlt(x)!==mn.INVALID_ALT_NUMBER)&&(ze=x),ze===null){ze=new Ur(E);for(var _n=new g,pn=u===n.EOF,zn=0;zn<x.items.length;zn++)this.closure(x.items[zn],ze,_n,!1,E,pn)}if(u===n.EOF&&(ze=this.removeAllConfigsNotInRuleStopState(ze,ze===x)),!(A===null||E&&Kn.hasConfigInRuleStopState(ze)))for(var $r=0;$r<A.length;$r++)ze.add(A[$r],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+o+" -> "+ze),ze.items.length===0?null:ze}},{key:"removeAllConfigsNotInRuleStopState",value:function(o,u){if(Kn.allConfigsInRuleStopStates(o))return o;for(var E=new Ur(o.fullCtx),x=0;x<o.items.length;x++){var A=o.items[x];if(A.state instanceof Ot)E.add(A,this.mergeCache);else if(u&&A.state.epsilonOnlyTransitions&&this.atn.nextTokens(A.state).contains(n.EPSILON)){var I=this.atn.ruleToStopState[A.state.ruleIndex];E.add(new fe({state:I},A),this.mergeCache)}}return E}},{key:"computeStartState",value:function(o,u,E){var x=cs(this.atn,u),A=new Ur(E);this.trace_atn_sim&&console.log("computeStartState from ATN state "+o+" initialContext="+x.toString(this.parser));for(var I=0;I<o.transitions.length;I++){var te=o.transitions[I].target,we=new fe({state:te,alt:I+1,context:x},null),ke=new g;this.closure(we,A,ke,!0,E,!1)}return A}},{key:"applyPrecedenceFilter",value:function(o){for(var u,E=[],x=new Ur(o.fullCtx),A=0;A<o.items.length;A++)if((u=o.items[A]).alt===1){var I=u.semanticContext.evalPrecedence(this.parser,this._outerContext);I!==null&&(E[u.state.stateNumber]=u.context,I!==u.semanticContext?x.add(new fe({semanticContext:I},u),this.mergeCache):x.add(u,this.mergeCache))}for(var te=0;te<o.items.length;te++)if((u=o.items[te]).alt!==1){if(!u.precedenceFilterSuppressed){var we=E[u.state.stateNumber]||null;if(we!==null&&we.equals(u.context))continue}x.add(u,this.mergeCache)}return x}},{key:"getReachableTarget",value:function(o,u){return o.matches(u,0,this.atn.maxTokenType)?o.target:null}},{key:"getPredsForAmbigAlts",value:function(o,u,E){for(var x=[],A=0;A<u.items.length;A++){var I=u.items[A];o.has(I.alt)&&(x[I.alt]=$.orContext(x[I.alt]||null,I.semanticContext))}for(var te=0,we=1;we<E+1;we++){var ke=x[we]||null;ke===null?x[we]=$.NONE:ke!==$.NONE&&(te+=1)}return te===0&&(x=null),this.debug&&console.log("getPredsForAmbigAlts result "+B(x)),x}},{key:"getPredicatePredictions",value:function(o,u){for(var E=[],x=!1,A=1;A<u.length;A++){var I=u[A];o!==null&&o.has(A)&&E.push(new Rm(I,A)),I!==$.NONE&&(x=!0)}return x?E:null}},{key:"getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule",value:function(o,u){var E=this.splitAccordingToSemanticValidity(o,u),x=E[0],A=E[1],I=this.getAltThatFinishedDecisionEntryRule(x);return I!==mn.INVALID_ALT_NUMBER||A.items.length>0&&(I=this.getAltThatFinishedDecisionEntryRule(A))!==mn.INVALID_ALT_NUMBER?I:mn.INVALID_ALT_NUMBER}},{key:"getAltThatFinishedDecisionEntryRule",value:function(o){for(var u=[],E=0;E<o.items.length;E++){var x=o.items[E];(x.reachesIntoOuterContext>0||x.state instanceof Ot&&x.context.hasEmptyPath())&&u.indexOf(x.alt)<0&&u.push(x.alt)}return u.length===0?mn.INVALID_ALT_NUMBER:Math.min.apply(null,u)}},{key:"splitAccordingToSemanticValidity",value:function(o,u){for(var E=new Ur(o.fullCtx),x=new Ur(o.fullCtx),A=0;A<o.items.length;A++){var I=o.items[A];I.semanticContext!==$.NONE?I.semanticContext.evaluate(this.parser,u)?E.add(I):x.add(I):E.add(I)}return[E,x]}},{key:"evalSemanticContext",value:function(o,u,E){for(var x=new Br,A=0;A<o.length;A++){var I=o[A];if(I.pred!==$.NONE){var te=I.pred.evaluate(this.parser,u);if((this.debug||this.dfa_debug)&&console.log("eval pred "+I+"="+te),te&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+I.alt),x.add(I.alt),!E))break}else if(x.add(I.alt),!E)break}return x}},{key:"closure",value:function(o,u,E,x,A,I){this.closureCheckingStopState(o,u,E,x,A,0,I)}},{key:"closureCheckingStopState",value:function(o,u,E,x,A,I,te){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+o.toString(this.parser,!0)+")"),o.state instanceof Ot){if(!o.context.isEmpty()){for(var we=0;we<o.context.length;we++)if(o.context.getReturnState(we)!==it.EMPTY_RETURN_STATE){var ke=this.atn.states[o.context.getReturnState(we)],He=o.context.getParent(we),st={state:ke,alt:o.alt,context:He,semanticContext:o.semanticContext},ze=new fe(st,null);ze.reachesIntoOuterContext=o.reachesIntoOuterContext,this.closureCheckingStopState(ze,u,E,x,A,I-1,te)}else{if(A){u.add(new fe({state:o.state,context:it.EMPTY},o),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex)),this.closure_(o,u,E,x,A,I,te)}return}if(A)return void u.add(o,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex))}this.closure_(o,u,E,x,A,I,te)}},{key:"closure_",value:function(o,u,E,x,A,I,te){var we=o.state;we.epsilonOnlyTransitions||u.add(o,this.mergeCache);for(var ke=0;ke<we.transitions.length;ke++)if(ke!==0||!this.canDropLoopEntryEdgeInLeftRecursiveRule(o)){var He=we.transitions[ke],st=x&&!(He instanceof lm),ze=this.getEpsilonTarget(o,He,st,I===0,A,te);if(ze!==null){var _n=I;if(o.state instanceof Ot){if(this._dfa!==null&&this._dfa.precedenceDfa&&He.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(ze.precedenceFilterSuppressed=!0),ze.reachesIntoOuterContext+=1,E.add(ze)!==ze)continue;u.dipsIntoOuterContext=!0,_n-=1,this.debug&&console.log("dips into outer ctx: "+ze)}else{if(!He.isEpsilon&&E.add(ze)!==ze)continue;He instanceof Qt&&_n>=0&&(_n+=1)}this.closureCheckingStopState(ze,u,E,st,A,_n,te)}}}},{key:"canDropLoopEntryEdgeInLeftRecursiveRule",value:function(o){var u=o.state;if(u.stateType!==be.STAR_LOOP_ENTRY||u.stateType!==be.STAR_LOOP_ENTRY||!u.isPrecedenceDecision||o.context.isEmpty()||o.context.hasEmptyPath())return!1;for(var E=o.context.length,x=0;x<E;x++)if(this.atn.states[o.context.getReturnState(x)].ruleIndex!==u.ruleIndex)return!1;for(var A=u.transitions[0].target.endState.stateNumber,I=this.atn.states[A],te=0;te<E;te++){var we=o.context.getReturnState(te),ke=this.atn.states[we];if(ke.transitions.length!==1||!ke.transitions[0].isEpsilon)return!1;var He=ke.transitions[0].target;if(!(ke.stateType===be.BLOCK_END&&He===u||ke===I||He===I||He.stateType===be.BLOCK_END&&He.transitions.length===1&&He.transitions[0].isEpsilon&&He.transitions[0].target===u))return!1}return!0}},{key:"getRuleName",value:function(o){return this.parser!==null&&o>=0?this.parser.ruleNames[o]:"<rule "+o+">"}},{key:"getEpsilonTarget",value:function(o,u,E,x,A,I){switch(u.serializationType){case me.RULE:return this.ruleTransition(o,u);case me.PRECEDENCE:return this.precedenceTransition(o,u,E,x,A);case me.PREDICATE:return this.predTransition(o,u,E,x,A);case me.ACTION:return this.actionTransition(o,u);case me.EPSILON:return new fe({state:u.target},o);case me.ATOM:case me.RANGE:case me.SET:return I&&u.matches(n.EOF,0,1)?new fe({state:u.target},o):null;default:return null}}},{key:"actionTransition",value:function(o,u){if(this.debug){var E=u.actionIndex===-1?65535:u.actionIndex;console.log("ACTION edge "+u.ruleIndex+":"+E)}return new fe({state:u.target},o)}},{key:"precedenceTransition",value:function(o,u,E,x,A){this.debug&&(console.log("PRED (collectPredicates="+E+") "+u.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+B(this.parser.getRuleInvocationStack())));var I=null;if(E&&x)if(A){var te=this._input.index;this._input.seek(this._startIndex);var we=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(te),we&&(I=new fe({state:u.target},o))}else{var ke=$.andContext(o.semanticContext,u.getPredicate());I=new fe({state:u.target,semanticContext:ke},o)}else I=new fe({state:u.target},o);return this.debug&&console.log("config from pred transition="+I),I}},{key:"predTransition",value:function(o,u,E,x,A){this.debug&&(console.log("PRED (collectPredicates="+E+") "+u.ruleIndex+":"+u.predIndex+", ctx dependent="+u.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+B(this.parser.getRuleInvocationStack())));var I=null;if(E&&(u.isCtxDependent&&x||!u.isCtxDependent))if(A){var te=this._input.index;this._input.seek(this._startIndex);var we=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(te),we&&(I=new fe({state:u.target},o))}else{var ke=$.andContext(o.semanticContext,u.getPredicate());I=new fe({state:u.target,semanticContext:ke},o)}else I=new fe({state:u.target},o);return this.debug&&console.log("config from pred transition="+I),I}},{key:"ruleTransition",value:function(o,u){this.debug&&console.log("CALL rule "+this.getRuleName(u.target.ruleIndex)+", ctx="+o.context);var E=u.followState,x=ct.create(o.context,E.stateNumber);return new fe({state:u.target,context:x},o)}},{key:"getConflictingAlts",value:function(o){var u=Kn.getConflictingAltSubsets(o);return Kn.getAlts(u)}},{key:"getConflictingAltsOrUniqueAlt",value:function(o){var u=null;return o.uniqueAlt!==mn.INVALID_ALT_NUMBER?(u=new Br).add(o.uniqueAlt):u=o.conflictingAlts,u}},{key:"getTokenName",value:function(o){if(o===n.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null){if(!(o>=this.parser.literalNames.length&&o>=this.parser.symbolicNames.length))return(this.parser.literalNames[o]||this.parser.symbolicNames[o])+"<"+o+">";console.log(o+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+o}},{key:"getLookaheadName",value:function(o){return this.getTokenName(o.LA(1))}},{key:"dumpDeadEndConfigs",value:function(o){console.log("dead end configs: ");for(var u=o.getDeadEndConfigs(),E=0;E<u.length;E++){var x=u[E],A="no edges";if(x.state.transitions.length>0){var I=x.state.transitions[0];I instanceof Wf?A="Atom "+this.getTokenName(I.label):I instanceof xi&&(A=(I instanceof on?"~":"")+"Set "+I.set)}console.error(x.toString(this.parser,!0)+":"+A)}}},{key:"noViableAlt",value:function(o,u,E,x){return new Bc(this.parser,o,o.get(x),o.LT(1),E,u)}},{key:"getUniqueAlt",value:function(o){for(var u=mn.INVALID_ALT_NUMBER,E=0;E<o.items.length;E++){var x=o.items[E];if(u===mn.INVALID_ALT_NUMBER)u=x.alt;else if(x.alt!==u)return mn.INVALID_ALT_NUMBER}return u}},{key:"addDFAEdge",value:function(o,u,E,x){if(this.debug&&console.log("EDGE "+u+" -> "+x+" upon "+this.getTokenName(E)),x===null)return null;if(x=this.addDFAState(o,x),u===null||E<-1||E>this.atn.maxTokenType)return x;if(u.edges===null&&(u.edges=[]),u.edges[E+1]=x,this.debug){var A=this.parser===null?null:this.parser.literalNames,I=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
8
- `+o.toString(A,I))}return x}},{key:"addDFAState",value:function(o,u){if(u===Oi.ERROR)return u;var E=o.states.get(u);return E!==null?(this.trace_atn_sim&&console.log("addDFAState "+u+" exists"),E):(u.stateNumber=o.states.length,u.configs.readOnly||(u.configs.optimizeConfigs(this),u.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+u),o.states.add(u),this.debug&&console.log("adding new DFA state: "+u),u)}},{key:"reportAttemptingFullContext",value:function(o,u,E,x,A){if(this.debug||this.retry_debug){var I=new ve(x,A+1);console.log("reportAttemptingFullContext decision="+o.decision+":"+E+", input="+this.parser.getTokenStream().getText(I))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,o,x,A,u,E)}},{key:"reportContextSensitivity",value:function(o,u,E,x,A){if(this.debug||this.retry_debug){var I=new ve(x,A+1);console.log("reportContextSensitivity decision="+o.decision+":"+E+", input="+this.parser.getTokenStream().getText(I))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,o,x,A,u,E)}},{key:"reportAmbiguity",value:function(o,u,E,x,A,I,te){if(this.debug||this.retry_debug){var we=new ve(E,x+1);console.log("reportAmbiguity "+I+":"+te+", input="+this.parser.getTokenStream().getText(we))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,o,E,x,A,I,te)}}],m&&bg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Oi);function Ha(f){return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ha(f)}function vg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ha(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ha(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ha(p)==="symbol"?p:String(p)),s)}var p}var Im=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f),this.cache=new Ji}var i,m;return i=f,(m=[{key:"add",value:function(s){if(s===it.EMPTY)return it.EMPTY;var p=this.cache.get(s)||null;return p!==null?p:(this.cache.set(s,s),s)}},{key:"get",value:function(s){return this.cache.get(s)||null}},{key:"length",get:function(){return this.cache.length}}])&&vg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const Eg={ATN:mn,ATNDeserializer:hh,LexerATNSimulator:Vs,ParserATNSimulator:Nm,PredictionMode:Kn,PredictionContextCache:Im};function Ga(f){return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ga(f)}function Sg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ga(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ga(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ga(p)==="symbol"?p:String(p)),s)}var p}var Ph=function(){function f(s,p,l){(function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")})(this,f),this.dfa=s,this.literalNames=p||[],this.symbolicNames=l||[]}var i,m;return i=f,(m=[{key:"toString",value:function(){if(this.dfa.s0===null)return null;for(var s="",p=this.dfa.sortedStates(),l=0;l<p.length;l++){var _=p[l];if(_.edges!==null)for(var o=_.edges.length,u=0;u<o;u++){var E=_.edges[u]||null;E!==null&&E.stateNumber!==2147483647&&(s=(s=(s=(s=(s=(s=s.concat(this.getStateString(_))).concat("-")).concat(this.getEdgeLabel(u))).concat("->")).concat(this.getStateString(E))).concat(`
9
- `))}}return s.length===0?null:s}},{key:"getEdgeLabel",value:function(s){return s===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[s-1]||this.symbolicNames[s-1]:String.fromCharCode(s-1)}},{key:"getStateString",value:function(s){var p=(s.isAcceptState?":":"")+"s"+s.stateNumber+(s.requiresFullContext?"^":"");return s.isAcceptState?s.predicates!==null?p+"=>"+B(s.predicates):p+"=>"+s.prediction.toString():p}}])&&Sg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Hs(f){return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Hs(f)}function Tg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Hs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Hs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Hs(p)==="symbol"?p:String(p)),s)}var p}function Fh(f,i){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Fh(f,i)}function $c(f){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},$c(f)}var Pm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Fh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=$c(s);if(p){var E=$c(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Hs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){return function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,o,null)}return i=_,(m=[{key:"getEdgeLabel",value:function(o){return"'"+String.fromCharCode(o)+"'"}}])&&Tg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Ph);function Ka(f){return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ka(f)}function Ag(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ka(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ka(p)==="symbol"?p:String(p)),s)}var p}var Fm=function(){function f(s,p){if(function(_,o){if(!(_ instanceof o))throw new TypeError("Cannot call a class as a function")}(this,f),p===void 0&&(p=0),this.atnStartState=s,this.decision=p,this._states=new g,this.s0=null,this.precedenceDfa=!1,s instanceof Uo&&s.isPrecedenceDecision){this.precedenceDfa=!0;var l=new Vo(null,new Ur);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}}var i,m;return i=f,(m=[{key:"getPrecedenceStartState",value:function(s){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return s<0||s>=this.s0.edges.length?null:this.s0.edges[s]||null}},{key:"setPrecedenceStartState",value:function(s,p){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";s<0||(this.s0.edges[s]=p)}},{key:"setPrecedenceDfa",value:function(s){if(this.precedenceDfa!==s){if(this._states=new g,s){var p=new Vo(null,new Ur);p.edges=[],p.isAcceptState=!1,p.requiresFullContext=!1,this.s0=p}else this.s0=null;this.precedenceDfa=s}}},{key:"sortedStates",value:function(){return this._states.values().sort(function(s,p){return s.stateNumber-p.stateNumber})}},{key:"toString",value:function(s,p){return s=s||null,p=p||null,this.s0===null?"":new Ph(this,s,p).toString()}},{key:"toLexerString",value:function(){return this.s0===null?"":new Pm(this).toString()}},{key:"states",get:function(){return this._states}}])&&Ag(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();const xg={DFA:Fm,DFASerializer:Ph,LexerDFASerializer:Pm,PredPrediction:Rm},Cg={PredictionContext:it},Og={Interval:ve,IntervalSet:ie};function za(f){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},za(f)}function kg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),za(p)==="symbol"?p:String(p)),s)}var p}var Lh=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}},{key:"enterEveryRule",value:function(s){}},{key:"exitEveryRule",value:function(s){}}])&&kg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Wa(f){return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Wa(f)}function Dg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Wa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Wa(p)==="symbol"?p:String(p)),s)}var p}var Lm=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"visit",value:function(s){return Array.isArray(s)?s.map(function(p){return p.accept(this)},this):s.accept(this)}},{key:"visitChildren",value:function(s){return s.children?this.visit(s.children):null}},{key:"visitTerminal",value:function(s){}},{key:"visitErrorNode",value:function(s){}}])&&Dg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function Xa(f){return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xa(f)}function wg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Xa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xa(p)==="symbol"?p:String(p)),s)}var p}var Vc=function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"walk",value:function(s,p){if(p instanceof Xr||p.isErrorNode!==void 0&&p.isErrorNode())s.visitErrorNode(p);else if(p instanceof sn)s.visitTerminal(p);else{this.enterRule(s,p);for(var l=0;l<p.getChildCount();l++){var _=p.getChild(l);this.walk(s,_)}this.exitRule(s,p)}}},{key:"enterRule",value:function(s,p){var l=p.ruleContext;s.enterEveryRule(l),l.enterRule(s)}},{key:"exitRule",value:function(s,p){var l=p.ruleContext;l.exitRule(s),s.exitEveryRule(l)}}])&&wg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();Vc.DEFAULT=new Vc;const Rg={Trees:Xu,RuleNode:Fe,ErrorNode:Xr,TerminalNode:sn,ParseTreeListener:Lh,ParseTreeVisitor:Lm,ParseTreeWalker:Vc};function Mh(f){return Mh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Mh(f)}function Bh(f,i){return Bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Bh(f,i)}function jc(f){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},jc(f)}var qa=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Bh(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=jc(m);if(s){var u=jc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Mh(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(_){var o;return function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,l),(o=p.call(this,{message:"",recognizer:_,input:_.getInputStream(),ctx:_._ctx})).offendingToken=_.getCurrentToken(),o}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}($o);function Uh(f){return Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Uh(f)}function $h(f,i){return $h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},$h(f,i)}function Hc(f){return Hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Hc(f)}var Vh=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&$h(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Hc(m);if(s){var u=Hc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Uh(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(_,o,u){var E;(function(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")})(this,l),E=p.call(this,{message:Ng(o,u||null),recognizer:_,input:_.getInputStream(),ctx:_._ctx});var x=_._interp.atn.states[_.state].transitions[0];return x instanceof hm?(E.ruleIndex=x.ruleIndex,E.predicateIndex=x.predIndex):(E.ruleIndex=0,E.predicateIndex=0),E.predicate=o,E.offendingToken=_.getCurrentToken(),E}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}($o);function Ng(f,i){return i!==null?i:"failed predicate: {"+f+"}?"}function Gs(f){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Gs(f)}function Ig(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Gs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Gs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Gs(p)==="symbol"?p:String(p)),s)}var p}function jh(f,i){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},jh(f,i)}function Gc(f){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Gc(f)}var Mm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&jh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Gc(s);if(p){var E=Gc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Gs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),o=o||!0,(u=l.call(this)).exactOnly=o,u}return i=_,m=[{key:"reportAmbiguity",value:function(o,u,E,x,A,I,te){if(!this.exactOnly||A){var we="reportAmbiguity d="+this.getDecisionDescription(o,u)+": ambigAlts="+this.getConflictingAlts(I,te)+", input='"+o.getTokenStream().getText(new ve(E,x))+"'";o.notifyErrorListeners(we)}}},{key:"reportAttemptingFullContext",value:function(o,u,E,x,A,I){var te="reportAttemptingFullContext d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new ve(E,x))+"'";o.notifyErrorListeners(te)}},{key:"reportContextSensitivity",value:function(o,u,E,x,A,I){var te="reportContextSensitivity d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new ve(E,x))+"'";o.notifyErrorListeners(te)}},{key:"getDecisionDescription",value:function(o,u){var E=u.decision,x=u.atnStartState.ruleIndex,A=o.ruleNames;if(x<0||x>=A.length)return""+E;var I=A[x]||null;return I===null||I.length===0?""+E:"".concat(E," (").concat(I,")")}},{key:"getConflictingAlts",value:function(o,u){if(o!==null)return o;for(var E=new Br,x=0;x<u.items.length;x++)E.add(u.items[x].alt);return"{".concat(E.values().join(", "),"}")}}],m&&Ig(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Ra);function Hh(f){return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Hh(f)}function Bm(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function Gh(f){var i=typeof Map=="function"?new Map:void 0;return Gh=function(m){if(m===null||(s=m,Function.toString.call(s).indexOf("[native code]")===-1))return m;var s;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(i!==void 0){if(i.has(m))return i.get(m);i.set(m,p)}function p(){return Kh(m,arguments,Ja(this).constructor)}return p.prototype=Object.create(m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),Ya(p,m)},Gh(f)}function Kh(f,i,m){return Kh=Um()?Reflect.construct.bind():function(s,p,l){var _=[null];_.push.apply(_,p);var o=new(Function.bind.apply(s,_));return l&&Ya(o,l.prototype),o},Kh.apply(null,arguments)}function Um(){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 Ya(f,i){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Ya(f,i)}function Ja(f){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ja(f)}var Pg=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Ya(_,o)})(l,f);var i,m,s,p=(m=l,s=Um(),function(){var _,o=Ja(m);if(s){var u=Ja(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(Hh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bm(E)}(this,_)});function l(){var _;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,l),_=p.call(this),Error.captureStackTrace(Bm(_),l),_}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(Gh(Error));function Za(f){return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Za(f)}function Fg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Za(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Za(p)==="symbol"?p:String(p)),s)}var p}function Ks(f){return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ks(f)}function Lg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ks(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ks(p)==="symbol"?p:String(p)),s)}var p}function zh(f,i){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},zh(f,i)}function Kc(f){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Kc(f)}var Wh=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Kc(s);if(p){var E=Kc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ks(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){var o;return function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,_),(o=l.call(this)).errorRecoveryMode=!1,o.lastErrorIndex=-1,o.lastErrorStates=null,o.nextTokensContext=null,o.nextTokenState=0,o}return i=_,m=[{key:"reset",value:function(o){this.endErrorCondition(o)}},{key:"beginErrorCondition",value:function(o){this.errorRecoveryMode=!0}},{key:"inErrorRecoveryMode",value:function(o){return this.errorRecoveryMode}},{key:"endErrorCondition",value:function(o){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}},{key:"reportMatch",value:function(o){this.endErrorCondition(o)}},{key:"reportError",value:function(o,u){this.inErrorRecoveryMode(o)||(this.beginErrorCondition(o),u instanceof Bc?this.reportNoViableAlternative(o,u):u instanceof qa?this.reportInputMismatch(o,u):u instanceof Vh?this.reportFailedPredicate(o,u):(console.log("unknown recognition error type: "+u.constructor.name),console.log(u.stack),o.notifyErrorListeners(u.getOffendingToken(),u.getMessage(),u)))}},{key:"recover",value:function(o,u){this.lastErrorIndex===o.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(o.state)>=0&&o.consume(),this.lastErrorIndex=o._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(o.state);var E=this.getErrorRecoverySet(o);this.consumeUntil(o,E)}},{key:"sync",value:function(o){if(!this.inErrorRecoveryMode(o)){var u=o._interp.atn.states[o.state],E=o.getTokenStream().LA(1),x=o.atn.nextTokens(u);if(x.contains(E))return this.nextTokensContext=null,void(this.nextTokenState=be.INVALID_STATE_NUMBER);if(x.contains(n.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=o._ctx,this.nextTokensState=o._stateNumber);else switch(u.stateType){case be.BLOCK_START:case be.STAR_BLOCK_START:case be.PLUS_BLOCK_START:case be.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(o)!==null)return;throw new qa(o);case be.PLUS_LOOP_BACK:case be.STAR_LOOP_BACK:this.reportUnwantedToken(o);var A=new ie;A.addSet(o.getExpectedTokens());var I=A.addSet(this.getErrorRecoverySet(o));this.consumeUntil(o,I)}}}},{key:"reportNoViableAlternative",value:function(o,u){var E,x=o.getTokenStream();E=x!==null?u.startToken.type===n.EOF?"<EOF>":x.getText(new ve(u.startToken.tokenIndex,u.offendingToken.tokenIndex)):"<unknown input>";var A="no viable alternative at input "+this.escapeWSAndQuote(E);o.notifyErrorListeners(A,u.offendingToken,u)}},{key:"reportInputMismatch",value:function(o,u){var E="mismatched input "+this.getTokenErrorDisplay(u.offendingToken)+" expecting "+u.getExpectedTokens().toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(E,u.offendingToken,u)}},{key:"reportFailedPredicate",value:function(o,u){var E="rule "+o.ruleNames[o._ctx.ruleIndex]+" "+u.message;o.notifyErrorListeners(E,u.offendingToken,u)}},{key:"reportUnwantedToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),E="extraneous input "+this.getTokenErrorDisplay(u)+" expecting "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(E,u,null)}}},{key:"reportMissingToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),E="missing "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames)+" at "+this.getTokenErrorDisplay(u);o.notifyErrorListeners(E,u,null)}}},{key:"recoverInline",value:function(o){var u=this.singleTokenDeletion(o);if(u!==null)return o.consume(),u;if(this.singleTokenInsertion(o))return this.getMissingSymbol(o);throw new qa(o)}},{key:"singleTokenInsertion",value:function(o){var u=o.getTokenStream().LA(1),E=o._interp.atn,x=E.states[o.state].transitions[0].target;return!!E.nextTokens(x,o._ctx).contains(u)&&(this.reportMissingToken(o),!0)}},{key:"singleTokenDeletion",value:function(o){var u=o.getTokenStream().LA(2);if(this.getExpectedTokens(o).contains(u)){this.reportUnwantedToken(o),o.consume();var E=o.getCurrentToken();return this.reportMatch(o),E}return null}},{key:"getMissingSymbol",value:function(o){var u,E=o.getCurrentToken(),x=this.getExpectedTokens(o).first();u=x===n.EOF?"<missing EOF>":"<missing "+o.literalNames[x]+">";var A=E,I=o.getTokenStream().LT(-1);return A.type===n.EOF&&I!==null&&(A=I),o.getTokenFactory().create(A.source,x,u,n.DEFAULT_CHANNEL,-1,-1,A.line,A.column)}},{key:"getExpectedTokens",value:function(o){return o.getExpectedTokens()}},{key:"getTokenErrorDisplay",value:function(o){if(o===null)return"<no token>";var u=o.text;return u===null&&(u=o.type===n.EOF?"<EOF>":"<"+o.type+">"),this.escapeWSAndQuote(u)}},{key:"escapeWSAndQuote",value:function(o){return"'"+(o=(o=(o=o.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}},{key:"getErrorRecoverySet",value:function(o){for(var u=o._interp.atn,E=o._ctx,x=new ie;E!==null&&E.invokingState>=0;){var A=u.states[E.invokingState].transitions[0],I=u.nextTokens(A.followState);x.addSet(I),E=E.parentCtx}return x.removeOne(n.EPSILON),x}},{key:"consumeUntil",value:function(o,u){for(var E=o.getTokenStream().LA(1);E!==n.EOF&&!u.contains(E);)o.consume(),E=o.getTokenStream().LA(1)}}],m&&Lg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(function(){function f(){(function(s,p){if(!(s instanceof p))throw new TypeError("Cannot call a class as a function")})(this,f)}var i,m;return i=f,(m=[{key:"reset",value:function(s){}},{key:"recoverInline",value:function(s){}},{key:"recover",value:function(s,p){}},{key:"sync",value:function(s){}},{key:"inErrorRecoveryMode",value:function(s){}},{key:"reportError",value:function(s){}}])&&Fg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}());function zs(f){return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zs(f)}function Mg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),zs(p)==="symbol"?p:String(p)),s)}var p}function Xh(f,i){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Xh(f,i)}function zc(f){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},zc(f)}var $m=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Xh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=zc(s);if(p){var E=zc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(zs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this)}return i=_,m=[{key:"recover",value:function(o,u){for(var E=o._ctx;E!==null;)E.exception=u,E=E.parentCtx;throw new Pg(u)}},{key:"recoverInline",value:function(o){this.recover(o,new qa(o))}},{key:"sync",value:function(o){}}],m&&Mg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Wh);const Bg={RecognitionException:$o,NoViableAltException:Bc,LexerNoViableAltException:Sh,InputMismatchException:qa,FailedPredicateException:Vh,DiagnosticErrorListener:Mm,BailErrorStrategy:$m,DefaultErrorStrategy:Wh,ErrorListener:Ra};function Qa(f){return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qa(f)}function Ug(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Qa(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qa(p)==="symbol"?p:String(p)),s)}var p}var eu=function(){function f(s,p){if(function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,f),this.name="<empty>",this.strdata=s,this.decodeToUnicodeCodePoints=p||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(var l=0;l<this.strdata.length;){var _=this.strdata.codePointAt(l);this.data.push(_),l+=_<=65535?1:2}else{this.data=new Array(this.strdata.length);for(var o=0;o<this.strdata.length;o++)this.data[o]=this.strdata.charCodeAt(o)}this._size=this.data.length}var i,m;return i=f,(m=[{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(s){if(s===0)return 0;s<0&&(s+=1);var p=this._index+s-1;return p<0||p>=this._size?n.EOF:this.data[p]}},{key:"LT",value:function(s){return this.LA(s)}},{key:"mark",value:function(){return-1}},{key:"release",value:function(s){}},{key:"seek",value:function(s){s<=this._index?this._index=s:this._index=Math.min(s,this._size)}},{key:"getText",value:function(s,p){if(p>=this._size&&(p=this._size-1),s>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var l="",_=s;_<=p;_++)l+=String.fromCodePoint(this.data[_]);return l}return this.strdata.slice(s,p+1)}},{key:"toString",value:function(){return this.strdata}},{key:"index",get:function(){return this._index}},{key:"size",get:function(){return this._size}}])&&Ug(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),f}();function qh(f){return qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qh(f)}function Yh(f,i){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Yh(f,i)}function Wc(f){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Wc(f)}var tu=function(f){(function(_,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(o&&o.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),o&&Yh(_,o)})(l,f);var i,m,s,p=(m=l,s=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 _,o=Wc(m);if(s){var u=Wc(this).constructor;_=Reflect.construct(o,arguments,u)}else _=o.apply(this,arguments);return function(E,x){if(x&&(qh(x)==="object"||typeof x=="function"))return x;if(x!==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}(E)}(this,_)});function l(_,o){return function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,l),p.call(this,_,o)}return i=l,Object.defineProperty(i,"prototype",{writable:!1}),i}(eu),Vm=Or(92);function Ws(f){return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ws(f)}function $g(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ws(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ws(p)==="symbol"?p:String(p)),s)}var p}function Jh(f,i){return Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Jh(f,i)}function Xc(f){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Xc(f)}var jm=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Hm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Jh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Xc(s);if(p){var E=Xc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ws(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u,E){var x;if(function(I,te){if(!(I instanceof te))throw new TypeError("Cannot call a class as a function")}(this,_),!jm)throw new Error("FileStream is only available when running in Node!");var A=Vm.readFileSync(o,u||"utf-8");return(x=l.call(this,A,E)).fileName=o,x}return i=_,m=[{key:"fromPath",value:function(o,u,E){if(!jm)throw new Error("FileStream is only available when running in Node!");Vm.readFile(o,u,function(x,A){var I=null;A!==null&&(I=new eu(A,!0)),E(x,I)})}}],m&&$g(i,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(tu);const Gm={fromString:function(f){return new eu(f,!0)},fromBlob:function(f,i,m,s){var p=new window.FileReader;p.onload=function(l){var _=new eu(l.target.result,!0);m(_)},p.onerror=s,p.readAsText(f,i)},fromBuffer:function(f,i){return new eu(f.toString(i),!0)},fromPath:function(f,i,m){Hm.fromPath(f,i,m)},fromPathSync:function(f,i){return new Hm(f,i)}},Vg={arrayToString:B,stringToCharArray:function(f){for(var i=new Uint16Array(f.length),m=0;m<f.length;m++)i[m]=f.charCodeAt(m);return i}};function nu(f){return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},nu(f)}function Km(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(nu(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(nu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),nu(p)==="symbol"?p:String(p)),s)}var p}function jg(f,i,m){return i&&Km(f.prototype,i),m&&Km(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function Xs(f){return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Xs(f)}function Hg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Xs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Xs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Xs(p)==="symbol"?p:String(p)),s)}var p}function Zh(f,i){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Zh(f,i)}function qc(f){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},qc(f)}var zm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=qc(s);if(p){var E=qc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Xs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this)).tokenSource=o,u.tokens=[],u.index=-1,u.fetchedEOF=!1,u}return i=_,(m=[{key:"mark",value:function(){return 0}},{key:"release",value:function(o){}},{key:"reset",value:function(){this.seek(0)}},{key:"seek",value:function(o){this.lazyInit(),this.index=this.adjustSeekIndex(o)}},{key:"size",get:function(){return this.tokens.length}},{key:"get",value:function(o){return this.lazyInit(),this.tokens[o]}},{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(o){var u=o-this.tokens.length+1;return!(u>0)||this.fetch(u)>=u}},{key:"fetch",value:function(o){if(this.fetchedEOF)return 0;for(var u=0;u<o;u++){var E=this.tokenSource.nextToken();if(E.tokenIndex=this.tokens.length,this.tokens.push(E),E.type===n.EOF)return this.fetchedEOF=!0,u+1}return o}},{key:"getTokens",value:function(o,u,E){if(E===void 0&&(E=null),o<0||u<0)return null;this.lazyInit();var x=[];u>=this.tokens.length&&(u=this.tokens.length-1);for(var A=o;A<u;A++){var I=this.tokens[A];if(I.type===n.EOF)break;(E===null||E.contains(I.type))&&x.push(I)}return x}},{key:"LA",value:function(o){return this.LT(o).type}},{key:"LB",value:function(o){return this.index-o<0?null:this.tokens[this.index-o]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);var u=this.index+o-1;return this.sync(u),u>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]}},{key:"adjustSeekIndex",value:function(o){return o}},{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(o){this.tokenSource=o,this.tokens=[],this.index=-1,this.fetchedEOF=!1}},{key:"nextTokenOnChannel",value:function(o,u){if(this.sync(o),o>=this.tokens.length)return-1;for(var E=this.tokens[o];E.channel!==this.channel;){if(E.type===n.EOF)return-1;o+=1,this.sync(o),E=this.tokens[o]}return o}},{key:"previousTokenOnChannel",value:function(o,u){for(;o>=0&&this.tokens[o].channel!==u;)o-=1;return o}},{key:"getHiddenTokensToRight",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var E=this.nextTokenOnChannel(o+1,sr.DEFAULT_TOKEN_CHANNEL),x=o+1,A=E===-1?this.tokens.length-1:E;return this.filterForChannel(x,A,u)}},{key:"getHiddenTokensToLeft",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var E=this.previousTokenOnChannel(o-1,sr.DEFAULT_TOKEN_CHANNEL);if(E===o-1)return null;var x=E+1,A=o-1;return this.filterForChannel(x,A,u)}},{key:"filterForChannel",value:function(o,u,E){for(var x=[],A=o;A<u+1;A++){var I=this.tokens[A];E===-1?I.channel!==sr.DEFAULT_TOKEN_CHANNEL&&x.push(I):I.channel===E&&x.push(I)}return x.length===0?null:x}},{key:"getSourceName",value:function(){return this.tokenSource.getSourceName()}},{key:"getText",value:function(o){this.lazyInit(),this.fill(),o||(o=new ve(0,this.tokens.length-1));var u=o.start;u instanceof n&&(u=u.tokenIndex);var E=o.stop;if(E instanceof n&&(E=E.tokenIndex),u===null||E===null||u<0||E<0)return"";E>=this.tokens.length&&(E=this.tokens.length-1);for(var x="",A=u;A<E+1;A++){var I=this.tokens[A];if(I.type===n.EOF)break;x+=I.text}return x}},{key:"fill",value:function(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}])&&Hg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(jg(function f(){(function(i,m){if(!(i instanceof m))throw new TypeError("Cannot call a class as a function")})(this,f)}));function qs(f){return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},qs(f)}function Gg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),qs(p)==="symbol"?p:String(p)),s)}var p}function Qh(f,i){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},Qh(f,i)}function Yc(f){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Yc(f)}Object.defineProperty(zm,"size",{get:function(){return this.tokens.length}});var Wm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Qh(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Yc(s);if(p){var E=Yc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(qs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o)).channel=u===void 0?n.DEFAULT_CHANNEL:u,E}return i=_,(m=[{key:"adjustSeekIndex",value:function(o){return this.nextTokenOnChannel(o,this.channel)}},{key:"LB",value:function(o){if(o===0||this.index-o<0)return null;for(var u=this.index,E=1;E<=o;)u=this.previousTokenOnChannel(u-1,this.channel),E+=1;return u<0?null:this.tokens[u]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);for(var u=this.index,E=1;E<o;)this.sync(u+1)&&(u=this.nextTokenOnChannel(u+1,this.channel)),E+=1;return this.tokens[u]}},{key:"getNumberOfOnChannelTokens",value:function(){var o=0;this.fill();for(var u=0;u<this.tokens.length;u++){var E=this.tokens[u];if(E.channel===this.channel&&(o+=1),E.type===n.EOF)break}return o}}])&&Gg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(zm);function Ys(f){return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Ys(f)}function Kg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Ys(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Ys(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Ys(p)==="symbol"?p:String(p)),s)}var p}function ep(f,i){return ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ep(f,i)}function Jc(f){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Jc(f)}var zg=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ep(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Jc(s);if(p){var E=Jc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Ys(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this)).parser=o,u}return i=_,(m=[{key:"enterEveryRule",value:function(o){console.log("enter "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},{key:"visitTerminal",value:function(o){console.log("consume "+o.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}},{key:"exitEveryRule",value:function(o){console.log("exit "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}])&&Kg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Lh);function Js(f){return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Js(f)}function Wg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Js(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Js(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Js(p)==="symbol"?p:String(p)),s)}var p}function tp(f,i){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},tp(f,i)}function Zc(f){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Zc(f)}var np=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&tp(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Zc(s);if(p){var E=Zc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Js(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this))._input=null,u._errHandler=new Wh,u._precedenceStack=[],u._precedenceStack.push(0),u._ctx=null,u.buildParseTrees=!0,u._tracer=null,u._parseListeners=null,u._syntaxErrors=0,u.setInputStream(o),u}return i=_,m=[{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(o){var u=this.getCurrentToken();return u.type===o?(this._errHandler.reportMatch(this),this.consume()):(u=this._errHandler.recoverInline(this),this.buildParseTrees&&u.tokenIndex===-1&&this._ctx.addErrorNode(u)),u}},{key:"matchWildcard",value:function(){var o=this.getCurrentToken();return o.type>0?(this._errHandler.reportMatch(this),this.consume()):(o=this._errHandler.recoverInline(this),this.buildParseTrees&&o.tokenIndex===-1&&this._ctx.addErrorNode(o)),o}},{key:"getParseListeners",value:function(){return this._parseListeners||[]}},{key:"addParseListener",value:function(o){if(o===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(o)}},{key:"removeParseListener",value:function(o){if(this._parseListeners!==null){var u=this._parseListeners.indexOf(o);u>=0&&this._parseListeners.splice(u,1),this._parseListeners.length===0&&(this._parseListeners=null)}}},{key:"removeParseListeners",value:function(){this._parseListeners=null}},{key:"triggerEnterRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.forEach(function(u){u.enterEveryRule(o),o.enterRule(u)})}}},{key:"triggerExitRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(u){o.exitRule(u),u.exitEveryRule(o)})}}},{key:"getTokenFactory",value:function(){return this._input.tokenSource._factory}},{key:"setTokenFactory",value:function(o){this._input.tokenSource._factory=o}},{key:"getATNWithBypassAlts",value:function(){var o=this.getSerializedATN();if(o===null)throw"The current parser does not support an ATN with bypass alternatives.";var u=this.bypassAltsAtnCache[o];if(u===null){var E=new Oa;E.generateRuleBypassTransitions=!0,u=new hh(E).deserialize(o),this.bypassAltsAtnCache[o]=u}return u}},{key:"getInputStream",value:function(){return this.getTokenStream()}},{key:"setInputStream",value:function(o){this.setTokenStream(o)}},{key:"getTokenStream",value:function(){return this._input}},{key:"setTokenStream",value:function(o){this._input=null,this.reset(),this._input=o}},{key:"syntaxErrorsCount",get:function(){return this._syntaxErrors}},{key:"getCurrentToken",value:function(){return this._input.LT(1)}},{key:"notifyErrorListeners",value:function(o,u,E){E=E||null,(u=u||null)===null&&(u=this.getCurrentToken()),this._syntaxErrors+=1;var x=u.line,A=u.column;this.getErrorListenerDispatch().syntaxError(this,u,x,A,o,E)}},{key:"consume",value:function(){var o=this.getCurrentToken();o.type!==n.EOF&&this.getInputStream().consume();var u,E=this._parseListeners!==null&&this._parseListeners.length>0;return(this.buildParseTrees||E)&&((u=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(o):this._ctx.addTokenNode(o)).invokingState=this.state,E&&this._parseListeners.forEach(function(x){u instanceof Xr||u.isErrorNode!==void 0&&u.isErrorNode()?x.visitErrorNode(u):u instanceof sn&&x.visitTerminal(u)})),o}},{key:"addContextToParseTree",value:function(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}},{key:"enterRule",value:function(o,u,E){this.state=u,this._ctx=o,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(o,u){o.setAltNumber(u),this.buildParseTrees&&this._ctx!==o&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(o)),this._ctx=o}},{key:"getPrecedence",value:function(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}},{key:"enterRecursionRule",value:function(o,u,E,x){this.state=u,this._precedenceStack.push(x),this._ctx=o,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}},{key:"pushNewRecursionContext",value:function(o,u,E){var x=this._ctx;x.parentCtx=o,x.invokingState=u,x.stop=this._input.LT(-1),this._ctx=o,this._ctx.start=x.start,this.buildParseTrees&&this._ctx.addChild(x),this.triggerEnterRuleEvent()}},{key:"unrollRecursionContexts",value:function(o){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var u=this._ctx,E=this.getParseListeners();if(E!==null&&E.length>0)for(;this._ctx!==o;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=o;u.parentCtx=o,this.buildParseTrees&&o!==null&&o.addChild(u)}},{key:"getInvokingContext",value:function(o){for(var u=this._ctx;u!==null;){if(u.ruleIndex===o)return u;u=u.parentCtx}return null}},{key:"precpred",value:function(o,u){return u>=this._precedenceStack[this._precedenceStack.length-1]}},{key:"inContext",value:function(o){return!1}},{key:"isExpectedToken",value:function(o){var u=this._interp.atn,E=this._ctx,x=u.states[this.state],A=u.nextTokens(x);if(A.contains(o))return!0;if(!A.contains(n.EPSILON))return!1;for(;E!==null&&E.invokingState>=0&&A.contains(n.EPSILON);){var I=u.states[E.invokingState].transitions[0];if((A=u.nextTokens(I.followState)).contains(o))return!0;E=E.parentCtx}return!(!A.contains(n.EPSILON)||o!==n.EOF)}},{key:"getExpectedTokens",value:function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}},{key:"getExpectedTokensWithinCurrentRule",value:function(){var o=this._interp.atn,u=o.states[this.state];return o.nextTokens(u)}},{key:"getRuleIndex",value:function(o){var u=this.getRuleIndexMap()[o];return u!==null?u:-1}},{key:"getRuleInvocationStack",value:function(o){(o=o||null)===null&&(o=this._ctx);for(var u=[];o!==null;){var E=o.ruleIndex;E<0?u.push("n/a"):u.push(this.ruleNames[E]),o=o.parentCtx}return u}},{key:"getDFAStrings",value:function(){return this._interp.decisionToDFA.toString()}},{key:"dumpDFA",value:function(){for(var o=!1,u=0;u<this._interp.decisionToDFA.length;u++){var E=this._interp.decisionToDFA[u];E.states.length>0&&(o&&console.log(),this.printer.println("Decision "+E.decision+":"),this.printer.print(E.toString(this.literalNames,this.symbolicNames)),o=!0)}}},{key:"getSourceName",value:function(){return this._input.sourceName}},{key:"setTrace",value:function(o){o?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new zg(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}],m&&Wg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Dc);function Zs(f){return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Zs(f)}function Xg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Zs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Zs(p)==="symbol"?p:String(p)),s)}var p}function rp(f,i){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},rp(f,i)}function Qc(f){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Qc(f)}np.bypassAltsAtnCache={};var Xm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&rp(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=Qc(s);if(p){var E=Qc(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Zs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){var u;return function(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,_),(u=l.call(this)).parentCtx=null,u.symbol=o,u}return i=_,(m=[{key:"getChild",value:function(o){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 ve.INVALID_INTERVAL;var o=this.symbol.tokenIndex;return new ve(o,o)}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitTerminal(this)}},{key:"getText",value:function(){return this.symbol.text}},{key:"toString",value:function(){return this.symbol.type===n.EOF?"<EOF>":this.symbol.text}}])&&Xg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(sn);function Qs(f){return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Qs(f)}function qg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(Qs(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(Qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),Qs(p)==="symbol"?p:String(p)),s)}var p}function ip(f,i){return ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},ip(f,i)}function el(f){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},el(f)}var qm=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ip(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=el(s);if(p){var E=el(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(Qs(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o){return function(u,E){if(!(u instanceof E))throw new TypeError("Cannot call a class as a function")}(this,_),l.call(this,o)}return i=_,(m=[{key:"isErrorNode",value:function(){return!0}},{key:"accept",value:function(o){return o.visitErrorNode(this)}}])&&qg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Xm);function ea(f){return ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ea(f)}function Yg(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,(p=function(l,_){if(ea(l)!=="object"||l===null)return l;var o=l[Symbol.toPrimitive];if(o!==void 0){var u=o.call(l,"string");if(ea(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)}(s.key),ea(p)==="symbol"?p:String(p)),s)}var p}function op(f,i){return op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},op(f,i)}function tl(f){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},tl(f)}var sp=function(f){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&op(o,u)})(_,f);var i,m,s,p,l=(s=_,p=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 o,u=tl(s);if(p){var E=tl(this).constructor;o=Reflect.construct(u,arguments,E)}else o=u.apply(this,arguments);return function(x,A){if(A&&(ea(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}(x)}(this,o)});function _(o,u){var E;return function(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}(this,_),(E=l.call(this,o,u)).children=null,E.start=null,E.stop=null,E.exception=null,E}return i=_,(m=[{key:"copyFrom",value:function(o){this.parentCtx=o.parentCtx,this.invokingState=o.invokingState,this.children=null,this.start=o.start,this.stop=o.stop,o.children&&(this.children=[],o.children.map(function(u){u instanceof qm&&(this.children.push(u),u.parentCtx=this)},this))}},{key:"enterRule",value:function(o){}},{key:"exitRule",value:function(o){}},{key:"addChild",value:function(o){return this.children===null&&(this.children=[]),this.children.push(o),o}},{key:"removeLastChild",value:function(){this.children!==null&&this.children.pop()}},{key:"addTokenNode",value:function(o){var u=new Xm(o);return this.addChild(u),u.parentCtx=this,u}},{key:"addErrorNode",value:function(o){var u=new qm(o);return this.addChild(u),u.parentCtx=this,u}},{key:"getChild",value:function(o,u){if(u=u||null,this.children===null||o<0||o>=this.children.length)return null;if(u===null)return this.children[o];for(var E=0;E<this.children.length;E++){var x=this.children[E];if(x instanceof u){if(o===0)return x;o-=1}}return null}},{key:"getToken",value:function(o,u){if(this.children===null||u<0||u>=this.children.length)return null;for(var E=0;E<this.children.length;E++){var x=this.children[E];if(x instanceof sn&&x.symbol.type===o){if(u===0)return x;u-=1}}return null}},{key:"getTokens",value:function(o){if(this.children===null)return[];for(var u=[],E=0;E<this.children.length;E++){var x=this.children[E];x instanceof sn&&x.symbol.type===o&&u.push(x)}return u}},{key:"getTypedRuleContext",value:function(o,u){return this.getChild(u,o)}},{key:"getTypedRuleContexts",value:function(o){if(this.children===null)return[];for(var u=[],E=0;E<this.children.length;E++){var x=this.children[E];x instanceof o&&u.push(x)}return u}},{key:"getChildCount",value:function(){return this.children===null?0:this.children.length}},{key:"getSourceInterval",value:function(){return this.start===null||this.stop===null?ve.INVALID_INTERVAL:new ve(this.start.tokenIndex,this.stop.tokenIndex)}}])&&Yg(i.prototype,m),Object.defineProperty(i,"prototype",{writable:!1}),_}(Yi);function ap(f,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(i&&i.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),i&&up(f,i)}function up(f,i){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,s){return m.__proto__=s,m},up(f,i)}function cp(f){var i=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 m,s=nl(f);if(i){var p=nl(this).constructor;m=Reflect.construct(s,arguments,p)}else m=s.apply(this,arguments);return function(l,_){if(_&&(ta(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(l)}(this,m)}}function nl(f){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},nl(f)}function ta(f){return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ta(f)}function na(f,i){var m=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!m){if(Array.isArray(f)||(m=function(u,E){if(u){if(typeof u=="string")return Ym(u,E);var x=Object.prototype.toString.call(u).slice(8,-1);return x==="Object"&&u.constructor&&(x=u.constructor.name),x==="Map"||x==="Set"?Array.from(u):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?Ym(u,E):void 0}}(f))||i&&f&&typeof f.length=="number"){m&&(f=m);var s=0,p=function(){};return{s:p,n:function(){return s>=f.length?{done:!0}:{done:!1,value:f[s++]}},e:function(u){throw u},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
10
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,_=!0,o=!1;return{s:function(){m=m.call(f)},n:function(){var u=m.next();return _=u.done,u},e:function(u){o=!0,l=u},f:function(){try{_||m.return==null||m.return()}finally{if(o)throw l}}}}function Ym(f,i){(i==null||i>f.length)&&(i=f.length);for(var m=0,s=new Array(i);m<i;m++)s[m]=f[m];return s}function ru(f,i){if(!(f instanceof i))throw new TypeError("Cannot call a class as a function")}function Jm(f,i){for(var m=0;m<i.length;m++){var s=i[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,Zm(s.key),s)}}function iu(f,i,m){return i&&Jm(f.prototype,i),m&&Jm(f,m),Object.defineProperty(f,"prototype",{writable:!1}),f}function Zm(f){var i=function(m,s){if(ta(m)!=="object"||m===null)return m;var p=m[Symbol.toPrimitive];if(p!==void 0){var l=p.call(m,"string");if(ta(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(f);return ta(i)==="symbol"?i:String(i)}Yi.EMPTY=new sp;var rl,il,lp,Qm=function(){function f(i){ru(this,f),this.tokens=i,this.programs=new Map}return iu(f,[{key:"getTokenStream",value:function(){return this.tokens}},{key:"insertAfter",value:function(i,m){var s,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(p),_=new t_(this.tokens,s,l.length,m);l.push(_)}},{key:"insertBefore",value:function(i,m){var s,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;s=typeof i=="number"?i:i.tokenIndex;var l=this.getProgram(p),_=new ra(this.tokens,s,l.length,m);l.push(_)}},{key:"replaceSingle",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;this.replace(i,i,m,s)}},{key:"replace",value:function(i,m,s){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f.DEFAULT_PROGRAM_NAME;if(typeof i!="number"&&(i=i.tokenIndex),typeof m!="number"&&(m=m.tokenIndex),i>m||i<0||m<0||m>=this.tokens.size)throw new RangeError("replace: range invalid: ".concat(i,"..").concat(m,"(size=").concat(this.tokens.size,")"));var l=this.getProgram(p),_=new ol(this.tokens,i,m,l.length,s);l.push(_)}},{key:"delete",value:function(i,m){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f.DEFAULT_PROGRAM_NAME;m===void 0&&(m=i),this.replace(i,m,null,s)}},{key:"getProgram",value:function(i){var m=this.programs.get(i);return m==null&&(m=this.initializeProgram(i)),m}},{key:"initializeProgram",value:function(i){var m=[];return this.programs.set(i,m),m}},{key:"getText",value:function(i){var m,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f.DEFAULT_PROGRAM_NAME;m=i instanceof ve?i:new ve(0,this.tokens.size-1),typeof i=="string"&&(s=i);var p=this.programs.get(s),l=m.start,_=m.stop;if(_>this.tokens.size-1&&(_=this.tokens.size-1),l<0&&(l=0),p==null||p.length===0)return this.tokens.getText(new ve(l,_));for(var o=[],u=this.reduceToSingleOperationPerIndex(p),E=l;E<=_&&E<this.tokens.size;){var x=u.get(E);u.delete(E);var A=this.tokens.get(E);x==null?(A.type!==n.EOF&&o.push(String(A.text)),E++):E=x.execute(o)}if(_===this.tokens.size-1){var I,te=na(u.values());try{for(te.s();!(I=te.n()).done;){var we=I.value;we.index>=this.tokens.size-1&&o.push(we.text.toString())}}catch(ke){te.e(ke)}finally{te.f()}}return o.join("")}},{key:"reduceToSingleOperationPerIndex",value:function(i){for(var m=0;m<i.length;m++){var s=i[m];if(s!=null&&s instanceof ol){var p,l=s,_=na(this.getKindOfOps(i,ra,m));try{for(_.s();!(p=_.n()).done;){var o=p.value;o.index===l.index?(i[o.instructionIndex]=void 0,l.text=o.text.toString()+(l.text!=null?l.text.toString():"")):o.index>l.index&&o.index<=l.lastIndex&&(i[o.instructionIndex]=void 0)}}catch(Cr){_.e(Cr)}finally{_.f()}var u,E=na(this.getKindOfOps(i,ol,m));try{for(E.s();!(u=E.n()).done;){var x=u.value;if(x.index>=l.index&&x.lastIndex<=l.lastIndex)i[x.instructionIndex]=void 0;else{var A=x.lastIndex<l.index||x.index>l.lastIndex;if(x.text!=null||l.text!=null||A){if(!A)throw new Error("replace op boundaries of ".concat(l," overlap with previous ").concat(x))}else i[x.instructionIndex]=void 0,l.index=Math.min(x.index,l.index),l.lastIndex=Math.max(x.lastIndex,l.lastIndex)}}}catch(Cr){E.e(Cr)}finally{E.f()}}}for(var I=0;I<i.length;I++){var te=i[I];if(te!=null&&te instanceof ra){var we,ke=te,He=na(this.getKindOfOps(i,ra,I));try{for(He.s();!(we=He.n()).done;){var st=we.value;st.index===ke.index&&(st instanceof t_?(ke.text=this.catOpText(st.text,ke.text),i[st.instructionIndex]=void 0):st instanceof ra&&(ke.text=this.catOpText(ke.text,st.text),i[st.instructionIndex]=void 0))}}catch(Cr){He.e(Cr)}finally{He.f()}var ze,_n=na(this.getKindOfOps(i,ol,I));try{for(_n.s();!(ze=_n.n()).done;){var pn=ze.value;if(ke.index!==pn.index){if(ke.index>=pn.index&&ke.index<=pn.lastIndex)throw new Error("insert op ".concat(ke," within boundaries of previous ").concat(pn))}else pn.text=this.catOpText(ke.text,pn.text),i[I]=void 0}}catch(Cr){_n.e(Cr)}finally{_n.f()}}}var zn,$r=new Map,wi=na(i);try{for(wi.s();!(zn=wi.n()).done;){var Ri=zn.value;if(Ri!=null){if($r.get(Ri.index)!=null)throw new Error("should only be one op per index");$r.set(Ri.index,Ri)}}}catch(Cr){wi.e(Cr)}finally{wi.f()}return $r}},{key:"catOpText",value:function(i,m){var s="",p="";return i!=null&&(s=i.toString()),m!=null&&(p=m.toString()),s+p}},{key:"getKindOfOps",value:function(i,m,s){return i.slice(0,s).filter(function(p){return p&&p instanceof m})}}]),f}();rl=Qm,lp="default",(il=Zm(il="DEFAULT_PROGRAM_NAME"))in rl?Object.defineProperty(rl,il,{value:lp,enumerable:!0,configurable:!0,writable:!0}):rl[il]=lp;var e_=function(){function f(i,m,s,p){ru(this,f),this.tokens=i,this.instructionIndex=s,this.index=m,this.text=p===void 0?"":p}return iu(f,[{key:"toString",value:function(){var i=this.constructor.name,m=i.indexOf("$");return"<"+(i=i.substring(m+1,i.length))+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}]),f}(),ra=function(f){ap(m,f);var i=cp(m);function m(s,p,l,_){return ru(this,m),i.call(this,s,p,l,_)}return iu(m,[{key:"execute",value:function(s){return this.text&&s.push(this.text.toString()),this.tokens.get(this.index).type!==n.EOF&&s.push(String(this.tokens.get(this.index).text)),this.index+1}}]),m}(e_),t_=function(f){ap(m,f);var i=cp(m);function m(s,p,l,_){return ru(this,m),i.call(this,s,p+1,l,_)}return iu(m)}(ra),ol=function(f){ap(m,f);var i=cp(m);function m(s,p,l,_,o){var u;return ru(this,m),(u=i.call(this,s,p,_,o)).lastIndex=l,u}return iu(m,[{key:"execute",value:function(s){return this.text&&s.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+'">'}}]),m}(e_);const Jg={atn:Eg,dfa:xg,context:Cg,misc:Og,tree:Rg,error:Bg,Token:n,CommonToken:Ia,CharStreams:Gm,CharStream:tu,InputStream:tu,CommonTokenStream:Wm,Lexer:sr,Parser:np,ParserRuleContext:sp,Interval:ve,IntervalSet:ie,LL1Analyzer:Bo,Utils:Vg,TokenStreamRewriter:Qm}})();var kr=Dt.dx,fp=Dt.q2;Dt.FO,Dt.xf,Dt.Gy;var n_=Dt.s4,r_=Dt.c7,hp=Dt._7;Dt.gp;var i_=Dt.cK,o_=Dt.zs,s_=Dt.AV;Dt.Xp,Dt.VS,Dt.ul;var a_=Dt.hW,u_=Dt.x1,di=Dt.z5;Dt.oN;var c_=Dt.TB;Dt.u1;var l_=Dt._b,f_=Dt.$F,Ye=Dt._T,pp=Dt.db,h_=Dt.Zx,Je=Dt._x;Dt.r8,Dt.JI,Dt.TP;var dp=Dt.WU;Dt.Nj,Dt.ZP;const M=class M extends l_{get grammarFileName(){return"tccScriptParser.g4"}get literalNames(){return M.literalNames}get symbolicNames(){return M.symbolicNames}get ruleNames(){return M.ruleNames}get serializedATN(){return M._serializedATN}createFailedPredicateException(e,n){return new o_(this,e,n)}constructor(e){super(e),this._interp=new f_(this,M._ATN,M.DecisionsToDFA,new pp)}program(){let e=new p_(this,this._ctx,this.state);this.enterRule(e,0,M.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(M.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 di(this)}this.state=108,this._errHandler.sync(this),n=this._input.LA(1)}this.state=109,this.match(M.EOF)}}catch(r){if(r instanceof Je)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 sl(this,this._ctx,this.state);this.enterRule(e,2,M.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(M.Comma)),this.state=115,this.match(M.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 Je)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 mp(this,this._ctx,this.state);this.enterRule(e,4,M.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!==kr.INVALID_ALT_NUMBER;)n===1&&(this.state=125,this.variableDeclarationStmt(),this.state=126,this.match(M.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 di(this)}}}catch(n){if(n instanceof Je)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 al(this,this._ctx,this.state);this.enterRule(e,6,M.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(M.Comma)),this.state=141,this.match(M.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=143,this.expressionBlockSequence();break}}catch(r){if(r instanceof Je)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 ul(this,this._ctx,this.state);this.enterRule(e,8,M.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 Je)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 _p(this,this._ctx,this.state);this.enterRule(e,10,M.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 Je)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 ia(this,this._ctx,this.state);this.enterRule(e,12,M.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(M.Comma)),this.state=158,this.match(M.NEWLINE);break;case 61:this.enterOuterAlt(e,2),this.state=160,this.blockLine();break;default:throw new di(this)}}catch(r){if(r instanceof Je)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 mo(this,this._ctx,this.state);this.enterRule(e,14,M.RULE_blockLine);let n;try{this.enterOuterAlt(e,1);{this.state=163,this.match(M.NEWLINE),this.state=164,this.match(M.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(M.DEDENT)}}catch(r){if(r instanceof Je)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 ou(this,this._ctx,this.state);this.enterRule(e,16,M.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!==kr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=176,this.match(M.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 Je)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 Ni(this,this._ctx,this.state);this.enterRule(e,18,M.RULE_variableDeclarationList);try{switch(this.state=194,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)){case 1:e=new m_(this,e),this.enterOuterAlt(e,1),this.state=186,this.varArrayDeclaration(),this.state=187,this.match(M.Assign),this.state=188,this.singleExpression(0);break;case 2:e=new d_(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 Je)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 cl(this,this._ctx,this.state);this.enterRule(e,20,M.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 Je)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 yp(this,this._ctx,this.state);this.enterRule(e,22,M.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!==kr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=202,this.match(M.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 Je)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 ll(this,this._ctx,this.state);this.enterRule(e,24,M.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!==kr.INVALID_ALT_NUMBER;)n===1&&(this.state=213,this.match(M.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 Je)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 gp(this,this._ctx,this.state);this.enterRule(e,26,M.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!==kr.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(M.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 di(this)}}}catch(n){if(n instanceof Je)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 fl(this,this._ctx,this.state);this.enterRule(e,28,M.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(M.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 Je)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 oa(this,this._ctx,this.state);this.enterRule(e,30,M.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 y_(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 __(this,e),this.enterOuterAlt(e,2);{for(this.state=252,this.match(M.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(M.Comma),this.state=255,this.identifier(),this.state=260,this._errHandler.sync(this),n=this._input.LA(1);this.state=261,this.match(M.CloseBracket)}break;default:throw new di(this)}}catch(r){if(r instanceof Je)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 su(this,this._ctx,this.state);this.enterRule(e,32,M.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 di(this)}}catch(n){if(n instanceof Je)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,a=new $e(this,this._ctx,r),c=a,h=34;this.enterRecursionRule(a,34,M.RULE_singleExpression,e);let d;try{let v;this.enterOuterAlt(a,1);{switch(this.state=283,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,29,this._ctx)){case 1:a=new D_(this,a),this._ctx=a,c=a,this.state=272,this.methodStmt();break;case 2:a=new C_(this,a),this._ctx=a,c=a,this.state=273,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=274,this.singleExpression(12);break;case 3:a=new O_(this,a),this._ctx=a,c=a,this.state=275,this.match(M.Not),this.state=276,this.singleExpression(11);break;case 4:a=new T_(this,a),this._ctx=a,c=a,this.state=277,this.name();break;case 5:a=new A_(this,a),this._ctx=a,c=a,this.state=278,this.literal();break;case 6:a=new g_(this,a),this._ctx=a,c=a,this.state=279,this.match(M.OpenParen),this.state=280,this.singleExpression(0),this.state=281,this.match(M.CloseParen);break}for(this._ctx.stop=this._input.LT(-1),this.state=316,this._errHandler.sync(this),v=this._interp.adaptivePredict(this._input,31,this._ctx);v!==2&&v!==kr.INVALID_ALT_NUMBER;){if(v===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),c=a,this.state=314,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,30,this._ctx)){case 1:{if(a=new R_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=285,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=286,d=this._input.LA(1),!(d&-32)&&1<<d&114688?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=287,this.singleExpression(11)}break;case 2:{if(a=new b_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=288,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=289,d=this._input.LA(1),d===12||d===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=290,this.singleExpression(10)}break;case 3:{if(a=new v_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=291,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=292,d=this._input.LA(1),!(d&-32)&&1<<d&3932160?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=293,this.singleExpression(9)}break;case 4:{if(a=new w_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=294,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=295,d=this._input.LA(1),d===22||d===23?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=296,this.singleExpression(8)}break;case 5:{if(a=new S_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=297,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=298,this.match(M.And),this.state=299,this.singleExpression(7)}break;case 6:{if(a=new x_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=300,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=301,this.match(M.Or),this.state=302,this.singleExpression(6)}break;case 7:{if(a=new E_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=303,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=304,this.match(M.QuestionMark),this.state=305,this.singleExpression(0),this.state=306,this.match(M.Colon),this.state=307,this.singleExpression(4)}break;case 8:{if(a=new k_(this,new $e(this,n,r)),this.pushNewRecursionContext(a,h,M.RULE_singleExpression),this.state=309,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=310,this.match(M.OpenBracket),this.state=311,this.singleExpression(0),this.state=312,this.match(M.CloseBracket)}break}this.state=318,this._errHandler.sync(this),v=this._interp.adaptivePredict(this._input,31,this._ctx)}}}catch(v){if(v instanceof Je)a.exception=v,this._errHandler.reportError(this,v),this._errHandler.recover(this,v);else throw v}finally{this.unrollRecursionContexts(n)}return a}brackethesized(){let e=new hl(this,this._ctx,this.state);this.enterRule(e,36,M.RULE_brackethesized);try{this.enterOuterAlt(e,1),this.state=319,this.match(M.OpenBracket),this.state=320,this.expressionSequence(),this.state=321,this.match(M.CloseBracket)}catch(n){if(n instanceof Je)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 bp(this,this._ctx,this.state);this.enterRule(e,38,M.RULE_arguments);let n;try{let r;this.enterOuterAlt(e,1);{if(this.state=323,this.match(M.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!==kr.INVALID_ALT_NUMBER;)r===1&&(this.state=325,this.match(M.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(M.Comma))}this.state=337,this.match(M.CloseParen)}}catch(r){if(r instanceof Je)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 pl(this,this._ctx,this.state);this.enterRule(e,40,M.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(M.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 di(this)}}}catch(n){if(n instanceof Je)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 vp(this,this._ctx,this.state);this.enterRule(e,42,M.RULE_ifStatement);let n;try{let r;this.enterOuterAlt(e,1);{for(this.state=348,this.match(M.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!==kr.INVALID_ALT_NUMBER;)r===1&&(this.state=351,this.match(M.Else),this.state=352,this.match(M.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(M.Else),this.state=362,this.blockLine())}}catch(r){if(r instanceof Je)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 au(this,this._ctx,this.state);this.enterRule(e,44,M.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 N_(this,e),this.enterOuterAlt(e,1);{switch(this.state=365,this.match(M.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(M.Assign),this.state=374,this.singleExpression(0),this.state=375,this.match(M.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(M.By),this.state=378,this.singleExpression(0)),this.state=381,this.blockLine()}break;case 2:e=new I_(this,e),this.enterOuterAlt(e,2);{switch(this.state=383,this.match(M.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(M.OpenBracket),this.state=386,this.identifier(),this.state=387,this.match(M.Comma),this.state=388,this.identifier(),this.state=389,this.match(M.CloseBracket);break;default:throw new di(this)}this.state=393,this.match(M.In),this.state=394,this.singleExpression(0),this.state=395,this.blockLine()}break}}catch(r){if(r instanceof Je)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 Ep(this,this._ctx,this.state);this.enterRule(e,46,M.RULE_switchStatement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=399,this.match(M.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(M.NEWLINE),this.state=404,this.match(M.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(M.DEDENT)}}catch(r){if(r instanceof Je)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 dl(this,this._ctx,this.state);this.enterRule(e,48,M.RULE_caseClause);try{this.enterOuterAlt(e,1),this.state=421,this.singleExpression(0),this.state=422,this.match(M.ARROW),this.state=423,this.block()}catch(n){if(n instanceof Je)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 Sp(this,this._ctx,this.state);this.enterRule(e,50,M.RULE_defaultCaluse);try{this.enterOuterAlt(e,1),this.state=425,this.match(M.ARROW),this.state=426,this.block()}catch(n){if(n instanceof Je)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 Tp(this,this._ctx,this.state);this.enterRule(e,52,M.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=428,this.match(M.While),this.state=429,this.singleExpression(0),this.state=430,this.blockLine()}catch(n){if(n instanceof Je)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 Ap(this,this._ctx,this.state);this.enterRule(e,54,M.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!==kr.INVALID_ALT_NUMBER;)r===1&&(this.state=433,this.match(M.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(M.Comma)),this.state=443,this.match(M.NEWLINE)}}catch(r){if(r instanceof Je)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 ml(this,this._ctx,this.state);this.enterRule(e,56,M.RULE_importElement);let n;try{this.enterOuterAlt(e,1),this.state=445,this.match(M.Import),this.state=446,this.identifier(),this.state=447,this.match(M.Divide),this.state=448,this.identifier(),this.state=449,this.match(M.Divide),this.state=450,this.match(M.IntegerLiteral),this.state=453,this._errHandler.sync(this),n=this._input.LA(1),n===53&&(this.state=451,this.match(M.As),this.state=452,this.identifier())}catch(r){if(r instanceof Je)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 xp(this,this._ctx,this.state);this.enterRule(e,58,M.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 Je)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 uu(this,this._ctx,this.state);this.enterRule(e,60,M.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!==kr.INVALID_ALT_NUMBER;)n===1&&(this.state=458,this.match(M.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 Je)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 sa(this,this._ctx,this.state);this.enterRule(e,62,M.RULE_methodElement);try{this.enterOuterAlt(e,1),this.state=465,this.methodName(),this.state=466,this.arguments()}catch(n){if(n instanceof Je)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 Cp(this,this._ctx,this.state);this.enterRule(e,64,M.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!==kr.INVALID_ALT_NUMBER;)r===1&&(this.state=468,this.identifier(),this.state=469,this.match(M.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(M.OpenParen),this.state=477,this.singleExpression(0),this.state=478,this.match(M.CloseParen),this.state=479,this.match(M.Point);break;default:throw new di(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(M.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(M.Comma),this.state=487,this.typeName()),this.state=490,this.match(M.MoreThan))}}catch(r){if(r instanceof Je)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 Op(this,this._ctx,this.state);this.enterRule(e,66,M.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(M.Export)),this.state=497,this.identifier(),this.state=498,this.arrowFunctionParameters(),this.state=499,this.match(M.ARROW),this.state=500,this.block()}catch(r){if(r instanceof Je)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 kp(this,this._ctx,this.state);this.enterRule(e,68,M.RULE_arrowFunctionParameters);let n;try{this.enterOuterAlt(e,1),this.state=502,this.match(M.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(M.CloseParen)}catch(r){if(r instanceof Je)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 _l(this,this._ctx,this.state);this.enterRule(e,70,M.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(M.Comma),this.state=510,this.formalParameterArg(),this.state=515,this._errHandler.sync(this),n=this._input.LA(1)}catch(r){if(r instanceof Je)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 yl(this,this._ctx,this.state);this.enterRule(e,72,M.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(M.Assign),this.state=521,this.singleExpression(0))}}catch(r){if(r instanceof Je)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 Dp(this,this._ctx,this.state);this.enterRule(e,74,M.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(M.Export)),this.state=527,this.match(M.Method),this.state=528,this.identifier(),this.state=529,this.arrowMethodParameters(),this.state=530,this.match(M.ARROW),this.state=531,this.block()}catch(r){if(r instanceof Je)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 wp(this,this._ctx,this.state);this.enterRule(e,76,M.RULE_arrowMethodParameters);let n;try{this.enterOuterAlt(e,1),this.state=533,this.match(M.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(M.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(M.Comma),this.state=541,this.formalParameterList()),this.state=544,this.match(M.CloseParen)}catch(r){if(r instanceof Je)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 Rp(this,this._ctx,this.state);this.enterRule(e,78,M.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(M.Export)),this.state=549,this.match(M.Type),this.state=550,this.identifier(),this.state=551,this.match(M.NEWLINE),this.state=552,this.match(M.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(M.DEDENT)}}catch(r){if(r instanceof Je)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 gl(this,this._ctx,this.state);this.enterRule(e,80,M.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(M.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(M.Assign),this.state=568,this.singleExpression(0)),this.state=571,this.match(M.NEWLINE)}}catch(r){if(r instanceof Je)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 bl(this,this._ctx,this.state);this.enterRule(e,82,M.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 Je)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 vl(this,this._ctx,this.state);this.enterRule(e,84,M.RULE_typeMap);try{this.enterOuterAlt(e,1),this.state=575,this.match(M.Map),this.state=576,this.match(M.LessThan),this.state=577,this.typeName(),this.state=578,this.match(M.Comma),this.state=579,this.typeName(),this.state=580,this.match(M.MoreThan)}catch(n){if(n instanceof Je)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 Np(this,this._ctx,this.state);this.enterRule(e,86,M.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 Je)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 El(this,this._ctx,this.state);this.enterRule(e,88,M.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(M.LessThan),this.state=590,this.typeName(),this.state=591,this.match(M.MoreThan);break;case 2:this.enterOuterAlt(e,2),this.state=593,this.typeName(),this.state=594,this.match(M.OpenBracket),this.state=595,this.match(M.CloseBracket);break}}catch(n){if(n instanceof Je)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 jo(this,this._ctx,this.state);this.enterRule(e,90,M.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 Je)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 yn(this,this._ctx,this.state);this.enterRule(e,92,M.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 Je)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 mi(this,this._ctx,this.state);this.enterRule(e,94,M.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(M.Point),this.state=609,this.identifier())}catch(r){if(r instanceof Je)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 cu(this,this._ctx,this.state);this.enterRule(e,96,M.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!==kr.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(M.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(M.OpenParen),this.state=625,this.singleExpression(0),this.state=626,this.match(M.CloseParen),this.state=629,this._errHandler.sync(this),n=1;do{switch(n){case 1:this.state=627,this.match(M.Point),this.state=628,this.identifier();break;default:throw new di(this)}this.state=631,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,75,this._ctx)}while(n!==2&&n!==kr.INVALID_ALT_NUMBER)}break}}catch(n){if(n instanceof Je)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 Ip(this,this._ctx,this.state);this.enterRule(e,98,M.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(M.Export)),this.state=638,this.match(M.Enum),this.state=639,this.identifier(),this.state=640,this.match(M.NEWLINE),this.state=641,this.match(M.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(M.DEDENT)}}catch(r){if(r instanceof Je)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 Sl(this,this._ctx,this.state);this.enterRule(e,100,M.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(M.Assign),this.state=651,this.match(M.StringLiteral)),this.state=654,this.match(M.NEWLINE)}catch(r){if(r instanceof Je)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 M.__ATN||(M.__ATN=new fp().deserialize(M._serializedATN)),M.__ATN}};D(M,"INDENT",1),D(M,"DEDENT",2),D(M,"Point",3),D(M,"OpenBracket",4),D(M,"CloseBracket",5),D(M,"OpenParen",6),D(M,"CloseParen",7),D(M,"Comma",8),D(M,"Assign",9),D(M,"QuestionMark",10),D(M,"Colon",11),D(M,"Plus",12),D(M,"Minus",13),D(M,"Multiply",14),D(M,"Divide",15),D(M,"Modulus",16),D(M,"Hashtag",17),D(M,"LessThan",18),D(M,"MoreThan",19),D(M,"LessThanEquals",20),D(M,"GreaterThanEquals",21),D(M,"Equals_",22),D(M,"NotEquals",23),D(M,"MultiplyAssign",24),D(M,"DivideAssign",25),D(M,"ModulusAssign",26),D(M,"PlusAssign",27),D(M,"MinusAssign",28),D(M,"ARROW",29),D(M,"ColonEquals",30),D(M,"BooleanLiteral",31),D(M,"IntegerLiteral",32),D(M,"DecimalLiteral",33),D(M,"Break",34),D(M,"And",35),D(M,"Export",36),D(M,"For",37),D(M,"Var",38),D(M,"Continue",39),D(M,"Varip",40),D(M,"Switch",41),D(M,"While",42),D(M,"If",43),D(M,"In",44),D(M,"Or",45),D(M,"Not",46),D(M,"Method",47),D(M,"Else",48),D(M,"To",49),D(M,"By",50),D(M,"Type",51),D(M,"Import",52),D(M,"As",53),D(M,"Enum",54),D(M,"Map",55),D(M,"ColorLiteral",56),D(M,"StringLiteral",57),D(M,"Identifier",58),D(M,"HIDDEN_",59),D(M,"COMMENT_",60),D(M,"NEWLINE",61),D(M,"EOF",dp.EOF),D(M,"RULE_program",0),D(M,"RULE_globalStmt",1),D(M,"RULE_blockStmt",2),D(M,"RULE_stmt",3),D(M,"RULE_simpleStmt",4),D(M,"RULE_flowStmt",5),D(M,"RULE_block",6),D(M,"RULE_blockLine",7),D(M,"RULE_variableDeclarationStmt",8),D(M,"RULE_variableDeclarationList",9),D(M,"RULE_varModifier",10),D(M,"RULE_blockSequence",11),D(M,"RULE_expressionSequence",12),D(M,"RULE_expressionBlockSequence",13),D(M,"RULE_varBlockStmt",14),D(M,"RULE_varArrayDeclaration",15),D(M,"RULE_blockExpression",16),D(M,"RULE_singleExpression",17),D(M,"RULE_brackethesized",18),D(M,"RULE_arguments",19),D(M,"RULE_argument",20),D(M,"RULE_ifStatement",21),D(M,"RULE_forStatement",22),D(M,"RULE_switchStatement",23),D(M,"RULE_caseClause",24),D(M,"RULE_defaultCaluse",25),D(M,"RULE_whileStatement",26),D(M,"RULE_importStmt",27),D(M,"RULE_importElement",28),D(M,"RULE_literal",29),D(M,"RULE_methodStmt",30),D(M,"RULE_methodElement",31),D(M,"RULE_methodName",32),D(M,"RULE_arrowFunction",33),D(M,"RULE_arrowFunctionParameters",34),D(M,"RULE_formalParameterList",35),D(M,"RULE_formalParameterArg",36),D(M,"RULE_arrowMethod",37),D(M,"RULE_arrowMethodParameters",38),D(M,"RULE_typeStatement",39),D(M,"RULE_typeElement",40),D(M,"RULE_assignmentOperator",41),D(M,"RULE_typeMap",42),D(M,"RULE_typeSeries",43),D(M,"RULE_typeArray",44),D(M,"RULE_typeGather",45),D(M,"RULE_identifier",46),D(M,"RULE_typeName",47),D(M,"RULE_name",48),D(M,"RULE_enumStatement",49),D(M,"RULE_enumElement",50),D(M,"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'"]),D(M,"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"]),D(M,"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"]),D(M,"_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]),D(M,"__ATN"),D(M,"DecisionsToDFA",M._ATN.decisionToState.map((e,n)=>new hp(e,n)));let F=M;class p_ extends Ye{constructor(e,n,r){super(n,r),this.parser=e}EOF(){return this.getToken(F.EOF,0)}NEWLINE_list(){return this.getTokens(F.NEWLINE)}NEWLINE(e){return this.getToken(F.NEWLINE,e)}globalStmt_list(){return this.getTypedRuleContexts(sl)}globalStmt(e){return this.getTypedRuleContext(sl,e)}get ruleIndex(){return F.RULE_program}accept(e){return e.visitProgram?e.visitProgram(this):e.visitChildren(this)}}class sl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}variableDeclarationStmt(){return this.getTypedRuleContext(ou,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}blockStmt(){return this.getTypedRuleContext(mp,0)}importStmt(){return this.getTypedRuleContext(Ap,0)}arrowFunction(){return this.getTypedRuleContext(Op,0)}arrowMethod(){return this.getTypedRuleContext(Dp,0)}typeStatement(){return this.getTypedRuleContext(Rp,0)}enumStatement(){return this.getTypedRuleContext(Ip,0)}get ruleIndex(){return F.RULE_globalStmt}accept(e){return e.visitGlobalStmt?e.visitGlobalStmt(this):e.visitChildren(this)}}class mp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(fl,0)}blockExpression(){return this.getTypedRuleContext(su,0)}variableDeclarationStmt_list(){return this.getTypedRuleContexts(ou)}variableDeclarationStmt(e){return this.getTypedRuleContext(ou,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_blockStmt}accept(e){return e.visitBlockStmt?e.visitBlockStmt(this):e.visitChildren(this)}}class al extends Ye{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(ul,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}expressionBlockSequence(){return this.getTypedRuleContext(gp,0)}get ruleIndex(){return F.RULE_stmt}accept(e){return e.visitStmt?e.visitStmt(this):e.visitChildren(this)}}class ul extends Ye{constructor(e,n,r){super(n,r),this.parser=e}expressionSequence(){return this.getTypedRuleContext(ll,0)}blockSequence(){return this.getTypedRuleContext(yp,0)}brackethesized(){return this.getTypedRuleContext(hl,0)}flowStmt(){return this.getTypedRuleContext(_p,0)}get ruleIndex(){return F.RULE_simpleStmt}accept(e){return e.visitSimpleStmt?e.visitSimpleStmt(this):e.visitChildren(this)}}class _p extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Break(){return this.getToken(F.Break,0)}Continue(){return this.getToken(F.Continue,0)}get ruleIndex(){return F.RULE_flowStmt}accept(e){return e.visitFlowStmt?e.visitFlowStmt(this):e.visitChildren(this)}}class ia extends Ye{constructor(e,n,r){super(n,r),this.parser=e}simpleStmt(){return this.getTypedRuleContext(ul,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}blockLine(){return this.getTypedRuleContext(mo,0)}get ruleIndex(){return F.RULE_block}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}}class mo extends Ye{constructor(e,n,r){super(n,r),this.parser=e}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}stmt_list(){return this.getTypedRuleContexts(al)}stmt(e){return this.getTypedRuleContext(al,e)}get ruleIndex(){return F.RULE_blockLine}accept(e){return e.visitBlockLine?e.visitBlockLine(this):e.visitChildren(this)}}class ou extends Ye{constructor(e,n,r){super(n,r),this.parser=e}methodStmt_list(){return this.getTypedRuleContexts(uu)}methodStmt(e){return this.getTypedRuleContext(uu,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Ni)}variableDeclarationList(e){return this.getTypedRuleContext(Ni,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_variableDeclarationStmt}accept(e){return e.visitVariableDeclarationStmt?e.visitVariableDeclarationStmt(this):e.visitChildren(this)}}class Ni extends Ye{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return F.RULE_variableDeclarationList}copyFrom(e){super.copyFrom(e)}}class d_ extends Ni{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(cu,0)}assignmentOperator(){return this.getTypedRuleContext(bl,0)}singleExpression(){return this.getTypedRuleContext($e,0)}accept(e){return e.visitAgainAssign?e.visitAgainAssign(this):e.visitChildren(this)}}class m_ extends Ni{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}varArrayDeclaration(){return this.getTypedRuleContext(oa,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext($e,0)}accept(e){return e.visitDeclareAssign?e.visitDeclareAssign(this):e.visitChildren(this)}}class cl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Var(){return this.getToken(F.Var,0)}Varip(){return this.getToken(F.Varip,0)}get ruleIndex(){return F.RULE_varModifier}accept(e){return e.visitVarModifier?e.visitVarModifier(this):e.visitChildren(this)}}class yp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Ni)}variableDeclarationList(e){return this.getTypedRuleContext(Ni,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_blockSequence}accept(e){return e.visitBlockSequence?e.visitBlockSequence(this):e.visitChildren(this)}}class ll extends Ye{constructor(e,n,r){super(n,r),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_expressionSequence}accept(e){return e.visitExpressionSequence?e.visitExpressionSequence(this):e.visitChildren(this)}}class gp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(fl,0)}blockExpression(){return this.getTypedRuleContext(su,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(Ni)}variableDeclarationList(e){return this.getTypedRuleContext(Ni,e)}get ruleIndex(){return F.RULE_expressionBlockSequence}accept(e){return e.visitExpressionBlockSequence?e.visitExpressionBlockSequence(this):e.visitChildren(this)}}class fl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}blockExpression(){return this.getTypedRuleContext(su,0)}varArrayDeclaration(){return this.getTypedRuleContext(oa,0)}Assign(){return this.getToken(F.Assign,0)}name(){return this.getTypedRuleContext(cu,0)}assignmentOperator(){return this.getTypedRuleContext(bl,0)}get ruleIndex(){return F.RULE_varBlockStmt}accept(e){return e.visitVarBlockStmt?e.visitVarBlockStmt(this):e.visitChildren(this)}}class oa extends Ye{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return F.RULE_varArrayDeclaration}copyFrom(e){super.copyFrom(e)}}class __ extends oa{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenBracket(){return this.getToken(F.OpenBracket,0)}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}CloseBracket(){return this.getToken(F.CloseBracket,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}accept(e){return e.visitVarMultiple?e.visitVarMultiple(this):e.visitChildren(this)}}class y_ extends oa{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}identifier(){return this.getTypedRuleContext(yn,0)}varModifier(){return this.getTypedRuleContext(cl,0)}typeGather(){return this.getTypedRuleContext(jo,0)}accept(e){return e.visitVarSingle?e.visitVarSingle(this):e.visitChildren(this)}}class su extends Ye{constructor(e,n,r){super(n,r),this.parser=e}ifStatement(){return this.getTypedRuleContext(vp,0)}forStatement(){return this.getTypedRuleContext(au,0)}whileStatement(){return this.getTypedRuleContext(Tp,0)}switchStatement(){return this.getTypedRuleContext(Ep,0)}get ruleIndex(){return F.RULE_blockExpression}accept(e){return e.visitBlockExpression?e.visitBlockExpression(this):e.visitChildren(this)}}class $e extends Ye{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return F.RULE_singleExpression}copyFrom(e){super.copyFrom(e)}}class g_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext($e,0)}CloseParen(){return this.getToken(F.CloseParen,0)}accept(e){return e.visitParenthesizedExpression?e.visitParenthesizedExpression(this):e.visitChildren(this)}}class b_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}Plus(){return this.getToken(F.Plus,0)}Minus(){return this.getToken(F.Minus,0)}accept(e){return e.visitAdditiveExpression?e.visitAdditiveExpression(this):e.visitChildren(this)}}class v_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}LessThan(){return this.getToken(F.LessThan,0)}MoreThan(){return this.getToken(F.MoreThan,0)}LessThanEquals(){return this.getToken(F.LessThanEquals,0)}GreaterThanEquals(){return this.getToken(F.GreaterThanEquals,0)}accept(e){return e.visitRelationalExpression?e.visitRelationalExpression(this):e.visitChildren(this)}}class E_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}QuestionMark(){return this.getToken(F.QuestionMark,0)}Colon(){return this.getToken(F.Colon,0)}accept(e){return e.visitTernaryExpression?e.visitTernaryExpression(this):e.visitChildren(this)}}class S_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}And(){return this.getToken(F.And,0)}accept(e){return e.visitLogicalAndExpression?e.visitLogicalAndExpression(this):e.visitChildren(this)}}class T_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(cu,0)}accept(e){return e.visitNameExpression?e.visitNameExpression(this):e.visitChildren(this)}}class A_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}literal(){return this.getTypedRuleContext(xp,0)}accept(e){return e.visitLiteralExpression?e.visitLiteralExpression(this):e.visitChildren(this)}}class x_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}Or(){return this.getToken(F.Or,0)}accept(e){return e.visitLogicalOrExpression?e.visitLogicalOrExpression(this):e.visitChildren(this)}}class C_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression(){return this.getTypedRuleContext($e,0)}Minus(){return this.getToken(F.Minus,0)}Plus(){return this.getToken(F.Plus,0)}accept(e){return e.visitUnaryExpression?e.visitUnaryExpression(this):e.visitChildren(this)}}class O_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}Not(){return this.getToken(F.Not,0)}singleExpression(){return this.getTypedRuleContext($e,0)}accept(e){return e.visitNotExpression?e.visitNotExpression(this):e.visitChildren(this)}}class k_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}OpenBracket(){return this.getToken(F.OpenBracket,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}accept(e){return e.visitMemberIndexExpression?e.visitMemberIndexExpression(this):e.visitChildren(this)}}class D_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}methodStmt(){return this.getTypedRuleContext(uu,0)}accept(e){return e.visitMethodExpression?e.visitMethodExpression(this):e.visitChildren(this)}}class w_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}Equals_(){return this.getToken(F.Equals_,0)}NotEquals(){return this.getToken(F.NotEquals,0)}accept(e){return e.visitEqualityExpression?e.visitEqualityExpression(this):e.visitChildren(this)}}class R_ extends $e{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}Multiply(){return this.getToken(F.Multiply,0)}Divide(){return this.getToken(F.Divide,0)}Modulus(){return this.getToken(F.Modulus,0)}accept(e){return e.visitMultiplicativeExpression?e.visitMultiplicativeExpression(this):e.visitChildren(this)}}class hl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}OpenBracket(){return this.getToken(F.OpenBracket,0)}expressionSequence(){return this.getTypedRuleContext(ll,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}get ruleIndex(){return F.RULE_brackethesized}accept(e){return e.visitBrackethesized?e.visitBrackethesized(this):e.visitChildren(this)}}class bp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}CloseParen(){return this.getToken(F.CloseParen,0)}argument_list(){return this.getTypedRuleContexts(pl)}argument(e){return this.getTypedRuleContext(pl,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_arguments}accept(e){return e.visitArguments?e.visitArguments(this):e.visitChildren(this)}}class pl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext($e,0)}brackethesized(){return this.getTypedRuleContext(hl,0)}identifier(){return this.getTypedRuleContext(yn,0)}Assign(){return this.getToken(F.Assign,0)}get ruleIndex(){return F.RULE_argument}accept(e){return e.visitArgument?e.visitArgument(this):e.visitChildren(this)}}class vp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}If_list(){return this.getTokens(F.If)}If(e){return this.getToken(F.If,e)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}blockLine_list(){return this.getTypedRuleContexts(mo)}blockLine(e){return this.getTypedRuleContext(mo,e)}Else_list(){return this.getTokens(F.Else)}Else(e){return this.getToken(F.Else,e)}get ruleIndex(){return F.RULE_ifStatement}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}}class au extends Ye{constructor(e,n,r){super(n,r),this.parser=e}get ruleIndex(){return F.RULE_forStatement}copyFrom(e){super.copyFrom(e)}}class N_ extends au{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(F.For,0)}identifier(){return this.getTypedRuleContext(yn,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression_list(){return this.getTypedRuleContexts($e)}singleExpression(e){return this.getTypedRuleContext($e,e)}To(){return this.getToken(F.To,0)}blockLine(){return this.getTypedRuleContext(mo,0)}varModifier(){return this.getTypedRuleContext(cl,0)}typeGather(){return this.getTypedRuleContext(jo,0)}By(){return this.getToken(F.By,0)}accept(e){return e.visitForToStatement?e.visitForToStatement(this):e.visitChildren(this)}}class I_ extends au{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(F.For,0)}In(){return this.getToken(F.In,0)}singleExpression(){return this.getTypedRuleContext($e,0)}blockLine(){return this.getTypedRuleContext(mo,0)}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}OpenBracket(){return this.getToken(F.OpenBracket,0)}Comma(){return this.getToken(F.Comma,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}accept(e){return e.visitForInStatement?e.visitForInStatement(this):e.visitChildren(this)}}class Ep extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Switch(){return this.getToken(F.Switch,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}singleExpression(){return this.getTypedRuleContext($e,0)}defaultCaluse(){return this.getTypedRuleContext(Sp,0)}caseClause_list(){return this.getTypedRuleContexts(dl)}caseClause(e){return this.getTypedRuleContext(dl,e)}get ruleIndex(){return F.RULE_switchStatement}accept(e){return e.visitSwitchStatement?e.visitSwitchStatement(this):e.visitChildren(this)}}class dl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}singleExpression(){return this.getTypedRuleContext($e,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(ia,0)}get ruleIndex(){return F.RULE_caseClause}accept(e){return e.visitCaseClause?e.visitCaseClause(this):e.visitChildren(this)}}class Sp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(ia,0)}get ruleIndex(){return F.RULE_defaultCaluse}accept(e){return e.visitDefaultCaluse?e.visitDefaultCaluse(this):e.visitChildren(this)}}class Tp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}While(){return this.getToken(F.While,0)}singleExpression(){return this.getTypedRuleContext($e,0)}blockLine(){return this.getTypedRuleContext(mo,0)}get ruleIndex(){return F.RULE_whileStatement}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}}class Ap extends Ye{constructor(e,n,r){super(n,r),this.parser=e}importElement_list(){return this.getTypedRuleContexts(ml)}importElement(e){return this.getTypedRuleContext(ml,e)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_importStmt}accept(e){return e.visitImportStmt?e.visitImportStmt(this):e.visitChildren(this)}}class ml extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Import(){return this.getToken(F.Import,0)}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}Divide_list(){return this.getTokens(F.Divide)}Divide(e){return this.getToken(F.Divide,e)}IntegerLiteral(){return this.getToken(F.IntegerLiteral,0)}As(){return this.getToken(F.As,0)}get ruleIndex(){return F.RULE_importElement}accept(e){return e.visitImportElement?e.visitImportElement(this):e.visitChildren(this)}}class xp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}BooleanLiteral(){return this.getToken(F.BooleanLiteral,0)}ColorLiteral(){return this.getToken(F.ColorLiteral,0)}StringLiteral(){return this.getToken(F.StringLiteral,0)}IntegerLiteral(){return this.getToken(F.IntegerLiteral,0)}DecimalLiteral(){return this.getToken(F.DecimalLiteral,0)}get ruleIndex(){return F.RULE_literal}accept(e){return e.visitLiteral?e.visitLiteral(this):e.visitChildren(this)}}class uu extends Ye{constructor(e,n,r){super(n,r),this.parser=e}methodElement_list(){return this.getTypedRuleContexts(sa)}methodElement(e){return this.getTypedRuleContext(sa,e)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}get ruleIndex(){return F.RULE_methodStmt}accept(e){return e.visitMethodStmt?e.visitMethodStmt(this):e.visitChildren(this)}}class sa extends Ye{constructor(e,n,r){super(n,r),this.parser=e}methodName(){return this.getTypedRuleContext(Cp,0)}arguments(){return this.getTypedRuleContext(bp,0)}get ruleIndex(){return F.RULE_methodElement}accept(e){return e.visitMethodElement?e.visitMethodElement(this):e.visitChildren(this)}}class Cp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext($e,0)}CloseParen(){return this.getToken(F.CloseParen,0)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}LessThan(){return this.getToken(F.LessThan,0)}typeName_list(){return this.getTypedRuleContexts(mi)}typeName(e){return this.getTypedRuleContext(mi,e)}MoreThan(){return this.getToken(F.MoreThan,0)}Comma(){return this.getToken(F.Comma,0)}get ruleIndex(){return F.RULE_methodName}accept(e){return e.visitMethodName?e.visitMethodName(this):e.visitChildren(this)}}class Op extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(yn,0)}arrowFunctionParameters(){return this.getTypedRuleContext(kp,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(ia,0)}Export(){return this.getToken(F.Export,0)}get ruleIndex(){return F.RULE_arrowFunction}accept(e){return e.visitArrowFunction?e.visitArrowFunction(this):e.visitChildren(this)}}class kp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}CloseParen(){return this.getToken(F.CloseParen,0)}formalParameterList(){return this.getTypedRuleContext(_l,0)}get ruleIndex(){return F.RULE_arrowFunctionParameters}accept(e){return e.visitArrowFunctionParameters?e.visitArrowFunctionParameters(this):e.visitChildren(this)}}class _l extends Ye{constructor(e,n,r){super(n,r),this.parser=e}formalParameterArg_list(){return this.getTypedRuleContexts(yl)}formalParameterArg(e){return this.getTypedRuleContext(yl,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_formalParameterList}accept(e){return e.visitFormalParameterList?e.visitFormalParameterList(this):e.visitChildren(this)}}class yl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(yn,0)}typeGather(){return this.getTypedRuleContext(jo,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext($e,0)}get ruleIndex(){return F.RULE_formalParameterArg}accept(e){return e.visitFormalParameterArg?e.visitFormalParameterArg(this):e.visitChildren(this)}}class Dp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Method(){return this.getToken(F.Method,0)}identifier(){return this.getTypedRuleContext(yn,0)}arrowMethodParameters(){return this.getTypedRuleContext(wp,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(ia,0)}Export(){return this.getToken(F.Export,0)}get ruleIndex(){return F.RULE_arrowMethod}accept(e){return e.visitArrowMethod?e.visitArrowMethod(this):e.visitChildren(this)}}class wp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}typeGather(){return this.getTypedRuleContext(jo,0)}identifier(){return this.getTypedRuleContext(yn,0)}CloseParen(){return this.getToken(F.CloseParen,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext($e,0)}Comma(){return this.getToken(F.Comma,0)}formalParameterList(){return this.getTypedRuleContext(_l,0)}get ruleIndex(){return F.RULE_arrowMethodParameters}accept(e){return e.visitArrowMethodParameters?e.visitArrowMethodParameters(this):e.visitChildren(this)}}class Rp extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Type(){return this.getToken(F.Type,0)}identifier(){return this.getTypedRuleContext(yn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}Export(){return this.getToken(F.Export,0)}typeElement_list(){return this.getTypedRuleContexts(gl)}typeElement(e){return this.getTypedRuleContext(gl,e)}get ruleIndex(){return F.RULE_typeStatement}accept(e){return e.visitTypeStatement?e.visitTypeStatement(this):e.visitChildren(this)}}class gl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(yn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Varip(){return this.getToken(F.Varip,0)}typeGather(){return this.getTypedRuleContext(jo,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext($e,0)}get ruleIndex(){return F.RULE_typeElement}accept(e){return e.visitTypeElement?e.visitTypeElement(this):e.visitChildren(this)}}class bl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}ColonEquals(){return this.getToken(F.ColonEquals,0)}MultiplyAssign(){return this.getToken(F.MultiplyAssign,0)}DivideAssign(){return this.getToken(F.DivideAssign,0)}ModulusAssign(){return this.getToken(F.ModulusAssign,0)}PlusAssign(){return this.getToken(F.PlusAssign,0)}MinusAssign(){return this.getToken(F.MinusAssign,0)}get ruleIndex(){return F.RULE_assignmentOperator}accept(e){return e.visitAssignmentOperator?e.visitAssignmentOperator(this):e.visitChildren(this)}}class vl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Map(){return this.getToken(F.Map,0)}LessThan(){return this.getToken(F.LessThan,0)}Comma(){return this.getToken(F.Comma,0)}typeName_list(){return this.getTypedRuleContexts(mi)}typeName(e){return this.getTypedRuleContext(mi,e)}MoreThan(){return this.getToken(F.MoreThan,0)}get ruleIndex(){return F.RULE_typeMap}accept(e){return e.visitTypeMap?e.visitTypeMap(this):e.visitChildren(this)}}class Np extends Ye{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(mi)}typeName(e){return this.getTypedRuleContext(mi,e)}typeArray(){return this.getTypedRuleContext(El,0)}typeMap(){return this.getTypedRuleContext(vl,0)}get ruleIndex(){return F.RULE_typeSeries}accept(e){return e.visitTypeSeries?e.visitTypeSeries(this):e.visitChildren(this)}}class El extends Ye{constructor(e,n,r){super(n,r),this.parser=e}typeName_list(){return this.getTypedRuleContexts(mi)}typeName(e){return this.getTypedRuleContext(mi,e)}LessThan(){return this.getToken(F.LessThan,0)}MoreThan(){return this.getToken(F.MoreThan,0)}OpenBracket(){return this.getToken(F.OpenBracket,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}get ruleIndex(){return F.RULE_typeArray}accept(e){return e.visitTypeArray?e.visitTypeArray(this):e.visitChildren(this)}}class jo extends Ye{constructor(e,n,r){super(n,r),this.parser=e}typeName(){return this.getTypedRuleContext(mi,0)}typeArray(){return this.getTypedRuleContext(El,0)}typeMap(){return this.getTypedRuleContext(vl,0)}typeSeries(){return this.getTypedRuleContext(Np,0)}get ruleIndex(){return F.RULE_typeGather}accept(e){return e.visitTypeGather?e.visitTypeGather(this):e.visitChildren(this)}}class yn extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Identifier(){return this.getToken(F.Identifier,0)}Map(){return this.getToken(F.Map,0)}Type(){return this.getToken(F.Type,0)}Enum(){return this.getToken(F.Enum,0)}Method(){return this.getToken(F.Method,0)}get ruleIndex(){return F.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}}class mi extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}Point(){return this.getToken(F.Point,0)}get ruleIndex(){return F.RULE_typeName}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}}class cu extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(yn)}identifier(e){return this.getTypedRuleContext(yn,e)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}methodElement_list(){return this.getTypedRuleContexts(sa)}methodElement(e){return this.getTypedRuleContext(sa,e)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext($e,0)}CloseParen(){return this.getToken(F.CloseParen,0)}get ruleIndex(){return F.RULE_name}accept(e){return e.visitName?e.visitName(this):e.visitChildren(this)}}class Ip extends Ye{constructor(e,n,r){super(n,r),this.parser=e}Enum(){return this.getToken(F.Enum,0)}identifier(){return this.getTypedRuleContext(yn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}Export(){return this.getToken(F.Export,0)}enumElement_list(){return this.getTypedRuleContexts(Sl)}enumElement(e){return this.getTypedRuleContext(Sl,e)}get ruleIndex(){return F.RULE_enumStatement}accept(e){return e.visitEnumStatement?e.visitEnumStatement(this):e.visitChildren(this)}}class Sl extends Ye{constructor(e,n,r){super(n,r),this.parser=e}identifier(){return this.getTypedRuleContext(yn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Assign(){return this.getToken(F.Assign,0)}StringLiteral(){return this.getToken(F.StringLiteral,0)}get ruleIndex(){return F.RULE_enumElement}accept(e){return e.visitEnumElement?e.visitEnumElement(this):e.visitChildren(this)}}class P_ extends a_{constructor(n){super(n);D(this,"tokens");D(this,"indents");D(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)===F.EOF&&this.indents.length){for(this.tokens=this.tokens.filter(function(r){return r.type!==F.EOF}),this.emitToken(this.commonToken(F.NEWLINE,`
11
- `));this.indents.length;)this.emitToken(this.createDedent()),this.indents.pop();this.emitToken(this.commonToken(F.EOF,"<EOF>"))}const n=super.nextToken();return this.tokens.length?this.tokens.shift():n}createDedent(){return this.commonToken(F.DEDENT,"")}getCharIndex(){return this._input.index}commonToken(n,r){const a=this.getCharIndex()-1,c=r.length?a-r.length+1:a;return new n_([this,this._input],n,0,c,a)}getIndentationCount(n){let r=0;for(let a=0;a<n.length;a++)n[a]===" "?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,""),a=this._input.LA(1),c=this._input.LA(2),h=this.getIndentationCount(r);if(this.opened>0||c!=-1&&(a===13||a===10||a===47&&c===47||h%4))this.skip();else{this.emitToken(this.commonToken(F.NEWLINE,n));const d=this.indents.length?this.indents[this.indents.length-1]:0;if(h===d)this.skip();else if(h>d)this.indents.push(h),this.emitToken(this.commonToken(F.INDENT,r));else for(;this.indents.length&&this.indents[this.indents.length-1]>h;)this.emitToken(this.createDedent()),this.indents.pop()}}}const Re=class Re extends P_{constructor(e){super(e),this._interp=new u_(this,Re._ATN,Re.DecisionsToDFA,new pp)}get grammarFileName(){return"tccScriptLexer.g4"}get literalNames(){return Re.literalNames}get symbolicNames(){return Re.symbolicNames}get ruleNames(){return Re.ruleNames}get serializedATN(){return Re._serializedATN}get channelNames(){return Re.channelNames}get modeNames(){return Re.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 Re.__ATN||(Re.__ATN=new fp().deserialize(Re._serializedATN)),Re.__ATN}};D(Re,"INDENT",1),D(Re,"DEDENT",2),D(Re,"Point",3),D(Re,"OpenBracket",4),D(Re,"CloseBracket",5),D(Re,"OpenParen",6),D(Re,"CloseParen",7),D(Re,"Comma",8),D(Re,"Assign",9),D(Re,"QuestionMark",10),D(Re,"Colon",11),D(Re,"Plus",12),D(Re,"Minus",13),D(Re,"Multiply",14),D(Re,"Divide",15),D(Re,"Modulus",16),D(Re,"Hashtag",17),D(Re,"LessThan",18),D(Re,"MoreThan",19),D(Re,"LessThanEquals",20),D(Re,"GreaterThanEquals",21),D(Re,"Equals_",22),D(Re,"NotEquals",23),D(Re,"MultiplyAssign",24),D(Re,"DivideAssign",25),D(Re,"ModulusAssign",26),D(Re,"PlusAssign",27),D(Re,"MinusAssign",28),D(Re,"ARROW",29),D(Re,"ColonEquals",30),D(Re,"BooleanLiteral",31),D(Re,"IntegerLiteral",32),D(Re,"DecimalLiteral",33),D(Re,"Break",34),D(Re,"And",35),D(Re,"Export",36),D(Re,"For",37),D(Re,"Var",38),D(Re,"Continue",39),D(Re,"Varip",40),D(Re,"Switch",41),D(Re,"While",42),D(Re,"If",43),D(Re,"In",44),D(Re,"Or",45),D(Re,"Not",46),D(Re,"Method",47),D(Re,"Else",48),D(Re,"To",49),D(Re,"By",50),D(Re,"Type",51),D(Re,"Import",52),D(Re,"As",53),D(Re,"Enum",54),D(Re,"Map",55),D(Re,"ColorLiteral",56),D(Re,"StringLiteral",57),D(Re,"Identifier",58),D(Re,"HIDDEN_",59),D(Re,"COMMENT_",60),D(Re,"NEWLINE",61),D(Re,"EOF",dp.EOF),D(Re,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),D(Re,"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'"]),D(Re,"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"]),D(Re,"modeNames",["DEFAULT_MODE"]),D(Re,"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"]),D(Re,"_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,1,0,39,39,1,0,34,34,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,5,39,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,5,34,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]),D(Re,"__ATN"),D(Re,"DecisionsToDFA",Re._ATN.decisionToState.map((e,n)=>new hp(e,n)));let Tl=Re;var V=(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))(V||{}),le=(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))(le||{}),Kt=(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))(Kt||{}),Ii=(t=>(t.library="library",t.indicator="indicator",t.strategy="strategy",t))(Ii||{});const pe={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.$name方法只能使用$type类型数组!",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`"},ar={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."},Pi=[V.SERIES,V.SIMPLE,V.INPUT,V.CONST],lu=[V.INT,V.FLOAT,V.BOOL,V.COLOR,V.STRING],fu=["indicator","strategy","library"],Al=["plot","plotbar","plotchar","plotarrow","plotshape","plotcandle","hline","alertcondition","barcolor","bgcolor","fill"],F_=[...Al,"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"],L_=[...Al,"table.new","label.new","line.new","box.new","polyline.new","linefill.new"],M_=["strategy.entry","strategy.order","strategy.exit","strategy.close","strategy.cancel","strategy.close_all","strategy.cancel_all"],Pp=["strategy","input","table","color","line","linefill","label","box"],xl=["close","open","high","low","hl2","hlc3","hlcc4","ohlc4","volume"],B_=/^\/\/\s*@(description|field|function|param|returns|type|enum|variable)/,wn=["case","catch","default","delete","do","finally","function","instanceof","new","return","this","throw","try","typeof","void","with"],Fp=["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 Lp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},U_={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Lp,function(){var n=1e3,r=6e4,a=36e5,c="millisecond",h="second",d="minute",v="hour",S="day",C="week",T="month",k="quarter",B="year",L="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ge){var re=["th","st","nd","rd"],de=ge%100;return"["+ge+(re[(de-20)%10]||re[de]||re[0])+"]"}},R=function(ge,re,de){var fe=String(ge);return!fe||fe.length>=re?ge:""+Array(re+1-fe.length).join(de)+ge},w={s:R,z:function(ge){var re=-ge.utcOffset(),de=Math.abs(re),fe=Math.floor(de/60),Oe=de%60;return(re<=0?"+":"-")+R(fe,2,"0")+":"+R(Oe,2,"0")},m:function ge(re,de){if(re.date()<de.date())return-ge(de,re);var fe=12*(de.year()-re.year())+(de.month()-re.month()),Oe=re.clone().add(fe,T),Ie=de-Oe<0,ve=re.clone().add(fe+(Ie?-1:1),T);return+(-(fe+(de-Oe)/(Ie?Oe-ve:ve-Oe))||0)},a:function(ge){return ge<0?Math.ceil(ge)||0:Math.floor(ge)},p:function(ge){return{M:T,y:B,w:C,d:S,D:L,h:v,m:d,s:h,ms:c,Q:k}[ge]||String(ge||"").toLowerCase().replace(/s$/,"")},u:function(ge){return ge===void 0}},U="en",X={};X[U]=O;var ee="$isDayjsObject",z=function(ge){return ge instanceof Q||!(!ge||!ge[ee])},Y=function ge(re,de,fe){var Oe;if(!re)return U;if(typeof re=="string"){var Ie=re.toLowerCase();X[Ie]&&(Oe=Ie),de&&(X[Ie]=de,Oe=Ie);var ve=re.split("-");if(!Oe&&ve.length>1)return ge(ve[0])}else{var Ue=re.name;X[Ue]=re,Oe=Ue}return!fe&&Oe&&(U=Oe),Oe||!fe&&U},$=function(ge,re){if(z(ge))return ge.clone();var de=typeof re=="object"?re:{};return de.date=ge,de.args=arguments,new Q(de)},ne=w;ne.l=Y,ne.i=z,ne.w=function(ge,re){return $(ge,{locale:re.$L,utc:re.$u,x:re.$x,$offset:re.$offset})};var Q=function(){function ge(de){this.$L=Y(de.locale,null,!0),this.parse(de),this.$x=this.$x||de.x||{},this[ee]=!0}var re=ge.prototype;return re.parse=function(de){this.$d=function(fe){var Oe=fe.date,Ie=fe.utc;if(Oe===null)return new Date(NaN);if(ne.u(Oe))return new Date;if(Oe instanceof Date)return new Date(Oe);if(typeof Oe=="string"&&!/Z$/i.test(Oe)){var ve=Oe.match(y);if(ve){var Ue=ve[2]-1||0,J=(ve[7]||"0").substring(0,3);return Ie?new Date(Date.UTC(ve[1],Ue,ve[3]||1,ve[4]||0,ve[5]||0,ve[6]||0,J)):new Date(ve[1],Ue,ve[3]||1,ve[4]||0,ve[5]||0,ve[6]||0,J)}}return new Date(Oe)}(de),this.init()},re.init=function(){var de=this.$d;this.$y=de.getFullYear(),this.$M=de.getMonth(),this.$D=de.getDate(),this.$W=de.getDay(),this.$H=de.getHours(),this.$m=de.getMinutes(),this.$s=de.getSeconds(),this.$ms=de.getMilliseconds()},re.$utils=function(){return ne},re.isValid=function(){return this.$d.toString()!==b},re.isSame=function(de,fe){var Oe=$(de);return this.startOf(fe)<=Oe&&Oe<=this.endOf(fe)},re.isAfter=function(de,fe){return $(de)<this.startOf(fe)},re.isBefore=function(de,fe){return this.endOf(fe)<$(de)},re.$g=function(de,fe,Oe){return ne.u(de)?this[fe]:this.set(Oe,de)},re.unix=function(){return Math.floor(this.valueOf()/1e3)},re.valueOf=function(){return this.$d.getTime()},re.startOf=function(de,fe){var Oe=this,Ie=!!ne.u(fe)||fe,ve=ne.p(de),Ue=function(Et,Mt){var gt=ne.w(Oe.$u?Date.UTC(Oe.$y,Mt,Et):new Date(Oe.$y,Mt,Et),Oe);return Ie?gt:gt.endOf(S)},J=function(Et,Mt){return ne.w(Oe.toDate()[Et].apply(Oe.toDate("s"),(Ie?[0,0,0,0]:[23,59,59,999]).slice(Mt)),Oe)},ie=this.$W,ue=this.$M,Ae=this.$D,be="set"+(this.$u?"UTC":"");switch(ve){case B:return Ie?Ue(1,0):Ue(31,11);case T:return Ie?Ue(1,ue):Ue(0,ue+1);case C:var At=this.$locale().weekStart||0,Vt=(ie<At?ie+7:ie)-At;return Ue(Ie?Ae-Vt:Ae+(6-Vt),ue);case S:case L:return J(be+"Hours",0);case v:return J(be+"Minutes",1);case d:return J(be+"Seconds",2);case h:return J(be+"Milliseconds",3);default:return this.clone()}},re.endOf=function(de){return this.startOf(de,!1)},re.$set=function(de,fe){var Oe,Ie=ne.p(de),ve="set"+(this.$u?"UTC":""),Ue=(Oe={},Oe[S]=ve+"Date",Oe[L]=ve+"Date",Oe[T]=ve+"Month",Oe[B]=ve+"FullYear",Oe[v]=ve+"Hours",Oe[d]=ve+"Minutes",Oe[h]=ve+"Seconds",Oe[c]=ve+"Milliseconds",Oe)[Ie],J=Ie===S?this.$D+(fe-this.$W):fe;if(Ie===T||Ie===B){var ie=this.clone().set(L,1);ie.$d[Ue](J),ie.init(),this.$d=ie.set(L,Math.min(this.$D,ie.daysInMonth())).$d}else Ue&&this.$d[Ue](J);return this.init(),this},re.set=function(de,fe){return this.clone().$set(de,fe)},re.get=function(de){return this[ne.p(de)]()},re.add=function(de,fe){var Oe,Ie=this;de=Number(de);var ve=ne.p(fe),Ue=function(ue){var Ae=$(Ie);return ne.w(Ae.date(Ae.date()+Math.round(ue*de)),Ie)};if(ve===T)return this.set(T,this.$M+de);if(ve===B)return this.set(B,this.$y+de);if(ve===S)return Ue(1);if(ve===C)return Ue(7);var J=(Oe={},Oe[d]=r,Oe[v]=a,Oe[h]=n,Oe)[ve]||1,ie=this.$d.getTime()+de*J;return ne.w(ie,this)},re.subtract=function(de,fe){return this.add(-1*de,fe)},re.format=function(de){var fe=this,Oe=this.$locale();if(!this.isValid())return Oe.invalidDate||b;var Ie=de||"YYYY-MM-DDTHH:mm:ssZ",ve=ne.z(this),Ue=this.$H,J=this.$m,ie=this.$M,ue=Oe.weekdays,Ae=Oe.months,be=Oe.meridiem,At=function(Mt,gt,Ot,Zt){return Mt&&(Mt[gt]||Mt(fe,Ie))||Ot[gt].slice(0,Zt)},Vt=function(Mt){return ne.s(Ue%12||12,Mt,"0")},Et=be||function(Mt,gt,Ot){var Zt=Mt<12?"AM":"PM";return Ot?Zt.toLowerCase():Zt};return Ie.replace(g,function(Mt,gt){return gt||function(Ot){switch(Ot){case"YY":return String(fe.$y).slice(-2);case"YYYY":return ne.s(fe.$y,4,"0");case"M":return ie+1;case"MM":return ne.s(ie+1,2,"0");case"MMM":return At(Oe.monthsShort,ie,Ae,3);case"MMMM":return At(Ae,ie);case"D":return fe.$D;case"DD":return ne.s(fe.$D,2,"0");case"d":return String(fe.$W);case"dd":return At(Oe.weekdaysMin,fe.$W,ue,2);case"ddd":return At(Oe.weekdaysShort,fe.$W,ue,3);case"dddd":return ue[fe.$W];case"H":return String(Ue);case"HH":return ne.s(Ue,2,"0");case"h":return Vt(1);case"hh":return Vt(2);case"a":return Et(Ue,J,!0);case"A":return Et(Ue,J,!1);case"m":return String(J);case"mm":return ne.s(J,2,"0");case"s":return String(fe.$s);case"ss":return ne.s(fe.$s,2,"0");case"SSS":return ne.s(fe.$ms,3,"0");case"Z":return ve}return null}(Mt)||ve.replace(":","")})},re.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},re.diff=function(de,fe,Oe){var Ie,ve=this,Ue=ne.p(fe),J=$(de),ie=(J.utcOffset()-this.utcOffset())*r,ue=this-J,Ae=function(){return ne.m(ve,J)};switch(Ue){case B:Ie=Ae()/12;break;case T:Ie=Ae();break;case k:Ie=Ae()/3;break;case C:Ie=(ue-ie)/6048e5;break;case S:Ie=(ue-ie)/864e5;break;case v:Ie=ue/a;break;case d:Ie=ue/r;break;case h:Ie=ue/n;break;default:Ie=ue}return Oe?Ie:ne.a(Ie)},re.daysInMonth=function(){return this.endOf(T).$D},re.$locale=function(){return X[this.$L]},re.locale=function(de,fe){if(!de)return this.$L;var Oe=this.clone(),Ie=Y(de,fe,!0);return Ie&&(Oe.$L=Ie),Oe},re.clone=function(){return ne.w(this.$d,this)},re.toDate=function(){return new Date(this.valueOf())},re.toJSON=function(){return this.isValid()?this.toISOString():null},re.toISOString=function(){return this.$d.toISOString()},re.toString=function(){return this.$d.toUTCString()},ge}(),_e=Q.prototype;return $.prototype=_e,[["$ms",c],["$s",h],["$m",d],["$H",v],["$W",S],["$M",T],["$y",B],["$D",L]].forEach(function(ge){_e[ge[1]]=function(re){return this.$g(re,ge[0],ge[1])}}),$.extend=function(ge,re){return ge.$i||(ge(re,Q,$),ge.$i=!0),$},$.locale=Y,$.isDayjs=z,$.unix=function(ge){return $(1e3*ge)},$.en=X[U],$.Ls=X,$.p={},$})})(U_);function ye(t,e){return t.replace(/\$(\w+)/g,(n,r)=>String(e[r])||n)}function hu(t){var e=encodeURI(t),n=btoa(e);return n}class $_ extends c_{constructor(){super(...arguments);D(this,"visitProgram");D(this,"visitGlobalStmt");D(this,"visitBlockStmt");D(this,"visitStmt");D(this,"visitSimpleStmt");D(this,"visitFlowStmt");D(this,"visitBlock");D(this,"visitBlockLine");D(this,"visitVariableDeclarationStmt");D(this,"visitDeclareAssign");D(this,"visitAgainAssign");D(this,"visitVarModifier");D(this,"visitBlockSequence");D(this,"visitExpressionSequence");D(this,"visitExpressionBlockSequence");D(this,"visitVarBlockStmt");D(this,"visitVarSingle");D(this,"visitVarMultiple");D(this,"visitBlockExpression");D(this,"visitParenthesizedExpression");D(this,"visitAdditiveExpression");D(this,"visitRelationalExpression");D(this,"visitTernaryExpression");D(this,"visitLogicalAndExpression");D(this,"visitNameExpression");D(this,"visitLiteralExpression");D(this,"visitLogicalOrExpression");D(this,"visitUnaryExpression");D(this,"visitNotExpression");D(this,"visitMemberIndexExpression");D(this,"visitMethodExpression");D(this,"visitEqualityExpression");D(this,"visitMultiplicativeExpression");D(this,"visitBrackethesized");D(this,"visitArguments");D(this,"visitArgument");D(this,"visitIfStatement");D(this,"visitForToStatement");D(this,"visitForInStatement");D(this,"visitSwitchStatement");D(this,"visitCaseClause");D(this,"visitDefaultCaluse");D(this,"visitWhileStatement");D(this,"visitImportStmt");D(this,"visitImportElement");D(this,"visitLiteral");D(this,"visitMethodStmt");D(this,"visitMethodElement");D(this,"visitMethodName");D(this,"visitArrowFunction");D(this,"visitArrowFunctionParameters");D(this,"visitFormalParameterList");D(this,"visitFormalParameterArg");D(this,"visitArrowMethod");D(this,"visitArrowMethodParameters");D(this,"visitTypeStatement");D(this,"visitTypeElement");D(this,"visitAssignmentOperator");D(this,"visitTypeMap");D(this,"visitTypeSeries");D(this,"visitTypeArray");D(this,"visitTypeGather");D(this,"visitIdentifier");D(this,"visitTypeName");D(this,"visitName");D(this,"visitEnumStatement");D(this,"visitEnumElement")}}class V_ extends $_{constructor(n){super();D(this,"_buildinVariables");D(this,"_buildinTypes");D(this,"_buildinConstants");D(this,"_buildinMethods");D(this,"_buildinFunctions");this._buildinVariables=new Map,this._buildinConstants=new Map,this._buildinFunctions=new Map,this._buildinTypes=new Map,this._buildinMethods=new Map,this._buildinHandle(n)}_buildinHandle(n){for(const r in n){const a=new Map(Object.entries(n[r]));switch(r){case"constants":this._buildinConstants=a;break;case"functions":this._buildinFunctions=a;break;case"methods":this._buildinMethods=a;break;case"types":this._buildinTypes=a;break;case"variables":this._buildinVariables=a;break}}}_typeHandle(n=[],r){if(!n.length)return V.UNDETERMINED;if(n=n.filter(h=>!h.endsWith(V.NA)),!n.length)return`${V.SIMPLE} ${V.NA}`;let a=100,c="";for(const h of n){if(h===V.UNDETERMINED)return V.UNDETERMINED;h.startsWith(V.SERIES)?a=0:h.startsWith(V.SIMPLE)&&a>0?a=1:h.startsWith(V.INPUT)&&a>1?a=2:h.startsWith(V.CONST)&&a>2&&(a=3);const d=this._removePrefix(h);(d!==V.INT||!c)&&(c=d)}return a===100?c:`${Pi[a]} ${r||c}`}_returnTypesOtherHandle(n,r,a,c){if(!a.length||a[0].includes("<>")){const h=n==null?void 0:n.type;let d=h;if(!h||h===V.UNDETERMINED)return[V.UNDETERMINED];switch(r){case"series <type>":d=this._getArrayType(h),d||(d=this._removePrefix(h)),a=[this._typeAddSeries(d)];break;case"array<type>":case"matrix<type>":case"type[]":if(this._isMapType(h)){const v=this._getMapType(h)||[];c.includes("keys")?d=v[0]:d=v[1]}else d=this._getArrayType(h),d||(d=this._removePrefix(h));a=[this._typeReplace(r,d)];break;case"<matrix_type>":d=this._getArrayType(h),a=[this._typeAddSeries(d)];break;case"map<keyType, valueType>":a=[d];break;case"<value_type>":d=this._getMapType(h),a=[d[1]];break}}return a}_checkMethodThisType(n,r){if(!n||!n.length||n[0].includes("<>"))return!0;const a=r.replace("int","float");return n.some(c=>c===r||a===c||c.endsWith(r))}_priorityComparison(n,r){if(!n)return!1;if(this._isArrayType(n)||this._isMatrixType(n))return this._getArrayType(r)!==V.INT;{const a=this._getPrefix(n),c=this._getPrefix(r);return a===c?!!n.endsWith(V.INT):!(Pi.indexOf(a)<Pi.indexOf(c))}}_compareType(n,r){if(n===V.UNDETERMINED||r===V.UNDETERMINED)return!0;const a=[V.FLOAT,V.INT];if(this._isArrayType(n)||this._isMatrixType(n)){const c=this._getArrayType(n)||"",h=this._getArrayType(r)||"";return c===h||a.includes(c)&&a.includes(h)}else if(this._isMapType(n)){const c=this._getMapType(n)||[],h=this._getMapType(r)||[];return(c[0]===h[0]||a.includes(c[0])&&a.includes(h[0]))&&(c[1]===h[1]||a.includes(c[1])&&a.includes(h[1]))}else{const c=this._removePrefix(n),h=this._removePrefix(r);return c===V.NA||h===V.NA||c===h||a.includes(c)&&a.includes(h)}}_typeAddSeries(n){return this._buildinTypes.get(n)&&n!==V.CHART_POINT?`${V.SERIES} ${n}`:n}_typeAddConst(n){return lu.includes(n)?`${V.CONST} ${n}`:this._typeAddSeries(n)}_getOriginMethodName(n,r){let a="";return this._isArrayType(n)?a=`${V.ARRAY}.${r}`:this._isMatrixType(n)?a=`${V.MATRIX}.${r}`:this._isMapType(n)?a=`${V.MAP}.${r}`:a=`${this._removePrefix(n)}.${r}`,a}_returnedTypesParse(n){if(!n||!n.length)return[];const r=n[0];return/^\[.+\]$/.test(r)?r.replace(/[[\]]/g,"").split(",").map(a=>a.trim()):n}_removePrefix(n=""){return n.replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}_getPrefix(n){if(!n)return"";const r=n.replace(/(series|simple|const|input).+/,"$1");return Pi.includes(r)?r:""}_getArrayType(n){let r=/\w+<([\w\d.]+)>/.exec(n);return r||(r=/([\w\d.]+)\[\]/.exec(n)),r==null?void 0:r[1]}_getMapType(n){const r=/\w+<(\w+),\s*([\w\d.]+)>/.exec(n);return(r==null?void 0:r[1])&&(r==null?void 0:r[2])&&[r==null?void 0:r[1],r==null?void 0:r[2]]}_isMatrixType(n){return/^matrix<[\w\d.]+>$/.test(n)}_isArrayType(n){return/^array<[\w\d.]+>$/.test(n)||/^[\w\d.]+\[\]$/.test(n)}_isMapType(n){return/^map<\w+,\s*[\w\d.]+>$/.test(n)}_arrayTypeConvert(n){return!this._isArrayType(n)||!n.includes("<")?n:`${this._getArrayType(n)}[]`}_getMethodTypeName(n){return this._isArrayType(n)?V.ARRAY:this._isMapType(n)?V.MAP:this._isMatrixType(n)?V.MATRIX:this._removePrefix(n)}_typeReplace(n,r){return r===V.UNDETERMINED?r:(r=this._removePrefix(r),this._arrayTypeConvert(n.startsWith(V.SERIES)?n.replace("<type>",r):n.replace("type",r)))}}var Sn=(t=>(t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error",t))(Sn||{});class Mp extends V_{constructor(n,r,a){super(n);D(this,"_loopCount");D(this,"_errors");D(this,"_variables");D(this,"_functions");D(this,"_methods");D(this,"_types");D(this,"_enums");D(this,"_currentBlockVars");D(this,"_currentFuncParams");D(this,"_isNeedCalc");D(this,"_blockCount");D(this,"_isInFunc");D(this,"_currentExportFunc");D(this,"_onlyStatementsCount");D(this,"_blockRanges");D(this,"_overloadsFuncs");D(this,"_hasMemberIndex");D(this,"_isInLocalScop");D(this,"_comments");D(this,"_currentLine",0);D(this,"_hasDrawFunc",!1);D(this,"_hasCreateOrderFunc",!1);D(this,"_scriptType");D(this,"_exportFunctions");D(this,"_exportMethods");D(this,"_exportTypes");D(this,"_exportEnums");D(this,"_exportPositions");D(this,"_description","");D(this,"_endExport");D(this,"_importLibs");D(this,"_getImportLibraryFunc");D(this,"_isEndExpr");D(this,"_inputVarName");D(this,"_hasRequest");D(this,"_strategyFuncName");D(this,"_strategyVarName");D(this,"visitProgram",async n=>{const{children:r}=n;let a=0;const c=[];for(this._pushBlockRanges(n);a<r.length;a++){const h=r[a];h.ruleIndex===F.RULE_globalStmt&&c.push(await this.visit(h))}return this._onlyStatementsCount<=0?this._errors.push({startColumn:0,endColumn:0,startLineNumber:0,endLineNumber:0,type:Sn.Error,message:ye(pe.onlyStatementErr,{count:this._onlyStatementsCount})}):this._scriptType===Ii.indicator&&(this._strategyFuncName?this._errorHandle(ye(pe.indicatorUseStrategyFuncErr,{name:this._strategyFuncName.name,type:"functions"}),this._strategyFuncName.ctx):this._strategyVarName&&this._errorHandle(ye(pe.indicatorUseStrategyFuncErr,{name:this._strategyVarName.name,type:"variables"}),this._strategyVarName.ctx)),c});D(this,"visitGlobalStmt",async n=>{const{children:r}=n;if(r&&r.length){const a=r[0],c=await this.visit(a);return a.ruleIndex===F.RULE_methodStmt&&fu.includes(c.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(ye(pe.onlyStatementErr,{count:this._onlyStatementsCount}),a):this._scriptType=c.exprs[0].name),c}return null});D(this,"visitBlockStmt",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_variableDeclarationStmt:c.push(...this.visit(h));break;case F.RULE_varBlockStmt:c.push(this.visit(h));break;case F.RULE_blockExpression:c.push(this.visit(h));break}}return c});D(this,"visitStmt",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});D(this,"visitSimpleStmt",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});D(this,"visitFlowStmt",n=>{const{children:r}=n,{column:a,line:c,text:h}=r[0].symbol;if(this._currentLine=c,this._loopCount<=0){const d=a+1;this._errors.push({startColumn:d,endColumn:parseInt(d+h.length),startLineNumber:c,endLineNumber:c,message:ye(pe.onlyInLoop,{text:h})})}return{ruleType:le.FlowStmt,value:h}});D(this,"visitBlock",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return a.ruleIndex===F.RULE_simpleStmt?this._inBlock(a):this.visit(a)}return null});D(this,"visitBlockLine",n=>{const{children:r}=n;if(!r)return null;let a=0;const c=[];this._blockCount++,this._pushBlockRanges(n);const h=this._isEndExpr;for(;a<r.length;a++){const d=r[a];d.ruleIndex===F.RULE_stmt&&(this._isInFunc&&(this._isEndExpr=r.length-2===a&&h),c.push(this.visit(d)))}return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),c});D(this,"visitDeclareAssign",n=>{var h;const{children:r}=n;let a=0;const c={ruleType:le.DeclareAssign};for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case F.RULE_varArrayDeclaration:c.nameList=this.visit(d),this._inputVarName=(h=c.nameList)==null?void 0:h.name;break;case F.RULE_singleExpression:c.value=this.visit(d),this._inputVarName=void 0;break}}return this._variablesHandle(c,n),c});D(this,"visitAgainAssign",n=>{const{children:r,start:a}=n;if(this._currentLine=a.line,r.length>=3){const c=this.visit(r[0]);this._verifyGloablVar(c,r[0]);const h=this.visit(r[2]),d=this.visit(r[1]);return c.type?this._againAssignHandle([c,h],[r[0],r[2]],d):null}return null});D(this,"visitVarModifier",n=>{const{children:r}=n;return r[0].symbol.text});D(this,"visitExpressionSequence",n=>{const{children:r,start:a}=n;let c=0;const h=[];for(this._currentLine=a.line;c<r.length;c++){const d=r[c];if(d.ruleIndex===F.RULE_singleExpression){const v=this.visit(d);v&&(v.ctx=d,h.push(v))}}return h});D(this,"visitExpressionBlockSequence",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_singleExpression:c.push(this.visit(h));break;case F.RULE_variableDeclarationList:c.push(this.visit(h));break;case F.RULE_blockExpression:c.push(this.visit(h));break;case F.RULE_varBlockStmt:c.push(this.visit(h));break}}return c});D(this,"visitBlockSequence",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_variableDeclarationList:c.push(this.visit(h));break;case F.RULE_singleExpression:c.push(this.visit(h));break}}return c});D(this,"visitVariableDeclarationStmt",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_variableDeclarationList:c.push(this.visit(h));break;case F.RULE_methodStmt:const d=this.visit(h);fu.includes(d.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(ye(pe.onlyStatementErr,{count:this._onlyStatementsCount}),h):this._scriptType=d.exprs[0].name),c.push(d);break}}return c});D(this,"visitVarBlockStmt",n=>{const{children:r}=n;let a=0;const c={ruleType:le.VarBlockStmt,ctx:n},h=[];for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case F.RULE_varArrayDeclaration:c.nameList=this.visit(d);break;case F.RULE_assignmentOperator:c.operator=this.visit(d);break;case F.RULE_name:h.push(d),c.name=this.visit(d);break;case F.RULE_blockExpression:if(this._isNeedCalc=!0,c.value=this.visit(d),!c.value)break;h.push(d);const v=this._getBlockReturnTypes(c.value);v.length===1?c.value.type=v[0]:c.value.types=v,this._isNeedCalc=!1;break}}return c.name?this._againAssignHandle([c.name,c.value],h,c.operator):(this._variablesHandle(c,n),c)});D(this,"visitVarSingle",n=>{const{children:r,start:a}=n,c={ruleType:le.VarSingle};let h=0;const d=this._commentsParser(a.line,[Kt.variable]);c.desc=d==null?void 0:d[Kt.variable],this._currentLine=a.line;let v={lineNumber:0,column:0};for(;h<r.length;h++){const S=r[h];switch(S.ruleIndex){case F.RULE_varModifier:c.declare=this.visit(S);break;case F.RULE_typeGather:const C=this.visit(S);c.prefix=this._getPrefix(C),c.type=C&&this._typeAddConst(C);break;case F.RULE_identifier:const T=this.visit(S);v={lineNumber:S.start.line,column:S.start.column},this._repeatVarJudge(T,S,v),c.name=T,c.pos=v;break}}return c});D(this,"_commentsParser",(n,r,a=!1)=>{var S;const c=this._comments.filter(C=>C.line<n&&C.line>=this._currentLine),h={},d={line:0,key:"",secKey:""},v=[Kt.field,Kt.param];for(const C of c){const[T,k]=B_.exec(C.text)||[];if(k&&r.includes(k)){const B=C.text.replace(T,"").trim();if(Object.assign(d,{line:C.line,key:k}),v.includes(k)){const[L,...b]=B.split(" ");L&&(Object.assign(d,{secKey:L}),h[k]=Object.assign(h[k]||{},{[L]:b.join(" ").trim()}))}else h[k]=[B]}else if(a&&d.key){const B=C.text.replace("//","").trim();v.includes(d.key)?h[d.key][d.secKey]+=` ${B}`:(S=h[d.key])==null||S.push(B)}}return h});D(this,"visitVarMultiple",n=>{const{children:r,start:a}=n;let c=0;const h=[],d=[];for(this._currentLine=a.line;c<r.length;c++){const v=r[c];if(v.ruleIndex===F.RULE_identifier){const S=this.visit(v),C={lineNumber:v.start.line,column:v.start.column};this._repeatVarJudge(S,v,C,h),h.push(S),d.push(C)}}return{ruleType:le.VarMultiple,names:h,posList:d}});D(this,"visitBlockExpression",n=>{const{children:r,start:a}=n;if(this._currentLine=a.line,r&&r.length){const c=r[0];return this.visit(c)}return null});D(this,"visitParenthesizedExpression",n=>{const{children:r}=n,a=r[1],c=this.visit(a);return{ruleType:le.ParenthesizedExpression,type:c.type,ctx:n,exprs:c}});D(this,"visitAdditiveExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const v=r[a];v.ruleIndex===F.RULE_singleExpression?h.push(this.visit(v)):c=v.symbol.text}const d={ruleType:le.AdditiveExpression,operator:c,ctx:n,exprs:h};if(["+","-"].includes(c)){const v=[V.UNDETERMINED,V.INT,V.FLOAT];c==="+"&&v.push(V.STRING);const S=this._sameTypeJudge(h,[r[0],r[2]],c,v);d.type=this._typeHandle(S)}else{const v=this._calcTypeJudge(h[0],r[0],c),S=this._calcTypeJudge(h[1],r[2],c,1);d.type=this._typeHandle([v,S])}return d});D(this,"visitRelationalExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const S=r[a];S.ruleIndex===F.RULE_singleExpression?h.push(this.visit(S)):c=S.symbol.text}const d=this._calcTypeJudge(h[0],r[0],c),v=this._calcTypeJudge(h[1],r[2],c,1);return{ruleType:le.RelationalExpression,operator:c,ctx:n,type:this._typeHandle([d,v],V.BOOL),exprs:h}});D(this,"visitEqualityExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const v=r[a];v.ruleIndex===F.RULE_singleExpression?h.push(this.visit(v)):c=v.symbol.text}const d=this._sameTypeJudge(h,[r[0],r[2]],c,[]);return{ruleType:le.EqualityExpression,operator:c,ctx:n,type:this._typeHandle(d,V.BOOL),exprs:h}});D(this,"visitTernaryExpression",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const d=r[a];d.ruleIndex===F.RULE_singleExpression&&c.push(this.visit(d))}let h=V.UNDETERMINED;if(c.length>=3){this._boolTypeJudge(c[0],r[0],"?:");const d=this._sameTypeJudge(c.slice(1),[r[2],r[4]],"?:",[]),v=this._getPrefix(c[0].type);h=this._typeHandle(d),v&&this._getPrefix(h)&&(h=this._typeHandle([h,`${v} ${this._removePrefix(h)}`]))}return{ruleType:le.TernaryExpression,type:h,ctx:n,exprs:c}});D(this,"visitNameExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});D(this,"visitLiteralExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});D(this,"visitUnaryExpression",n=>{var S;const{children:r}=n,[a,c]=r,h=[this.visit(c)],d=a.symbol.text,v=this._calcTypeJudge(h[0],c,d);return((S=h[0])==null?void 0:S.ruleType)===le.UnaryExpression&&this._errors.push({message:ye(pe.unaryErr,{sign:d}),startColumn:a.symbol.column+1,startLineNumber:a.symbol.line,endColumn:a.symbol.column+2,endLineNumber:a.symbol.line}),{ruleType:le.UnaryExpression,operator:d,type:v,ctx:n,exprs:h}});D(this,"visitNotExpression",n=>{const{children:r}=n,a=r[1],c=[this.visit(a)],h=this._boolTypeJudge(c[0],a,"not");return{ruleType:le.NotExpression,ctx:n,type:this._typeHandle([h],V.BOOL),exprs:c}});D(this,"visitMemberIndexExpression",n=>{var h,d;const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const v=r[a];v.ruleIndex===F.RULE_singleExpression&&c.push(this.visit(v))}if(this._memberIndexVerify(c[0],n),this._hasMemberIndex=!0,((h=c[0])==null?void 0:h.ruleType)===le.MemberIndexExpression){const v=r[1];this._errors.push({message:ye(pe.unaryErr,{sign:"["}),startColumn:v.symbol.column+1,startLineNumber:v.symbol.line,endColumn:v.symbol.column+2,endLineNumber:v.symbol.line}),this._hasMemberIndex=!1}return{ruleType:le.MemberIndexExpression,type:(d=c[0])==null?void 0:d.type,ctx:n,isInFunc:this._isInFunc,exprs:c}});D(this,"visitMethodStmt",n=>{var C;const{children:r,start:a}=n;let c=0;const h=[],d=[],v=this._commentsParser(a.line,[Kt.description],!0);this._currentLine=a.line;let S;for(;c<r.length;c++){const T=r[c];T.ruleIndex===F.RULE_methodElement&&(h.push(this.visit(T)),d.push(T))}return((C=h[0])==null?void 0:C.name)===Ii.library&&v.description&&(this._description=v.description.join(`
12
- `)),S=this._getMethodTypes(h,d)||[],this._inputFuncTitleVerify(h,n),{ruleType:le.MethodExpression,types:S.length>1||S.isBrackethesized||S.isUnknown?S:void 0,ctx:n,type:S.length===1?S[0]:void 0,exprs:h}});D(this,"visitMethodExpression",n=>{const{children:r}=n;if(r&&r.length){const a=r[0];return this.visit(a)}return null});D(this,"visitLogicalAndExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const S=r[a];S.ruleIndex===F.RULE_singleExpression?h.push(this.visit(S)):c=S.symbol.text}const d=this._boolTypeJudge(h[0],r[0],c),v=this._boolTypeJudge(h[1],r[2],c,1);return{ruleType:le.LogicalAndExpression,type:this._typeHandle([d,v],V.BOOL),operator:c,ctx:n,exprs:h}});D(this,"visitLogicalOrExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const S=r[a];S.ruleIndex===F.RULE_singleExpression?h.push(this.visit(S)):c=S.symbol.text}const d=this._boolTypeJudge(h[0],r[0],c),v=this._boolTypeJudge(h[1],r[2],c,1);return{ruleType:le.LogicalOrExpression,operator:c,ctx:n,type:this._typeHandle([d,v],V.BOOL),exprs:h}});D(this,"visitMultiplicativeExpression",n=>{const{children:r}=n;let a=0,c="";const h=[];for(;a<r.length;a++){const S=r[a];S.ruleIndex===F.RULE_singleExpression?h.push(this.visit(S)):c=S.symbol.text}const d=this._calcTypeJudge(h[0],r[0],c),v=this._calcTypeJudge(h[1],r[2],c,1);return{ruleType:le.MultiplicativeExpression,operator:c,ctx:n,type:this._typeHandle([d,v]),exprs:h}});D(this,"visitBrackethesized",n=>{const{children:r,start:a}=n,c=r[1];return this._currentLine=a.line,{ruleType:le.Brackethesized,ctx:n,exprs:this.visit(c)}});D(this,"visitArguments",n=>{const{children:r}=n;let a=0;const c={params:[]};let h="";for(;a<r.length;a++){const d=r[a];if(d.ruleIndex===F.RULE_argument){const v=this.visit(d),S=v.paramKey;S?(h=S,c[S]?this._errorHandle(ye(ar.moreSameArg,{arg:S}),n.parentCtx,Sn.Warning):(c[S]=v.param,c[S].ctx=d)):h?this._errorHandle(ye(pe.argsSyntaxErr,{argName:h}),d):(v.ctx=d,c.params.push(v))}}return c});D(this,"visitArgument",n=>{const{children:r}=n;return r.length===1?this.visit(r[0]):{paramKey:this.visit(r[0]),param:this.visit(r[2])}});D(this,"visitIfStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:le.IfStatement,condition:[],block:[],ctx:n,typeList:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_singleExpression:const d=this.visit(h);if(!d)break;d.ctx=h,c.condition.push(d);break;case F.RULE_blockLine:const v=this._isInLocalScop;this._isInLocalScop=!0;const S=this.visit(h);c.typeList.push(this._getBlockReturnTypes(S)),c.block.push(S),this._isInLocalScop=v;break}}return this._verifyIf(c),c});D(this,"visitForToStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:le.ForToStatement,numerical:[],ctx:n,block:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_varModifier:c.declare=this.visit(h);break;case F.RULE_typeGather:const d=this.visit(h);c.type=d&&this._typeAddSeries(d);break;case F.RULE_identifier:c.name=this.visit(h);break;case F.RULE_singleExpression:this._blockCount++,this._forToNameHandle(c,n);const v=this.visit(h);v&&(v.ctx=h,c.numerical.push(v)),this._blockCount--;break;case F.RULE_blockLine:this._loopCount++;const S=this._isInLocalScop;this._isInLocalScop=!0,c.block=this.visit(h),this._loopCount--,this._isInLocalScop=S,c.returnedTypes=this._getBlockReturnTypes(c.block);break}}return this._verifyForTo(c),c});D(this,"visitForInStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:le.ForInStatement,ctx:n,names:[]};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_identifier:const d=this.visit(h);c.names.push(d);break;case F.RULE_singleExpression:this._blockCount++,c.array=this.visit(h);const v=c.array.type;this._forInNameHandle(c,n),this._isArrayType(v)||this._isMatrixType(v)||v===V.UNDETERMINED||this._errorHandle(ye(pe.typeMismatch,{operator:"foreach",index:"id",typeE:v,typeR:"array<fun_arg>"}),h),this._blockCount--;break;case F.RULE_blockLine:this._loopCount++;const S=this._isInLocalScop;this._isInLocalScop=!0,c.block=this.visit(h),this._isInLocalScop=S,this._loopCount--,c.returnedTypes=this._getBlockReturnTypes(c.block);break}}return c});D(this,"visitSwitchStatement",n=>{const{children:r}=n;let a=0;const c={ruleType:le.SwitchStatement,condition:!0,ctx:n,cases:[],defaultCase:void 0};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_singleExpression:if(c.condition=this.visit(h),!h.children)break;c.condition.ctx=h;break;case F.RULE_caseClause:c.cases.push(this.visit(h));break;case F.RULE_defaultCaluse:c.defaultCase=this.visit(h);break}}return this._verifySwitch(c),c});D(this,"visitCaseClause",n=>{const{children:r}=n,a={ruleType:le.CaseClause},c=this._isInLocalScop;return this._isInLocalScop=!0,a.condition=this.visit(r[0]),a.condition&&(a.condition.ctx=r[0],a.block=this.visit(r[2]),this._isInLocalScop=c,a.returnedTypes=this._getBlockReturnTypes(a.block)),a});D(this,"visitDefaultCaluse",n=>{const{children:r}=n,a={ruleType:le.DefaultCaluse},c=this._isInLocalScop;return this._isInLocalScop=!0,a.block=this.visit(r[1]),this._isInLocalScop=c,a.returnedTypes=this._getBlockReturnTypes(a.block),a});D(this,"visitWhileStatement",n=>{const{children:r}=n,a={ruleType:le.WhileStatement,ctx:n};if(a.condition=this.visit(r[1]),!a.condition)return a;a.condition.ctx=r[1],this._loopCount++;const c=this._isInLocalScop;return this._isInLocalScop=!0,a.block=this.visit(r[2]),this._isInLocalScop=c,this._loopCount--,a.returnedTypes=this._getBlockReturnTypes(a.block),this._verifyWhile(a),a});D(this,"visitImportStmt",async n=>{const{children:r,start:a}=n;let c=0;const h=[];for(this._currentLine=a.line;c<r.length;c++){const d=r[c];if(d.ruleIndex===F.RULE_importElement){const v=await this.visit(d);v&&h.push(v)}}return h});D(this,"visitImportElement",async n=>{const{children:r}=n;if(!r||!r.length)return;let a=0;const c=[],h={ruleType:le.ImportElement,ctx:n};for(;a<r.length;a++){const d=r[a];d.ruleIndex===F.RULE_identifier?c.push(this.visit(d)):d.symbol&&d.symbol.type===F.IntegerLiteral&&(h.libraryVersion=d.symbol.text)}return h.username=c[0],h.libraryName=c[1],h.name=c[2],await this._importHandle(h,n),h});D(this,"visitLiteral",n=>{const{children:r}=n,a=r[0],{type:c,text:h}=a.symbol,d={ruleType:le.Literal,ctx:n,type:"",value:h};switch(c){case F.ColorLiteral:d.type=V.COLOR;break;case F.BooleanLiteral:d.type=V.BOOL;break;case F.StringLiteral:if(d.type=V.STRING,h.includes(`
13
- `)){const v=h.replace(/\s*(\n|\r)\s*/g," ");d.value=`\`${v.substring(1,v.length-1)}\``}break;case F.IntegerLiteral:d.type=V.INT;break;case F.DecimalLiteral:d.type=V.FLOAT;break}return d.type&&(d.type=`${V.CONST} ${d.type}`),d});D(this,"visitMethodElement",n=>{const{children:r}=n,[a,c]=r,[h,d,v]=this.visit(a),S=this.visit(c);return h.startsWith("request.")&&this._isInFunc&&(this._currentExportFunc&&this._errorHandle(ye(pe.exportFuncUseReqErr,{name:h}),n),this._hasRequest=!0),{name:h,type:d,args:S,expr:v}});D(this,"visitMethodName",n=>{const{children:r}=n,a=[],c=[];let h=0,d=null;for(;h<r.length;h++){const S=r[h],C=S.ruleIndex,T=S.symbol;switch(C){case F.RULE_identifier:a.push(this.visit(S));break;case F.RULE_singleExpression:d=this.visit(S);break;case F.RULE_typeName:const k=this.visit(S);c.push(k),this._typeCheck(k,F.RULE_typeName,S);break;default:T&&T.text==="."&&a.push(".")}}const v=a.join("");return L_.includes(v)?this._hasDrawFunc=!0:M_.includes(v)&&(this._hasCreateOrderFunc=!0),[v,c,d]});D(this,"visitArrowFunction",n=>{const{children:r,start:a,stop:c}=n,h={ruleType:le.ArrowFunction,returnedTypes:[]};let d=0,v={lineNumber:0,column:0};const S=this._commentsParser(a.line,[Kt.function,Kt.param,Kt.returns],!0);Object.assign(h,{desc:S[Kt.function],paramsDesc:S[Kt.param],returnsDesc:S[Kt.returns]}),this._currentLine=a.line;let C=null;for(;d<r.length;d++){const T=r[d],k=T.ruleIndex,B=T.symbol;switch(k){case F.RULE_identifier:v={lineNumber:T.start.line,column:T.start.column},h.name=this.visit(T);break;case F.RULE_arrowFunctionParameters:h.params=this.visit(T),h.isExport&&this._exportArgsTypeVerify(h.params),this._setFuncParams(h,{endColumn:c.column,endLineNumber:c.line-1,startColumn:a.column,startLineNumber:a.line}),C=T;break;case F.RULE_block:this._isInFunc=!0,h.isExport&&(this._currentExportFunc=h.name),this._hasMemberIndex=!1,this._hasRequest=!1,h.block=this.visit(T),h.hasMemberIndex=this._hasMemberIndex,h.returnedTypes=this._getBlockReturnTypes(h.block),this._isInFunc=!1,this._currentExportFunc="";break;default:B&&B.type===F.Export&&(h.isExport=!0,this._addExportPos(B,"functions"))}}return h.hasRequest=this._hasRequest,this._setFunc(h,v,C,c.line-1),this._hasRequest=!1,this._currentFuncParams.clear(),h});D(this,"visitArrowFunctionParameters",n=>{const{children:r}=n;let a=0,c=[];for(;a<r.length;a++){const h=r[a];h.ruleIndex===F.RULE_formalParameterList&&(c=this.visit(h))}return c});D(this,"visitFormalParameterList",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];h.ruleIndex===F.RULE_formalParameterArg&&c.push(this.visit(h))}return c});D(this,"visitFormalParameterArg",n=>{const{children:r}=n;let a=0;const c={};for(;a<r.length;a++){const h=r[a];switch(h.ruleIndex){case F.RULE_typeGather:const d=this.visit(h);c.type=d&&this._typeAddSeries(d);break;case F.RULE_identifier:c.name=this.visit(h);break;case F.RULE_singleExpression:c.defaultValue=this.visit(h),delete c.defaultValue.ctx}}return c.ctx=n,this._verifyArgsDefaultValue(c,n),c.type=c.type||V.UNDETERMINED,c});D(this,"visitArrowMethod",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:le.ArrowMethod,returnedTypes:[]};let v={lineNumber:0,column:0};const S=this._commentsParser(a.line,[Kt.function,Kt.param,Kt.returns],!0);Object.assign(d,{desc:S[Kt.function],paramsDesc:S[Kt.param],returnsDesc:S[Kt.returns]}),this._currentLine=a.line;let C=null;for(;h<r.length;h++){const T=r[h];switch(T.ruleIndex){case F.RULE_identifier:v={lineNumber:T.start.line,column:T.start.column},d.name=this.visit(T);break;case F.RULE_arrowMethodParameters:d.params=this.visit(T),d.isExport&&this._exportArgsTypeVerify(d.params),this._setFuncParams(d,{endColumn:c.column,endLineNumber:c.line-1,startColumn:a.column,startLineNumber:a.line}),C=T;break;case F.RULE_block:this._isInFunc=!0,d.isExport&&(this._currentExportFunc=d.name),this._hasMemberIndex=!1,this._hasRequest=!1,d.block=this.visit(T),d.hasMemberIndex=this._hasMemberIndex,d.returnedTypes=this._getBlockReturnTypes(d.block),this._isInFunc=!1,this._currentExportFunc="";break;default:T.symbol&&T.symbol.type===F.Export&&(d.isExport=!0,this._addExportPos(T.symbol,"methods"));break}}return d.hasRequest=this._hasRequest,this._setFunc(d,v,C,c.line-1),this._setMethod(d,v),this._hasRequest=!1,this._currentFuncParams.clear(),d});D(this,"visitArrowMethodParameters",n=>{const{children:r}=n;if(!r)return;let a=0;const c={};let h=[];for(;a<r.length;a++){const d=r[a];switch(d.ruleIndex){case F.RULE_typeGather:const v=this.visit(d);c.type=v&&this._typeAddSeries(v);break;case F.RULE_identifier:c.ctx=d,c.name=this.visit(d);break;case F.RULE_formalParameterList:h=this.visit(d);break}}return[c,...h]});D(this,"visitTypeStatement",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:le.TypeStatement,fields:[]},v=this._commentsParser(a.line,[Kt.type,Kt.field]);Object.assign(d,{desc:v[Kt.type],fieldsDesc:v[Kt.field]}),this._currentLine=a.line;let S={lineNumber:0,column:0},C=null;for(;h<r.length;h++){const T=r[h];switch(T.ruleIndex){case F.RULE_identifier:S={lineNumber:T.start.line,column:T.start.column},C=T,d.name=this.visit(T),this._verifyTypeName(d.name,T);break;case F.RULE_typeElement:d.fields.push(this.visit(T));break;default:T.symbol&&T.symbol.type===F.Export&&(d.isExport=!0,this._addExportPos(T.symbol,"types"));break}}if(d.isExport){const T=c.line-1,{line:k=0}=this._endExport;T>k&&(this._endExport={line:T,name:d.name})}return this._setUserType(d,S,C),this._setNewFunc(d,S),this._setCopyFunc(d,S),this._setCopyMethod(d,S),d});D(this,"visitTypeElement",n=>{const{children:r,start:a}=n;let c=0;const h={};let d=null,v=null;for(this._currentLine=a.line;c<r.length;c++){const S=r[c];switch(S.ruleIndex){case F.RULE_typeGather:const C=this.visit(S);if(S.children[0].ruleIndex===F.RULE_typeSeries){const{column:T,line:k,text:B}=S.start,L=T+1;this._errors.push({startColumn:L,endColumn:parseInt(L+B.length),startLineNumber:k,endLineNumber:k,message:ye(this._buildinTypes.has(B)?pe.typeUseError:pe.notTypeKeyword,{text:B})}),h.type=V.UNDETERMINED}else h.type=C&&this._typeAddSeries(C);break;case F.RULE_identifier:h.name=this.visit(S),v=S;break;case F.RULE_singleExpression:d=S,h.value=this.visit(S);break;default:S.symbol&&S.symbol.type===F.Varip&&(h.isVarip=!0);break}}return this._typeElementVerify(h,d,v),h});D(this,"visitAssignmentOperator",n=>{const{children:r}=n;return r&&r[0].symbol.text});D(this,"visitTypeMap",n=>{const{children:r}=n;let a=0;const c=[];for(;a<r.length;a++){const h=r[a];if(h.ruleIndex===F.RULE_typeName){const d=this.visit(h);c.push(d),this._typeCheck(d,F.RULE_typeName,h)}}return`map<${c[0]},${c[1]}>`});D(this,"visitTypeSeries",n=>{const{children:r}=n,[a,c]=r,h=this.visit(a),d=this.visit(c);return this._typeCheck(h,F.RULE_typeSeries,a),this._typeCheck(d,F.RULE_typeName,c),`${h} ${d}`});D(this,"visitTypeArray",n=>{const{children:r}=n,a=r[0];let c=this.visit(a),h=c;if(r.length===3)c=V.ARRAY;else{this._typeCheck(c,F.RULE_typeArray,a);let d=1;for(;d<r.length;d++){const v=r[d];v.ruleIndex===F.RULE_typeName&&(h=this.visit(v),this._typeCheck(h,F.RULE_typeName,v))}}return this._arrayTypeConvert(`${c}<${h}>`)});D(this,"visitTypeGather",n=>{const{children:r}=n;if(r&&r.length){const a=r[0],c=this.visit(a);return a.ruleIndex===F.RULE_typeName&&this._typeCheck(c,F.RULE_typeName,a),c}return null});D(this,"visitIdentifier",n=>n.children&&n.children[0].symbol.text);D(this,"visitTypeName",n=>{const{children:r}=n;let a=0,c="";for(;a<r.length;a++){const h=r[a];h.ruleIndex===F.RULE_identifier?c=`${c}${this.visit(h)}`:c=`${c}.`}return c});D(this,"visitEnumStatement",n=>{const{children:r,start:a,stop:c}=n;let h=0;const d={ruleType:le.EnumStatement,fields:[]},v=this._commentsParser(a.line,[Kt.enum,Kt.field]);Object.assign(d,{desc:v[Kt.enum],fieldsDesc:v[Kt.field]}),this._currentLine=a.line;let S={lineNumber:0,column:0},C=null;for(;h<r.length;h++){const T=r[h];switch(T.ruleIndex){case F.RULE_identifier:S={lineNumber:T.start.line,column:T.start.column},C=T,d.name=this.visit(T),this._verifyEnumName(d.name,T);break;case F.RULE_enumElement:d.fields.push(this.visit(T));break;default:T.symbol&&T.symbol.type===F.Export&&(d.isExport=!0,this._addExportPos(T.symbol,"enums"));break}}if(d.isExport){const T=c.line-1,{line:k=0}=this._endExport;T>k&&(this._endExport={line:T,name:d.name})}return this._setUserEnum(d,S,C),d});D(this,"visitEnumElement",n=>{const{children:r,start:a}=n;let c=0;const h={};for(this._currentLine=a.line;c<r.length;c++){const d=r[c];switch(d.ruleIndex){case F.RULE_identifier:h.name=this.visit(d);break;default:d.symbol&&d.symbol.type===F.StringLiteral&&(h.value=d.symbol.text);break}}return h});D(this,"visitName",n=>{const{children:r}=n;let a=0,c=!1;const h=[];let d=null;for(;a<r.length;a++){const v=r[a];switch(v.ruleIndex){case F.RULE_identifier:h.push(this.visit(v));break;case F.RULE_singleExpression:d=this.visit(v);break;case F.RULE_methodElement:c=!0;const S=this.visit(v);S.ctx=v,h.push(S);break}}return this._nameHandle(c,h,d,n)});this._loopCount=0,this._errors=[],this._variables=new Map,this._functions=new Map,this._methods=new Map,this._currentFuncParams=new Map,this._types=new Map,this._enums=new Map,this._currentBlockVars=[new Map],this._blockCount=0,this._isInFunc=!1,this._isNeedCalc=!1,this._blockRanges=[],this._overloadsFuncs=[],this._hasMemberIndex=!1,this._isInLocalScop=!1,this._onlyStatementsCount=0,this._comments=r,this._exportFunctions=[],this._exportMethods=[],this._exportTypes=[],this._exportEnums=[],this._exportPositions=[],this._endExport={},this._importLibs=new Map,this._getImportLibraryFunc=a}get overloadsFuncs(){return this._overloadsFuncs}get errors(){return this._errors}get userEnums(){return this._enums}get userTypes(){return this._types}get userFunctions(){return this._functions}get userVariables(){return this._variables}get userMethods(){return this._methods}get hasUseDrawFunc(){return this._hasDrawFunc}get hasUseCreateOrderFunc(){return this._hasCreateOrderFunc}get scriptType(){return this._scriptType}get exportLibs(){return{functions:[...this._exportFunctions],methods:[...this._exportMethods],types:[...this._exportTypes],enums:[...this._exportEnums]}}get description(){return this._description}get exportPositions(){return this._exportPositions}get endExport(){return this._endExport}get imports(){return this._importLibs}_verifyGloablVar(n,r){const{name:a,varPos:c,isBuiltIn:h}=n;if(h&&this._errorHandle(ye(pe.buidinAssignErr,{name:a}),r),!c)return;const d=this._currentBlockVars[0].get(a);if(!d)return;const{column:v,lineNumber:S}=d.pos||{};this._isInFunc&&v===c.column&&S===c.lineNumber?this._errorHandle(ye(pe.modifyGlobalVarErr,{name:a}),r):d.hasAssigned=!0}_inputFuncTitleVerify(n,r){if(!(n!=null&&n.length)||n.length>1)return;const{name:a,args:c,isBuiltIn:h}=n[0];if(h&&!this._strategyFuncName&&a.startsWith(Ii.strategy))this._strategyFuncName={ctx:r,name:a};else if(!a.startsWith(V.INPUT))return;this._inputVarName&&!(c.params.some(d=>d.originName==="title")||c.title)&&(c.title={value:`"${this._inputVarName}"`,ruleType:le.Literal,type:`${V.CONST} ${V.STRING}`})}_verifyIf(n){const{condition:r}=n;if(r!=null&&r.length)for(const a of r){const{type:c,ctx:h}=a;if(c===V.UNDETERMINED)continue;const d=this._removePrefix(c);[V.INT,V.FLOAT].includes(d)?this._errorHandle(ye(ar.conditionWarning,{name:"if"}),h,Sn.Warning):d!==V.BOOL&&this._errorHandle(ye(pe.conditionalErr,{name:"if"}),h)}}_forToNameHandle(n,r){if(n.name&&n.numerical.length===1){this._pushBlockRanges(r);const a=n.numerical[0].type;this._variablesHandle({nameList:{name:n.name,isForVar:!0,type:n.type},value:{type:a||`${V.SERIES} ${V.INT}`}},r),this._blockRanges.pop()}}_verifyForTo(n){const{numerical:r}=n;if(r!=null&&r.length)for(const a of r){const{type:c,ctx:h}=a;if(c===V.UNDETERMINED)continue;const d=this._removePrefix(c);[V.INT,V.FLOAT].includes(d)||this._errorHandle(pe.fortoErr,h)}}_forInNameHandle(n,r){if(this._pushBlockRanges(r),n.names.length){let[a,c]=n.names;const h=n.array.type;c?this._variablesHandle({nameList:{name:a,isForVar:!0,type:`${V.SERIES} ${V.INT}`},value:{type:`${V.SERIES} ${V.INT}`}},r):c=a;const d=h===V.UNDETERMINED?h:this._isMatrixType(h)?`${this._getArrayType(h)}[]`:this._typeAddSeries(this._getArrayType(h));this._variablesHandle({nameList:{name:c,isForVar:!0,type:d},value:{type:d}},r)}this._blockRanges.pop()}_verifySwitch(n){var r;if(n.cases){const a=(r=n.condition)==null?void 0:r.type;if(a===V.UNDETERMINED)return;if(a&&this._types.has(a)){this._errorHandle(ye(pe.typeMismatch,{operator:"switch",index:"expr0",typeE:a,typeR:`${V.SIMPLE} ${V.STRING}`}),n.condition.ctx);return}for(const c of n.cases){const{condition:{type:h,ctx:d}}=c;if(h!==V.UNDETERMINED)if(this._types.has(h))this._errorHandle(ye(pe.typeMismatch,{operator:"case",index:"expr1",typeE:h,typeR:`${V.SIMPLE} ${V.STRING}`}),d);else if(a){if(!this._compareType(a,h)){const v=this._removePrefix(a),S=this._removePrefix(h);v===V.BOOL&&[V.INT,V.FLOAT].includes(S)?this._errorHandle(ye(ar.conditionWarning,{name:"switch"}),d,Sn.Warning):[V.INT,V.FLOAT].includes(v)&&S===V.BOOL?this._errorHandle(ye(ar.conditionWarning,{name:"switch"}),n.condition.ctx,Sn.Warning):this._errorHandle(ye(pe.typeMismatch,{operator:"case",index:"expr1",typeE:h,typeR:`${a}`}),d)}}else{const v=this._removePrefix(h);[V.INT,V.FLOAT].includes(v)?this._errorHandle(ye(ar.conditionWarning,{name:"switch"}),d,Sn.Warning):v!==V.BOOL&&this._errorHandle(ye(pe.conditionalErr,{name:"switch"}),d)}}}}_verifyWhile(n){const{condition:r}=n;if(r){const{type:a,ctx:c}=r;if(a===V.UNDETERMINED)return;const h=this._removePrefix(a);[V.INT,V.FLOAT].includes(h)?this._errorHandle(ye(ar.conditionWarning,{name:"while"}),c,Sn.Warning):h!==V.BOOL&&this._errorHandle(ye(pe.conditionalErr,{name:"while"}),c)}}async _importHandle(n,r){const{stop:a,start:c}=r,{username:h,libraryName:d,libraryVersion:v,name:S}=n,C=`${h}/${d}/${v}`;if(this._importLibs.has(C))return this._errorHandle(pe.importMultipleErr,r),n;for(const[B,L]of this._importLibs)if(L.name&&L.name===S||!L.name&&!S&&L.libraryName===d)return this._errorHandle(ye(pe.importNameRepeatErr,{name:S,line:L.startLine}),r),n;let T=S||d;const k=await this._getImportLibraryFunc({...n,libraryId:C,ctx:void 0,startLine:c.line,endLine:a.line,startColumn:c.column,endColumn:a.column+a.text.length+1});if(k){const{codeStr:B,description:L}=k;this._importLibs.set(C,{...n,libraryId:C,startLine:c.line,endLine:a.line,ctx:void 0,desc:L}),this._importDataHandle(k,T),wn.includes(T)&&(T=`$${T}`),n.code=B.replace("$name",T)}else this._errorHandle(ye(pe.importNotExitErr,{username:h,libraryName:d}),r)}_importDataHandle(n,r){const{functions:a,methods:c,types:h}=n;for(const d of a){const{name:v}=d,S=`${r}.${v}`,C=this._functions.get(S)||[];C.push({...this._importTypeUpdate(d,h,r),name:S,isUser:void 0,isImport:!0}),this._functions.set(S,C)}for(const d of c){const v=this._importTypeUpdate(d,h,r),S=v.originalName||v.name,C=this._methods.get(S)||[];C.push({...v,isImport:!0,isUser:void 0}),this._methods.set(S,C)}for(const d of h){const v=`${r}.${d.name}`,S=this._types.get(v)||[];S.push({...this._importTypeUpdate(d,h,r),name:v,isImport:!0}),this._types.set(v,S)}}_importTypeUpdate(n,r,a){var B;let{args:c,returnedTypes:h,thisType:d,fields:v,name:S,originalName:C}=n,T="";if(c&&c.length&&(c=c.map(L=>{const{allowedTypeIDs:b,displayType:y,name:g}=L,O=y&&this._replaceTypeName(y,r,a);return T=T?`${T}, ${O} ${g}`:`${O} ${g}`,{...L,allowedTypeIDs:b==null?void 0:b.map(R=>this._replaceTypeName(R,r,a)),displayType:O}})),h!=null&&h.length&&(h=[this._replaceTypeName(h[0],r,a)]),d!=null&&d.length){const L=this._replaceTypeName(d[0],r,a);L!==d[0]&&(C=`${a}.${C||S}`),d=[L]}v!=null&&v.length&&(v=v.map(L=>{const{type:b}=L;return{...L,type:b&&this._replaceTypeName(b,r,a)}}));const k={...n,args:c,returnedTypes:h,thisType:d,fields:v,originalName:C};return(B=k.syntax)!=null&&B.length&&(k.syntax=[`${C||`${a}.${S}`}(${T}) → ${(h==null?void 0:h[0])||"void"}`]),k}_replaceTypeName(n,r,a){const c=r.find(h=>n.includes(h.name));return c?n.replace(c.name,`${a}.${c.name}`):n}_verifyArgsDefaultValue(n,r){const{defaultValue:a,type:c}=n;if(!a)return;const{ruleType:h,isBuiltIn:d,type:v}=a,S=this._removePrefix(v);if(h!==le.Literal&&!d)delete n.defaultValue,this._errorHandle(pe.argDefaultErr,r);else if(c&&c!==V.UNDETERMINED&&v!==V.UNDETERMINED){const C=this._removePrefix(c);if(C===V.FLOAT&&S===V.INT)return;S!==C&&this._errorHandle(ye(pe.defaultValueTypeErr,{typeE:v,typeR:c}),r)}else c||(n.type=this._typeAddSeries(S===V.INT?V.FLOAT:S))}_exportArgsTypeVerify(n){for(const r of n)(r.type===V.UNDETERMINED||!r.type)&&this._errorHandle(pe.exportFuncArgErr,r.ctx)}_verifyTypeName(n,r){lu.includes(n)?this._errorHandle(ye(pe.typeNameErr,{name:n}),r):Fp.includes(n)&&this._errorHandle(ye(pe.enumVarNameBuiltinErr,{name:n}),r)}_addExportPos(n,r){const{line:a,column:c,text:h}=n;this._exportPositions.push({startLineNumber:a,startColumn:c,endLineNumber:a,endColumn:c+h.length+1,type:r})}_verifyEnumName(n,r){lu.includes(n)?this._errorHandle(ye(pe.enumVarNameErr,{name:n}),r):Fp.includes(n)&&this._errorHandle(ye(pe.enumVarNameBuiltinErr,{name:n}),r)}_nameHandle(n,r,a,c){var d,v;const h={ruleType:le.Name,hasMethod:n,exprs:r,expr:a};if(n){let S="";const C=[];for(const k of r)typeof k=="string"?S=S?`${S}.${k}`:k:(S&&(k.name=`${S}.${k.name}`),C.push(k),S="");h.exprs=[...C,S];const T=this._getMethodTypes(C,Array.from(C,()=>c));if(T&&T.length){const k=ye(pe.noFiledErr,{name:S});T.length>1&&this._errorHandle(k,c),h.type=((v=this._nameCheck(this._getOriginMethodName(T[0],S),c,k))==null?void 0:v.type)||V.UNDETERMINED}}else{let S=r.join(".");if(a&&a.type&&a.type===V.UNDETERMINED)h.type=V.UNDETERMINED,S=`expr0.${S}`;else{a&&a.type&&(S=`${this._getMethodTypeName(a.type)}.${S}`);const C=this._nameCheck(S,c)||{};(d=C.title)!=null&&d.startsWith("built-in")&&(h.isBuiltIn=!0,h.isConst=C.isConst,!this._strategyVarName&&S.startsWith(Ii.strategy)&&(this._strategyVarName={ctx:c,name:S})),h.enumName=C.enumName,h.varPos=C.pos,h.varScope=C.scope,h.declare=C.declare,h.type=(C==null?void 0:C.type)||V.UNDETERMINED,C!=null&&C.isArg&&(h.arg=C),h.scope=this._blockCount,C.isEnum?this._errorHandle(ye(pe.enumUseErr,{name:S}),c):this._isInFunc&&this._currentExportFunc&&(h.type.startsWith(V.INPUT)?this._errorHandle(ye(pe.exportFuncHasInputErr,{name:S,func:this._currentExportFunc}),c):C.scope===0&&C.hasAssigned&&this._errorHandle(ye(pe.exportFuncUseGlobalVarErr,{func:this._currentExportFunc}),c))}h.name=S}return h}_typeElementVerify(n,r,a){var v,S;const{type:c,value:h}=n;if(!h){c||this._errorHandle(pe.typeFieldErr,a);return}if(![le.Literal,le.UnaryExpression].includes(h.ruleType)&&!h.isBuiltIn){this._errorHandle(pe.defaultValueErr,r);return}else if(h.ruleType===le.UnaryExpression){const{exprs:C}=h;if(![le.Literal,le.UnaryExpression].includes((v=C[0])==null?void 0:v.ruleType)&&!((S=C[0])!=null&&S.isBuiltIn)){this._errorHandle(pe.defaultValueErr,r);return}}if(!c){const C=h.type,T=this._getPrefix(C);n.type=T?this._typeAddSeries(this._removePrefix(C)):C;return}(!this._compareType(c,h.type)||c.endsWith(V.INT)&&h.type.endsWith(V.FLOAT))&&this._errorHandle(ye(pe.defaultValueTypeErr,{typeE:h.type,typeR:c}),r)}_memberIndexVerify(n,r){if(n.ruleType===le.Name&&!n.hasMethod&&this._blockCount){const c=this._currentBlockVars[this._blockCount],h=c&&c.get(n.name);h&&(h.isForVar?this._errorHandle(ye(pe.notHistoryErr,{name:n.name}),r):!(this._blockCount===1&&this._isInFunc)&&this._errorHandle(ye(ar.localScopeGetHistory,{name:n.name}),r,Sn.Warning))}const a=n&&n.type;if(a){const c=this._removePrefix(a);!this._types.has(c)&&!this._buildinTypes.has(c)&&!this._isArrayType(c)&&!this._isMatrixType(c)&&!this._isMapType(c)&&c!==V.UNDETERMINED&&this._errorHandle(ye(pe.invalidType,{index:0}),r)}}_setFuncParams(n,r){var a;for(const c of n.params){const h=(a=this._types.get(c.type))==null?void 0:a[0];if(c.scope=this._blockCount+1,h&&h.fields)for(const d of h.fields){const v=`${c.name}.${d.name}`;this._currentFuncParams.set(v,{...d,originName:v,varScope:c.scope})}delete c.ctx,c.range=r,this._setVariablesMap(c,!0),this._currentFuncParams.set(c.name,c)}}_pushBlockRanges(n){!n||!n.start||!n.stop||this._blockRanges.push({startColumn:n.start.column,endColumn:n.stop.column,startLineNumber:n.start.line,endLineNumber:n.stop.line})}_setUserEnum(n,r,a){const{fields:c,name:h,desc:d,fieldsDesc:v}=n,S={members:c.map(C=>({name:C.name,value:C.value,enumName:h,isEnumMember:!0,desc:v==null?void 0:v[C.name],type:`${V.CONST} ${h}`})),name:h,desc:d,pos:r};if(this._enums.has(h)){this._errorHandle(ye(pe.typeRepeatErr,{name:h,keyword:Kt.enum}),a);return}else if(this._types.has(h)){this._errorHandle(ye(pe.typeRepeatErr,{name:h,keyword:Kt.type}),a);return}n.isExport&&this._exportEnums.push(S),this._enums.set(h,[{...S}]),this._addEnumToMap(h,h,r)}_setUserType(n,r,a){const{fields:c,name:h,desc:d,fieldsDesc:v}=n,S={fields:c.map(C=>({name:C.name,desc:v==null?void 0:v[C.name],type:C.type})),name:h,desc:d,pos:r};if(this._enums.has(h)){this._errorHandle(ye(pe.typeRepeatErr,{name:h,keyword:Kt.enum}),a);return}else if(this._types.has(h)){this._errorHandle(ye(pe.typeRepeatErr,{name:h,keyword:Kt.type}),a);return}n.isExport&&this._exportTypes.push(S),this._types.set(h,[{...S}]),this._addVarToMap(h,h,r,!1,!1)}_againAssignHandle(n,r,a){const c=a!==":="?a.replace("=",""):a,h=a!==":="?[V.UNDETERMINED,V.INT,V.FLOAT]:[];c==="+"&&h.push(V.STRING);const[d,v]=n;d.arg&&!d.name.includes(".")&&this._errorHandle(ye(pe.funcArgAssignErr,{name:d.name}),r[0]);const S=this._sameTypeJudge(n,r,c,h);let C=this._typeHandle(S);return this._updateUserVar(d.name,C,v.type),d.type=C,{ruleType:le.AgainAssign,name:d,operator:a,type:C,value:v}}_typeCheck(n,r,a){const c=[V.SERIES,V.SIMPLE,V.CONST];switch(r){case F.RULE_typeName:const h=this._buildinTypes.get(n);h&&![...c,V.ARRAY,V.MATRIX,V.MAP].includes(h[0].name)||this._types.get(n)||this._errorHandle(ye(pe.notTypeKeyword,{text:n}),a);break;case F.RULE_typeArray:[V.ARRAY,V.MATRIX].includes(n)||this._errorHandle(pe.tempateTypeErr,a);break;case F.RULE_typeSeries:c.includes(n)||this._errorHandle(ye(pe.qualifierErr,{name:n}),a);break}}_getBuildVar(n){const r=this._buildinVariables.get(n);if(r&&r[0])return r[0];const a=this._buildinConstants.get(n);return a&&a[0]?Object.assign(a[0],{isConst:!0}):this._specialTreatmentChartPoint(n)}_specialTreatmentChartPoint(n){var r,a;if(n.startsWith("chart.point")){const c=n.split("."),h=c.pop(),d=c.join(".");return(((a=(r=this._buildinTypes.get(d))==null?void 0:r[0])==null?void 0:a.fields)||[]).find(S=>S.name===h)}}_verifyName(n,r){var c,h;const a=this._getBuildVar(n);if(a)return a;if(n.includes(".")){const d=n.split("."),v=d.pop(),S=d.join(".");let C=this._blockCount;for(;C>=0;){if(!this._currentBlockVars[C]){C--;continue}const k=this._currentBlockVars[C].get(S);if(r&&this._judgeGatherValue(v||"",r,k==null?void 0:k.valueType,!0),(k==null?void 0:k.type)==="chart.point"){const L=(((h=(c=this._buildinTypes.get(k.type))==null?void 0:c[0])==null?void 0:h.fields)||[]).find(b=>b.name===v);if(L)return Object.assign(L,{pos:k.pos})}C--}const T=this._specialTreatmentChartPoint(n);if(T)return T}return this._getUserVar(n)}_judgeGatherValue(n,r,a,c){return a!==`${V.SIMPLE} ${V.NA}`?!0:(c&&this._errorHandle(ye(pe.objectIsNaErr,{name:n,type:"field"}),r),!1)}_nameCheck(n,r,a=ye(pe.undeclared,{name:n})){const c=this._verifyName(n,r);return c||this._errorHandle(a,r),c}_inBlock(n){this._blockCount++,this._pushBlockRanges(n);const r=this.visit(n);return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),r}_errorHandle(n,r,a=Sn.Error){this._errors.push({message:n,startColumn:r.start.column+1,startLineNumber:r.start.line,endColumn:r.start.column+2+r.stop.stop-r.start.start,endLineNumber:r.stop.line,type:a})}_boolTypeJudge(n,r,a,c=0){return this._typeJudge(n,r,a,V.BOOL,[V.UNDETERMINED,V.INT,V.FLOAT,V.BOOL],c)}_calcTypeJudge(n,r,a,c=0){return this._typeJudge(n,r,a,"int/float",[V.UNDETERMINED,V.INT,V.FLOAT],c)}_typeJudge(n,r,a,c,h,d=0){const v=n&&n.type;if(v){const S=this._removePrefix(v);if(!h.includes(S)&&S!==V.NA)return this._errorHandle(ye(pe.typeMismatch,{operator:`operator ${a}`,index:`expr${d}`,typeE:S,typeR:c}),r),V.UNDETERMINED;c===V.BOOL&&[V.INT,V.FLOAT].includes(S)&&this._errorHandle(ye(ar.typeMismatch,{operator:`operator ${a}`,index:`expr${d}`,type:V.BOOL}),r,Sn.Warning)}return v||V.UNDETERMINED}_sameTypeJudge(n,r,a,c){let h="";const d=[],v=["plot_display","plot_simple_display"];["+","-","+=","-="].includes(a)&&(c=c.concat(v));for(const[S,C]of n.entries()){let T=C&&C.type||V.UNDETERMINED;const k=this._removePrefix(T);if(!c.includes(k)&&c.length&&k!==V.NA){this._errorHandle(ye(pe.typeMismatch,{operator:`operator ${a}`,index:`expr${S}`,typeE:T,typeR:c.slice(1).join("/")}),r[S]),h=V.UNDETERMINED,d.push(h);continue}if(!h){h=k,d.push(T);continue}if(h===V.UNDETERMINED||k===V.UNDETERMINED)T=h=V.UNDETERMINED;else if(h!==k&&h!==V.NA&&k!==V.NA&&(![V.INT,V.FLOAT].includes(h)||![V.INT,V.FLOAT].includes(k)))if(a===":="){if(h===V.BOOL&&[V.INT,V.FLOAT].includes(k)){this._errorHandle(ye(ar.boolVarNumWarning,{name:n[0].name}),r[0],Sn.Warning),d.push(T);continue}this._errorHandle(ye(pe.assignTypeMismatch,{typeE:k,name:n[0].name,typeR:h}),r[0]),T=h=V.UNDETERMINED}else if(["==","!=","?:"].includes(a)&&[V.INT,V.FLOAT,V.BOOL].includes(h)&&[V.INT,V.FLOAT,V.BOOL].includes(k))this._errorHandle(ye(ar.typeMismatch,{operator:`operator ${a}`,index:`expr${S}`,type:h}),r[S],Sn.Warning),T=h=V.UNDETERMINED;else if(v.includes(h)&&v.includes(k)){if(h!==k){const B=this._getPrefix(T);d[S-1]=`${this._getPrefix(d[S-1])} ${v[0]}`,T=h=`${B} ${v[0]}`}}else this._errorHandle(ye(pe.typeMismatch,{operator:`operator ${a}`,index:`expr${S}`,typeE:k,typeR:h}),r[S]),T=h=V.UNDETERMINED;d.push(T)}return d}_getUserVar(n,r=!1){for(let a=this._blockCount;a>=0;a--){const c=this._currentBlockVars[a];if(a<=0){const h=this._currentFuncParams.get(n);if(h)return h.isArg=!0,h}if(c){const h=c.get(n);if(h)return h}}if(n.includes(".")&&!r){let a=!1,c=null;if(n.split(".").reduce((h,d)=>{let v=h?`${h}.${d}`:d;const S=this._getUserVar(v,!0);return S!=null&&S.type?S.type===V.UNDETERMINED?a=!0:(v=S.type,c=S):c=null,v},""),a)return{name:n,type:V.UNDETERMINED};if(c)return c}return null}_repeatVarJudge(n,r,a,c){this._getBuildVar(n)&&this._errorHandle(ye(pe.buidinVarErr,{name:n}),r);for(let d=0;d<=this._blockCount;d++){const v=this._currentBlockVars[d];if(v&&v.get(n)){if(this._blockCount===d)return this._errorHandle(ye(pe.repeatVar,{name:n}),r),!0;a.reName=`$_${n}__${this._blockCount}`,this._errorHandle(ye(ar.repeatVar,{name:n}),r,Sn.Warning)}}c!=null&&c.some(d=>d===n&&n!=="_")&&this._errorHandle(ye(pe.repeatVar,{name:n}),r)}_judgeVarBuildIn(n){for(let r=0;r<=this._blockCount;r++){const a=this._currentBlockVars[r];if(a&&a.get(n))return!0}return!1}_updateUserVar(n,r,a){for(let c=0;c<=this._blockCount;c++){const h=this._currentBlockVars[c];if(h){const d=h.get(n);if(d){d.type=r,d.valueType=a;return}}}}_variablesHandle(n,r){var h,d,v,S,C;if(!(n&&n.nameList))return;const a=n.nameList;if(a.name==="_")return;const c=n.value;if(a.ruleType===le.VarMultiple){a.types=[],this._checkVarMultiple(a.names,c,r);for(const[T,k]of a.names.entries()){if(k==="_")continue;const B=this._varTypeJudge("",((h=c==null?void 0:c.types)==null?void 0:h[T])||V.UNDETERMINED,k,r);a.types.push(B),this._addVarToMap(k,B,a.posList[T],!0)}}else{const T=(c==null?void 0:c.type)||((d=c==null?void 0:c.returnedTypes)==null?void 0:d[0]);((v=c==null?void 0:c.types)!=null&&v.isBrackethesized||(S=c==null?void 0:c.returnedTypes)!=null&&S.isBrackethesized||(C=c==null?void 0:c.types)!=null&&C.length)&&this._errorHandle(ye(pe.tupleLeftVarErr,{name:a.name}),r),!a.type&&T===`${V.SIMPLE} ${V.NA}`&&this._errorHandle(pe.naVarErr,r),a.prefix&&Pi.indexOf(a.prefix)>Pi.indexOf(this._getPrefix(T))&&this._errorHandle(ye(pe.declaredErr,{prefix:a.prefix,type:T}),r);const k=this._varTypeJudge(a.type,T||V.UNDETERMINED,a.name,r);a.type=k,this._addVarToMap(a.name,k,a.pos,!0,a.isForVar,a.declare,c==null?void 0:c.type,a.desc)}}_checkVarMultiple(n,r,a){var S,C,T,k;const c=n.length,h=((r==null?void 0:r.types)||(r==null?void 0:r.returnedTypes)||[]).length,d=((S=r==null?void 0:r.types)==null?void 0:S.isBrackethesized)||((C=r==null?void 0:r.returnedTypes)==null?void 0:C.isBrackethesized);(T=r==null?void 0:r.types)!=null&&T.isUnknown||(k=r==null?void 0:r.returnedTypes)!=null&&k.isUnknown||(h===1&&!d||!h?this._errorHandle(pe.tupleRightVarErr,a):c!==h&&this._errorHandle(ye(pe.tupleVarErr,{indexA:h,indexB:c}),a))}_addEnumToMap(n,r,a){var v;const c=this._currentBlockVars[this._blockCount]||new Map,h=(v=this._enums.get(n))==null?void 0:v[0];if(h&&h.members)for(const S of h.members)c.set(`${n}.${S.name}`,S);const d={name:n,isEnum:!0,type:`${V.CONST} ${r}`,pos:a};c.set(n,d),this._currentBlockVars[this._blockCount]=c}_addVarToMap(n,r,a,c=!0,h=!1,d,v,S){var B;const C=this._currentBlockVars[this._blockCount]||new Map,T=(B=this._types.get(r))==null?void 0:B[0];if(T&&T.fields)for(const L of T.fields)C.set(`${n}.${L.name}`,L);const k={name:n,type:r,pos:a,valueType:v,desc:S};c&&this._setVariablesMap(k),C.set(n,Object.assign(k,{isForVar:h,declare:d})),this._currentBlockVars[this._blockCount]=C}_setVariablesMap(n,r=!1){const a=this._blockRanges[this._blockCount];r||(n.range=a,n.scope=this._blockCount);const c=this._variables.get(n.name)||[];c.push(n),this._variables.set(n.name,c)}_varTypeJudge(n,r,a,c){if(r===V.VOID)return this._errorHandle(pe.voidNotVar,c),V.UNDETERMINED;if(n&&r!==V.UNDETERMINED){const h=this._removePrefix(n),d=this._removePrefix(r);return d!==h&&d!==V.NA&&!(h===V.FLOAT&&d===V.INT)?h===V.BOOL&&[V.FLOAT,V.INT].includes(d)?(this._errorHandle(ye(ar.boolVarNumWarning,{name:a}),c,Sn.Warning),n):(this._errorHandle(ye(pe.declareTypeErr,{type:n,valueType:r}),c),V.UNDETERMINED):this._typeHandle([n,r])}else if(r===V.UNDETERMINED)return V.UNDETERMINED;return n||r||V.UNDETERMINED}_getAllowTypes(n){const r=[];if(n===V.UNDETERMINED)return r;const a=this._getPrefix(n);if(a){const c=this._removePrefix(n);let h=-1;for(const[d,v]of Pi.entries())v===a&&(h=d),h>=0&&h<=d&&(c===V.FLOAT&&r.push(`${v} ${V.INT}`),r.push(`${v} ${c}`))}else n=this._arrayTypeConvert(n)||"",r.push(n),n.includes(V.FLOAT)&&r.push(n.replace(/float/,V.INT));return r}_setNewFunc(n,r){const a=`${n.name}.new`,c=[],h=[];for(const v of n.fields)c.push({name:v.name,required:!1,allowedTypeIDs:this._getAllowTypes(v.type),displayType:v.type}),h.push(`${v.type} ${v.name}`);const d={name:a,args:c,returnedTypes:[n.name],pos:r,syntax:[`${a}(${h.join(", ")}) → ${n.name}`]};n.isExport&&this._exportFunctions.push(d),this._functions.set(a,[{...d,isUser:!0}])}_setCopyFunc(n,r){const a=n.name,c=`${a}.copy`,h={name:c,args:[{name:"object",required:!0,allowedTypeIDs:[a],displayType:a}],returnedTypes:[a],pos:r,info:"The identifier of the object to be copied.",syntax:[`${c}(${a} object) → ${a}`]};n.isExport&&this._exportFunctions.push(h),this._functions.set(c,[{...h,isUser:!0}])}_setCopyMethod(n,r){const a=n.name,c=`${a}.copy`,h={name:c,originalName:c,args:[],returnedTypes:[a],thisType:[a],pos:r,syntax:[`${c}() → ${a}`]};n.isExport&&this._exportMethods.push(h),this._methods.set(c,[{...h,isUser:!0}])}_setFunc(n,r,a,c){const h=[],d=[],{desc:v,paramsDesc:S,returnsDesc:C,params:T,hasMemberIndex:k}=n;for(const O of T){const{type:R,name:w,defaultValue:U}=O;h.push({name:w,desc:S==null?void 0:S[w],required:!U,allowedTypeIDs:this._getAllowTypes(R),displayType:R}),d.push(`${R===V.UNDETERMINED?"":`${R} `}${w}`)}const{returnedTypes:B=[]}=n,L=n.name,b=B.length>1||B.isBrackethesized?`[${B.join(", ")}]`:B.toString(),y={name:L,desc:v,args:h,syntax:[`${L}(${d.join(", ")}) → ${b||"void"}`],hasMemberIndex:k,pos:r,isUser:!0,returnedTypes:B,returns:C,hasRequest:this._hasRequest};let g=this._functions.get(L);if(g){const O=g.length;y.index=O,n.index=O,this._verifyFuncRepeat(g,y,a),g.push(y),this._overloadsFuncs.push({name:L,index:O,line:r.lineNumber,startColumn:r.column+1,endColumn:r.column+L.length})}else g=[y];if(n.isExport){const{line:O=0}=this._endExport;c>O&&(this._endExport={line:c,name:L,index:y.index}),this._exportFunctions.push(y)}this._functions.set(L,g)}_setMethod(n,r){var R;const{name:a,returnedTypes:c,params:h,desc:d,paramsDesc:v,returnsDesc:S}=n,C=h[0].type,T=[],k=[];for(const w of h.slice(1)){const{type:U,name:X,defaultValue:ee}=w;T.push({name:X,desc:v==null?void 0:v[X],required:!ee,allowedTypeIDs:this._getAllowTypes(U),displayType:U}),k.push(`${U} ${X}`)}const B=c.length>1||c.isBrackethesized?`[${c.join(", ")}]`:c.toString(),L=this._getMethodTypeName(C),b=`${L}.${a}`;n.typeName=L;const y={name:a,args:T,desc:d,originalName:b,syntax:[`${a}(${k.join(", ")}) → ${B||"void"}`],returnedTypes:c,hasMemberIndex:n.hasMemberIndex,pos:r,thisType:[C],returns:S,hasRequest:this._hasRequest};let g=this._methods.get(b),O=this._functions.get(a);if(O){const w=O.filter(ee=>!ee.isImport).length,U=((R=g==null?void 0:g.filter(ee=>!ee.isImport))==null?void 0:R.length)||0;let X=w;w>U&&(X=w-1),y.index=X,n.index=X}g?g.push(y):g=[y],n.isExport&&this._exportMethods.push(y),this._methods.set(b,g)}_verifyFuncRepeat(n,r,a){const{args:c}=r;n.some(d=>{const{args:v}=d;return(v==null?void 0:v.length)!=(c==null?void 0:c.length)?!1:!(v!=null&&v.length)&&!(c!=null&&c.length)?!0:v==null?void 0:v.every((S,C)=>{var T;return S.displayType===((T=c==null?void 0:c[C])==null?void 0:T.displayType)})})&&this._errorHandle(ye(pe.funcRepeatErr,{name:r.name}),a)}_getMethodTypes(n,r){let a;for(const[c,h]of n.entries()){const{type:d,expr:v,args:S}=h;let{name:C}=h;const T=r[c];if(v){if(v.type===V.UNDETERMINED)return[V.UNDETERMINED];C=`${this._getMethodTypeName(v.type)}${C}`,S.params.unshift(v)}if(a&&a.length>=1)if(a.length===1){const k=a[0];if(k===V.UNDETERMINED)return[V.UNDETERMINED];const B=this._getOriginMethodName(k,C);C.includes(".")?a=this._getOtherNamesMethodType(B,a,T,S,h):a=this._expandMethodHandle(B,T,S,{type:k},k,h)}else this._errorHandle(ye(pe.noFiledErr,{name:C}),T);else{const[k,B]=this._tempFuncNameHandle(C,T,d);C=B;const L=this._buildinFunctions.get(k);if(L)this._globalFuncVerify(L[0],T),this._hasMemberIndexVerify(L[0],T,h),h.isBuiltIn=!0,a=this._getBuildInReturnTypes(L,S,C,T,void 0,d);else{const b=this._functions.get(C);if(b)if(b.length<=1){this._hasMemberIndexVerify(b[0],T,h),a=b[0].returnedTypes;const{hasErr:y}=this._checkArgs(S,b[0].args||[],C,T,a[0]);if(y)return[V.UNDETERMINED]}else{const y=this._overloadsFuncGetTypes(b,S,T,void 0,h);a=this._returnedTypesParse([y])}else a=this._getOtherNamesMethodType(C,a,T,S,h)}}h.returnTypes=a}return a===void 0&&this._errorHandle(ye(pe.notFindFuncErr,{name:n[0].name}),r[0]),a}_globalFuncVerify(n,r){this._blockCount!==0&&F_.includes(n.name)&&this._errorHandle(ye(pe.globalFuncErr,{name:n.name}),r)}_hasMemberIndexVerify(n,r,a){n.hasRequest&&(a.hasRequest=!0,this._hasRequest=!0),n.hasMemberIndex||n.name.startsWith("ta.")||n.name==="math.sum"?(this._hasMemberIndex=this._isInFunc,a.hasMemberIndex=!0,a.position=r.start.tokenIndex):n.name.startsWith("request.")&&this._isInLocalScop&&this._errorHandle(pe.requestUserInLoopErr,r)}_tempFuncNameHandle(n,r,a){let c=n;if(a&&a.length>=1){const h=["array.new","matrix.new"].includes(n),d=n==="map.new";if(a.length===1)if(h)c=`${n}<type>`,n=`${n}<${a[0]}>`;else return d?this._errorHandle(ye(pe.templateErr,{countA:2,countB:1}),r):this._errorHandle(ye(pe.templateNoSupportErr,{name:n}),r),[V.UNDETERMINED];else{if(!d)return h?this._errorHandle(ye(pe.templateErr,{countA:1,countB:2}),r):this._errorHandle(ye(pe.templateNoSupportErr,{name:n}),r),[V.UNDETERMINED];if(!lu.includes(a[0]))return this._errorHandle(ye(pe.mapKeyErr,{type:this._typeAddSeries(a[0])}),r),[V.UNDETERMINED];c=`${n}<type,type>`,n=`${n}<${a[0]},${a[1]}>`}}return[c,n]}_getOtherNamesMethodType(n,r,a,c,h){const d=n.split("."),v=d.length-1,S=d.slice(0,v).join("."),C=this._getUserVar(S);this._judgeGatherValue(d[v],a,C==null?void 0:C.valueType)||(h.name=`${S}?.${d[v]}`);const k=C==null?void 0:C.type;if(k){if(k===V.UNDETERMINED)return r=[V.UNDETERMINED],r.isUnknown=!0,r;const B=this._getOriginMethodName(k,d[v]);h.varScope=C.scope,r=this._expandMethodHandle(B,a,c,C,S,h)}else{let B="",L="",b="";for(const y of d.slice(0,v)){B?L=this._getOriginMethodName(B,y):L=L?`${L}.${y}`:y;const g=this._verifyName(L);if(g!=null&&g.type){if(B=g.type,b="",g.title.startsWith("built-in variable")){const O=this._getOriginMethodName(B,d[v]);r=this._expandMethodHandle(O,a,c,g,S,h),h.hasVarPrefix=!0}}else this._buildinTypes.get(L)?b=ye(pe.methodNotExistErr,{name:L,methodName:d[v]}):b=ye(pe.noFiledErr,{name:y})}b&&this._errorHandle(b,a)}return r}_expandMethodHandle(n,r,a,c,h,d){var C,T;let v;const S=this._buildinMethods.get(n);if(S)d.name=d.name.split(".").join("?.").replace("??","?"),v=this._getBuildInReturnTypes(S,a,n,r,c);else{const k=this._methods.get(n);if(k&&k.length)if(k.length<=1){const B=k[0],L=this._getMethodTypeName(((C=B.thisType)==null?void 0:C[0])||"");if(this._types.get(L))d.name=d.name.split(".").join("?.").replace("??","?");else{const g=this._functions.get(B.name);g&&(d.selfArg=(T=g[B.index||0].args)==null?void 0:T[0])}d.funcName=B.name,d.index=B.index,this._hasMemberIndexVerify(B,r,d),v=B.returnedTypes;const{hasErr:y}=this._checkArgs(a,B.args||[],n,r,(v==null?void 0:v[0])||"");if(y)return[V.UNDETERMINED]}else{const B=this._overloadsFuncGetTypes(k,a,r,c,d);v=this._returnedTypesParse([B])}else this._errorHandle(ye(pe.methodNotExistErr,{methodName:n.split(".").slice(-1)[0],name:h}),r)}return v}_getBuildInReturnTypes(n,r,a,c,h,d){var S;let v;if(n.length===1){const{returnedTypes:C,syntax:T,args:k=[],thisType:B}=n[0],L=T[0].split("→")[1].trim(),b=h||r.params[0]||((S=k[0])==null?void 0:S.name)&&r[k[0].name];b&&!this._checkMethodThisType(B,b.type)&&this._errorHandle(ye(pe.typeMismatch,{operator:a,index:b.name||"id",typeE:b.type,typeR:B[0]}),c);const{hasErr:y,types:g}=this._checkArgs(r,k,a,c,L,b);if(y)return[V.UNDETERMINED];if(v=g.length&&g||this._returnedTypesParse(C),v.length>1||v.isBrackethesized)return v;(d==null?void 0:d.length)===1?v=[this._typeReplace(L,d[0])]:(d==null?void 0:d.length)===2&&(v=[`${V.MAP}<${d[0]},${d[1]}>`]),v=this._returnTypesOtherHandle(b,L,v,a)}else{const C=this._overloadsFuncGetTypes(n,r,c,h);v=this._returnedTypesParse([C])}return v}_overloadsFuncGetTypes(n,r,a,c,h){var L,b,y;let d="",v=[],S=[],C=0,T=0;for(const[g,O]of n.entries()){const{args:R,returnedTypes:w,name:U,thisType:X}=O,ee=c||r.params[0]||r[R[0].name],{errMsg:z,warnMsg:Y,matchCount:$}=this._overloadsCheckArgs(r,R,U,a,ee);$>T&&(C=g,T=$),ee&&!this._checkMethodThisType(X,ee.type)&&z.unshift({msg:ye(pe.typeMismatch,{operator:U,index:ee.name||"id",typeE:ee.type,typeR:X[0]}),ctx:a}),g===0?(v=z,S=Y,!z.length&&(d=w[0])):z.length?((L=v[0])!=null&&L.isLenErr&&!((b=z[0])!=null&&b.isLenErr)||v.length>z.length)&&(v=z,S=Y,C=g):this._priorityComparison(d,w[0])||(w[0]===`${V.ARRAY}<>`?d=`${ee.type}[]`:d=w[0],v=z,S=Y,C=g)}for(const g of v)this._errorHandle(g.msg,g.ctx);for(const g of S)this._errorHandle(g.msg,g.ctx,Sn.Warning);const k=a.children[0],B=n[0].name;if(k&&this._overloadsFuncs.push({name:B,index:C,line:k.start.line,startColumn:k.start.column+1,endColumn:k.start.column+B.length}),h){const g=n[C],{thisType:O,name:R,index:w}=g;if(this._hasMemberIndexVerify(g,a,h),h.index=w||C,O){const U=this._getMethodTypeName((O==null?void 0:O[0])||"");if(this._types.get(U))h.name=h.name.split(".").join("?.").replace("??","?");else{const ee=this._functions.get(R);ee&&(h.selfArg=(y=ee[0].args)==null?void 0:y[0])}}}return this._funcArgsAddOriginName(r,n[C].args,B),d||V.UNDETERMINED}_funcArgsAddOriginName(n,r,a){const c=n.params||[];for(const[h,d]of r.entries())h<c.length&&(c[h].originName=d.name);if(a==="input"){const h=c[0]||n.defval;Object.assign(n,{inputType:{name:`'${h!=null&&h.isSourceType?"source":this._removePrefix(h==null?void 0:h.type)}'`}})}}_overloadsCheckArgs(n,r,a,c,h){const d={...n},v=d.params;delete d.params;const S=Object.keys(d).length+v.length,C=r.length,T=[],k=[];let B=0;S>C&&(r.some(b=>["arg0, arg1, ...","number0, number1, ..."].includes(b.name))||T.push({msg:ye(pe.argsLenErr,{name:a,lenA:S,lenB:C}),isLenErr:!0,ctx:c}));for(const[L,b]of r.entries()){let y=d[b.name];if(L<v.length&&(y&&T.push({msg:ye(ar.moreSameArg,{arg:b.name}),ctx:c}),y=v[L]),!y)b.required&&T.push({msg:ye(pe.requiredParamErr,{name:a,argName:b.name}),ctx:c});else{const g=y.type!==`${V.SIMPLE} na`?this._checkArg(y,b,a,h,y.ctx,!0,k):"";g?T.push({msg:g,ctx:y.ctx}):B++,delete d[b.name]}if(["arg0, arg1, ...","number0, number1, ..."].includes(b.name)&&v.length>L+1){const g=v.slice(L+1);let O=v[L];for(const R of g){O.type===`${V.SIMPLE} ${V.NA}`&&(O=R);const w=R.type!==`${V.SIMPLE} ${V.NA}`?this._checkArg(R,b,a,O,R.ctx,!0,k):"";w&&T.push({msg:w,ctx:R.ctx})}}}if(Object.keys(d).length)for(const L of Object.keys(d))T.push({msg:ye(pe.argsNameErr,{name:a,argName:L}),ctx:d[L].ctx});return{errMsg:T,warnMsg:k,matchCount:B}}_checkArgs(n,r,a,c,h,d){var L,b;const v={...n},S=v.params;delete v.params;const C=Object.keys(v).length+S.length,T=r.length;let k=!1,B=[];if(C>T&&!r.some(g=>["arg0, arg1, ...","number0, number1, ..."].includes(g.name)))return this._errorHandle(ye(pe.argsLenErr,{name:a,lenA:C,lenB:T}),c),k=!0,{hasErr:k,types:B};for(const[y,g]of r.entries()){let O=v[g.name];if(y<S.length&&(O&&this._errorHandle(ye(ar.moreSameArg,{arg:g.name}),c,Sn.Warning),O=S[y],O.originName=g.name),!O)g.required&&(this._errorHandle(ye(pe.requiredParamErr,{name:a,argName:g.name}),c),k=!0);else{const R=O.type!==`${V.SIMPLE} ${V.NA}`?this._checkArg(O,g,a,d,O.ctx):"";if(R)this._errorHandle(R,O.ctx),k=!0;else if(a.startsWith("request.")&&g.name==="expression")if(O.ruleType===le.Brackethesized)B=O.exprs.map(w=>this._typeReplace(h,w.type));else if((L=O.types||O.returnedTypes)!=null&&L.length)B=(O.types||O.returnedTypes).map(w=>this._typeReplace(h,w)),(b=O.types||O.returnedTypes)!=null&&b.isBrackethesized&&Object.assign(B,{isBrackethesized:!0});else{const w=this._typeReplace(h,O.type);B.push(w)}else if(a==="input.enum"&&g.name==="defval"){const w=this._removePrefix(O.type);B.push(`${V.INPUT} ${w}`)}delete v[g.name]}}if(Object.keys(v).length)for(const y of Object.keys(v))this._errorHandle(ye(pe.argsNameErr,{name:a,argName:y}),v[y].ctx),k=!0;return{hasErr:k,types:B}}_checkArg(n,r,a,c,h,d,v){var y,g;const{ruleType:S,exprs:C,name:T}=n;let k=n.type;S===le.Brackethesized&&(k=`[${C.map(O=>O.type).join(", ")}]`);const{allowedTypeIDs:B=[],displayType:L,name:b}=r;if(!(!k||k===V.UNDETERMINED||L===V.UNDETERMINED)){if(a==="input"&&b==="defval"&&!k.startsWith(V.CONST))if(xl.includes(T))n.isSourceType=!0;else return pe.inputDefvalErr;if(!(this._checkMethodThisType(B,this._arrayTypeConvert(k))&&!(["input.source","input.enum"].includes(a)&&b==="defval"))){if(b==="condition"&&(L!=null&&L.endsWith(V.BOOL))){if(k.endsWith(V.INT)||k.endsWith(V.FLOAT)){const O=ye(ar.typeMismatch,{index:b,operator:a,type:V.BOOL});h&&(v?v.push({ctx:h,msg:O}):this._errorHandle(O,h,Sn.Warning));return}}else if(a==="str.tostring"&&b==="value"){const O=this._removePrefix(k);if(this._enums.get(O))return}switch(L){case"tuple of const string values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${V.CONST} ${V.STRING}`],a,k);case"tuple of const int/float values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${V.CONST} ${V.FLOAT}`,`${V.CONST} ${V.INT}`],a,k);case"tuple of const int values: [val1, val2, ...]":return this._tupleToCheck(n,r,[`${V.CONST} ${V.INT}`],a,k);case"open/high/low/close/hl2/hlc3/ohlc4/hlcc4":if(!T||!xl.includes(T))return ye(pe.inputSourceErr,{name:b,funcName:a});if(this._judgeVarBuildIn(T))return ye(pe.buildInUseErr,{name:T});n.isSourceType=!0;break;case"<matrix_type>":case"<array_type>":const O=this._getArrayType(a)||"";if(!k.endsWith(O)&&!(k.endsWith(V.INT)&&O===V.FLOAT))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:this._typeAddSeries(O)});break;case"any matrix type":if(this._isMatrixType(k)){if(b==="id2"){const $=this._getArrayType(c==null?void 0:c.type);if(!$)return;const ne=this._getArrayType(k)||"";if($!==ne)return ye(pe.typeMismatch,{operator:a,index:b,typeE:ne,typeR:$})}}else return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:"matrix<fun_arg>"});break;case"any array type":if(this._isArrayType(k)){if(b==="id2"){const $=this._getArrayType(c==null?void 0:c.type);if(!$)return;const ne=this._getArrayType(k)||"";if($!==ne)return ye(pe.typeMismatch,{operator:a,index:b,typeE:ne,typeR:$})}}else return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:"array<fun_arg>"});break;case"series <type of the matrix's elements>":case"series <type of the array's elements>":const R=this._getArrayType(c==null?void 0:c.type)||"";if(!k.endsWith(R)&&!(k.endsWith(V.INT)&&R===V.FLOAT))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:this._typeAddSeries(R)});break;case"any map type":if(this._isMapType(k)){if(b==="id2"){const $=this._getMapType(c==null?void 0:c.type);if(!$)return;const ne=this._getMapType(k)||[];if($[0]!==ne[0]||$[1]!==ne[1])return ye(pe.mapKeyValErr,{typeA:this._typeAddSeries(ne[0]),typeB:this._typeAddSeries(ne[1]),typeC:this._typeAddSeries($[0]),typeD:this._typeAddSeries($[1]),name:a})}}else return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:"map<type, type>"});break;case"series <type of the map's elements>":const w=this._getMapType(c==null?void 0:c.type);if(!w)return;const U=b==="key"?0:1;if(!k.endsWith(w[U])&&!(k.endsWith(V.INT)&&w[U]===V.FLOAT))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:this._typeAddSeries(w[U])});break;case"<arg_expr_type>":if(S===le.Brackethesized)return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:L||""});break;case"<arg_type>":case"variable, function, object, array or matrix of series int/float/bool/string/color, or a tuple of these":const X=this._removePrefix(k);if([V.BOX,V.LABEL,V.LINE,V.LINEFILL,V.POLYLINE,V.TABLE].includes(X))return ye(pe.requestExprErr,{type:X,name:a});break;case"variable, object or function of series int/float/bool/string/color, or a tuple of these":if(S===le.Brackethesized){for(const $ of C)if(!B.includes($.type))return ye(pe.requestArgsErr,{name:a,argName:b,type:$.type})}break;case"const int/float/bool/string/color or source-type built-ins":if(xl.includes(n.name)&&B[0].endsWith(this._removePrefix(k)))n.isSourceType=!0;else return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:"const int/float/bool/string/color"});break;case"<arg..._type>":if(S===le.Brackethesized||this._isArrayType(k)||this._isMapType(k)||this._isMatrixType(k))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:`${V.SERIES} ${V.INT}`});if(k!==(c==null?void 0:c.type))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:c==null?void 0:c.type});break;case"simple enum":const ee=this._removePrefix(k);if(!this._enums.has(ee))return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:"const enum"});break;case"tuple of enum fields: [enumName.field1, enumName.field2, ...]":const z=c==null?void 0:c.enumName;if(z&&!((y=n.exprs)==null?void 0:y.every(ne=>ne.enumName===z)))return ye(pe.typeMismatch,{operator:a,index:b,typeE:`${n.exprs?`[${(g=n.exprs)==null?void 0:g.map(ne=>ne.type).join(", ")}]`:n.type}`,typeR:`[const ${z}...]`});break;default:const Y=this._removePrefix(n.type);if(n.arg&&n.arg.isArg&&!d){const $=B.find(ne=>ne.endsWith(Y));if($){n.type=$,n.arg.type=$;return}}if(B.length===1&&this._removePrefix(B[0])===Y){const $=this._getPrefix(n.type),ne=this._getPrefix(B[0]);if(Pi.indexOf($)>=Pi.indexOf(ne))return}if(L)return ye(pe.typeMismatch,{operator:a,index:b,typeE:k,typeR:L})}}}}_tupleToCheck(n,r,a,c,h){var d,v;if(a.push(`${V.SIMPLE} ${V.NA}`),n.ruleType===le.Brackethesized){const S=[];let C=!1;for(const T of n.exprs)S.push(T.type),a.includes(T.type)||(C=!0);if(C)return ye(pe.typeMismatch,{operator:c,index:r.name,typeE:`[${S.join(", ")}]`,typeR:((d=r.allowedTypeIDs)==null?void 0:d[0])||""})}else return ye(pe.typeMismatch,{operator:c,index:r.name,typeE:h,typeR:((v=r.allowedTypeIDs)==null?void 0:v[0])||""})}_getBlockReturnTypes(n){var k,B;let r=n;if(Array.isArray(n)&&(r=n.slice(-1)[0],Array.isArray(r)&&(r=r.slice(-1)[0])),!r)return[V.UNDETERMINED];const{ruleType:a,type:c,types:h,returnedTypes:d,exprs:v,nameList:S,typeList:C,block:T}=r;if(h&&h.length)return h;if(d&&d.length)return d;if(c)return[c];switch(a){case le.Brackethesized:const L=v.map(ee=>ee.type);return L.isBrackethesized=!0,L;case le.VarBlockStmt:case le.DeclareAssign:return S?S.ruleType===le.VarMultiple?S.types:[S.type]:[((k=r.name)==null?void 0:k.type)||V.UNDETERMINED];case le.SwitchStatement:if(!this._isNeedCalc&&this._isInFunc&&this._isEndExpr===!1)return[V.UNDETERMINED];const b=[...r.cases];r.defaultCase&&b.push(r.defaultCase);let y=((B=b[0])==null?void 0:B.returnedTypes)||[],g=y.length<=1?y[0]:`[${y.join(", ")}]`,O=null;for(const ee of b.slice(1)){const z=ee.returnedTypes||[V.UNDETERMINED];g+=z.length<=1?`; ${z[0]}`:`; [${z.join(", ")}]`;const Y=Array.isArray(ee.block)?ee.block.slice(-1)[0]:ee.block;if(z.length!==y.length)O=Y.ctx;else for(const[$,ne]of y.entries())if(this._compareType(z[$],ne))(z[$].includes(V.FLOAT)&&!ne.includes(V.FLOAT)||y[$]===`${V.SIMPLE} ${V.NA}`||y[$]===V.UNDETERMINED)&&(y[$]=z[$]);else{O=Y.ctx;break}}return O&&(this._errorHandle(ye(pe.ifOrSwitchTypeErr,{keyword:"switch",types:g}),O),y=y.map(()=>V.UNDETERMINED)),r.returnedTypes=y,y;case le.IfStatement:if(!this._isNeedCalc&&!this._isInFunc)return[V.UNDETERMINED];if(!C.filter(ee=>ee&&ee.length).length)return[V.UNDETERMINED];let R=C[0]||[],w=R.length<=1?R[0]:`[${R.join(", ")}]`,U=0,X=0;for(const ee of C.slice(1))if(ee)if(U++,w+=ee.length<=1?`; ${ee[0]}`:`; [${ee.join(", ")}]`,ee.length!==R.length)X=U;else for(const[z,Y]of R.entries())if(this._compareType(ee[z],Y))(ee[z].includes(V.FLOAT)&&!Y.includes(V.FLOAT)||R[z]===`${V.SIMPLE} ${V.NA}`)&&(R[z]=ee[z]);else{X=U;break}if(X){const ee=T[X].slice(-1)[0],z=Array.isArray(ee)?ee.slice(-1)[0]:ee;this._errorHandle(ye(pe.ifOrSwitchTypeErr,{keyword:"if",types:w}),z.ctx),R=R.map(()=>V.UNDETERMINED)}return r.returnedTypes=R,R}return[V.UNDETERMINED]}}class j_{constructor(e){D(this,"_nameMap");D(this,"_prefixNameVar");D(this,"_prefixNameFunc");D(this,"_prefixNameConst");D(this,"_userTypes");D(this,"_isInFunc");D(this,"_currentFuncName");D(this,"_varlist");D(this,"_memberIndexList");D(this,"_blockCount");D(this,"_inputCount");D(this,"_count");D(this,"_isSwitch",!1);D(this,"_isInLoop",!1);D(this,"_codesCol");D(this,"_dependsObj");D(this,"_enums");D(this,"_preRunMembers");D(this,"_isInConditionalStmt",!1);D(this,"_preRunMembersFuncs");D(this,"_preRunMemberFuncsCount",0);D(this,"__count",0);D(this,"preParseCode","");this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._inputCount=0,this._count=0,this._codesCol=[[]],this._dependsObj={},this._enums=new Map,this._preRunMembers=[],this._preRunMembersFuncs=[]}preParser(e){var r,a;const n=[];for(const c of e){if(!c)return;if(Array.isArray(c)){for(const h of c)if(n.push(this._parserStmt(h)),fu.includes((a=(r=h.exprs)==null?void 0:r[0])==null?void 0:a.name))return n.join(`;
14
- `).replace(/;+/g,";")}else n.push(this._parserStmt(c))}return""}parser(e){var a,c;const n=[];for(const h of e){if(!h)return;if(Array.isArray(h))for(const d of h)n.push(this._parserStmt(d)),!this.preParseCode&&fu.includes((c=(a=d.exprs)==null?void 0:a[0])==null?void 0:c.name)&&(this.preParseCode=n.join(`;
15
- `).replace(/;+/g,";"));else n.push(this._parserStmt(h))}const r=this._memberIndexList[this._blockCount]||{};return n.push(...Object.values(r)),n.join(`;
16
- `).replace(/;+/g,";")}_parserStmt(e,n=!1){let r="";switch(e==null?void 0:e.ruleType){case le.DeclareAssign:r=this._parserDeclareAssign(e);break;case le.MethodExpression:r=`${this._parserMethodExpression(e)}`;break;case le.ArrowFunction:r=this._parserArrowFunction(e);break;case le.ArrowMethod:r=this._parserArrowMethod(e);break;case le.IfStatement:r=this._parserIfStatement(e,n);break;case le.WhileStatement:r=this._parserWhileStatement(e,n);break;case le.SwitchStatement:r=this._parserSwitchStatement(e,n);break;case le.ForInStatement:r=this._parserForInStatement(e,n);break;case le.ForToStatement:r=this._parserForToStatement(e,n);break;case le.AgainAssign:r=this._parserAgainAssign(e);break;case le.ImportElement:r=e.code||"";break;case le.TypeStatement:r=this._parserTypeStatement(e);break;case le.VarBlockStmt:r=this._parserVarBlockStmt(e);break;case le.FlowStmt:if(this._isSwitch&&e.value==="break"){if(this._isInLoop){r="$$isBreak = true;";break}r="";break}r=`${e.value};`;break;case le.Brackethesized:r=this._parserBrackethesized(e);break;case le.EnumStatement:r=this._parserEnumStatement(e);break;default:r=this._parserSingleExpression(e);break}let a="";const c=this._preRunMembers[this._blockCount];if(c!=null&&c.length&&(a=`${a}
17
- ${c.join(`;
18
- `)}`,this._preRunMembers[this._blockCount]=[]),a){const h=this._codesCol[this._blockCount].pop(),d=r===(h==null?void 0:h.code);r=`${a}${n?`
19
- /****/
20
- `:`;
21
- `}${r}`,d&&(h.code=r,this._codesCol[this._blockCount].push(h))}return r}_parserEnumStatement(e){let{name:n,fields:r}=e;const a=[],c=[];for(const d of r){const{name:v,value:S}=d,C=S===void 0?`"${v}"`:S;c.push(C),a.push(`${v}: ${C}`)}wn.includes(n)&&(n=`$${n}`),this._enums.set(n,c);const h=`const ${n} = {${a.join(", ")}}`;return this._codesCol[this._blockCount].push({code:h,varNames:[n],depends:[]}),h}_parserTypeStatement(e){const n=[],r=[];for(const h of e.fields){const{name:d,value:v}=h;h.isVarip&&r.push(`"${d}"`),n.push(`${d}: ${v?this._parserSingleExpression(v):"undefined"}`)}this._userTypes.push(e.name);let a=e.name;wn.includes(a)&&(a=`$${a}`);const c=`const ${a} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${r.join()}])`;return this._codesCol[this._blockCount].push({code:c,varNames:[a],depends:[]}),c}_parserVarBlockStmt(e){const{nameList:n,value:r}=e;this._addVarList(n);const a=this._parserDeclareAssignNames(n),c=`$${a}_${this._blockCount}`;this._dependsObj[c]=new Map;const h=this._parserStmt(r,!0),d=h.split(`
22
- /****/
23
- `);let v="";d.length>1?v=`${d[0]}
24
- let ${a} = ${d[1]}
25
- `:v=`let ${a} = ${h}`;const S={code:v,varNames:a.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(c)};return this._codesCol[this._blockCount].push(S),v}_getDepends(e){const n=[];for(const[r,a]of this._dependsObj[e])(a.scope||0)>this._blockCount||n.push(a);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:r,block:a,name:c}=e;const[h,d,v]=r,S=this._isInLoop;let C=this._count;this._isInLoop=!0;const T=`$start${this._count++}`,k=`$$count${this._count}`,B=`$forTo${this._blockCount}`;n||(this._dependsObj[B]=new Map);const L=this._parserSingleExpression(h),b=this._parserSingleExpression(d),y=v?this._parserSingleExpression(v):"",g=this._parserBlockLine(a,n,!1,!0);wn.includes(c)&&(c=`$${c}`);const O=`var ${T} = Date.now()`,R=`for (let ${c}=${L}; ${c}>=(${b}); ${c}-=(${y||"1"})){
26
- if (Date.now() - ${T} > 500) {
27
- throw new Error('${pe.loopRuntimeErr}')
28
- }
29
- ${k}++
30
- ${g}
31
- }`,w=`for (let ${c}=${L};${c}<=(${b}); ${c}+=(${y||"1"})){
32
- if (Date.now() - ${T} > 500) {
33
- throw new Error('${pe.loopRuntimeErr}')
34
- }
35
- ${k}++
36
- ${g}
37
- }`;let U="";return(h==null?void 0:h.ruleType)==="Literal"&&(d==null?void 0:d.ruleType)==="Literal"?U=Number(h.value)>Number(d.value)?R:w:U=`if ((${L})>(${b})) {
38
- ${R}
39
- } else {
40
- ${w}
41
- }`,U=`${O};
42
- var ${k} = 0
43
- ${U}`,n||this._codesCol[this._blockCount].push({code:U,depends:this._getDepends(B)}),S&&(this._count=C),this._isInLoop=S,n?this._functionalProcess(U):U}_parserForInStatement(e,n=!1){const{names:r,block:a,array:c}=e,h=this._isInLoop;let d=this._count;this._isInLoop=!0;const v=`$start${this._count++}`,S=`$$count${this._count}`,C=this._parserBlockLine(a,n,!1,!0);let T="",[k,B]=r;wn.includes(k)&&(k=`$${k}`);const L=`var ${v} = Date.now()`;return r.length===1?T=`for (const ${k} of ${this._parserSingleExpression(c)}._value) {
44
- if (Date.now() - ${v} > 500) {
45
- throw new Error('${pe.loopRuntimeErr}')
46
- }
47
- ${S}++
48
- ${C}
49
- }`:(wn.includes(B)&&(B=`$${B}`),T=`for (const [${k},${B}] of (${this._parserSingleExpression(c)})._value.entries()) {
50
- if (Date.now() - ${v} > 500) {
51
- throw new Error('${pe.loopRuntimeErr}')
52
- }
53
- ${S}++
54
- ${C}
55
- }`),this._isInLoop=h,T=`${L};
56
- var ${S} = 0;
57
- ${T}`,h&&(this._count=d),n?this._functionalProcess(T):T}_parserAgainAssign(e){const{operator:n,name:r,value:a}=e,{varPos:c,declare:h}=r,d=`$againAssign${this._blockCount}`;this._dependsObj[d]=new Map;const v=this._parserName(r,!0);let S="",C=this._parserStmt(a,!0);const T=C.split(`
58
- /****/
59
- `);let k="";T.length>1&&(k=T[0],C=T[1]);let B=`${v} ${n===":="?`= ${C}`:`${n} ${C}`}`;const L=`${c==null?void 0:c.column}_${c==null?void 0:c.lineNumber}`;if(h){const y=this._isInFunc?`$posStr + "_${L}"`:`"${L}"`;S=`;
60
- ${this._prefixNameVar}.setVarValue("${v}", ${y}, ${v}, "${h}")`}n==="-="?B=`${v} = ${this._prefixNameVar}.sub(${v}, ${C})`:n==="+="?B=`${v} = ${this._prefixNameVar}.add(${v}, ${C})`:n===":="&&(k=`${k};
61
- `);const b=`${k}${B}${S}`;return this._codesCol[this._blockCount].push({code:b,depends:this._getDepends(d)}),b}_parserSwitchStatement(e,n=!1){const{condition:r,cases:a,defaultCase:c}=e;let h=`$switch${this._blockCount}`;n||(this._dependsObj[h]=new Map);const d=this._isSwitch;this._isSwitch=!0;const v=a.length?this._parserCases(a,n):"",S=c?this._parserDefaultCase(c,n):"",C=`switch (${r===!0?r:this._parserSingleExpression(r)}) {
62
- ${v}
63
- ${S}
64
- }`;n||this._codesCol[this._blockCount].push({code:C,depends:this._getDepends(h)});const T=n?this._functionalProcess(C):C;return this._isSwitch=d,T}_parserCases(e,n=!1){const r=[];for(const a of e)r.push(this._parserCase(a,n));return r.join(`
65
- `)}_parserDefaultCase(e,n=!1){return`default:
66
- { ${this._parserBlock(e.block,n)} }
67
- break;`}_parserCase(e,n=!1){const{condition:r,block:a}=e;return`case ${this._parserSingleExpression(r)}:
68
- { ${this._parserBlock(a,n)} }
69
- break;`}_parserWhileStatement(e,n=!1){const{condition:r,block:a}=e;let c=`$while${this._blockCount}`;n||(this._dependsObj[c]=new Map);const h=this._isInLoop,d=this._count;this._isInLoop=!0;const v=`$start${this._count++}`,S=`var ${v} = Date.now()`,C=`$$count${this._count}`;let T=`while (${this._parserSingleExpression(r)}) {
70
- if (Date.now() - ${v} > 500) {
71
- throw new Error('${pe.loopRuntimeErr}')
72
- }
73
- ${C}++
74
- ${this._parserBlockLine(a,n,!1,!0)}
75
- }`;return T=`${S};
76
- var ${C} = 0;
77
- ${T}`,n||this._codesCol[this._blockCount].push({code:T,depends:this._getDepends(c)}),h&&(this._count=d),this._isInLoop=h,n?this._functionalProcess(T):T}_parserIfStatement(e,n=!1){const{condition:r,block:a}=e;let c="",h=`$if${this._blockCount}`;n||(this._dependsObj[h]=new Map);for(const[d,v]of a.entries()){const S=this._parserBlockLine(v,n),C=r[d]&&this._parserSingleExpression(r[d]);d===0?c=`if (${C}) {
78
- ${S}
79
- }`:C?c+=`else if (${C}) {
80
- ${S}
81
- }`:c+=`else {
82
- ${S}
83
- }`}return n||this._codesCol[this._blockCount].push({code:c,depends:this._getDepends(h)}),n?this._functionalProcess(c):c}_parserBlockLine(e,n=!1,r=!1,a=!1){const c=[],h=e.length;this._blockCount++,this._codesCol[this._blockCount]=[];let d=e.slice(-1)[0];(d==null?void 0:d.ruleType)===le.FlowStmt&&(d=e.slice(-2)[0]),a&&c.push("let $$isBreak = false;");for(const[v,S]of e.entries()){const C=n&&v===h-1;if(Array.isArray(S)){const T=[...S];C&&(d=T.pop(),(d==null?void 0:d.ruleType)===le.FlowStmt&&(d=T.pop()));for(const k of T){const B=this._parserStmt(k);B&&c.push(B),(k==null?void 0:k.ruleType)===le.SwitchStatement&&a&&c.push(`
84
- if ($$isBreak) {
85
- break;
86
- }
87
- `)}}else C||(c.push(this._parserStmt(S)),(S==null?void 0:S.ruleType)===le.SwitchStatement&&a&&c.push(`
88
- if ($$isBreak) {
89
- break;
90
- }
91
- `))}if(n&&d){const v=this._parserReturnBlock(d,r);c.push(v),(d==null?void 0:d.ruleType)===le.SwitchStatement&&a&&c.push(`
92
- if ($$isBreak) {
93
- break;
94
- }
95
- `)}else c.push(this._getMembersCode());return this._varlist[this._blockCount]={},this._memberIndexList[this._blockCount]={},this._codesCol[this._blockCount]=[],this._blockCount--,`${c.filter(v=>v).join(`;
96
- `)}`}_parserReturnBlock(e,n=!1){let r="",a="",c="";switch(e.ruleType){case le.AgainAssign:return r=this._parserStmt(e),a=this._getMembersCode(),n?`${r};
97
- ${a}
98
- return ${this._parserName(e.name,!0)}`:`${r};
99
- ${a}
100
- $$_result = ${this._parserName(e.name,!0)}`;case le.DeclareAssign:c=this._parserStmt(e),a=`${c}
101
- ${this._getMembersCode()}`,r=this._parserDeclareAssignNames(e.nameList);break;case le.FlowStmt:return this._getMembersCode();case le.VarBlockStmt:c=this._parserStmt(e),a=`${c}
102
- ${this._getMembersCode()}`,r=this._parserDeclareAssignNames(e.nameList);break;default:r=this._parserStmt(e,!0),a=this._getMembersCode();const h=r.split(`
103
- /****/
104
- `);h.length>1&&(a=`${a}
105
- ${h[0]}`,r=h[1]);break}return n?`${a}
106
- return ${r}`:`${a}
107
- $$_result = ${r}`}_getMembersCode(){const e=this._memberIndexList[this._blockCount]||{};return Object.values(e).join(`;
108
- `)}_parserArrowMethod(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params],a=e.index?`$${e.index}`:"";n=`${n}${a}`,this._currentFuncName=n,this._dependsObj[n]=new Map;const c=this._parserBlock(e.block,!0,!0),h=e.hasRequest?", $paramsExpr":"";let d=`const ${n} = (${this._parserParameters(r)}$posStr${h}) => {
109
- ${c}
110
- }`;if(this._userTypes.includes(e.typeName)){let v=e.typeName;wn.includes(v)&&(v=`$${v}`),d=`${d}
111
- ${v}.addNewMethod("${e.name}${a}", function (${this._parserParameters(r.slice(1))}$posStr${h}) {
112
- const ${r[0].name} = this;
113
- ${c}
114
- })
115
- `}return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:d}),d}_parserArrowFunction(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params];n=`${n}${e.index?`$${e.index}`:""}`,this._currentFuncName=n,this._dependsObj[n]=new Map;const a=e.hasRequest?", $paramsExpr":"",c=`const ${n} = (${this._parserParameters(r)}$posStr${a}) => {
116
- ${this._parserBlock(e.block,!0,!0)}
117
- }`;return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:c}),c}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:r,defaultValue:a}=n;let c=r;if(a){const h=this._parserSingleExpression(a);c=`${c} = ${h}`}return c}).join(", ")}},`:""}_parserBlock(e,n=!1,r=!1){return r&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,r)}_addVarList(e){var r,a;const n=this._varlist[this._blockCount]||{};if(e.names){const c=e.posList;for(const[h,d]of e.names.entries()){const v=((r=c[h])==null?void 0:r.reName)||d;n[v]=c[h]}}else{const c=((a=e.pos)==null?void 0:a.reName)||e.name;n[c]=e.pos}this._varlist[this._blockCount]=n}_parserDeclareAssign(e){var S;const{nameList:n,value:r}=e,a=this._parserDeclareAssignNames(n);this._addVarList(n);const c={code:"",varNames:a.replace(/[\[\]]/g,"").split(", "),depends:[]},h=`$${a}_${this._blockCount}`;this._dependsObj[h]=new Map;const d=this._parserSingleExpression(r);let v=`let ${a} = ${d}`;if(n.declare){const C=`${n.pos.column}_${n.pos.lineNumber}`,T=this._isInFunc?`$posStr + "_${C}"`:`"${C}"`;v=`let ${a} = ${this._prefixNameVar}.verifyVarAndVarip("${a}", ${T}, "${n.declare}") ? ${this._prefixNameVar}.getVarValue("${a}", ${T}, "${n.declare}") : ${this._prefixNameVar}.setVarValue("${a}", ${T}, ${d}, "${n.declare}")`}return c.code=v,c.depends=this._getDepends(h),(S=this._codesCol[this._blockCount])==null||S.push(c),v}_parserDeclareAssignNames(e){var n,r;switch(e==null?void 0:e.ruleType){case"VarMultiple":const a=e.posList;return`[${e.names.map((c,h)=>{var d,v;return c==="_"?(this.__count++,`_$$${this.__count}`):(d=a[h])!=null&&d.reName?(v=a[h])==null?void 0:v.reName:wn.includes(c)?`$${c}`:c}).join(", ")}]`;case"VarSingle":return e.name==="_"?(this.__count++,`_$$${this.__count}`):(n=e.pos)!=null&&n.reName?(r=e.pos)==null?void 0:r.reName:wn.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:r}=e;let a="",c=this._isInConditionalStmt;switch(e.ruleType){case le.MemberIndexExpression:return this._parserMemberIndexExpression(e);case le.MethodExpression:return this._parserMethodExpression(e);case le.UnaryExpression:return`${r}${this._parserSingleExpression(n[0])}`;case le.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case le.AdditiveExpression:return this._parserAdditiveExpression(e);case le.MultiplicativeExpression:case le.RelationalExpression:case le.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${r} ${this._parserSingleExpression(n[1])}`;case le.LogicalAndExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`,this._isInConditionalStmt=c,a;case le.LogicalOrExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`,this._isInConditionalStmt=c,a;case le.TernaryExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`,this._isInConditionalStmt=c,a;case le.Name:return this._parserName(e);case le.Literal:return this._parseLiteral(e);case le.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:r}=e,a=this._parserSingleExpression(n[0]),c=this._parserSingleExpression(n[1]);return r==="-"?`${this._prefixNameVar}.sub(${a}, ${c})`:`${this._prefixNameVar}.add(${a}, ${c})`}_parserMemberIndexExpression(e){var C;const{exprs:n,isInFunc:r,ctx:a}=e,c=n[0],h=this._parserSingleExpression(n[1]);let d=this._parserSingleExpression(c);const v=a.start.tokenIndex,S=r?"$posStr":v;if(c.ruleType===le.Name&&!c.hasMethod){let T=this._blockCount;const k=((C=c.varPos)==null?void 0:C.reName)||c.name;for(;T>=0;){const B=this._varlist[T]||{},L=B[k];if(L)return this._getUserVarMemberIndexs(L,k,T,h,r);if(c.isBuiltIn){const b=this._memberIndexList[0]||{};return b[k]=`${this._prefixNameVar}.setCacheData("${k}", ${d})`,`${this._prefixNameVar}.getCacheData("${k}", ${h}, ${d})`}if(k.includes(".")){const b=k.split(".")[0],y=B[b];if(y)return this._getUserVarMemberIndexs(y,k,T,h,r)}T--}return this._getOtherVarMemberIndexs(`${k}_${c.varScope||c.scope}`,k,c.varScope||c.scope,h,r)}else{const T=this._preRunMembers[this._blockCount]||[],k=`$$m${v}_${S}`;T.push(`const ${k} = ${d};
118
- ${this._prefixNameVar}.setCacheData("m${v}_" + ${S}, ${k})`),this._preRunMembers[this._blockCount]=T}return`${this._prefixNameVar}.getCacheData("m${v}_" + ${S}, ${h}, ${d})`}_getOtherVarMemberIndexs(e,n,r,a,c){const h=this._memberIndexList[r]||{};e=c&&r!==0?`"${e}_" + $posStr`:`"${e}"`;const d=`${this._prefixNameVar}.setCacheData(${e}, ${n})`;return h[e]=d,this._memberIndexList[r]=h,this._setDepend({name:n,scope:r,memberCode:d}),`${this._prefixNameVar}.getCacheData(${e}, ${a}, ${n})`}_getUserVarMemberIndexs(e,n,r,a,c){return this._getOtherVarMemberIndexs(`${n}_${e.lineNumber}_${e.column}`,n,r,a,c)}_parseLiteral(e){return e.type.endsWith(V.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const r=parseInt(e.substring(1,3),16),a=parseInt(e.substring(3,5),16),c=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=parseInt(h,16)/255:n=1,`rgba(${Math.round(r)}, ${Math.round(a)}, ${Math.round(c)}, ${n.toFixed(2)})`}return e}_parserName(e,n=!1){const{exprs:r,varScope:a,hasMethod:c,arg:h,varPos:d}=e,v=r.map(S=>{var B;if(typeof S=="string")return(d==null?void 0:d.reName)||S;const{column:C,line:T}=((B=S==null?void 0:S.ctx)==null?void 0:B.start)||{},k=`${T}_${C}`;return this._parserMethodElement(S,k)});if(e.expr&&v.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn)v.join(".")==="strategy.opentrades"&&v.push("opentrades"),v.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar);else if(wn.includes(v[0])&&(v[0]=`$${v[0]}`),!c){const S={name:v[0],scope:a||(h==null?void 0:h.varScope)||0,isAgainAssign:n,isArg:h==null?void 0:h.isArg,functionName:this._currentFuncName};this._setDepend(S)}return v.join(".")}_setDepend(e){const n=e.name;for(const r of Object.values(this._dependsObj)){const a=r.get(n)||{},c={...e,...a};r.set(n,c)}}_parserMethodExpression(e){const{exprs:n,ctx:r}=e,{column:a,line:c}=r.start,h=`${c}_${a}`;let d=this._isInFunc?`$posStr + "__${h}"`:`"${h}"`;return d=this._isInLoop?`$$count${this._count} + ${d}`:d,n.map(C=>(C.hasMemberIndex,this._parserMethodElement(C,d))).join(".")}_parserMethodElement(e,n){let r="",a="";const c={...e.args};e.expr&&(r=`(${this._parserSingleExpression(e.expr)})`),r=r?`${r}.${e.name}`:this._nameMap.get(e.name)||e.name,e.hasVarPrefix&&(r=`${this._prefixNameVar}.${r}`);let h=!1;if(e.isBuiltIn){if(Pp.includes(r))r=`${r}.${r}`;else if(r==="max_bars_back"){const{name:v,varPos:S}=c.var||c.params[0];a=`var_name: "${S?`${v}_${S.lineNumber}_${S.column}`:v}"`}r.startsWith(V.INPUT)?(a=`index: ${this._inputCount}`,this._inputCount++):r.startsWith("request.")&&(h=!0),r=`${this._prefixNameFunc}.${r}`}else{const v=r.split(".");let S=v[0];wn.includes(S)&&(S=`$${S}`,r=v.join("."))}if(e.selfArg){const v=r.split("."),S=v.length;Object.assign(c,{[e.selfArg.name]:{name:v.slice(0,S-1).join(".")}}),r=v[S-1],r=this._nameMap.get(r)||r,this._setDepend({name:v[0],scope:e.varScope||0})}r=`${r}${e.index?`$${e.index}`:""}`;const d=this._parserArguments(c,a,n,h,e.hasRequest,r);if(!e.isBuiltIn){const v=r.split(".");if(v.length>1?this._setDepend({name:v[0],scope:e.varScope||0}):this._setDepend({name:r,scope:0,hasRequest:e.hasRequest,isFunc:!0}),e.funcName){const S=this._nameMap.get(e.funcName)||e.funcName;this._setDepend({name:S,originName:r,scope:0,hasRequest:e.hasRequest,isFunc:!0})}}return r+d}_parserArguments(e,n,r,a=!1,c=!1,h){const d=e.params||[];delete e.params;const v=[],S=[];let C=[],T;const k=(L,b)=>{c&&(this._dependsObj[r]=new Map),a&&b==="expression"&&(this._dependsObj[`$arg_${b}${r}`]=new Map);let y=L.ruleType===le.Brackethesized?this._parserBrackethesized(L):this._parserSingleExpression(L);if(b&&!["arg0, arg1, ...","number0, number1, ..."].includes(b)){L.isSourceType?v.push(`sourceTypeName: "${L.name}"`):b==="defval"&&h===`${this._prefixNameFunc}.input.enum`&&(T=this._enums.get(L.enumName));const g=this._requestParamsHandle(a,b,r,c,y,h);y=(g==null?void 0:g.code)||y,g!=null&&g.paramsExpr&&C.push(g==null?void 0:g.paramsExpr),v.push(`${b}: ${y}`)}else S.push(y)};for(const L of d)k(L,L.originName);for(const L of Object.keys(e))k(e[L],L);a&&this._isInFunc&&v.push("paramsExpr: $paramsExpr"),n&&v.push(n),T&&v.unshift(`options: [${T.join(", ")}]`);const B=C.length?`, [${this._isInFunc?"...$paramsExpr, ":""}${C.join(", ")}]`:"";return S.length?`({${v.join(", ")}}, [${S.join(", ")}], ${r}${B})`:v.length?`({${v.join(", ")}}, ${r}${B})`:`(${r}${B})`}_requestParamsHandle(e,n,r,a,c,h){const d=this._memberIndexList[0],v={};for(const S of Object.keys(d))S.includes("_")||(v[S]=d[S]);if(e&&n==="expression"){const S=this._getDepends(`$arg_${n}${r}`),C=this._getExpressionContext(S);return C.push({scope:1,depends:S.map(T=>(T.isArg&&(T.functionName=this._currentFuncName),T)),code:c,memberCodes:v}),{code:`'${hu(JSON.stringify(C))}'`}}else if(a){const S=this._getDepends(r),C=this._getExpressionContext(S);return C.push({scope:2,varNames:n,methodName:h,depends:S,dependSelf:S.some(T=>T.name===n),code:`${n} = ${c}`,memberCodes:v}),{paramsExpr:`'${hu(JSON.stringify(C))}'`}}}_getExpressionContext(e){const n=[],r=[];return this._getDependsCode(e,n,r),n}_getDependsCode(e,n,r){var a,c;for(const h of e)if(!h.isArg){const d=this._codesCol[h.scope||0],v=d.find(C=>{var T;return((T=C.varNames)==null?void 0:T.includes(h.name))||C.funcName===h.name});v&&(r.includes(v)||(r.push(v),v.depends.length&&this._getDependsCode(v.depends,n,r),n.push({scope:h.scope||0,code:v.code,depends:v.depends,funcName:v.funcName,varNames:(a=v.varNames)==null?void 0:a.join(", ")})));const S=d.filter(C=>C.depends.some(T=>T.name===h.name&&T.scope===h.scope&&T.isAgainAssign));for(const C of S)r.includes(C)||(r.push(C),C.depends.length&&this._getDependsCode(C.depends,n,r),n.push({scope:h.scope||0,code:C.code,depends:C.depends,funcName:C.funcName,varNames:(c=C.varNames)==null?void 0:c.join(", ")}))}}_parserBrackethesized(e){return`[${e.exprs.map(r=>this._parserSingleExpression(r)).join(", ")}]`}_functionalProcess(e){return`(function () {
119
- let $$_result=undefined;
120
- ${e}
121
- return $$_result
122
- })()`}}class H_{constructor(e,n){D(this,"_nameMap");D(this,"_prefixNameVar");D(this,"_prefixNameFunc");D(this,"_prefixNameConst");D(this,"_userTypes");D(this,"_isInFunc");D(this,"_currentFuncName");D(this,"_varlist");D(this,"_memberIndexList");D(this,"_blockCount");D(this,"_libTitle");D(this,"_exportEles");D(this,"_inputCount");D(this,"_count");D(this,"_isSwitch",!1);D(this,"_isInLoop",!1);D(this,"_codesCol");D(this,"_dependsObj");D(this,"_enums");D(this,"_preRunMembers");D(this,"_isInConditionalStmt",!1);D(this,"_preRunMembersFuncs");D(this,"_preRunMemberFuncsCount",0);D(this,"__count",0);this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._libTitle=n,this._exportEles=[],this._inputCount=0,this._count=0,this._codesCol=[[]],this._dependsObj={},this._enums=new Map,this._preRunMembers=[],this._preRunMembersFuncs=[]}parser(e){const n=[];for(const c of e){if(!c)return;if(Array.isArray(c))for(const h of c)n.push(this._parserStmt(h));else n.push(this._parserStmt(c))}const r=this._memberIndexList[this._blockCount]||{};return n.push(...Object.values(r)),`const $name = (function () {
123
- ${n.join(`;
124
- `).replace(/;+/g,";")}
125
- return {
126
- ${this._exportEles.map(c=>`${c.key}: ${c.name}`).join(", ")}
127
- }
128
- })();`}_parserStmt(e,n=!1){let r="";switch(e==null?void 0:e.ruleType){case le.DeclareAssign:r=this._parserDeclareAssign(e);break;case le.MethodExpression:r=`${this._parserMethodExpression(e)}`;break;case le.ArrowFunction:r=this._parserArrowFunction(e);break;case le.ArrowMethod:r=this._parserArrowMethod(e);break;case le.IfStatement:r=this._parserIfStatement(e,n);break;case le.WhileStatement:r=this._parserWhileStatement(e,n);break;case le.SwitchStatement:r=this._parserSwitchStatement(e,n);break;case le.ForInStatement:r=this._parserForInStatement(e,n);break;case le.ForToStatement:r=this._parserForToStatement(e,n);break;case le.AgainAssign:r=this._parserAgainAssign(e);break;case le.ImportElement:r=e.code||"";break;case le.TypeStatement:r=this._parserTypeStatement(e);break;case le.VarBlockStmt:r=this._parserVarBlockStmt(e);break;case le.FlowStmt:if(this._isSwitch&&e.value==="break"){if(this._isInLoop){r="$$isBreak = true;";break}r="";break}r=`${e.value};`;break;case le.Brackethesized:r=this._parserBrackethesized(e);break;case le.EnumStatement:r=this._parserEnumStatement(e);break;default:r=this._parserSingleExpression(e);break}let a="";const c=this._preRunMembersFuncs[this._blockCount];c!=null&&c.length&&(a=c.join(`;
129
- `),this._preRunMembersFuncs[this._blockCount]=[]);const h=this._preRunMembers[this._blockCount];if(h!=null&&h.length&&(a=`${a}
130
- ${h.join(`;
131
- `)}`,this._preRunMembers[this._blockCount]=[]),a){const d=this._codesCol[this._blockCount].pop(),v=r===(d==null?void 0:d.code);r=`${a}${n?`
132
- /****/
133
- `:`;
134
- `}${r}`,v&&(d.code=r,this._codesCol[this._blockCount].push(d))}return r}_parserEnumStatement(e){let{name:n,fields:r}=e;const a=[],c=[];for(const d of r){const{name:v,value:S}=d,C=S===void 0?`"${v}"`:S;c.push(C),a.push(`${v}: ${C}`)}wn.includes(n)&&(n=`$${n}`),this._enums.set(n,c),e.isExport&&this._exportEles.push({key:n,name:n});const h=`const ${n} = {${a.join(", ")}}`;return this._codesCol[this._blockCount].push({code:h,varNames:[n],depends:[]}),h}_parserTypeStatement(e){const n=[],r=[];for(const h of e.fields){const{name:d,value:v}=h;h.isVarip&&r.push(`"${d}"`),n.push(`${d}: ${v?this._parserSingleExpression(v):"undefined"}`)}this._userTypes.push(e.name),e.isExport&&this._exportEles.push({key:e.name,name:e.name});let a=e.name;wn.includes(a)&&(a=`$${a}`);const c=`const ${a} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${r.join()}])`;return this._codesCol[this._blockCount].push({code:c,varNames:[a],depends:[]}),c}_parserVarBlockStmt(e){const{nameList:n,value:r}=e;this._addVarList(n);const a=this._parserDeclareAssignNames(n),c=`$${a}_${this._blockCount}`;this._dependsObj[c]=new Map;const h=this._parserStmt(r,!0),d=h.split(`
135
- /****/
136
- `);let v="";d.length>1?v=`${d[0]}
137
- let ${a} = ${d[1]}
138
- `:v=`let ${a} = ${h}`;const S={code:v,varNames:a.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(c)};return this._codesCol[this._blockCount].push(S),v}_getDepends(e){const n=[];for(const[r,a]of this._dependsObj[e])(a.scope||0)>this._blockCount||n.push(a);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:r,block:a,name:c}=e;const[h,d,v]=r,S=this._isInLoop;let C=this._count;this._isInLoop=!0;const T=`$start${this._count++}`,k=`$$count${this._count}`,B=`$forTo${this._blockCount}`;n||(this._dependsObj[B]=new Map);const L=this._parserSingleExpression(h),b=this._parserSingleExpression(d),y=v?this._parserSingleExpression(v):"",g=this._parserBlockLine(a,n,!1,!0);wn.includes(c)&&(c=`$${c}`);const O=`var ${T} = Date.now()`,R=`for (let ${c}=${L}; ${c}>=(${b}); ${c}-=(${y||"1"})){
139
- if (Date.now() - ${T} > 500) {
140
- throw new Error('${pe.loopRuntimeErr}')
141
- }
142
- ${k}++
143
- ${g}
144
- }`,w=`for (let ${c}=${L};${c}<=(${b}); ${c}+=(${y||"1"})){
145
- if (Date.now() - ${T} > 500) {
146
- throw new Error('${pe.loopRuntimeErr}')
147
- }
148
- ${k}++
149
- ${g}
150
- }`;let U="";return(h==null?void 0:h.ruleType)==="Literal"&&(d==null?void 0:d.ruleType)==="Literal"?U=Number(h.value)>Number(d.value)?R:w:U=`if ((${L})>(${b})) {
151
- ${R}
152
- } else {
153
- ${w}
154
- }`,U=`${O};
155
- var ${k} = 0
156
- ${U}`,n||this._codesCol[this._blockCount].push({code:U,depends:this._getDepends(B)}),S&&(this._count=C),this._isInLoop=S,n?this._functionalProcess(U):U}_parserForInStatement(e,n=!1){const{names:r,block:a,array:c}=e,h=this._isInLoop;let d=this._count;this._isInLoop=!0;const v=`$start${this._count++}`,S=`$$count${this._count}`,C=this._parserBlockLine(a,n,!1,!0);let T="",[k,B]=r;wn.includes(k)&&(k=`$${k}`);const L=`var ${v} = Date.now()`;return r.length===1?T=`for (const ${k} of ${this._parserSingleExpression(c)}._value) {
157
- if (Date.now() - ${v} > 500) {
158
- throw new Error('${pe.loopRuntimeErr}')
159
- }
160
- ${S}++
161
- ${C}
162
- }`:(wn.includes(B)&&(B=`$${B}`),T=`for (const [${k},${B}] of (${this._parserSingleExpression(c)})._value.entries()) {
163
- if (Date.now() - ${v} > 500) {
164
- throw new Error('${pe.loopRuntimeErr}')
165
- }
166
- ${S}++
167
- ${C}
168
- }`),this._isInLoop=h,T=`${L};
169
- var ${S} = 0;
170
- ${T}`,h&&(this._count=d),n?this._functionalProcess(T):T}_parserAgainAssign(e){const{operator:n,name:r,value:a}=e,{varPos:c,declare:h}=r,d=`$againAssign${this._blockCount}`;this._dependsObj[d]=new Map;const v=this._parserName(r,!0);let S="",C=this._parserStmt(a,!0);const T=C.split(`
171
- /****/
172
- `);let k="";T.length>1&&(k=T[0],C=T[1]);const B=`$_tmp_${v.split(".").pop()}`;n===":="&&(k=`${k}
173
- var ${B} = ${C}`);let L=`${v} ${n===":="?`= ${B}`:`${n} ${C}`}`;const b=`${c==null?void 0:c.column}_${c==null?void 0:c.lineNumber}`;if(h){const g=this._isInFunc?`$posStr + '_${b}'`:`"export_${this._libTitle}_${b}"`;S=`;
174
- ${this._prefixNameVar}.setVarValue("${v}", ${g}, ${v}, "${h}")`}n==="-="?L=`${v} = ${this._prefixNameVar}.sub(${v}, ${C})`:n==="+="?L=`${v} = ${this._prefixNameVar}.add(${v}, ${C})`:n===":="&&(k=`${k};
175
- ${this._prefixNameVar}.againAssignParse(${v}, ${B});
176
- `);const y=`${k}${L}${S}`;return this._codesCol[this._blockCount].push({code:y,depends:this._getDepends(d)}),y}_parserSwitchStatement(e,n=!1){const{condition:r,cases:a,defaultCase:c}=e;let h=`$switch${this._blockCount}`;n||(this._dependsObj[h]=new Map);const d=this._isSwitch;this._isSwitch=!0;const v=a.length?this._parserCases(a,n):"",S=c?this._parserDefaultCase(c,n):"",C=`switch (${r===!0?r:this._parserSingleExpression(r)}) {
177
- ${v}
178
- ${S}
179
- }`;n||this._codesCol[this._blockCount].push({code:C,depends:this._getDepends(h)});const T=n?this._functionalProcess(C):C;return this._isSwitch=d,T}_parserCases(e,n=!1){const r=[];for(const a of e)r.push(this._parserCase(a,n));return r.join(`
180
- `)}_parserDefaultCase(e,n=!1){return`default:
181
- { ${this._parserBlock(e.block,n)} }
182
- break;`}_parserCase(e,n=!1){const{condition:r,block:a}=e;return`case ${this._parserSingleExpression(r)}:
183
- ${this._parserBlock(a,n)}
184
- break;`}_parserWhileStatement(e,n=!1){const{condition:r,block:a}=e;let c=`$while${this._blockCount}`;n||(this._dependsObj[c]=new Map);const h=this._isInLoop,d=this._count;this._isInLoop=!0;const v=`$start${this._count++}`,S=`var ${v} = Date.now()`,C=`$$count${this._count}`;let T=`while (${this._parserSingleExpression(r)}) {
185
- if (Date.now() - ${v} > 500) {
186
- throw new Error('${pe.loopRuntimeErr}')
187
- }
188
- ${C}++
189
- ${this._parserBlockLine(a,n,!1,!0)}
190
- }`;return T=`${S};
191
- var ${C} = 0;
192
- ${T}`,n||this._codesCol[this._blockCount].push({code:T,depends:this._getDepends(c)}),h&&(this._count=d),this._isInLoop=h,n?this._functionalProcess(T):T}_parserIfStatement(e,n=!1){const{condition:r,block:a}=e;let c="",h=`$if${this._blockCount}`;n||(this._dependsObj[h]=new Map);for(const[d,v]of a.entries()){const S=this._parserBlockLine(v,n),C=r[d]&&this._parserSingleExpression(r[d]);d===0?c=`if (${C}) {
193
- ${S}
194
- }`:C?c+=`else if (${C}) {
195
- ${S}
196
- }`:c+=`else {
197
- ${S}
198
- }`}return n||this._codesCol[this._blockCount].push({code:c,depends:this._getDepends(h)}),n?this._functionalProcess(c):c}_parserBlockLine(e,n=!1,r=!1,a=!1){const c=[],h=e.length;this._blockCount++,this._codesCol[this._blockCount]=[];let d=e.slice(-1)[0];(d==null?void 0:d.ruleType)===le.FlowStmt&&(d=e.slice(-2)[0]),a&&c.push("let $$isBreak = false;");for(const[v,S]of e.entries()){const C=n&&v===h-1;if(Array.isArray(S)){const T=[...S];C&&(d=T.pop(),(d==null?void 0:d.ruleType)===le.FlowStmt&&(d=T.pop()));for(const k of T){const B=this._parserStmt(k);B&&c.push(B),(k==null?void 0:k.ruleType)===le.SwitchStatement&&a&&c.push(`
199
- if ($$isBreak) {
200
- break;
201
- }
202
- `)}}else C||(c.push(this._parserStmt(S)),(S==null?void 0:S.ruleType)===le.SwitchStatement&&a&&c.push(`
203
- if ($$isBreak) {
204
- break;
205
- }
206
- `))}if(n&&d){const v=this._parserReturnBlock(d,r);c.push(v),(d==null?void 0:d.ruleType)===le.SwitchStatement&&a&&c.push(`
207
- if ($$isBreak) {
208
- break;
209
- }
210
- `)}else c.push(this._getMembersCode());return this._varlist[this._blockCount]={},this._memberIndexList[this._blockCount]={},this._codesCol[this._blockCount]=[],this._blockCount--,`${c.filter(v=>v).join(`;
211
- `)}`}_parserReturnBlock(e,n=!1){let r="",a="",c="";switch(e.ruleType){case le.AgainAssign:return r=this._parserStmt(e),a=this._getMembersCode(),n?`${r};
212
- ${a}
213
- return ${this._parserName(e.name,!0)}`:`${r};
214
- ${a}
215
- $$_result = ${this._parserName(e.name,!0)}`;case le.DeclareAssign:c=this._parserStmt(e),a=`${c}
216
- ${this._getMembersCode()}`,r=this._parserDeclareAssignNames(e.nameList);break;case le.FlowStmt:return this._getMembersCode();case le.VarBlockStmt:c=this._parserStmt(e),a=`${c}
217
- ${this._getMembersCode()}`,r=this._parserDeclareAssignNames(e.nameList);break;default:r=this._parserStmt(e,!0),a=this._getMembersCode();const h=r.split(`
218
- /****/
219
- `);h.length>1&&(a=`${a}
220
- ${h[0]}`,r=h[1]);break}return n?`${a}
221
- return ${r}`:`${a}
222
- $$_result = ${r}`}_getMembersCode(){const e=this._memberIndexList[this._blockCount]||{};return Object.values(e).join(`;
223
- `)}_parserArrowMethod(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params],a=e.index?`$${e.index}`:"";n=`${n}${a}`,e.isExport&&this._exportEles.push({key:`${e.name}${a}`,name:n}),this._currentFuncName=n,this._dependsObj[n]=new Map;const c=this._parserBlock(e.block,!0,!0),h=e.hasRequest?", $paramsExpr":"";let d=`const ${n} = (${this._parserParameters(r)}$posStr${h}) => {
224
- if ($posStr.startsWith('export')) return;
225
- ${c}
226
- }`;if(this._userTypes.includes(e.typeName)){let v=e.typeName;wn.includes(v)&&(v=`$${v}`),d=`${d}
227
- ${v}.addNewMethod("${e.name}${a}", function (${this._parserParameters(r.slice(1))}$posStr${h}) {
228
- if ($posStr.startsWith('export')) return;
229
- const ${r[0].name} = this;
230
- ${c}
231
- })
232
- `}return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:d}),d}_parserArrowFunction(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const r=[...e.params],a=e.index?`$${e.index}`:"";n=`${n}${a}`,e.isExport&&this._exportEles.push({key:`${e.name}${a}`,name:n}),this._currentFuncName=n,this._dependsObj[n]=new Map;const c=e.hasRequest?", $paramsExpr":"",h=`const ${n} = (${this._parserParameters(r)}$posStr${c}) => {
233
- if ($posStr.startsWith('export')) return;
234
- ${this._parserBlock(e.block,!0,!0)}
235
- }`;return this._isInFunc=!1,this._currentFuncName="",this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:h}),h}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:r,defaultValue:a}=n;let c=r;if(a){const h=this._parserSingleExpression(a);c=`${c} = ${h}`}return c}).join(", ")}},`:""}_parserBlock(e,n=!1,r=!1){return r&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,r)}_addVarList(e){var r,a;const n=this._varlist[this._blockCount]||{};if(e.names){const c=e.posList;for(const[h,d]of e.names.entries()){const v=((r=c[h])==null?void 0:r.reName)||d;n[v]=c[h]}}else{const c=((a=e.pos)==null?void 0:a.reName)||e.name;n[c]=e.pos}this._varlist[this._blockCount]=n}_parserDeclareAssign(e){var S;const{nameList:n,value:r}=e,a=this._parserDeclareAssignNames(n);this._addVarList(n);const c={code:"",varNames:a.replace(/[\[\]]/g,"").split(", "),depends:[]},h=`$${a}_${this._blockCount}`;this._dependsObj[h]=new Map;const d=this._parserSingleExpression(r);let v=`let ${a} = ${d}`;if(n.declare){const C=`${n.pos.column}_${n.pos.lineNumber}`,T=this._isInFunc?`$posStr + '_' + '${C}'`:`"export_${this._libTitle}_${C}"`;v=`let ${a} = ${this._prefixNameVar}.verifyVarAndVarip("${a}", ${T}, "${n.declare}") ? ${this._prefixNameVar}.getVarValue("${a}", ${T}, "${n.declare}") : ${this._prefixNameVar}.setVarValue("${a}", ${T}, ${d}, "${n.declare}")`}return c.code=v,c.depends=this._getDepends(h),(S=this._codesCol[this._blockCount])==null||S.push(c),v}_parserDeclareAssignNames(e){var n,r;switch(e==null?void 0:e.ruleType){case"VarMultiple":const a=e.posList;return`[${e.names.map((c,h)=>{var d,v;return c==="_"?(this.__count++,`_$$${this.__count}`):(d=a[h])!=null&&d.reName?(v=a[h])==null?void 0:v.reName:wn.includes(c)?`$${c}`:c}).join(", ")}]`;case"VarSingle":return e.name==="_"?(this.__count++,`_$$${this.__count}`):(n=e.pos)!=null&&n.reName?(r=e.pos)==null?void 0:r.reName:wn.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:r}=e;let a="",c=this._isInConditionalStmt;switch(e.ruleType){case le.MemberIndexExpression:return this._parserMemberIndexExpression(e);case le.MethodExpression:return this._parserMethodExpression(e);case le.UnaryExpression:return`${r}${this._parserSingleExpression(n[0])}`;case le.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case le.AdditiveExpression:return this._parserAdditiveExpression(e);case le.MultiplicativeExpression:case le.RelationalExpression:case le.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${r} ${this._parserSingleExpression(n[1])}`;case le.LogicalAndExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`,this._isInConditionalStmt=c,a;case le.LogicalOrExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`,this._isInConditionalStmt=c,a;case le.TernaryExpression:return this._isInConditionalStmt=!0,a=`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`,this._isInConditionalStmt=c,a;case le.Name:return this._parserName(e);case le.Literal:return this._parseLiteral(e);case le.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:r}=e,a=this._parserSingleExpression(n[0]),c=this._parserSingleExpression(n[1]);return r==="-"?`${this._prefixNameVar}.sub(${a}, ${c})`:`${this._prefixNameVar}.add(${a}, ${c})`}_parserMemberIndexExpression(e){var C;const{exprs:n,isInFunc:r,ctx:a}=e,c=n[0],h=this._parserSingleExpression(n[1]);let d=this._parserSingleExpression(c);const v=a.start.tokenIndex,S=r?"$posStr":v;if(c.ruleType===le.Name&&!c.hasMethod){let T=this._blockCount;const k=((C=c.varPos)==null?void 0:C.reName)||c.name;for(;T>=0;){const B=this._varlist[T]||{},L=B[k];if(L)return this._getUserVarMemberIndexs(L,k,T,h,r);if(c.isBuiltIn){const b=this._memberIndexList[0]||{};return b[k]=`${this._prefixNameVar}.setCacheData("${k}", ${d})`,`${this._prefixNameVar}.getCacheData("${k}", ${h}, ${d})`}if(k.includes(".")){const b=k.split(".")[0],y=B[b];if(y)return this._getUserVarMemberIndexs(y,k,T,h,r)}T--}return this._getOtherVarMemberIndexs(`${k}_${c.varScope||c.scope}`,k,c.varScope||c.scope,h,r)}else{const T=this._preRunMembers[this._blockCount]||[],k=`$$m${v}_${S}`;T.push(`const ${k} = ${d};
236
- ${this._prefixNameVar}.setCacheData("m${v}_" + ${S}, ${k})`),this._preRunMembers[this._blockCount]=T}return`${this._prefixNameVar}.getCacheData("m${v}_" + ${S}, ${h}, ${d})`}_getOtherVarMemberIndexs(e,n,r,a,c){const h=this._memberIndexList[r]||{};e=c&&r!==0?`"${e}_" + $posStr`:`"${e}"`;const d=`${this._prefixNameVar}.setCacheData(${e}, ${n})`;return h[e]=d,this._memberIndexList[r]=h,this._setDepend({name:n,scope:r,memberCode:d}),`${this._prefixNameVar}.getCacheData(${e}, ${a}, ${n})`}_getUserVarMemberIndexs(e,n,r,a,c){return this._getOtherVarMemberIndexs(`${n}_${e.lineNumber}_${e.column}`,n,r,a,c)}_parseLiteral(e){return e.type.endsWith(V.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const r=parseInt(e.substring(1,3),16),a=parseInt(e.substring(3,5),16),c=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=(255-parseInt(h,16))/255:n=1,`rgba(${Math.round(r)}, ${Math.round(a)}, ${Math.round(c)}, ${n.toFixed(2)})`}return e}_parserName(e,n=!1){const{exprs:r,varScope:a,hasMethod:c,arg:h,varPos:d}=e,v=r.map(S=>{var B;if(typeof S=="string")return(d==null?void 0:d.reName)||S;const{column:C,line:T}=((B=S==null?void 0:S.ctx)==null?void 0:B.start)||{},k=this._isInFunc?`${T}_${C}`:`export_${this._libTitle}_${T}_${C}`;return this._parserMethodElement(S,k)});if(e.expr&&v.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn)v.join(".")==="strategy.opentrades"&&v.push("opentrades"),v.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar);else if(wn.includes(v[0])&&(v[0]=`$${v[0]}`),!c){const S={name:v[0],scope:a||(h==null?void 0:h.varScope)||0,isAgainAssign:n,isArg:h==null?void 0:h.isArg,functionName:this._currentFuncName};this._setDepend(S)}return v.join(".")}_setDepend(e){const n=e.name;for(const r of Object.values(this._dependsObj)){const a=r.get(n)||{},c={...e,...a};r.set(n,c)}}_parserMethodExpression(e){const{exprs:n,ctx:r}=e,{column:a,line:c}=r.start,h=`${c}_${a}`;let d=this._isInFunc?`$posStr + "_${h}"`:`"export_${this._libTitle}_${h}"`;d=this._isInLoop?`$$count${this._count} + ${d}`:d;let v=!1;const S=n.map(T=>(T.hasMemberIndex&&(v=!0),this._parserMethodElement(T,d))),C=S.join(".");if(S.length===1&&[...Al,Ii.library].some(T=>S[0].startsWith(`${this._prefixNameFunc}.${T}`)))return"";if(this._isInConditionalStmt&&v){const T=`$$result_${this._preRunMemberFuncsCount}`;this._preRunMemberFuncsCount++;const k=this._preRunMembersFuncs[this._blockCount]||[];return k.push(`const ${T} = ${C}`),this._preRunMembersFuncs[this._blockCount]=k,T}return C}_parserMethodElement(e,n){let r="",a="";const c={...e.args};e.expr&&(r=`(${this._parserSingleExpression(e.expr)})`),r=r?`${r}.${e.name}`:this._nameMap.get(e.name)||e.name,e.hasVarPrefix&&(r=`${this._prefixNameVar}.${r}`);let h=!1;if(e.isBuiltIn){if(Pp.includes(r))r=`${r}.${r}`;else if(r==="max_bars_back"){const{name:v,varPos:S}=c.var||c.params[0];a=`var_name: "${S?`${v}_${S.lineNumber}_${S.column}`:v}"`}r.startsWith(V.INPUT)?(a=`index: ${this._inputCount}`,this._inputCount++):r.startsWith("request.")&&(h=!0),r=`${this._prefixNameFunc}.${r}`}else{const v=r.split(".");let S=v[0];wn.includes(S)&&(S=`$${S}`,r=v.join("."))}if(e.selfArg){const v=r.split("."),S=v.length;Object.assign(c,{[e.selfArg.name]:{name:v.slice(0,S-1).join(".")}}),r=v[S-1],r=this._nameMap.get(r)||r,this._setDepend({name:v[0],scope:e.varScope||0})}r=`${r}${e.index?`$${e.index}`:""}`;const d=this._parserArguments(c,a,n,h,e.hasRequest,r);if(!e.isBuiltIn){const v=r.split(".");if(v.length>1?this._setDepend({name:v[0],scope:e.varScope||0}):this._setDepend({name:r,scope:0,hasRequest:e.hasRequest,isFunc:!0}),e.funcName){const S=this._nameMap.get(e.funcName)||e.funcName;this._setDepend({name:S,originName:r,scope:0,hasRequest:e.hasRequest,isFunc:!0})}}return r+d}_parserArguments(e,n,r,a=!1,c=!1,h){const d=e.params||[];delete e.params;const v=[],S=[];let C=[],T;const k=(L,b)=>{c&&(this._dependsObj[r]=new Map),a&&b==="expression"&&(this._dependsObj[`$arg_${b}${r}`]=new Map);let y=L.ruleType===le.Brackethesized?this._parserBrackethesized(L):this._parserSingleExpression(L);if(b&&!["arg0, arg1, ...","number0, number1, ..."].includes(b)){L.isSourceType?v.push(`sourceTypeName: "${L.name}"`):b==="defval"&&h===`${this._prefixNameFunc}.input.enum`&&(T=this._enums.get(L.enumName));const g=this._requestParamsHandle(a,b,r,c,y,h);y=(g==null?void 0:g.code)||y,g!=null&&g.paramsExpr&&C.push(g==null?void 0:g.paramsExpr),v.push(`${b}: ${y}`)}else S.push(y)};for(const L of d)k(L,L.originName);for(const L of Object.keys(e))k(e[L],L);a&&this._isInFunc&&v.push("paramsExpr: $paramsExpr"),n&&v.push(n),T&&v.unshift(`options: [${T.join(", ")}]`);const B=C.length?`, [${this._isInFunc?"...$paramsExpr, ":""}${C.join(", ")}]`:"";return S.length?`({${v.join(", ")}}, [${S.join(", ")}], ${r}${B})`:v.length?`({${v.join(", ")}}, ${r}${B})`:`(${r}${B})`}_requestParamsHandle(e,n,r,a,c,h){const d=this._memberIndexList[0],v={};for(const S of Object.keys(d))S.includes("_")||(v[S]=d[S]);if(e&&n==="expression"){const S=this._getDepends(`$arg_${n}${r}`),C=this._getExpressionContext(S);return C.push({scope:1,depends:S.map(T=>(T.isArg&&(T.functionName=this._currentFuncName),T)),code:c,memberCodes:v}),{code:`'${hu(JSON.stringify(C))}'`}}else if(a){const S=this._getDepends(r),C=this._getExpressionContext(S);return C.push({scope:2,varNames:n,methodName:h,depends:S,dependSelf:S.some(T=>T.name===n),code:`${n} = ${c}`,memberCodes:v}),{paramsExpr:`'${hu(JSON.stringify(C))}'`}}}_getExpressionContext(e){const n=[],r=[];return this._getDependsCode(e,n,r),n}_getDependsCode(e,n,r){var a,c;for(const h of e)if(!h.isArg){const d=this._codesCol[h.scope||0],v=d.find(C=>{var T;return((T=C.varNames)==null?void 0:T.includes(h.name))||C.funcName===h.name});v&&(r.includes(v)||(r.push(v),v.depends.length&&this._getDependsCode(v.depends,n,r),n.push({scope:h.scope||0,code:v.code,depends:v.depends,funcName:v.funcName,varNames:(a=v.varNames)==null?void 0:a.join(", ")})));const S=d.filter(C=>C.depends.some(T=>T.name===h.name&&T.scope===h.scope&&T.isAgainAssign));for(const C of S)r.includes(C)||(r.push(C),C.depends.length&&this._getDependsCode(C.depends,n,r),n.push({scope:h.scope||0,code:C.code,depends:C.depends,funcName:C.funcName,varNames:(c=C.varNames)==null?void 0:c.join(", ")}))}}_parserBrackethesized(e){return`[${e.exprs.map(r=>this._parserSingleExpression(r)).join(", ")}]`}_functionalProcess(e){return`(function () {
237
- let $$_result=undefined;
238
- ${e}
239
- return $$_result
240
- })();`}}/**
241
- * @license
242
- * Copyright 2019 Google LLC
243
- * SPDX-License-Identifier: Apache-2.0
244
- */const Bp=Symbol("Comlink.proxy"),G_=Symbol("Comlink.endpoint"),K_=Symbol("Comlink.releaseProxy"),Cl=Symbol("Comlink.finalizer"),pu=Symbol("Comlink.thrown"),Up=t=>typeof t=="object"&&t!==null||typeof t=="function",z_={canHandle:t=>Up(t)&&t[Bp],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Ol(t,e),[n,[n]]},deserialize(t){return t.start(),Y_(t)}},W_={canHandle:t=>Up(t)&&pu in t,serialize({value:t}){let e;return t instanceof Error?e={isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:e={isError:!1,value:t},[e,[]]},deserialize(t){throw t.isError?Object.assign(new Error(t.value.message),t.value):t.value}},$p=new Map([["proxy",z_],["throw",W_]]);function X_(t,e){for(const n of t)if(e===n||n==="*"||n instanceof RegExp&&n.test(e))return!0;return!1}function Ol(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(a){if(!a||!a.data)return;if(!X_(n,a.origin)){console.warn(`Invalid origin '${a.origin}' for comlink proxy`);return}const{id:c,type:h,path:d}=Object.assign({path:[]},a.data),v=(a.data.argumentList||[]).map(_o);let S;try{const C=d.slice(0,-1).reduce((k,B)=>k[B],t),T=d.reduce((k,B)=>k[B],t);switch(h){case"GET":S=T;break;case"SET":C[d.slice(-1)[0]]=_o(a.data.value),S=!0;break;case"APPLY":S=T.apply(C,v);break;case"CONSTRUCT":{const k=new T(...v);S=ty(k)}break;case"ENDPOINT":{const{port1:k,port2:B}=new MessageChannel;Ol(t,B),S=ey(k,[k])}break;case"RELEASE":S=void 0;break;default:return}}catch(C){S={value:C,[pu]:0}}Promise.resolve(S).catch(C=>({value:C,[pu]:0})).then(C=>{const[T,k]=yu(C);e.postMessage(Object.assign(Object.assign({},T),{id:c}),k),h==="RELEASE"&&(e.removeEventListener("message",r),Vp(e),Cl in t&&typeof t[Cl]=="function"&&t[Cl]())}).catch(C=>{const[T,k]=yu({value:new TypeError("Unserializable return value"),[pu]:0});e.postMessage(Object.assign(Object.assign({},T),{id:c}),k)})}),e.start&&e.start()}function q_(t){return t.constructor.name==="MessagePort"}function Vp(t){q_(t)&&t.close()}function Y_(t,e){return kl(t,[],e)}function du(t){if(t)throw new Error("Proxy has been released and is not useable")}function jp(t){return Ho(t,{type:"RELEASE"}).then(()=>{Vp(t)})}const mu=new WeakMap,_u="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(mu.get(t)||0)-1;mu.set(t,e),e===0&&jp(t)});function J_(t,e){const n=(mu.get(e)||0)+1;mu.set(e,n),_u&&_u.register(t,e,t)}function Z_(t){_u&&_u.unregister(t)}function kl(t,e=[],n=function(){}){let r=!1;const a=new Proxy(n,{get(c,h){if(du(r),h===K_)return()=>{Z_(a),jp(t),r=!0};if(h==="then"){if(e.length===0)return{then:()=>a};const d=Ho(t,{type:"GET",path:e.map(v=>v.toString())}).then(_o);return d.then.bind(d)}return kl(t,[...e,h])},set(c,h,d){du(r);const[v,S]=yu(d);return Ho(t,{type:"SET",path:[...e,h].map(C=>C.toString()),value:v},S).then(_o)},apply(c,h,d){du(r);const v=e[e.length-1];if(v===G_)return Ho(t,{type:"ENDPOINT"}).then(_o);if(v==="bind")return kl(t,e.slice(0,-1));const[S,C]=Hp(d);return Ho(t,{type:"APPLY",path:e.map(T=>T.toString()),argumentList:S},C).then(_o)},construct(c,h){du(r);const[d,v]=Hp(h);return Ho(t,{type:"CONSTRUCT",path:e.map(S=>S.toString()),argumentList:d},v).then(_o)}});return J_(a,t),a}function Q_(t){return Array.prototype.concat.apply([],t)}function Hp(t){const e=t.map(yu);return[e.map(n=>n[0]),Q_(e.map(n=>n[1]))]}const Gp=new WeakMap;function ey(t,e){return Gp.set(t,e),t}function ty(t){return Object.assign(t,{[Bp]:!0})}function yu(t){for(const[e,n]of $p)if(n.canHandle(t)){const[r,a]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},a]}return[{type:"RAW",value:t},Gp.get(t)||[]]}function _o(t){switch(t.type){case"HANDLER":return $p.get(t.name).deserialize(t.value);case"RAW":return t.value}}function Ho(t,e,n){return new Promise(r=>{const a=ny();t.addEventListener("message",function c(h){!h.data||!h.data.id||h.data.id!==a||(t.removeEventListener("message",c),r(h.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:a},e),n)})}function ny(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Go(t){return t.split("")}function Dl(t,e){return e.includes(t)}class ry extends Error{constructor(e,n){super(),this.name="DefaultsError",this.message=e,this.defs=n}}function _i(t,e,n){t===!0?t={}:t!=null&&typeof t=="object"&&(t={...t});const r=t||{};if(n){for(const a in r)if(tr(r,a)&&!tr(e,a))throw new ry("`"+a+"` is not a supported option",e)}for(const a in e)if(tr(e,a))if(!t||!tr(t,a))r[a]=e[a];else if(a==="ecma"){let c=t[a]|0;c>5&&c<2015&&(c+=2009),r[a]=c}else r[a]=t&&tr(t,a)?t[a]:e[a];return r}function _r(){}function vt(){return!1}function er(){return!0}function yo(){return this}function to(){return null}var qt=function(){function t(n,r,a=!0){const c=[];for(let h=0;h<n.length;++h){let v=n[h].transform(r,a);v instanceof Ce?c.push(v):v instanceof e&&c.push(...v.v)}return c}t.splice=function(n){return new e(n)},t.skip={};function e(n){this.v=n}return t}();function P(t,e,n){return n||(n={}),e&&(n.start||(n.start=e.start),n.end||(n.end=e.end)),new t(n)}function go(t,e){t.includes(e)||t.push(e)}function gu(t,e){return t.replace(/{(.+?)}/g,function(n,r){return e&&e[r]})}function Ko(t,e){for(var n=t.length;--n>=0;)t[n]===e&&t.splice(n,1)}function Kp(t,e){if(t.length<2)return t.slice();function n(a,c){for(var h=[],d=0,v=0,S=0;d<a.length&&v<c.length;)e(a[d],c[v])<=0?h[S++]=a[d++]:h[S++]=c[v++];return d<a.length&&h.push.apply(h,a.slice(d)),v<c.length&&h.push.apply(h,c.slice(v)),h}function r(a){if(a.length<=1)return a;var c=Math.floor(a.length/2),h=a.slice(0,c),d=a.slice(c);return h=r(h),d=r(d),n(h,d)}return r(t)}function Ct(t){return Array.isArray(t)||(t=t.split(" ")),new Set(t.sort())}function bu(t,e,n){t.has(e)?t.get(e).push(n):t.set(e,[n])}function iy(t){var e=new Map;for(var n in t)tr(t,n)&&n.charAt(0)==="$"&&e.set(n.substr(1),t[n]);return e}function oy(t){var e=Object.create(null);return t.forEach(function(n,r){e["$"+r]=n}),e}function tr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zo(t,e){return t===!0||t instanceof RegExp&&t.test(e)}var sy={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function vu(t){return t.replace(/[\0\n\r\u2028\u2029]/g,function(e,n){var r=t[n-1]=="\\"&&(t[n-2]!="\\"||/(?:^|[^\\])(?:\\{2})*$/.test(t.slice(0,n-1)));return(r?"":"\\")+sy[e]})}const ay=/^[\\/|\0\s\w^$.[\]()]*$/,zp=t=>ay.test(t),uy="dgimsuyv";function cy(t){const e=new Set(t.split(""));let n="";for(const r of uy)e.has(r)&&(n+=r,e.delete(r));return e.size&&e.forEach(r=>{n+=r}),n}function ur(t,e){return t._annotations&e}function aa(t,e){t._annotations|=e}function Wp(t,e){t._annotations&=~e}var Eu="",ua=new Map,Su="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Tu="false null true",ca="enum import super this "+Tu+" "+Su,no="implements interface package private protected public static "+ca,wl="return new delete throw else case yield await";Su=Ct(Su),ca=Ct(ca),wl=Ct(wl),Tu=Ct(Tu),no=Ct(no);var ly=Ct(Go("+-*&%=<>!?|~^")),fy=/[0-9a-f]/i,Xp=/^0x[0-9a-f]+$/i,qp=/^0[0-7]+$/,hy=/^0o[0-7]+$/i,py=/^0b[01]+$/i,dy=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,my=/^(0[xob])?[0-9a-f]+n$/i,Yp=Ct(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),_y=Ct(Go(`  
245
- \r \f\v​           \u2028\u2029   \uFEFF`)),Rl=Ct(Go(`
246
- \r\u2028\u2029`)),yy=Ct(Go(";]),:")),gy=Ct(Go("[{(,;:")),by=Ct(Go("[]{}(),;:")),Au={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function xu(t,e){if(Cu(t.charCodeAt(e))){if(Nl(t.charCodeAt(e+1)))return t.charAt(e)+t.charAt(e+1)}else if(Nl(t.charCodeAt(e))&&Cu(t.charCodeAt(e-1)))return t.charAt(e-1)+t.charAt(e);return t.charAt(e)}function vy(t,e){return Cu(t.charCodeAt(e))?65536+(t.charCodeAt(e)-55296<<10)+t.charCodeAt(e+1)-56320:t.charCodeAt(e)}function Ey(t){for(var e=0,n=0;n<t.length;n++)Cu(t.charCodeAt(n))&&Nl(t.charCodeAt(n+1))&&(e++,n++);return t.length-e}function Sy(t){return t>65535?(t-=65536,String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):String.fromCharCode(t)}function Cu(t){return t>=55296&&t<=56319}function Nl(t){return t>=56320&&t<=57343}function Jp(t){return t>=48&&t<=57}function Il(t){return Au.ID_Start.test(t)}function Ou(t){return Au.ID_Continue.test(t)}const Zp=/^[a-z_$][a-z0-9_$]*$/i;function ku(t){return Zp.test(t)}function Qp(t,e){if(Zp.test(t))return!0;if(!e&&/[\ud800-\udfff]/.test(t))return!1;var n=Au.ID_Start.exec(t);return!n||n.index!==0?!1:(t=t.slice(n[0].length),t?(n=Au.ID_Continue.exec(t),!!n&&n[0].length===t.length):!0)}function ed(t,e=!0){if(!e&&t.includes("e"))return NaN;if(Xp.test(t))return parseInt(t.substr(2),16);if(qp.test(t))return parseInt(t.substr(1),8);if(hy.test(t))return parseInt(t.substr(2),8);if(py.test(t))return parseInt(t.substr(2),2);if(dy.test(t))return parseFloat(t);var n=parseFloat(t);if(n==t)return n}class td extends Error{constructor(e,n,r,a,c){super(),this.name="SyntaxError",this.message=e,this.filename=n,this.line=r,this.col=a,this.pos=c}}function Du(t,e,n,r,a){throw new td(t,e,n,r,a)}function cr(t,e,n){return t.type==e&&(n==null||t.value==n)}var Pl={};function Ty(t,e,n,r){var a={text:t,filename:e,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function c(){return xu(a.text,a.pos)}function h(){if(!(a.text.charCodeAt(a.pos+1)===46))return!1;const ie=a.text.charCodeAt(a.pos+2);return ie<48||ie>57}function d(J,ie){var ue=xu(a.text,a.pos++);if(J&&!ue)throw Pl;return Rl.has(ue)?(a.newline_before=a.newline_before||!ie,++a.line,a.col=0,ue=="\r"&&c()==`
247
- `&&(++a.pos,ue=`
248
- `)):(ue.length>1&&(++a.pos,++a.col),++a.col),ue}function v(J){for(;J--;)d()}function S(J){return a.text.substr(a.pos,J.length)==J}function C(){for(var J=a.text,ie=a.pos,ue=a.text.length;ie<ue;++ie){var Ae=J[ie];if(Rl.has(Ae))return ie}return-1}function T(J,ie){var ue=a.text.indexOf(J,a.pos);if(ie&&ue==-1)throw Pl;return ue}function k(){a.tokline=a.line,a.tokcol=a.col,a.tokpos=a.pos}var B=!1,L=null;function b(J,ie,ue){a.regex_allowed=J=="operator"&&!nd.has(ie)||J=="keyword"&&wl.has(ie)||J=="punc"&&gy.has(ie)||J=="arrow",J=="punc"&&(ie=="."||ie=="?.")?B=!0:ue||(B=!1);const Ae=a.tokline,be=a.tokcol,At=a.tokpos,Vt=a.newline_before,Et=e;let Mt=[],gt=[];ue||(Mt=a.comments_before,gt=a.comments_before=[]),a.newline_before=!1;const Ot=new Fl(J,ie,Ae,be,At,Vt,Mt,gt,Et);return ue||(L=Ot),Ot}function y(){for(;_y.has(c());)d()}function g(J){for(var ie="",ue,Ae=0;(ue=c())&&J(ue,Ae++);)ie+=d();return ie}function O(J){Du(J,e,a.tokline,a.tokcol,a.tokpos)}function R(J){var ie=!1,ue=!1,Ae=!1,be=J==".",At=!1,Vt=!1,Et=g(function(gt,Ot){if(At)return!1;var Zt=gt.charCodeAt(0);switch(Zt){case 95:return Vt=!0;case 98:case 66:return Ae=!0;case 111:case 79:case 120:case 88:return Ae?!1:Ae=!0;case 101:case 69:return Ae?!0:ie?!1:ie=ue=!0;case 45:return ue||Ot==0&&!J;case 43:return ue;case(ue=!1,46):return!be&&!Ae&&!ie?be=!0:!1}return gt==="n"?(At=!0,!0):fy.test(gt)});if(J&&(Et=J+Et),Eu=Et,qp.test(Et)&&Ue.has_directive("use strict")&&O("Legacy octal literals are not allowed in strict mode"),Vt&&(Et.endsWith("_")?O("Numeric separators are not allowed at the end of numeric literals"):Et.includes("__")&&O("Only one underscore is allowed as numeric separator"),Et=Et.replace(/_/g,"")),Et.endsWith("n")){const gt=Et.slice(0,-1),Ot=Xp.test(gt),Zt=ed(gt,Ot);if(!be&&my.test(Et)&&!isNaN(Zt))return b("big_int",gt);O("Invalid or unexpected token")}var Mt=ed(Et);if(isNaN(Mt))O("Invalid syntax: "+Et);else return b("num",Mt)}function w(J){return J>="0"&&J<="7"}function U(J,ie,ue){var Ae=d(!0,J);switch(Ae.charCodeAt(0)){case 110:return`
249
- `;case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(ee(2,ie));case 117:if(c()=="{"){for(d(!0),c()==="}"&&O("Expecting hex-character between {}");c()=="0";)d(!0);var be,At=T("}",!0)-a.pos;return(At>6||(be=ee(At,ie))>1114111)&&O("Unicode reference out of bounds"),d(!0),Sy(be)}return String.fromCharCode(ee(4,ie));case 10:return"";case 13:if(c()==`
250
- `)return d(!0,J),""}return w(Ae)?(ue&&ie&&(Ae==="0"&&!w(c())||O("Octal escape sequences are not allowed in template strings")),X(Ae,ie)):Ae}function X(J,ie){var ue=c();return ue>="0"&&ue<="7"&&(J+=d(!0),J[0]<="3"&&(ue=c())>="0"&&ue<="7"&&(J+=d(!0))),J==="0"?"\0":(J.length>0&&Ue.has_directive("use strict")&&ie&&O("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(J,8)))}function ee(J,ie){for(var ue=0;J>0;--J){if(!ie&&isNaN(parseInt(c(),16)))return parseInt(ue,16)||"";var Ae=d(!0);isNaN(parseInt(Ae,16))&&O("Invalid hex-character pattern in string"),ue+=Ae}return parseInt(ue,16)}var z=ve("Unterminated string constant",function(){const J=a.pos;for(var ie=d(),ue=[];;){var Ae=d(!0,!0);if(Ae=="\\")Ae=U(!0,!0);else if(Ae=="\r"||Ae==`
251
- `)O("Unterminated string constant");else if(Ae==ie)break;ue.push(Ae)}var be=b("string",ue.join(""));return Eu=a.text.slice(J,a.pos),be.quote=ie,be}),Y=ve("Unterminated template",function(J){J&&a.template_braces.push(a.brace_counter);var ie="",ue="",Ae,be;for(d(!0,!0);(Ae=d(!0,!0))!="`";){if(Ae=="\r")c()==`
252
- `&&++a.pos,Ae=`
253
- `;else if(Ae=="$"&&c()=="{")return d(!0,!0),a.brace_counter++,be=b(J?"template_head":"template_substitution",ie),ua.set(be,ue),be.template_end=!1,be;if(ue+=Ae,Ae=="\\"){var At=a.pos,Vt=L&&(L.type==="name"||L.type==="punc"&&(L.value===")"||L.value==="]"));Ae=U(!0,!Vt,!0),ue+=a.text.substr(At,a.pos-At)}ie+=Ae}return a.template_braces.pop(),be=b(J?"template_head":"template_substitution",ie),ua.set(be,ue),be.template_end=!0,be});function $(J){var ie=a.regex_allowed,ue=C(),Ae;return ue==-1?(Ae=a.text.substr(a.pos),a.pos=a.text.length):(Ae=a.text.substring(a.pos,ue),a.pos=ue),a.col=a.tokcol+(a.pos-a.tokpos),a.comments_before.push(b(J,Ae,!0)),a.regex_allowed=ie,Ue}var ne=ve("Unterminated multiline comment",function(){var J=a.regex_allowed,ie=T("*/",!0),ue=a.text.substring(a.pos,ie).replace(/\r\n|\r|\u2028|\u2029/g,`
254
- `);return v(Ey(ue)+2),a.comments_before.push(b("comment2",ue,!0)),a.newline_before=a.newline_before||ue.includes(`
255
- `),a.regex_allowed=J,Ue}),Q=ve("Unterminated identifier name",function(){var J=[],ie,ue=!1,Ae=function(){return ue=!0,d(),c()!=="u"&&O("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),U(!1,!0)};if((ie=c())==="\\")ie=Ae(),Il(ie)||O("First identifier char is an invalid identifier char");else if(Il(ie))d();else return"";for(J.push(ie);(ie=c())!=null;){if((ie=c())==="\\")ie=Ae(),Ou(ie)||O("Invalid escaped identifier char");else{if(!Ou(ie))break;d()}J.push(ie)}const be=J.join("");return ca.has(be)&&ue&&O("Escaped characters are not allowed in keywords"),be}),_e=ve("Unterminated regular expression",function(J){for(var ie=!1,ue,Ae=!1;ue=d(!0);)if(Rl.has(ue))O("Unexpected line terminator");else if(ie)/^[\u0000-\u007F]$/.test(ue)?J+="\\"+ue:J+=ue,ie=!1;else if(ue=="[")Ae=!0,J+=ue;else if(ue=="]"&&Ae)Ae=!1,J+=ue;else{if(ue=="/"&&!Ae)break;ue=="\\"?ie=!0:J+=ue}const be=Q();return b("regexp","/"+J+"/"+be)});function ge(J){function ie(ue){if(!c())return ue;var Ae=ue+c();return Yp.has(Ae)?(d(),ie(Ae)):ue}return b("operator",ie(J||d()))}function re(){switch(d(),c()){case"/":return d(),$("comment1");case"*":return d(),ne()}return a.regex_allowed?_e(""):ge("/")}function de(){return d(),c()===">"?(d(),b("arrow","=>")):ge("=")}function fe(){return d(),Jp(c().charCodeAt(0))?R("."):c()==="."?(d(),d(),b("expand","...")):b("punc",".")}function Oe(){var J=Q();return B?b("name",J):Tu.has(J)?b("atom",J):Su.has(J)?Yp.has(J)?b("operator",J):b("keyword",J):b("name",J)}function Ie(){return d(),b("privatename",Q())}function ve(J,ie){return function(ue){try{return ie(ue)}catch(Ae){if(Ae===Pl)O(J);else throw Ae}}}function Ue(J){if(J!=null)return _e(J);for(r&&a.pos==0&&S("#!")&&(k(),v(2),$("comment5"));;){if(y(),k(),n){if(S("<!--")){v(4),$("comment3");continue}if(S("-->")&&a.newline_before){v(3),$("comment4");continue}}var ie=c();if(!ie)return b("eof");var ue=ie.charCodeAt(0);switch(ue){case 34:case 39:return z();case 46:return fe();case 47:{var Ae=re();if(Ae===Ue)continue;return Ae}case 61:return de();case 63:{if(!h())break;return d(),d(),b("punc","?.")}case 96:return Y(!0);case 123:a.brace_counter++;break;case 125:if(a.brace_counter--,a.template_braces.length>0&&a.template_braces[a.template_braces.length-1]===a.brace_counter)return Y(!1);break}if(Jp(ue))return R();if(by.has(ie))return b("punc",d());if(ly.has(ie))return ge();if(ue==92||Il(ie))return Oe();if(ue==35)return Ie();break}O("Unexpected character '"+ie+"'")}return Ue.next=d,Ue.peek=c,Ue.context=function(J){return J&&(a=J),a},Ue.add_directive=function(J){a.directive_stack[a.directive_stack.length-1].push(J),a.directives[J]===void 0?a.directives[J]=1:a.directives[J]++},Ue.push_directives_stack=function(){a.directive_stack.push([])},Ue.pop_directives_stack=function(){for(var J=a.directive_stack[a.directive_stack.length-1],ie=0;ie<J.length;ie++)a.directives[J[ie]]--;a.directive_stack.pop()},Ue.has_directive=function(J){return a.directives[J]>0},Ue}var Ay=Ct(["typeof","void","delete","--","++","!","~","-","+"]),nd=Ct(["--","++"]),xy=Ct(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),Cy=Ct(["??=","&&=","||="]),Dr=function(t,e){for(var n=0;n<t.length;++n)for(const r of t[n])e[r]=n+1;return e}([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),Oy=Ct(["atom","num","big_int","string","regexp","name"]);function la(t,e){const n=new WeakMap;e=_i(e,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var r={input:typeof t=="string"?Ty(t,e.filename,e.html5_comments,e.shebang):t,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};r.token=h();function a(N,G){return cr(r.token,N,G)}function c(){return r.peeked||(r.peeked=r.input())}function h(){return r.prev=r.token,r.peeked||c(),r.token=r.peeked,r.peeked=null,r.in_directives=r.in_directives&&(r.token.type=="string"||a("punc",";")),r.token}function d(){return r.prev}function v(N,G,W,Z){var oe=r.input.context();Du(N,oe.filename,G??oe.tokline,W??oe.tokcol,Z??oe.tokpos)}function S(N,G){v(G,N.line,N.col)}function C(N){N==null&&(N=r.token),S(N,"Unexpected token: "+N.type+" ("+N.value+")")}function T(N,G){if(a(N,G))return h();S(r.token,"Unexpected token "+r.token.type+" «"+r.token.value+"», expected "+N+" «"+G+"»")}function k(N){return T("punc",N)}function B(N){return N.nlb||!N.comments_before.every(G=>!G.nlb)}function L(){return!e.strict&&(a("eof")||a("punc","}")||B(r.token))}function b(){return r.in_generator===r.in_function}function y(){return r.in_async===r.in_function}function g(){return r.in_async===r.in_function||r.in_function===0&&r.input.has_directive("use strict")}function O(N){a("punc",";")?h():!N&&!L()&&C()}function R(){k("(");var N=_t(!0);return k(")"),N}function w(N){return function(...W){const Z=r.token,oe=N(...W);return oe.start=Z,oe.end=d(),oe}}function U(){(a("operator","/")||a("operator","/="))&&(r.peeked=null,r.token=r.input(r.token.value.substr(1)))}var X=w(function N(G,W,Z){switch(U(),r.token.type){case"string":if(r.in_directives){var oe=c();!Eu.includes("\\")&&(cr(oe,"punc",";")||cr(oe,"punc","}")||B(oe)||cr(oe,"eof"))?r.input.add_directive(r.token.value):r.in_directives=!1}var Fe=r.in_directives,Pe=z();return Fe&&Pe.body instanceof dt?new nr(Pe.body):Pe;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return z();case"name":case"privatename":if(a("privatename")&&!r.in_class&&v("Private field must be used in an enclosing class"),r.token.value=="async"&&cr(c(),"keyword","function"))return h(),h(),W&&v("functions are not allowed as the body of a loop"),re(en,!1,!0,G);if(r.token.value=="import"&&!cr(c(),"punc","(")&&!cr(c(),"punc",".")){h();var rt=fn();return O(),rt}return cr(c(),"punc",":")?ee():z();case"punc":switch(r.token.value){case"{":return new Ze({start:r.token,body:Ae(),end:d()});case"[":case"(":return z();case";":return r.in_directives=!1,h(),new wt;default:C()}case"keyword":switch(r.token.value){case"break":return h(),Y(wr);case"continue":return h(),Y(ro);case"debugger":return h(),O(),new Fi;case"do":h();var Ht=or(N);T("keyword","while");var sn=R();return O(!0),new yi({body:Ht,condition:sn});case"while":return h(),new Li({condition:R(),body:or(function(){return N(!1,!0)})});case"for":return h(),$();case"class":return h(),W&&v("classes are not allowed as the body of a loop"),Z&&v("classes are not allowed as the body of an if"),Qt(Kr,G);case"function":return h(),W&&v("functions are not allowed as the body of a loop"),re(en,!1,!1,G);case"if":return h(),ue();case"return":r.in_function==0&&!e.bare_returns&&v("'return' outside of function"),h();var En=null;return a("punc",";")?h():L()||(En=_t(!0),O()),new an({value:En});case"switch":return h(),new qn({expression:R(),body:or(be)});case"throw":h(),B(r.token)&&v("Illegal newline after 'throw'");var En=_t(!0);return O(),new ha({value:En});case"try":return h(),At();case"var":h();var rt=Et();return O(),rt;case"let":h();var rt=Mt();return O(),rt;case"const":h();var rt=gt();return O(),rt;case"with":return r.input.has_directive("use strict")&&v("Strict mode may not include a with statement"),h(),new yr({expression:R(),body:N()});case"export":if(!cr(c(),"punc","(")){h();var rt=Me();return a("punc",";")&&O(),rt}}}C()});function ee(){var N=Cn(pa);N.name==="await"&&y()&&S(r.prev,"await cannot be used as label inside async function"),r.labels.some(W=>W.name===N.name)&&v("Label "+N.name+" defined twice"),k(":"),r.labels.push(N);var G=X();return r.labels.pop(),G instanceof Vr||N.references.forEach(function(W){W instanceof ro&&(W=W.label.start,v("Continue label `"+N.name+"` refers to non-IterationStatement.",W.line,W.col,W.pos))}),new Qn({body:G,label:N})}function z(N){return new je({body:(N=_t(!0),O(),N)})}function Y(N){var G=null,W;L()||(G=Cn(Ml,!0)),G!=null?(W=r.labels.find(oe=>oe.name===G.name),W||v("Undefined label "+G.name),G.thedef=W):r.in_loop==0&&v(N.TYPE+" not inside a loop or switch"),O();var Z=new N({label:G});return W&&W.references.push(Z),Z}function $(){var N="`for await` invalid in this context",G=r.token;G.type=="name"&&G.value=="await"?(g()||S(G,N),h()):G=!1,k("(");var W=null;if(a("punc",";"))G&&S(G,N);else{W=a("keyword","var")?(h(),Et(!0)):a("keyword","let")?(h(),Mt(!0)):a("keyword","const")?(h(),gt(!0)):_t(!0,!0);var Z=a("operator","in"),oe=a("name","of");if(G&&!oe&&S(G,N),Z||oe)return W instanceof un?W.definitions.length>1&&S(W.start,"Only one variable declaration allowed in for..in loop"):Xi(W)||(W=Fr(W))instanceof $t||S(W.start,"Invalid left-hand side in for..in loop"),h(),Z?_e(W):Q(W,!!G)}return ne(W)}function ne(N){k(";");var G=a("punc",";")?null:_t(!0);k(";");var W=a("punc",")")?null:_t(!0);return k(")"),new An({init:N,condition:G,step:W,body:or(function(){return X(!1,!0)})})}function Q(N,G){var W=N instanceof un?N.definitions[0].name:null,Z=_t(!0);return k(")"),new Eo({await:G,init:N,name:W,object:Z,body:or(function(){return X(!1,!0)})})}function _e(N){var G=_t(!0);return k(")"),new Wn({init:N,object:G,body:or(function(){return X(!1,!0)})})}var ge=function(N,G,W){B(r.token)&&v("Unexpected newline before arrow (=>)"),T("arrow","=>");var Z=Ue(a("punc","{"),!1,W),oe=Z instanceof Array&&Z.length?Z[Z.length-1].end:Z instanceof Array?N:Z.end;return new Yt({start:N,end:oe,async:W,argnames:G,body:Z})},re=function(N,G,W,Z){var oe=N===en,Fe=a("operator","*");Fe&&h();var Pe=a("name")?Cn(oe?Ti:oi):null;oe&&!Pe&&(Z?N=Ft:C()),Pe&&N!==Mi&&!(Pe instanceof In)&&C(d());var rt=[],Ht=Ue(!0,Fe||G,W,Pe,rt);return new N({start:rt.start,end:Ht.end,is_generator:Fe,async:W,name:Pe,argnames:rt,body:Ht})};class de{constructor(G,W,Z=!1){this.is_parameter=G,this.duplicates_ok=Z,this.parameters=new Set,this.duplicate=null,this.default_assignment=!1,this.spread=!1,this.strict_mode=!!W}add_parameter(G){if(this.parameters.has(G.value))this.duplicate===null&&(this.duplicate=G),this.check_strict();else if(this.parameters.add(G.value),this.is_parameter)switch(G.value){case"arguments":case"eval":case"yield":this.strict_mode&&S(G,"Unexpected "+G.value+" identifier as parameter inside strict mode");break;default:ca.has(G.value)&&C()}}mark_default_assignment(G){this.default_assignment===!1&&(this.default_assignment=G)}mark_spread(G){this.spread===!1&&(this.spread=G)}mark_strict_mode(){this.strict_mode=!0}is_strict(){return this.default_assignment!==!1||this.spread!==!1||this.strict_mode}check_strict(){this.is_strict()&&this.duplicate!==null&&!this.duplicates_ok&&S(this.duplicate,"Parameter "+this.duplicate.value+" was used already")}}function fe(N){var G=new de(!0,r.input.has_directive("use strict"));for(k("(");!a("punc",")");){var W=Oe(G);if(N.push(W),a("punc",")")||k(","),W instanceof ht)break}h()}function Oe(N,G){var W,Z=!1;return N===void 0&&(N=new de(!0,r.input.has_directive("use strict"))),a("expand","...")&&(Z=r.token,N.mark_spread(r.token),h()),W=Ie(N,G),a("operator","=")&&Z===!1&&(N.mark_default_assignment(r.token),h(),W=new Nr({start:W.start,left:W,operator:"=",right:_t(!1),end:r.token})),Z!==!1&&(a("punc",")")||C(),W=new ht({start:Z,expression:W,end:Z})),N.check_strict(),W}function Ie(N,G){var W=[],Z=!0,oe=!1,Fe,Pe=r.token;if(N===void 0){const Lr=r.input.has_directive("use strict"),Bt=G===Vi;N=new de(!1,Lr,Bt)}if(G=G===void 0?Pn:G,a("punc","[")){for(h();!a("punc","]");){if(Z?Z=!1:k(","),a("expand","...")&&(oe=!0,Fe=r.token,N.mark_spread(r.token),h()),a("punc"))switch(r.token.value){case",":W.push(new Ir({start:r.token,end:r.token}));continue;case"]":break;case"[":case"{":W.push(Ie(N,G));break;default:C()}else a("name")?(N.add_parameter(r.token),W.push(Cn(G))):v("Invalid function parameter");a("operator","=")&&oe===!1&&(N.mark_default_assignment(r.token),h(),W[W.length-1]=new Nr({start:W[W.length-1].start,left:W[W.length-1],operator:"=",right:_t(!1),end:r.token})),oe&&(a("punc","]")||v("Rest element must be last element"),W[W.length-1]=new ht({start:Fe,expression:W[W.length-1],end:Fe}))}return k("]"),N.check_strict(),new $t({start:Pe,names:W,is_array:!0,end:d()})}else if(a("punc","{")){for(h();!a("punc","}");){if(Z?Z=!1:k(","),a("expand","...")&&(oe=!0,Fe=r.token,N.mark_spread(r.token),h()),a("name")&&(cr(c(),"punc")||cr(c(),"operator"))&&[",","}","="].includes(c().value)){N.add_parameter(r.token);var rt=d(),Ht=Cn(G);oe?W.push(new ht({start:Fe,expression:Ht,end:Ht.end})):W.push(new Jt({start:rt,key:Ht.name,value:Ht,end:Ht.end}))}else{if(a("punc","}"))continue;var sn=r.token,En=ut();En===null?C(d()):d().type==="name"&&!a("punc",":")?W.push(new Jt({start:d(),key:En,value:new G({start:d(),name:En,end:d()}),end:d()})):(k(":"),W.push(new Jt({start:sn,quote:sn.quote,key:En,value:Ie(N,G),end:d()})))}oe?a("punc","}")||v("Rest element must be last element"):a("operator","=")&&(N.mark_default_assignment(r.token),h(),W[W.length-1].value=new Nr({start:W[W.length-1].value.start,left:W[W.length-1].value,operator:"=",right:_t(!1),end:r.token}))}return k("}"),N.check_strict(),new $t({start:Pe,names:W,is_array:!1,end:d()})}else{if(a("name"))return N.add_parameter(r.token),Cn(G);v("Invalid function parameter")}}function ve(N,G){var W,Z,oe,Fe=[];for(k("(");!a("punc",")");)W&&C(W),a("expand","...")?(W=r.token,G&&(Z=r.token),h(),Fe.push(new ht({start:d(),expression:_t(),end:r.token}))):Fe.push(_t()),a("punc",")")||(k(","),a("punc",")")&&(oe=d(),G&&(Z=oe)));return k(")"),N&&a("arrow","=>")?W&&oe&&C(oe):Z&&C(Z),Fe}function Ue(N,G,W,Z,oe){var Fe=r.in_loop,Pe=r.labels,rt=r.in_generator,Ht=r.in_async;if(++r.in_function,G&&(r.in_generator=r.in_function),W&&(r.in_async=r.in_function),oe&&fe(oe),N&&(r.in_directives=!0),r.in_loop=0,r.labels=[],N){r.input.push_directives_stack();var sn=Ae();Z&&vn(Z),oe&&oe.forEach(vn),r.input.pop_directives_stack()}else var sn=[new an({start:r.token,value:_t(!1),end:r.token})];return--r.in_function,r.in_loop=Fe,r.labels=Pe,r.in_generator=rt,r.in_async=Ht,sn}function J(){return g()||v("Unexpected await expression outside async function",r.prev.line,r.prev.col,r.prev.pos),new gr({start:d(),end:r.token,expression:Ci(!0)})}function ie(){b()||v("Unexpected yield expression outside generator function",r.prev.line,r.prev.col,r.prev.pos);var N=r.token,G=!1,W=!0;return L()||a("punc")&&yy.has(r.token.value)?W=!1:a("operator","*")&&(G=!0,h()),new br({start:N,is_star:G,expression:W?_t():null,end:d()})}function ue(){var N=R(),G=X(!1,!1,!0),W=null;return a("keyword","else")&&(h(),W=X(!1,!1,!0)),new Rt({condition:N,body:G,alternative:W})}function Ae(){k("{");for(var N=[];!a("punc","}");)a("eof")&&C(),N.push(X());return h(),N}function be(){k("{");for(var N=[],G=null,W=null,Z;!a("punc","}");)a("eof")&&C(),a("keyword","case")?(W&&(W.end=d()),G=[],W=new Jr({start:(Z=r.token,h(),Z),expression:_t(!0),body:G}),N.push(W),k(":")):a("keyword","default")?(W&&(W.end=d()),G=[],W=new So({start:(Z=r.token,h(),k(":"),Z),body:G}),N.push(W)):(G||C(),G.push(X()));return W&&(W.end=d()),h(),N}function At(){var N,G=null,W=null;if(N=new Iu({start:r.token,body:Ae(),end:d()}),a("keyword","catch")){var Z=r.token;if(h(),a("punc","{"))var oe=null;else{k("(");var oe=Oe(void 0,zr);k(")")}G=new Zr({start:Z,argname:oe,body:Ae(),end:d()})}if(a("keyword","finally")){var Z=r.token;h(),W=new Wo({start:Z,body:Ae(),end:d()})}return!G&&!W&&v("Missing catch/finally blocks"),new vr({body:N,bcatch:G,bfinally:W})}function Vt(N,G){for(var W=[],Z;;){var oe=G==="var"?Vi:G==="const"?io:G==="let"?qo:null;if(a("punc","{")||a("punc","[")?Z=new Lt({start:r.token,name:Ie(void 0,oe),value:a("operator","=")?(T("operator","="),_t(!1,N)):null,end:d()}):(Z=new Lt({start:r.token,name:Cn(oe),value:a("operator","=")?(h(),_t(!1,N)):!N&&G==="const"?v("Missing initializer in const declaration"):null,end:d()}),Z.name.name=="import"&&v("Unexpected token: import")),W.push(Z),!a("punc",","))break;h()}return W}var Et=function(N){return new Nn({start:d(),definitions:Vt(N,"var"),end:d()})},Mt=function(N){return new Qr({start:d(),definitions:Vt(N,"let"),end:d()})},gt=function(N){return new ei({start:d(),definitions:Vt(N,"const"),end:d()})},Ot=function(N){var G=r.token;if(T("operator","new"),a("punc","."))return h(),T("name","target"),hn(new Xo({start:G,end:d()}),N);var W=De(!1),Z;a("punc","(")?(h(),Z=bt(")",!0)):Z=[];var oe=new rr({start:G,expression:W,args:Z,end:d()});return Mn(oe),hn(oe,N)};function Zt(){var N=r.token,G;switch(N.type){case"name":G=ft(xe);break;case"num":G=new Qe({start:N,end:N,value:N.value,raw:Eu});break;case"big_int":G=new si({start:N,end:N,value:N.value});break;case"string":G=new dt({start:N,end:N,value:N.value,quote:N.quote}),Mn(G);break;case"regexp":const[W,Z,oe]=N.value.match(/^\/(.*)\/(\w*)$/);G=new hr({start:N,end:N,value:{source:Z,flags:oe}});break;case"atom":switch(N.value){case"false":G=new Gi({start:N,end:N});break;case"true":G=new Er({start:N,end:N});break;case"null":G=new pr({start:N,end:N});break}break}return h(),G}function se(N,G){var W=function(Z,oe){return oe?new Nr({start:Z.start,left:Z,operator:"=",right:oe,end:oe.end}):Z};if(N instanceof Nt)return W(new $t({start:N.start,end:N.end,is_array:!1,names:N.properties.map(Z=>se(Z))}),G);if(N instanceof Jt)return N.value=se(N.value),W(N,G);if(N instanceof Ir)return N;if(N instanceof $t)return N.names=N.names.map(Z=>se(Z)),W(N,G);if(N instanceof xe)return W(new Pn({name:N.name,start:N.start,end:N.end}),G);if(N instanceof ht)return N.expression=se(N.expression),W(N,G);if(N instanceof St)return W(new $t({start:N.start,end:N.end,is_array:!0,names:N.elements.map(Z=>se(Z))}),G);if(N instanceof at)return W(se(N.left,N.right),G);if(N instanceof Nr)return N.left=se(N.left),N;v("Invalid function parameter",N.start.line,N.start.col)}var De=function(N,G){if(a("operator","new"))return Ot(N);if(a("name","import")&&cr(c(),"punc","."))return xi(N);var W=r.token,Z,oe=a("name","async")&&(Z=c()).value!="["&&Z.type!="arrow"&&Zt();if(a("punc")){switch(r.token.value){case"(":if(oe&&!N)break;var Fe=ve(G,!oe);if(G&&a("arrow","=>"))return ge(W,Fe.map(Bt=>se(Bt)),!!oe);var Pe=oe?new Ve({expression:oe,args:Fe}):Fo(W,Fe);if(Pe.start){const Bt=W.comments_before.length;if(n.set(W,Bt),Pe.start.comments_before.unshift(...W.comments_before),W.comments_before=Pe.start.comments_before,Bt==0&&W.comments_before.length>0){var rt=W.comments_before[0];rt.nlb||(rt.nlb=W.nlb,W.nlb=!1)}W.comments_after=Pe.start.comments_after}Pe.start=W;var Ht=d();return Pe.end&&(Ht.comments_before=Pe.end.comments_before,Pe.end.comments_after.push(...Ht.comments_after),Ht.comments_after=Pe.end.comments_after),Pe.end=Ht,Pe instanceof Ve&&Mn(Pe),hn(Pe,N);case"[":return hn(xt(),N);case"{":return hn(Un(),N)}oe||C()}if(G&&a("name")&&cr(c(),"arrow")){var sn=new Pn({name:r.token.value,start:W,end:W});return h(),ge(W,[sn],!!oe)}if(a("keyword","function")){h();var En=re(Ft,!1,!!oe);return En.start=W,En.end=d(),hn(En,N)}if(oe)return hn(oe,N);if(a("keyword","class")){h();var Lr=Qt(Si);return Lr.start=W,Lr.end=d(),hn(Lr,N)}if(a("template_head"))return hn(me(),N);if(Oy.has(r.token.type))return hn(Zt(),N);C()};function me(){var N=[],G=r.token;for(N.push(new gi({start:r.token,raw:ua.get(r.token),value:r.token.value,end:r.token}));!r.token.template_end;)h(),U(),N.push(_t(!0)),N.push(new gi({start:r.token,raw:ua.get(r.token),value:r.token.value,end:r.token}));return h(),new Xn({start:G,segments:N,end:r.token})}function bt(N,G,W){for(var Z=!0,oe=[];!a("punc",N)&&(Z?Z=!1:k(","),!(G&&a("punc",N)));)a("punc",",")&&W?oe.push(new Ir({start:r.token,end:r.token})):a("expand","...")?(h(),oe.push(new ht({start:d(),expression:_t(),end:r.token}))):oe.push(_t(!1));return h(),oe}var xt=w(function(){return k("["),new St({elements:bt("]",!e.strict,!0)})}),kt=w((N,G)=>re(Mi,N,G)),Un=w(function(){var G=r.token,W=!0,Z=[];for(k("{");!a("punc","}")&&(W?W=!1:k(","),!(!e.strict&&a("punc","}")));){if(G=r.token,G.type=="expand"){h(),Z.push(new ht({start:G,expression:_t(!1),end:d()}));continue}a("privatename")&&v("private fields are not allowed in an object");var oe=ut(),Fe;if(a("punc",":"))oe===null?C(d()):(h(),Fe=_t(!1));else{var Pe=dn(oe,G);if(Pe){Z.push(Pe);continue}Fe=new xe({start:d(),name:oe,end:d()})}a("operator","=")&&(h(),Fe=new at({start:G,left:Fe,operator:"=",right:_t(!1),logical:!1,end:d()}));const rt=new Jt({start:G,quote:G.quote,key:oe instanceof Ce?oe:""+oe,value:Fe,end:d()});Z.push(Mn(rt))}return h(),new Nt({properties:Z})});function Qt(N,G){var W,Z,oe,Fe,Pe=[];r.input.push_directives_stack(),r.input.add_directive("use strict"),r.token.type=="name"&&r.token.value!="extends"&&(oe=Cn(N===Kr?Pu:Fu)),N===Kr&&!oe&&(G?N=Si:C()),r.token.value=="extends"&&(h(),Fe=_t(!0)),k("{");const rt=r.in_class;for(r.in_class=!0;a("punc",";");)h();for(;!a("punc","}");)for(W=r.token,Z=dn(ut(),W,!0),Z||C(),Pe.push(Z);a("punc",";");)h();return r.in_class=rt,r.input.pop_directives_stack(),h(),new N({start:W,name:oe,extends:Fe,properties:Pe,end:d()})}function dn(N,G,W){const Z=(Bt,Xr=$n)=>typeof Bt=="string"||typeof Bt=="number"?new Xr({start:G,name:""+Bt,end:d()}):(Bt===null&&C(),Bt),oe=()=>!a("punc","(")&&!a("punc",",")&&!a("punc","}")&&!a("punc",";")&&!a("operator","=");var Fe=!1,Pe=!1,rt=!1,Ht=!1,sn=null;if(W&&N==="static"&&oe()){const Bt=jt();if(Bt!=null)return Bt;Pe=!0,N=ut()}N==="async"&&oe()&&(Fe=!0,N=ut()),d().type==="operator"&&d().value==="*"&&(rt=!0,N=ut()),(N==="get"||N==="set")&&oe()&&(sn=N,N=ut()),d().type==="privatename"&&(Ht=!0);const En=d();if(sn!=null)if(Ht){const Bt=sn==="get"?ni:bi;return Mn(new Bt({start:G,static:Pe,key:Z(N),value:kt(),end:d()}))}else{const Bt=sn==="get"?Gr:ri;return N=Z(N),Mn(new Bt({start:G,static:Pe,key:N,quote:N instanceof $n?En.quote:void 0,value:kt(),end:d()}))}if(a("punc","(")){N=Z(N);const Bt=Ht?vi:Bn;var Lr=new Bt({start:G,static:Pe,is_generator:rt,async:Fe,key:N,quote:N instanceof $n?En.quote:void 0,value:kt(rt,Fe),end:d()});return Mn(Lr)}if(W){const Bt=Z(N,Hi),Xr=Bt instanceof Hi?En.quote:void 0,xr=Ht?Ei:fr;if(a("operator","="))return h(),Mn(new xr({start:G,static:Pe,quote:Xr,key:Bt,value:_t(!1),end:d()}));if(a("name")||a("privatename")||a("operator","*")||a("punc",";")||a("punc","}"))return Mn(new xr({start:G,static:Pe,quote:Xr,key:Bt,end:d()}))}}function jt(){if(!a("punc","{"))return null;const N=r.token,G=[];for(h();!a("punc","}");)G.push(X());return h(),new Yn({start:N,body:G,end:d()})}function Pt(){return a("name","assert")&&!B(r.token)?(h(),Un()):null}function fn(){var N=d(),G,W;a("name")&&(G=Cn(Yo)),a("punc",",")&&h(),W=Be(!0),(W||G)&&T("name","from");var Z=r.token;Z.type!=="string"&&C(),h();const oe=Pt();return new Rr({start:N,imported_name:G,imported_names:W,module_name:new dt({start:Z,value:Z.value,quote:Z.quote,end:Z}),assert_clause:oe,end:r.token})}function xi(N){var G=r.token;return T("name","import"),T("punc","."),T("name","meta"),hn(new Ui({start:G,end:d()}),N)}function j(N){function G(rt,Ht){return new rt({name:ut(),quote:Ht||void 0,start:d(),end:d()})}var W=N?To:Ai,Z=N?Yo:Ao,oe=r.token,Fe,Pe;return N?Fe=G(W,oe.quote):Pe=G(Z,oe.quote),a("name","as")?(h(),N?Pe=G(Z):Fe=G(W,r.token.quote)):N?Pe=new Z(Fe):Fe=new W(Pe),new ti({start:oe,foreign_name:Fe,name:Pe,end:d()})}function Ne(N,G){var W=N?To:Ai,Z=N?Yo:Ao,oe=r.token,Fe,Pe,rt=d();return N?Fe=G:Pe=G,Fe=Fe||new Z({start:oe,name:"*",end:rt}),Pe=Pe||new W({start:oe,name:"*",end:rt}),new ti({start:oe,foreign_name:Pe,name:Fe,end:rt})}function Be(N){var G;if(a("punc","{")){for(h(),G=[];!a("punc","}");)G.push(j(N)),a("punc",",")&&h();h()}else if(a("operator","*")){var W;h(),a("name","as")&&(h(),W=N?Cn(Yo):fi(Ai)),G=[Ne(N,W)]}return G}function Me(){var N=r.token,G,W;if(a("keyword","default"))G=!0,h();else if(W=Be(!1))if(a("name","from")){h();var Z=r.token;Z.type!=="string"&&C(),h();const rt=Pt();return new kn({start:N,is_default:G,exported_names:W,module_name:new dt({start:Z,value:Z.value,quote:Z.quote,end:Z}),end:d(),assert_clause:rt})}else return new kn({start:N,is_default:G,exported_names:W,end:d()});var oe,Fe,Pe;return a("punc","{")||G&&(a("keyword","class")||a("keyword","function"))&&cr(c(),"punc")?(Fe=_t(!1),O()):(oe=X(G))instanceof un&&G?C(oe.start):oe instanceof un||oe instanceof en||oe instanceof Kr?Pe=oe:oe instanceof Si||oe instanceof Ft?Fe=oe:oe instanceof je?Fe=oe.body:C(oe.start),new kn({start:N,is_default:G,exported_value:Fe,exported_definition:Pe,end:d(),assert_clause:null})}function ut(){var N=r.token;switch(N.type){case"punc":if(N.value==="["){h();var G=_t(!1);return k("]"),G}else C(N);case"operator":if(N.value==="*")return h(),null;["delete","in","instanceof","new","typeof","void"].includes(N.value)||C(N);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return h(),N.value;default:C(N)}}function on(){var N=r.token;return N.type!="name"&&N.type!="privatename"&&C(),h(),N.value}function ft(N){var G=r.token.value;return new(G=="this"?Vn:G=="super"?Jo:N)({name:String(G),start:r.token,end:r.token})}function vn(N){var G=N.name;b()&&G=="yield"&&S(N.start,"Yield cannot be used as identifier inside generators"),r.input.has_directive("use strict")&&(G=="yield"&&S(N.start,"Unexpected yield identifier inside strict mode"),N instanceof In&&(G=="arguments"||G=="eval")&&S(N.start,"Unexpected "+G+" in strict mode"))}function Cn(N,G){if(!a("name"))return G||v("Name expected"),null;var W=ft(N);return vn(W),h(),W}function fi(N){if(!a("name")){a("string")||v("Name or string expected");var G=r.token,W=new N({start:G,end:G,name:G.value,quote:G.quote});return h(),W}var Z=ft(N);return vn(Z),h(),Z}function Mn(N,G=N.start){var W=G.comments_before;const Z=n.get(G);for(var oe=Z??W.length;--oe>=0;){var Fe=W[oe];if(/[@#]__/.test(Fe.value)){if(/[@#]__PURE__/.test(Fe.value)){aa(N,Bl);break}if(/[@#]__INLINE__/.test(Fe.value)){aa(N,Ul);break}if(/[@#]__NOINLINE__/.test(Fe.value)){aa(N,xo);break}if(/[@#]__KEY__/.test(Fe.value)){aa(N,_a);break}if(/[@#]__MANGLE_PROP__/.test(Fe.value)){aa(N,ya);break}}}return N}var hn=function(N,G,W){var Z=N.start;if(a("punc",".")){h(),a("privatename")&&!r.in_class&&v("Private field must be used in an enclosing class");const Pe=a("privatename")?Hr:Wt;return Mn(hn(new Pe({start:Z,expression:N,optional:!1,property:on(),end:d()}),G,W))}if(a("punc","[")){h();var oe=_t(!0);return k("]"),Mn(hn(new xn({start:Z,expression:N,optional:!1,property:oe,end:d()}),G,W))}if(G&&a("punc","(")){h();var Fe=new Ve({start:Z,expression:N,optional:!1,args:lo(),end:d()});return Mn(Fe),hn(Fe,!0,W)}if(a("punc","?.")){h();let Pe;if(G&&a("punc","(")){h();const rt=new Ve({start:Z,optional:!0,expression:N,args:lo(),end:d()});Mn(rt),Pe=hn(rt,!0,!0)}else if(a("name")||a("privatename")){a("privatename")&&!r.in_class&&v("Private field must be used in an enclosing class");const rt=a("privatename")?Hr:Wt;Pe=Mn(hn(new rt({start:Z,expression:N,optional:!0,property:on(),end:d()}),G,!0))}else if(a("punc","[")){h();const rt=_t(!0);k("]"),Pe=Mn(hn(new xn({start:Z,expression:N,optional:!0,property:rt,end:d()}),G,!0))}return Pe||C(),Pe instanceof gn?Pe:new gn({start:Z,expression:Pe,end:d()})}return a("template_head")?(W&&C(),hn(new jr({start:Z,prefix:N,template_string:me(),end:d()}),G)):N};function lo(){for(var N=[];!a("punc",")");)a("expand","...")?(h(),N.push(new ht({start:d(),expression:_t(!1),end:d()}))):N.push(_t(!1)),a("punc",")")||k(",");return h(),N}var Ci=function(N,G){var W=r.token;if(W.type=="name"&&W.value=="await"&&g())return h(),J();if(a("operator")&&Ay.has(W.value)){h(),U();var Z=fo(We,W,Ci(N));return Z.start=W,Z.end=d(),Z}for(var oe=De(N,G);a("operator")&&nd.has(r.token.value)&&!B(r.token);)oe instanceof Yt&&C(),oe=fo($i,r.token,oe),oe.start=W,oe.end=r.token,h();return oe};function fo(N,G,W){var Z=G.value;switch(Z){case"++":case"--":Xi(W)||v("Invalid use of "+Z+" operator",G.line,G.col,G.pos);break;case"delete":W instanceof xe&&r.input.has_directive("use strict")&&v("Calling delete on expression not allowed in strict mode",W.start.line,W.start.col,W.start.pos);break}return new N({operator:Z,expression:W})}var Ar=function(N,G,W){var Z=a("operator")?r.token.value:null;Z=="in"&&W&&(Z=null),Z=="**"&&N instanceof We&&!cr(N.start,"punc","(")&&N.operator!=="--"&&N.operator!=="++"&&C(N.start);var oe=Z!=null?Dr[Z]:null;if(oe!=null&&(oe>G||Z==="**"&&G===oe)){h();var Fe=Wr(W,oe,!0);return Ar(new ae({start:N.start,left:N,operator:Z,right:Fe,end:Fe.end}),G,W)}return N};function Wr(N,G,W,Z){if(!N&&G<Dr.in&&a("privatename")){r.in_class||v("Private field must be used in an enclosing class");const oe=r.token,Fe=new da({start:oe,name:oe.value,end:oe});h(),T("operator","in");const Pe=new ii({start:oe,key:Fe,value:Wr(N,Dr.in,!0),end:d()});return Ar(Pe,0,N)}else return Ar(Ci(W,Z),G,N)}var Po=function(N){var G=r.token,W=Wr(N,0,!0,!0);if(a("operator","?")){h();var Z=_t(!1);return k(":"),new tt({start:G,condition:W,consequent:Z,alternative:_t(!1,N),end:d()})}return W};function Xi(N){return N instanceof Xe||N instanceof xe}function Fr(N){if(N instanceof Nt)N=new $t({start:N.start,names:N.properties.map(Fr),is_array:!1,end:N.end});else if(N instanceof St){for(var G=[],W=0;W<N.elements.length;W++)N.elements[W]instanceof ht&&(W+1!==N.elements.length&&S(N.elements[W].start,"Spread must the be last element in destructuring array"),N.elements[W].expression=Fr(N.elements[W].expression)),G.push(Fr(N.elements[W]));N=new $t({start:N.start,names:G,is_array:!0,end:N.end})}else N instanceof cn?N.value=Fr(N.value):N instanceof at&&(N=new Nr({start:N.start,left:N.left,operator:"=",right:N.right,end:N.end}));return N}var hi=function(N){U();var G=r.token;if(G.type=="name"&&G.value=="yield"){if(b())return h(),ie();r.input.has_directive("use strict")&&S(r.token,"Unexpected yield identifier inside strict mode")}var W=Po(N),Z=r.token.value;if(a("operator")&&xy.has(Z)){if(Xi(W)||(W=Fr(W))instanceof $t)return h(),new at({start:G,left:W,operator:Z,right:hi(N),logical:Cy.has(Z),end:d()});v("Invalid assignment")}return W},Fo=function(N,G){if(G.length===1)return G[0];if(G.length>1)return new lt({start:N,expressions:G,end:c()});v("Invalid parenthesized expression")},_t=function(N,G){for(var W=r.token,Z=[];Z.push(hi(G)),!(!N||!a("punc",","));)h(),N=!0;return Fo(W,Z)};function or(N){++r.in_loop;var G=N();return--r.in_loop,G}return e.expression?_t(!0):function(){var G=r.token,W=[];for(r.input.push_directives_stack(),e.module&&r.input.add_directive("use strict");!a("eof");)W.push(X());r.input.pop_directives_stack();var Z=d(),oe=e.toplevel;return oe?(oe.body=oe.body.concat(W),oe.end=Z):oe=new zt({start:G,body:W,end:Z}),ua=new Map,oe}()}function he(t,e,n,r,a=Ce){e?e=e.split(/\s+/):e=[];var c=e;a&&a.PROPS&&(e=e.concat(a.PROPS));const h=a&&Object.create(a.prototype);if(h&&(n.prototype=h,n.BASE=a),a&&a.SUBCLASSES.push(n),n.prototype.CTOR=n,n.prototype.constructor=n,n.PROPS=e||null,n.SELF_PROPS=c,n.SUBCLASSES=[],t&&(n.prototype.TYPE=n.TYPE=t),r)for(let d in r)tr(r,d)&&(d[0]==="$"?n[d.substr(1)]=r[d]:n.prototype[d]=r[d]);return n.DEFMETHOD=function(d,v){this.prototype[d]=v},n}const wu=(t,e)=>!!(t.flags&e),Ru=(t,e,n)=>{n?t.flags|=e:t.flags&=~e},rd=1,id=2,od=4,sd=8;class Fl{constructor(e,n,r,a,c,h,d,v,S){this.flags=h?1:0,this.type=e,this.value=n,this.line=r,this.col=a,this.pos=c,this.comments_before=d,this.comments_after=v,this.file=S,Object.seal(this)}[Symbol.for("nodejs.util.inspect.custom")](e,n){const r=h=>n.stylize(h,"special"),a=typeof this.value=="string"&&this.value.includes("`")?"'":"`",c=`${a}${this.value}${a}`;return`${r("[AST_Token")} ${c} at ${this.line}:${this.col}${r("]")}`}get nlb(){return wu(this,rd)}set nlb(e){Ru(this,rd,e)}get quote(){return wu(this,od)?wu(this,id)?"'":'"':""}set quote(e){Ru(this,id,e==="'"),Ru(this,od,!!e)}get template_end(){return wu(this,sd)}set template_end(e){Ru(this,sd,e)}}var Ce=he("Node","start end",function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{_clone:function(t){if(t){var e=this.clone();return e.transform(new mr(function(n){if(n!==e)return n.clone(!0)}))}return new this.CTOR(this)},clone:function(t){return this._clone(t)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(t){return t._visit(this)},walk:function(t){return this._walk(t)},_children_backwards:()=>{}},null),Rn=he("Statement",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class of all statements"}),Fi=he("Debugger",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Represents a debugger statement"},Rn),nr=he("Directive","value quote",function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},Rn),je=he("SimpleStatement","body",function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(t){return t._visit(this,function(){this.body._walk(t)})},_children_backwards(t){t(this.body)}},Rn);function bo(t,e){const n=t.body;for(var r=0,a=n.length;r<a;r++)n[r]._walk(e)}function Ll(t){var e=this._clone(t);return this.block_scope&&(e.block_scope=this.block_scope.clone()),e}var Tn=he("Block","body block_scope",function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(t){return t._visit(this,function(){bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e])},clone:Ll},Rn),Ze=he("BlockStatement",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A block statement"},Tn),wt=he("EmptyStatement",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The empty statement (empty block or simply a semicolon)"},Rn),vo=he("StatementWithBody","body",function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},Rn),Qn=he("LabeledStatement","label",function(e){e&&(this.label=e.label,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(t){return t._visit(this,function(){this.label._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.label)},clone:function(t){var e=this._clone(t);if(t){var n=e.label,r=this.label;e.walk(new Ln(function(a){a instanceof Yr&&a.label&&a.label.thedef===r&&(a.label.thedef=n,n.references.push(a))}))}return e}},vo),Vr=he("IterationStatement","block_scope",function(e){e&&(this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:Ll},vo),Nu=he("DWLoop","condition",function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Vr),yi=he("Do",null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `do` statement",_walk:function(t){return t._visit(this,function(){this.body._walk(t),this.condition._walk(t)})},_children_backwards(t){t(this.condition),t(this.body)}},Nu),Li=he("While",null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `while` statement",_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.condition)}},Nu),An=he("For","init condition step",function(e){e&&(this.init=e.init,this.condition=e.condition,this.step=e.step,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(t){return t._visit(this,function(){this.init&&this.init._walk(t),this.condition&&this.condition._walk(t),this.step&&this.step._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),this.step&&t(this.step),this.condition&&t(this.condition),this.init&&t(this.init)}},Vr),Wn=he("ForIn","init object",function(e){e&&(this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(t){return t._visit(this,function(){this.init._walk(t),this.object._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),this.object&&t(this.object),this.init&&t(this.init)}},Vr),Eo=he("ForOf","await",function(e){e&&(this.await=e.await,this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... of` statement"},Wn),yr=he("With","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.expression)}},vo),qe=he("Scope","variables uses_with uses_eval parent_scope enclosed cname",function(e){e&&(this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var t=this;t.is_block_scope();)t=t.parent_scope;return t},clone:function(t,e){var n=this._clone(t);return t&&this.variables&&e&&!this._block_scope?n.figure_out_scope({},{toplevel:e,parent_scope:this.parent_scope}):(this.variables&&(n.variables=new Map(this.variables)),this.enclosed&&(n.enclosed=this.enclosed.slice()),this._block_scope&&(n._block_scope=this._block_scope)),n},pinned:function(){return this.uses_eval||this.uses_with}},Tn),zt=he("Toplevel","globals",function(e){e&&(this.globals=e.globals,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(t){var e=this.body,n="(function(exports){'$ORIG';})(typeof "+t+"=='undefined'?("+t+"={}):"+t+");";return n=la(n),n=n.transform(new mr(function(r){if(r instanceof nr&&r.value=="$ORIG")return qt.splice(e)})),n},wrap_enclose:function(t){typeof t!="string"&&(t="");var e=t.indexOf(":");e<0&&(e=t.length);var n=this.body;return la(["(function(",t.slice(0,e),'){"$ORIG"})(',t.slice(e+1),")"].join("")).transform(new mr(function(r){if(r instanceof nr&&r.value=="$ORIG")return qt.splice(n)}))}},qe),ht=he("Expansion","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(t){return t._visit(this,function(){this.expression.walk(t)})},_children_backwards(t){t(this.expression)}}),Ge=he("Lambda","name argnames uses_arguments is_generator async",function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var t=[],e=0;e<this.argnames.length;e++)this.argnames[e]instanceof $t?t.push(...this.argnames[e].all_symbols()):t.push(this.argnames[e]);return t},_walk:function(t){return t._visit(this,function(){this.name&&this.name._walk(t);for(var e=this.argnames,n=0,r=e.length;n<r;n++)e[n]._walk(t);bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);for(e=this.argnames.length;e--;)t(this.argnames[e]);this.name&&t(this.name)},is_braceless(){return this.body[0]instanceof an&&this.body[0].value},length_property(){let t=0;for(const e of this.argnames)(e instanceof Pn||e instanceof $t)&&t++;return t}},qe),Mi=he("Accessor",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A setter/getter function. The `name` property is always null."},Ge),Ft=he("Function",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A function expression"},Ge),Yt=he("Arrow",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An ES6 Arrow function ((a) => b)"},Ge),en=he("Defun",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A function definition"},Ge),$t=he("Destructuring","names is_array",function(e){e&&(this.names=e.names,this.is_array=e.is_array,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(t){return t._visit(this,function(){this.names.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.names.length;for(;e--;)t(this.names[e])},all_symbols:function(){var t=[];return Fn(this,e=>{if(e instanceof In&&t.push(e),e instanceof Ge)return!0}),t}}),jr=he("PrefixedTemplateString","template_string prefix",function(e){e&&(this.template_string=e.template_string,this.prefix=e.prefix,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk:function(t){return t._visit(this,function(){this.prefix._walk(t),this.template_string._walk(t)})},_children_backwards(t){t(this.template_string),t(this.prefix)}}),Xn=he("TemplateString","segments",function(e){e&&(this.segments=e.segments,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(t){return t._visit(this,function(){this.segments.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.segments.length;for(;e--;)t(this.segments[e])}}),gi=he("TemplateSegment","value raw",function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),fa=he("Jump",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},Rn),lr=he("Exit","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(t){return t._visit(this,this.value&&function(){this.value._walk(t)})},_children_backwards(t){this.value&&t(this.value)}},fa),an=he("Return",null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `return` statement"},lr),ha=he("Throw",null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `throw` statement"},lr),Yr=he("LoopControl","label",function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(t){return t._visit(this,this.label&&function(){this.label._walk(t)})},_children_backwards(t){this.label&&t(this.label)}},fa),wr=he("Break",null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `break` statement"},Yr),ro=he("Continue",null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `continue` statement"},Yr),gr=he("Await","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),br=he("Yield","expression is_star",function(e){e&&(this.expression=e.expression,this.is_star=e.is_star,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(t){return t._visit(this,this.expression&&function(){this.expression._walk(t)})},_children_backwards(t){this.expression&&t(this.expression)}}),Rt=he("If","condition alternative",function(e){e&&(this.condition=e.condition,this.alternative=e.alternative,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.body._walk(t),this.alternative&&this.alternative._walk(t)})},_children_backwards(t){this.alternative&&t(this.alternative),t(this.body),t(this.condition)}},vo),qn=he("Switch","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);t(this.expression)}},Tn),Bi=he("SwitchBranch",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `switch` branches"},Tn),So=he("Default",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `default` switch branch"},Bi),Jr=he("Case","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);t(this.expression)}},Bi),vr=he("Try","body bcatch bfinally",function(e){e&&(this.body=e.body,this.bcatch=e.bcatch,this.bfinally=e.bfinally,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `try` statement",$propdoc:{body:"[AST_TryBlock] the try block",bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(t){return t._visit(this,function(){this.body._walk(t),this.bcatch&&this.bcatch._walk(t),this.bfinally&&this.bfinally._walk(t)})},_children_backwards(t){this.bfinally&&t(this.bfinally),this.bcatch&&t(this.bcatch),t(this.body)}},Rn),Iu=he("TryBlock",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `try` block of a try statement"},Tn),Zr=he("Catch","argname",function(e){e&&(this.argname=e.argname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(t){return t._visit(this,function(){this.argname&&this.argname._walk(t),bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);this.argname&&t(this.argname)}},Tn),Wo=he("Finally",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},Tn),un=he("Definitions","definitions",function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(t){return t._visit(this,function(){for(var e=this.definitions,n=0,r=e.length;n<r;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.definitions.length;for(;e--;)t(this.definitions[e])}},Rn),Nn=he("Var",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `var` statement"},un),Qr=he("Let",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `let` statement"},un),ei=he("Const",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `const` statement"},un),Lt=he("VarDef","name value",function(e){e&&(this.name=e.name,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(t){return t._visit(this,function(){this.name._walk(t),this.value&&this.value._walk(t)})},_children_backwards(t){this.value&&t(this.value),t(this.name)},declarations_as_names(){return this.name instanceof In?[this]:this.name.all_symbols()}}),ti=he("NameMapping","foreign_name name",function(e){e&&(this.foreign_name=e.foreign_name,this.name=e.name,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(t){return t._visit(this,function(){this.foreign_name._walk(t),this.name._walk(t)})},_children_backwards(t){t(this.name),t(this.foreign_name)}}),Rr=he("Import","imported_name imported_names module_name assert_clause",function(e){e&&(this.imported_name=e.imported_name,this.imported_names=e.imported_names,this.module_name=e.module_name,this.assert_clause=e.assert_clause,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from",assert_clause:"[AST_Object?] The import assertion"},_walk:function(t){return t._visit(this,function(){this.imported_name&&this.imported_name._walk(t),this.imported_names&&this.imported_names.forEach(function(e){e._walk(t)}),this.module_name._walk(t)})},_children_backwards(t){if(t(this.module_name),this.imported_names){let e=this.imported_names.length;for(;e--;)t(this.imported_names[e])}this.imported_name&&t(this.imported_name)}}),Ui=he("ImportMeta",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A reference to import.meta"}),kn=he("Export","exported_definition exported_value is_default exported_names module_name assert_clause",function(e){e&&(this.exported_definition=e.exported_definition,this.exported_value=e.exported_value,this.is_default=e.is_default,this.exported_names=e.exported_names,this.module_name=e.module_name,this.assert_clause=e.assert_clause,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module",assert_clause:"[AST_Object?] The import assertion"},_walk:function(t){return t._visit(this,function(){this.exported_definition&&this.exported_definition._walk(t),this.exported_value&&this.exported_value._walk(t),this.exported_names&&this.exported_names.forEach(function(e){e._walk(t)}),this.module_name&&this.module_name._walk(t)})},_children_backwards(t){if(this.module_name&&t(this.module_name),this.exported_names){let e=this.exported_names.length;for(;e--;)t(this.exported_names[e])}this.exported_value&&t(this.exported_value),this.exported_definition&&t(this.exported_definition)}},Rn),Ve=he("Call","expression args optional _annotations",function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){this._annotations==null&&(this._annotations=0)},_walk(t){return t._visit(this,function(){for(var e=this.args,n=0,r=e.length;n<r;n++)e[n]._walk(t);this.expression._walk(t)})},_children_backwards(t){let e=this.args.length;for(;e--;)t(this.args[e]);t(this.expression)}}),rr=he("New",null,function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Ve),lt=he("Sequence","expressions",function(e){e&&(this.expressions=e.expressions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(t){return t._visit(this,function(){this.expressions.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.expressions.length;for(;e--;)t(this.expressions[e])}}),Xe=he("PropAccess","expression property optional",function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),Wt=he("Dot","quote",function(e){e&&(this.quote=e.quote,this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}},Xe),Hr=he("DotHash","",function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A dotted property access to a private property",_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}},Xe),xn=he("Sub",null,function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(t){return t._visit(this,function(){this.expression._walk(t),this.property._walk(t)})},_children_backwards(t){t(this.property),t(this.expression)}},Xe),gn=he("Chain","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),Xt=he("Unary","operator expression",function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),We=he("UnaryPrefix",null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Xt),$i=he("UnaryPostfix",null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary postfix expression, i.e. `i++`"},Xt),ae=he("Binary","operator left right",function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(t){return t._visit(this,function(){this.left._walk(t),this.right._walk(t)})},_children_backwards(t){t(this.right),t(this.left)}}),tt=he("Conditional","condition consequent alternative",function(e){e&&(this.condition=e.condition,this.consequent=e.consequent,this.alternative=e.alternative,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.consequent._walk(t),this.alternative._walk(t)})},_children_backwards(t){t(this.alternative),t(this.consequent),t(this.condition)}}),at=he("Assign","logical",function(e){e&&(this.logical=e.logical,this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},ae),Nr=he("DefaultAssign",null,function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A default assignment expression like in `(a = 3) => a`"},ae),St=he("Array","elements",function(e){e&&(this.elements=e.elements,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(t){return t._visit(this,function(){for(var e=this.elements,n=0,r=e.length;n<r;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.elements.length;for(;e--;)t(this.elements[e])}}),Nt=he("Object","properties",function(e){e&&(this.properties=e.properties,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(t){return t._visit(this,function(){for(var e=this.properties,n=0,r=e.length;n<r;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.properties.length;for(;e--;)t(this.properties[e])}}),cn=he("ObjectProperty","key value",function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(t){return t._visit(this,function(){this.key instanceof Ce&&this.key._walk(t),this.value._walk(t)})},_children_backwards(t){t(this.value),this.key instanceof Ce&&t(this.key)}}),Jt=he("ObjectKeyVal","quote",function(e){e&&(this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof Ce}},cn),bi=he("PrivateSetter","static",function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key(){return!1}},cn),ni=he("PrivateGetter","static",function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key(){return!1}},cn),ri=he("ObjectSetter","quote static",function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof $n)}},cn),Gr=he("ObjectGetter","quote static",function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof $n)}},cn),Bn=he("ConciseMethod","quote static is_generator async",function(e){e&&(this.quote=e.quote,this.static=e.static,this.is_generator=e.is_generator,this.async=e.async,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof $n)}},cn),vi=he("PrivateMethod","",function(e){e&&(this.quote=e.quote,this.static=e.static,this.is_generator=e.is_generator,this.async=e.async,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A private class method inside a class"},Bn),yt=he("Class","name extends properties",function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(t){return t._visit(this,function(){this.name&&this.name._walk(t),this.extends&&this.extends._walk(t),this.properties.forEach(e=>e._walk(t))})},_children_backwards(t){let e=this.properties.length;for(;e--;)t(this.properties[e]);this.extends&&t(this.extends),this.name&&t(this.name)},visit_nondeferred_class_parts(t){this.extends&&this.extends._walk(t),this.properties.forEach(e=>{if(e instanceof Yn){e._walk(t);return}e.computed_key()&&(t.push(e),e.key._walk(t),t.pop()),(e instanceof Ei||e instanceof fr)&&e.static&&e.value&&(t.push(e),e.value._walk(t),t.pop())})},visit_deferred_class_parts(t){this.properties.forEach(e=>{e instanceof Bn?e.walk(t):e instanceof fr&&!e.static&&e.value&&(t.push(e),e.value._walk(t),t.pop())})},is_self_referential:function(){const t=this.name&&this.name.definition().id;let e=!1,n=!0;return this.visit_nondeferred_class_parts(new Ln((r,a)=>{if(e)return!0;if(r instanceof Vn)return e=n;if(r instanceof xe)return e=r.definition().id===t;if(r instanceof Ge&&!(r instanceof Yt)){const c=n;return n=!1,a(),n=c,!0}})),e}},qe),fr=he("ClassProperty","static quote",function(e){e&&(this.static=e.static,this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(t){return t._visit(this,function(){this.key instanceof Ce&&this.key._walk(t),this.value instanceof Ce&&this.value._walk(t)})},_children_backwards(t){this.value instanceof Ce&&t(this.value),this.key instanceof Ce&&t(this.key)},computed_key(){return!(this.key instanceof Hi)}},cn),Ei=he("ClassPrivateProperty","",function(e){e&&(this.static=e.static,this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class property for a private property"},fr),ii=he("PrivateIn","key value",function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `in` binop when the key is private, eg #x in this",_walk:function(t){return t._visit(this,function(){this.key._walk(t),this.value._walk(t)})},_children_backwards(t){t(this.value),t(this.key)}}),Kr=he("DefClass",null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class definition"},yt),Yn=he("ClassStaticBlock","body block_scope",function(e){this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end},{$documentation:"A block containing statements to be executed in the context of the class",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(t){return t._visit(this,function(){bo(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e])},clone:Ll,computed_key:()=>!1},qe),Si=he("ClassExpression",null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class expression."},yt),pt=he("Symbol","scope name thedef",function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Xo=he("NewTarget",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A reference to new.target"}),In=he("SymbolDeclaration","init",function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},pt),Vi=he("SymbolVar",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol defining a variable"},In),ji=he("SymbolBlockDeclaration",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for block-scoped declaration symbols"},In),io=he("SymbolConst",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A constant declaration"},ji),qo=he("SymbolLet",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A block-scoped `let` declaration"},ji),Pn=he("SymbolFunarg",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a function argument"},Vi),Ti=he("SymbolDefun",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol defining a function"},In),$n=he("SymbolMethod",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol in an object defining a method"},pt),Hi=he("SymbolClassProperty",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol for a class property"},pt),oi=he("SymbolLambda",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a function expression"},In),Pu=he("SymbolDefClass",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ji),Fu=he("SymbolClass",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},In),zr=he("SymbolCatch",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming the exception in catch"},ji),Yo=he("SymbolImport",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol referring to an imported name"},ji),To=he("SymbolImportForeign",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},pt),pa=he("Label","references",function(e){e&&(this.references=e.references,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},pt),xe=he("SymbolRef",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Reference to some symbol (not definition/declaration)"},pt),Ao=he("SymbolExport",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol referring to a name to export"},xe),Ai=he("SymbolExportForeign",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},pt),Ml=he("LabelRef",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Reference to a label symbol"},pt),da=he("SymbolPrivateProperty",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol that refers to a private property"},pt),Vn=he("This",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `this` symbol"},pt),Jo=he("Super",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `super` symbol"},Vn),Tt=he("Constant",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all constants",getValue:function(){return this.value}}),dt=he("String","value quote",function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},Tt),Qe=he("Number","value raw",function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},Tt),si=he("BigInt","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},Tt),hr=he("RegExp","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},Tt),oo=he("Atom",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for atoms"},Tt),pr=he("Null",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `null` atom",value:null},oo),ma=he("NaN",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The impossible value",value:NaN},oo),tn=he("Undefined",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `undefined` value",value:function(){}()},oo),Ir=he("Hole",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A hole in an array",value:function(){}()},oo),so=he("Infinity",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `Infinity` value",value:1/0},oo),Lu=he("Boolean",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for booleans"},oo),Gi=he("False",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `false` atom",value:!1},Lu),Er=he("True",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `true` atom",value:!0},Lu);function Fn(t,e,n=[t]){const r=n.push.bind(n);for(;n.length;){const a=n.pop(),c=e(a,n);if(c){if(c===dr)return!0;continue}a._children_backwards(r)}return!1}function ad(t,e,n){const r=[t],a=r.push.bind(r),c=n?n.slice():[],h=[];let d;const v={parent:(S=0)=>S===-1?d:n&&S>=c.length?(S-=c.length,n[n.length-(S+1)]):c[c.length-(1+S)]};for(;r.length;){for(d=r.pop();h.length&&r.length==h[h.length-1];)c.pop(),h.pop();const S=e(d,v);if(S){if(S===dr)return!0;continue}const C=r.length;d._children_backwards(a),r.length>C&&(c.push(d),h.push(C-1))}return!1}const dr=Symbol("abort walk");class Ln{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,n){this.push(e);var r=this.visit(e,n?function(){n.call(e)}:_r);return!r&&n&&n.call(e),this.pop(),r}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Ge?this.directives=Object.create(this.directives):e instanceof nr&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof yt&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Ge||e instanceof yt)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var n=this.stack,r=n.length;--r>=0;){var a=n[r];if(a instanceof e)return a}}find_scope(){for(var e=this.stack,n=e.length;--n>=0;){const r=e[n];if(r instanceof zt||r instanceof Ge)return r;if(r.block_scope)return r.block_scope}}has_directive(e){var n=this.directives[e];if(n)return n;var r=this.stack[this.stack.length-1];if(r instanceof qe&&r.body)for(var a=0;a<r.body.length;++a){var c=r.body[a];if(!(c instanceof nr))break;if(c.value==e)return c}}loopcontrol_target(e){var n=this.stack;if(e.label)for(var r=n.length;--r>=0;){var a=n[r];if(a instanceof Qn&&a.label.name==e.label.name)return a.body}else for(var r=n.length;--r>=0;){var a=n[r];if(a instanceof Vr||e instanceof wr&&a instanceof qn)return a}}}class mr extends Ln{constructor(e,n){super(),this.before=e,this.after=n}}const Bl=1,Ul=2,xo=4,_a=8,ya=16;function mt(t,e){t.DEFMETHOD("transform",function(n,r){let a;if(n.push(this),n.before&&(a=n.before(this,e,r)),a===void 0&&(a=this,e(a,n),n.after)){const c=n.after(a,r);c!==void 0&&(a=c)}return n.pop(),a})}mt(Ce,_r),mt(Qn,function(t,e){t.label=t.label.transform(e),t.body=t.body.transform(e)}),mt(je,function(t,e){t.body=t.body.transform(e)}),mt(Tn,function(t,e){t.body=qt(t.body,e)}),mt(yi,function(t,e){t.body=t.body.transform(e),t.condition=t.condition.transform(e)}),mt(Li,function(t,e){t.condition=t.condition.transform(e),t.body=t.body.transform(e)}),mt(An,function(t,e){t.init&&(t.init=t.init.transform(e)),t.condition&&(t.condition=t.condition.transform(e)),t.step&&(t.step=t.step.transform(e)),t.body=t.body.transform(e)}),mt(Wn,function(t,e){t.init=t.init.transform(e),t.object=t.object.transform(e),t.body=t.body.transform(e)}),mt(yr,function(t,e){t.expression=t.expression.transform(e),t.body=t.body.transform(e)}),mt(lr,function(t,e){t.value&&(t.value=t.value.transform(e))}),mt(Yr,function(t,e){t.label&&(t.label=t.label.transform(e))}),mt(Rt,function(t,e){t.condition=t.condition.transform(e),t.body=t.body.transform(e),t.alternative&&(t.alternative=t.alternative.transform(e))}),mt(qn,function(t,e){t.expression=t.expression.transform(e),t.body=qt(t.body,e)}),mt(Jr,function(t,e){t.expression=t.expression.transform(e),t.body=qt(t.body,e)}),mt(vr,function(t,e){t.body=t.body.transform(e),t.bcatch&&(t.bcatch=t.bcatch.transform(e)),t.bfinally&&(t.bfinally=t.bfinally.transform(e))}),mt(Zr,function(t,e){t.argname&&(t.argname=t.argname.transform(e)),t.body=qt(t.body,e)}),mt(un,function(t,e){t.definitions=qt(t.definitions,e)}),mt(Lt,function(t,e){t.name=t.name.transform(e),t.value&&(t.value=t.value.transform(e))}),mt($t,function(t,e){t.names=qt(t.names,e)}),mt(Ge,function(t,e){t.name&&(t.name=t.name.transform(e)),t.argnames=qt(t.argnames,e,!1),t.body instanceof Ce?t.body=t.body.transform(e):t.body=qt(t.body,e)}),mt(Ve,function(t,e){t.expression=t.expression.transform(e),t.args=qt(t.args,e,!1)}),mt(lt,function(t,e){const n=qt(t.expressions,e);t.expressions=n.length?n:[new Qe({value:0})]}),mt(Xe,function(t,e){t.expression=t.expression.transform(e)}),mt(xn,function(t,e){t.expression=t.expression.transform(e),t.property=t.property.transform(e)}),mt(gn,function(t,e){t.expression=t.expression.transform(e)}),mt(br,function(t,e){t.expression&&(t.expression=t.expression.transform(e))}),mt(gr,function(t,e){t.expression=t.expression.transform(e)}),mt(Xt,function(t,e){t.expression=t.expression.transform(e)}),mt(ae,function(t,e){t.left=t.left.transform(e),t.right=t.right.transform(e)}),mt(ii,function(t,e){t.key=t.key.transform(e),t.value=t.value.transform(e)}),mt(tt,function(t,e){t.condition=t.condition.transform(e),t.consequent=t.consequent.transform(e),t.alternative=t.alternative.transform(e)}),mt(St,function(t,e){t.elements=qt(t.elements,e)}),mt(Nt,function(t,e){t.properties=qt(t.properties,e)}),mt(cn,function(t,e){t.key instanceof Ce&&(t.key=t.key.transform(e)),t.value&&(t.value=t.value.transform(e))}),mt(yt,function(t,e){t.name&&(t.name=t.name.transform(e)),t.extends&&(t.extends=t.extends.transform(e)),t.properties=qt(t.properties,e)}),mt(Yn,function(t,e){t.body=qt(t.body,e)}),mt(ht,function(t,e){t.expression=t.expression.transform(e)}),mt(ti,function(t,e){t.foreign_name=t.foreign_name.transform(e),t.name=t.name.transform(e)}),mt(Rr,function(t,e){t.imported_name&&(t.imported_name=t.imported_name.transform(e)),t.imported_names&&qt(t.imported_names,e),t.module_name=t.module_name.transform(e)}),mt(kn,function(t,e){t.exported_definition&&(t.exported_definition=t.exported_definition.transform(e)),t.exported_value&&(t.exported_value=t.exported_value.transform(e)),t.exported_names&&qt(t.exported_names,e),t.module_name&&(t.module_name=t.module_name.transform(e))}),mt(Xn,function(t,e){t.segments=qt(t.segments,e)}),mt(jr,function(t,e){t.prefix=t.prefix.transform(e),t.template_string=t.template_string.transform(e)}),function(){var t=function(b){for(var y=0;y<b.length;y++)if(b[y]instanceof Rn&&b[y].body instanceof dt)b[y]=new nr({start:b[y].start,end:b[y].end,value:b[y].body.value});else return b;return b};const e=b=>b&&b.length>0?new Nt({start:a(b),end:c(b),properties:b.map(y=>new Jt({start:a(y),end:c(y),key:y.key.name||y.key.value,value:d(y.value)}))}):null;var n={Program:function(b){return new zt({start:a(b),end:c(b),body:t(b.body.map(d))})},ArrayPattern:function(b){return new $t({start:a(b),end:c(b),names:b.elements.map(function(y){return y===null?new Ir:d(y)}),is_array:!0})},ObjectPattern:function(b){return new $t({start:a(b),end:c(b),names:b.properties.map(d),is_array:!1})},AssignmentPattern:function(b){return new Nr({start:a(b),end:c(b),left:d(b.left),operator:"=",right:d(b.right)})},SpreadElement:function(b){return new ht({start:a(b),end:c(b),expression:d(b.argument)})},RestElement:function(b){return new ht({start:a(b),end:c(b),expression:d(b.argument)})},TemplateElement:function(b){return new gi({start:a(b),end:c(b),value:b.value.cooked,raw:b.value.raw})},TemplateLiteral:function(b){for(var y=[],g=0;g<b.quasis.length;g++)y.push(d(b.quasis[g])),b.expressions[g]&&y.push(d(b.expressions[g]));return new Xn({start:a(b),end:c(b),segments:y})},TaggedTemplateExpression:function(b){return new jr({start:a(b),end:c(b),template_string:d(b.quasi),prefix:d(b.tag)})},FunctionDeclaration:function(b){return new en({start:a(b),end:c(b),name:d(b.id),argnames:b.params.map(d),is_generator:b.generator,async:b.async,body:t(d(b.body).body)})},FunctionExpression:function(b){return new Ft({start:a(b),end:c(b),name:d(b.id),argnames:b.params.map(d),is_generator:b.generator,async:b.async,body:t(d(b.body).body)})},ArrowFunctionExpression:function(b){const y=b.body.type==="BlockStatement"?d(b.body).body:[P(an,{},{value:d(b.body)})];return new Yt({start:a(b),end:c(b),argnames:b.params.map(d),body:y,async:b.async})},ExpressionStatement:function(b){return new je({start:a(b),end:c(b),body:d(b.expression)})},TryStatement:function(b){var y=b.handlers||[b.handler];if(y.length>1||b.guardedHandlers&&b.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new vr({start:a(b),end:c(b),body:new Iu(d(b.block)),bcatch:d(y[0]),bfinally:b.finalizer?new Wo(d(b.finalizer)):null})},Property:function(b){var y=b.key,g={start:a(y||b.value),end:c(b.value),key:y.type=="Identifier"?y.name:y.value,value:d(b.value)};if(b.computed&&(g.key=d(b.key)),b.method)return g.is_generator=b.value.generator,g.async=b.value.async,b.computed?g.key=d(b.key):g.key=new $n({name:g.key}),new Bn(g);if(b.kind=="init")return y.type!="Identifier"&&y.type!="Literal"&&(g.key=d(y)),new Jt(g);if((typeof g.key=="string"||typeof g.key=="number")&&(g.key=new $n({name:g.key})),g.value=new Mi(g.value),b.kind=="get")return new Gr(g);if(b.kind=="set")return new ri(g);if(b.kind=="method")return g.async=b.value.async,g.is_generator=b.value.generator,g.quote=b.computed?'"':null,new Bn(g)},MethodDefinition:function(b){const y=b.key.type==="PrivateIdentifier",g=b.computed?d(b.key):new $n({name:b.key.name||b.key.value});var O={start:a(b),end:c(b),key:g,value:d(b.value),static:b.static};return b.kind=="get"?new(y?ni:Gr)(O):b.kind=="set"?new(y?bi:ri)(O):(O.is_generator=b.value.generator,O.async=b.value.async,new(y?vi:Bn)(O))},FieldDefinition:function(b){let y;if(b.computed)y=d(b.key);else{if(b.key.type!=="Identifier")throw new Error("Non-Identifier key in FieldDefinition");y=d(b.key)}return new fr({start:a(b),end:c(b),key:y,value:d(b.value),static:b.static})},PropertyDefinition:function(b){let y;if(b.computed)y=d(b.key);else{if(b.key.type==="PrivateIdentifier")return new Ei({start:a(b),end:c(b),key:d(b.key),value:d(b.value),static:b.static});if(b.key.type!=="Identifier")throw new Error("Non-Identifier key in PropertyDefinition");y=d(b.key)}return new fr({start:a(b),end:c(b),key:y,value:d(b.value),static:b.static})},PrivateIdentifier:function(b){return new da({start:a(b),end:c(b),name:b.name})},StaticBlock:function(b){return new Yn({start:a(b),end:c(b),body:b.body.map(d)})},ArrayExpression:function(b){return new St({start:a(b),end:c(b),elements:b.elements.map(function(y){return y===null?new Ir:d(y)})})},ObjectExpression:function(b){return new Nt({start:a(b),end:c(b),properties:b.properties.map(function(y){return y.type==="SpreadElement"||(y.type="Property"),d(y)})})},SequenceExpression:function(b){return new lt({start:a(b),end:c(b),expressions:b.expressions.map(d)})},MemberExpression:function(b){return b.property.type==="PrivateIdentifier"?new Hr({start:a(b),end:c(b),property:b.property.name,expression:d(b.object),optional:b.optional||!1}):new(b.computed?xn:Wt)({start:a(b),end:c(b),property:b.computed?d(b.property):b.property.name,expression:d(b.object),optional:b.optional||!1})},ChainExpression:function(b){return new gn({start:a(b),end:c(b),expression:d(b.expression)})},SwitchCase:function(b){return new(b.test?Jr:So)({start:a(b),end:c(b),expression:d(b.test),body:b.consequent.map(d)})},VariableDeclaration:function(b){return new(b.kind==="const"?ei:b.kind==="let"?Qr:Nn)({start:a(b),end:c(b),definitions:b.declarations.map(d)})},ImportDeclaration:function(b){var y=null,g=null;return b.specifiers.forEach(function(O){O.type==="ImportSpecifier"||O.type==="ImportNamespaceSpecifier"?(g||(g=[]),g.push(d(O))):O.type==="ImportDefaultSpecifier"&&(y=d(O))}),new Rr({start:a(b),end:c(b),imported_name:y,imported_names:g,module_name:d(b.source),assert_clause:e(b.assertions)})},ImportSpecifier:function(b){return new ti({start:a(b),end:c(b),foreign_name:d(b.imported),name:d(b.local)})},ImportDefaultSpecifier:function(b){return d(b.local)},ImportNamespaceSpecifier:function(b){return new ti({start:a(b),end:c(b),foreign_name:new To({name:"*"}),name:d(b.local)})},ExportAllDeclaration:function(b){var y=b.exported==null?new Ai({name:"*"}):d(b.exported);return new kn({start:a(b),end:c(b),exported_names:[new ti({name:new Ai({name:"*"}),foreign_name:y})],module_name:d(b.source),assert_clause:e(b.assertions)})},ExportNamedDeclaration:function(b){return new kn({start:a(b),end:c(b),exported_definition:d(b.declaration),exported_names:b.specifiers&&b.specifiers.length?b.specifiers.map(d):null,module_name:d(b.source),assert_clause:e(b.assertions)})},ExportDefaultDeclaration:function(b){return new kn({start:a(b),end:c(b),exported_value:d(b.declaration),is_default:!0})},ExportSpecifier:function(b){return new ti({foreign_name:d(b.exported),name:d(b.local)})},Literal:function(b){var y=b.value,g={start:a(b),end:c(b)},O=b.regex;if(O&&O.pattern)return g.value={source:O.pattern,flags:O.flags},new hr(g);if(O){const w=b.raw||y,U=w.match(/^\/(.*)\/(\w*)$/);if(!U)throw new Error("Invalid regex source "+w);const[X,ee,z]=U;return g.value={source:ee,flags:z},new hr(g)}if(y===null)return new pr(g);switch(typeof y){case"string":g.quote='"';var R=h[h.length-2];return R.type=="ImportSpecifier"?(g.name=y,new To(g)):R.type=="ExportSpecifier"?(g.name=y,b==R.exported?new Ai(g):new Ao(g)):R.type=="ExportAllDeclaration"&&b==R.exported?(g.name=y,new Ai(g)):(g.value=y,new dt(g));case"number":return g.value=y,g.raw=b.raw||y.toString(),new Qe(g);case"boolean":return new(y?Er:Gi)(g)}},MetaProperty:function(b){if(b.meta.name==="new"&&b.property.name==="target")return new Xo({start:a(b),end:c(b)});if(b.meta.name==="import"&&b.property.name==="meta")return new Ui({start:a(b),end:c(b)})},Identifier:function(b){var y=h[h.length-2];return new(y.type=="LabeledStatement"?pa:y.type=="VariableDeclarator"&&y.id===b?y.kind=="const"?io:y.kind=="let"?qo:Vi:/Import.*Specifier/.test(y.type)?y.local===b?Yo:To:y.type=="ExportSpecifier"?y.local===b?Ao:Ai:y.type=="FunctionExpression"?y.id===b?oi:Pn:y.type=="FunctionDeclaration"?y.id===b?Ti:Pn:y.type=="ArrowFunctionExpression"?y.params.includes(b)?Pn:xe:y.type=="ClassExpression"?y.id===b?Fu:xe:y.type=="Property"?y.key===b&&y.computed||y.value===b?xe:$n:y.type=="PropertyDefinition"||y.type==="FieldDefinition"?y.key===b&&y.computed||y.value===b?xe:Hi:y.type=="ClassDeclaration"?y.id===b?Pu:xe:y.type=="MethodDefinition"?y.computed?xe:$n:y.type=="CatchClause"?zr:y.type=="BreakStatement"||y.type=="ContinueStatement"?Ml:xe)({start:a(b),end:c(b),name:b.name})},BigIntLiteral(b){return new si({start:a(b),end:c(b),value:b.value})},EmptyStatement:function(b){return new wt({start:a(b),end:c(b)})},BlockStatement:function(b){return new Ze({start:a(b),end:c(b),body:b.body.map(d)})},IfStatement:function(b){return new Rt({start:a(b),end:c(b),condition:d(b.test),body:d(b.consequent),alternative:d(b.alternate)})},LabeledStatement:function(b){return new Qn({start:a(b),end:c(b),label:d(b.label),body:d(b.body)})},BreakStatement:function(b){return new wr({start:a(b),end:c(b),label:d(b.label)})},ContinueStatement:function(b){return new ro({start:a(b),end:c(b),label:d(b.label)})},WithStatement:function(b){return new yr({start:a(b),end:c(b),expression:d(b.object),body:d(b.body)})},SwitchStatement:function(b){return new qn({start:a(b),end:c(b),expression:d(b.discriminant),body:b.cases.map(d)})},ReturnStatement:function(b){return new an({start:a(b),end:c(b),value:d(b.argument)})},ThrowStatement:function(b){return new ha({start:a(b),end:c(b),value:d(b.argument)})},WhileStatement:function(b){return new Li({start:a(b),end:c(b),condition:d(b.test),body:d(b.body)})},DoWhileStatement:function(b){return new yi({start:a(b),end:c(b),condition:d(b.test),body:d(b.body)})},ForStatement:function(b){return new An({start:a(b),end:c(b),init:d(b.init),condition:d(b.test),step:d(b.update),body:d(b.body)})},ForInStatement:function(b){return new Wn({start:a(b),end:c(b),init:d(b.left),object:d(b.right),body:d(b.body)})},ForOfStatement:function(b){return new Eo({start:a(b),end:c(b),init:d(b.left),object:d(b.right),body:d(b.body),await:b.await})},AwaitExpression:function(b){return new gr({start:a(b),end:c(b),expression:d(b.argument)})},YieldExpression:function(b){return new br({start:a(b),end:c(b),expression:d(b.argument),is_star:b.delegate})},DebuggerStatement:function(b){return new Fi({start:a(b),end:c(b)})},VariableDeclarator:function(b){return new Lt({start:a(b),end:c(b),name:d(b.id),value:d(b.init)})},CatchClause:function(b){return new Zr({start:a(b),end:c(b),argname:d(b.param),body:d(b.body).body})},ThisExpression:function(b){return new Vn({start:a(b),end:c(b)})},Super:function(b){return new Jo({start:a(b),end:c(b)})},BinaryExpression:function(b){return b.left.type==="PrivateIdentifier"?new ii({start:a(b),end:c(b),key:new da({start:a(b.left),end:c(b.left),name:b.left.name}),value:d(b.right)}):new ae({start:a(b),end:c(b),operator:b.operator,left:d(b.left),right:d(b.right)})},LogicalExpression:function(b){return new ae({start:a(b),end:c(b),operator:b.operator,left:d(b.left),right:d(b.right)})},AssignmentExpression:function(b){return new at({start:a(b),end:c(b),operator:b.operator,left:d(b.left),right:d(b.right)})},ConditionalExpression:function(b){return new tt({start:a(b),end:c(b),condition:d(b.test),consequent:d(b.consequent),alternative:d(b.alternate)})},NewExpression:function(b){return new rr({start:a(b),end:c(b),expression:d(b.callee),args:b.arguments.map(d)})},CallExpression:function(b){return new Ve({start:a(b),end:c(b),expression:d(b.callee),optional:b.optional,args:b.arguments.map(d)})}};n.UpdateExpression=n.UnaryExpression=function(y){var g="prefix"in y?y.prefix:y.type=="UnaryExpression";return new(g?We:$i)({start:a(y),end:c(y),operator:y.operator,expression:d(y.argument)})},n.ClassDeclaration=n.ClassExpression=function(y){return new(y.type==="ClassDeclaration"?Kr:Si)({start:a(y),end:c(y),name:d(y.id),extends:d(y.superClass),properties:y.body.body.map(d)})},S(wt,function(){return{type:"EmptyStatement"}}),S(Ze,function(y){return{type:"BlockStatement",body:y.body.map(T)}}),S(Rt,function(y){return{type:"IfStatement",test:T(y.condition),consequent:T(y.body),alternate:T(y.alternative)}}),S(Qn,function(y){return{type:"LabeledStatement",label:T(y.label),body:T(y.body)}}),S(wr,function(y){return{type:"BreakStatement",label:T(y.label)}}),S(ro,function(y){return{type:"ContinueStatement",label:T(y.label)}}),S(yr,function(y){return{type:"WithStatement",object:T(y.expression),body:T(y.body)}}),S(qn,function(y){return{type:"SwitchStatement",discriminant:T(y.expression),cases:y.body.map(T)}}),S(an,function(y){return{type:"ReturnStatement",argument:T(y.value)}}),S(ha,function(y){return{type:"ThrowStatement",argument:T(y.value)}}),S(Li,function(y){return{type:"WhileStatement",test:T(y.condition),body:T(y.body)}}),S(yi,function(y){return{type:"DoWhileStatement",test:T(y.condition),body:T(y.body)}}),S(An,function(y){return{type:"ForStatement",init:T(y.init),test:T(y.condition),update:T(y.step),body:T(y.body)}}),S(Wn,function(y){return{type:"ForInStatement",left:T(y.init),right:T(y.object),body:T(y.body)}}),S(Eo,function(y){return{type:"ForOfStatement",left:T(y.init),right:T(y.object),body:T(y.body),await:y.await}}),S(gr,function(y){return{type:"AwaitExpression",argument:T(y.expression)}}),S(br,function(y){return{type:"YieldExpression",argument:T(y.expression),delegate:y.is_star}}),S(Fi,function(){return{type:"DebuggerStatement"}}),S(Lt,function(y){return{type:"VariableDeclarator",id:T(y.name),init:T(y.value)}}),S(Zr,function(y){return{type:"CatchClause",param:T(y.argname),body:B(y)}}),S(Vn,function(){return{type:"ThisExpression"}}),S(Jo,function(){return{type:"Super"}}),S(ae,function(y){return{type:"BinaryExpression",operator:y.operator,left:T(y.left),right:T(y.right)}}),S(ae,function(y){return{type:"LogicalExpression",operator:y.operator,left:T(y.left),right:T(y.right)}}),S(at,function(y){return{type:"AssignmentExpression",operator:y.operator,left:T(y.left),right:T(y.right)}}),S(tt,function(y){return{type:"ConditionalExpression",test:T(y.condition),consequent:T(y.consequent),alternate:T(y.alternative)}}),S(rr,function(y){return{type:"NewExpression",callee:T(y.expression),arguments:y.args.map(T)}}),S(Ve,function(y){return{type:"CallExpression",callee:T(y.expression),optional:y.optional,arguments:y.args.map(T)}}),S(zt,function(y){return L("Program",y)}),S(ht,function(y){return{type:k()?"RestElement":"SpreadElement",argument:T(y.expression)}}),S(jr,function(y){return{type:"TaggedTemplateExpression",tag:T(y.prefix),quasi:T(y.template_string)}}),S(Xn,function(y){for(var g=[],O=[],R=0;R<y.segments.length;R++)R%2!==0?O.push(T(y.segments[R])):g.push({type:"TemplateElement",value:{raw:y.segments[R].raw,cooked:y.segments[R].value},tail:R===y.segments.length-1});return{type:"TemplateLiteral",quasis:g,expressions:O}}),S(en,function(y){return{type:"FunctionDeclaration",id:T(y.name),params:y.argnames.map(T),generator:y.is_generator,async:y.async,body:L("BlockStatement",y)}}),S(Ft,function(y,g){var O=g.is_generator!==void 0?g.is_generator:y.is_generator;return{type:"FunctionExpression",id:T(y.name),params:y.argnames.map(T),generator:O,async:y.async,body:L("BlockStatement",y)}}),S(Yt,function(y){var g={type:"BlockStatement",body:y.body.map(T)};return{type:"ArrowFunctionExpression",params:y.argnames.map(T),async:y.async,body:g}}),S($t,function(y){return y.is_array?{type:"ArrayPattern",elements:y.names.map(T)}:{type:"ObjectPattern",properties:y.names.map(T)}}),S(nr,function(y){return{type:"ExpressionStatement",expression:{type:"Literal",value:y.value,raw:y.print_to_string()},directive:y.value}}),S(je,function(y){return{type:"ExpressionStatement",expression:T(y.body)}}),S(Bi,function(y){return{type:"SwitchCase",test:T(y.expression),consequent:y.body.map(T)}}),S(vr,function(y){return{type:"TryStatement",block:B(y.body),handler:T(y.bcatch),guardedHandlers:[],finalizer:T(y.bfinally)}}),S(Zr,function(y){return{type:"CatchClause",param:T(y.argname),guard:null,body:B(y)}}),S(un,function(y){return{type:"VariableDeclaration",kind:y instanceof ei?"const":y instanceof Qr?"let":"var",declarations:y.definitions.map(T)}});const r=b=>{const y=[];if(b)for(const{key:g,value:O}of b.properties){const R=ku(g)?{type:"Identifier",name:g}:{type:"Literal",value:g,raw:JSON.stringify(g)};y.push({type:"ImportAttribute",key:R,value:T(O)})}return y};S(kn,function(y){if(y.exported_names){var g=y.exported_names[0],O=g.name;if(O.name==="*"&&!O.quote){var R=g.foreign_name,w=R.name==="*"&&!R.quote?null:T(R);return{type:"ExportAllDeclaration",source:T(y.module_name),exported:w,assertions:r(y.assert_clause)}}return{type:"ExportNamedDeclaration",specifiers:y.exported_names.map(function(U){return{type:"ExportSpecifier",exported:T(U.foreign_name),local:T(U.name)}}),declaration:T(y.exported_definition),source:T(y.module_name),assertions:r(y.assert_clause)}}return{type:y.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:T(y.exported_value||y.exported_definition)}}),S(Rr,function(y){var g=[];if(y.imported_name&&g.push({type:"ImportDefaultSpecifier",local:T(y.imported_name)}),y.imported_names){var O=y.imported_names[0].foreign_name;O.name==="*"&&!O.quote?g.push({type:"ImportNamespaceSpecifier",local:T(y.imported_names[0].name)}):y.imported_names.forEach(function(R){g.push({type:"ImportSpecifier",local:T(R.name),imported:T(R.foreign_name)})})}return{type:"ImportDeclaration",specifiers:g,source:T(y.module_name),assertions:r(y.assert_clause)}}),S(Ui,function(){return{type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}}),S(lt,function(y){return{type:"SequenceExpression",expressions:y.expressions.map(T)}}),S(Hr,function(y){return{type:"MemberExpression",object:T(y.expression),computed:!1,property:{type:"PrivateIdentifier",name:y.property},optional:y.optional}}),S(Xe,function(y){var g=y instanceof xn;return{type:"MemberExpression",object:T(y.expression),computed:g,property:g?T(y.property):{type:"Identifier",name:y.property},optional:y.optional}}),S(gn,function(y){return{type:"ChainExpression",expression:T(y.expression)}}),S(Xt,function(y){return{type:y.operator=="++"||y.operator=="--"?"UpdateExpression":"UnaryExpression",operator:y.operator,prefix:y instanceof We,argument:T(y.expression)}}),S(ae,function(y){return y.operator=="="&&k()?{type:"AssignmentPattern",left:T(y.left),right:T(y.right)}:{type:y.operator=="&&"||y.operator=="||"||y.operator==="??"?"LogicalExpression":"BinaryExpression",left:T(y.left),operator:y.operator,right:T(y.right)}}),S(ii,function(y){return{type:"BinaryExpression",left:{type:"PrivateIdentifier",name:y.key.name},operator:"in",right:T(y.value)}}),S(St,function(y){return{type:"ArrayExpression",elements:y.elements.map(T)}}),S(Nt,function(y){return{type:"ObjectExpression",properties:y.properties.map(T)}}),S(cn,function(y,g){var O=y.key instanceof Ce?T(y.key):{type:"Identifier",value:y.key};typeof y.key=="number"&&(O={type:"Literal",value:Number(y.key)}),typeof y.key=="string"&&(O={type:"Identifier",name:y.key});var R,w=typeof y.key=="string"||typeof y.key=="number",U=w?!1:!(y.key instanceof pt)||y.key instanceof xe;return y instanceof Jt?(R="init",U=!w):y instanceof Gr?R="get":y instanceof ri&&(R="set"),y instanceof ni||y instanceof bi?{type:"MethodDefinition",computed:!1,kind:y instanceof ni?"get":"set",static:y.static,key:{type:"PrivateIdentifier",name:y.key.name},value:T(y.value)}:y instanceof Ei?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:y.key.name},value:T(y.value),computed:!1,static:y.static}:y instanceof fr?{type:"PropertyDefinition",key:O,value:T(y.value),computed:U,static:y.static}:g instanceof yt?{type:"MethodDefinition",computed:U,kind:R,static:y.static,key:T(y.key),value:T(y.value)}:{type:"Property",computed:U,kind:R,key:O,value:T(y.value)}}),S(Bn,function(y,g){if(g instanceof Nt)return{type:"Property",computed:!(y.key instanceof pt)||y.key instanceof xe,kind:"init",method:!0,shorthand:!1,key:T(y.key),value:T(y.value)};const O=y instanceof vi?{type:"PrivateIdentifier",name:y.key.name}:T(y.key);return{type:"MethodDefinition",kind:y.key==="constructor"?"constructor":"method",key:O,value:T(y.value),computed:!(y.key instanceof pt)||y.key instanceof xe,static:y.static}}),S(yt,function(y){var g=y instanceof Si?"ClassExpression":"ClassDeclaration";return{type:g,superClass:T(y.extends),id:y.name?T(y.name):null,body:{type:"ClassBody",body:y.properties.map(T)}}}),S(Yn,function(y){return{type:"StaticBlock",body:y.body.map(T)}}),S(Xo,function(){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}}),S(pt,function(y,g){if(y instanceof $n&&g.quote||(y instanceof To||y instanceof Ai||y instanceof Ao)&&y.quote)return{type:"Literal",value:y.name};var O=y.definition();return{type:"Identifier",name:O?O.mangled_name||O.name:y.name}}),S(hr,function(y){const g=y.value.source,O=y.value.flags;return{type:"Literal",value:null,raw:y.print_to_string(),regex:{pattern:g,flags:O}}}),S(Tt,function(y){var g=y.value;return{type:"Literal",value:g,raw:y.raw||y.print_to_string()}}),S(oo,function(y){return{type:"Identifier",name:String(y.value)}}),S(si,b=>({type:"BigIntLiteral",value:b.value})),Lu.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast),pr.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast),Ir.DEFMETHOD("to_mozilla_ast",function(){return null}),Tn.DEFMETHOD("to_mozilla_ast",Ze.prototype.to_mozilla_ast),Ge.DEFMETHOD("to_mozilla_ast",Ft.prototype.to_mozilla_ast);function a(b){var y=b.loc,g=y&&y.start,O=b.range;return new Fl("","",g&&g.line||0,g&&g.column||0,O?O[0]:b.start,!1,[],[],y&&y.source)}function c(b){var y=b.loc,g=y&&y.end,O=b.range;return new Fl("","",g&&g.line||0,g&&g.column||0,O?O[0]:b.end,!1,[],[],y&&y.source)}var h=null;function d(b){h.push(b);var y=b!=null?n[b.type](b):null;return h.pop(),y}Ce.from_mozilla_ast=function(b){var y=h;h=[];var g=d(b);return h=y,g};function v(b,y){var g=b.start,O=b.end;return g&&O&&(g.pos!=null&&O.endpos!=null&&(y.range=[g.pos,O.endpos]),g.line&&(y.loc={start:{line:g.line,column:g.col},end:O.endline?{line:O.endline,column:O.endcol}:null},g.file&&(y.loc.source=g.file))),y}function S(b,y){b.DEFMETHOD("to_mozilla_ast",function(g){return v(this,y(this,g))})}var C=null;function T(b){C===null&&(C=[]),C.push(b);var y=b!=null?b.to_mozilla_ast(C[C.length-2]):null;return C.pop(),C.length===0&&(C=null),y}function k(){for(var b=C.length;b--;)if(C[b]instanceof $t)return!0;return!1}function B(b){return{type:"BlockStatement",body:b.body.map(T)}}function L(b,y){var g=y.body.map(T);return y.body[0]instanceof je&&y.body[0].body instanceof dt&&g.unshift(T(new wt(y.body[0]))),{type:b,body:g}}}();function ai(t){let e=t.parent(-1);for(let n=0,r;r=t.parent(n);n++){if(r instanceof Rn&&r.body===e)return!0;if(r instanceof lt&&r.expressions[0]===e||r.TYPE==="Call"&&r.expression===e||r instanceof jr&&r.prefix===e||r instanceof Wt&&r.expression===e||r instanceof xn&&r.expression===e||r instanceof gn&&r.expression===e||r instanceof tt&&r.condition===e||r instanceof ae&&r.left===e||r instanceof $i&&r.expression===e)e=r;else return!1}}function Ki(t){return t instanceof Nt?!0:t instanceof lt?Ki(t.expressions[0]):t.TYPE==="Call"?Ki(t.expression):t instanceof jr?Ki(t.prefix):t instanceof Wt||t instanceof xn||t instanceof gn?Ki(t.expression):t instanceof tt?Ki(t.condition):t instanceof ae?Ki(t.left):t instanceof $i?Ki(t.expression):!1}const ud=10,cd=32,ld=/[@#]__(PURE|INLINE|NOINLINE)__/;function ky(t){return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@copyright|@lic|@cc_on|^\**!/i.test(t.value)}const Dy=8*1e3;class wy{constructor(){this.committed="",this.current=""}append(e){this.current.length>Dy?(this.committed+=this.current+e,this.current=""):this.current+=e}insertAt(e,n){const{committed:r,current:a}=this;n<r.length?this.committed=r.slice(0,n)+e+r.slice(n):n===r.length?this.committed+=e:(n-=r.length,this.committed+=a.slice(0,n)+e,this.current=a.slice(n))}charAt(e){const{committed:n}=this;return e<n.length?n[e]:this.current[e-n.length]}charCodeAt(e){const{committed:n}=this;return e<n.length?n.charCodeAt(e):this.current.charCodeAt(e-n.length)}length(){return this.committed.length+this.current.length}expectDirective(){let e,n=this.length();if(n<=0)return!0;for(;(e=this.charCodeAt(--n))&&(e==cd||e==ud););return!e||e===59||e===123}hasNLB(){let e=this.length()-1;for(;e>=0;){const n=this.charCodeAt(e--);if(n===ud)return!0;if(n!==cd)return!1}return!0}toString(){return this.committed+this.current}}function $l(t){var e=!t;t=_i(t,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0,_destroy_ast:!1},!0),t.shorthand===void 0&&(t.shorthand=t.ecma>5);var n=vt;if(t.comments){let se=t.comments;if(typeof t.comments=="string"&&/^\/.*\/[a-zA-Z]*$/.test(t.comments)){var r=t.comments.lastIndexOf("/");se=new RegExp(t.comments.substr(1,r-1),t.comments.substr(r+1))}se instanceof RegExp?n=function(De){return De.type!="comment5"&&se.test(De.value)}:typeof se=="function"?n=function(De){return De.type!="comment5"&&se(this,De)}:se==="some"?n=ky:n=er}if(t.preserve_annotations){let se=n;n=function(De){return ld.test(De.value)||se.apply(this,arguments)}}var a=0,c=0,h=1,d=0,v=new wy;let S=new Set;var C=t.ascii_only?function(se,De=!1,me=!1){return t.ecma>=2015&&!t.safari10&&!me&&(se=se.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(bt){var xt=vy(bt,0).toString(16);return"\\u{"+xt+"}"})),se.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(bt){var xt=bt.charCodeAt(0).toString(16);if(xt.length<=2&&!De){for(;xt.length<2;)xt="0"+xt;return"\\x"+xt}else{for(;xt.length<4;)xt="0"+xt;return"\\u"+xt}})}:function(se){return se.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(De,me){return me?"\\u"+me.charCodeAt(0).toString(16):De})};function T(se,De){var me=0,bt=0;se=se.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(Qt,dn){switch(Qt){case'"':return++me,'"';case"'":return++bt,"'";case"\\":return"\\\\";case`
256
- `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return t.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\uFEFF":return"\\ufeff";case"\0":return/[0-9]/.test(xu(se,dn+1))?"\\x00":"\\0"}return Qt});function xt(){return"'"+se.replace(/\x27/g,"\\'")+"'"}function kt(){return'"'+se.replace(/\x22/g,'\\"')+'"'}function Un(){return"`"+se.replace(/`/g,"\\`")+"`"}if(se=C(se),De==="`")return Un();switch(t.quote_style){case 1:return xt();case 2:return kt();case 3:return De=="'"?xt():kt();default:return me>bt?xt():kt()}}function k(se,De){var me=T(se,De);return t.inline_script&&(me=me.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2"),me=me.replace(/\x3c!--/g,"\\x3c!--"),me=me.replace(/--\x3e/g,"--\\x3e")),me}function B(se){return se=se.toString(),se=C(se,!0),se}function L(se){return" ".repeat(t.indent_start+a-se*t.indent_level)}var b=!1,y=!1,g=!1,O=0,R=!1,w=!1,U=-1,X="",ee,z,Y=t.source_map&&[],$=Y?function(){Y.forEach(function(se){try{let{name:De,token:me}=se;De!==!1&&(me.type=="name"||me.type==="privatename"?De=me.value:De instanceof pt&&(De=me.type==="string"?me.value:De.name)),t.source_map.add(se.token.file,se.line,se.col,se.token.line,se.token.col,ku(De)?De:void 0)}catch{}}),Y=[]}:_r,ne=t.max_line_len?function(){if(c>t.max_line_len&&O){v.insertAt(`
257
- `,O);const De=v.length()-O-1;if(Y){var se=De-c;Y.forEach(function(me){me.line++,me.col+=se})}h++,d++,c=De}O&&(O=0,$())}:_r,Q=Ct("( [ + * / - , . `");function _e(se){se=String(se);var De=xu(se,0);R&&De&&(R=!1,De!==`
258
- `&&(_e(`
259
- `),de())),w&&De&&(w=!1,/[\s;})]/.test(De)||re()),U=-1;var me=X.charAt(X.length-1);g&&(g=!1,(me===":"&&De==="}"||(!De||!";}".includes(De))&&me!==";")&&(t.semicolons||Q.has(De)?(v.append(";"),c++,d++):(ne(),c>0&&(v.append(`
260
- `),d++,h++,c=0),/^\s+$/.test(se)&&(g=!0)),t.beautify||(y=!1))),y&&((Ou(me)&&(Ou(De)||De=="\\")||De=="/"&&De==me||(De=="+"||De=="-")&&De==X)&&(v.append(" "),c++,d++),y=!1),ee&&(Y.push({token:ee,name:z,line:h,col:c}),ee=!1,O||$()),v.append(se),b=se[se.length-1]=="(",d+=se.length;var bt=se.split(/\r?\n/),xt=bt.length-1;h+=xt,c+=bt[0].length,xt>0&&(ne(),c=bt[xt].length),X=se}var ge=function(){_e("*")},re=t.beautify?function(){_e(" ")}:function(){y=!0},de=t.beautify?function(se){t.beautify&&_e(L(se?.5:0))}:_r,fe=t.beautify?function(se,De){se===!0&&(se=Ue());var me=a;a=se;var bt=De();return a=me,bt}:function(se,De){return De()},Oe=t.beautify?function(){if(U<0)return _e(`
261
- `);v.charAt(U)!=`
262
- `&&(v.insertAt(`
263
- `,U),d++,h++),U++}:t.max_line_len?function(){ne(),O=v.length()}:_r,Ie=t.beautify?function(){_e(";")}:function(){g=!0};function ve(){g=!1,_e(";")}function Ue(){return a+t.indent_level}function J(se){var De;return _e("{"),Oe(),fe(Ue(),function(){De=se()}),de(),_e("}"),De}function ie(se){_e("(");var De=se();return _e(")"),De}function ue(se){_e("[");var De=se();return _e("]"),De}function Ae(){_e(","),re()}function be(){_e(":"),re()}var At=Y?function(se,De){ee=se,z=De}:_r;function Vt(){return O&&ne(),v.toString()}function Et(se){return t.preserve_annotations||(se=se.replace(ld," ")),/^\s*$/.test(se)?"":se.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}function Mt(se){var De=this,me=se.start;if(!me)return;var bt=De.printed_comments;const xt=se instanceof lr&&se.value||(se instanceof gr||se instanceof br)&&se.expression;if(me.comments_before&&bt.has(me.comments_before))if(xt)me.comments_before=[];else return;var kt=me.comments_before;if(kt||(kt=me.comments_before=[]),bt.add(kt),xt){var Un=new Ln(function(jt){var Pt=Un.parent();if(Pt instanceof lr||Pt instanceof gr||Pt instanceof br||Pt instanceof ae&&Pt.left===jt||Pt.TYPE=="Call"&&Pt.expression===jt||Pt instanceof tt&&Pt.condition===jt||Pt instanceof Wt&&Pt.expression===jt||Pt instanceof lt&&Pt.expressions[0]===jt||Pt instanceof xn&&Pt.expression===jt||Pt instanceof $i){if(!jt.start)return;var fn=jt.start.comments_before;fn&&!bt.has(fn)&&(bt.add(fn),kt=kt.concat(fn))}else return!0});Un.push(se),xt.walk(Un)}if(d==0){kt.length>0&&t.shebang&&kt[0].type==="comment5"&&!bt.has(kt[0])&&(_e("#!"+kt.shift().value+`
264
- `),de());var Qt=t.preamble;Qt&&_e(Qt.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,`
265
- `))}if(kt=kt.filter(n,se).filter(jt=>!bt.has(jt)),kt.length!=0){var dn=v.hasNLB();kt.forEach(function(jt,Pt){if(bt.add(jt),dn||(jt.nlb?(_e(`
266
- `),de(),dn=!0):Pt>0&&re()),/comment[134]/.test(jt.type)){var fn=Et(jt.value);fn&&(_e("//"+fn+`
267
- `),de()),dn=!0}else if(jt.type=="comment2"){var fn=Et(jt.value);fn&&_e("/*"+fn+"*/"),dn=!1}}),dn||(me.nlb?(_e(`
268
- `),de()):re())}}function gt(se,De){var me=this,bt=se.end;if(bt){var xt=me.printed_comments,kt=bt[De?"comments_before":"comments_after"];if(!(!kt||xt.has(kt))&&(se instanceof Rn||kt.every(Qt=>!/comment[134]/.test(Qt.type)))){xt.add(kt);var Un=v.length();kt.filter(n,se).forEach(function(Qt,dn){if(!xt.has(Qt)){if(xt.add(Qt),w=!1,R?(_e(`
269
- `),de(),R=!1):Qt.nlb&&(dn>0||!v.hasNLB())?(_e(`
270
- `),de()):(dn>0||!De)&&re(),/comment[134]/.test(Qt.type)){const jt=Et(Qt.value);jt&&_e("//"+jt),R=!0}else if(Qt.type=="comment2"){const jt=Et(Qt.value);jt&&_e("/*"+jt+"*/"),w=!0}}}),v.length()>Un&&(U=Un)}}}const Ot=t._destroy_ast?function(De){De.body.length=0,De.argnames.length=0}:_r;var Zt=[];return{get:Vt,toString:Vt,indent:de,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return a},current_width:function(){return c-a},should_break:function(){return t.width&&this.current_width()>=t.width},has_parens:function(){return b},newline:Oe,print:_e,star:ge,space:re,comma:Ae,colon:be,last:function(){return X},semicolon:Ie,force_semicolon:ve,to_utf8:C,print_name:function(se){_e(B(se))},print_string:function(se,De,me){var bt=k(se,De);me===!0&&!bt.includes("\\")&&(v.expectDirective()||ve(),ve()),_e(bt)},print_template_string_chars:function(se){var De=k(se,"`").replace(/\${/g,"\\${");return _e(De.substr(1,De.length-2))},encode_string:k,next_indent:Ue,with_indent:fe,with_block:J,with_parens:ie,with_square:ue,add_mapping:At,option:function(se){return t[se]},gc_scope:Ot,printed_comments:S,prepend_comments:e?_r:Mt,append_comments:e||n===vt?_r:gt,line:function(){return h},col:function(){return c},pos:function(){return d},push_node:function(se){Zt.push(se)},pop_node:function(){return Zt.pop()},parent:function(se){return Zt[Zt.length-2-(se||0)]}}}(function(){function t(y,g){y.DEFMETHOD("_codegen",g)}Ce.DEFMETHOD("print",function(y,g){var O=this,R=O._codegen;O instanceof qe?y.active_scope=O:!y.use_asm&&O instanceof nr&&O.value=="use asm"&&(y.use_asm=y.active_scope);function w(){y.prepend_comments(O),O.add_source_map(y),R(O,y),y.append_comments(O)}y.push_node(O),g||O.needs_parens(y)?y.with_parens(w):w(),y.pop_node(),O===y.use_asm&&(y.use_asm=null)}),Ce.DEFMETHOD("_print",Ce.prototype.print),Ce.DEFMETHOD("print_to_string",function(y){var g=$l(y);return this.print(g),g.get()});function e(y,g){Array.isArray(y)?y.forEach(function(O){e(O,g)}):y.DEFMETHOD("needs_parens",g)}e(Ce,vt),e(Ft,function(y){if(!y.has_parens()&&ai(y))return!0;if(y.option("webkit")){var g=y.parent();if(g instanceof Xe&&g.expression===this)return!0}if(y.option("wrap_iife")){var g=y.parent();if(g instanceof Ve&&g.expression===this)return!0}if(y.option("wrap_func_args")){var g=y.parent();if(g instanceof Ve&&g.args.includes(this))return!0}return!1}),e(Yt,function(y){var g=y.parent();return y.option("wrap_func_args")&&g instanceof Ve&&g.args.includes(this)?!0:g instanceof Xe&&g.expression===this||g instanceof tt&&g.condition===this}),e(Nt,function(y){return!y.has_parens()&&ai(y)}),e(Si,ai),e(Xt,function(y){var g=y.parent();return g instanceof Xe&&g.expression===this||g instanceof Ve&&g.expression===this||g instanceof ae&&g.operator==="**"&&this instanceof We&&g.left===this&&this.operator!=="++"&&this.operator!=="--"}),e(gr,function(y){var g=y.parent();return g instanceof Xe&&g.expression===this||g instanceof Ve&&g.expression===this||g instanceof ae&&g.operator==="**"&&g.left===this||y.option("safari10")&&g instanceof We}),e(lt,function(y){var g=y.parent();return g instanceof Ve||g instanceof Xt||g instanceof ae||g instanceof Lt||g instanceof Xe||g instanceof St||g instanceof cn||g instanceof tt||g instanceof Yt||g instanceof Nr||g instanceof ht||g instanceof Eo&&this===g.object||g instanceof br||g instanceof kn}),e(ae,function(y){var g=y.parent();if(g instanceof Ve&&g.expression===this||g instanceof Xt||g instanceof Xe&&g.expression===this)return!0;if(g instanceof ae){const O=g.operator,R=this.operator;if(R==="??"&&(O==="||"||O==="&&")||O==="??"&&(R==="||"||R==="&&"))return!0;const w=Dr[O],U=Dr[R];if(w>U||w==U&&(this===g.right||O=="**"))return!0}if(g instanceof ii){const O=this.operator,R=Dr.in,w=Dr[O];if(R>w||R==w&&this===g.value)return!0}}),e(ii,function(y){var g=y.parent();if(g instanceof Ve&&g.expression===this||g instanceof Xt||g instanceof Xe&&g.expression===this)return!0;if(g instanceof ae){const O=g.operator,R=Dr[O],w=Dr.in;if(R>w||R==w&&(this===g.right||O=="**"))return!0}if(g instanceof ii&&this===g.value)return!0}),e(br,function(y){var g=y.parent();if(g instanceof ae&&g.operator!=="="||g instanceof Ve&&g.expression===this||g instanceof tt&&g.condition===this||g instanceof Xt||g instanceof Xe&&g.expression===this)return!0}),e(gn,function(y){var g=y.parent();return g instanceof Ve||g instanceof Xe?g.expression===this:!1}),e(Xe,function(y){var g=y.parent();if(g instanceof rr&&g.expression===this)return Fn(this,O=>{if(O instanceof qe)return!0;if(O instanceof Ve)return dr})}),e(Ve,function(y){var g=y.parent(),O;return g instanceof rr&&g.expression===this||g instanceof kn&&g.is_default&&this.expression instanceof Ft?!0:this.expression instanceof Ft&&g instanceof Xe&&g.expression===this&&(O=y.parent(1))instanceof at&&O.left===g}),e(rr,function(y){var g=y.parent();if(this.args.length===0&&(g instanceof Xe||g instanceof Ve&&g.expression===this||g instanceof jr&&g.prefix===this))return!0}),e(Qe,function(y){var g=y.parent();if(g instanceof Xe&&g.expression===this){var O=this.getValue();if(O<0||/^0/.test(B(O)))return!0}}),e(si,function(y){var g=y.parent();if(g instanceof Xe&&g.expression===this){var O=this.getValue();if(O.startsWith("-"))return!0}}),e([at,tt],function(y){var g=y.parent();if(g instanceof Xt||g instanceof ae&&!(g instanceof at)||g instanceof Ve&&g.expression===this||g instanceof tt&&g.condition===this||g instanceof Xe&&g.expression===this||this instanceof at&&this.left instanceof $t&&this.left.is_array===!1)return!0}),t(nr,function(y,g){g.print_string(y.value,y.quote),g.semicolon()}),t(ht,function(y,g){g.print("..."),y.expression.print(g)}),t($t,function(y,g){g.print(y.is_array?"[":"{");var O=y.names.length;y.names.forEach(function(R,w){w>0&&g.comma(),R.print(g),w==O-1&&R instanceof Ir&&g.comma()}),g.print(y.is_array?"]":"}")}),t(Fi,function(y,g){g.print("debugger"),g.semicolon()});function n(y,g,O,R){var w=y.length-1;O.in_directive=R,y.forEach(function(U,X){O.in_directive===!0&&!(U instanceof nr||U instanceof wt||U instanceof je&&U.body instanceof dt)&&(O.in_directive=!1),U instanceof wt||(O.indent(),U.print(O),X==w&&g||(O.newline(),g&&O.newline())),O.in_directive===!0&&U instanceof je&&U.body instanceof dt&&(O.in_directive=!1)}),O.in_directive=!1}vo.DEFMETHOD("_do_print_body",function(y){T(this.body,y)}),t(Rn,function(y,g){y.body.print(g),g.semicolon()}),t(zt,function(y,g){n(y.body,!0,g,!0),g.print("")}),t(Qn,function(y,g){y.label.print(g),g.colon(),y.body.print(g)}),t(je,function(y,g){y.body.print(g),g.semicolon()});function r(y,g){g.print("{"),g.with_indent(g.next_indent(),function(){g.append_comments(y,!0)}),g.add_mapping(y.end),g.print("}")}function a(y,g,O){y.body.length>0?g.with_block(function(){n(y.body,!1,g,O),g.add_mapping(y.end)}):r(y,g)}t(Ze,function(y,g){a(y,g)}),t(wt,function(y,g){g.semicolon()}),t(yi,function(y,g){g.print("do"),g.space(),L(y.body,g),g.space(),g.print("while"),g.space(),g.with_parens(function(){y.condition.print(g)}),g.semicolon()}),t(Li,function(y,g){g.print("while"),g.space(),g.with_parens(function(){y.condition.print(g)}),g.space(),y._do_print_body(g)}),t(An,function(y,g){g.print("for"),g.space(),g.with_parens(function(){y.init?(y.init instanceof un?y.init.print(g):h(y.init,g,!0),g.print(";"),g.space()):g.print(";"),y.condition?(y.condition.print(g),g.print(";"),g.space()):g.print(";"),y.step&&y.step.print(g)}),g.space(),y._do_print_body(g)}),t(Wn,function(y,g){g.print("for"),y.await&&(g.space(),g.print("await")),g.space(),g.with_parens(function(){y.init.print(g),g.space(),g.print(y instanceof Eo?"of":"in"),g.space(),y.object.print(g)}),g.space(),y._do_print_body(g)}),t(yr,function(y,g){g.print("with"),g.space(),g.with_parens(function(){y.expression.print(g)}),g.space(),y._do_print_body(g)}),Ge.DEFMETHOD("_do_print",function(y,g){var O=this;g||(O.async&&(y.print("async"),y.space()),y.print("function"),O.is_generator&&y.star(),O.name&&y.space()),O.name instanceof pt?O.name.print(y):g&&O.name instanceof Ce&&y.with_square(function(){O.name.print(y)}),y.with_parens(function(){O.argnames.forEach(function(R,w){w&&y.comma(),R.print(y)})}),y.space(),a(O,y,!0)}),t(Ge,function(y,g){y._do_print(g),g.gc_scope(y)}),t(jr,function(y,g){var O=y.prefix,R=O instanceof Ge||O instanceof ae||O instanceof tt||O instanceof lt||O instanceof Xt||O instanceof Wt&&O.expression instanceof Nt;R&&g.print("("),y.prefix.print(g),R&&g.print(")"),y.template_string.print(g)}),t(Xn,function(y,g){var O=g.parent()instanceof jr;g.print("`");for(var R=0;R<y.segments.length;R++)y.segments[R]instanceof gi?O?g.print(y.segments[R].raw):g.print_template_string_chars(y.segments[R].value):(g.print("${"),y.segments[R].print(g),g.print("}"));g.print("`")}),t(gi,function(y,g){g.print_template_string_chars(y.value)}),Yt.DEFMETHOD("_do_print",function(y){var g=this,O=y.parent(),R=O instanceof ae&&!(O instanceof at)||O instanceof Xt||O instanceof Ve&&g===O.expression;R&&y.print("("),g.async&&(y.print("async"),y.space()),g.argnames.length===1&&g.argnames[0]instanceof pt?g.argnames[0].print(y):y.with_parens(function(){g.argnames.forEach(function(U,X){X&&y.comma(),U.print(y)})}),y.space(),y.print("=>"),y.space();const w=g.body[0];if(g.body.length===1&&w instanceof an){const U=w.value;U?Ki(U)?(y.print("("),U.print(y),y.print(")")):U.print(y):y.print("{}")}else a(g,y);R&&y.print(")"),y.gc_scope(g)}),lr.DEFMETHOD("_do_print",function(y,g){if(y.print(g),this.value){y.space();const O=this.value.start.comments_before;O&&O.length&&!y.printed_comments.has(O)?(y.print("("),this.value.print(y),y.print(")")):this.value.print(y)}y.semicolon()}),t(an,function(y,g){y._do_print(g,"return")}),t(ha,function(y,g){y._do_print(g,"throw")}),t(br,function(y,g){var O=y.is_star?"*":"";g.print("yield"+O),y.expression&&(g.space(),y.expression.print(g))}),t(gr,function(y,g){g.print("await"),g.space();var O=y.expression,R=!(O instanceof Ve||O instanceof xe||O instanceof Xe||O instanceof Xt||O instanceof Tt||O instanceof gr||O instanceof Nt);R&&g.print("("),y.expression.print(g),R&&g.print(")")}),Yr.DEFMETHOD("_do_print",function(y,g){y.print(g),this.label&&(y.space(),this.label.print(y)),y.semicolon()}),t(wr,function(y,g){y._do_print(g,"break")}),t(ro,function(y,g){y._do_print(g,"continue")});function c(y,g){var O=y.body;if(g.option("braces")||g.option("ie8")&&O instanceof yi)return L(O,g);if(!O)return g.force_semicolon();for(;;)if(O instanceof Rt){if(!O.alternative){L(y.body,g);return}O=O.alternative}else if(O instanceof vo)O=O.body;else break;T(y.body,g)}t(Rt,function(y,g){g.print("if"),g.space(),g.with_parens(function(){y.condition.print(g)}),g.space(),y.alternative?(c(y,g),g.space(),g.print("else"),g.space(),y.alternative instanceof Rt?y.alternative.print(g):T(y.alternative,g)):y._do_print_body(g)}),t(qn,function(y,g){g.print("switch"),g.space(),g.with_parens(function(){y.expression.print(g)}),g.space();var O=y.body.length-1;O<0?r(y,g):g.with_block(function(){y.body.forEach(function(R,w){g.indent(!0),R.print(g),w<O&&R.body.length>0&&g.newline()})})}),Bi.DEFMETHOD("_do_print_body",function(y){y.newline(),this.body.forEach(function(g){y.indent(),g.print(y),y.newline()})}),t(So,function(y,g){g.print("default:"),y._do_print_body(g)}),t(Jr,function(y,g){g.print("case"),g.space(),y.expression.print(g),g.print(":"),y._do_print_body(g)}),t(vr,function(y,g){g.print("try"),g.space(),y.body.print(g),y.bcatch&&(g.space(),y.bcatch.print(g)),y.bfinally&&(g.space(),y.bfinally.print(g))}),t(Iu,function(y,g){a(y,g)}),t(Zr,function(y,g){g.print("catch"),y.argname&&(g.space(),g.with_parens(function(){y.argname.print(g)})),g.space(),a(y,g)}),t(Wo,function(y,g){g.print("finally"),g.space(),a(y,g)}),un.DEFMETHOD("_do_print",function(y,g){y.print(g),y.space(),this.definitions.forEach(function(U,X){X&&y.comma(),U.print(y)});var O=y.parent(),R=O instanceof An||O instanceof Wn,w=!R||O&&O.init!==this;w&&y.semicolon()}),t(Qr,function(y,g){y._do_print(g,"let")}),t(Nn,function(y,g){y._do_print(g,"var")}),t(ei,function(y,g){y._do_print(g,"const")}),t(Rr,function(y,g){g.print("import"),g.space(),y.imported_name&&y.imported_name.print(g),y.imported_name&&y.imported_names&&(g.print(","),g.space()),y.imported_names&&(y.imported_names.length===1&&y.imported_names[0].foreign_name.name==="*"&&!y.imported_names[0].foreign_name.quote?y.imported_names[0].print(g):(g.print("{"),y.imported_names.forEach(function(O,R){g.space(),O.print(g),R<y.imported_names.length-1&&g.print(",")}),g.space(),g.print("}"))),(y.imported_name||y.imported_names)&&(g.space(),g.print("from"),g.space()),y.module_name.print(g),y.assert_clause&&(g.print("assert"),y.assert_clause.print(g)),g.semicolon()}),t(Ui,function(y,g){g.print("import.meta")}),t(ti,function(y,g){var O=g.parent()instanceof Rr,R=y.name.definition(),w=y.foreign_name,U=(R&&R.mangled_name||y.name.name)!==w.name;!U&&w.name==="*"&&w.quote!=y.name.quote&&(U=!0);var X=w.quote==null;U?(O?X?g.print(w.name):g.print_string(w.name,w.quote):y.name.quote==null?y.name.print(g):g.print_string(y.name.name,y.name.quote),g.space(),g.print("as"),g.space(),O?y.name.print(g):X?g.print(w.name):g.print_string(w.name,w.quote)):y.name.quote==null?y.name.print(g):g.print_string(y.name.name,y.name.quote)}),t(kn,function(y,g){if(g.print("export"),g.space(),y.is_default&&(g.print("default"),g.space()),y.exported_names)y.exported_names.length===1&&y.exported_names[0].name.name==="*"&&!y.exported_names[0].name.quote?y.exported_names[0].print(g):(g.print("{"),y.exported_names.forEach(function(O,R){g.space(),O.print(g),R<y.exported_names.length-1&&g.print(",")}),g.space(),g.print("}"));else if(y.exported_value)y.exported_value.print(g);else if(y.exported_definition&&(y.exported_definition.print(g),y.exported_definition instanceof un))return;y.module_name&&(g.space(),g.print("from"),g.space(),y.module_name.print(g)),y.assert_clause&&(g.print("assert"),y.assert_clause.print(g)),(y.exported_value&&!(y.exported_value instanceof en||y.exported_value instanceof Ft||y.exported_value instanceof yt)||y.module_name||y.exported_names)&&g.semicolon()});function h(y,g,O){var R=!1;O&&(R=Fn(y,w=>{if(w instanceof qe&&!(w instanceof Yt))return!0;if(w instanceof ae&&w.operator=="in"||w instanceof ii)return dr})),y.print(g,R)}t(Lt,function(y,g){if(y.name.print(g),y.value){g.space(),g.print("="),g.space();var O=g.parent(1),R=O instanceof An||O instanceof Wn;h(y.value,g,R)}}),t(Ve,function(y,g){y.expression.print(g),!(y instanceof rr&&y.args.length===0)&&((y.expression instanceof Ve||y.expression instanceof Ge)&&g.add_mapping(y.start),y.optional&&g.print("?."),g.with_parens(function(){y.args.forEach(function(O,R){R&&g.comma(),O.print(g)})}))}),t(rr,function(y,g){g.print("new"),g.space(),Ve.prototype._codegen(y,g)}),lt.DEFMETHOD("_do_print",function(y){this.expressions.forEach(function(g,O){O>0&&(y.comma(),y.should_break()&&(y.newline(),y.indent())),g.print(y)})}),t(lt,function(y,g){y._do_print(g)}),t(Wt,function(y,g){var O=y.expression;O.print(g);var R=y.property,w=no.has(R)?g.option("ie8"):!Qp(R,g.option("ecma")>=2015&&!g.option("safari10"));y.optional&&g.print("?."),w?(g.print("["),g.add_mapping(y.end),g.print_string(R),g.print("]")):(O instanceof Qe&&O.getValue()>=0&&(/[xa-f.)]/i.test(g.last())||g.print(".")),y.optional||g.print("."),g.add_mapping(y.end),g.print_name(R))}),t(Hr,function(y,g){var O=y.expression;O.print(g);var R=y.property;y.optional&&g.print("?"),g.print(".#"),g.add_mapping(y.end),g.print_name(R)}),t(xn,function(y,g){y.expression.print(g),y.optional&&g.print("?."),g.print("["),y.property.print(g),g.print("]")}),t(gn,function(y,g){y.expression.print(g)}),t(We,function(y,g){var O=y.operator;O==="--"&&g.last().endsWith("!")&&g.print(" "),g.print(O),(/^[a-z]/i.test(O)||/[+-]$/.test(O)&&y.expression instanceof We&&/^[+-]/.test(y.expression.operator))&&g.space(),y.expression.print(g)}),t($i,function(y,g){y.expression.print(g),g.print(y.operator)}),t(ae,function(y,g){var O=y.operator;y.left.print(g),O[0]==">"&&g.last().endsWith("--")?g.print(" "):g.space(),g.print(O),g.space(),y.right.print(g)}),t(tt,function(y,g){y.condition.print(g),g.space(),g.print("?"),g.space(),y.consequent.print(g),g.space(),g.colon(),y.alternative.print(g)}),t(St,function(y,g){g.with_square(function(){var O=y.elements,R=O.length;R>0&&g.space(),O.forEach(function(w,U){U&&g.comma(),w.print(g),U===R-1&&w instanceof Ir&&g.comma()}),R>0&&g.space()})}),t(Nt,function(y,g){y.properties.length>0?g.with_block(function(){y.properties.forEach(function(O,R){R&&(g.print(","),g.newline()),g.indent(),O.print(g)}),g.newline()}):r(y,g)}),t(yt,function(y,g){if(g.print("class"),g.space(),y.name&&(y.name.print(g),g.space()),y.extends){var O=!(y.extends instanceof xe)&&!(y.extends instanceof Xe)&&!(y.extends instanceof Si)&&!(y.extends instanceof Ft);g.print("extends"),O?g.print("("):g.space(),y.extends.print(g),O?g.print(")"):g.space()}y.properties.length>0?g.with_block(function(){y.properties.forEach(function(R,w){w&&g.newline(),g.indent(),R.print(g)}),g.newline()}):g.print("{}")}),t(Xo,function(y,g){g.print("new.target")});function d(y,g,O){if(O.option("quote_keys"))return O.print_string(y),!1;if(""+ +y==y&&y>=0)return O.option("keep_numbers")?(O.print(y),!1):(O.print(B(y)),!1);var R=no.has(y)?O.option("ie8"):O.option("ecma")<2015||O.option("safari10")?!ku(y):!Qp(y,!0);return R||g&&O.option("keep_quoted_props")?(O.print_string(y,g),!1):(O.print_name(y),!0)}t(Jt,function(y,g){function O(w){var U=w.definition();return U?U.mangled_name||U.name:w.name}const R=g.option("shorthand")&&!(y.key instanceof Ce);R&&y.value instanceof pt&&O(y.value)===y.key&&!no.has(y.key)?d(y.key,y.quote,g)||(g.colon(),y.value.print(g)):R&&y.value instanceof Nr&&y.value.left instanceof pt&&O(y.value.left)===y.key?(d(y.key,y.quote,g)||(g.colon(),y.value.left.print(g)),g.space(),g.print("="),g.space(),y.value.right.print(g)):(y.key instanceof Ce?g.with_square(function(){y.key.print(g)}):d(y.key,y.quote,g),g.colon(),y.value.print(g))}),t(Ei,(y,g)=>{y.static&&(g.print("static"),g.space()),g.print("#"),d(y.key.name,y.quote,g),y.value&&(g.print("="),y.value.print(g)),g.semicolon()}),t(fr,(y,g)=>{y.static&&(g.print("static"),g.space()),y.key instanceof Hi?d(y.key.name,y.quote,g):(g.print("["),y.key.print(g),g.print("]")),y.value&&(g.print("="),y.value.print(g)),g.semicolon()}),cn.DEFMETHOD("_print_getter_setter",function(y,g,O){var R=this;R.static&&(O.print("static"),O.space()),y&&(O.print(y),O.space()),R.key instanceof $n?(g&&O.print("#"),d(R.key.name,R.quote,O),R.key.add_source_map(O)):O.with_square(function(){R.key.print(O)}),R.value._do_print(O,!0)}),t(ri,function(y,g){y._print_getter_setter("set",!1,g)}),t(Gr,function(y,g){y._print_getter_setter("get",!1,g)}),t(bi,function(y,g){y._print_getter_setter("set",!0,g)}),t(ni,function(y,g){y._print_getter_setter("get",!0,g)}),t(vi,function(y,g){var O;y.is_generator&&y.async?O="async*":y.is_generator?O="*":y.async&&(O="async"),y._print_getter_setter(O,!0,g)}),t(ii,function(y,g){y.key.print(g),g.space(),g.print("in"),g.space(),y.value.print(g)}),t(da,function(y,g){g.print("#"+y.name)}),t(Bn,function(y,g){var O;y.is_generator&&y.async?O="async*":y.is_generator?O="*":y.async&&(O="async"),y._print_getter_setter(O,!1,g)}),t(Yn,function(y,g){g.print("static"),g.space(),a(y,g)}),pt.DEFMETHOD("_do_print",function(y){var g=this.definition();y.print_name(g?g.mangled_name||g.name:this.name)}),t(pt,function(y,g){y._do_print(g)}),t(Ir,_r),t(Vn,function(y,g){g.print("this")}),t(Jo,function(y,g){g.print("super")}),t(Tt,function(y,g){g.print(y.getValue())}),t(dt,function(y,g){g.print_string(y.getValue(),y.quote,g.in_directive)}),t(Qe,function(y,g){(g.option("keep_numbers")||g.use_asm)&&y.raw?g.print(y.raw):g.print(B(y.getValue()))}),t(si,function(y,g){g.print(y.getValue()+"n")});const v=/(<\s*\/\s*script)/i,S=/^\s*script/i,C=(y,g)=>g.replace("/","\\/");t(hr,function(y,g){let{source:O,flags:R}=y.getValue();O=vu(O),R=R?cy(R):"",O=O.replace(v,C),S.test(O)&&g.last().endsWith("<")&&g.print(" "),g.print(g.to_utf8(`/${O}/${R}`,!1,!0));const w=g.parent();w instanceof ae&&/^\w/.test(w.operator)&&w.left===y&&g.print(" ")});function T(y,g){g.option("braces")?L(y,g):!y||y instanceof wt?g.force_semicolon():y instanceof Qr||y instanceof ei||y instanceof yt?L(y,g):y.print(g)}function k(y){for(var g=y[0],O=g.length,R=1;R<y.length;++R)y[R].length<O&&(g=y[R],O=g.length);return g}function B(y){var g=y.toString(10).replace(/^0\./,".").replace("e+","e"),O=[g];Math.floor(y)===y&&(y<0?O.push("-0x"+(-y).toString(16).toLowerCase()):O.push("0x"+y.toString(16).toLowerCase()));var R,w,U;return(R=/^\.0+/.exec(g))?(w=R[0].length,U=g.slice(w),O.push(U+"e-"+(U.length+w-1))):(R=/0+$/.exec(g))?(w=R[0].length,O.push(g.slice(0,-w)+"e"+w)):(R=/^(\d)\.(\d+)e(-?\d+)$/.exec(g))&&O.push(R[1]+R[2]+"e"+(R[3]-R[2].length)),k(O)}function L(y,g){!y||y instanceof wt?g.print("{}"):y instanceof Ze?y.print(g):g.with_block(function(){g.indent(),y.print(g),g.newline()})}function b(y,g){y.forEach(function(O){O.DEFMETHOD("add_source_map",g)})}b([Ce,Qn,zt],_r),b([St,Ze,Zr,yt,Tt,Fi,un,nr,Wo,fa,Ge,rr,Nt,vo,pt,qn,Bi,Xn,gi,vr],function(y){y.add_mapping(this.start)}),b([Gr,ri,ni,bi,Bn,vi],function(y){y.add_mapping(this.start,!1)}),b([$n,da],function(y){const g=this.end&&this.end.type;g==="name"||g==="privatename"?y.add_mapping(this.end,this.name):y.add_mapping(this.end)}),b([cn],function(y){y.add_mapping(this.start,this.key)})})();const fd=(t,e)=>t===null&&e===null||t.TYPE===e.TYPE&&t.shallow_cmp(e),Ry=(t,e)=>{if(!fd(t,e))return!1;const n=[t],r=[e],a=n.push.bind(n),c=r.push.bind(r);for(;n.length&&r.length;){const h=n.pop(),d=r.pop();if(!fd(h,d)||(h._children_backwards(a),d._children_backwards(c),n.length!==r.length))return!1}return n.length==0&&r.length==0},It=()=>!0;Ce.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},Fi.prototype.shallow_cmp=It,nr.prototype.shallow_cmp=function(t){return this.value===t.value},je.prototype.shallow_cmp=It,Tn.prototype.shallow_cmp=It,wt.prototype.shallow_cmp=It,Qn.prototype.shallow_cmp=function(t){return this.label.name===t.label.name},yi.prototype.shallow_cmp=It,Li.prototype.shallow_cmp=It,An.prototype.shallow_cmp=function(t){return(this.init==null?t.init==null:this.init===t.init)&&(this.condition==null?t.condition==null:this.condition===t.condition)&&(this.step==null?t.step==null:this.step===t.step)},Wn.prototype.shallow_cmp=It,Eo.prototype.shallow_cmp=It,yr.prototype.shallow_cmp=It,zt.prototype.shallow_cmp=It,ht.prototype.shallow_cmp=It,Ge.prototype.shallow_cmp=function(t){return this.is_generator===t.is_generator&&this.async===t.async},$t.prototype.shallow_cmp=function(t){return this.is_array===t.is_array},jr.prototype.shallow_cmp=It,Xn.prototype.shallow_cmp=It,gi.prototype.shallow_cmp=function(t){return this.value===t.value},fa.prototype.shallow_cmp=It,Yr.prototype.shallow_cmp=It,gr.prototype.shallow_cmp=It,br.prototype.shallow_cmp=function(t){return this.is_star===t.is_star},Rt.prototype.shallow_cmp=function(t){return this.alternative==null?t.alternative==null:this.alternative===t.alternative},qn.prototype.shallow_cmp=It,Bi.prototype.shallow_cmp=It,vr.prototype.shallow_cmp=function(t){return this.body===t.body&&(this.bcatch==null?t.bcatch==null:this.bcatch===t.bcatch)&&(this.bfinally==null?t.bfinally==null:this.bfinally===t.bfinally)},Zr.prototype.shallow_cmp=function(t){return this.argname==null?t.argname==null:this.argname===t.argname},Wo.prototype.shallow_cmp=It,un.prototype.shallow_cmp=It,Lt.prototype.shallow_cmp=function(t){return this.value==null?t.value==null:this.value===t.value},ti.prototype.shallow_cmp=It,Rr.prototype.shallow_cmp=function(t){return(this.imported_name==null?t.imported_name==null:this.imported_name===t.imported_name)&&(this.imported_names==null?t.imported_names==null:this.imported_names===t.imported_names)},Ui.prototype.shallow_cmp=It,kn.prototype.shallow_cmp=function(t){return(this.exported_definition==null?t.exported_definition==null:this.exported_definition===t.exported_definition)&&(this.exported_value==null?t.exported_value==null:this.exported_value===t.exported_value)&&(this.exported_names==null?t.exported_names==null:this.exported_names===t.exported_names)&&this.module_name===t.module_name&&this.is_default===t.is_default},Ve.prototype.shallow_cmp=It,lt.prototype.shallow_cmp=It,Xe.prototype.shallow_cmp=It,gn.prototype.shallow_cmp=It,Wt.prototype.shallow_cmp=function(t){return this.property===t.property},Hr.prototype.shallow_cmp=function(t){return this.property===t.property},Xt.prototype.shallow_cmp=function(t){return this.operator===t.operator},ae.prototype.shallow_cmp=function(t){return this.operator===t.operator},tt.prototype.shallow_cmp=It,St.prototype.shallow_cmp=It,Nt.prototype.shallow_cmp=It,cn.prototype.shallow_cmp=It,Jt.prototype.shallow_cmp=function(t){return this.key===t.key},ri.prototype.shallow_cmp=function(t){return this.static===t.static},Gr.prototype.shallow_cmp=function(t){return this.static===t.static},Bn.prototype.shallow_cmp=function(t){return this.static===t.static&&this.is_generator===t.is_generator&&this.async===t.async},yt.prototype.shallow_cmp=function(t){return(this.name==null?t.name==null:this.name===t.name)&&(this.extends==null?t.extends==null:this.extends===t.extends)},fr.prototype.shallow_cmp=function(t){return this.static===t.static},pt.prototype.shallow_cmp=function(t){return this.name===t.name},Xo.prototype.shallow_cmp=It,Vn.prototype.shallow_cmp=It,Jo.prototype.shallow_cmp=It,dt.prototype.shallow_cmp=function(t){return this.value===t.value},Qe.prototype.shallow_cmp=function(t){return this.value===t.value},si.prototype.shallow_cmp=function(t){return this.value===t.value},hr.prototype.shallow_cmp=function(t){return this.value.flags===t.value.flags&&this.value.source===t.value.source},oo.prototype.shallow_cmp=It;const Mu=1,Ny=2;let Zo=null,Qo=null,es=null;class ts{constructor(e,n,r){this.name=n.name,this.orig=[n],this.init=r,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=ts.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof Ce?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),Zo&&Zo.has(this.id)&&zo(e.keep_fnames,this.orig[0].name)?!0:this.global&&!e.toplevel||this.export&Mu||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof oi||this.orig[0]instanceof Ti)&&zo(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof $n||(this.orig[0]instanceof Fu||this.orig[0]instanceof Pu)&&zo(e.keep_classnames,this.orig[0].name)}mangle(e){const n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var r=this.scope,a=this.orig[0];e.ie8&&a instanceof oi&&(r=r.parent_scope);const c=Vl(this);this.mangled_name=c?c.mangled_name||c.name:r.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}}}ts.next_id=1;function Vl(t){if(t.orig[0]instanceof zr&&t.scope.is_block_scope())return t.scope.get_defun_scope().variables.get(t.name)}qe.DEFMETHOD("figure_out_scope",function(t,{parent_scope:e=null,toplevel:n=this}={}){if(t=_i(t,{cache:null,ie8:!1,safari10:!1,module:!1}),!(n instanceof zt))throw new Error("Invalid toplevel scope");var r=this.parent_scope=e,a=new Map,c=null,h=null,d=[],C=new Ln((T,k)=>{if(T.is_block_scope()){const w=r;if(T.block_scope=r=new qe(T),r._block_scope=!0,r.init_scope_vars(w),r.uses_with=w.uses_with,r.uses_eval=w.uses_eval,t.safari10&&(T instanceof An||T instanceof Wn||T instanceof Eo)&&d.push(r),T instanceof qn){const U=r;r=w,T.expression.walk(C),r=U;for(let X=0;X<T.body.length;X++)T.body[X].walk(C)}else k();return r=w,!0}if(T instanceof $t){const w=h;return h=T,k(),h=w,!0}if(T instanceof qe){T.init_scope_vars(r);var B=r,L=c,b=a;return c=r=T,a=new Map,k(),r=B,c=L,a=b,!0}if(T instanceof Qn){var y=T.label;if(a.has(y.name))throw new Error(gu("Label {name} defined twice",y));return a.set(y.name,y),k(),a.delete(y.name),!0}if(T instanceof yr){for(var g=r;g;g=g.parent_scope)g.uses_with=!0;return}if(T instanceof pt&&(T.scope=r),T instanceof pa&&(T.thedef=T,T.references=[]),T instanceof oi)c.def_function(T,T.name=="arguments"?void 0:c);else if(T instanceof Ti){const w=c.parent_scope;T.scope=C.directives["use strict"]?w:w.get_defun_scope(),v(T.scope.def_function(T,c),1)}else if(T instanceof Fu)v(c.def_variable(T,c),1);else if(T instanceof Yo)r.def_variable(T);else if(T instanceof Pu)v((T.scope=c.parent_scope).def_function(T,c),1);else if(T instanceof Vi||T instanceof qo||T instanceof io||T instanceof zr){var O;if(T instanceof ji?O=r.def_variable(T,null):O=c.def_variable(T,T.TYPE=="SymbolVar"?null:void 0),O.orig.every(w=>w===T?!0:T instanceof ji?w instanceof oi:!(w instanceof qo||w instanceof io))||Du(`"${T.name}" is redeclared`,T.start.file,T.start.line,T.start.col,T.start.pos),T instanceof Pn||v(O,2),c!==r){T.mark_enclosed();var O=r.find_variable(T);T.thedef!==O&&(T.thedef=O,T.reference())}}else if(T instanceof Ml){var R=a.get(T.name);if(!R)throw new Error(gu("Undefined label {name} [{line},{col}]",{name:T.name,line:T.start.line,col:T.start.col}));T.thedef=R}!(r instanceof zt)&&(T instanceof kn||T instanceof Rr)&&Du(`"${T.TYPE}" statement may only appear at the top level`,T.start.file,T.start.line,T.start.col,T.start.pos)});t.module&&(C.directives["use strict"]=!0),this.walk(C);function v(T,k){if(h){var B=0;do k++;while(C.parent(B++)!==h)}var L=C.parent(k);if(T.export=L instanceof kn?Mu:0){var b=L.exported_definition;(b instanceof en||b instanceof Kr)&&L.is_default&&(T.export=Ny)}}this instanceof zt&&(this.globals=new Map);var C=new Ln(T=>{if(T instanceof Yr&&T.label)return T.label.thedef.references.push(T),!0;if(T instanceof xe){var k=T.name;if(k=="eval"&&C.parent()instanceof Ve)for(var B=T.scope;B&&!B.uses_eval;B=B.parent_scope)B.uses_eval=!0;var L;return C.parent()instanceof ti&&C.parent(1).module_name||!(L=T.scope.find_variable(k))?(L=n.def_global(T),T instanceof Ao&&(L.export=Mu)):L.scope instanceof Ge&&k=="arguments"&&(L.scope.get_defun_scope().uses_arguments=!0),T.thedef=L,T.reference(),T.scope.is_block_scope()&&!(L.orig[0]instanceof ji)&&(T.scope=T.scope.get_defun_scope()),!0}var b;if(T instanceof zr&&(b=Vl(T.definition())))for(var B=T.scope;B&&(go(B.enclosed,b),B!==b.scope);)B=B.parent_scope});if(this.walk(C),(t.ie8||t.safari10)&&Fn(this,T=>{if(T instanceof zr){var k=T.name,B=T.thedef.references,L=T.scope.get_defun_scope(),b=L.find_variable(k)||n.globals.get(k)||L.def_variable(T);return B.forEach(function(y){y.thedef=b,y.reference()}),T.thedef=b,T.reference(),!0}}),t.safari10)for(const T of d)T.parent_scope.variables.forEach(function(k){go(T.enclosed,k)})}),zt.DEFMETHOD("def_global",function(t){var e=this.globals,n=t.name;if(e.has(n))return e.get(n);var r=new ts(this,t);return r.undeclared=!0,r.global=!0,e.set(n,r),r}),qe.DEFMETHOD("init_scope_vars",function(t){this.variables=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=t,this.enclosed=[],this.cname=-1}),qe.DEFMETHOD("conflicting_def",function(t){return this.enclosed.find(e=>e.name===t)||this.variables.has(t)||this.parent_scope&&this.parent_scope.conflicting_def(t)}),qe.DEFMETHOD("conflicting_def_shallow",function(t){return this.enclosed.find(e=>e.name===t)||this.variables.has(t)}),qe.DEFMETHOD("add_child_scope",function(t){if(t.parent_scope===this)return;t.parent_scope=this,t instanceof Yt&&!this.uses_arguments&&(this.uses_arguments=Fn(t,a=>{if(a instanceof xe&&a.scope instanceof Ge&&a.name==="arguments")return dr;if(a instanceof Ge&&!(a instanceof Yt))return!0})),this.uses_with=this.uses_with||t.uses_with,this.uses_eval=this.uses_eval||t.uses_eval;const e=(()=>{const a=[];let c=this;do a.push(c);while(c=c.parent_scope);return a.reverse(),a})(),n=new Set(t.enclosed),r=[];for(const a of e){r.forEach(c=>go(a.enclosed,c));for(const c of a.variables.values())n.has(c)&&(go(r,c),go(a.enclosed,c))}});function Iy(t){const e=new Set;for(const n of new Set(t))(function r(a){a==null||e.has(a)||(e.add(a),r(a.parent_scope))})(n);return[...e]}qe.DEFMETHOD("create_symbol",function(t,{source:e,tentative_name:n,scope:r,conflict_scopes:a=[r],init:c=null}={}){let h;if(a=Iy(a),n){n=h=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/ig,"_");let v=0;for(;a.find(S=>S.conflicting_def_shallow(h));)h=n+"$"+v++}if(!h)throw new Error("No symbol name could be generated in create_symbol()");const d=P(t,e,{name:h,scope:r});return this.def_variable(d,c||null),d.mark_enclosed(),d}),Ce.DEFMETHOD("is_block_scope",vt),yt.DEFMETHOD("is_block_scope",vt),Ge.DEFMETHOD("is_block_scope",vt),zt.DEFMETHOD("is_block_scope",vt),Bi.DEFMETHOD("is_block_scope",vt),Tn.DEFMETHOD("is_block_scope",er),qe.DEFMETHOD("is_block_scope",function(){return this._block_scope||!1}),Vr.DEFMETHOD("is_block_scope",er),Ge.DEFMETHOD("init_scope_vars",function(){qe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Pn({name:"arguments",start:this.start,end:this.end}))}),Yt.DEFMETHOD("init_scope_vars",function(){qe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),pt.DEFMETHOD("mark_enclosed",function(){for(var t=this.definition(),e=this.scope;e&&(go(e.enclosed,t),e!==t.scope);)e=e.parent_scope}),pt.DEFMETHOD("reference",function(){this.definition().references.push(this),this.mark_enclosed()}),qe.DEFMETHOD("find_variable",function(t){return t instanceof pt&&(t=t.name),this.variables.get(t)||this.parent_scope&&this.parent_scope.find_variable(t)}),qe.DEFMETHOD("def_function",function(t,e){var n=this.def_variable(t,e);return(!n.init||n.init instanceof en)&&(n.init=e),n}),qe.DEFMETHOD("def_variable",function(t,e){var n=this.variables.get(t.name);return n?(n.orig.push(t),n.init&&(n.scope!==t.scope||n.init instanceof Ft)&&(n.init=e)):(n=new ts(this,t,e),this.variables.set(t.name,n),n.global=!this.parent_scope),t.thedef=n});function jl(t,e){let n;es&&(n=t.get_defun_scope())&&es.has(n)&&(t=n);var r=t.enclosed,a=e.nth_identifier;e:for(;;){var c=a.get(++t.cname);if(!no.has(c)&&!e.reserved.has(c)){if(Qo&&Qo.has(c))continue e;for(let h=r.length;--h>=0;){const d=r[h],v=d.mangled_name||d.unmangleable(e)&&d.name;if(c==v)continue e}return c}}}qe.DEFMETHOD("next_mangled",function(t){return jl(this,t)}),zt.DEFMETHOD("next_mangled",function(t){let e;const n=this.mangled_names;do e=jl(this,t);while(n.has(e));return e}),Ft.DEFMETHOD("next_mangled",function(t,e){for(var n=e.orig[0]instanceof Pn&&this.name&&this.name.definition(),r=n?n.mangled_name||n.name:null;;){var a=jl(this,t);if(!r||r!=a)return a}}),pt.DEFMETHOD("unmangleable",function(t){var e=this.definition();return!e||e.unmangleable(t)}),pa.DEFMETHOD("unmangleable",vt),pt.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()}),pt.DEFMETHOD("definition",function(){return this.thedef}),pt.DEFMETHOD("global",function(){return this.thedef.global});function Bu(t){return t=_i(t,{eval:!1,nth_identifier:ga,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1}),t.module&&(t.toplevel=!0),!Array.isArray(t.reserved)&&!(t.reserved instanceof Set)&&(t.reserved=[]),t.reserved=new Set(t.reserved),t.reserved.add("arguments"),t}zt.DEFMETHOD("mangle_names",function(t){t=Bu(t);var e=t.nth_identifier,n=-1,r=[];t.keep_fnames&&(Zo=new Set);const a=this.mangled_names=new Set;Qo=new Set,t.cache&&(this.globals.forEach(h),t.cache.props&&t.cache.props.forEach(function(d){a.add(d)}));var c=new Ln(function(d,v){if(d instanceof Qn){var S=n;return v(),n=S,!0}if(d instanceof en&&!(c.parent()instanceof qe)&&(es=es||new Set,es.add(d.parent_scope.get_defun_scope())),d instanceof qe){d.variables.forEach(h);return}if(d.is_block_scope()){d.block_scope.variables.forEach(h);return}if(Zo&&d instanceof Lt&&d.value instanceof Ge&&!d.value.name&&zo(t.keep_fnames,d.name.name)){Zo.add(d.name.definition().id);return}if(d instanceof pa){let C;do C=e.get(++n);while(no.has(C));return d.mangled_name=C,!0}if(!(t.ie8||t.safari10)&&d instanceof zr){r.push(d.definition());return}});this.walk(c),(t.keep_fnames||t.keep_classnames)&&r.forEach(d=>{d.name.length<6&&d.unmangleable(t)&&Qo.add(d.name)}),r.forEach(d=>{d.mangle(t)}),Zo=null,Qo=null,es=null;function h(d){d.export&Mu?Qo.add(d.name):t.reserved.has(d.name)||r.push(d)}}),zt.DEFMETHOD("find_colliding_names",function(t){const e=t.cache&&t.cache.props,n=new Set;return t.reserved.forEach(r),this.globals.forEach(a),this.walk(new Ln(function(c){c instanceof qe&&c.variables.forEach(a),c instanceof zr&&a(c.definition())})),n;function r(c){n.add(c)}function a(c){var h=c.name;if(c.global&&e&&e.has(h))h=e.get(h);else if(!c.unmangleable(t))return;r(h)}}),zt.DEFMETHOD("expand_names",function(t){t=Bu(t);var e=t.nth_identifier;e.reset&&e.sort&&(e.reset(),e.sort());var n=this.find_colliding_names(t),r=0;this.globals.forEach(c),this.walk(new Ln(function(h){h instanceof qe&&h.variables.forEach(c),h instanceof zr&&c(h.definition())}));function a(){var h;do h=e.get(r++);while(n.has(h)||no.has(h));return h}function c(h){if(h.global&&t.cache||h.unmangleable(t)||t.reserved.has(h.name))return;const d=Vl(h),v=h.name=d?d.name:a();h.orig.forEach(function(S){S.name=v}),h.references.forEach(function(S){S.name=v})}}),Ce.DEFMETHOD("tail_node",yo),lt.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),zt.DEFMETHOD("compute_char_frequency",function(t){t=Bu(t);var e=t.nth_identifier;if(!e.reset||!e.consider||!e.sort)return;e.reset();try{Ce.prototype.print=function(r,a){this._print(r,a),this instanceof pt&&!this.unmangleable(t)?e.consider(this.name,-1):t.properties&&(this instanceof Hr?e.consider("#"+this.property,-1):this instanceof Wt?e.consider(this.property,-1):this instanceof xn&&n(this.property))},e.consider(this.print_to_string(),1)}finally{Ce.prototype.print=Ce.prototype._print}e.sort();function n(r){r instanceof dt?e.consider(r.value,-1):r instanceof tt?(n(r.consequent),n(r.alternative)):r instanceof lt&&n(r.tail_node())}});const ga=(()=>{const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),e="0123456789".split("");let n,r;function a(){r=new Map,t.forEach(function(S){r.set(S,0)}),e.forEach(function(S){r.set(S,0)})}function c(S,C){for(var T=S.length;--T>=0;)r.set(S[T],r.get(S[T])+C)}function h(S,C){return r.get(C)-r.get(S)}function d(){n=Kp(t,h).concat(Kp(e,h))}a(),d();function v(S){var C="",T=54;S++;do S--,C+=n[S%T],S=Math.floor(S/T),T=64;while(S>0);return C}return{get:v,consider:c,reset:a,sort:d}})();let Uu;Ce.prototype.size=function(t,e){Uu=t&&t._mangle_options;let n=0;return ad(this,(r,a)=>{if(n+=r._size(a),r instanceof Yt&&r.is_braceless())return n+=r.body[0].value._size(a),!0},e||t&&t.stack),Uu=void 0,n},Ce.prototype._size=()=>0,Fi.prototype._size=()=>8,nr.prototype._size=function(){return 2+this.value.length};const nn=t=>t.length&&t.length-1;Tn.prototype._size=function(){return 2+nn(this.body)},zt.prototype._size=function(){return nn(this.body)},wt.prototype._size=()=>1,Qn.prototype._size=()=>2,yi.prototype._size=()=>9,Li.prototype._size=()=>7,An.prototype._size=()=>8,Wn.prototype._size=()=>8,yr.prototype._size=()=>6,ht.prototype._size=()=>3;const ba=t=>(t.is_generator?1:0)+(t.async?6:0);Mi.prototype._size=function(){return ba(this)+4+nn(this.argnames)+nn(this.body)},Ft.prototype._size=function(t){return!!ai(t)*2+ba(this)+12+nn(this.argnames)+nn(this.body)},en.prototype._size=function(){return ba(this)+13+nn(this.argnames)+nn(this.body)},Yt.prototype._size=function(){let t=2+nn(this.argnames);this.argnames.length===1&&this.argnames[0]instanceof pt||(t+=2);const e=this.is_braceless()?0:nn(this.body)+2;return ba(this)+t+e},$t.prototype._size=()=>2,Xn.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3},gi.prototype._size=function(){return this.value.length},an.prototype._size=function(){return this.value?7:6},ha.prototype._size=()=>6,wr.prototype._size=function(){return this.label?6:5},ro.prototype._size=function(){return this.label?9:8},Rt.prototype._size=()=>4,qn.prototype._size=function(){return 8+nn(this.body)},Jr.prototype._size=function(){return 5+nn(this.body)},So.prototype._size=function(){return 8+nn(this.body)},vr.prototype._size=()=>3,Zr.prototype._size=function(){let t=7+nn(this.body);return this.argname&&(t+=2),t},Wo.prototype._size=function(){return 7+nn(this.body)},Nn.prototype._size=function(){return 4+nn(this.definitions)},Qr.prototype._size=function(){return 4+nn(this.definitions)},ei.prototype._size=function(){return 6+nn(this.definitions)},Lt.prototype._size=function(){return this.value?1:0},ti.prototype._size=function(){return this.name?4:0},Rr.prototype._size=function(){let t=6;return this.imported_name&&(t+=1),(this.imported_name||this.imported_names)&&(t+=5),this.imported_names&&(t+=2+nn(this.imported_names)),t},Ui.prototype._size=()=>11,kn.prototype._size=function(){let t=7+(this.is_default?8:0);return this.exported_value&&(t+=this.exported_value._size()),this.exported_names&&(t+=2+nn(this.exported_names)),this.module_name&&(t+=5),t},Ve.prototype._size=function(){return this.optional?4+nn(this.args):2+nn(this.args)},rr.prototype._size=function(){return 6+nn(this.args)},lt.prototype._size=function(){return nn(this.expressions)},Wt.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},Hr.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},xn.prototype._size=function(){return this.optional?4:2},Xt.prototype._size=function(){return this.operator==="typeof"?7:this.operator==="void"?5:this.operator.length},ae.prototype._size=function(t){if(this.operator==="in")return 4;let e=this.operator.length;return(this.operator==="+"||this.operator==="-")&&this.right instanceof Xt&&this.right.operator===this.operator&&(e+=1),this.needs_parens(t)&&(e+=2),e},tt.prototype._size=()=>3,St.prototype._size=function(){return 2+nn(this.elements)},Nt.prototype._size=function(t){let e=2;return ai(t)&&(e+=2),e+nn(this.properties)};const $u=t=>typeof t=="string"?t.length:0;Jt.prototype._size=function(){return $u(this.key)+1};const Vu=t=>t?7:0;Gr.prototype._size=function(){return 5+Vu(this.static)+$u(this.key)},ri.prototype._size=function(){return 5+Vu(this.static)+$u(this.key)},Bn.prototype._size=function(){return Vu(this.static)+$u(this.key)+ba(this)},vi.prototype._size=function(){return Bn.prototype._size.call(this)+1},ni.prototype._size=bi.prototype._size=function(){return Bn.prototype._size.call(this)+4},ii.prototype._size=function(){return 5},yt.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},Yn.prototype._size=function(){return 8+nn(this.body)},fr.prototype._size=function(){return Vu(this.static)+(typeof this.key=="string"?this.key.length+2:0)+(this.value?1:0)},Ei.prototype._size=function(){return fr.prototype._size.call(this)+1},pt.prototype._size=function(){return Uu&&this.thedef&&!this.thedef.unmangleable(Uu)?1:this.name.length},Hi.prototype._size=function(){return this.name.length},xe.prototype._size=In.prototype._size=function(){return this.name==="arguments"?9:pt.prototype._size.call(this)},Xo.prototype._size=()=>10,To.prototype._size=function(){return this.name.length},Ai.prototype._size=function(){return this.name.length},Vn.prototype._size=()=>4,Jo.prototype._size=()=>5,dt.prototype._size=function(){return this.value.length+2},Qe.prototype._size=function(){const{value:t}=this;return t===0?1:t>0&&Math.floor(t)===t?Math.floor(Math.log10(t)+1):t.toString().length},si.prototype._size=function(){return this.value.length},hr.prototype._size=function(){return this.value.toString().length},pr.prototype._size=()=>4,ma.prototype._size=()=>3,tn.prototype._size=()=>6,Ir.prototype._size=()=>0,so.prototype._size=()=>8,Er.prototype._size=()=>4,Gi.prototype._size=()=>5,gr.prototype._size=()=>6,br.prototype._size=()=>6;const ao=1,Hl=2,Gl=4,Kl=8,va=16,ns=32,Co=256,zl=512,Wl=1024,Py=Co|zl|Wl,jn=(t,e)=>t.flags&e,Sr=(t,e)=>{t.flags|=e},rs=(t,e)=>{t.flags&=~e};function Xl(t,e){return e instanceof lt?t.push(...e.expressions):t.push(e),t}function nt(t,e){if(e.length==1)return e[0];if(e.length==0)throw new Error("trying to create a sequence with length zero!");return P(lt,t,{expressions:e.reduce(Xl,[])})}function ir(t,e){switch(typeof t){case"string":return P(dt,e,{value:t});case"number":return isNaN(t)?P(ma,e):isFinite(t)?1/t<0?P(We,e,{operator:"-",expression:P(Qe,e,{value:-t})}):P(Qe,e,{value:t}):t<0?P(We,e,{operator:"-",expression:P(so,e)}):P(so,e);case"bigint":return P(si,e,{value:t.toString()});case"boolean":return P(t?Er:Gi,e);case"undefined":return P(tn,e);default:if(t===null)return P(pr,e,{value:null});if(t instanceof RegExp)return P(hr,e,{value:{source:vu(t.source),flags:t.flags}});throw new Error(gu("Can't handle constant of type: {type}",{type:typeof t}))}}function zi(t,e){return t.size()>e.size()?e:t}function Fy(t,e){return zi(P(je,t,{body:t}),P(je,e,{body:e})).body}function Tr(t,e,n){return ai(t)?Fy(e,n):zi(e,n)}function hd(t){if(t instanceof Tt)return t.getValue();if(!(t instanceof We&&t.operator=="void"&&t.expression instanceof Tt))return t}function pd(t,e){if(e=hd(e),!(e instanceof Ce)){var n;if(t instanceof St){var r=t.elements;if(e=="length")return ir(r.length,t);typeof e=="number"&&e in r&&(n=r[e])}else if(t instanceof Nt){e=""+e;for(var a=t.properties,c=a.length;--c>=0;){var h=a[c];if(!(h instanceof Jt))return;!n&&a[c].key===e&&(n=a[c].value)}}return n instanceof xe&&n.fixed_value()||n}}function ql(t,e){var n=!1,r=new Ln(function(a){if(n||a instanceof qe)return!0;if(a instanceof Yr&&r.loopcontrol_target(a)===t)return n=!0});return e instanceof Qn&&r.push(e),r.push(t),t.body.walk(r),n}function Oo(t,e,n){if(t instanceof We&&t.operator=="delete"||t instanceof Ve&&t.expression===e&&(n instanceof gn||n instanceof Xe||n instanceof xe&&n.name=="eval")){const r=P(Qe,e,{value:0});return nt(e,[r,n])}else return n}function ju(t){return t instanceof Yt||t instanceof Ft}function Yl(t){return t.TYPE!="Call"?!1:t.expression instanceof Ft||Yl(t.expression)}function uo(t){return t===null||t instanceof wt?!0:t instanceof Ze?t.body.length==0:!1}const dd=Ct("Infinity NaN undefined");function md(t){return t instanceof so||t instanceof ma||t instanceof tn}function Jl(t,e){if(!(t instanceof xe))return!1;for(var n=t.definition().orig,r=n.length;--r>=0;)if(n[r]instanceof e)return!0}function Zl(t){return!(t instanceof Kr||t instanceof en||t instanceof Qr||t instanceof ei||t instanceof kn||t instanceof Rr)}function Hu(t){if(t===null)return[];if(t instanceof Ze)return t.body;if(t instanceof wt)return[];if(t instanceof Rn)return[t];throw new Error("Can't convert thing to statement array")}function _d(t,e){const n=r=>{if(r instanceof xe&&e.includes(r.definition()))return dr};return ad(t,(r,a)=>{if(r instanceof qe&&r!==t){var c=a.parent();return c instanceof Ve&&c.expression===r&&!(r.async||r.is_generator)?void 0:Fn(r,n)?dr:!0}})}function Ql(t,e){for(var n,r=0;n=t.parent(r);r++)if(n instanceof Ge||n instanceof yt){var a=n.name;if(a&&a.definition()===e)return!0}return!1}function yd(t,e){return e.top_retain&&t instanceof en&&jn(t,Wl)&&t.name&&e.top_retain(t.name.definition())}function ef(t){const e=new Map;for(var n of Object.keys(t))e.set(n,Ct(t[n]));return(a,c)=>{const h=e.get(a);return h!=null&&h.has(c)}}const Gu=new Set(["Number","String","Array","Object","Function","Promise"]),ko=["constructor","toString","valueOf"],gd=ef({Array:["at","flat","includes","indexOf","join","lastIndexOf","slice",...ko],Boolean:ko,Function:ko,Number:["toExponential","toFixed","toPrecision",...ko],Object:ko,RegExp:["test",...ko],String:["at","charAt","charCodeAt","charPointAt","concat","endsWith","fromCharCode","fromCodePoint","includes","indexOf","italics","lastIndexOf","localeCompare","match","matchAll","normalize","padStart","padEnd","repeat","replace","replaceAll","search","slice","split","startsWith","substr","substring","repeat","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimEnd","trimStart",...ko]}),bd=ef({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","hasOwn","keys"],String:["fromCharCode"]}),Ly=ef({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]}),ui=t=>t instanceof xe&&t.definition().undeclared,tf=Ct("<<< >> << & | ^ ~"),Do=Ct("&& || ??"),Ku=Ct("delete ++ --");(function(t){const e=Ct("! delete"),n=Ct("in instanceof == != === !== < <= >= >");t(Ce,vt),t(We,function(){return e.has(this.operator)}),t(ae,function(){return n.has(this.operator)||Do.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),t(tt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),t(at,function(){return this.operator=="="&&this.right.is_boolean()}),t(lt,function(){return this.tail_node().is_boolean()}),t(Er,er),t(Gi,er)})(function(t,e){t.DEFMETHOD("is_boolean",e)}),function(t){t(Ce,vt),t(Qe,er);const e=Ct("+ - ~ ++ --");t(Xt,function(){return e.has(this.operator)&&!(this.expression instanceof si)});const n=Ct("- * / % & | ^ << >> >>>");t(ae,function(r){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(r)&&this.right.is_number(r)}),t(at,function(r){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(r)}),t(lt,function(r){return this.tail_node().is_number(r)}),t(tt,function(r){return this.consequent.is_number(r)&&this.alternative.is_number(r)})}(function(t,e){t.DEFMETHOD("is_number",e)}),function(t){t(Ce,vt),t(Qe,function(){return this.value===(this.value|0)}),t(We,function(){return this.operator=="~"?this.expression.is_number():this.operator==="+"?this.expression.is_32_bit_integer():!1}),t(ae,function(){return tf.has(this.operator)})}(function(t,e){t.DEFMETHOD("is_32_bit_integer",e)}),function(t){t(Ce,vt),t(dt,er),t(Xn,er),t(We,function(){return this.operator=="typeof"}),t(ae,function(e){return this.operator=="+"&&(this.left.is_string(e)||this.right.is_string(e))}),t(at,function(e){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(e)}),t(lt,function(e){return this.tail_node().is_string(e)}),t(tt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(t,e){t.DEFMETHOD("is_string",e)});function ci(t,e){return jn(t,Kl)||t instanceof tn||t instanceof We&&t.operator=="void"&&!t.expression.has_side_effects(e)}function vd(t,e){let n;return t instanceof pr||ci(t,e)||t instanceof xe&&(n=t.definition().fixed)instanceof Ce&&li(n,e)}function is(t,e){return t instanceof Xe||t instanceof Ve?t.optional&&vd(t.expression,e)||is(t.expression,e):t instanceof gn?is(t.expression,e):!1}function li(t,e){return vd(t,e)?!0:is(t,e)}(function(t){t(Ce,er),t(wt,vt),t(Tt,vt),t(Vn,vt);function e(n,r){for(var a=n.length;--a>=0;)if(n[a].has_side_effects(r))return!0;return!1}t(Tn,function(n){return e(this.body,n)}),t(Ve,function(n){return!this.is_callee_pure(n)&&(!this.expression.is_call_pure(n)||this.expression.has_side_effects(n))?!0:e(this.args,n)}),t(qn,function(n){return this.expression.has_side_effects(n)||e(this.body,n)}),t(Jr,function(n){return this.expression.has_side_effects(n)||e(this.body,n)}),t(vr,function(n){return this.body.has_side_effects(n)||this.bcatch&&this.bcatch.has_side_effects(n)||this.bfinally&&this.bfinally.has_side_effects(n)}),t(Rt,function(n){return this.condition.has_side_effects(n)||this.body&&this.body.has_side_effects(n)||this.alternative&&this.alternative.has_side_effects(n)}),t(Ui,vt),t(Qn,function(n){return this.body.has_side_effects(n)}),t(je,function(n){return this.body.has_side_effects(n)}),t(Ge,vt),t(yt,function(n){return this.extends&&this.extends.has_side_effects(n)?!0:e(this.properties,n)}),t(Yn,function(n){return e(this.body,n)}),t(ae,function(n){return this.left.has_side_effects(n)||this.right.has_side_effects(n)}),t(at,er),t(tt,function(n){return this.condition.has_side_effects(n)||this.consequent.has_side_effects(n)||this.alternative.has_side_effects(n)}),t(Xt,function(n){return Ku.has(this.operator)||this.expression.has_side_effects(n)}),t(xe,function(n){return!this.is_declared(n)&&!Gu.has(this.name)}),t(Hi,vt),t(In,vt),t(Nt,function(n){return e(this.properties,n)}),t(cn,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.value&&this.value.has_side_effects(n)}),t(fr,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.static&&this.value&&this.value.has_side_effects(n)}),t(Bn,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(Gr,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(ri,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(St,function(n){return e(this.elements,n)}),t(Wt,function(n){return li(this,n)?this.expression.has_side_effects(n):!this.optional&&this.expression.may_throw_on_access(n)?!0:this.expression.has_side_effects(n)}),t(xn,function(n){if(li(this,n))return this.expression.has_side_effects(n);if(!this.optional&&this.expression.may_throw_on_access(n))return!0;var r=this.property.has_side_effects(n);return r&&this.optional?!0:r||this.expression.has_side_effects(n)}),t(gn,function(n){return this.expression.has_side_effects(n)}),t(lt,function(n){return e(this.expressions,n)}),t(un,function(n){return e(this.definitions,n)}),t(Lt,function(){return this.value}),t(gi,vt),t(Xn,function(n){return e(this.segments,n)})})(function(t,e){t.DEFMETHOD("has_side_effects",e)}),function(t){t(Ce,er),t(Tt,vt),t(wt,vt),t(Ge,vt),t(In,vt),t(Vn,vt),t(Ui,vt);function e(n,r){for(var a=n.length;--a>=0;)if(n[a].may_throw(r))return!0;return!1}t(yt,function(n){return this.extends&&this.extends.may_throw(n)?!0:e(this.properties,n)}),t(Yn,function(n){return e(this.body,n)}),t(St,function(n){return e(this.elements,n)}),t(at,function(n){return this.right.may_throw(n)?!0:!n.has_directive("use strict")&&this.operator=="="&&this.left instanceof xe?!1:this.left.may_throw(n)}),t(ae,function(n){return this.left.may_throw(n)||this.right.may_throw(n)}),t(Tn,function(n){return e(this.body,n)}),t(Ve,function(n){return li(this,n)?!1:e(this.args,n)?!0:this.is_callee_pure(n)?!1:this.expression.may_throw(n)?!0:!(this.expression instanceof Ge)||e(this.expression.body,n)}),t(Jr,function(n){return this.expression.may_throw(n)||e(this.body,n)}),t(tt,function(n){return this.condition.may_throw(n)||this.consequent.may_throw(n)||this.alternative.may_throw(n)}),t(un,function(n){return e(this.definitions,n)}),t(Rt,function(n){return this.condition.may_throw(n)||this.body&&this.body.may_throw(n)||this.alternative&&this.alternative.may_throw(n)}),t(Qn,function(n){return this.body.may_throw(n)}),t(Nt,function(n){return e(this.properties,n)}),t(cn,function(n){return this.value?this.value.may_throw(n):!1}),t(fr,function(n){return this.computed_key()&&this.key.may_throw(n)||this.static&&this.value&&this.value.may_throw(n)}),t(Bn,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(Gr,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(ri,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(an,function(n){return this.value&&this.value.may_throw(n)}),t(lt,function(n){return e(this.expressions,n)}),t(je,function(n){return this.body.may_throw(n)}),t(Wt,function(n){return li(this,n)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)}),t(xn,function(n){return li(this,n)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)||this.property.may_throw(n)}),t(gn,function(n){return this.expression.may_throw(n)}),t(qn,function(n){return this.expression.may_throw(n)||e(this.body,n)}),t(xe,function(n){return!this.is_declared(n)&&!Gu.has(this.name)}),t(Hi,vt),t(vr,function(n){return this.bcatch?this.bcatch.may_throw(n):this.body.may_throw(n)||this.bfinally&&this.bfinally.may_throw(n)}),t(Xt,function(n){return this.operator=="typeof"&&this.expression instanceof xe?!1:this.expression.may_throw(n)}),t(Lt,function(n){return this.value?this.value.may_throw(n):!1})}(function(t,e){t.DEFMETHOD("may_throw",e)}),function(t){function e(n){let r=!0;return Fn(this,a=>{if(a instanceof xe){if(jn(this,va))return r=!1,dr;var c=a.definition();if(Dl(c,this.enclosed)&&!this.variables.has(c.name)){if(n){var h=n.find_variable(a);if(c.undeclared?!h:h===c)return r="f",!0}return r=!1,dr}return!0}if(a instanceof Vn&&this instanceof Yt)return r=!1,dr}),r}t(Ce,vt),t(Tt,er),t(yt,function(n){if(this.extends&&!this.extends.is_constant_expression(n))return!1;for(const r of this.properties)if(r.computed_key()&&!r.key.is_constant_expression(n)||r.static&&r.value&&!r.value.is_constant_expression(n)||r instanceof Yn)return!1;return e.call(this,n)}),t(Ge,e),t(Xt,function(){return this.expression.is_constant_expression()}),t(ae,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),t(St,function(){return this.elements.every(n=>n.is_constant_expression())}),t(Nt,function(){return this.properties.every(n=>n.is_constant_expression())}),t(cn,function(){return!!(!(this.key instanceof Ce)&&this.value&&this.value.is_constant_expression())})}(function(t,e){t.DEFMETHOD("is_constant_expression",e)}),function(t){Ce.DEFMETHOD("may_throw_on_access",function(n){return!n.option("pure_getters")||this._dot_throw(n)});function e(n){return/strict/.test(n.option("pure_getters"))}t(Ce,e),t(pr,er),t(tn,er),t(Tt,vt),t(St,vt),t(Nt,function(n){if(!e(n))return!1;for(var r=this.properties.length;--r>=0;)if(this.properties[r]._dot_throw(n))return!0;return!1}),t(yt,vt),t(cn,vt),t(Gr,er),t(ht,function(n){return this.expression._dot_throw(n)}),t(Ft,vt),t(Yt,vt),t($i,vt),t(We,function(){return this.operator=="void"}),t(ae,function(n){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(n)||this.right._dot_throw(n))}),t(at,function(n){return this.logical?!0:this.operator=="="&&this.right._dot_throw(n)}),t(tt,function(n){return this.consequent._dot_throw(n)||this.alternative._dot_throw(n)}),t(Wt,function(n){return e(n)?this.property=="prototype"?!(this.expression instanceof Ft||this.expression instanceof yt):!0:!1}),t(gn,function(n){return this.expression._dot_throw(n)}),t(lt,function(n){return this.tail_node()._dot_throw(n)}),t(xe,function(n){if(this.name==="arguments"&&this.scope instanceof Ge)return!1;if(jn(this,Kl))return!0;if(!e(n)||ui(this)&&this.is_declared(n)||this.is_immutable())return!1;var r=this.fixed_value();return!r||r._dot_throw(n)})}(function(t,e){t.DEFMETHOD("_dot_throw",e)});function wo(t,e){if(e instanceof Xt&&Ku.has(e.operator))return e.expression;if(e instanceof at&&e.left===t||e instanceof Wn&&e.init===t)return t}(function(t){function e(r){return P(We,r,{operator:"!",expression:r})}function n(r,a,c){var h=e(r);if(c){var d=P(je,a,{body:a});return zi(h,d)===d?a:h}return zi(h,a)}t(Ce,function(){return e(this)}),t(Rn,function(){throw new Error("Cannot negate a statement")}),t(Ft,function(){return e(this)}),t(yt,function(){return e(this)}),t(Yt,function(){return e(this)}),t(We,function(){return this.operator=="!"?this.expression:e(this)}),t(lt,function(r){var a=this.expressions.slice();return a.push(a.pop().negate(r)),nt(this,a)}),t(tt,function(r,a){var c=this.clone();return c.consequent=c.consequent.negate(r),c.alternative=c.alternative.negate(r),n(this,c,a)}),t(ae,function(r,a){var c=this.clone(),h=this.operator;if(r.option("unsafe_comps"))switch(h){case"<=":return c.operator=">",c;case"<":return c.operator=">=",c;case">=":return c.operator="<",c;case">":return c.operator="<=",c}switch(h){case"==":return c.operator="!=",c;case"!=":return c.operator="==",c;case"===":return c.operator="!==",c;case"!==":return c.operator="===",c;case"&&":return c.operator="||",c.left=c.left.negate(r,a),c.right=c.right.negate(r),n(this,c,a);case"||":return c.operator="&&",c.left=c.left.negate(r,a),c.right=c.right.negate(r),n(this,c,a)}return e(this)})})(function(t,e){t.DEFMETHOD("negate",function(n,r){return e.call(this,n,r)})}),function(t){function e(n){return P(We,n,{operator:"~",expression:n})}t(Ce,function(){return e(this)}),t(Qe,function(){const n=~this.value;return n.toString().length>this.value.toString().length?e(this):P(Qe,this,{value:n})}),t(We,function(n){return this.operator=="~"&&(n||this.expression.is_32_bit_integer())?this.expression:e(this)})}(function(t,e){t.DEFMETHOD("bitwise_negate",e)});var My=Ct("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");Ve.DEFMETHOD("is_callee_pure",function(t){if(t.option("unsafe")){var e=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(t);if(e.expression&&e.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared))return!1;if(ui(e)&&My.has(e.name)||e instanceof Wt&&ui(e.expression)&&bd(e.expression.name,e.property))return!0}return this instanceof rr&&t.option("pure_new")||t.option("side_effects")&&ur(this,Bl)?!0:!t.pure_funcs(this)}),Ce.DEFMETHOD("is_call_pure",vt),Wt.DEFMETHOD("is_call_pure",function(t){if(!t.option("unsafe"))return;const e=this.expression;let n;return e instanceof St?n="Array":e.is_boolean()?n="Boolean":e.is_number(t)?n="Number":e instanceof hr?n="RegExp":e.is_string(t)?n="String":this.may_throw_on_access(t)||(n="Object"),n!=null&&gd(n,this.property)});const Pr=t=>t&&t.aborts();(function(t){t(Rn,to),t(fa,yo);function e(){for(var n=0;n<this.body.length;n++)if(Pr(this.body[n]))return this.body[n];return null}t(Rr,to),t(Ze,e),t(Bi,e),t(Kr,function(){for(const n of this.properties)if(n instanceof Yn&&n.aborts())return n;return null}),t(Yn,e),t(Rt,function(){return this.alternative&&Pr(this.body)&&Pr(this.alternative)&&this})})(function(t,e){t.DEFMETHOD("aborts",e)}),Ce.DEFMETHOD("contains_this",function(){return Fn(this,t=>{if(t instanceof Vn)return dr;if(t!==this&&t instanceof qe&&!(t instanceof Yt))return!0})});function os(t,e,n,r,a,c){var h=e.parent(a),d=wo(n,h);if(d)return d;if(!c&&h instanceof Ve&&h.expression===n&&!(r instanceof Yt)&&!(r instanceof yt)&&!h.is_callee_pure(t)&&(!(r instanceof Ft)||!(h instanceof rr)&&r.contains_this()))return!0;if(h instanceof St)return os(t,e,h,h,a+1);if(h instanceof Jt&&n===h.value){var v=e.parent(a+1);return os(t,e,v,v,a+2)}if(h instanceof Xe&&h.expression===n){var S=pd(r,h.property);return!c&&os(t,e,h,S,a+1)}}function Hn(t,e){t.DEFMETHOD("_eval",e)}const ss=Symbol("This AST_Chain is nullish");Ce.DEFMETHOD("evaluate",function(t){if(!t.option("evaluate"))return this;var e=this._eval(t,1);if(!e||e instanceof RegExp)return e;if(typeof e=="function"||typeof e=="object"||e==ss)return this;if(typeof e=="string"){const n=this.size(t);if(e.length+2>n)return this}return e});var By=Ct("! ~ - + void");Ce.DEFMETHOD("is_constant",function(){return this instanceof Tt?!(this instanceof hr):this instanceof We&&this.expression instanceof Tt&&By.has(this.operator)}),Hn(Rn,function(){throw new Error(gu("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),Hn(Ge,yo),Hn(yt,yo),Hn(Ce,yo),Hn(Tt,function(){return this.getValue()});const Uy=typeof BigInt=="function";Hn(si,function(){return Uy?BigInt(this.value):this}),Hn(hr,function(t){let e=t.evaluated_regexps.get(this.value);if(e===void 0&&zp(this.value.source)){try{const{source:n,flags:r}=this.value;e=new RegExp(n,r)}catch{e=null}t.evaluated_regexps.set(this.value,e)}return e||this}),Hn(Xn,function(){return this.segments.length!==1?this:this.segments[0].value}),Hn(Ft,function(t){if(t.option("unsafe")){var e=function(){};return e.node=this,e.toString=()=>this.print_to_string(),e}return this}),Hn(St,function(t,e){if(t.option("unsafe")){for(var n=[],r=0,a=this.elements.length;r<a;r++){var c=this.elements[r],h=c._eval(t,e);if(c===h)return this;n.push(h)}return n}return this}),Hn(Nt,function(t,e){if(t.option("unsafe")){for(var n={},r=0,a=this.properties.length;r<a;r++){var c=this.properties[r];if(c instanceof ht)return this;var h=c.key;if(h instanceof pt)h=h.name;else if(h instanceof Ce&&(h=h._eval(t,e),h===c.key))return this;if(typeof Object.prototype[h]=="function")return this;if(!(c.value instanceof Ft)&&(n[h]=c.value._eval(t,e),n[h]===c.value))return this}return n}return this});var $y=Ct("! typeof void");Hn(We,function(t,e){var n=this.expression;if(t.option("typeofs")&&this.operator=="typeof"&&(n instanceof Ge||n instanceof xe&&n.fixed_value()instanceof Ge))return"function";if($y.has(this.operator)||e++,n=n._eval(t,e),n===this.expression)return this;switch(this.operator){case"!":return!n;case"typeof":return n instanceof RegExp?this:typeof n;case"void":return;case"~":return~n;case"-":return-n;case"+":return+n}return this});var Vy=Ct("&& || ?? === !==");const jy=Ct("== != === !=="),Ed=t=>typeof t=="object"||typeof t=="function"||typeof t=="symbol";Hn(ae,function(t,e){Vy.has(this.operator)||e++;var n=this.left._eval(t,e);if(n===this.left)return this;var r=this.right._eval(t,e);if(r===this.right)return this;if(n!=null&&r!=null&&jy.has(this.operator)&&Ed(n)&&Ed(r)&&typeof n==typeof r)return this;if(typeof n=="bigint"!=(typeof r=="bigint")||typeof n=="bigint"&&(this.operator===">>>"||this.operator==="/"&&Number(r)===0))return this;var a;switch(this.operator){case"&&":a=n&&r;break;case"||":a=n||r;break;case"??":a=n??r;break;case"|":a=n|r;break;case"&":a=n&r;break;case"^":a=n^r;break;case"+":a=n+r;break;case"*":a=n*r;break;case"**":a=n**r;break;case"/":a=n/r;break;case"%":a=n%r;break;case"-":a=n-r;break;case"<<":a=n<<r;break;case">>":a=n>>r;break;case">>>":a=n>>>r;break;case"==":a=n==r;break;case"===":a=n===r;break;case"!=":a=n!=r;break;case"!==":a=n!==r;break;case"<":a=n<r;break;case"<=":a=n<=r;break;case">":a=n>r;break;case">=":a=n>=r;break;default:return this}return typeof a=="number"&&isNaN(a)&&t.find_parent(yr)?this:a}),Hn(tt,function(t,e){var n=this.condition._eval(t,e);if(n===this.condition)return this;var r=n?this.consequent:this.alternative,a=r._eval(t,e);return a===r?this:a});const nf=new Set;Hn(xe,function(t,e){if(nf.has(this))return this;var n=this.fixed_value();if(!n)return this;nf.add(this);const r=n._eval(t,e);if(nf.delete(this),r===n)return this;if(r&&typeof r=="object"){var a=this.definition().escaped;if(a&&e>a)return this}return r});const Sd={Array,Math,Number,Object,String},Hy=new Set(["dotAll","global","ignoreCase","multiline","sticky","unicode"]);Hn(Xe,function(t,e){let n=this.expression._eval(t,e+1);if(n===ss||this.optional&&n==null)return ss;if(this.property==="length"){if(typeof n=="string")return n.length;if(n instanceof St&&n.elements.every(v=>!(v instanceof ht))&&n.elements.every(v=>!v.has_side_effects(t)))return n.elements.length}if(t.option("unsafe")){var r=this.property;if(r instanceof Ce&&(r=r._eval(t,e),r===this.property))return this;var a=this.expression;if(ui(a)){var c,h=a.name==="hasOwnProperty"&&r==="call"&&(c=t.parent()&&t.parent().args)&&c&&c[0]&&c[0].evaluate(t);if(h=h instanceof Wt?h.expression:h,h==null||h.thedef&&h.thedef.undeclared)return this.clone();if(!Ly(a.name,r))return this;n=Sd[a.name]}else{if(n instanceof RegExp){if(r=="source")return vu(n.source);if(r=="flags"||Hy.has(r))return n[r]}if(!n||n===a||!tr(n,r))return this;if(typeof n=="function")switch(r){case"name":return n.node.name?n.node.name.name:"";case"length":return n.node.length_property();default:return this}}return n[r]}return this}),Hn(gn,function(t,e){const n=this.expression._eval(t,e);return n===ss?void 0:n===this.expression?this:n}),Hn(Ve,function(t,e){var n=this.expression;const r=n._eval(t,e);if(r===ss||this.optional&&r==null)return ss;if(t.option("unsafe")&&n instanceof Xe){var a=n.property;if(a instanceof Ce&&(a=a._eval(t,e),a===n.property))return this;var c,h=n.expression;if(ui(h)){var d=h.name==="hasOwnProperty"&&a==="call"&&this.args[0]&&this.args[0].evaluate(t);if(d=d instanceof Wt?d.expression:d,d==null||d.thedef&&d.thedef.undeclared)return this.clone();if(!bd(h.name,a))return this;c=Sd[h.name]}else{if(c=h._eval(t,e+1),c===h||!c)return this;if(!gd(c.constructor.name,a))return this}for(var v=[],S=0,C=this.args.length;S<C;S++){var T=this.args[S],k=T._eval(t,e);if(T===k)return this;if(T instanceof Ge)return this;v.push(k)}try{return c[a].apply(c,v)}catch{}}return this}),Hn(rr,yo);function rn(t,e){t.DEFMETHOD("drop_side_effect_free",e)}function Ea(t,e,n){var r=t.length;if(!r)return null;for(var a=[],c=!1,h=0;h<r;h++){var d=t[h].drop_side_effect_free(e,n);c|=d!==t[h],d&&(a.push(d),n=!1)}return c?a.length?a:null:t}rn(Ce,yo),rn(Tt,to),rn(Vn,to),rn(Ve,function(t,e){if(is(this,t))return this.expression.drop_side_effect_free(t,e);if(!this.is_callee_pure(t)){if(this.expression.is_call_pure(t)){var n=this.args.slice();return n.unshift(this.expression.expression),n=Ea(n,t,e),n&&nt(this,n)}if(ju(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone();return r.expression.process_expression(!1,t),r}return this}var a=Ea(this.args,t,e);return a&&nt(this,a)}),rn(Mi,to),rn(Ft,to),rn(Yt,to),rn(yt,function(t){const e=[];if(this.is_self_referential()&&this.has_side_effects(t))return this;const n=this.extends&&this.extends.drop_side_effect_free(t);n&&e.push(n);for(const a of this.properties)if(a instanceof Yn){if(a.has_side_effects(t))return this}else{const c=a.drop_side_effect_free(t);c&&e.push(c)}if(!e.length)return null;const r=nt(this,e);return this instanceof Kr?P(je,this,{body:r}):r}),rn(fr,function(t){const e=this.computed_key()&&this.key.drop_side_effect_free(t),n=this.static&&this.value&&this.value.drop_side_effect_free(t);return e&&n?nt(this,[e,n]):e||n||null}),rn(ae,function(t,e){var n=this.right.drop_side_effect_free(t);if(!n)return this.left.drop_side_effect_free(t,e);if(Do.has(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}else{var a=this.left.drop_side_effect_free(t,e);return a?nt(this,[a,n]):this.right.drop_side_effect_free(t,e)}}),rn(at,function(t){if(this.logical)return this;var e=this.left;if(e.has_side_effects(t)||t.has_directive("use strict")&&e instanceof Xe&&e.expression.is_constant())return this;for(Sr(this,ns);e instanceof Xe;)e=e.expression;return e.is_constant_expression(t.find_parent(qe))?this.right.drop_side_effect_free(t):this}),rn(tt,function(t){var e=this.consequent.drop_side_effect_free(t),n=this.alternative.drop_side_effect_free(t);if(e===this.consequent&&n===this.alternative)return this;if(!e)return n?P(ae,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(t);if(!n)return P(ae,this,{operator:"&&",left:this.condition,right:e});var r=this.clone();return r.consequent=e,r.alternative=n,r}),rn(Xt,function(t,e){if(Ku.has(this.operator))return this.expression.has_side_effects(t)?rs(this,ns):Sr(this,ns),this;if(this.operator=="typeof"&&this.expression instanceof xe)return null;var n=this.expression.drop_side_effect_free(t,e);return e&&n&&Yl(n)?n===this.expression&&this.operator=="!"?this:n.negate(t,e):n}),rn(xe,function(t){return this.is_declared(t)||Gu.has(this.name)?null:this}),rn(Nt,function(t,e){var n=Ea(this.properties,t,e);return n&&nt(this,n)}),rn(cn,function(t,e){const r=this instanceof Jt&&this.key instanceof Ce&&this.key.drop_side_effect_free(t,e),a=this.value&&this.value.drop_side_effect_free(t,e);return r&&a?nt(this,[r,a]):r||a}),rn(Bn,function(){return this.computed_key()?this.key:null}),rn(Gr,function(){return this.computed_key()?this.key:null}),rn(ri,function(){return this.computed_key()?this.key:null}),rn(St,function(t,e){var n=Ea(this.elements,t,e);return n&&nt(this,n)}),rn(Wt,function(t,e){return is(this,t)?this.expression.drop_side_effect_free(t,e):!this.optional&&this.expression.may_throw_on_access(t)?this:this.expression.drop_side_effect_free(t,e)}),rn(xn,function(t,e){if(is(this,t))return this.expression.drop_side_effect_free(t,e);if(!this.optional&&this.expression.may_throw_on_access(t))return this;var n=this.property.drop_side_effect_free(t);if(n&&this.optional)return this;var r=this.expression.drop_side_effect_free(t,e);return r&&n?nt(this,[r,n]):r||n}),rn(gn,function(t,e){return this.expression.drop_side_effect_free(t,e)}),rn(lt,function(t){var e=this.tail_node(),n=e.drop_side_effect_free(t);if(n===e)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),r.length?nt(this,r):P(Qe,this,{value:0})}),rn(ht,function(t,e){return this.expression.drop_side_effect_free(t,e)}),rn(gi,to),rn(Xn,function(t){var e=Ea(this.segments,t,ai);return e&&nt(this,e)});const Gy=/keep_assign/;qe.DEFMETHOD("drop_unused",function(t){if(!t.option("unused")||t.has_directive("use asm")||!this.variables)return;var e=this;if(e.pinned())return;var n=!(e instanceof zt)||t.toplevel.funcs,r=!(e instanceof zt)||t.toplevel.vars;const a=Gy.test(t.option("unused"))?vt:function(L){if(L instanceof at&&!L.logical&&(jn(L,ns)||L.operator=="="))return L.left;if(L instanceof Xt&&jn(L,ns))return L.expression};var c=new Map,h=new Map;e instanceof zt&&t.top_retain&&e.variables.forEach(function(L){t.top_retain(L)&&c.set(L.id,L)});var d=new Map,v=new Map,S=new Set,C=this,T=new Ln(function(L,b){if(L instanceof Ge&&L.uses_arguments&&!T.has_directive("use strict")&&L.argnames.forEach(function(O){if(O instanceof In){var R=O.definition();c.set(R.id,R)}}),L===e)return;if(L instanceof yt&&L.has_side_effects(t)&&(L.is_self_referential()&&S.add(L),L.visit_nondeferred_class_parts(T)),L instanceof en||L instanceof Kr){var y=L.name.definition();return(T.parent()instanceof kn||!n&&C===e)&&y.global&&c.set(y.id,y),bu(v,y.id,L),!0}const g=C===e;if(L instanceof Pn&&g&&bu(d,L.definition().id,L),L instanceof un&&g){const O=T.parent()instanceof kn;return L.definitions.forEach(function(R){if(R.name instanceof Vi&&bu(d,R.name.definition().id,R),(O||!r)&&Fn(R.name,U=>{if(U instanceof In){const X=U.definition();X.global&&c.set(X.id,X)}}),R.name instanceof $t&&R.walk(T),R.name instanceof In&&R.value){var w=R.name.definition();bu(v,w.id,R.value),!w.chained&&R.name.fixed_value()===R.value&&h.set(w.id,R),R.value.has_side_effects(t)&&R.value.walk(T)}}),!0}return B(L,b)});e.walk(T),T=new Ln(B),c.forEach(function(L){var b=v.get(L.id);b&&b.forEach(function(y){y.walk(T)})}),S.forEach(function(L){L.walk(T)});var k=new mr(function(b,y,g){var O=k.parent();if(r){const re=a(b);if(re instanceof xe){var w=re.definition(),R=c.has(w.id);if(b instanceof at){if(!R||h.has(w.id)&&h.get(w.id)!==b)return Oo(O,b,b.right.transform(k))}else if(!R)return g?qt.skip:P(Qe,b,{value:0})}}if(C===e){var w;if(b.name&&(b instanceof Si&&!zo(t.option("keep_classnames"),(w=b.name.definition()).name)||b instanceof Ft&&!zo(t.option("keep_fnames"),(w=b.name.definition()).name))&&(!c.has(w.id)||w.orig.length>1)&&(b.name=null),b instanceof Ge&&!(b instanceof Mi))for(var U=!t.option("keep_fargs"),X=b.argnames,ee=X.length;--ee>=0;){var z=X[ee];z instanceof ht&&(z=z.expression),z instanceof Nr&&(z=z.left),!(z instanceof $t)&&!c.has(z.definition().id)?(Sr(z,ao),U&&X.pop()):U=!1}if(b instanceof Kr&&b!==e){const re=b.name.definition();if(y(b,this),!(re.global&&!n||c.has(re.id))){const fe=b.drop_side_effect_free(t);return fe??(re.eliminated++,g?qt.skip:P(wt,b))}return b}if(b instanceof en&&b!==e){const re=b.name.definition();if(!(re.global&&!n||c.has(re.id)))return re.eliminated++,g?qt.skip:P(wt,b)}if(b instanceof un&&!(O instanceof Wn&&O.init===b)){var Y=!(O instanceof zt)&&!(b instanceof Nn),$=[],ne=[],Q=[],_e=[];switch(b.definitions.forEach(function(re){re.value&&(re.value=re.value.transform(k));var de=re.name instanceof $t,fe=de?new ts(null,{name:"<destructure>"}):re.name.definition();if(Y&&fe.global)return Q.push(re);if(!(r||Y)||de&&(re.name.names.length||re.name.is_array||t.option("pure_getters")!=!0)||c.has(fe.id)){if(re.value&&h.has(fe.id)&&h.get(fe.id)!==re&&(re.value=re.value.drop_side_effect_free(t)),re.name instanceof Vi){var Oe=d.get(fe.id);if(Oe.length>1&&(!re.value||fe.orig.indexOf(re.name)>fe.eliminated)){if(re.value){var Ie=P(xe,re.name,re.name);fe.references.push(Ie);var ve=P(at,re,{operator:"=",logical:!1,left:Ie,right:re.value});h.get(fe.id)===re&&h.set(fe.id,ve),_e.push(ve.transform(k))}Ko(Oe,re),fe.eliminated++;return}}re.value?(_e.length>0&&(Q.length>0?(_e.push(re.value),re.value=nt(re.value,_e)):$.push(P(je,b,{body:nt(b,_e)})),_e=[]),Q.push(re)):ne.push(re)}else if(fe.orig[0]instanceof zr){var Ue=re.value&&re.value.drop_side_effect_free(t);Ue&&_e.push(Ue),re.value=null,ne.push(re)}else{var Ue=re.value&&re.value.drop_side_effect_free(t);Ue&&_e.push(Ue),fe.eliminated++}}),(ne.length>0||Q.length>0)&&(b.definitions=ne.concat(Q),$.push(b)),_e.length>0&&$.push(P(je,b,{body:nt(b,_e)})),$.length){case 0:return g?qt.skip:P(wt,b);case 1:return $[0];default:return g?qt.splice($):P(Ze,b,{body:$})}}if(b instanceof An){y(b,this);var ge;return b.init instanceof Ze&&(ge=b.init,b.init=ge.body.pop(),ge.body.push(b)),b.init instanceof je?b.init=b.init.body:uo(b.init)&&(b.init=null),ge?g?qt.splice(ge.body):ge:b}if(b instanceof Qn&&b.body instanceof An){if(y(b,this),b.body instanceof Ze){var ge=b.body;return b.body=ge.body.pop(),ge.body.push(b),g?qt.splice(ge.body):ge}return b}if(b instanceof Ze)return y(b,this),g&&b.body.every(Zl)?qt.splice(b.body):b;if(b instanceof qe&&!(b instanceof Yn)){const re=C;return C=b,y(b,this),C=re,b}}});e.transform(k);function B(L,b){var y;const g=a(L);if(g instanceof xe&&!Jl(L.left,ji)&&e.variables.get(g.name)===(y=g.definition()))return L instanceof at&&(L.right.walk(T),!y.chained&&L.left.fixed_value()===L.right&&h.set(y.id,L)),!0;if(L instanceof xe){if(y=L.definition(),!c.has(y.id)&&(c.set(y.id,y),y.orig[0]instanceof zr)){const R=y.scope.is_block_scope()&&y.scope.get_defun_scope().variables.get(y.name);R&&c.set(R.id,R)}return!0}if(L instanceof yt)return b(),!0;if(L instanceof qe&&!(L instanceof Yn)){var O=C;return C=L,b(),C=O,!0}}});function ln(t,e){t.DEFMETHOD("reduce_vars",e)}ln(Ce,_r);function rf(t,e){e.assignments=0,e.chained=!1,e.direct_access=!1,e.escaped=0,e.recursive_refs=0,e.references=[],e.single_use=void 0,e.scope.pinned()||e.orig[0]instanceof Pn&&e.scope.uses_arguments?e.fixed=!1:e.orig[0]instanceof io||!t.exposed(e)?e.fixed=e.init:e.fixed=!1}function of(t,e,n){n.variables.forEach(function(r){rf(e,r),r.fixed===null?(t.defs_to_safe_ids.set(r.id,t.safe_ids),Wi(t,r,!0)):r.fixed&&(t.loop_ids.set(r.id,t.in_loop),Wi(t,r,!0))})}function Ro(t,e){e.block_scope&&e.block_scope.variables.forEach(n=>{rf(t,n)})}function bn(t){t.safe_ids=Object.create(t.safe_ids)}function Dn(t){t.safe_ids=Object.getPrototypeOf(t.safe_ids)}function Wi(t,e,n){t.safe_ids[e.id]=n}function Td(t,e){if(e.single_use=="m")return!1;if(t.safe_ids[e.id]){if(e.fixed==null){var n=e.orig[0];if(n instanceof Pn||n.name=="arguments")return!1;e.fixed=P(tn,n)}return!0}return e.fixed instanceof en}function sf(t,e,n,r){if(e.fixed===void 0)return!0;let a;return e.fixed===null&&(a=t.defs_to_safe_ids.get(e.id))?(a[e.id]=!1,t.defs_to_safe_ids.delete(e.id),!0):!tr(t.safe_ids,e.id)||!Td(t,e)||e.fixed===!1||e.fixed!=null&&(!r||e.references.length>e.assignments)?!1:e.fixed instanceof en?r instanceof Ce&&e.fixed.parent_scope===n:e.orig.every(c=>!(c instanceof io||c instanceof Ti||c instanceof oi))}function Ky(t,e,n){return e.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&t.loop_ids.get(n.id)===t.in_loop}function zy(t){return t?t.is_constant()||t instanceof Ge||t instanceof Vn:!1}function Sa(t,e,n,r,a,c=0,h=1){var d=t.parent(c);if(!(a&&(a.is_constant()||a instanceof Si))){if(d instanceof at&&(d.operator==="="||d.logical)&&r===d.right||d instanceof Ve&&(r!==d.expression||d instanceof rr)||d instanceof lr&&r===d.value&&r.scope!==e.scope||d instanceof Lt&&r===d.value||d instanceof br&&r===d.value&&r.scope!==e.scope){h>1&&!(a&&a.is_constant_expression(n))&&(h=1),(!e.escaped||e.escaped>h)&&(e.escaped=h);return}else if(d instanceof St||d instanceof gr||d instanceof ae&&Do.has(d.operator)||d instanceof tt&&r!==d.condition||d instanceof ht||d instanceof lt&&r===d.tail_node())Sa(t,e,n,d,d,c+1,h);else if(d instanceof Jt&&r===d.value){var v=t.parent(c+1);Sa(t,e,n,v,v,c+2,h)}else if(d instanceof Xe&&r===d.expression&&(a=pd(a,d.property),Sa(t,e,n,d,a,c+1,h+1),a))return;c>0||d instanceof lt&&r!==d.tail_node()||d instanceof je||(e.direct_access=!0)}}const af=t=>Fn(t,e=>{if(e instanceof pt){var n=e.definition();n&&(e instanceof xe&&n.references.push(e),n.fixed=!1)}});ln(Mi,function(t,e,n){return bn(t),of(t,n,this),e(),Dn(t),!0}),ln(at,function(t,e,n){var r=this;if(r.left instanceof $t){af(r.left);return}const a=()=>{if(r.logical)return r.left.walk(t),bn(t),r.right.walk(t),Dn(t),!0};var c=r.left;if(!(c instanceof xe))return a();var h=c.definition(),d=sf(t,h,c.scope,r.right);if(h.assignments++,!d)return a();var v=h.fixed;if(!v&&r.operator!="="&&!r.logical)return a();var S=r.operator=="=",C=S?r.right:r;return os(n,t,r,C,0)?a():(h.references.push(c),r.logical||(S||(h.chained=!0),h.fixed=S?function(){return r.right}:function(){return P(ae,r,{operator:r.operator.slice(0,-1),left:v instanceof Ce?v:v(),right:r.right})}),r.logical?(Wi(t,h,!1),bn(t),r.right.walk(t),Dn(t),!0):(Wi(t,h,!1),r.right.walk(t),Wi(t,h,!0),Sa(t,h,c.scope,r,C,0,1),!0))}),ln(ae,function(t){if(Do.has(this.operator))return this.left.walk(t),bn(t),this.right.walk(t),Dn(t),!0}),ln(Tn,function(t,e,n){Ro(n,this)}),ln(Jr,function(t){return bn(t),this.expression.walk(t),Dn(t),bn(t),bo(this,t),Dn(t),!0}),ln(yt,function(t,e){return rs(this,va),bn(t),e(),Dn(t),!0}),ln(Yn,function(t,e,n){Ro(n,this)}),ln(tt,function(t){return this.condition.walk(t),bn(t),this.consequent.walk(t),Dn(t),bn(t),this.alternative.walk(t),Dn(t),!0}),ln(gn,function(t,e){const n=t.safe_ids;return e(),t.safe_ids=n,!0}),ln(Ve,function(t){this.expression.walk(t),this.optional&&bn(t);for(const e of this.args)e.walk(t);return!0}),ln(Xe,function(t){if(this.optional)return this.expression.walk(t),bn(t),this.property instanceof Ce&&this.property.walk(t),!0}),ln(So,function(t,e){return bn(t),e(),Dn(t),!0});function Wy(t,e,n){rs(this,va),bn(t),of(t,n,this);var r;return!this.name&&!this.uses_arguments&&!this.pinned()&&(r=t.parent())instanceof Ve&&r.expression===this&&!r.args.some(a=>a instanceof ht)&&this.argnames.every(a=>a instanceof pt)&&this.argnames.forEach((a,c)=>{if(a.definition){var h=a.definition();h.orig.length>1||(h.fixed===void 0&&(!this.uses_arguments||t.has_directive("use strict"))?(h.fixed=function(){return r.args[c]||P(tn,r)},t.loop_ids.set(h.id,t.in_loop),Wi(t,h,!0)):h.fixed=!1)}}),e(),Dn(t),Ad(this),!0}function Ad(t){const e=[];Fn(t,c=>{if(c!==t&&(c instanceof en&&e.push(c),c instanceof qe||c instanceof je))return!0});const n=new Set,r=new Set,a=[];for(const c of e){const h=c.name.definition(),d=e.some(v=>v!==c&&v.enclosed.indexOf(h)!==-1);for(const v of c.enclosed)if(!(v.fixed===!1||v===h||v.scope.get_defun_scope()!==t)&&!(v.assignments===0&&v.orig.length===1&&v.orig[0]instanceof Ti)){if(d){v.fixed=!1;continue}a.push({defun:c,def:v,fname_def:h}),n.add(v.id),n.add(h.id),r.add(c)}}if(a.length){const c=[],h=new Set,d=new Map;let v;t.walk(v=new Ln((S,C)=>{if(S instanceof en&&r.has(S)){const T=c.length;C();const k=c.length;return d.set(S,{start:T,end:k}),!0}if(S instanceof pt&&S.thedef){const T=S.definition().id;n.has(T)&&((S instanceof In||wo(S,v))&&h.add(c.length),c.push(T))}}));for(const{def:S,defun:C,fname_def:T}of a){const k=d.get(C),B=(g,O=0,R=!1)=>{let w=O;for(;w=c.indexOf(g,w),w!==-1;)if(w>=k.start&&w<k.end){w=k.end;continue}else if(R&&!h.has(w)){w++;continue}else break;return w},L=B(T.id),b=B(S.id,L+1,!0);L!=-1&&b!=-1&&b>L&&(S.fixed=!1)}}}ln(Ge,Wy),ln(yi,function(t,e,n){Ro(n,this);const r=t.in_loop;return t.in_loop=this,bn(t),this.body.walk(t),ql(this)&&(Dn(t),bn(t)),this.condition.walk(t),Dn(t),t.in_loop=r,!0}),ln(An,function(t,e,n){Ro(n,this),this.init&&this.init.walk(t);const r=t.in_loop;return t.in_loop=this,bn(t),this.condition&&this.condition.walk(t),this.body.walk(t),this.step&&(ql(this)&&(Dn(t),bn(t)),this.step.walk(t)),Dn(t),t.in_loop=r,!0}),ln(Wn,function(t,e,n){Ro(n,this),af(this.init),this.object.walk(t);const r=t.in_loop;return t.in_loop=this,bn(t),this.body.walk(t),Dn(t),t.in_loop=r,!0}),ln(Rt,function(t){return this.condition.walk(t),bn(t),this.body.walk(t),Dn(t),this.alternative&&(bn(t),this.alternative.walk(t),Dn(t)),!0}),ln(Qn,function(t){return bn(t),this.body.walk(t),Dn(t),!0}),ln(zr,function(){this.definition().fixed=!1}),ln(xe,function(t,e,n){var r=this.definition();r.references.push(this),r.references.length==1&&!r.fixed&&r.orig[0]instanceof Ti&&t.loop_ids.set(r.id,t.in_loop);var a;r.fixed===void 0||!Td(t,r)?r.fixed=!1:r.fixed&&(a=this.fixed_value(),a instanceof Ge&&Ql(t,r)?r.recursive_refs++:a&&!n.exposed(r)&&Ky(t,n,r)?r.single_use=a instanceof Ge&&!a.pinned()||a instanceof yt||r.scope===this.scope&&a.is_constant_expression():r.single_use=!1,os(n,t,this,a,0,zy(a))&&(r.single_use?r.single_use="m":r.fixed=!1)),Sa(t,r,this.scope,this,a,0,1)}),ln(zt,function(t,e,n){return this.globals.forEach(function(r){rf(n,r)}),of(t,n,this),e(),Ad(this),!0}),ln(vr,function(t,e,n){return Ro(n,this),bn(t),this.body.walk(t),Dn(t),this.bcatch&&(bn(t),this.bcatch.walk(t),Dn(t)),this.bfinally&&this.bfinally.walk(t),!0}),ln(Xt,function(t){var e=this;if(!(e.operator!=="++"&&e.operator!=="--")){var n=e.expression;if(n instanceof xe){var r=n.definition(),a=sf(t,r,n.scope,!0);if(r.assignments++,!!a){var c=r.fixed;if(c)return r.references.push(n),r.chained=!0,r.fixed=function(){return P(ae,e,{operator:e.operator.slice(0,-1),left:P(We,e,{operator:"+",expression:c instanceof Ce?c:c()}),right:P(Qe,e,{value:1})})},Wi(t,r,!0),!0}}}}),ln(Lt,function(t,e){var n=this;if(n.name instanceof $t){af(n.name);return}var r=n.name.definition();if(n.value){if(sf(t,r,n.name.scope,n.value))return r.fixed=function(){return n.value},t.loop_ids.set(r.id,t.in_loop),Wi(t,r,!1),e(),Wi(t,r,!0),!0;r.fixed=!1}}),ln(Li,function(t,e,n){Ro(n,this);const r=t.in_loop;return t.in_loop=this,bn(t),e(),Dn(t),t.in_loop=r,!0});function uf(t){return t instanceof Vr&&t.body instanceof Ze?t.body:t}function xd(t){if(t instanceof Vn)return!0;if(t instanceof xe)return t.definition().orig[0]instanceof oi;if(t instanceof Xe){if(t=t.expression,t instanceof xe){if(t.is_immutable())return!1;t=t.fixed_value()}return t?t instanceof hr?!1:t instanceof Tt?!0:xd(t):!0}return!1}function Xy(t){var e=[];return t.definitions.forEach(function(n){n.name instanceof In?(n.value=null,e.push(n)):n.declarations_as_names().forEach(r=>{e.push(P(Lt,n,{name:r,value:null}))})}),e.length?P(Nn,t,{definitions:e}):null}function No(t,e,n){Fn(e,r=>{if(r instanceof Nn){const a=Xy(r);return a&&n.push(a),!0}if(r instanceof en&&(r===e||!t.has_directive("use strict")))return n.push(r===e?r:P(Nn,r,{definitions:[P(Lt,r,{name:P(Vi,r.name,r.name),value:null})]})),!0;if(r instanceof kn||r instanceof Rr)return n.push(r),!0;if(r instanceof qe)return!0})}function zu(t,e){const n=e.find_scope(),r=n.get_defun_scope(),{in_loop:a,in_try:c}=v();var h,d=10;do h=!1,C(t),e.option("dead_code")&&k(t,e),e.option("if_return")&&T(t,e),e.sequences_limit>0&&(L(t,e),y(t,e)),e.option("join_vars")&&O(t),e.option("collapse_vars")&&S(t,e);while(h&&d-- >0);function v(){var R=e.self(),w=0,U=!1,X=!1;do if(R instanceof Vr)U=!0;else{if(R instanceof qe)break;R instanceof Iu&&(X=!0)}while(R=e.parent(w++));return{in_loop:U,in_try:X}}function S(R,w){if(n.pinned()||r.pinned())return R;for(var U,X=[],ee=R.length,z=new mr(function(j){if(ue)return j;if(!ie)return j!==$[ne]?j:(ne++,ne<$.length?Et(j):(ie=!0,ge=De(j,0),ge===j&&(ue=!0),j));var Ne=z.parent();if(j instanceof at&&(j.logical||j.operator!="="&&de.equivalent_to(j.left))||j instanceof gr||j instanceof Ve&&de instanceof Xe&&de.equivalent_to(j.expression)||(j instanceof Ve||j instanceof Xe)&&j.optional||j instanceof Fi||j instanceof $t||j instanceof ht&&j.expression instanceof pt&&(j.expression instanceof Vn||j.expression.definition().references.length>1)||j instanceof Vr&&!(j instanceof An)||j instanceof Yr||j instanceof vr||j instanceof yr||j instanceof br||j instanceof kn||j instanceof yt||Ne instanceof An&&j!==Ne.init||!ve&&j instanceof xe&&!j.is_declared(w)&&!Gu.has(j)||j instanceof xe&&Ne instanceof Ve&&ur(Ne,xo)||j instanceof cn&&j.key instanceof Ce)return ue=!0,j;if(!re&&(!Oe||!ve)&&(Ne instanceof ae&&Do.has(Ne.operator)&&Ne.left!==j||Ne instanceof tt&&Ne.condition!==j||Ne instanceof Rt&&Ne.condition!==j)&&(re=Ne),be&&!(j instanceof In)&&de.equivalent_to(j)&&!xi(z.find_scope()||n,fe)){if(re)return ue=!0,j;if(wo(j,Ne))return _e&&Ae++,j;if(Ae++,_e&&Q instanceof Lt)return j;if(h=ue=!0,Q instanceof $i)return P(We,Q,Q);if(Q instanceof Lt){var Be=Q.name.definition(),Me=Q.value;return Be.references.length-Be.replaced==1&&!w.exposed(Be)?(Be.replaced++,J&&md(Me)?Me.transform(w):Oo(Ne,j,Me)):P(at,Q,{operator:"=",logical:!1,left:P(xe,Q.name,Q.name),right:Me})}return rs(Q,ns),Q}var ut;return(j instanceof Ve||j instanceof lr&&(Ie||de instanceof Xe||Pt(de))||j instanceof Xe&&(Ie||j.expression.may_throw_on_access(w))||j instanceof xe&&(fe.has(j.name)&&fe.get(j.name).modified||Ie&&Pt(j))||j instanceof Lt&&j.value&&(fe.has(j.name.name)||Ie&&Pt(j.name))||(ut=wo(j.left,j))&&(ut instanceof Xe||fe.has(ut.name))||Ue&&(c?j.has_side_effects(w):fn(j)))&&(ge=j,j instanceof qe&&(ue=!0)),Et(j)},function(j){ue||(ge===j&&(ue=!0),re===j&&(re=null))}),Y=new mr(function(j){if(ue)return j;if(!ie)return j!==$[ne]?j:(ne++,ne<$.length?void 0:(ie=!0,j));if(j instanceof xe&&j.name==Vt.name)return--Ae||(ue=!0),wo(j,Y.parent())?j:(Vt.replaced++,_e.replaced--,Q.value);if(j instanceof So||j instanceof qe)return j});--ee>=0;){ee==0&&w.option("unused")&&Zt();var $=[];for(se(R[ee]);X.length>0;){$=X.pop();var ne=0,Q=$[$.length-1],_e=null,ge=null,re=null,de=bt(Q);if(!(!de||xd(de)||de.has_side_effects(w))){var fe=kt(Q),Oe=Qt(de);de instanceof xe&&fe.set(de.name,{def:de.definition(),modified:!1});var Ie=dn(Q),ve=jt(),Ue=Q.may_throw(w),J=Q.name instanceof Pn,ie=J,ue=!1,Ae=0,be=!U||!ie;if(!be){for(let j=w.self().argnames.lastIndexOf(Q.name)+1;!ue&&j<U.length;j++)U[j].transform(z);be=!0}for(var At=ee;!ue&&At<R.length;At++)R[At].transform(z);if(_e){var Vt=Q.name.definition();if(ue&&Vt.references.length-Vt.replaced>Ae)Ae=!1;else{ue=!1,ne=0,ie=J;for(var At=ee;!ue&&At<R.length;At++)R[At].transform(Y);_e.single_use=!1}}Ae&&!Un(Q)&&R.splice(ee,1)}}}function Et(j){if(j instanceof qe)return j;if(j instanceof qn){j.expression=j.expression.transform(z);for(var Ne=0,Be=j.body.length;!ue&&Ne<Be;Ne++){var Me=j.body[Ne];if(Me instanceof Jr){if(!ie){if(Me!==$[ne])continue;ne++}if(Me.expression=Me.expression.transform(z),!ve)break}}return ue=!0,j}}function Mt(j,Ne){if(j.global)return!1;let Be=j.scope;for(;Be&&Be!==Ne;){if(Be.variables.has(j.name))return!0;Be=Be.parent_scope}return!1}function gt(j,Ne,Be){var Me=!1,ut=!(j instanceof Yt);return Ne.walk(new Ln(function(on,ft){if(Me)return!0;if(on instanceof xe&&(j.variables.has(on.name)||Mt(on.definition(),j))){var vn=on.definition().scope;if(vn!==r){for(;vn=vn.parent_scope;)if(vn===r)return!0}return Me=!0}if((Be||ut)&&on instanceof Vn)return Me=!0;if(on instanceof qe&&!(on instanceof Yt)){var Cn=ut;return ut=!1,ft(),ut=Cn,!0}})),Me}function Ot(j){return!(j instanceof ht||Fn(j,Be=>{if(Be instanceof gr)return dr}))}function Zt(){var j,Ne=w.self();if(ju(Ne)&&!Ne.name&&!Ne.uses_arguments&&!Ne.pinned()&&(j=w.parent())instanceof Ve&&j.expression===Ne&&j.args.every(Ot)){var Be=w.has_directive("use strict");Be&&!Dl(Be,Ne.body)&&(Be=!1);var Me=Ne.argnames.length;U=j.args.slice(Me);for(var ut=new Set,on=Me;--on>=0;){var ft=Ne.argnames[on],vn=j.args[on];const fi=ft.definition&&ft.definition();if(!(fi&&fi.orig.length>1)&&(U.unshift(P(Lt,ft,{name:ft,value:vn})),!ut.has(ft.name)))if(ut.add(ft.name),ft instanceof ht){var Cn=j.args.slice(on);Cn.every(hn=>!gt(Ne,hn,Be))&&X.unshift([P(Lt,ft,{name:ft.expression,value:P(St,j,{elements:Cn})})])}else vn?(vn instanceof Ge&&vn.pinned()||gt(Ne,vn,Be))&&(vn=null):vn=P(tn,ft).transform(w),vn&&X.unshift([P(Lt,ft,{name:ft,value:vn})])}}}function se(j){if($.push(j),j instanceof at)!j.left.has_side_effects(w)&&!(j.right instanceof gn)&&X.push($.slice()),se(j.right);else if(j instanceof ae)se(j.left),se(j.right);else if(j instanceof Ve&&!ur(j,xo))se(j.expression),j.args.forEach(se);else if(j instanceof Jr)se(j.expression);else if(j instanceof tt)se(j.condition),se(j.consequent),se(j.alternative);else if(j instanceof un){var Ne=j.definitions.length,Be=Ne-200;for(Be<0&&(Be=0);Be<Ne;Be++)se(j.definitions[Be])}else j instanceof Nu?(se(j.condition),j.body instanceof Tn||se(j.body)):j instanceof lr?j.value&&se(j.value):j instanceof An?(j.init&&se(j.init),j.condition&&se(j.condition),j.step&&se(j.step),j.body instanceof Tn||se(j.body)):j instanceof Wn?(se(j.object),j.body instanceof Tn||se(j.body)):j instanceof Rt?(se(j.condition),j.body instanceof Tn||se(j.body),j.alternative&&!(j.alternative instanceof Tn)&&se(j.alternative)):j instanceof lt?j.expressions.forEach(se):j instanceof je?se(j.body):j instanceof qn?(se(j.expression),j.body.forEach(se)):j instanceof Xt?(j.operator=="++"||j.operator=="--")&&X.push($.slice()):j instanceof Lt&&j.value&&!(j.value instanceof gn)&&(X.push($.slice()),se(j.value));$.pop()}function De(j,Ne,Be){var Me=z.parent(Ne);return Me instanceof at?Be&&!Me.logical&&!(Me.left instanceof Xe||fe.has(Me.left.name))?De(Me,Ne+1,Be):j:Me instanceof ae?Be&&(!Do.has(Me.operator)||Me.left===j)?De(Me,Ne+1,Be):j:Me instanceof Ve||Me instanceof Jr?j:Me instanceof tt?Be&&Me.condition===j?De(Me,Ne+1,Be):j:Me instanceof un?De(Me,Ne+1,!0):Me instanceof lr?Be?De(Me,Ne+1,Be):j:Me instanceof Rt?Be&&Me.condition===j?De(Me,Ne+1,Be):j:Me instanceof Vr?j:Me instanceof lt?De(Me,Ne+1,Me.tail_node()!==j):Me instanceof je?De(Me,Ne+1,!0):Me instanceof qn||Me instanceof Lt?j:null}function me(j){var Ne=j.value;if(Ne instanceof xe&&Ne.name!="arguments"){var Be=Ne.definition();if(!Be.undeclared)return _e=Be}}function bt(j){if(j instanceof at&&j.logical)return!1;if(j instanceof Lt&&j.name instanceof In){var Ne=j.name.definition();if(!Dl(j.name,Ne.orig))return;var Be=Ne.references.length-Ne.replaced;if(!Be)return;var Me=Ne.orig.length-Ne.eliminated;if(Me>1&&!(j.name instanceof Pn)||(Be>1?me(j):!w.exposed(Ne)))return P(xe,j.name,j.name)}else{const ut=j instanceof at?j.left:j.expression;return!Jl(ut,io)&&!Jl(ut,qo)&&ut}}function xt(j){return j instanceof at?j.right:j.value}function kt(j){var Ne=new Map;if(j instanceof Xt)return Ne;var Be=new Ln(function(Me){for(var ut=Me;ut instanceof Xe;)ut=ut.expression;if(ut instanceof xe){const on=Ne.get(ut.name);(!on||!on.modified)&&Ne.set(ut.name,{def:ut.definition(),modified:os(w,Be,Me,Me,0)})}});return xt(j).walk(Be),Ne}function Un(j){if(j.name instanceof Pn){var Ne=w.parent(),Be=w.self().argnames,Me=Be.indexOf(j.name);if(Me<0)Ne.args.length=Math.min(Ne.args.length,Be.length-1);else{var ut=Ne.args;ut[Me]&&(ut[Me]=P(Qe,ut[Me],{value:0}))}return!0}var on=!1;return R[ee].transform(new mr(function(ft,vn,Cn){if(on)return ft;if(ft===j||ft.body===j)return on=!0,ft instanceof Lt?(ft.value=ft.name instanceof io?P(tn,ft.value):null,ft):Cn?qt.skip:null},function(ft){if(ft instanceof lt)switch(ft.expressions.length){case 0:return null;case 1:return ft.expressions[0]}}))}function Qt(j){for(;j instanceof Xe;)j=j.expression;return j instanceof xe&&j.definition().scope.get_defun_scope()===r&&!(a&&(fe.has(j.name)||Q instanceof Xt||Q instanceof at&&!Q.logical&&Q.operator!="="))}function dn(j){return j instanceof Xt?Ku.has(j.operator):xt(j).has_side_effects(w)}function jt(){if(Ie)return!1;if(_e)return!0;if(de instanceof xe){var j=de.definition();if(j.references.length-j.replaced==(Q instanceof Lt?1:2))return!0}return!1}function Pt(j){if(!j.definition)return!0;var Ne=j.definition();return Ne.orig.length==1&&Ne.orig[0]instanceof Ti?!1:Ne.scope.get_defun_scope()!==r?!0:Ne.references.some(Be=>Be.scope.get_defun_scope()!==r)}function fn(j,Ne){if(j instanceof at)return fn(j.left,!0);if(j instanceof Xt)return fn(j.expression,!0);if(j instanceof Lt)return j.value&&fn(j.value);if(Ne){if(j instanceof Wt||j instanceof xn)return fn(j.expression,!0);if(j instanceof xe)return j.definition().scope.get_defun_scope()!==r}return!1}function xi(j,Ne){for(const{def:Be}of Ne.values()){const Me=j.find_variable(Be.name);if(Me){if(Me===Be)continue;return!0}}return!1}}function C(R){for(var w=[],U=0;U<R.length;){var X=R[U];X instanceof Ze&&X.body.every(Zl)?(h=!0,C(X.body),R.splice(U,1,...X.body),U+=X.body.length):X instanceof wt?(h=!0,R.splice(U,1)):X instanceof nr?w.indexOf(X.value)<0?(U++,w.push(X.value)):(h=!0,R.splice(U,1)):U++}}function T(R,w){var U=w.self(),X=re(R),ee=U instanceof Ge;const z=Math.min(R.length,500);for(var Y=z;--Y>=0;){var $=R[Y],ne=ve(Y),Q=R[ne];if(ee&&!Q&&$ instanceof an){if(!$.value){h=!0,R.splice(Y,1);continue}if($.value instanceof We&&$.value.operator=="void"){h=!0,R[Y]=P(je,$,{body:$.value.expression});continue}}if($ instanceof Rt){let J,ie;if(J=Pr($.body),fe(J)&&(ie=Ie($.body,J))){J.label&&Ko(J.label.thedef.references,J),h=!0,$=$.clone(),$.condition=$.condition.negate(w),$.body=P(Ze,$,{body:Hu($.alternative).concat(Oe())}),$.alternative=P(Ze,$,{body:ie}),R[Y]=$.transform(w);continue}if(J=Pr($.alternative),fe(J)&&(ie=Ie($.alternative,J))){J.label&&Ko(J.label.thedef.references,J),h=!0,$=$.clone(),$.body=P(Ze,$.body,{body:Hu($.body).concat(Oe())}),$.alternative=P(Ze,$.alternative,{body:ie}),R[Y]=$.transform(w);continue}}if($ instanceof Rt&&$.body instanceof an){var _e=$.body.value;if(!_e&&!$.alternative&&(ee&&!Q||Q instanceof an&&!Q.value)){h=!0,R[Y]=P(je,$.condition,{body:$.condition});continue}if(_e&&!$.alternative&&Q instanceof an&&Q.value){h=!0,$=$.clone(),$.alternative=Q,R[Y]=$.transform(w),R.splice(ne,1);continue}if(_e&&!$.alternative&&(!Q&&ee&&X||Q instanceof an)){h=!0,$=$.clone(),$.alternative=Q||P(an,$,{value:null}),R[Y]=$.transform(w),Q&&R.splice(ne,1);continue}var ge=R[Ue(Y)];if(w.option("sequences")&&ee&&!$.alternative&&ge instanceof Rt&&ge.body instanceof an&&ve(ne)==R.length&&Q instanceof je){h=!0,$=$.clone(),$.alternative=P(Ze,Q,{body:[Q,P(an,Q,{value:null})]}),R[Y]=$.transform(w),R.splice(ne,1);continue}}}function re(J){for(var ie=0,ue=J.length;--ue>=0;){var Ae=J[ue];if(Ae instanceof Rt&&Ae.body instanceof an&&++ie>1)return!0}return!1}function de(J){return!J||J instanceof We&&J.operator=="void"}function fe(J){if(!J)return!1;for(var ie=Y+1,ue=R.length;ie<ue;ie++){var Ae=R[ie];if(Ae instanceof ei||Ae instanceof Qr)return!1}var be=J instanceof Yr?w.loopcontrol_target(J):null;return J instanceof an&&ee&&de(J.value)||J instanceof ro&&U===uf(be)||J instanceof wr&&be instanceof Ze&&U===be}function Oe(){var J=R.slice(Y+1);return R.length=Y+1,J.filter(function(ie){return ie instanceof en?(R.push(ie),!1):!0})}function Ie(J,ie){var ue=Hu(J);if(ie===ue[ue.length-1])return ue=ue.slice(0,-1),ie.value&&ue.push(P(je,ie.value,{body:ie.value.expression})),ue}function ve(J){for(var ie=J+1,ue=R.length;ie<ue;ie++){var Ae=R[ie];if(!(Ae instanceof Nn&&B(Ae)))break}return ie}function Ue(J){for(var ie=J;--ie>=0;){var ue=R[ie];if(!(ue instanceof Nn&&B(ue)))break}return ie}}function k(R,w){for(var U,X=w.self(),ee=0,z=0,Y=R.length;ee<Y;ee++){var $=R[ee];if($ instanceof Yr){var ne=w.loopcontrol_target($);$ instanceof wr&&!(ne instanceof Vr)&&uf(ne)===X||$ instanceof ro&&uf(ne)===X?$.label&&Ko($.label.thedef.references,$):R[z++]=$}else R[z++]=$;if(Pr($)){U=R.slice(ee+1);break}}R.length=z,h=z!=Y,U&&U.forEach(function(Q){No(w,Q,R)})}function B(R){return R.definitions.every(w=>!w.value)}function L(R,w){if(R.length<2)return;var U=[],X=0;function ee(){if(U.length){var Q=nt(U[0],U);R[X++]=P(je,Q,{body:Q}),U=[]}}for(var z=0,Y=R.length;z<Y;z++){var $=R[z];if($ instanceof je){U.length>=w.sequences_limit&&ee();var ne=$.body;U.length>0&&(ne=ne.drop_side_effect_free(w)),ne&&Xl(U,ne)}else $ instanceof un&&B($)||$ instanceof en||ee(),R[X++]=$}ee(),R.length=X,X!=Y&&(h=!0)}function b(R,w){if(!(R instanceof Ze))return R;for(var U=null,X=0,ee=R.body.length;X<ee;X++){var z=R.body[X];if(z instanceof Nn&&B(z))w.push(z);else{if(U||z instanceof ei||z instanceof Qr)return!1;U=z}}return U}function y(R,w){function U(ge){X--,h=!0;var re=ee.body;return nt(re,[re,ge]).transform(w)}for(var X=0,ee,z=0;z<R.length;z++){var Y=R[z];if(ee&&(Y instanceof lr?Y.value=U(Y.value||P(tn,Y).transform(w)):Y instanceof An?Y.init instanceof un||Fn(ee.body,re=>{if(re instanceof qe)return!0;if(re instanceof ae&&re.operator==="in")return dr})||(Y.init?Y.init=U(Y.init):(Y.init=ee.body,X--,h=!0)):Y instanceof Wn?!(Y.init instanceof ei)&&!(Y.init instanceof Qr)&&(Y.object=U(Y.object)):Y instanceof Rt?Y.condition=U(Y.condition):(Y instanceof qn||Y instanceof yr)&&(Y.expression=U(Y.expression))),w.option("conditionals")&&Y instanceof Rt){var $=[],ne=b(Y.body,$),Q=b(Y.alternative,$);if(ne!==!1&&Q!==!1&&$.length>0){var _e=$.length;$.push(P(Rt,Y,{condition:Y.condition,body:ne||P(wt,Y.body),alternative:Q})),$.unshift(X,1),[].splice.apply(R,$),z+=_e,X+=_e+1,ee=null,h=!0;continue}}R[X++]=Y,ee=Y instanceof je?Y:null}R.length=X}function g(R,w){if(R instanceof un){var U=R.definitions[R.definitions.length-1];if(U.value instanceof Nt){var X;if(w instanceof at&&!w.logical?X=[w]:w instanceof lt&&(X=w.expressions.slice()),!!X){var ee=!1;do{var z=X[0];if(!(z instanceof at)||z.operator!="="||!(z.left instanceof Xe))break;var Y=z.left.expression;if(!(Y instanceof xe)||U.name.name!=Y.name||!z.right.is_constant_expression(n))break;var $=z.left.property;if($ instanceof Ce&&($=$.evaluate(e)),$ instanceof Ce)break;$=""+$;var ne=e.option("ecma")<2015&&e.has_directive("use strict")?function(_e){return _e.key!=$&&_e.key&&_e.key.name!=$}:function(_e){return _e.key&&_e.key.name!=$};if(!U.value.properties.every(ne))break;var Q=U.value.properties.filter(function(_e){return _e.key===$})[0];Q?Q.value=new lt({start:Q.start,expressions:[Q.value.clone(),z.right.clone()],end:Q.end}):U.value.properties.push(P(Jt,z,{key:$,value:z.right})),X.shift(),ee=!0}while(X.length);return ee&&X}}}}function O(R){for(var w,U=0,X=-1,ee=R.length;U<ee;U++){var z=R[U],Y=R[X];if(z instanceof un)Y&&Y.TYPE==z.TYPE?(Y.definitions=Y.definitions.concat(z.definitions),h=!0):w&&w.TYPE==z.TYPE&&B(z)?(w.definitions=w.definitions.concat(z.definitions),h=!0):(R[++X]=z,w=z);else if(z instanceof lr)z.value=ne(z.value);else if(z instanceof An){var $=g(Y,z.init);$?(h=!0,z.init=$.length?nt(z.init,$):null,R[++X]=z):Y instanceof Nn&&(!z.init||z.init.TYPE==Y.TYPE)?(z.init&&(Y.definitions=Y.definitions.concat(z.init.definitions)),z.init=Y,R[X]=z,h=!0):w instanceof Nn&&z.init instanceof Nn&&B(z.init)?(w.definitions=w.definitions.concat(z.init.definitions),z.init=null,R[++X]=z,h=!0):R[++X]=z}else if(z instanceof Wn)z.object=ne(z.object);else if(z instanceof Rt)z.condition=ne(z.condition);else if(z instanceof je){var $=g(Y,z.body);if($){if(h=!0,!$.length)continue;z.body=nt(z.body,$)}R[++X]=z}else z instanceof qn||z instanceof yr?z.expression=ne(z.expression):R[++X]=z}R.length=X+1;function ne(Q){R[++X]=z;var _e=g(Y,Q);return _e?(h=!0,_e.length?nt(Q,_e):Q instanceof lt?Q.tail_node().left:Q.left):Q}}}function qy(t){for(var e,n=0;e=t.parent(n++);){if(e instanceof Rn)return!1;if(e instanceof St||e instanceof Jt||e instanceof Nt)return!0}return!1}function cf(t,e){for(const n of e.enclosed){if(e.variables.has(n.name))continue;const r=t.find_variable(n.name);if(r){if(r===n)continue;return!0}}return!1}function Yy(t,e){if(t.orig.length===1&&e){const n=e.size(),r=t.name.length;return n>r}return!0}function Jy(t,e){if(e.in_computed_key())return t;const n=e.parent(),r=t.definition(),a=e.find_scope();let c=t.fixed_value();if(e.top_retain&&r.global&&e.top_retain(r)&&Yy(r,c))return r.fixed=!1,r.single_use=!1,t;let h=r.single_use&&!(n instanceof Ve&&n.is_callee_pure(e)||ur(n,xo))&&!(n instanceof kn&&c instanceof Ge&&c.name);if(h&&c instanceof Ce&&(h=!c.has_side_effects(e)&&!c.may_throw(e)),c instanceof yt&&r.scope!==t.scope)return t;if(h&&(c instanceof Ge||c instanceof yt)){if(yd(c,e))h=!1;else if(r.scope!==t.scope&&(r.escaped==1||jn(c,va)||qy(e)||!e.option("reduce_funcs")))h=!1;else if(Ql(e,r))h=!1;else if((r.scope!==t.scope||r.orig[0]instanceof Pn)&&(h=c.is_constant_expression(t.scope),h=="f")){var d=t.scope;do(d instanceof en||ju(d))&&Sr(d,va);while(d=d.parent_scope)}}if(h&&(c instanceof Ge||c instanceof yt)&&(h=r.scope===t.scope&&!cf(a,c)||n instanceof Ve&&n.expression===t&&!cf(a,c)&&!(c.name&&c.name.definition().recursive_refs>0)),h&&c){if(c instanceof Kr&&(Sr(c,Co),c=P(Si,c,c)),c instanceof en&&(Sr(c,Co),c=P(Ft,c,c)),r.recursive_refs>0&&c.name instanceof Ti){const S=c.name.definition();let C=c.variables.get(c.name.name),T=C&&C.orig[0];T instanceof oi||(T=P(oi,c.name,c.name),T.scope=c,c.name=T,C=c.def_function(T)),Fn(c,k=>{k instanceof xe&&k.definition()===S&&(k.thedef=C,C.references.push(k))})}return(c instanceof Ge||c instanceof yt)&&c.parent_scope!==a&&(c=c.clone(!0,e.get_toplevel()),a.add_child_scope(c)),c.optimize(e)}if(c){let S;if(c instanceof Vn)!(r.orig[0]instanceof Pn)&&r.references.every(C=>r.scope===C.scope)&&(S=c);else{var v=c.evaluate(e);v!==c&&(e.option("unsafe_regexp")||!(v instanceof RegExp))&&(S=ir(v,c))}if(S){const C=t.size(e),T=S.size(e);let k=0;if(e.option("unused")&&!e.exposed(r)&&(k=(C+2+c.size(e))/(r.references.length-r.assignments)),T<=C+k)return S}}return t}function Zy(t,e){if(e.in_computed_key())return t;var n=t.expression,r=n,a=t.args.every(z=>!(z instanceof ht));if(e.option("reduce_vars")&&r instanceof xe&&!ur(t,xo)){const z=r.fixed_value();if(yd(z,e)||!e.toplevel.funcs&&n.definition().global)return t;r=z}var c=r instanceof Ge,h=c&&r.body[0],d=c&&!r.is_generator&&!r.async,v=d&&e.option("inline")&&!t.is_callee_pure(e);if(v&&h instanceof an){let z=h.value;if(!z||z.is_constant_expression()){z?z=z.clone(!0):z=P(tn,t);const Y=t.args.concat(z);return nt(t,Y).optimize(e)}if(r.argnames.length===1&&r.argnames[0]instanceof Pn&&t.args.length<2&&!(t.args[0]instanceof ht)&&z instanceof xe&&z.name===r.argnames[0].name){const Y=(t.args[0]||P(tn)).optimize(e);let $;return Y instanceof Xe&&($=e.parent())instanceof Ve&&$.expression===t?nt(t,[P(Qe,t,{value:0}),Y]):Y}}if(v){var S,C,T=-1;let z,Y,$;if(a&&!r.uses_arguments&&!(e.parent()instanceof yt)&&!(r.name&&r instanceof Ft)&&(Y=y(h))&&(n===r||ur(t,Ul)||e.option("unused")&&(z=n.definition()).references.length==1&&!Ql(e,z)&&r.is_constant_expression(n.scope))&&!ur(t,Bl|xo)&&!r.contains_this()&&R()&&($=e.find_scope())&&!cf($,r)&&!function(){let Q=0,_e;for(;_e=e.parent(Q++);){if(_e instanceof Nr)return!0;if(_e instanceof Tn)break}return!1}()&&!(S instanceof yt))return Sr(r,Co),$.add_child_scope(r),nt(t,ee(Y)).optimize(e)}if(v&&ur(t,Ul))return Sr(r,Co),r=P(r.CTOR===en?Ft:r.CTOR,r,r),r=r.clone(!0),r.figure_out_scope({},{parent_scope:e.find_scope(),toplevel:e.get_toplevel()}),P(Ve,t,{expression:r,args:t.args}).optimize(e);if(d&&e.option("side_effects")&&r.body.every(uo)){var B=t.args.concat(P(tn,t));return nt(t,B).optimize(e)}if(e.option("negate_iife")&&e.parent()instanceof je&&Yl(t))return t.negate(e,!0);var L=t.evaluate(e);if(L!==t)return L=ir(L,t).optimize(e),Tr(e,L,t);return t;function b(z){if(!z)return P(tn,t);if(z instanceof an)return z.value?z.value.clone(!0):P(tn,t);if(z instanceof je)return P(We,z,{operator:"void",expression:z.body.clone(!0)})}function y(z){var Y=r.body,$=Y.length;if(e.option("inline")<3)return $==1&&b(z);z=null;for(var ne=0;ne<$;ne++){var Q=Y[ne];if(Q instanceof Nn){if(z&&!Q.definitions.every(_e=>!_e.value))return!1}else{if(z)return!1;Q instanceof wt||(z=Q)}}return b(z)}function g(z,Y){for(var $=0,ne=r.argnames.length;$<ne;$++){var Q=r.argnames[$];if(Q instanceof Nr){if(jn(Q.left,ao))continue;return!1}if(Q instanceof $t)return!1;if(Q instanceof ht){if(jn(Q.expression,ao))continue;return!1}if(!jn(Q,ao)){if(!Y||z.has(Q.name)||dd.has(Q.name)||S.conflicting_def(Q.name))return!1;C&&C.push(Q.definition())}}return!0}function O(z,Y){for(var $=r.body.length,ne=0;ne<$;ne++){var Q=r.body[ne];if(Q instanceof Nn){if(!Y)return!1;for(var _e=Q.definitions.length;--_e>=0;){var ge=Q.definitions[_e].name;if(ge instanceof $t||z.has(ge.name)||dd.has(ge.name)||S.conflicting_def(ge.name))return!1;C&&C.push(ge.definition())}}}return!0}function R(){var z=new Set;do if(S=e.parent(++T),S.is_block_scope()&&S.block_scope&&S.block_scope.variables.forEach(function(ne){z.add(ne.name)}),S instanceof Zr)S.argname&&z.add(S.argname.name);else if(S instanceof Vr)C=[];else if(S instanceof xe&&S.fixed_value()instanceof qe)return!1;while(!(S instanceof qe));var Y=!(S instanceof zt)||e.toplevel.vars,$=e.option("inline");return!O(z,$>=3&&Y)||!g(z,$>=2&&Y)?!1:!C||C.length==0||!_d(r,C)}function w(z,Y,$,ne){var Q=$.definition();S.variables.has($.name)||(S.variables.set($.name,Q),S.enclosed.push(Q),z.push(P(Lt,$,{name:$,value:null})));var ge=P(xe,$,$);Q.references.push(ge),ne&&Y.push(P(at,t,{operator:"=",logical:!1,left:ge,right:ne.clone()}))}function U(z,Y){for(var $=r.argnames.length,ne=t.args.length;--ne>=$;)Y.push(t.args[ne]);for(ne=$;--ne>=0;){var Q=r.argnames[ne],_e=t.args[ne];if(jn(Q,ao)||!Q.name||S.conflicting_def(Q.name))_e&&Y.push(_e);else{var ge=P(Vi,Q,Q);Q.definition().orig.push(ge),!_e&&C&&(_e=P(tn,t)),w(z,Y,ge,_e)}}z.reverse(),Y.reverse()}function X(z,Y){for(var $=Y.length,ne=0,Q=r.body.length;ne<Q;ne++){var _e=r.body[ne];if(_e instanceof Nn)for(var ge=0,re=_e.definitions.length;ge<re;ge++){var de=_e.definitions[ge],fe=de.name;if(w(z,Y,fe,de.value),C&&r.argnames.every(ve=>ve.name!=fe.name)){var Oe=r.variables.get(fe.name),Ie=P(xe,fe,fe);Oe.references.push(Ie),Y.splice($++,0,P(at,de,{operator:"=",logical:!1,left:Ie,right:P(tn,fe)}))}}}}function ee(z){var Y=[],$=[];if(U(Y,$),X(Y,$),$.push(z),Y.length){const ne=S.body.indexOf(e.parent(T-1))+1;S.body.splice(ne,0,P(Nn,r,{definitions:Y}))}return $.map(ne=>ne.clone(!0))}}(function(t){function e(n,r){if(n instanceof Ce)return n instanceof Tt||(n=n.clone(!0)),P(n.CTOR,r,n);if(Array.isArray(n))return P(St,r,{elements:n.map(function(h){return e(h,r)})});if(n&&typeof n=="object"){var a=[];for(var c in n)tr(n,c)&&a.push(P(Jt,r,{key:c,value:e(n[c],r)}));return P(Nt,r,{properties:a})}return ir(n,r)}zt.DEFMETHOD("resolve_defines",function(n){return n.option("global_defs")?(this.figure_out_scope({ie8:n.option("ie8")}),this.transform(new mr(function(r){var a=r._find_defs(n,"");if(a){for(var c=0,h=r,d;(d=this.parent(c++))&&!(!(d instanceof Xe)||d.expression!==h);)h=d;if(!wo(h,d))return a}}))):this}),t(Ce,_r),t(gn,function(n,r){return this.expression._find_defs(n,r)}),t(Wt,function(n,r){return this.expression._find_defs(n,"."+this.property+r)}),t(In,function(){this.global()}),t(xe,function(n,r){if(this.global()){var a=n.option("global_defs"),c=this.name+r;if(tr(a,c))return e(a[c],this)}}),t(Ui,function(n,r){var a=n.option("global_defs"),c="import.meta"+r;if(tr(a,c))return e(a[c],this)})})(function(t,e){t.DEFMETHOD("_find_defs",e)});class Cd extends Ln{constructor(e,{false_by_default:n=!1,mangle_options:r=!1}){super(),e.defaults!==void 0&&!e.defaults&&(n=!0),this.options=_i(e,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,lhs_constants:!n,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,pure_new:!1,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!!(e&&e.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var a=this.options.global_defs;if(typeof a=="object")for(var c in a)c[0]==="@"&&tr(a,c)&&(a[c.slice(1)]=la(a[c],{expression:!0}));this.options.inline===!0&&(this.options.inline=3);var h=this.options.pure_funcs;typeof h=="function"?this.pure_funcs=h:this.pure_funcs=h?function(C){return!h.includes(C.expression.print_to_string())}:er;var d=this.options.top_retain;d instanceof RegExp?this.top_retain=function(C){return d.test(C.name)}:typeof d=="function"?this.top_retain=d:d&&(typeof d=="string"&&(d=d.split(/,/)),this.top_retain=function(C){return d.includes(C.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var v=this.options.toplevel;this.toplevel=typeof v=="string"?{funcs:/funcs/.test(v),vars:/vars/.test(v)}:{funcs:v,vars:v};var S=this.options.sequences;this.sequences_limit=S==1?800:S|0,this.evaluated_regexps=new Map,this._toplevel=void 0,this._mangle_options=r&&Bu(r)}mangle_options(){var e=this._mangle_options&&this._mangle_options.nth_identifier||ga,n=this._mangle_options&&this._mangle_options.module||this.option("module");return{ie8:this.option("ie8"),nth_identifier:e,module:n}}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global){for(var n=0,r=e.orig.length;n<r;n++)if(!this.toplevel[e.orig[n]instanceof Ti?"funcs":"vars"])return!0}return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e=this.self(),n=0,r;r=this.parent(n);n++){if(r instanceof je||r instanceof tt&&r.condition===e||r instanceof Nu&&r.condition===e||r instanceof An&&r.condition===e||r instanceof Rt&&r.condition===e||r instanceof We&&r.operator=="!"&&r.expression===e)return!0;if(r instanceof ae&&(r.operator=="&&"||r.operator=="||"||r.operator=="??")||r instanceof tt||r.tail_node()===e)e=r;else return!1}}in_32_bit_context(){if(!this.option("evaluate"))return!1;for(var e=this.self(),n=0,r;r=this.parent(n);n++){if(r instanceof ae&&tf.has(r.operator))return!0;if(r instanceof We)return r.operator==="~";if(r instanceof ae&&(r.operator=="&&"||r.operator=="||"||r.operator=="??")||r instanceof tt&&r.condition!==e||r.tail_node()===e)e=r;else return!1}}in_computed_key(){if(!this.option("evaluate"))return!1;for(var e=this.self(),n=0,r;r=this.parent(n);n++)if(r instanceof cn&&r.key===e)return!0;return!1}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var n=+this.options.passes||1,r=1/0,a=!1,c=this.mangle_options(),h=0;h<n;h++)if(this._toplevel.figure_out_scope(c),h===0&&this.option("drop_console")&&(this._toplevel=this._toplevel.drop_console(this.option("drop_console"))),(h>0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),n>1){let d=0;if(Fn(this._toplevel,()=>{d++}),d<r)r=d,a=!1;else{if(a)break;a=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,n){if(jn(e,Co))return e;var r=!1;e instanceof qe&&(e=e.hoist_properties(this),e=e.hoist_declarations(this),r=!0),n(e,this),n(e,this);var a=e.optimize(this);return r&&a instanceof qe&&(a.drop_unused(this),n(a,this)),a===e&&Sr(a,Co),a}is_lhs(){const e=this.stack[this.stack.length-1],n=this.stack[this.stack.length-2];return wo(e,n)}}function et(t,e){t.DEFMETHOD("optimize",function(n){var r=this;if(jn(r,zl)||n.has_directive("use asm"))return r;var a=e(r,n);return Sr(a,zl),a})}et(Ce,function(t){return t}),zt.DEFMETHOD("drop_console",function(t){var e=Array.isArray(t);return this.transform(new mr(function(n){if(n.TYPE==="Call"){var r=n.expression;if(r instanceof Xe&&!(e&&t.indexOf(r.property)===-1)){for(var a=r.expression;a.expression;)a=a.expression;if(ui(a)&&a.name=="console")return P(tn,n)}}}))}),Ce.DEFMETHOD("equivalent_to",function(t){return Ry(this,t)}),qe.DEFMETHOD("process_expression",function(t,e){var n=this,r=new mr(function(a){if(t&&a instanceof je)return P(an,a,{value:a.body});if(!t&&a instanceof an){if(e){var c=a.value&&a.value.drop_side_effect_free(e,!0);return c?P(je,a,{body:c}):P(wt,a)}return P(je,a,{body:a.value||P(We,a,{operator:"void",expression:P(Qe,a,{value:0})})})}if(a instanceof yt||a instanceof Ge&&a!==n)return a;if(a instanceof Tn){var h=a.body.length-1;h>=0&&(a.body[h]=a.body[h].transform(r))}else a instanceof Rt?(a.body=a.body.transform(r),a.alternative&&(a.alternative=a.alternative.transform(r))):a instanceof yr&&(a.body=a.body.transform(r));return a});n.transform(r)}),zt.DEFMETHOD("reset_opt_flags",function(t){const e=this,n=t.option("reduce_vars"),r=new Ln(function(a,c){if(rs(a,Py),n)return t.top_retain&&a instanceof en&&r.parent()===e&&Sr(a,Wl),a.reduce_vars(r,c,t)});r.safe_ids=Object.create(null),r.in_loop=null,r.loop_ids=new Map,r.defs_to_safe_ids=new Map,e.walk(r)}),pt.DEFMETHOD("fixed_value",function(){var t=this.thedef.fixed;return!t||t instanceof Ce?t:t()}),xe.DEFMETHOD("is_immutable",function(){var t=this.definition().orig;return t.length==1&&t[0]instanceof oi});function lf(t,e){for(var n,r=0;(n=t.parent(r++))&&!(n instanceof qe);)if(n instanceof Zr&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(e)}var Qy=Ct("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");xe.DEFMETHOD("is_declared",function(t){return!this.definition().undeclared||t.option("unsafe")&&Qy.has(this.name)});var e0=new Set(["use asm","use strict"]);et(nr,function(t,e){return e.option("directives")&&(!e0.has(t.value)||e.has_directive(t.value)!==t)?P(wt,t):t}),et(Fi,function(t,e){return e.option("drop_debugger")?P(wt,t):t}),et(Qn,function(t,e){return t.body instanceof wr&&e.loopcontrol_target(t.body)===t.body?P(wt,t):t.label.references.length==0?t.body:t}),et(Tn,function(t,e){return zu(t.body,e),t});function t0(t){return!(t instanceof ei||t instanceof Qr||t instanceof yt)}et(Ze,function(t,e){switch(zu(t.body,e),t.body.length){case 1:if(!e.has_directive("use strict")&&e.parent()instanceof Rt&&t0(t.body[0])||Zl(t.body[0]))return t.body[0];break;case 0:return P(wt,t)}return t});function ff(t,e){return zu(t.body,e),e.option("side_effects")&&t.body.length==1&&t.body[0]===e.has_directive("use strict")&&(t.body.length=0),t}et(Ge,ff),qe.DEFMETHOD("hoist_declarations",function(t){var e=this;if(t.has_directive("use asm"))return e;var n=t.option("hoist_funs"),r=t.option("hoist_vars");if(n||r){var a=[],c=[],h=new Map,d=0,v=0;Fn(e,y=>{if(y instanceof qe&&y!==e)return!0;if(y instanceof Nn)return++v,!0}),r=r&&v>1;var S=new mr(function(g){if(g!==e){if(g instanceof nr)return a.push(g),P(wt,g);if(n&&g instanceof en&&!(S.parent()instanceof kn)&&S.parent()===e)return c.push(g),P(wt,g);if(r&&g instanceof Nn&&!g.definitions.some(U=>U.name instanceof $t)){g.definitions.forEach(function(U){h.set(U.name.name,U),++d});var O=g.to_assignments(t),R=S.parent();if(R instanceof Wn&&R.init===g){if(O==null){var w=g.definitions[0].name;return P(xe,w,w)}return O}return R instanceof An&&R.init===g?O:O?P(je,g,{body:O}):P(wt,g)}if(g instanceof qe)return g}});if(e=e.transform(S),d>0){var C=[];const y=e instanceof Ge,g=y?e.args_as_names():null;if(h.forEach((O,R)=>{y&&g.some(w=>w.name===O.name.name)?h.delete(R):(O=O.clone(),O.value=null,C.push(O),h.set(R,O))}),C.length>0){for(var T=0;T<e.body.length;){if(e.body[T]instanceof je){var k=e.body[T].body,B,L;if(k instanceof at&&k.operator=="="&&(B=k.left)instanceof pt&&h.has(B.name)){var b=h.get(B.name);if(b.value)break;b.value=k.right,Ko(C,b),C.push(b),e.body.splice(T,1);continue}if(k instanceof lt&&(L=k.expressions[0])instanceof at&&L.operator=="="&&(B=L.left)instanceof pt&&h.has(B.name)){var b=h.get(B.name);if(b.value)break;b.value=L.right,Ko(C,b),C.push(b),e.body[T].body=nt(k,k.expressions.slice(1));continue}}if(e.body[T]instanceof wt){e.body.splice(T,1);continue}if(e.body[T]instanceof Ze){e.body.splice(T,1,...e.body[T].body);continue}break}C=P(Nn,e,{definitions:C}),c.push(C)}}e.body=a.concat(c,e.body)}return e}),qe.DEFMETHOD("hoist_properties",function(t){var e=this;if(!t.option("hoist_props")||t.has_directive("use asm"))return e;var n=e instanceof zt&&t.top_retain||vt,r=new Map,a=new mr(function(c,h){if(c instanceof Lt){const d=c.name;let v,S;if(d.scope===e&&(v=d.definition()).escaped!=1&&!v.assignments&&!v.direct_access&&!v.single_use&&!t.exposed(v)&&!n(v)&&(S=d.fixed_value())===c.value&&S instanceof Nt&&!S.properties.some(C=>C instanceof ht||C.computed_key())){h(c,this);const C=new Map,T=[];return S.properties.forEach(({key:k,value:B})=>{const L=a.find_scope(),b=e.create_symbol(d.CTOR,{source:d,scope:L,conflict_scopes:new Set([L,...d.definition().references.map(y=>y.scope)]),tentative_name:d.name+"_"+k});C.set(String(k),b.definition()),T.push(P(Lt,c,{name:b,value:B}))}),r.set(v.id,C),qt.splice(T)}}else if(c instanceof Xe&&c.expression instanceof xe){const d=r.get(c.expression.definition().id);if(d){const v=d.get(String(hd(c.property))),S=P(xe,c,{name:v.name,scope:c.expression.scope,thedef:v});return S.reference({}),S}}});return e.transform(a)}),et(je,function(t,e){if(e.option("side_effects")){var n=t.body,r=n.drop_side_effect_free(e,!0);if(!r)return P(wt,t);if(r!==n)return P(je,t,{body:r})}return t}),et(Li,function(t,e){return e.option("loops")?P(An,t,t).optimize(e):t}),et(yi,function(t,e){if(!e.option("loops"))return t;var n=t.condition.tail_node().evaluate(e);if(!(n instanceof Ce)){if(n)return P(An,t,{body:P(Ze,t.body,{body:[t.body,P(je,t.condition,{body:t.condition})]})}).optimize(e);if(!ql(t,e.parent()))return P(Ze,t.body,{body:[t.body,P(je,t.condition,{body:t.condition})]}).optimize(e)}return t});function Od(t,e){var n=t.body instanceof Ze?t.body.body[0]:t.body;if(e.option("dead_code")&&a(n)){var r=[];return t.init instanceof Rn?r.push(t.init):t.init&&r.push(P(je,t.init,{body:t.init})),t.condition&&r.push(P(je,t.condition,{body:t.condition})),No(e,t.body,r),P(Ze,t,{body:r})}return n instanceof Rt&&(a(n.body)?(t.condition?t.condition=P(ae,t.condition,{left:t.condition,operator:"&&",right:n.condition.negate(e)}):t.condition=n.condition.negate(e),c(n.alternative)):a(n.alternative)&&(t.condition?t.condition=P(ae,t.condition,{left:t.condition,operator:"&&",right:n.condition}):t.condition=n.condition,c(n.body))),t;function a(h){return h instanceof wr&&e.loopcontrol_target(h)===e.self()}function c(h){h=Hu(h),t.body instanceof Ze?(t.body=t.body.clone(),t.body.body=h.concat(t.body.body.slice(1)),t.body=t.body.transform(e)):t.body=P(Ze,t.body,{body:h}).transform(e),t=Od(t,e)}}et(An,function(t,e){if(!e.option("loops"))return t;if(e.option("side_effects")&&t.init&&(t.init=t.init.drop_side_effect_free(e)),t.condition){var n=t.condition.evaluate(e);if(!(n instanceof Ce)){if(n)t.condition=null;else if(!e.option("dead_code")){var r=t.condition;t.condition=ir(n,t.condition),t.condition=zi(t.condition.transform(e),r)}}if(e.option("dead_code")&&(n instanceof Ce&&(n=t.condition.tail_node().evaluate(e)),!n)){var a=[];return No(e,t.body,a),t.init instanceof Rn?a.push(t.init):t.init&&a.push(P(je,t.init,{body:t.init})),a.push(P(je,t.condition,{body:t.condition})),P(Ze,t,{body:a}).optimize(e)}}return Od(t,e)}),et(Rt,function(t,e){if(uo(t.alternative)&&(t.alternative=null),!e.option("conditionals"))return t;var n=t.condition.evaluate(e);if(!e.option("dead_code")&&!(n instanceof Ce)){var r=t.condition;t.condition=ir(n,r),t.condition=zi(t.condition.transform(e),r)}if(e.option("dead_code"))if(n instanceof Ce&&(n=t.condition.tail_node().evaluate(e)),n){if(!(n instanceof Ce)){var a=[];return a.push(P(je,t.condition,{body:t.condition})),a.push(t.body),t.alternative&&No(e,t.alternative,a),P(Ze,t,{body:a}).optimize(e)}}else{var a=[];return No(e,t.body,a),a.push(P(je,t.condition,{body:t.condition})),t.alternative&&a.push(t.alternative),P(Ze,t,{body:a}).optimize(e)}var c=t.condition.negate(e),h=t.condition.size(),d=c.size(),v=d<h;if(t.alternative&&v){v=!1,t.condition=c;var S=t.body;t.body=t.alternative||P(wt,t),t.alternative=S}if(uo(t.body)&&uo(t.alternative))return P(je,t.condition,{body:t.condition.clone()}).optimize(e);if(t.body instanceof je&&t.alternative instanceof je)return P(je,t,{body:P(tt,t,{condition:t.condition,consequent:t.body.body,alternative:t.alternative.body})}).optimize(e);if(uo(t.alternative)&&t.body instanceof je)return h===d&&!v&&t.condition instanceof ae&&t.condition.operator=="||"&&(v=!0),v?P(je,t,{body:P(ae,t,{operator:"||",left:c,right:t.body.body})}).optimize(e):P(je,t,{body:P(ae,t,{operator:"&&",left:t.condition,right:t.body.body})}).optimize(e);if(t.body instanceof wt&&t.alternative instanceof je)return P(je,t,{body:P(ae,t,{operator:"||",left:t.condition,right:t.alternative.body})}).optimize(e);if(t.body instanceof lr&&t.alternative instanceof lr&&t.body.TYPE==t.alternative.TYPE)return P(t.body.CTOR,t,{value:P(tt,t,{condition:t.condition,consequent:t.body.value||P(tn,t.body),alternative:t.alternative.value||P(tn,t.alternative)}).transform(e)}).optimize(e);if(t.body instanceof Rt&&!t.body.alternative&&!t.alternative&&(t=P(Rt,t,{condition:P(ae,t.condition,{operator:"&&",left:t.condition,right:t.body.condition}),body:t.body.body,alternative:null})),Pr(t.body)&&t.alternative){var C=t.alternative;return t.alternative=null,P(Ze,t,{body:[t,C]}).optimize(e)}if(Pr(t.alternative)){var a=t.body;return t.body=t.alternative,t.condition=v?c:t.condition.negate(e),t.alternative=null,P(Ze,t,{body:[t,a]}).optimize(e)}return t}),et(qn,function(t,e){if(!e.option("switches"))return t;var n,r=t.expression.evaluate(e);if(!(r instanceof Ce)){var a=t.expression;t.expression=ir(r,a),t.expression=zi(t.expression.transform(e),a)}if(!e.option("dead_code"))return t;r instanceof Ce&&(r=t.expression.tail_node().evaluate(e));for(var c=[],h=[],d,v,S=0,C=t.body.length;S<C&&!v;S++){if(n=t.body[S],n instanceof So)d?L(n,h[h.length-1]):d=n;else if(!(r instanceof Ce)){var T=n.expression.evaluate(e);if(!(T instanceof Ce)&&T!==r){L(n,h[h.length-1]);continue}if(T instanceof Ce&&(T=n.expression.tail_node().evaluate(e)),T===r&&(v=n,d)){var k=h.indexOf(d);h.splice(k,1),L(d,h[k-1]),d=null}}h.push(n)}for(;S<C;)L(t.body[S++],h[h.length-1]);t.body=h;let B=d||v;if(d=null,v=null,h.every((w,U)=>(w===B||w.expression instanceof Tt)&&(w.body.length===0||Pr(w)||h.length-1===U)))for(let w=0;w<h.length;w++){const U=h[w];for(let X=w+1;X<h.length;X++){const ee=h[X];if(ee.body.length===0)continue;const z=X===h.length-1,Y=b(ee,U,!1);if(Y||z&&b(ee,U,!0)){!Y&&z&&ee.body.push(P(wr));let $=X-1,ne=0;for(;$>w&&R(h[$--]);)ne++;const Q=h.splice(X-ne,1+ne);h.splice(w+1,0,...Q),w+=Q.length}}}for(let w=0;w<h.length;w++){let U=h[w];if(U.body.length!==0&&Pr(U))for(let X=w+1;X<h.length;w++,X++){let ee=h[X];if(ee.body.length!==0){if(b(ee,U,!1)||X===h.length-1&&b(ee,U,!0)){U.body=[],U=ee;continue}break}}}{let w=h.length-1;for(;w>=0;w--){let U=h[w].body;if(O(U[U.length-1],e)&&U.pop(),!R(h[w]))break}if(w++,!B||h.indexOf(B)>=w)for(let U=h.length-1;U>=w;U--){let X=h[U];if(X===B)B=null,h.pop();else if(!X.expression.has_side_effects(e))h.pop();else break}}e:if(B){let w=h.indexOf(B),U=w;for(;U<h.length-1&&R(h[U]);U++);if(U<h.length-1)break e;let X=h.length-1;for(;X>=0;X--){let ee=h[X];if(ee!==B&&ee.expression.has_side_effects(e))break}if(U>X){let ee=w-1;for(;ee>=0&&R(h[ee]);ee--);let z=Math.max(X,ee)+1,Y=w;X>w?(Y=X,h[X].body=h[U].body):B.body=h[U].body,h.splice(Y+1,U-Y),h.splice(z,w-z)}}e:if(B){let w=h.findIndex(z=>!R(z)),U;if(w===h.length-1){let z=h[w];if(g(t))break e;U=P(Ze,z,{body:z.body}),z.body=[]}else if(w!==-1)break e;if(!h.find(z=>z!==B&&z.expression.has_side_effects(e)))return P(Ze,t,{body:c.concat(y(t.expression),B.expression?y(B.expression):[],U||[])}).optimize(e);const ee=h.indexOf(B);if(h.splice(ee,1),B=null,U)return P(Ze,t,{body:c.concat(t,U)}).optimize(e)}if(h.length>0&&(h[0].body=c.concat(h[0].body)),h.length==0)return P(Ze,t,{body:c.concat(y(t.expression))}).optimize(e);if(h.length==1&&!g(t)){let w=h[0];return P(Rt,t,{condition:P(ae,t,{operator:"===",left:t.expression,right:w.expression}),body:P(Ze,w,{body:w.body}),alternative:null}).optimize(e)}if(h.length===2&&B&&!g(t)){let w=h[0]===B?h[1]:h[0],U=B.expression&&y(B.expression);if(Pr(h[0])){let Y=h[0];return O(Y.body[Y.body.length-1],e)&&Y.body.pop(),P(Rt,t,{condition:P(ae,t,{operator:"===",left:t.expression,right:w.expression}),body:P(Ze,w,{body:w.body}),alternative:P(Ze,B,{body:[].concat(U||[],B.body)})}).optimize(e)}let X="===",ee=P(Ze,w,{body:w.body}),z=P(Ze,B,{body:[].concat(U||[],B.body)});if(h[0]===B){X="!==";let Y=z;z=ee,ee=Y}return P(Ze,t,{body:[P(Rt,t,{condition:P(ae,t,{operator:X,left:t.expression,right:w.expression}),body:ee,alternative:null})].concat(z)}).optimize(e)}return t;function L(w,U){U&&!Pr(U)?U.body=U.body.concat(w.body):No(e,w,c)}function b(w,U,X){let ee=w.body,z=U.body;if(X&&(ee=ee.concat(P(wr))),ee.length!==z.length)return!1;let Y=P(Ze,w,{body:ee}),$=P(Ze,U,{body:z});return Y.equivalent_to($)}function y(w){return P(je,w,{body:w})}function g(w){let U=!1,X=new Ln(ee=>{if(U||ee instanceof Ge||ee instanceof je)return!0;if(!O(ee,X))return;let z=X.parent();z instanceof Bi&&z.body[z.body.length-1]===ee||(U=!0)});return w.walk(X),U}function O(w,U){return w instanceof wr&&U.loopcontrol_target(w)===t}function R(w){return!Pr(w)&&!P(Ze,w,{body:w.body}).has_side_effects(e)}}),et(vr,function(t,e){if(t.bcatch&&t.bfinally&&t.bfinally.body.every(uo)&&(t.bfinally=null),e.option("dead_code")&&t.body.body.every(uo)){var n=[];return t.bcatch&&No(e,t.bcatch,n),t.bfinally&&n.push(...t.bfinally.body),P(Ze,t,{body:n}).optimize(e)}return t}),un.DEFMETHOD("to_assignments",function(t){var e=t.option("reduce_vars"),n=[];for(const a of this.definitions){if(a.value){var r=P(xe,a.name,a.name);n.push(P(at,a,{operator:"=",logical:!1,left:r,right:a.value})),e&&(r.definition().fixed=!1)}const c=a.name.definition();c.eliminated++,c.replaced--}return n.length==0?null:nt(this,n)}),et(un,function(t){return t.definitions.length==0?P(wt,t):t}),et(Lt,function(t,e){return t.name instanceof qo&&t.value!=null&&ci(t.value,e)&&(t.value=null),t}),et(Rr,function(t){return t}),et(Ve,function(t,e){var n=t.expression,r=n;Dd(t.args);var a=t.args.every(Q=>!(Q instanceof ht));e.option("reduce_vars")&&r instanceof xe&&(r=r.fixed_value());var c=r instanceof Ge;if(c&&r.pinned())return t;if(e.option("unused")&&a&&c&&!r.uses_arguments){for(var h=0,d=0,v=0,S=t.args.length;v<S;v++){if(r.argnames[v]instanceof ht){if(jn(r.argnames[v].expression,ao))for(;v<S;){var C=t.args[v++].drop_side_effect_free(e);C&&(t.args[h++]=C)}else for(;v<S;)t.args[h++]=t.args[v++];d=h;break}var T=v>=r.argnames.length;if(T||jn(r.argnames[v],ao)){var C=t.args[v].drop_side_effect_free(e);if(C)t.args[h++]=C;else if(!T){t.args[h++]=P(Qe,t.args[v],{value:0});continue}}else t.args[h++]=t.args[v];d=h}t.args.length=d}if(e.option("unsafe")&&!n.contains_optional()){if(n instanceof Wt&&n.start.value==="Array"&&n.property==="from"&&t.args.length===1){const[Q]=t.args;if(Q instanceof St)return P(St,Q,{elements:Q.elements}).optimize(e)}if(ui(n))switch(n.name){case"Array":if(t.args.length!=1)return P(St,t,{elements:t.args}).optimize(e);if(t.args[0]instanceof Qe&&t.args[0].value<=11){const Q=[];for(let _e=0;_e<t.args[0].value;_e++)Q.push(new Ir);return new St({elements:Q})}break;case"Object":if(t.args.length==0)return P(Nt,t,{properties:[]});break;case"String":if(t.args.length==0)return P(dt,t,{value:""});if(t.args.length<=1)return P(ae,t,{left:t.args[0],operator:"+",right:P(dt,t,{value:""})}).optimize(e);break;case"Number":if(t.args.length==0)return P(Qe,t,{value:0});if(t.args.length==1&&e.option("unsafe_math"))return P(We,t,{expression:t.args[0],operator:"+"}).optimize(e);break;case"Symbol":t.args.length==1&&t.args[0]instanceof dt&&e.option("unsafe_symbols")&&(t.args.length=0);break;case"Boolean":if(t.args.length==0)return P(Gi,t);if(t.args.length==1)return P(We,t,{expression:P(We,t,{expression:t.args[0],operator:"!"}),operator:"!"}).optimize(e);break;case"RegExp":var k=[];if(t.args.length>=1&&t.args.length<=2&&t.args.every(Q=>{var _e=Q.evaluate(e);return k.push(_e),Q!==_e})&&zp(k[0])){let[Q,_e]=k;Q=vu(new RegExp(Q).source);const ge=P(hr,t,{value:{source:Q,flags:_e}});if(ge._eval(e)!==ge)return ge}break}else if(n instanceof Wt)switch(n.property){case"toString":if(t.args.length==0&&!n.expression.may_throw_on_access(e))return P(ae,t,{left:P(dt,t,{value:""}),operator:"+",right:n.expression}).optimize(e);break;case"join":if(n.expression instanceof St)e:{var B;if(t.args.length>0&&(B=t.args[0].evaluate(e),B===t.args[0]))break e;for(var L=[],b=[],v=0,S=n.expression.elements.length;v<S;v++){var y=n.expression.elements[v];if(y instanceof ht)break e;var g=y.evaluate(e);g!==y?b.push(g):(b.length>0&&(L.push(P(dt,t,{value:b.join(B)})),b.length=0),L.push(y))}if(b.length>0&&L.push(P(dt,t,{value:b.join(B)})),L.length==0)return P(dt,t,{value:""});if(L.length==1)return L[0].is_string(e)?L[0]:P(ae,L[0],{operator:"+",left:P(dt,t,{value:""}),right:L[0]});if(B==""){var O;return L[0].is_string(e)||L[1].is_string(e)?O=L.shift():O=P(dt,t,{value:""}),L.reduce(function(_e,ge){return P(ae,ge,{operator:"+",left:_e,right:ge})},O).optimize(e)}var C=t.clone();return C.expression=C.expression.clone(),C.expression.expression=C.expression.expression.clone(),C.expression.expression.elements=L,Tr(e,t,C)}break;case"charAt":if(n.expression.is_string(e)){var R=t.args[0],w=R?R.evaluate(e):0;if(w!==R)return P(xn,n,{expression:n.expression,property:ir(w|0,R||n)}).optimize(e)}break;case"apply":if(t.args.length==2&&t.args[1]instanceof St){var U=t.args[1].elements.slice();return U.unshift(t.args[0]),P(Ve,t,{expression:P(Wt,n,{expression:n.expression,optional:!1,property:"call"}),args:U}).optimize(e)}break;case"call":var X=n.expression;if(X instanceof xe&&(X=X.fixed_value()),X instanceof Ge&&!X.contains_this())return(t.args.length?nt(this,[t.args[0],P(Ve,t,{expression:n.expression,args:t.args.slice(1)})]):P(Ve,t,{expression:n.expression,args:[]})).optimize(e);break}}if(e.option("unsafe_Function")&&ui(n)&&n.name=="Function"){if(t.args.length==0)return P(Ft,t,{argnames:[],body:[]}).optimize(e);if(t.args.every(Q=>Q instanceof dt))try{var ne="n(function("+t.args.slice(0,-1).map(function(Q){return Q.value}).join(",")+"){"+t.args[t.args.length-1].value+"})",ee=la(ne),z=e.mangle_options();ee.figure_out_scope(z);var Y=new Cd(e.options,{mangle_options:e._mangle_options});ee=ee.transform(Y),ee.figure_out_scope(z),ee.compute_char_frequency(z),ee.mangle_names(z);var $;Fn(ee,Q=>{if(ju(Q))return $=Q,dr});var ne=$l();return Ze.prototype._codegen.call($,$,ne),t.args=[P(dt,t,{value:$.argnames.map(function(Q){return Q.print_to_string()}).join(",")}),P(dt,t.args[t.args.length-1],{value:ne.get().replace(/^{|}$/g,"")})],t}catch(Q){if(!(Q instanceof td))throw Q}}return Zy(t,e)}),Ce.DEFMETHOD("contains_optional",function(){return this instanceof Xe||this instanceof Ve||this instanceof gn?this.optional?!0:this.expression.contains_optional():!1}),et(rr,function(t,e){return e.option("unsafe")&&ui(t.expression)&&["Object","RegExp","Function","Error","Array"].includes(t.expression.name)?P(Ve,t,t).transform(e):t}),et(lt,function(t,e){if(!e.option("side_effects"))return t;var n=[];a();var r=n.length-1;if(c(),r==0)return t=Oo(e.parent(),e.self(),n[0]),t instanceof lt||(t=t.optimize(e)),t;return t.expressions=n,t;function a(){var h=ai(e),d=t.expressions.length-1;t.expressions.forEach(function(v,S){S<d&&(v=v.drop_side_effect_free(e,h)),v&&(Xl(n,v),h=!1)})}function c(){for(;r>0&&ci(n[r],e);)r--;r<n.length-1&&(n[r]=P(We,t,{operator:"void",expression:n[r]}),n.length=r+1)}}),Xt.DEFMETHOD("lift_sequences",function(t){if(t.option("sequences")&&this.expression instanceof lt){var e=this.expression.expressions.slice(),n=this.clone();return n.expression=e.pop(),e.push(n),nt(this,e).optimize(t)}return this}),et($i,function(t,e){return t.lift_sequences(e)}),et(We,function(t,e){var n=t.expression;if(t.operator=="delete"&&!(n instanceof xe||n instanceof Xe||n instanceof gn||md(n)))return nt(t,[n,P(Er,t)]).optimize(e);var r=t.lift_sequences(e);if(r!==t)return r;if(e.option("side_effects")&&t.operator=="void")return n=n.drop_side_effect_free(e),n?(t.expression=n,t):P(tn,t).optimize(e);if(e.in_boolean_context())switch(t.operator){case"!":if(n instanceof We&&n.operator=="!")return n.expression;n instanceof ae&&(t=Tr(e,t,n.negate(e,ai(e))));break;case"typeof":return(n instanceof xe?P(Er,t):nt(t,[n,P(Er,t)])).optimize(e)}if(t.operator=="-"&&n instanceof so&&(n=n.transform(e)),n instanceof ae&&(t.operator=="+"||t.operator=="-")&&(n.operator=="*"||n.operator=="/"||n.operator=="%"))return P(ae,t,{operator:n.operator,left:P(We,n.left,{operator:t.operator,expression:n.left}),right:n.right});if(e.option("evaluate")){if(t.operator==="~"&&t.expression instanceof We&&t.expression.operator==="~"&&(e.in_32_bit_context()||t.expression.expression.is_32_bit_integer()))return t.expression.expression;if(t.operator==="~"&&n instanceof ae&&n.operator==="^")return n.left instanceof We&&n.left.operator==="~"?n.left=n.left.bitwise_negate(!0):n.right=n.right.bitwise_negate(!0),n}if(t.operator!="-"||!(n instanceof Qe||n instanceof so||n instanceof si)){var a=t.evaluate(e);if(a!==t)return a=ir(a,t).optimize(e),Tr(e,a,t)}return t}),ae.DEFMETHOD("lift_sequences",function(t){if(t.option("sequences")){if(this.left instanceof lt){var e=this.left.expressions.slice(),n=this.clone();return n.left=e.pop(),e.push(n),nt(this,e).optimize(t)}if(this.right instanceof lt&&!this.left.has_side_effects(t)){for(var r=this.operator=="="&&this.left instanceof xe,e=this.right.expressions,a=e.length-1,c=0;c<a&&!(!r&&e[c].has_side_effects(t));c++);if(c==a){e=e.slice();var n=this.clone();return n.right=e.pop(),e.push(n),nt(this,e).optimize(t)}else if(c>0){var n=this.clone();return n.right=nt(this.right,e.slice(c)),e=e.slice(0,c),e.push(n),nt(this,e).optimize(t)}}}return this});var n0=Ct("== === != !== * & | ^");function r0(t){return t instanceof St||t instanceof Ge||t instanceof Nt||t instanceof yt}et(ae,function(t,e){function n(){return t.left.is_constant()||t.right.is_constant()||!t.left.has_side_effects(e)&&!t.right.has_side_effects(e)}function r(X){if(n()){X&&(t.operator=X);var ee=t.left;t.left=t.right,t.right=ee}}if(e.option("lhs_constants")&&n0.has(t.operator)&&t.right.is_constant()&&!t.left.is_constant()&&(t.left instanceof ae&&Dr[t.left.operator]>=Dr[t.operator]||r()),t=t.lift_sequences(e),e.option("comparisons"))switch(t.operator){case"===":case"!==":var a=!0;(t.left.is_string(e)&&t.right.is_string(e)||t.left.is_number(e)&&t.right.is_number(e)||t.left.is_boolean()&&t.right.is_boolean()||t.left.equivalent_to(t.right))&&(t.operator=t.operator.substr(0,2));case"==":case"!=":if(!a&&ci(t.left,e))t.left=P(pr,t.left);else if(!a&&ci(t.right,e))t.right=P(pr,t.right);else if(e.option("typeofs")&&t.left instanceof dt&&t.left.value=="undefined"&&t.right instanceof We&&t.right.operator=="typeof"){var c=t.right.expression;(c instanceof xe?c.is_declared(e):!(c instanceof Xe&&e.option("ie8")))&&(t.right=c,t.left=P(tn,t.left).optimize(e),t.operator.length==2&&(t.operator+="="))}else if(e.option("typeofs")&&t.left instanceof We&&t.left.operator=="typeof"&&t.right instanceof dt&&t.right.value=="undefined"){var c=t.left.expression;(c instanceof xe?c.is_declared(e):!(c instanceof Xe&&e.option("ie8")))&&(t.left=c,t.right=P(tn,t.right).optimize(e),t.operator.length==2&&(t.operator+="="))}else{if(t.left instanceof xe&&t.right instanceof xe&&t.left.definition()===t.right.definition()&&r0(t.left.fixed_value()))return P(t.operator[0]=="="?Er:Gi,t);if(t.left.is_32_bit_integer()&&t.right.is_32_bit_integer()){const X=ne=>P(We,ne,{operator:"!",expression:ne}),ee=(ne,Q)=>Q?e.in_boolean_context()?ne:X(X(ne)):X(ne);if(t.left instanceof Qe&&t.left.value===0)return ee(t.right,t.operator[0]==="!");if(t.right instanceof Qe&&t.right.value===0)return ee(t.left,t.operator[0]==="!");let z,Y,$;if((z=t.left instanceof ae?t.left:t.right instanceof ae?t.right:null)&&($=z===t.left?t.right:t.left)&&z.operator==="&"&&$ instanceof Qe&&$.is_32_bit_integer()&&(Y=z.left.equivalent_to($)?z.right:z.right.equivalent_to($)?z.left:null)){let ne=ee(P(ae,t,{operator:"&",left:$,right:P(We,t,{operator:"~",expression:Y})}),t.operator[0]==="!");return Tr(e,ne,t)}}}break;case"&&":case"||":var h=t.left;if(h.operator==t.operator&&(h=h.right),h instanceof ae&&h.operator==(t.operator=="&&"?"!==":"===")&&t.right instanceof ae&&h.operator==t.right.operator&&(ci(h.left,e)&&t.right.left instanceof pr||h.left instanceof pr&&ci(t.right.left,e))&&!h.right.has_side_effects(e)&&h.right.equivalent_to(t.right.right)){var d=P(ae,t,{operator:h.operator.slice(0,-1),left:P(pr,t),right:h.right});return h!==t.left&&(d=P(ae,t,{operator:t.operator,left:t.left.left,right:d})),d}break}if(t.operator=="+"&&e.in_boolean_context()){var v=t.left.evaluate(e),S=t.right.evaluate(e);if(v&&typeof v=="string")return nt(t,[t.right,P(Er,t)]).optimize(e);if(S&&typeof S=="string")return nt(t,[t.left,P(Er,t)]).optimize(e)}if(e.option("comparisons")&&t.is_boolean()){if(!(e.parent()instanceof ae)||e.parent()instanceof at){var C=P(We,t,{operator:"!",expression:t.negate(e,ai(e))});t=Tr(e,t,C)}if(e.option("unsafe_comps"))switch(t.operator){case"<":r(">");break;case"<=":r(">=");break}}if(t.operator=="+"){if(t.right instanceof dt&&t.right.getValue()==""&&t.left.is_string(e))return t.left;if(t.left instanceof dt&&t.left.getValue()==""&&t.right.is_string(e))return t.right;if(t.left instanceof ae&&t.left.operator=="+"&&t.left.left instanceof dt&&t.left.left.getValue()==""&&t.right.is_string(e))return t.left=t.left.right,t}if(e.option("evaluate")){switch(t.operator){case"&&":var v=jn(t.left,Hl)?!0:jn(t.left,Gl)?!1:t.left.evaluate(e);if(v){if(!(v instanceof Ce))return nt(t,[t.left,t.right]).optimize(e)}else return Oo(e.parent(),e.self(),t.left).optimize(e);var S=t.right.evaluate(e);if(S){if(!(S instanceof Ce)){var T=e.parent();if(T.operator=="&&"&&T.left===e.self()||e.in_boolean_context())return t.left.optimize(e)}}else{if(e.in_boolean_context())return nt(t,[t.left,P(Gi,t)]).optimize(e);Sr(t,Gl)}if(t.left.operator=="||"){var k=t.left.right.evaluate(e);if(!k)return P(tt,t,{condition:t.left.left,consequent:t.right,alternative:t.left.right}).optimize(e)}break;case"||":var v=jn(t.left,Hl)?!0:jn(t.left,Gl)?!1:t.left.evaluate(e);if(v){if(!(v instanceof Ce))return Oo(e.parent(),e.self(),t.left).optimize(e)}else return nt(t,[t.left,t.right]).optimize(e);var S=t.right.evaluate(e);if(S){if(!(S instanceof Ce)){if(e.in_boolean_context())return nt(t,[t.left,P(Er,t)]).optimize(e);Sr(t,Hl)}}else{var T=e.parent();if(T.operator=="||"&&T.left===e.self()||e.in_boolean_context())return t.left.optimize(e)}if(t.left.operator=="&&"){var k=t.left.right.evaluate(e);if(k&&!(k instanceof Ce))return P(tt,t,{condition:t.left.left,consequent:t.left.right,alternative:t.right}).optimize(e)}break;case"??":if(li(t.left,e))return t.right;var v=t.left.evaluate(e);if(!(v instanceof Ce))return v==null?t.right:t.left;if(e.in_boolean_context()){const z=t.right.evaluate(e);if(!(z instanceof Ce)&&!z)return t.left}}var B=!0;switch(t.operator){case"+":if(t.right instanceof Tt&&t.left instanceof ae&&t.left.operator=="+"&&t.left.is_string(e)){var L=P(ae,t,{operator:"+",left:t.left.right,right:t.right}),b=L.optimize(e);L!==b&&(t=P(ae,t,{operator:"+",left:t.left.left,right:b}))}if(t.left instanceof ae&&t.left.operator=="+"&&t.left.is_string(e)&&t.right instanceof ae&&t.right.operator=="+"&&t.right.is_string(e)){var L=P(ae,t,{operator:"+",left:t.left.right,right:t.right.left}),y=L.optimize(e);L!==y&&(t=P(ae,t,{operator:"+",left:P(ae,t.left,{operator:"+",left:t.left.left,right:y}),right:t.right.right}))}if(t.right instanceof We&&t.right.operator=="-"&&t.left.is_number(e)){t=P(ae,t,{operator:"-",left:t.left,right:t.right.expression});break}if(t.left instanceof We&&t.left.operator=="-"&&n()&&t.right.is_number(e)){t=P(ae,t,{operator:"-",left:t.right,right:t.left.expression});break}if(t.left instanceof Xn){var g=t.left,b=t.right.evaluate(e);if(b!=t.right)return g.segments[g.segments.length-1].value+=String(b),g}if(t.right instanceof Xn){var b=t.right,g=t.left.evaluate(e);if(g!=t.left)return b.segments[0].value=String(g)+b.segments[0].value,b}if(t.left instanceof Xn&&t.right instanceof Xn){var g=t.left,O=g.segments,b=t.right;O[O.length-1].value+=b.segments[0].value;for(var R=1;R<b.segments.length;R++)O.push(b.segments[R]);return g}case"*":B=e.option("unsafe_math");case"&":case"|":case"^":if(t.left.is_number(e)&&t.right.is_number(e)&&n()&&!(t.left instanceof ae&&t.left.operator!=t.operator&&Dr[t.left.operator]>=Dr[t.operator])){var w=P(ae,t,{operator:t.operator,left:t.right,right:t.left});t.right instanceof Tt&&!(t.left instanceof Tt)?t=Tr(e,w,t):t=Tr(e,t,w)}B&&t.is_number(e)&&(t.right instanceof ae&&t.right.operator==t.operator&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left,right:t.right.left,start:t.left.start,end:t.right.left.end}),right:t.right.right})),t.right instanceof Tt&&t.left instanceof ae&&t.left.operator==t.operator&&(t.left.left instanceof Tt?t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left.left,right:t.right,start:t.left.left.start,end:t.right.end}),right:t.left.right}):t.left.right instanceof Tt&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left.right,right:t.right,start:t.left.right.start,end:t.right.end}),right:t.left.left}))),t.left instanceof ae&&t.left.operator==t.operator&&t.left.right instanceof Tt&&t.right instanceof ae&&t.right.operator==t.operator&&t.right.left instanceof Tt&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:P(ae,t.left.left,{operator:t.operator,left:t.left.right,right:t.right.left,start:t.left.right.start,end:t.right.left.end}),right:t.left.left}),right:t.right.right})))}if(tf.has(t.operator)){let X,ee,z,Y,$=t.left;if(t.operator==="&"&&t.right instanceof ae&&t.right.operator==="|"&&typeof(ee=t.left.evaluate(e))=="number"&&(typeof(X=t.right.right.evaluate(e))=="number"?(z=t.right.left,Y=t.right.right):typeof(X=t.right.left.evaluate(e))=="number"&&(z=t.right.right,Y=t.right.left),z&&Y))if(!(X&ee))t=P(ae,t,{operator:t.operator,left:$,right:z});else{const fe=P(ae,t,{operator:"|",left:P(ae,t,{operator:"&",left:z,right:$}),right:ir(X&ee,Y)});t=Tr(e,t,fe)}if(t.left.equivalent_to(t.right)&&!t.left.has_side_effects(e)){if(t.operator==="^")return P(Qe,t,{value:0});(t.operator==="|"||t.operator==="&")&&(t.left=P(Qe,t,{value:0}),t.operator="|")}(t.operator==="<<"||t.operator===">>")&&t.right instanceof Qe&&t.right.value===0&&(t.operator="|");const Q=t.right instanceof Qe&&t.right.value===0?t.right:t.left instanceof Qe&&t.left.value===0?t.left:null,_e=Q&&(Q===t.right?t.left:t.right);if(Q&&(t.operator==="|"||t.operator==="^")&&(_e.is_32_bit_integer()||e.in_32_bit_context()))return _e;if(Q&&t.operator==="&"&&!_e.has_side_effects(e))return Q;const ge=fe=>fe instanceof Qe&&fe.value===-1||fe instanceof We&&(fe.operator==="-"&&fe.expression instanceof Qe&&fe.expression.value===1||fe.operator==="~"&&fe.expression instanceof Qe&&fe.expression.value===0),re=ge(t.right)?t.right:ge(t.left)?t.left:null,de=re&&(re===t.right?t.left:t.right);switch(t.operator){case"|":if(re&&!de.has_side_effects(e))return re;break;case"&":if(re&&(de.is_32_bit_integer()||e.in_32_bit_context()))return de;break;case"^":if(re)return de.bitwise_negate(e.in_32_bit_context());t.left instanceof We&&t.left.operator==="~"&&t.right instanceof We&&t.right.operator==="~"&&(t=P(ae,t,{operator:"^",left:t.left.expression,right:t.right.expression}));break}}}if(t.right instanceof ae&&t.right.operator==t.operator&&(Do.has(t.operator)||t.operator=="+"&&(t.right.left.is_string(e)||t.left.is_string(e)&&t.right.right.is_string(e))))return t.left=P(ae,t.left,{operator:t.operator,left:t.left.transform(e),right:t.right.left.transform(e)}),t.right=t.right.right.transform(e),t.transform(e);var U=t.evaluate(e);return U!==t?(U=ir(U,t).optimize(e),Tr(e,U,t)):t}),et(Ao,function(t){return t}),et(xe,function(t,e){if(!e.option("ie8")&&ui(t)&&!e.find_parent(yr))switch(t.name){case"undefined":return P(tn,t).optimize(e);case"NaN":return P(ma,t).optimize(e);case"Infinity":return P(so,t).optimize(e)}return e.option("reduce_vars")&&!e.is_lhs()?Jy(t,e):t});function Wu(t,e){return t instanceof xe||t.TYPE===e.TYPE}et(tn,function(t,e){if(e.option("unsafe_undefined")){var n=lf(e,"undefined");if(n){var r=P(xe,t,{name:"undefined",scope:n.scope,thedef:n});return Sr(r,Kl),r}}var a=e.is_lhs();return a&&Wu(a,t)?t:P(We,t,{operator:"void",expression:P(Qe,t,{value:0})})}),et(so,function(t,e){var n=e.is_lhs();return n&&Wu(n,t)||e.option("keep_infinity")&&!(n&&!Wu(n,t))&&!lf(e,"Infinity")?t:P(ae,t,{operator:"/",left:P(Qe,t,{value:1}),right:P(Qe,t,{value:0})})}),et(ma,function(t,e){var n=e.is_lhs();return n&&!Wu(n,t)||lf(e,"NaN")?P(ae,t,{operator:"/",left:P(Qe,t,{value:0}),right:P(Qe,t,{value:0})}):t});const i0=Ct("+ - / * % >> << >>> | ^ &"),o0=Ct("* | ^ &");et(at,function(t,e){if(t.logical)return t.lift_sequences(e);var n;if(t.operator==="="&&t.left instanceof xe&&t.left.name!=="arguments"&&!(n=t.left.definition()).undeclared&&t.right.equivalent_to(t.left))return t.right;if(e.option("dead_code")&&t.left instanceof xe&&(n=t.left.definition()).scope===e.find_parent(Ge)){var r=0,a,c=t;do if(a=c,c=e.parent(r++),c instanceof lr){if(h(r,c)||_d(n.scope,[n]))break;return t.operator=="="?t.right:(n.fixed=!1,P(ae,t,{operator:t.operator.slice(0,-1),left:t.left,right:t.right}).optimize(e))}while(c instanceof ae&&c.right===a||c instanceof lt&&c.tail_node()===a)}return t=t.lift_sequences(e),t.operator=="="&&t.left instanceof xe&&t.right instanceof ae&&(t.right.left instanceof xe&&t.right.left.name==t.left.name&&i0.has(t.right.operator)?(t.operator=t.right.operator+"=",t.right=t.right.right):t.right.right instanceof xe&&t.right.right.name==t.left.name&&o0.has(t.right.operator)&&!t.right.left.has_side_effects(e)&&(t.operator=t.right.operator+"=",t.right=t.right.left)),t;function h(d,v){function S(){const k=t.right;t.right=P(pr,k);const B=v.may_throw(e);return t.right=k,B}for(var C=t.left.definition().scope.get_defun_scope(),T;(T=e.parent(d++))!==C;)if(T instanceof vr&&(T.bfinally||T.bcatch&&S()))return!0}}),et(Nr,function(t,e){if(!e.option("evaluate"))return t;var n=t.right.evaluate(e);let r,a;return n===void 0?(!((r=e.parent())instanceof Ge)||e.option("keep_fargs")===!1||(a=e.parent(1)).TYPE==="Call"&&a.expression===r)&&(t=t.left):n!==t.right&&(n=ir(n,t.right),t.right=zi(n,t.right)),t});function s0(t,e,n){if(e.may_throw(n))return!1;let r;if(t instanceof ae&&t.operator==="=="&&((r=li(t.left,n)&&t.left)||(r=li(t.right,n)&&t.right))&&(r===t.left?t.right:t.left).equivalent_to(e))return!0;if(t instanceof ae&&t.operator==="||"){let a,c;const h=d=>{if(!(d instanceof ae&&(d.operator==="==="||d.operator==="==")))return!1;let v=0,S;return d.left instanceof pr&&(v++,a=d,S=d.right),d.right instanceof pr&&(v++,a=d,S=d.left),ci(d.left,n)&&(v++,c=d,S=d.right),ci(d.right,n)&&(v++,c=d,S=d.left),!(v!==1||!S.equivalent_to(e))};if(!h(t.left)||!h(t.right))return!1;if(a&&c&&a!==c)return!0}return!1}et(tt,function(t,e){if(!e.option("conditionals"))return t;if(t.condition instanceof lt){var n=t.condition.expressions.slice();return t.condition=n.pop(),n.push(t),nt(t,n)}var r=t.condition.evaluate(e);if(r!==t.condition)return r?Oo(e.parent(),e.self(),t.consequent):Oo(e.parent(),e.self(),t.alternative);var a=r.negate(e,ai(e));Tr(e,r,a)===a&&(t=P(tt,t,{condition:a,consequent:t.alternative,alternative:t.consequent}));var c=t.condition,h=t.consequent,d=t.alternative;if(c instanceof xe&&h instanceof xe&&c.definition()===h.definition())return P(ae,t,{operator:"||",left:c,right:d});if(h instanceof at&&d instanceof at&&h.operator===d.operator&&h.logical===d.logical&&h.left.equivalent_to(d.left)&&(!t.condition.has_side_effects(e)||h.operator=="="&&!h.left.has_side_effects(e)))return P(at,t,{operator:h.operator,left:h.left,logical:h.logical,right:P(tt,t,{condition:t.condition,consequent:h.right,alternative:d.right})});var v;if(h instanceof Ve&&d.TYPE===h.TYPE&&h.args.length>0&&h.args.length==d.args.length&&h.expression.equivalent_to(d.expression)&&!t.condition.has_side_effects(e)&&!h.expression.has_side_effects(e)&&typeof(v=L())=="number"){var S=h.clone();return S.args[v]=P(tt,t,{condition:t.condition,consequent:h.args[v],alternative:d.args[v]}),S}if(d instanceof tt&&h.equivalent_to(d.consequent))return P(tt,t,{condition:P(ae,t,{operator:"||",left:c,right:d.condition}),consequent:h,alternative:d.alternative}).optimize(e);if(e.option("ecma")>=2020&&s0(c,d,e))return P(ae,t,{operator:"??",left:d,right:h}).optimize(e);if(d instanceof lt&&h.equivalent_to(d.expressions[d.expressions.length-1]))return nt(t,[P(ae,t,{operator:"||",left:c,right:nt(t,d.expressions.slice(0,-1))}),h]).optimize(e);if(d instanceof ae&&d.operator=="&&"&&h.equivalent_to(d.right))return P(ae,t,{operator:"&&",left:P(ae,t,{operator:"||",left:c,right:d.left}),right:h}).optimize(e);if(h instanceof tt&&h.alternative.equivalent_to(d))return P(tt,t,{condition:P(ae,t,{left:t.condition,operator:"&&",right:h.condition}),consequent:h.consequent,alternative:d});if(h.equivalent_to(d))return nt(t,[t.condition,h]).optimize(e);if(h instanceof ae&&h.operator=="||"&&h.right.equivalent_to(d))return P(ae,t,{operator:"||",left:P(ae,t,{operator:"&&",left:t.condition,right:h.left}),right:d}).optimize(e);const C=e.in_boolean_context();if(k(t.consequent))return B(t.alternative)?T(t.condition):P(ae,t,{operator:"||",left:T(t.condition),right:t.alternative});if(B(t.consequent))return k(t.alternative)?T(t.condition.negate(e)):P(ae,t,{operator:"&&",left:T(t.condition.negate(e)),right:t.alternative});if(k(t.alternative))return P(ae,t,{operator:"||",left:T(t.condition.negate(e)),right:t.consequent});if(B(t.alternative))return P(ae,t,{operator:"&&",left:T(t.condition),right:t.consequent});return t;function T(b){return b.is_boolean()?b:P(We,b,{operator:"!",expression:b.negate(e)})}function k(b){return b instanceof Er||C&&b instanceof Tt&&b.getValue()||b instanceof We&&b.operator=="!"&&b.expression instanceof Tt&&!b.expression.getValue()}function B(b){return b instanceof Gi||C&&b instanceof Tt&&!b.getValue()||b instanceof We&&b.operator=="!"&&b.expression instanceof Tt&&b.expression.getValue()}function L(){for(var b=h.args,y=d.args,g=0,O=b.length;g<O;g++){if(b[g]instanceof ht)return;if(!b[g].equivalent_to(y[g])){if(y[g]instanceof ht)return;for(var R=g+1;R<O;R++)if(b[R]instanceof ht||!b[R].equivalent_to(y[R]))return;return g}}}}),et(Lu,function(t,e){if(e.in_boolean_context())return P(Qe,t,{value:+t.value});var n=e.parent();return e.option("booleans_as_integers")?(n instanceof ae&&(n.operator=="==="||n.operator=="!==")&&(n.operator=n.operator.replace(/=$/,"")),P(Qe,t,{value:+t.value})):e.option("booleans")?n instanceof ae&&(n.operator=="=="||n.operator=="!=")?P(Qe,t,{value:+t.value}):P(We,t,{operator:"!",expression:P(Qe,t,{value:1-t.value})}):t});function kd(t,e){return t instanceof xe&&(t=t.fixed_value()),t?!(t instanceof Ge||t instanceof yt)||!(t instanceof Ge&&t.contains_this())?!0:e.parent()instanceof rr:!1}Xe.DEFMETHOD("flatten_object",function(t,e){if(e.option("properties")&&t!=="__proto__"){var n=e.option("unsafe_arrows")&&e.option("ecma")>=2015,r=this.expression;if(r instanceof Nt)for(var a=r.properties,c=a.length;--c>=0;){var h=a[c];if(""+(h instanceof Bn?h.key.name:h.key)==t)return!a.every(v=>(v instanceof Jt||n&&v instanceof Bn&&!v.is_generator)&&!v.computed_key())||!kd(h.value,e)?void 0:P(xn,this,{expression:P(St,r,{elements:a.map(function(v){var S=v.value;S instanceof Mi&&(S=P(Ft,S,S));var C=v.key;return C instanceof Ce&&!(C instanceof $n)?nt(v,[C,S]):S})}),property:P(Qe,this,{value:c})})}}}),et(xn,function(t,e){var n=t.expression,r=t.property;if(e.option("properties")){var a=r.evaluate(e);if(a!==r){if(typeof a=="string")if(a=="undefined")a=void 0;else{var c=parseFloat(a);c.toString()==a&&(a=c)}r=t.property=zi(r,ir(a,r).transform(e));var h=""+a;if(ku(h)&&h.length<=r.size()+1)return P(Wt,t,{expression:n,optional:t.optional,property:h,quote:r.quote}).optimize(e)}}var d;e:if(e.option("arguments")&&n instanceof xe&&n.name=="arguments"&&n.definition().orig.length==1&&(d=n.scope)instanceof Ge&&d.uses_arguments&&!(d instanceof Yt)&&r instanceof Qe){for(var v=r.getValue(),S=new Set,C=d.argnames,T=0;T<C.length;T++){if(!(C[T]instanceof Pn))break e;var k=C[T].name;if(S.has(k))break e;S.add(k)}var B=d.argnames[v];if(B&&e.has_directive("use strict")){var L=B.definition();(!e.option("reduce_vars")||L.assignments||L.orig.length>1)&&(B=null)}else if(!B&&!e.option("keep_fargs")&&v<d.argnames.length+5)for(;v>=d.argnames.length;)B=d.create_symbol(Pn,{source:d,scope:d,tentative_name:"argument_"+d.argnames.length}),d.argnames.push(B);if(B){var b=P(xe,t,B);return b.reference({}),rs(B,ao),b}}if(e.is_lhs())return t;if(a!==r){var y=t.flatten_object(h,e);y&&(n=t.expression=y.expression,r=t.property=y.property)}if(e.option("properties")&&e.option("side_effects")&&r instanceof Qe&&n instanceof St){var v=r.getValue(),g=n.elements,O=g[v];e:if(kd(O,e)){for(var R=!0,w=[],U=g.length;--U>v;){var c=g[U].drop_side_effect_free(e);c&&(w.unshift(c),R&&c.has_side_effects(e)&&(R=!1))}if(O instanceof ht)break e;for(O=O instanceof Ir?P(tn,O):O,R||w.unshift(O);--U>=0;){var c=g[U];if(c instanceof ht)break e;c=c.drop_side_effect_free(e),c?w.unshift(c):v--}return R?(w.push(O),nt(t,w).optimize(e)):P(xn,t,{expression:P(St,n,{elements:w}),property:P(Qe,r,{value:v})})}}var X=t.evaluate(e);return X!==t?(X=ir(X,t).optimize(e),Tr(e,X,t)):t}),et(gn,function(t,e){if(li(t.expression,e)){let n=e.parent();return n instanceof We&&n.operator==="delete"?ir(0,t):P(tn,t)}return t}),et(Wt,function(t,e){const n=e.parent();if(e.is_lhs())return t;if(e.option("unsafe_proto")&&t.expression instanceof Wt&&t.expression.property=="prototype"){var r=t.expression.expression;if(ui(r))switch(r.name){case"Array":t.expression=P(St,t.expression,{elements:[]});break;case"Function":t.expression=P(Ft,t.expression,{argnames:[],body:[]});break;case"Number":t.expression=P(Qe,t.expression,{value:0});break;case"Object":t.expression=P(Nt,t.expression,{properties:[]});break;case"RegExp":t.expression=P(hr,t.expression,{value:{source:"t",flags:""}});break;case"String":t.expression=P(dt,t.expression,{value:""});break}}if(!(n instanceof Ve)||!ur(n,xo)){const c=t.flatten_object(t.property,e);if(c)return c.optimize(e)}if(t.expression instanceof Xe&&n instanceof Xe)return t;let a=t.evaluate(e);return a!==t?(a=ir(a,t).optimize(e),Tr(e,a,t)):t});function hf(t,e){return e.in_boolean_context()?Tr(e,t,nt(t,[t,P(Er,t)]).optimize(e)):t}function Dd(t){for(var e=0;e<t.length;e++){var n=t[e];if(n instanceof ht){var r=n.expression;r instanceof St&&!r.elements.some(a=>a instanceof Ir)&&(t.splice(e,1,...r.elements),e--)}}}et(St,function(t,e){var n=hf(t,e);return n!==t?n:(Dd(t.elements),t)});function a0(t){for(var e=0;e<t.length;e++){var n=t[e];if(n instanceof ht){const r=n.expression;r instanceof Nt&&r.properties.every(a=>a instanceof Jt)?(t.splice(e,1,...r.properties),e--):(r instanceof Tt||r.is_constant())&&!(r instanceof dt)&&(t.splice(e,1),e--)}}}et(Nt,function(t,e){var n=hf(t,e);return n!==t?n:(a0(t.properties),t)}),et(hr,hf),et(an,function(t,e){return t.value&&ci(t.value,e)&&(t.value=null),t}),et(Yt,ff),et(Ft,function(t,e){return t=ff(t,e),e.option("unsafe_arrows")&&e.option("ecma")>=2015&&!t.name&&!t.is_generator&&!t.uses_arguments&&!t.pinned()&&!Fn(t,r=>{if(r instanceof Vn)return dr})?P(Yt,t,t).optimize(e):t}),et(yt,function(t){for(let e=0;e<t.properties.length;e++){const n=t.properties[e];n instanceof Yn&&n.body.length==0&&(t.properties.splice(e,1),e--)}return t}),et(Yn,function(t,e){return zu(t.body,e),t}),et(br,function(t,e){return t.expression&&!t.is_star&&ci(t.expression,e)&&(t.expression=null),t}),et(Xn,function(t,e){if(!e.option("evaluate")||e.parent()instanceof jr)return t;for(var n=[],r=0;r<t.segments.length;r++){var a=t.segments[r];if(a instanceof Ce){var c=a.evaluate(e);if(c!==a&&(c+"").length<=a.size()+3){n[n.length-1].value=n[n.length-1].value+c+t.segments[++r].value;continue}if(a instanceof Xn){var h=a.segments;n[n.length-1].value+=h[0].value;for(var d=1;d<h.length;d++)a=h[d],n.push(a);continue}}n.push(a)}if(t.segments=n,n.length==1)return P(dt,t,n[0]);if(n.length===3&&n[1]instanceof Ce&&(n[1].is_string(e)||n[1].is_number(e)||li(n[1],e)||e.option("unsafe"))){if(n[2].value==="")return P(ae,t,{operator:"+",left:P(dt,t,{value:n[0].value}),right:n[1]});if(n[0].value==="")return P(ae,t,{operator:"+",left:n[1],right:P(dt,t,{value:n[2].value})})}return t}),et(jr,function(t){return t});function pf(t,e){if(!e.option("computed_props")||!(t.key instanceof Tt))return t;if(t.key instanceof dt||t.key instanceof Qe){const n=t.key.value.toString();if(n==="__proto__"||n=="constructor"&&e.parent()instanceof yt)return t;t instanceof Jt?(t.quote=t.key.quote,t.key=n):t instanceof fr?(t.quote=t.key.quote,t.key=P(Hi,t.key,{name:n})):(t.quote=t.key.quote,t.key=P($n,t.key,{name:n}))}return t}et(cn,pf),et(Bn,function(t,e){if(pf(t,e),e.option("arrows")&&e.parent()instanceof Nt&&!t.is_generator&&!t.value.uses_arguments&&!t.value.pinned()&&t.value.body.length==1&&t.value.body[0]instanceof an&&t.value.body[0].value&&!t.value.contains_this()){var n=P(Yt,t.value,t.value);return n.async=t.async,n.is_generator=t.is_generator,P(Jt,t,{key:t.key instanceof $n?t.key.name:t.key,value:n,quote:t.quote})}return t}),et(Jt,function(t,e){pf(t,e);var n=e.option("unsafe_methods");if(n&&e.option("ecma")>=2015&&(!(n instanceof RegExp)||n.test(t.key+""))){var r=t.key,a=t.value,c=a instanceof Yt&&Array.isArray(a.body)&&!a.contains_this();if((c||a instanceof Ft)&&!a.name)return P(Bn,t,{async:a.async,is_generator:a.is_generator,key:r instanceof Ce?r:P($n,t,{name:r}),value:P(Mi,a,a),quote:t.quote})}return t}),et($t,function(t,e){if(e.option("pure_getters")==!0&&e.option("unused")&&!t.is_array&&Array.isArray(t.names)&&!c(e)&&!(t.names[t.names.length-1]instanceof ht)){for(var n=[],r=0;r<t.names.length;r++){var a=t.names[r];a instanceof Jt&&typeof a.key=="string"&&a.value instanceof In&&!h(e,a.value.definition())||n.push(a)}n.length!=t.names.length&&(t.names=n)}return t;function c(d){for(var v=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],S=0,C=0,T=v.length;S<T;C++){var k=d.parent(C);if(!k)return!1;if(!(S===0&&k.TYPE=="Destructuring")){if(!v[S].test(k.TYPE))return!1;S++}}return!0}function h(d,v){return v.references.length?!0:v.global?d.toplevel.vars?d.top_retain?d.top_retain(v):!1:!0:!1}});var df={exports:{}};(function(t,e){(function(n,r){r(e)})(Lp,function(n){const c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=new Uint8Array(64),d=new Uint8Array(128);for(let H=0;H<c.length;H++){const K=c.charCodeAt(H);h[H]=K,d[K]=H}const v=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(H){return Buffer.from(H.buffer,H.byteOffset,H.byteLength).toString()}}:{decode(H){let K="";for(let q=0;q<H.length;q++)K+=String.fromCharCode(H[q]);return K}};function S(H){const K=new Int32Array(5),q=[];let ce=0;do{const Se=C(H,ce),Ee=[];let Te=!0,Ke=0;K[0]=0;for(let Le=ce;Le<Se;Le++){let ot;Le=T(H,Le,K,0);const Ut=K[0];Ut<Ke&&(Te=!1),Ke=Ut,k(H,Le,Se)?(Le=T(H,Le,K,1),Le=T(H,Le,K,2),Le=T(H,Le,K,3),k(H,Le,Se)?(Le=T(H,Le,K,4),ot=[Ut,K[1],K[2],K[3],K[4]]):ot=[Ut,K[1],K[2],K[3]]):ot=[Ut],Ee.push(ot)}Te||B(Ee),q.push(Ee),ce=Se+1}while(ce<=H.length);return q}function C(H,K){const q=H.indexOf(";",K);return q===-1?H.length:q}function T(H,K,q,ce){let Se=0,Ee=0,Te=0;do{const Le=H.charCodeAt(K++);Te=d[Le],Se|=(Te&31)<<Ee,Ee+=5}while(Te&32);const Ke=Se&1;return Se>>>=1,Ke&&(Se=-2147483648|-Se),q[ce]+=Se,K}function k(H,K,q){return K>=q?!1:H.charCodeAt(K)!==44}function B(H){H.sort(L)}function L(H,K){return H[0]-K[0]}function b(H){const K=new Int32Array(5),q=1024*16,ce=q-36,Se=new Uint8Array(q),Ee=Se.subarray(0,ce);let Te=0,Ke="";for(let Le=0;Le<H.length;Le++){const ot=H[Le];if(Le>0&&(Te===q&&(Ke+=v.decode(Se),Te=0),Se[Te++]=59),ot.length!==0){K[0]=0;for(let Ut=0;Ut<ot.length;Ut++){const ct=ot[Ut];Te>ce&&(Ke+=v.decode(Ee),Se.copyWithin(0,ce,Te),Te-=ce),Ut>0&&(Se[Te++]=44),Te=y(Se,Te,K,ct,0),ct.length!==1&&(Te=y(Se,Te,K,ct,1),Te=y(Se,Te,K,ct,2),Te=y(Se,Te,K,ct,3),ct.length!==4&&(Te=y(Se,Te,K,ct,4)))}}}return Ke+v.decode(Se.subarray(0,Te))}function y(H,K,q,ce,Se){const Ee=ce[Se];let Te=Ee-q[Se];q[Se]=Ee,Te=Te<0?-Te<<1|1:Te<<1;do{let Ke=Te&31;Te>>>=5,Te>0&&(Ke|=32),H[K++]=h[Ke]}while(Te>0);return K}const g=/^[\w+.-]+:\/\//,O=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,R=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function w(H){return g.test(H)}function U(H){return H.startsWith("//")}function X(H){return H.startsWith("/")}function ee(H){return H.startsWith("file:")}function z(H){return/^[.?#]/.test(H)}function Y(H){const K=O.exec(H);return ne(K[1],K[2]||"",K[3],K[4]||"",K[5]||"/",K[6]||"",K[7]||"")}function $(H){const K=R.exec(H),q=K[2];return ne("file:","",K[1]||"","",X(q)?q:"/"+q,K[3]||"",K[4]||"")}function ne(H,K,q,ce,Se,Ee,Te){return{scheme:H,user:K,host:q,port:ce,path:Se,query:Ee,hash:Te,type:7}}function Q(H){if(U(H)){const q=Y("http:"+H);return q.scheme="",q.type=6,q}if(X(H)){const q=Y("http://foo.com"+H);return q.scheme="",q.host="",q.type=5,q}if(ee(H))return $(H);if(w(H))return Y(H);const K=Y("http://foo.com/"+H);return K.scheme="",K.host="",K.type=H?H.startsWith("?")?3:H.startsWith("#")?2:4:1,K}function _e(H){if(H.endsWith("/.."))return H;const K=H.lastIndexOf("/");return H.slice(0,K+1)}function ge(H,K){re(K,K.type),H.path==="/"?H.path=K.path:H.path=_e(K.path)+H.path}function re(H,K){const q=K<=4,ce=H.path.split("/");let Se=1,Ee=0,Te=!1;for(let Le=1;Le<ce.length;Le++){const ot=ce[Le];if(!ot){Te=!0;continue}if(Te=!1,ot!=="."){if(ot===".."){Ee?(Te=!0,Ee--,Se--):q&&(ce[Se++]=ot);continue}ce[Se++]=ot,Ee++}}let Ke="";for(let Le=1;Le<Se;Le++)Ke+="/"+ce[Le];(!Ke||Te&&!Ke.endsWith("/.."))&&(Ke+="/"),H.path=Ke}function de(H,K){if(!H&&!K)return"";const q=Q(H);let ce=q.type;if(K&&ce!==7){const Ee=Q(K),Te=Ee.type;switch(ce){case 1:q.hash=Ee.hash;case 2:q.query=Ee.query;case 3:case 4:ge(q,Ee);case 5:q.user=Ee.user,q.host=Ee.host,q.port=Ee.port;case 6:q.scheme=Ee.scheme}Te>ce&&(ce=Te)}re(q,ce);const Se=q.query+q.hash;switch(ce){case 2:case 3:return Se;case 4:{const Ee=q.path.slice(1);return Ee?z(K||H)&&!z(Ee)?"./"+Ee+Se:Ee+Se:Se||"."}case 5:return q.path+Se;default:return q.scheme+"//"+q.user+q.host+q.port+q.path+Se}}function fe(H,K){return K&&!K.endsWith("/")&&(K+="/"),de(H,K)}function Oe(H){if(!H)return"";const K=H.lastIndexOf("/");return H.slice(0,K+1)}const Ie=0,ve=1,Ue=2,J=3,ie=4,ue=1,Ae=2;function be(H,K){const q=At(H,0);if(q===H.length)return H;K||(H=H.slice());for(let ce=q;ce<H.length;ce=At(H,ce+1))H[ce]=Et(H[ce],K);return H}function At(H,K){for(let q=K;q<H.length;q++)if(!Vt(H[q]))return q;return H.length}function Vt(H){for(let K=1;K<H.length;K++)if(H[K][Ie]<H[K-1][Ie])return!1;return!0}function Et(H,K){return K||(H=H.slice()),H.sort(Mt)}function Mt(H,K){return H[Ie]-K[Ie]}let gt=!1;function Ot(H,K,q,ce){for(;q<=ce;){const Se=q+(ce-q>>1),Ee=H[Se][Ie]-K;if(Ee===0)return gt=!0,Se;Ee<0?q=Se+1:ce=Se-1}return gt=!1,q-1}function Zt(H,K,q){for(let ce=q+1;ce<H.length&&H[ce][Ie]===K;q=ce++);return q}function se(H,K,q){for(let ce=q-1;ce>=0&&H[ce][Ie]===K;q=ce--);return q}function De(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function me(H,K,q,ce){const{lastKey:Se,lastNeedle:Ee,lastIndex:Te}=q;let Ke=0,Le=H.length-1;if(ce===Se){if(K===Ee)return gt=Te!==-1&&H[Te][Ie]===K,Te;K>=Ee?Ke=Te===-1?0:Te:Le=Te}return q.lastKey=ce,q.lastNeedle=K,q.lastIndex=Ot(H,K,Ke,Le)}function bt(H,K){const q=K.map(kt);for(let ce=0;ce<H.length;ce++){const Se=H[ce];for(let Ee=0;Ee<Se.length;Ee++){const Te=Se[Ee];if(Te.length===1)continue;const Ke=Te[ve],Le=Te[Ue],ot=Te[J],Ut=q[Ke],ct=Ut[Le]||(Ut[Le]=[]),Gt=K[Ke];let On=Zt(ct,ot,me(ct,ot,Gt,Le));Gt.lastIndex=++On,xt(ct,On,[ot,ce,Te[Ie]])}}return q}function xt(H,K,q){for(let ce=H.length;ce>K;ce--)H[ce]=H[ce-1];H[K]=q}function kt(){return{__proto__:null}}const Un=function(H,K){const q=Qt(H);if(!("sections"in q))return new Me(q,K);const ce=[],Se=[],Ee=[],Te=[],Ke=[];dn(q,K,ce,Se,Ee,Te,Ke,0,0,1/0,1/0);const Le={version:3,file:q.file,names:Te,sources:Se,sourcesContent:Ee,mappings:ce,ignoreList:Ke};return Ci(Le)};function Qt(H){return typeof H=="string"?JSON.parse(H):H}function dn(H,K,q,ce,Se,Ee,Te,Ke,Le,ot,Ut){const{sections:ct}=H;for(let Gt=0;Gt<ct.length;Gt++){const{map:On,offset:Gn}=ct[Gt];let Jn=ot,Mr=Ut;if(Gt+1<ct.length){const qr=ct[Gt+1].offset;Jn=Math.min(ot,Ke+qr.line),Jn===ot?Mr=Math.min(Ut,Le+qr.column):Jn<ot&&(Mr=Le+qr.column)}jt(On,K,q,ce,Se,Ee,Te,Ke+Gn.line,Le+Gn.column,Jn,Mr)}}function jt(H,K,q,ce,Se,Ee,Te,Ke,Le,ot,Ut){const ct=Qt(H);if("sections"in ct)return dn(...arguments);const Gt=new Me(ct,K),On=ce.length,Gn=Ee.length,Jn=ft(Gt),{resolvedSources:Mr,sourcesContent:qr,ignoreList:Ta}=Gt;if(Pt(ce,Mr),Pt(Ee,Gt.names),qr)Pt(Se,qr);else for(let Zn=0;Zn<Mr.length;Zn++)Se.push(null);if(Ta)for(let Zn=0;Zn<Ta.length;Zn++)Te.push(Ta[Zn]+On);for(let Zn=0;Zn<Jn.length;Zn++){const Ji=Ke+Zn;if(Ji>ot)return;const cs=fn(q,Ji),qu=Zn===0?Le:0,ls=Jn[Zn];for(let Zi=0;Zi<ls.length;Zi++){const Qi=ls[Zi],Br=qu+Qi[Ie];if(Ji===ot&&Br>=Ut)return;if(Qi.length===1){cs.push([Br]);continue}const ho=On+Qi[ve],Yu=Qi[Ue],Bo=Qi[J];cs.push(Qi.length===4?[Br,ho,Yu,Bo]:[Br,ho,Yu,Bo,Gn+Qi[ie]])}}}function Pt(H,K){for(let q=0;q<K.length;q++)H.push(K[q])}function fn(H,K){for(let q=H.length;q<=K;q++)H[q]=[];return H[K]}const xi="`line` must be greater than 0 (lines start at line 1)",j="`column` must be greater than or equal to 0 (columns start at column 0)",Ne=-1,Be=1;class Me{constructor(K,q){const ce=typeof K=="string";if(!ce&&K._decodedMemo)return K;const Se=ce?JSON.parse(K):K,{version:Ee,file:Te,names:Ke,sourceRoot:Le,sources:ot,sourcesContent:Ut}=Se;this.version=Ee,this.file=Te,this.names=Ke||[],this.sourceRoot=Le,this.sources=ot,this.sourcesContent=Ut,this.ignoreList=Se.ignoreList||Se.x_google_ignoreList||void 0;const ct=fe(Le||"",Oe(q));this.resolvedSources=ot.map(On=>fe(On||"",ct));const{mappings:Gt}=Se;typeof Gt=="string"?(this._encoded=Gt,this._decoded=void 0):(this._encoded=void 0,this._decoded=be(Gt,ce)),this._decodedMemo=De(),this._bySources=void 0,this._bySourceMemos=void 0}}function ut(H){return H}function on(H){var K,q;return(K=(q=H)._encoded)!==null&&K!==void 0?K:q._encoded=b(H._decoded)}function ft(H){var K;return(K=H)._decoded||(K._decoded=S(H._encoded))}function vn(H,K){let{line:q,column:ce,bias:Se}=K;if(q--,q<0)throw new Error(xi);if(ce<0)throw new Error(j);const Ee=ft(H);if(q>=Ee.length)return Ar(null,null,null,null);const Te=Ee[q],Ke=Po(Te,H._decodedMemo,q,ce,Se||Be);if(Ke===-1)return Ar(null,null,null,null);const Le=Te[Ke];if(Le.length===1)return Ar(null,null,null,null);const{names:ot,resolvedSources:Ut}=H;return Ar(Ut[Le[ve]],Le[Ue]+1,Le[J],Le.length===5?ot[Le[ie]]:null)}function Cn(H,K){const{source:q,line:ce,column:Se,bias:Ee}=K;return Fr(H,q,ce,Se,Ee||Be,!1)}function fi(H,K){const{source:q,line:ce,column:Se,bias:Ee}=K;return Fr(H,q,ce,Se,Ee||Ne,!0)}function Mn(H,K){const q=ft(H),{names:ce,resolvedSources:Se}=H;for(let Ee=0;Ee<q.length;Ee++){const Te=q[Ee];for(let Ke=0;Ke<Te.length;Ke++){const Le=Te[Ke],ot=Ee+1,Ut=Le[0];let ct=null,Gt=null,On=null,Gn=null;Le.length!==1&&(ct=Se[Le[1]],Gt=Le[2]+1,On=Le[3]),Le.length===5&&(Gn=ce[Le[4]]),K({generatedLine:ot,generatedColumn:Ut,source:ct,originalLine:Gt,originalColumn:On,name:Gn})}}}function hn(H,K){const{sources:q,resolvedSources:ce}=H;let Se=q.indexOf(K);return Se===-1&&(Se=ce.indexOf(K)),Se}function lo(H,K){const{sourcesContent:q}=H;if(q==null)return null;const ce=hn(H,K);return ce===-1?null:q[ce]}function Ci(H,K){const q=new Me(fo(H,[]),K);return q._decoded=H.mappings,q}function fo(H,K){return{version:H.version,file:H.file,names:H.names,sourceRoot:H.sourceRoot,sources:H.sources,sourcesContent:H.sourcesContent,mappings:K,ignoreList:H.ignoreList||H.x_google_ignoreList}}function Ar(H,K,q,ce){return{source:H,line:K,column:q,name:ce}}function Wr(H,K){return{line:H,column:K}}function Po(H,K,q,ce,Se){let Ee=me(H,ce,K,q);return gt?Ee=(Se===Ne?Zt:se)(H,ce,Ee):Se===Ne&&Ee++,Ee===-1||Ee===H.length?-1:Ee}function Xi(H,K,q,ce,Se){let Ee=Po(H,K,q,ce,Be);if(!gt&&Se===Ne&&Ee++,Ee===-1||Ee===H.length)return[];const Te=gt?ce:H[Ee][Ie];gt||(Ee=se(H,Te,Ee));const Ke=Zt(H,Te,Ee),Le=[];for(;Ee<=Ke;Ee++){const ot=H[Ee];Le.push(Wr(ot[ue]+1,ot[Ae]))}return Le}function Fr(H,K,q,ce,Se,Ee){var Te;if(q--,q<0)throw new Error(xi);if(ce<0)throw new Error(j);const{sources:Ke,resolvedSources:Le}=H;let ot=Ke.indexOf(K);if(ot===-1&&(ot=Le.indexOf(K)),ot===-1)return Ee?[]:Wr(null,null);const ct=((Te=H)._bySources||(Te._bySources=bt(ft(H),H._bySourceMemos=Ke.map(De))))[ot][q];if(ct==null)return Ee?[]:Wr(null,null);const Gt=H._bySourceMemos[ot];if(Ee)return Xi(ct,Gt,q,ce,Se);const On=Po(ct,Gt,q,ce,Se);if(On===-1)return Wr(null,null);const Gn=ct[On];return Wr(Gn[ue]+1,Gn[Ae])}class hi{constructor(){this._indexes={__proto__:null},this.array=[]}}function Fo(H){return H}function _t(H,K){return H._indexes[K]}function or(H,K){const q=_t(H,K);if(q!==void 0)return q;const{array:ce,_indexes:Se}=H,Ee=ce.push(K);return Se[K]=Ee-1}const N=0,G=1,W=2,Z=3,oe=4,Fe=-1;class Pe{constructor({file:K,sourceRoot:q}={}){this._names=new hi,this._sources=new hi,this._sourcesContent=[],this._mappings=[],this.file=K,this.sourceRoot=q,this._ignoreList=new hi}}function rt(H){return H}const Ht=(H,K)=>Mo(!0,H,K);function sn(H,K,q){const{_sources:ce,_sourcesContent:Se}=H,Ee=or(ce,K);Se[Ee]=q}function En(H){const{_mappings:K,_sources:q,_sourcesContent:ce,_names:Se,_ignoreList:Ee}=H;return mf(K),{version:3,file:H.file||void 0,names:Se.array,sourceRoot:H.sourceRoot||void 0,sources:q.array,sourcesContent:ce,mappings:K,ignoreList:Ee.array}}function Lr(H){const K=En(H);return Object.assign(Object.assign({},K),{mappings:b(K.mappings)})}function Bt(H){const K=new Me(H),q=new Pe({file:K.file,sourceRoot:K.sourceRoot});return Lo(q._names,K.names),Lo(q._sources,K.sources),q._sourcesContent=K.sourcesContent||K.sources.map(()=>null),q._mappings=ft(K),K.ignoreList&&Lo(q._ignoreList,K.ignoreList),q}function Xr(H,K,q,ce,Se,Ee,Te,Ke,Le){const{_mappings:ot,_sources:Ut,_sourcesContent:ct,_names:Gt}=K,On=xr(ot,q),Gn=Xu(On,ce);if(!Se)return H&&as(On,Gn)?void 0:qi(On,Gn,[ce]);const Jn=or(Ut,Se),Mr=Ke?or(Gt,Ke):Fe;if(Jn===ct.length&&(ct[Jn]=Le??null),!(H&&Yi(On,Gn,Jn,Ee,Te,Mr)))return qi(On,Gn,Ke?[ce,Jn,Ee,Te,Mr]:[ce,Jn,Ee,Te])}function xr(H,K){for(let q=H.length;q<=K;q++)H[q]=[];return H[K]}function Xu(H,K){let q=H.length;for(let ce=q-1;ce>=0;q=ce--){const Se=H[ce];if(K>=Se[N])break}return q}function qi(H,K,q){for(let ce=H.length;ce>K;ce--)H[ce]=H[ce-1];H[K]=q}function mf(H){const{length:K}=H;let q=K;for(let ce=q-1;ce>=0&&!(H[ce].length>0);q=ce,ce--);q<K&&(H.length=q)}function Lo(H,K){for(let q=0;q<K.length;q++)or(H,K[q])}function as(H,K){return K===0?!0:H[K-1].length===1}function Yi(H,K,q,ce,Se,Ee){if(K===0)return!1;const Te=H[K-1];return Te.length===1?!1:q===Te[G]&&ce===Te[W]&&Se===Te[Z]&&Ee===(Te.length===5?Te[oe]:Fe)}function Mo(H,K,q){const{generated:ce,source:Se,original:Ee,name:Te,content:Ke}=q;return Se?Xr(H,K,ce.line-1,ce.column,Se,Ee.line-1,Ee.column,Te,Ke):Xr(H,K,ce.line-1,ce.column,null,null,null,null,null)}class us{constructor(K,q){const ce=this._map=new Un(K,q);this.file=ce.file,this.names=ce.names,this.sourceRoot=ce.sourceRoot,this.sources=ce.resolvedSources,this.sourcesContent=ce.sourcesContent,this.version=ce.version}static fromSourceMap(K,q){return K.toDecodedMap?new us(K.toDecodedMap(),q):new us(K.toJSON(),q)}get mappings(){return on(this._map)}originalPositionFor(K){return vn(this._map,K)}generatedPositionFor(K){return Cn(this._map,K)}allGeneratedPositionsFor(K){return fi(this._map,K)}hasContentsOfAllSources(){if(!this.sourcesContent||this.sourcesContent.length!==this.sources.length)return!1;for(const K of this.sourcesContent)if(K==null)return!1;return!0}sourceContentFor(K,q){const ce=lo(this._map,K);if(ce!=null)return ce;if(q)return null;throw new Error(`"${K}" is not in the SourceMap.`)}eachMapping(K,q){Mn(this._map,q?K.bind(q):K)}destroy(){}}class it{constructor(K){this._map=K instanceof Pe?K:new Pe(K)}static fromSourceMap(K){return new it(Bt(K))}addMapping(K){Ht(this._map,K)}setSourceContent(K,q){sn(this._map,K,q)}toJSON(){return Lr(this._map)}toString(){return JSON.stringify(this.toJSON())}toDecodedMap(){return En(this._map)}}n.SourceMapConsumer=us,n.SourceMapGenerator=it,Object.defineProperty(n,"__esModule",{value:!0})})})(df,df.exports);var wd=df.exports;function*u0(t){t=_i(t,{file:null,root:null,orig:null,files:{}});var e,n=new wd.SourceMapGenerator({file:t.file,sourceRoot:t.root});let r={__proto__:null},a=t.files;for(var c in a)tr(a,c)&&(r[c]=a[c]);t.orig&&(e=yield new wd.SourceMapConsumer(t.orig),e.sourcesContent&&e.sources.forEach(function(T,k){var B=e.sourcesContent[k];B&&(r[T]=B)}));function h(T,k,B,L,b,y){let g={line:k,column:B};if(e){var O=e.originalPositionFor({line:L,column:b});if(O.source===null){n.addMapping({generated:g,original:null,source:null,name:null});return}T=O.source,L=O.line,b=O.column,y=O.name||y}n.addMapping({generated:g,original:{line:L,column:b},source:T,name:y}),n.setSourceContent(T,r[T])}function d(T){return T.sourcesContent&&T.sourcesContent.every(B=>B==null)&&delete T.sourcesContent,T.file===void 0&&delete T.file,T.sourceRoot===void 0&&delete T.sourceRoot,T}function v(){return n.toDecodedMap?d(n.toDecodedMap()):null}function S(){return d(n.toJSON())}function C(){e&&e.destroy&&e.destroy()}return{add:h,getDecoded:v,getEncoded:S,destroy:C}}var c0=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-fill-mode","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-hyphens","-moz-image-region","-moz-margin-end","-moz-margin-start","-moz-orient","-moz-osx-font-smoothing","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-padding-end","-moz-padding-start","-moz-perspective","-moz-perspective-origin","-moz-tab-size","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transform-style","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-dragging","-webkit-align-content","-webkit-align-items","-webkit-align-self","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-origin","-webkit-background-size","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-clip-path","-webkit-filter","-webkit-flex","-webkit-flex-basis","-webkit-flex-direction","-webkit-flex-flow","-webkit-flex-grow","-webkit-flex-shrink","-webkit-flex-wrap","-webkit-justify-content","-webkit-line-clamp","-webkit-mask","-webkit-mask-clip","-webkit-mask-composite","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-position","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-mask-repeat","-webkit-mask-size","-webkit-order","-webkit-perspective","-webkit-perspective-origin","-webkit-text-fill-color","-webkit-text-security","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-transform","-webkit-transform-origin","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-select","0","1","10","11","12","13","14","15","16","17","18","19","2","20","3","4","5","6","7","8","9","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ACTIVE_UNIFORM_BLOCKS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALL","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALREADY_SIGNALED","ALT_MASK","ALWAYS","ANY_SAMPLES_PASSED","ANY_SAMPLES_PASSED_CONSERVATIVE","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AbortController","AbortSignal","AbsoluteOrientationSensor","AbstractRange","Accelerometer","AddSearchProvider","AggregateError","AnalyserNode","Animation","AnimationEffect","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","AnonXMLHttpRequest","Any","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","ArrayType","Atomics","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioData","AudioDecoder","AudioDestinationNode","AudioEncoder","AudioListener","AudioNode","AudioParam","AudioParamMap","AudioProcessingEvent","AudioScheduledSourceNode","AudioSinkInfo","AudioStreamTrack","AudioWorklet","AudioWorkletNode","AuthenticatorAssertionResponse","AuthenticatorAttestationResponse","AuthenticatorResponse","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BAD_REQUEST","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BackgroundFetchManager","BackgroundFetchRecord","BackgroundFetchRegistration","BarProp","BarcodeDetector","BaseAudioContext","BaseHref","BatteryManager","BeforeInstallPromptEvent","BeforeLoadEvent","BeforeUnloadEvent","BigInt","BigInt64Array","BigUint64Array","BiquadFilterNode","Blob","BlobEvent","Bluetooth","BluetoothCharacteristicProperties","BluetoothDevice","BluetoothRemoteGATTCharacteristic","BluetoothRemoteGATTDescriptor","BluetoothRemoteGATTServer","BluetoothRemoteGATTService","BluetoothUUID","Boolean","BroadcastChannel","BrowserCaptureMediaStreamTrack","ByteLengthQueuingStrategy","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR","COLOR_ATTACHMENT0","COLOR_ATTACHMENT1","COLOR_ATTACHMENT10","COLOR_ATTACHMENT11","COLOR_ATTACHMENT12","COLOR_ATTACHMENT13","COLOR_ATTACHMENT14","COLOR_ATTACHMENT15","COLOR_ATTACHMENT2","COLOR_ATTACHMENT3","COLOR_ATTACHMENT4","COLOR_ATTACHMENT5","COLOR_ATTACHMENT6","COLOR_ATTACHMENT7","COLOR_ATTACHMENT8","COLOR_ATTACHMENT9","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPARE_REF_TO_TEXTURE","COMPILE_STATUS","COMPLETION_STATUS_KHR","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","COMPUTE","CONDITION_SATISFIED","CONFIGURATION_UNSUPPORTED","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COPY_DST","COPY_READ_BUFFER","COPY_READ_BUFFER_BINDING","COPY_SRC","COPY_WRITE_BUFFER","COPY_WRITE_BUFFER_BINDING","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSAnimation","CSSCharsetRule","CSSConditionRule","CSSContainerRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSFontPaletteValuesRule","CSSGroupingRule","CSSImageValue","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSKeywordValue","CSSLayerBlockRule","CSSLayerStatementRule","CSSMathClamp","CSSMathInvert","CSSMathMax","CSSMathMin","CSSMathNegate","CSSMathProduct","CSSMathSum","CSSMathValue","CSSMatrixComponent","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSNamespaceRule","CSSNumericArray","CSSNumericValue","CSSPageRule","CSSPerspective","CSSPositionValue","CSSPrimitiveValue","CSSPropertyRule","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSScopeRule","CSSSkew","CSSSkewX","CSSSkewY","CSSStartingStyleRule","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSStyleValue","CSSSupportsRule","CSSTransformComponent","CSSTransformValue","CSSTransition","CSSTranslate","CSSUnitValue","CSSUnknownRule","CSSUnparsedValue","CSSValue","CSSValueList","CSSVariableReferenceValue","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_QUERY","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","Cache","CacheStorage","CanvasCaptureMediaStream","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaptureController","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterBoundsUpdateEvent","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","ClipboardItem","CloseEvent","Collator","CommandEvent","Comment","CompileError","CompositionEvent","CompressionStream","Console","ConstantSourceNode","ContentVisibilityAutoStateChangeEvent","Controllers","ConvolverNode","CookieChangeEvent","CookieStore","CookieStoreManager","CountQueuingStrategy","Counter","Credential","CredentialsContainer","CropTarget","Crypto","CryptoKey","CustomElementRegistry","CustomEvent","CustomStateSet","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH","DEPTH24_STENCIL8","DEPTH32F_STENCIL8","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_COMPONENT24","DEPTH_COMPONENT32F","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DEVICE_INELIGIBLE","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DRAW_BUFFER0","DRAW_BUFFER1","DRAW_BUFFER10","DRAW_BUFFER11","DRAW_BUFFER12","DRAW_BUFFER13","DRAW_BUFFER14","DRAW_BUFFER15","DRAW_BUFFER2","DRAW_BUFFER3","DRAW_BUFFER4","DRAW_BUFFER5","DRAW_BUFFER6","DRAW_BUFFER7","DRAW_BUFFER8","DRAW_BUFFER9","DRAW_FRAMEBUFFER","DRAW_FRAMEBUFFER_BINDING","DST_ALPHA","DST_COLOR","DYNAMIC_COPY","DYNAMIC_DRAW","DYNAMIC_READ","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DecompressionStream","DelayNode","DelegatedInkTrailPresenter","DeprecationReportBody","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceMotionEventAcceleration","DeviceMotionEventRotationRate","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Directory","DisplayNames","Document","DocumentFragment","DocumentPictureInPicture","DocumentPictureInPictureEvent","DocumentTimeline","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","EditContext","Element","ElementInternals","ElementQuery","EncodedAudioChunk","EncodedVideoChunk","EnterPictureInPictureEvent","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventCounts","EventException","EventSource","EventTarget","Exception","External","EyeDropper","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_32_UNSIGNED_INT_24_8_REV","FLOAT_MAT2","FLOAT_MAT2x3","FLOAT_MAT2x4","FLOAT_MAT3","FLOAT_MAT3x2","FLOAT_MAT3x4","FLOAT_MAT4","FLOAT_MAT4x2","FLOAT_MAT4x3","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE","FRAMEBUFFER_ATTACHMENT_BLUE_SIZE","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE","FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE","FRAMEBUFFER_ATTACHMENT_GREEN_SIZE","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_RED_SIZE","FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_DEFAULT","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_MULTISAMPLE","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","FeaturePolicy","FeaturePolicyViolationReportBody","FederatedCredential","Feed","FeedEntry","Fence","FencedFrameConfig","File","FileError","FileList","FileReader","FileSystem","FileSystemDirectoryEntry","FileSystemDirectoryHandle","FileSystemDirectoryReader","FileSystemEntry","FileSystemFileEntry","FileSystemFileHandle","FileSystemHandle","FileSystemWritableFileStream","FinalizationRegistry","FindInPage","Float32Array","Float64Array","FocusEvent","FontData","FontFace","FontFaceSet","FontFaceSetLoadEvent","FormData","FormDataEvent","FragmentDirective","Function","GENERATE_MIPMAP_HINT","GEQUAL","GPU","GPUAdapter","GPUAdapterInfo","GPUBindGroup","GPUBindGroupLayout","GPUBuffer","GPUBufferUsage","GPUCanvasContext","GPUColorWrite","GPUCommandBuffer","GPUCommandEncoder","GPUCompilationInfo","GPUCompilationMessage","GPUComputePassEncoder","GPUComputePipeline","GPUDevice","GPUDeviceLostInfo","GPUError","GPUExternalTexture","GPUInternalError","GPUMapMode","GPUOutOfMemoryError","GPUPipelineError","GPUPipelineLayout","GPUQuerySet","GPUQueue","GPURenderBundle","GPURenderBundleEncoder","GPURenderPassEncoder","GPURenderPipeline","GPUSampler","GPUShaderModule","GPUShaderStage","GPUSupportedFeatures","GPUSupportedLimits","GPUTexture","GPUTextureUsage","GPUTextureView","GPUUncapturedErrorEvent","GPUValidationError","GREATER","GREEN","GREEN_BITS","GainNode","Gamepad","GamepadAxisMoveEvent","GamepadButton","GamepadButtonEvent","GamepadEvent","GamepadHapticActuator","GamepadPose","Geolocation","GeolocationCoordinates","GeolocationPosition","GeolocationPositionError","GestureEvent","Global","GravitySensor","Gyroscope","HALF_FLOAT","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HID","HIDConnectionEvent","HIDDEN","HIDDevice","HIDInputReportEvent","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFencedFrameElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","Highlight","HighlightRegistry","History","Hz","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IIRFilterNode","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX","INDEX_SIZE_ERR","INDIRECT","INT","INTERLEAVED_ATTRIBS","INT_2_10_10_10_REV","INT_SAMPLER_2D","INT_SAMPLER_2D_ARRAY","INT_SAMPLER_3D","INT_SAMPLER_CUBE","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_INDEX","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","IdentityCredential","IdentityCredentialError","IdentityProvider","IdleDeadline","IdleDetector","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","ImageDecoder","ImageTrack","ImageTrackList","Infinity","Ink","InputDeviceCapabilities","InputDeviceInfo","InputEvent","InputMethodContext","InstallTrigger","InstallTriggerImpl","Instance","Int16Array","Int32Array","Int8Array","Intent","InternalError","IntersectionObserver","IntersectionObserverEntry","Intl","IsSearchProviderInstalled","Iterator","JSON","JSTag","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","Keyboard","KeyboardEvent","KeyboardLayoutMap","KeyframeEffect","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LargestContentfulPaint","LaunchParams","LaunchQueue","LayoutShift","LayoutShiftAttribution","LinearAccelerationSensor","LinkError","ListFormat","LocalMediaStream","Locale","Location","Lock","LockManager","MAP_READ","MAP_WRITE","MAX","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_CLIENT_WAIT_TIMEOUT_WEBGL","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_DRAW_BUFFERS","MAX_ELEMENTS_INDICES","MAX_ELEMENTS_VERTICES","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_PROGRAM_TEXEL_OFFSET","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_LOD_BIAS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MAX_VALUE","MAX_VARYING_COMPONENTS","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MIN","MIN_PROGRAM_TEXEL_OFFSET","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MathMLElement","MediaCapabilities","MediaCapabilitiesInfo","MediaController","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaRecorderErrorEvent","MediaSession","MediaSettingsRange","MediaSource","MediaSourceHandle","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackAudioSourceNode","MediaStreamTrackEvent","MediaStreamTrackGenerator","MediaStreamTrackProcessor","MediaStreamTrackVideoStats","Memory","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","Module","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","NavigateEvent","Navigation","NavigationActivation","NavigationCurrentEntryChangeEvent","NavigationDestination","NavigationHistoryEntry","NavigationPreloadManager","NavigationTransition","Navigator","NavigatorLogin","NavigatorManagedData","NavigatorUAData","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","NotRestoredReasonDetails","NotRestoredReasons","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBJECT_TYPE","OBSOLETE","OK","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OTHER_ERROR","OTPCredential","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","OffscreenCanvas","OffscreenCanvasRenderingContext2D","Option","OrientationSensor","OscillatorNode","OverconstrainedError","OverflowEvent","PACK_ALIGNMENT","PACK_ROW_LENGTH","PACK_SKIP_PIXELS","PACK_SKIP_ROWS","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PIXEL_PACK_BUFFER","PIXEL_PACK_BUFFER_BINDING","PIXEL_UNPACK_BUFFER","PIXEL_UNPACK_BUFFER_BINDING","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageRevealEvent","PageSwapEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","PasswordCredential","Path2D","PaymentAddress","PaymentInstruments","PaymentManager","PaymentMethodChangeEvent","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","Performance","PerformanceElementTiming","PerformanceEntry","PerformanceEventTiming","PerformanceLongAnimationFrameTiming","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceScriptTiming","PerformanceServerTiming","PerformanceTiming","PeriodicSyncManager","PeriodicWave","PermissionStatus","Permissions","PhotoCapabilities","PictureInPictureEvent","PictureInPictureWindow","Plugin","PluginArray","PluralRules","PointerEvent","PopStateEvent","PopupBlockedEvent","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","ProcessingInstruction","Profiler","ProgressEvent","Promise","PromiseRejectionEvent","PropertyNodeList","Proxy","PublicKeyCredential","PushManager","PushSubscription","PushSubscriptionOptions","Q","QUERY_RESOLVE","QUERY_RESULT","QUERY_RESULT_AVAILABLE","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","R11F_G11F_B10F","R16F","R16I","R16UI","R32F","R32I","R32UI","R8","R8I","R8UI","R8_SNORM","RASTERIZER_DISCARD","READ","READ_BUFFER","READ_FRAMEBUFFER","READ_FRAMEBUFFER_BINDING","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED","RED_BITS","RED_INTEGER","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_SAMPLES","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","RENDER_ATTACHMENT","REPEAT","REPLACE","RG","RG16F","RG16I","RG16UI","RG32F","RG32I","RG32UI","RG8","RG8I","RG8UI","RG8_SNORM","RGB","RGB10_A2","RGB10_A2UI","RGB16F","RGB16I","RGB16UI","RGB32F","RGB32I","RGB32UI","RGB565","RGB5_A1","RGB8","RGB8I","RGB8UI","RGB8_SNORM","RGB9_E5","RGBA","RGBA16F","RGBA16I","RGBA16UI","RGBA32F","RGBA32I","RGBA32UI","RGBA4","RGBA8","RGBA8I","RGBA8UI","RGBA8_SNORM","RGBA_INTEGER","RGBColor","RGB_INTEGER","RG_INTEGER","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCCertificate","RTCDTMFSender","RTCDTMFToneChangeEvent","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCEncodedAudioFrame","RTCEncodedVideoFrame","RTCError","RTCErrorEvent","RTCIceCandidate","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceErrorEvent","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpScriptTransform","RTCRtpSender","RTCRtpTransceiver","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","RadioNodeList","Range","RangeError","RangeException","ReadableByteStreamController","ReadableStream","ReadableStreamBYOBReader","ReadableStreamBYOBRequest","ReadableStreamDefaultController","ReadableStreamDefaultReader","RecordErrorEvent","Rect","ReferenceError","Reflect","RegExp","RelativeOrientationSensor","RelativeTimeFormat","RemotePlayback","Report","ReportBody","ReportingObserver","Request","ResizeObserver","ResizeObserverEntry","ResizeObserverSize","Response","RuntimeError","SAMPLER_2D","SAMPLER_2D_ARRAY","SAMPLER_2D_ARRAY_SHADOW","SAMPLER_2D_SHADOW","SAMPLER_3D","SAMPLER_BINDING","SAMPLER_CUBE","SAMPLER_CUBE_SHADOW","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SEPARATE_ATTRIBS","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SIGNALED","SIGNED_NORMALIZED","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","SRGB","SRGB8","SRGB8_ALPHA8","START_TO_END","START_TO_START","STATIC_COPY","STATIC_DRAW","STATIC_READ","STENCIL","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STORAGE","STORAGE_BINDING","STREAM_COPY","STREAM_DRAW","STREAM_READ","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_LIGHTER","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_AUTO_START_REVERSE","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNC_CONDITION","SYNC_FENCE","SYNC_FLAGS","SYNC_FLUSH_COMMANDS_BIT","SYNC_GPU_COMMANDS_COMPLETE","SYNC_STATUS","SYNTAX_ERR","SavedPages","Scheduler","Scheduling","Screen","ScreenDetailed","ScreenDetails","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","ScrollTimeline","SecurityPolicyViolationEvent","Segmenter","Selection","Sensor","SensorErrorEvent","Serial","SerialPort","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedArrayBuffer","SharedStorage","SharedStorageWorklet","SharedWorker","SimpleGestureEvent","SourceBuffer","SourceBufferList","SpeechSynthesis","SpeechSynthesisErrorEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","SpeechSynthesisVoice","StaticRange","StereoPannerNode","StopIteration","Storage","StorageBucket","StorageBucketManager","StorageEvent","StorageManager","String","StructType","StylePropertyMap","StylePropertyMapReadOnly","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","Symbol","SyncManager","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_2D_ARRAY","TEXTURE_3D","TEXTURE_BASE_LEVEL","TEXTURE_BINDING","TEXTURE_BINDING_2D","TEXTURE_BINDING_2D_ARRAY","TEXTURE_BINDING_3D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_COMPARE_FUNC","TEXTURE_COMPARE_MODE","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_IMMUTABLE_FORMAT","TEXTURE_IMMUTABLE_LEVELS","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_LEVEL","TEXTURE_MAX_LOD","TEXTURE_MIN_FILTER","TEXTURE_MIN_LOD","TEXTURE_WRAP_R","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TIMEOUT_EXPIRED","TIMEOUT_IGNORED","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRANSFORM_FEEDBACK","TRANSFORM_FEEDBACK_ACTIVE","TRANSFORM_FEEDBACK_BINDING","TRANSFORM_FEEDBACK_BUFFER","TRANSFORM_FEEDBACK_BUFFER_BINDING","TRANSFORM_FEEDBACK_BUFFER_MODE","TRANSFORM_FEEDBACK_BUFFER_SIZE","TRANSFORM_FEEDBACK_BUFFER_START","TRANSFORM_FEEDBACK_PAUSED","TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN","TRANSFORM_FEEDBACK_VARYINGS","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Table","Tag","TaskAttributionTiming","TaskController","TaskPriorityChangeEvent","TaskSignal","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextFormat","TextFormatUpdateEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TextUpdateEvent","TimeEvent","TimeRanges","ToggleEvent","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransformStreamDefaultController","TransitionEvent","TreeWalker","TrustedHTML","TrustedScript","TrustedScriptURL","TrustedTypePolicy","TrustedTypePolicyFactory","TypeError","TypedObject","U2F","UIEvent","UNCACHED","UNIFORM","UNIFORM_ARRAY_STRIDE","UNIFORM_BLOCK_ACTIVE_UNIFORMS","UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES","UNIFORM_BLOCK_BINDING","UNIFORM_BLOCK_DATA_SIZE","UNIFORM_BLOCK_INDEX","UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER","UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER","UNIFORM_BUFFER","UNIFORM_BUFFER_BINDING","UNIFORM_BUFFER_OFFSET_ALIGNMENT","UNIFORM_BUFFER_SIZE","UNIFORM_BUFFER_START","UNIFORM_IS_ROW_MAJOR","UNIFORM_MATRIX_STRIDE","UNIFORM_OFFSET","UNIFORM_SIZE","UNIFORM_TYPE","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_IMAGE_HEIGHT","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNPACK_ROW_LENGTH","UNPACK_SKIP_IMAGES","UNPACK_SKIP_PIXELS","UNPACK_SKIP_ROWS","UNSCHEDULED_STATE","UNSENT","UNSIGNALED","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_INT_10F_11F_11F_REV","UNSIGNED_INT_24_8","UNSIGNED_INT_2_10_10_10_REV","UNSIGNED_INT_5_9_9_9_REV","UNSIGNED_INT_SAMPLER_2D","UNSIGNED_INT_SAMPLER_2D_ARRAY","UNSIGNED_INT_SAMPLER_3D","UNSIGNED_INT_SAMPLER_CUBE","UNSIGNED_INT_VEC2","UNSIGNED_INT_VEC3","UNSIGNED_INT_VEC4","UNSIGNED_NORMALIZED","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLPattern","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","USB","USBAlternateInterface","USBConfiguration","USBConnectionEvent","USBDevice","USBEndpoint","USBInTransferResult","USBInterface","USBIsochronousInTransferPacket","USBIsochronousInTransferResult","USBIsochronousOutTransferPacket","USBIsochronousOutTransferResult","USBOutTransferResult","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserActivation","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX","VERTEX_ARRAY_BINDING","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_INTEGER","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VRDisplay","VRDisplayCapabilities","VRDisplayEvent","VREyeParameters","VRFieldOfView","VRFrameData","VRPose","VRStageParameters","VTTCue","VTTRegion","ValidityState","VideoColorSpace","VideoDecoder","VideoEncoder","VideoFrame","VideoPlaybackQuality","VideoStreamTrack","ViewTimeline","ViewTransition","VirtualKeyboard","VirtualKeyboardGeometryChangeEvent","VisibilityStateEntry","VisualViewport","WAIT_FAILED","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WGSLLanguageFeatures","WRITE","WRONG_DOCUMENT_ERR","WakeLock","WakeLockSentinel","WasmAnyRef","WaveShaperNode","WeakMap","WeakRef","WeakSet","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArray","WebGLVertexArrayObject","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WebSocketError","WebSocketStream","WebTransport","WebTransportBidirectionalStream","WebTransportDatagramDuplexStream","WebTransportError","WebTransportReceiveStream","WebTransportSendStream","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxAlign","WebkitBoxDirection","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitBoxOrient","WebkitBoxPack","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitJustifyContent","WebkitLineClamp","WebkitMask","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskSize","WebkitOrder","WebkitPerspective","WebkitPerspectiveOrigin","WebkitTextFillColor","WebkitTextSecurity","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserSelect","WheelEvent","Window","WindowControlsOverlay","WindowControlsOverlayGeometryChangeEvent","Worker","Worklet","WritableStream","WritableStreamDefaultController","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XRAnchor","XRAnchorSet","XRBoundedReferenceSpace","XRCPUDepthInformation","XRCamera","XRDOMOverlayState","XRDepthInformation","XRFrame","XRHitTestResult","XRHitTestSource","XRInputSource","XRInputSourceArray","XRInputSourceEvent","XRInputSourcesChangeEvent","XRLayer","XRLightEstimate","XRLightProbe","XRPose","XRRay","XRReferenceSpace","XRReferenceSpaceEvent","XRRenderState","XRRigidTransform","XRSession","XRSessionEvent","XRSpace","XRSystem","XRTransientInputHitTestResult","XRTransientInputHitTestSource","XRView","XRViewerPose","XRViewport","XRWebGLBinding","XRWebGLDepthInformation","XRWebGLLayer","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__REACT_DEVTOOLS_GLOBAL_HOOK__","__brand","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","aborted","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accent-color","accentColor","accept","acceptCharset","acceptNode","access","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","actions","activated","activation","activationStart","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","activeVRDisplays","actualBoundingBoxAscent","actualBoundingBoxDescent","actualBoundingBoxLeft","actualBoundingBoxRight","adAuctionComponents","adAuctionHeaders","add","addAll","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addModule","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addTransceiver","addWakeLockListener","added","addedNodes","additionalName","additiveSymbols","addons","address","addressLine","addressModeU","addressModeV","addressModeW","adoptNode","adoptedCallback","adoptedStyleSheets","adr","advance","after","album","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allocationSize","allow","allowFullscreen","allowPaymentRequest","allowedDirections","allowedFeatures","allowedToPlay","allowsFeature","alpha","alphaMode","alphaToCoverageEnabled","alphabeticBaseline","alt","altGraphKey","altHtml","altKey","altLeft","alternate","alternateSetting","alternates","altitude","altitudeAccuracy","altitudeAngle","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchorSpace","anchors","and","angle","angularAcceleration","angularVelocity","animVal","animate","animated","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","antialias","anticipatedRemoval","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","appearance","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","applicationServerKey","apply","applyConstraints","applyElement","arc","arcTo","architecture","archive","areas","arguments","ariaAtomic","ariaAutoComplete","ariaBrailleLabel","ariaBrailleRoleDescription","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","arrayBuffer","arrayLayerCount","arrayStride","artist","artwork","as","asIntN","asUintN","ascentOverride","asin","asinh","aspect","aspect-ratio","aspectRatio","assert","assign","assignedElements","assignedNodes","assignedSlot","async","asyncIterator","at","atEnd","atan","atan2","atanh","atob","attachEvent","attachInternals","attachShader","attachShadow","attachedElements","attachments","attack","attestationObject","attrChange","attrName","attributeChangedCallback","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributeStyleMap","attributes","attribution","attributionSrc","audioBitrateMode","audioBitsPerSecond","audioTracks","audioWorklet","authenticatedSignedWrites","authenticatorAttachment","authenticatorData","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","automationRate","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","ax","axes","axis","ay","azimuth","azimuthAngle","b","back","backdrop-filter","backdropFilter","backends","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundFetch","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","badge","balance","baseArrayLayer","baseFrequencyX","baseFrequencyY","baseLatency","baseLayer","baseMipLevel","baseNode","baseOffset","basePalette","baseURI","baseVal","baseline-source","baselineShift","baselineSource","battery","bday","before","beginComputePass","beginElement","beginElementAt","beginOcclusionQuery","beginPath","beginQuery","beginRenderPass","beginTransformFeedback","beginningOfPassWriteIndex","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","bigint64","biguint64","binaryType","bind","bindAttribLocation","bindBuffer","bindBufferBase","bindBufferRange","bindFramebuffer","bindGroupLayouts","bindRenderbuffer","bindSampler","bindTexture","bindTransformFeedback","bindVertexArray","binding","bitness","blend","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blitFramebuffer","blob","block-size","blockDirection","blockSize","blockedURI","blocking","blockingDuration","blue","bluetooth","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderBoxSize","borderCollapse","borderColor","borderColorDark","borderColorLight","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingRect","boundingTop","boundingWidth","bounds","boundsGeometry","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","brand","brands","break-after","break-before","break-inside","breakAfter","breakBefore","breakInside","broadcast","browserLanguage","browsingTopics","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","bufferedAmountLowThreshold","buffers","buildID","buildNumber","button","buttonID","buttons","byobRequest","byteLength","byteOffset","bytesPerRow","bytesWritten","c","cache","caches","call","caller","camera","canBeFormatted","canBeMounted","canBeShared","canConstructInDedicatedWorker","canGoBack","canGoForward","canHaveChildren","canHaveHTML","canInsertDTMF","canIntercept","canLoadAdAuctionFencedFrame","canLoadOpaqueURL","canMakePayment","canParse","canPlayType","canPresent","canShare","canTransition","canTrickleIceCandidates","cancel","cancelAndHoldAtTime","cancelAnimationFrame","cancelBubble","cancelIdleCallback","cancelScheduledValues","cancelVideoFrameCallback","cancelWatchAvailability","cancelable","candidate","canonicalUUID","canvas","cap","capabilities","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","captureStream","caret-color","caretBidiLevel","caretColor","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changeType","changed","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","charLength","characterBounds","characterBoundsRangeStart","characterData","characterDataOldValue","characterSet","characteristic","charging","chargingTime","charset","check","checkDCE","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checkVisibility","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","city","claimInterface","claimed","classList","className","classid","clear","clearAppBadge","clearAttributes","clearBuffer","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","clearColor","clearData","clearDepth","clearHalt","clearImmediate","clearInterval","clearLiveSeekableRange","clearMarks","clearMaxGCPauseAccumulator","clearMeasures","clearOriginJoinedAdInterestGroups","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearValue","clearWatch","click","clickCount","clientDataJSON","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWaitSync","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboard","clipboardData","clonable","clone","cloneContents","cloneNode","cloneRange","close","closeCode","closePath","closed","closest","clz","clz32","cm","cmp","code","codeBase","codePointAt","codeType","codedHeight","codedRect","codedWidth","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","collections","colno","color","color-adjust","color-interpolation","color-interpolation-filters","color-scheme","colorAdjust","colorAttachments","colorDepth","colorFormats","colorInterpolation","colorInterpolationFilters","colorMask","colorScheme","colorSpace","colorType","cols","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commit","commitPreferences","commitStyles","commonAncestorContainer","compact","compare","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareExchange","compareNode","comparePoint","compatMode","compatible","compile","compileShader","compileStreaming","complete","completed","component","componentFromPoint","composed","composedPath","composite","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexImage3D","compressedTexSubImage2D","compressedTexSubImage3D","compute","computedStyleMap","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","config","configurable","configuration","configurationName","configurationValue","configurations","configure","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","congestionControl","connect","connectEnd","connectShark","connectStart","connected","connectedCallback","connection","connectionList","connectionSpeed","connectionState","connections","console","consolidate","constants","constraint","constrictionActive","construct","constructor","contactID","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","container-name","container-type","containerId","containerName","containerQuery","containerSrc","containerType","contains","containsNode","content","content-visibility","contentBoxSize","contentDocument","contentEditable","contentHint","contentOverflow","contentRect","contentScriptType","contentStyleType","contentType","contentVisibility","contentWindow","context","contextMenu","contextmenu","continue","continuePrimaryKey","continuous","control","controlTransferIn","controlTransferOut","controller","controls","controlsList","convertPointFromNode","convertQuadFromNode","convertRectFromNode","convertToBlob","convertToSpecifiedUnits","cookie","cookieEnabled","cookieStore","cookies","coords","copyBufferSubData","copyBufferToBuffer","copyBufferToTexture","copyExternalImageToTexture","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyTexSubImage3D","copyTextureToBuffer","copyTextureToTexture","copyTo","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","corruptedVideoFrames","cos","cosh","count","countReset","counter-increment","counter-reset","counter-set","counterIncrement","counterReset","counterSet","country","cpuClass","cpuSleepAllowed","cqb","cqh","cqi","cqmax","cqmin","cqw","create","createAnalyser","createAnchor","createAnswer","createAttribute","createAttributeNS","createAuctionNonce","createBidirectionalStream","createBindGroup","createBindGroupLayout","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createCommandEncoder","createComment","createComputePipeline","createComputePipelineAsync","createConicGradient","createConstantSource","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEncodedStreams","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTML","createHTMLDocument","createIIRFilter","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMediaStreamTrackSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPipelineLayout","createPolicy","createPopup","createProcessingInstruction","createProgram","createQuery","createQuerySet","createRadialGradient","createRange","createRangeCollection","createReader","createRenderBundleEncoder","createRenderPipeline","createRenderPipelineAsync","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createSampler","createScript","createScriptProcessor","createScriptURL","createSession","createShader","createShaderModule","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTask","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTransformFeedback","createTreeWalker","createUnidirectionalStream","createVertexArray","createView","createWaveShaper","createWritable","creationTime","credentialless","credentials","criticalCHRestart","cropTo","crossOrigin","crossOriginIsolated","crypto","csi","csp","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","cullMode","currentDirection","currentEntry","currentLocalDescription","currentNode","currentPage","currentRect","currentRemoteDescription","currentScale","currentScreen","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customElements","customError","cx","cy","d","data","dataFld","dataFormatAs","dataLoss","dataLossMessage","dataPageSize","dataSrc","dataTransfer","database","databases","datagrams","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeQueueSize","decodeURI","decodeURIComponent","decodedBodySize","decoding","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPolicy","defaultPrevented","defaultQueue","defaultRequest","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","define","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","deg","delay","delayTime","delegatesFocus","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteProperty","deleteQuery","deleteRenderbuffer","deleteRow","deleteRule","deleteSampler","deleteShader","deleteSync","deleteTFoot","deleteTHead","deleteTexture","deleteTransformFeedback","deleteVertexArray","deleted","deliverChangeRecords","deliveredFrames","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","deliveryType","delta","deltaMode","deltaX","deltaY","deltaZ","dependentLocality","deprecatedReplaceInURN","deprecatedRunAdAuctionEnforcesKAnonymity","deprecatedURNToURL","depthBias","depthBiasClamp","depthBiasSlopeScale","depthClearValue","depthCompare","depthDataFormat","depthFailOp","depthFar","depthFunc","depthLoadOp","depthMask","depthNear","depthOrArrayLayers","depthRange","depthReadOnly","depthStencil","depthStencilAttachment","depthStencilFormat","depthStoreOp","depthUsage","depthWriteEnabled","deref","deriveBits","deriveKey","descentOverride","description","deselectAll","designMode","desiredSize","destination","destinationURL","destroy","detach","detachEvent","detachShader","detached","detail","details","detect","detune","device","deviceClass","deviceId","deviceMemory","devicePixelContentBoxSize","devicePixelRatio","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","deviceXDPI","deviceYDPI","didTimeout","difference","diffuseConstant","digest","dimension","dimensions","dir","dirName","direction","dirxml","disable","disablePictureInPicture","disableRemotePlayback","disableVertexAttribArray","disabled","discardedFrames","dischargingTime","disconnect","disconnectShark","disconnectedCallback","dispatchEvent","dispatchWorkgroups","dispatchWorkgroupsIndirect","display","displayHeight","displayId","displayName","displayWidth","disposition","distanceModel","div","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentPictureInPicture","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domOverlayState","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","dotAll","downDegrees","downlink","download","downloadRequest","downloadTotal","downloaded","dpcm","dpi","dppx","dragDrop","draggable","draw","drawArrays","drawArraysInstanced","drawArraysInstancedANGLE","drawBuffers","drawCustomFocusRing","drawElements","drawElementsInstanced","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawIndexed","drawIndexedIndirect","drawIndirect","drawRangeElements","drawSystemFocusRing","drawingBufferColorSpace","drawingBufferFormat","drawingBufferHeight","drawingBufferStorage","drawingBufferWidth","drop","dropEffect","droppedVideoFrames","dropzone","dstFactor","dtmf","dump","dumpProfile","duplicate","durability","duration","dvb","dvh","dvi","dvmax","dvmin","dvname","dvnum","dvw","dx","dy","dynsrc","e","edgeMode","editContext","effect","effectAllowed","effectiveDirective","effectiveType","elapsedTime","element","elementFromPoint","elementTiming","elements","elementsFromPoint","elevation","ellipse","em","emHeightAscent","emHeightDescent","email","embeds","emit","emma","empty","empty-cells","emptyCells","emptyHTML","emptyScript","emulatedPosition","enable","enableBackground","enableDelegations","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledFeatures","enabledPlugin","encode","encodeInto","encodeQueueSize","encodeURI","encodeURIComponent","encodedBodySize","encoding","encodingInfo","encrypt","enctype","end","endContainer","endElement","endElementAt","endOcclusionQuery","endOfPassWriteIndex","endOfStream","endOffset","endQuery","endTime","endTransformFeedback","ended","endpoint","endpointNumber","endpoints","endsWith","enqueue","enterKeyHint","entities","entries","entry","entryPoint","entryType","enumerable","enumerate","enumerateDevices","enumerateEditable","environmentBlendMode","equals","error","errorCode","errorDetail","errorText","escape","estimate","eval","evaluate","event","eventCounts","eventPhase","every","ex","exception","exchange","exec","execCommand","execCommandShowHelp","execScript","executeBundles","executionStart","exitFullscreen","exitPictureInPicture","exitPointerLock","exitPresent","exp","expand","expandEntityReferences","expando","expansion","expectedImprovement","expiration","expirationTime","expires","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","exports","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","externalTexture","extractContents","extractable","eye","f","face","factoryReset","failOp","failureReason","fallback","family","familyName","farthestViewportElement","fastSeek","fatal","featureId","featurePolicy","featureSettings","features","fence","fenceSync","fetch","fetchPriority","fetchStart","fftSize","fgColor","fieldOfView","file","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","filesystem","fill","fill-opacity","fill-rule","fillLightMode","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findLast","findLastIndex","findRule","findText","finish","finished","fireEvent","firesTouchEvents","firstChild","firstElementChild","firstInterimResponseStart","firstPage","firstUIEventTimestamp","fixed","flags","flat","flatMap","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","float32","float64","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","fontBoundingBoxAscent","fontBoundingBoxDescent","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontcolor","fontfaces","fonts","fontsize","for","forEach","force","forceFallbackAdapter","forceRedraw","forced-color-adjust","forcedColorAdjust","forcedStyleAndLayoutDuration","forget","form","formAction","formData","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","forwardX","forwardY","forwardZ","foundation","fr","fragment","fragmentDirective","frame","frameBorder","frameCount","frameElement","frameSpacing","framebuffer","framebufferHeight","framebufferRenderbuffer","framebufferTexture2D","framebufferTextureLayer","framebufferWidth","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromAsync","fromCharCode","fromCodePoint","fromElement","fromEntries","fromFloat32Array","fromFloat64Array","fromMatrix","fromPoint","fromQuad","fromRect","frontFace","fround","fullName","fullPath","fullRange","fullScreen","fullVersionList","fullscreen","fullscreenElement","fullscreenEnabled","fx","fy","g","gain","gamepad","gamma","gap","gatheringState","gatt","genderIdentity","generateCertificate","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getActiveUniformBlockName","getActiveUniformBlockParameter","getActiveUniforms","getAdjacentText","getAll","getAllKeys","getAllResponseHeaders","getAllowlistForFeature","getAnimations","getAsFile","getAsFileSystemHandle","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNames","getAttributeNode","getAttributeNodeNS","getAttributeType","getAudioTracks","getAuthenticatorData","getAutoplayPolicy","getAvailability","getBBox","getBattery","getBigInt64","getBigUint64","getBindGroupLayout","getBlob","getBookmark","getBoundingClientRect","getBounds","getBoxQuads","getBufferParameter","getBufferSubData","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCameraImage","getCandidateWindowClientRect","getCanonicalLocales","getCapabilities","getCaptureHandle","getChannelData","getCharNumAtPosition","getCharacteristic","getCharacteristics","getClientExtensionResults","getClientRect","getClientRects","getCoalescedEvents","getCompilationInfo","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getComputedTiming","getConfiguration","getConstraints","getContext","getContextAttributes","getContributingSources","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTexture","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDepthInMeters","getDepthInformation","getDescriptor","getDescriptors","getDestinationInsertionPoints","getDevices","getDirectory","getDirectoryHandle","getDisplayMedia","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getEyeParameters","getFeature","getFiberRoots","getFile","getFileHandle","getFiles","getFilesAndDirectories","getFingerprints","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFragDataLocation","getFrameData","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHeaderExtensionsToNegotiate","getHighEntropyValues","getHitTestResults","getHitTestResultsForTransientInput","getHours","getIdentityAssertion","getIds","getImageData","getIndexedParameter","getInfo","getInnerHTML","getInstalledRelatedApps","getInt16","getInt32","getInt8","getInternalModuleRanges","getInternalformatParameter","getIntersectionList","getItem","getItems","getKey","getKeyframes","getLayers","getLayoutMap","getLightEstimate","getLineDash","getLocalCandidates","getLocalParameters","getLocalStreams","getManagedConfiguration","getMappedRange","getMarks","getMatchedCSSRules","getMaxGCPauseSinceClear","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getName","getNamedItem","getNamedItemNS","getNativeFramebufferScaleFactor","getNegotiatedHeaderExtensions","getNestedConfigs","getNotifications","getNotifier","getNumberOfChars","getOffsetReferenceSpace","getOutputTimestamp","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyDescriptors","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getParameters","getParent","getPathSegAtLength","getPhotoCapabilities","getPhotoSettings","getPointAtLength","getPorts","getPose","getPredictedEvents","getPreference","getPreferenceDefault","getPreferredCanvasFormat","getPresentationAttribute","getPreventDefault","getPrimaryService","getPrimaryServices","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyType","getPropertyValue","getPrototypeOf","getPublicKey","getPublicKeyAlgorithm","getQuery","getQueryParameter","getRGBColorValue","getRandomValues","getRangeAt","getReader","getReceivers","getRectValue","getReflectionCubeMap","getRegistration","getRegistrations","getRemoteCandidates","getRemoteCertificates","getRemoteParameters","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRootNode","getRotationOfChar","getSVGDocument","getSamplerParameter","getScreenCTM","getScreenDetails","getSeconds","getSelectedCandidatePair","getSelection","getSenders","getService","getSetCookie","getSettings","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSignals","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getState","getStats","getStatusForPolicy","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSubscriptions","getSupportedConstraints","getSupportedExtensions","getSupportedFormats","getSyncParameter","getSynchronizationSources","getTags","getTargetRanges","getTexParameter","getTextFormats","getTime","getTimezoneOffset","getTiming","getTitlebarAreaRect","getTotalLength","getTrackById","getTracks","getTransceivers","getTransform","getTransformFeedbackVarying","getTransformToElement","getTransports","getType","getTypeMapping","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformBlockIndex","getUniformIndices","getUniformLocation","getUserInfo","getUserMedia","getVRDisplays","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getViewerPose","getViewport","getVoices","getWakeLockState","getWriter","getYear","givenName","global","globalAlpha","globalCompositeOperation","globalPrivacyControl","globalThis","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","gpu","grabFrame","grad","gradientTransform","gradientUnits","grammars","green","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","gripSpace","group","groupBy","groupCollapsed","groupEnd","groupId","groups","hadRecentInput","hand","handedness","hangingBaseline","hapticActuators","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasBeenActive","hasChildNodes","hasComposition","hasDynamicOffset","hasEnrolledInstrument","hasExtension","hasExternalDisplay","hasFeature","hasFocus","hasIndices","hasInstance","hasLayout","hasOrientation","hasOwn","hasOwnProperty","hasPointerCapture","hasPosition","hasPrivateToken","hasReading","hasRedemptionRecord","hasRegExpGroups","hasStorageAccess","hasUAVisualTransition","hash","hashChange","head","headers","heading","height","hid","hidden","hide","hideFocus","hidePopover","high","highWaterMark","highlights","hint","hints","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostCandidate","hostname","href","hrefTranslate","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","httpRequestStatusCode","hwTimestamp","hyphenate-character","hyphenateCharacter","hyphens","hypot","ic","iccId","iceConnectionState","iceGatheringState","iceTransport","icon","iconURL","id","identifier","identity","ideographicBaseline","idpLoginUrl","ignoreBOM","ignoreCase","ignoreDepthValues","image","image-orientation","image-rendering","imageHeight","imageOrientation","imageRendering","imageSizes","imageSmoothingEnabled","imageSmoothingQuality","imageSrcset","imageWidth","images","ime-mode","imeMode","implementation","importExternalTexture","importKey","importNode","importStylesheet","imports","impp","imul","in","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incomingBidirectionalStreams","incomingHighWaterMark","incomingMaxAge","incomingUnidirectionalStreams","incremental","indeterminate","index","indexNames","indexOf","indexedDB","indicate","indices","inert","inertiaDestinationX","inertiaDestinationY","info","inherits","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDataType","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialValue","initialize","initiatorType","inject","ink","inline-size","inlineSize","inlineVerticalFieldOfView","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","inputMode","inputSource","inputSources","inputType","inputs","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertDTMF","insertData","insertDebugMarker","insertItemBefore","insertNode","insertRow","insertRule","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","installing","instanceRoot","instantiate","instantiateStreaming","instruments","int16","int32","int8","integrity","interactionId","interactionMode","intercept","interfaceClass","interfaceName","interfaceNumber","interfaceProtocol","interfaceSubclass","interfaces","interimResults","internalSubset","interpretation","intersection","intersectionRatio","intersectionRect","intersectsNode","interval","invalidIteratorState","invalidateFramebuffer","invalidateSubFramebuffer","inverse","invertSelf","invoker","invokerType","is","is2D","isActive","isAlternate","isArray","isAutoSelected","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isConcatSpreadable","isConditionalMediationAvailable","isConfigSupported","isConnected","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDirectory","isDisabled","isDisjointFrom","isEnabled","isEqual","isEqualNode","isExtended","isExtensible","isExternalCTAP2SecurityKeySupported","isFallbackAdapter","isFile","isFinite","isFirstPersonObserver","isFramebuffer","isFrozen","isGenerator","isHTML","isHistoryNavigation","isId","isIdentity","isInjected","isInputPending","isInteger","isInternal","isIntersecting","isLockFree","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPresenting","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isQuery","isRawJSON","isRenderbuffer","isSafeInteger","isSameEntry","isSameNode","isSampler","isScript","isScriptURL","isSealed","isSecureContext","isSessionSupported","isShader","isSubsetOf","isSupersetOf","isSupported","isSync","isTextEdit","isTexture","isTransformFeedback","isTrusted","isTypeSupported","isUserVerifyingPlatformAuthenticatorAvailable","isVertexArray","isView","isVisible","isWellFormed","isochronousTransferIn","isochronousTransferOut","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","items","iterateNext","iterationComposite","iterator","javaEnabled","jitterBufferTarget","jobTitle","join","joinAdInterestGroup","json","justify-content","justify-items","justify-self","justifyContent","justifyItems","justifySelf","k1","k2","k3","k4","kHz","keepalive","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keyStatuses","keySystem","keyText","keyUsage","keyboard","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastInputTime","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","launchQueue","layerName","layerX","layerY","layout","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","leaveAdInterestGroup","left","leftContext","leftDegrees","leftMargin","leftProjectionMatrix","leftViewMatrix","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lh","lighting-color","lightingColor","limitingConeAngle","limits","line","line-break","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineGapOverride","lineHeight","lineJoin","lineNum","lineNumber","linePos","lineTo","lineWidth","linearAcceleration","linearRampToValueAtTime","linearVelocity","lineno","lines","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","listeners","load","loadEventEnd","loadEventStart","loadOp","loadTime","loadTimes","loaded","loading","localDescription","localName","localService","localStorage","locale","localeCompare","location","locationbar","lock","locked","lockedFile","locks","lodMaxClamp","lodMinClamp","log","log10","log1p","log2","logicalXDPI","logicalYDPI","login","loglevel","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","lost","low","lower","lowerBound","lowerOpen","lowsrc","lvb","lvh","lvi","lvmax","lvmin","lvw","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","magFilter","makeXRCompatible","managed","manifest","manufacturer","manufacturerName","map","mapAsync","mapState","mappedAtCreation","mapping","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginHeight","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-position-x","mask-position-y","mask-repeat","mask-size","mask-type","maskClip","maskComposite","maskContentUnits","maskImage","maskMode","maskOrigin","maskPosition","maskPositionX","maskPositionY","maskRepeat","maskSize","maskType","maskUnits","match","matchAll","matchMedia","matchMedium","matches","math-depth","math-style","mathDepth","mathStyle","matrix","matrixTransform","max","max-block-size","max-height","max-inline-size","max-width","maxActions","maxAlternatives","maxAnisotropy","maxBindGroups","maxBindGroupsPlusVertexBuffers","maxBindingsPerBindGroup","maxBlockSize","maxBufferSize","maxByteLength","maxChannelCount","maxChannels","maxColorAttachmentBytesPerSample","maxColorAttachments","maxComputeInvocationsPerWorkgroup","maxComputeWorkgroupSizeX","maxComputeWorkgroupSizeY","maxComputeWorkgroupSizeZ","maxComputeWorkgroupStorageSize","maxComputeWorkgroupsPerDimension","maxConnectionsPerServer","maxDatagramSize","maxDecibels","maxDistance","maxDrawCount","maxDynamicStorageBuffersPerPipelineLayout","maxDynamicUniformBuffersPerPipelineLayout","maxHeight","maxInlineSize","maxInterStageShaderComponents","maxInterStageShaderVariables","maxLayers","maxLength","maxMessageSize","maxPacketLifeTime","maxRetransmits","maxSampledTexturesPerShaderStage","maxSamplersPerShaderStage","maxStorageBufferBindingSize","maxStorageBuffersPerShaderStage","maxStorageTexturesPerShaderStage","maxTextureArrayLayers","maxTextureDimension1D","maxTextureDimension2D","maxTextureDimension3D","maxTouchPoints","maxUniformBufferBindingSize","maxUniformBuffersPerShaderStage","maxValue","maxVertexAttributes","maxVertexBufferArrayStride","maxVertexBuffers","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaSession","mediaStream","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","messageType","messages","metaKey","metadata","method","methodDetails","methodName","mid","mimeType","mimeTypes","min","min-block-size","min-height","min-inline-size","min-width","minBindingSize","minBlockSize","minDecibels","minFilter","minHeight","minInlineSize","minLength","minStorageBufferOffsetAlignment","minUniformBufferOffsetAlignment","minValue","minWidth","mipLevel","mipLevelCount","mipmapFilter","miterLimit","mix-blend-mode","mixBlendMode","mm","mobile","mode","model","modify","module","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","movementX","movementY","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","ms","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","mul","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","multisample","multisampled","mutableFile","muted","n","name","nameList","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","nativeMap","nativeObjectCreate","nativeSet","nativeWeakMap","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationPreload","navigationStart","navigationType","navigator","near","nearestViewportElement","negative","negotiated","netscape","networkState","newScale","newState","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextHopProtocol","nextNode","nextPage","nextSibling","nickname","noHref","noModule","noResize","noShade","noValidate","noWrap","node","nodeName","nodeType","nodeValue","nonce","normDepthBufferFromNormView","normalize","normalizedPathSegList","notRestoredReasons","notationName","notations","note","noteGrainOn","noteOff","noteOn","notify","now","numOctaves","number","numberOfChannels","numberOfFrames","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","objectType","observe","occlusionQuerySet","of","off","offscreenBuffering","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","offsetAnchor","offsetDistance","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetPath","offsetPosition","offsetRotate","offsetTop","offsetWidth","offsetX","offsetY","ok","oldState","oldURL","oldValue","oldVersion","olderShadowRoot","on","onCommitFiberRoot","onCommitFiberUnmount","onLine","onPostCommitFiberRoot","onSubmittedWorkDone","onabort","onabsolutedeviceorientation","onactivate","onactive","onaddsourcebuffer","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onauxclick","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforeinput","onbeforeinstallprompt","onbeforematch","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforetoggle","onbeforeunload","onbeforeupdate","onbeforexrselect","onbegin","onblocked","onblur","onbounce","onboundary","onbufferedamountlow","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","oncapturehandlechange","once","oncellchange","onchange","oncharacterboundsupdate","oncharacteristicvaluechanged","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","onclosing","oncompassneedscalibration","oncomplete","oncompositionend","oncompositionstart","onconnect","onconnecting","onconnectionavailable","onconnectionstatechange","oncontentvisibilityautostatechange","oncontextlost","oncontextmenu","oncontextrestored","oncontrollerchange","oncontrolselect","oncopy","oncuechange","oncurrententrychange","oncurrentscreenchange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondequeue","ondevicechange","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondeviceproximity","ondischargingtimechange","ondisconnect","ondisplay","ondispose","ondownloading","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onenterpictureinpicture","onerror","onerrorupdate","onexit","onfencedtreeclick","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onformdata","onfreeze","onfullscreenchange","onfullscreenerror","ongamepadconnected","ongamepaddisconnected","ongatheringstatechange","ongattserverdisconnected","ongeometrychange","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","onicecandidateerror","oniceconnectionstatechange","onicegatheringstatechange","oninactive","oninput","oninputreport","oninputsourceschange","oninvalid","onkeydown","onkeypress","onkeystatuseschange","onkeyup","onlanguagechange","onlayoutcomplete","onleavepictureinpicture","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloading","onloadingdone","onloadingerror","onloadstart","onlosecapture","onlostpointercapture","only","onmanagedconfigurationchange","onmark","onmessage","onmessageerror","onmidimessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onmute","onnavigate","onnavigateerror","onnavigatesuccess","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onpayerdetailchange","onpaymentmethodchange","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerrawupdate","onpointerup","onpopstate","onprerenderingchange","onprioritychange","onprocessorerror","onprogress","onpropertychange","onratechange","onreading","onreadystatechange","onreflectionchange","onrejectionhandled","onrelease","onremove","onremovesourcebuffer","onremovestream","onremovetrack","onrepeat","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscreenschange","onscroll","onscrollend","onsearch","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectedcandidatepairchange","onselectend","onselectionchange","onselectstart","onshippingaddresschange","onshippingoptionchange","onshow","onsignalingstatechange","onsinkchange","onslotchange","onsoundend","onsoundstart","onsourceclose","onsourceclosed","onsourceended","onsourceopen","onspeechend","onspeechstart","onsqueeze","onsqueezeend","onsqueezestart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","onterminate","ontextformatupdate","ontextinput","ontextupdate","ontimeout","ontimeupdate","ontoggle","ontonechange","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontrack","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onuncapturederror","onunhandledrejection","onunload","onunmute","onupdate","onupdateend","onupdatefound","onupdateready","onupdatestart","onupgradeneeded","onuserproximity","onversionchange","onvisibilitychange","onvoiceschanged","onvolumechange","onvrdisplayactivate","onvrdisplayconnect","onvrdisplaydeactivate","onvrdisplaydisconnect","onvrdisplaypresentchange","onwaiting","onwaitingforkey","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opened","opener","opera","operation","operationType","operator","opr","optimum","options","or","order","orderX","orderY","ordered","org","organization","orient","orientAngle","orientType","orientation","orientationX","orientationY","orientationZ","origin","originAgentCluster","originalPolicy","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outgoingHighWaterMark","outgoingMaxAge","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","outputChannelCount","outputLatency","outputs","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overflowAnchor","overflowBlock","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlaysContent","overrideColors","overrideMimeType","oversample","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","ownKeys","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","packetSize","packets","pad","padEnd","padStart","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageLeft","pageTop","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","paintWorklet","palette","pan","panningModel","parameterData","parameters","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseAll","parseCreationOptionsFromJSON","parseFloat","parseFromString","parseHTMLUnsafe","parseInt","parseRequestOptionsFromJSON","part","participants","passOp","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseDuration","pauseOnExit","pauseProfilers","pauseTransformFeedback","paused","payerEmail","payerName","payerPhone","paymentManager","pc","pdfViewerEnabled","peerIdentity","pending","pendingLocalDescription","pendingRemoteDescription","percent","performance","periodicSync","permission","permissionState","permissions","persist","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phone","phoneticFamilyName","phoneticGivenName","photo","pictureInPictureElement","pictureInPictureEnabled","pictureInPictureWindow","ping","pipeThrough","pipeTo","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","place-content","place-items","place-self","placeContent","placeItems","placeSelf","placeholder","platform","platformVersion","platforms","play","playEffect","playState","playbackRate","playbackState","playbackTime","played","playoutDelayHint","playsInline","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","popDebugGroup","popErrorScope","popover","popoverTargetAction","popoverTargetElement","populateMatrix","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","pose","position","positionAlign","positionX","positionY","positionZ","postError","postMessage","postTask","postalCode","poster","postscriptName","pow","powerEfficient","powerOff","powerPreference","preMultiplySelf","precision","preferredReflectionFormat","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","premultipliedAlpha","prepend","prerendering","presentation","presentationArea","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","preservesPitch","pressed","pressure","prevValue","preventDefault","preventExtensions","preventSilentAccess","previousElementSibling","previousNode","previousPage","previousPriority","previousRect","previousScale","previousSibling","previousTranslate","primaries","primaryKey","primaryLightDirection","primaryLightIntensity","primitive","primitiveType","primitiveUnits","principals","print","print-color-adjust","printColorAdjust","priority","privateKey","privateToken","probablySupportsContext","probeSpace","process","processIceMessage","processingEnd","processingStart","processorOptions","product","productId","productName","productSub","profile","profileEnd","profiles","projectionMatrix","promise","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","provider","pseudoClass","pseudoElement","pt","publicId","publicKey","published","pulse","push","pushDebugGroup","pushErrorScope","pushManager","pushNotification","pushState","put","putImageData","px","quadraticCurveTo","qualifier","quaternion","query","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","queryLocalFonts","queryPermission","querySelector","querySelectorAll","querySet","queue","queueMicrotask","quote","quotes","r","r1","r2","race","rad","radiogroup","radiusX","radiusY","random","randomUUID","range","rangeCount","rangeEnd","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeStart","rangeUnderflow","rate","ratio","raw","rawId","rawJSON","rawValueToMeters","rcap","rch","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readBuffer","readEntries","readOnly","readPixels","readReportRequested","readText","readValue","readable","ready","readyState","reason","reasons","reboot","receiveFeatureReport","receivedAlert","receiver","receivers","recipient","recommendedViewportScale","reconnect","recordNumber","recordsAvailable","recordset","rect","red","redEyeReduction","redirect","redirectCount","redirectEnd","redirectStart","redirected","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referenceSpace","referrer","referrerPolicy","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerInternalModuleStart","registerInternalModuleStop","registerProperty","registerProtocolHandler","reject","rel","relList","relatedAddress","relatedNode","relatedPort","relatedTarget","relayProtocol","release","releaseCapture","releaseEvents","releaseInterface","releaseLock","releasePointerCapture","releaseShaderCompiler","released","reliability","reliable","reliableWrite","reload","rem","remainingSpace","remote","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEntry","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removed","removedNodes","renderBlockingStatus","renderHeight","renderStart","renderState","renderTime","renderWidth","renderbufferStorage","renderbufferStorageMultisample","renderedBuffer","rendererInterfaces","renderers","renderingMode","renotify","repeat","repetitionCount","replace","replaceAdjacentText","replaceAll","replaceChild","replaceChildren","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceSync","replaceTrack","replaceWholeText","replaceWith","reportError","reportEvent","reportId","reportValidity","request","requestAdapter","requestAdapterInfo","requestAnimationFrame","requestAutocomplete","requestData","requestDevice","requestFrame","requestFullscreen","requestHitTestSource","requestHitTestSourceForTransientInput","requestId","requestIdleCallback","requestLightProbe","requestMIDIAccess","requestMediaKeySystemAccess","requestPermission","requestPictureInPicture","requestPointerLock","requestPort","requestPresent","requestPresenter","requestReferenceSpace","requestSession","requestStart","requestStorageAccess","requestStorageAccessFor","requestSubmit","requestVideoFrameCallback","requestViewportScale","requestWindow","requestingWindow","requireInteraction","required","requiredExtensions","requiredFeatures","requiredLimits","reset","resetPose","resetTransform","resizable","resize","resizeBy","resizeTo","resolve","resolveQuerySet","resolveTarget","resource","respond","respondWithNewView","response","responseBody","responseEnd","responseReady","responseStart","responseStatus","responseText","responseType","responseURL","responseXML","restartIce","restore","result","resultIndex","resultType","results","resume","resumeProfilers","resumeTransformFeedback","retry","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rex","rgbColor","ric","right","rightContext","rightDegrees","rightMargin","rightProjectionMatrix","rightViewMatrix","rlh","role","rolloffFactor","root","rootBounds","rootElement","rootMargin","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationAngle","rotationRate","round","roundRect","row-gap","rowGap","rowIndex","rowSpan","rows","rowsPerImage","rtcpTransport","rtt","ruby-align","ruby-position","rubyAlign","rubyOverhang","rubyPosition","rules","run","runAdAuction","runtime","runtimeStyle","rx","ry","s","safari","sameDocument","sample","sampleCount","sampleCoverage","sampleInterval","sampleRate","sampleType","sampler","samplerParameterf","samplerParameteri","sandbox","save","saveData","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheduler","scheduling","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenState","screenTop","screenX","screenY","screens","scriptURL","scripts","scroll","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMaxX","scrollMaxY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollRestoration","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar-color","scrollbar-gutter","scrollbar-width","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarGutter","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbarWidth","scrollbars","scrolling","scrollingElement","sctp","sctpCauseCode","sdp","sdpLineNumber","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seek","seekToNextFrame","seekable","seeking","select","selectAllChildren","selectAlternateInterface","selectAudioOutput","selectConfiguration","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selectURL","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selectedTrack","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sendFeatureReport","sendOrder","sendReport","sender","sentAlert","sentTimestamp","separator","serial","serialNumber","serializeToString","serverTiming","service","serviceWorker","session","sessionId","sessionStorage","set","setActionHandler","setActive","setAlpha","setAppBadge","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setAttributionReporting","setBaseAndExtent","setBigInt64","setBigUint64","setBindGroup","setBingCurrentSearchDefault","setBlendConstant","setCameraActive","setCapture","setCaptureHandleConfig","setCodecPreferences","setColor","setCompositeOperation","setConfiguration","setConsumer","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setExpires","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFocusBehavior","setFormValue","setFullYear","setHTMLUnsafe","setHeaderExtensionsToNegotiate","setHeaderValue","setHours","setIdentityProvider","setImmediate","setIndexBuffer","setInt16","setInt32","setInt8","setInterval","setItem","setKeyframes","setLineCap","setLineDash","setLineJoin","setLineWidth","setLiveSeekableRange","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMicrophoneActive","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setParameters","setPeriodicWave","setPipeline","setPointerCapture","setPosition","setPositionState","setPreference","setPriority","setPrivateToken","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setReportEventDataForAutomaticBeacons","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setScissorRect","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSharedStorageContext","setSignals","setSinkId","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStatus","setStdDeviation","setStencilReference","setStreams","setStrictMode","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValidity","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setVertexBuffer","setViewport","setYear","settingName","settingValue","sex","shaderLocation","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shadowRootClonable","shadowRootDelegatesFocus","shadowRootMode","shape","shape-image-threshold","shape-margin","shape-outside","shape-rendering","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","share","sharedStorage","sharedStorageWritable","sheet","shift","shiftKey","shiftLeft","shippingAddress","shippingOption","shippingType","show","showDirectoryPicker","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","showOpenFilePicker","showPicker","showPopover","showSaveFilePicker","sidebar","sign","signal","signalingState","signature","silent","sin","singleNodeValue","sinh","sinkId","sittingToStandingTransform","size","sizeAdjust","sizeToContent","sizeX","sizeZ","sizes","skewX","skewXSelf","skewY","skewYSelf","skipTransition","skipped","slice","slope","slot","slotAssignment","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","sortingCode","source","sourceBuffer","sourceBuffers","sourceCapabilities","sourceCharPosition","sourceFile","sourceFunctionName","sourceIndex","sourceMap","sourceURL","sources","spacing","span","speak","speakAs","speaking","species","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","sphericalHarmonicsCoefficients","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFactor","srcFilter","srcObject","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","stageParameters","standalone","standby","start","startContainer","startIce","startMessages","startNotifications","startOffset","startProfiling","startRendering","startShark","startTime","startViewTransition","startsWith","state","states","stats","status","statusCode","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilBack","stencilClearValue","stencilFront","stencilFunc","stencilFuncSeparate","stencilLoadOp","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","stencilReadMask","stencilReadOnly","stencilStoreOp","stencilWriteMask","step","stepDown","stepMismatch","stepMode","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopNotifications","stopOpacity","stopProfiling","stopPropagation","stopShark","stopped","storage","storageArea","storageBuckets","storageName","storageStatus","storageTexture","store","storeOp","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","streamErrorCode","streams","stretch","strike","string","stringValue","stringify","stripIndexFormat","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","structuredClone","style","styleAndLayoutStart","styleFloat","styleMap","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","submitFrame","submitter","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supported","supportedContentEncodings","supportedEntryTypes","supportedValuesOf","supports","supportsFiber","supportsSession","supportsText","surfaceScale","surroundContents","suspend","suspendRedraw","svb","svh","svi","svmax","svmin","svw","swapCache","swapNode","sweepFlag","symbols","symmetricDifference","sync","syntax","sysexEnabled","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tab-size","tabIndex","tabSize","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","take","takePhoto","takeRecords","tan","tangentialPressure","tanh","target","targetAddressSpace","targetElement","targetRayMode","targetRaySpace","targetTouches","targetURL","targetX","targetY","targets","tcpType","tee","tel","terminate","test","texImage2D","texImage3D","texParameterf","texParameteri","texStorage2D","texStorage3D","texSubImage2D","texSubImage3D","text","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textCombineUpright","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textDecorationUnderline","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOrientation","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","textWrapMode","textWrapStyle","texture","then","threadId","threshold","thresholds","throwIfAborted","tiltX","tiltY","time","timeEnd","timeLog","timeOrigin","timeRemaining","timeStamp","timecode","timeline","timelineTime","timeout","timestamp","timestampOffset","timestampWrites","timing","title","titlebarAreaRect","to","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMatrix","toMethod","toPrecision","toPrimitive","toReversed","toSdp","toSorted","toSource","toSpliced","toStaticHTML","toString","toStringTag","toSum","toTimeString","toUTCString","toUpperCase","toWellFormed","toggle","toggleAttribute","toggleLongPressEnabled","togglePopover","token","tone","toneBuffer","tooLong","tooShort","toolbar","top","topMargin","topology","total","totalFrameDelay","totalFrames","totalVideoFrames","touch-action","touchAction","touched","touches","trace","track","trackVisibility","trackedAnchors","tracks","transaction","transactions","transceiver","transfer","transferControlToOffscreen","transferFromImageBitmap","transferImageBitmap","transferIn","transferOut","transferSize","transferToFixedLength","transferToImageBitmap","transform","transform-box","transform-origin","transform-style","transformBox","transformFeedbackVaryings","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","transport","traverseTo","trim","trimEnd","trimLeft","trimRight","trimStart","trueSpeed","trunc","truncate","trustedTypes","turn","twist","type","typeDetail","typeMismatch","typeMustMatch","types","u2f","ubound","uint16","uint32","uint8","uint8Clamped","unclippedDepth","unconfigure","undefined","underlineStyle","underlineThickness","unescape","uneval","unicode","unicode-bidi","unicodeBidi","unicodeRange","unicodeSets","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform1ui","uniform1uiv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform2ui","uniform2uiv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform3ui","uniform3uiv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniform4ui","uniform4uiv","uniformBlockBinding","uniformMatrix2fv","uniformMatrix2x3fv","uniformMatrix2x4fv","uniformMatrix3fv","uniformMatrix3x2fv","uniformMatrix3x4fv","uniformMatrix4fv","uniformMatrix4x2fv","uniformMatrix4x3fv","union","unique","uniqueID","uniqueNumber","unit","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmap","unmount","unobserve","unpackColorSpace","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","upDegrees","upX","upY","upZ","update","updateAdInterestGroups","updateCallbackDone","updateCharacterBounds","updateCommands","updateControlBounds","updateCurrentEntry","updateIce","updateInkTrailStartPoint","updateInterval","updatePlaybackRate","updateRangeEnd","updateRangeStart","updateRenderState","updateSelection","updateSelectionBounds","updateSettings","updateText","updateTiming","updateViaCache","updateWith","updated","updating","upgrade","upload","uploadTotal","uploaded","upper","upperBound","upperOpen","uri","url","urn","urns","usage","usages","usb","usbVersionMajor","usbVersionMinor","usbVersionSubminor","useCurrentView","useMap","useProgram","usedSpace","user-select","userActivation","userAgent","userAgentData","userChoice","userHandle","userHint","userInitiated","userLanguage","userSelect","userState","userVisibleOnly","username","usernameFragment","utterance","uuid","v8BreakIterator","vAlign","vLink","valid","validate","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","variable","variant","variationSettings","vb","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorId","vendorSub","verify","version","vertex","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisor","vertexAttribDivisorANGLE","vertexAttribI4i","vertexAttribI4iv","vertexAttribI4ui","vertexAttribI4uiv","vertexAttribIPointer","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vh","vi","vibrate","vibrationActuator","videoBitsPerSecond","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewDimension","viewFormats","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","views","violatedDirective","virtualKeyboard","virtualKeyboardPolicy","visibility","visibilityState","visible","visibleRect","visualViewport","vlinkColor","vmax","vmin","voice","voiceURI","volume","vrml","vspace","vw","w","wait","waitAsync","waitSync","waiting","wake","wakeLock","wand","warn","wasClean","wasDiscarded","watch","watchAvailability","watchPosition","webdriver","webkitAddKey","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBorderRadius","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxShadow","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClipPath","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDecodedFrameCount","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitDroppedFrameCount","webkitEnterFullScreen","webkitEnterFullscreen","webkitEntries","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitJustifyContent","webkitKeys","webkitLineClamp","webkitLineDashOffset","webkitLockOrientation","webkitMask","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskSize","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrder","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPerspective","webkitPerspectiveOrigin","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRelativePath","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextFillColor","webkitTextSecurity","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdirectory","webkitdropzone","webstore","weight","wgslLanguageFeatures","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","whenDefined","which","white-space","white-space-collapse","whiteSpace","whiteSpaceCollapse","wholeText","widows","width","will-change","willChange","willValidate","window","windowAttribution","windowControlsOverlay","with","withCredentials","withResolvers","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","workerStart","worklet","wow64","wrap","wrapKey","writable","writableAuxiliaries","write","writeBuffer","writeMask","writeText","writeTexture","writeTimestamp","writeValue","writeValueWithResponse","writeValueWithoutResponse","writeWithoutResponse","writeln","writing-mode","writingMode","writingSuggestions","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","xor","xr","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function l0(t){c0.forEach(a);var e=["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"],n={},r=typeof global=="object"?global:self;e.forEach(function(c){n[c]=r[c]||function(){}}),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(a),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(c){Object.getOwnPropertyNames(c).map(a),c.prototype&&Object.getOwnPropertyNames(c.prototype).map(a)});function a(c){t.add(c)}}function f0(t,e){function n(r){go(e,r)}t.walk(new Ln(function(r){r instanceof Jt&&r.quote?n(r.key):r instanceof cn&&r.quote?n(r.key.name):r instanceof xn&&Io(r.property,n)}))}function Io(t,e){t.walk(new Ln(function(n){return n instanceof lt?Io(n.tail_node(),e):n instanceof dt?e(n.value):n instanceof tt&&(Io(n.consequent,e),Io(n.alternative,e)),!0}))}function h0(t,e){var n=-1,r=new Map,a=e.nth_identifier||ga;return t=t.transform(new mr(function(h){h instanceof Ei||h instanceof vi||h instanceof ni||h instanceof bi||h instanceof ii?h.key.name=c(h.key.name):h instanceof Hr&&(h.property=c(h.property))})),t;function c(h){let d=r.get(h);return d||(d=a.get(++n),r.set(h,d)),d}}function Rd(t){var e=new Set;return Fn(t,n=>{n instanceof Ei||n instanceof vi||n instanceof ni||n instanceof bi||n instanceof Hr||(n instanceof Jt?typeof n.key=="string"&&ur(n,ya)&&e.add(n.key):n instanceof cn?ur(n,ya)&&e.add(n.key.name):n instanceof Wt?ur(n,ya)&&e.add(n.property):n instanceof xn&&n.property instanceof dt&&ur(n,ya)&&e.add(n.property.value))}),e}function p0(t,e,n=Rd(t)){e=_i(e,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,nth_identifier:ga,only_cache:!1,regex:null,reserved:null,undeclared:!1,only_annotated:!1},!0);var r=e.nth_identifier,a=e.reserved;Array.isArray(a)||(a=[a]);var c=new Set(a);e.builtins||l0(c);var h=-1,d;e.cache?d=e.cache.props:d=new Map;var v=e.only_annotated,S=e.regex&&new RegExp(e.regex),C=e.debug!==!1,T;C&&(T=e.debug===!0?"":e.debug);var k=new Set,B=new Set;d.forEach(w=>B.add(w));var L=!!e.keep_quoted;return t.walk(new Ln(function(w){if(!(w instanceof Ei||w instanceof vi||w instanceof ni||w instanceof bi||w instanceof Hr))if(w instanceof Jt)typeof w.key=="string"&&(!L||!w.quote)&&g(w.key);else if(w instanceof cn)(!L||!w.quote)&&g(w.key.name);else if(w instanceof Wt){var U=!!e.undeclared;if(!U){for(var X=w;X.expression;)X=X.expression;U=!(X.thedef&&X.thedef.undeclared)}U&&(!L||!w.quote)&&g(w.property)}else w instanceof xn?L||Io(w.property,g):w instanceof Ve&&w.expression.print_to_string()=="Object.defineProperty"?Io(w.args[1],g):w instanceof ae&&w.operator==="in"?Io(w.left,g):w instanceof dt&&ur(w,_a)&&g(w.value)})),t.transform(new mr(function(w){w instanceof Ei||w instanceof vi||w instanceof ni||w instanceof bi||w instanceof Hr||(w instanceof Jt?typeof w.key=="string"&&(!L||!w.quote)&&(w.key=O(w.key)):w instanceof cn?(!L||!w.quote)&&(w.key.name=O(w.key.name)):w instanceof Wt?(!L||!w.quote)&&(w.property=O(w.property)):!L&&w instanceof xn?w.property=R(w.property):w instanceof Ve&&w.expression.print_to_string()=="Object.defineProperty"?w.args[1]=R(w.args[1]):w instanceof ae&&w.operator==="in"?w.left=R(w.left):w instanceof dt&&ur(w,_a)&&(Wp(w,_a),w.value=O(w.value)))}));function b(w){return B.has(w)||c.has(w)?!1:e.only_cache?d.has(w):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(w)}function y(w){return v&&!n.has(w)?!1:S&&!S.test(w)?n.has(w):c.has(w)?!1:d.has(w)||k.has(w)}function g(w){b(w)&&k.add(w),y(w)||B.add(w)}function O(w){if(!y(w))return w;var U=d.get(w);if(!U){if(C){var X="_$"+w+"$"+T+"_";b(X)&&(U=X)}if(!U)do U=r.get(++h);while(!b(U));d.set(w,U)}return U}function R(w){return w.transform(new mr(function(U){if(U instanceof lt){var X=U.expressions.length-1;U.expressions[X]=R(U.expressions[X])}else U instanceof dt?(Wp(U,_a),U.value=O(U.value)):U instanceof tt&&(U.consequent=R(U.consequent),U.alternative=R(U.alternative));return U}))}}var d0=typeof Buffer<"u"?t=>Buffer.from(t,"base64").toString():t=>decodeURIComponent(escape(atob(t))),m0=typeof Buffer<"u"?t=>Buffer.from(t).toString("base64"):t=>btoa(unescape(encodeURIComponent(t)));function _0(t){var e=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(t);return e?d0(e[2]):(console.warn("inline source map not found"),null)}function co(t,e,n){e[t]&&n.forEach(function(r){e[r]&&(typeof e[r]!="object"&&(e[r]={}),t in e[r]||(e[r][t]=e[t]))})}function Nd(t){t&&("props"in t?t.props instanceof Map||(t.props=iy(t.props)):t.props=new Map)}function Id(t){return{props:oy(t.props)}}function y0(t,e,n,r){if(!(n&&n.writeFileSync&&n.mkdirSync))return;try{n.mkdirSync(r)}catch(d){if(d.code!=="EEXIST")throw d}const a=`${r}/terser-debug-${Math.random()*9999999|0}.log`;e=e||{};const c=JSON.stringify(e,(d,v)=>typeof v=="function"?"[Function "+v.toString()+"]":v instanceof RegExp?"[RegExp "+v.toString()+"]":v,4),h=d=>typeof d=="object"&&e.parse&&e.parse.spidermonkey?JSON.stringify(d,null,2):typeof d=="object"?Object.keys(d).map(v=>v+": "+h(d[v])).join(`
271
-
272
- `):typeof d=="string"?"```\n"+d+"\n```":d;n.writeFileSync(a,`Options:
273
- `+c+`
274
-
275
- Input files:
276
-
277
- `+h(t)+`
278
- `)}function*g0(t,e,n){n&&typeof process=="object"&&process.env&&typeof process.env.TERSER_DEBUG_DIR=="string"&&y0(t,e,n,process.env.TERSER_DEBUG_DIR),e=_i(e,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,spidermonkey:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0);var r=e.timings&&{start:Date.now()};if(e.keep_classnames===void 0&&(e.keep_classnames=e.keep_fnames),e.rename===void 0&&(e.rename=e.compress&&e.mangle),e.output&&e.format)throw new Error("Please only specify either output or format option, preferrably format.");e.format=e.format||e.output||{},co("ecma",e,["parse","compress","format"]),co("ie8",e,["compress","mangle","format"]),co("keep_classnames",e,["compress","mangle"]),co("keep_fnames",e,["compress","mangle"]),co("module",e,["parse","compress","mangle"]),co("safari10",e,["mangle","format"]),co("toplevel",e,["compress","mangle"]),co("warnings",e,["compress"]);var a;e.mangle&&(e.mangle=_i(e.mangle,{cache:e.nameCache&&(e.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,nth_identifier:ga,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),e.mangle.properties&&(typeof e.mangle.properties!="object"&&(e.mangle.properties={}),e.mangle.properties.keep_quoted&&(a=e.mangle.properties.reserved,Array.isArray(a)||(a=[]),e.mangle.properties.reserved=a),e.nameCache&&!("cache"in e.mangle.properties)&&(e.mangle.properties.cache=e.nameCache.props||{})),Nd(e.mangle.cache),Nd(e.mangle.properties.cache)),e.sourceMap&&(e.sourceMap=_i(e.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),r&&(r.parse=Date.now());var c;if(t instanceof zt)c=t;else{if((typeof t=="string"||e.parse.spidermonkey&&!Array.isArray(t))&&(t=[t]),e.parse=e.parse||{},e.parse.toplevel=null,e.parse.spidermonkey)e.parse.toplevel=Ce.from_mozilla_ast(Object.keys(t).reduce(function(k,B){return k?(k.body=k.body.concat(t[B].body),k):t[B]},null));else{delete e.parse.spidermonkey;for(var h in t)if(tr(t,h)&&(e.parse.filename=h,e.parse.toplevel=la(t[h],e.parse),e.sourceMap&&e.sourceMap.content=="inline")){if(Object.keys(t).length>1)throw new Error("inline source map only works with singular input");e.sourceMap.content=_0(t[h])}}if(e.parse.toplevel===null)throw new Error("no source file given");c=e.parse.toplevel}a&&e.mangle.properties.keep_quoted!=="strict"&&f0(c,a);var d;e.mangle&&e.mangle.properties&&(d=Rd(c)),e.wrap&&(c=c.wrap_commonjs(e.wrap)),e.enclose&&(c=c.wrap_enclose(e.enclose)),r&&(r.rename=Date.now()),r&&(r.compress=Date.now()),e.compress&&(c=new Cd(e.compress,{mangle_options:e.mangle}).compress(c)),r&&(r.scope=Date.now()),e.mangle&&c.figure_out_scope(e.mangle),r&&(r.mangle=Date.now()),e.mangle&&(c.compute_char_frequency(e.mangle),c.mangle_names(e.mangle),c=h0(c,e.mangle)),r&&(r.properties=Date.now()),e.mangle&&e.mangle.properties&&(c=p0(c,e.mangle.properties,d)),r&&(r.format=Date.now());var v={};e.format.ast&&(v.ast=c),e.format.spidermonkey&&(v.ast=c.to_mozilla_ast());let S;if(!tr(e.format,"code")||e.format.code){if(S={...e.format},S.ast||(S._destroy_ast=!0,Fn(c,k=>{k instanceof qe&&(k.variables=void 0,k.enclosed=void 0,k.parent_scope=void 0),k.block_scope&&(k.block_scope.variables=void 0,k.block_scope.enclosed=void 0,k.parent_scope=void 0)})),e.sourceMap){if(e.sourceMap.includeSources&&t instanceof zt)throw new Error("original source content unavailable");S.source_map=yield*u0({file:e.sourceMap.filename,orig:e.sourceMap.content,root:e.sourceMap.root,files:e.sourceMap.includeSources?t:null})}delete S.ast,delete S.code,delete S.spidermonkey;var C=$l(S);if(c.print(C),v.code=C.get(),e.sourceMap)if(Object.defineProperty(v,"map",{configurable:!0,enumerable:!0,get(){const k=S.source_map.getEncoded();return v.map=e.sourceMap.asObject?k:JSON.stringify(k)},set(k){Object.defineProperty(v,"map",{value:k,writable:!0})}}),v.decoded_map=S.source_map.getDecoded(),e.sourceMap.url=="inline"){var T=typeof v.map=="object"?JSON.stringify(v.map):v.map;v.code+=`
279
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,`+m0(T)}else e.sourceMap.url&&(v.code+=`
280
- //# sourceMappingURL=`+e.sourceMap.url)}return e.nameCache&&e.mangle&&(e.mangle.cache&&(e.nameCache.vars=Id(e.mangle.cache)),e.mangle.properties&&e.mangle.properties.cache&&(e.nameCache.props=Id(e.mangle.properties.cache))),S&&S.source_map&&S.source_map.destroy(),r&&(r.end=Date.now(),v.timings={parse:.001*(r.rename-r.parse),rename:.001*(r.compress-r.rename),compress:.001*(r.scope-r.compress),scope:.001*(r.mangle-r.scope),mangle:.001*(r.properties-r.mangle),properties:.001*(r.format-r.properties),format:.001*(r.end-r.format),total:.001*(r.end-r.start)}),v}async function Pd(t,e,n){const r=g0(t,e,n);let a,c;do c=r.next(await a),a=c.value;while(!c.done);return c.value}function Fd(t){const e=new s_(t),n=new Tl(e);n.removeErrorListeners();const r=new r_(n),a=new F(r);a._interp.predictionMode=h_.SLL,a.removeErrorListeners();const c=new E0;n.addErrorListener(c),a.addErrorListener(c),a.buildParseTrees=!0;const h=a.program(),d=r.tokens.filter(v=>v.channel===2);return{errors:c.errors,ast:h,comments:d}}async function b0(t,e,n,r){const{errors:a,ast:c,comments:h}=Fd(t+`
281
-
282
- `),d=new Mp(r,h,n),v=await d.visit(c);let S=a.splice(0,1);S.length||(S=d.errors);let C="";const T=new j_("$");let k=e?"":T.preParser(v);if(e&&!S.some(B=>B.type===Sn.Error)){const B=T.parser(v)||"";k=T.preParseCode;try{C=(await Pd(B,{compress:!0,mangle:!0})).code||"";const b={message:pe.indiRunErr,type:Sn.Error,startColumn:0,startLineNumber:0,endColumn:0,endLineNumber:0};if(d.hasUseDrawFunc){if(d.scriptType===Ii.library)d.exportPositions.length||(b.message=pe.libraryExportErr,S.push(b));else if(d.exportPositions.length){const y=d.exportPositions.map(g=>{const{type:O,...R}=g;return{message:ye(pe.exportUseErr,{type:O}),type:Sn.Error,...R}});S.push(...y)}}else switch(d.scriptType){case Ii.indicator:S.push(b);break;case Ii.strategy:d.hasUseCreateOrderFunc||(b.message=pe.strategyRunErr,S.push(b));break}}catch(L){S.push({message:(L==null?void 0:L.message)||"minify error",type:Sn.Error,startColumn:0,startLineNumber:0,endColumn:0,endLineNumber:0})}}return{errors:S,functions:Object.fromEntries(d.userFunctions),variables:Object.fromEntries(d.userVariables),types:Object.fromEntries(d.userTypes),methods:Object.fromEntries(d.userMethods),overloadsFuncs:d.overloadsFuncs,imports:Object.fromEntries(d.imports),enums:Object.fromEntries(d.userEnums),codeStr:C,preParserCode:k}}async function v0(t,e,n,r){const{ast:a,comments:c}=Fd(t+`
283
-
284
- `),h=new Mp(r,c,n),d=await h.visit(a),{name:v,index:S}=h.endExport,C=d.findIndex(b=>b.name===v&&b.index===S),T=d.slice(0,C+1),B=new H_("$",e).parser(T)||"",L=await Pd(B,{compress:!0,mangle:!0});return{...h.exportLibs,description:h.description,codeStr:L.code||""}}class E0 extends i_{constructor(){super(...arguments);D(this,"errors",[])}syntaxError(n,r,a,c,h){this.errors.push({message:`syntax error: ${h.replace(/expecting.+/,"")}`,type:Sn.Error,startColumn:c,startLineNumber:a,endColumn:c,endLineNumber:a})}}Ol({parseTcc:b0,parseLibraryCode:v0})})();