MCPcopy Index your code
hub / github.com/epicweb-dev/react-fundamentals / Cpe

Function Cpe

public/babel-standalone.js:19–20  ·  view source on GitHub ↗
(e,r)

Source from the content-addressed store, hash-verified

17`)}if(this.format.concise)d=d.replace(/\n(?!$)/g,`
18`);else{var D=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(D+=this._getIndent()),d=d.replace(/\n(?!$)/g,`
19`+" ".repeat(D))}}}else a?d="/*"+n.value+"*/":d="//"+n.value;this.endsWith(47)&&this._space(),this.source("start",n.loc),this._append(d,i),!i&&!a&&this.newline(1,!0),o&&s!==3&&this.newline(1)},r._printComments=function(n,s,a,i,o){o===void 0&&(o=0);for(var u=a.loc,d=s.length,l=!!u,c=l?u.start.line:0,x=l?u.end.line:0,f=0,D=0,g=this._noLineTerminator?function(){}:this.newline.bind(this),p=0;p<d;p++){var F=s[p],m=this._shouldPrintComment(F);if(m===2){l=!1;break}if(l&&F.loc&&m===1){var E=F.loc.start.line,h=F.loc.end.line;if(n===0){var v=0;p===0?this._buf.hasContent()&&(F.type==="CommentLine"||E!=h)&&(v=D=1):v=E-f,f=h,g(v),this._printComment(F,1),p+1===d&&(g(Math.max(c-f,D)),f=c)}else if(n===1){var A=E-(p===0?c:f);f=h,g(A),this._printComment(F,1),p+1===d&&(g(Math.min(1,x-f)),f=x)}else{var C=E-(p===0?x-o:f);f=h,g(C),this._printComment(F,1)}}else{if(l=!1,m!==1)continue;if(d===1){var w=F.loc?F.loc.start.line===F.loc.end.line:!$7.test(F.value),B=w&&!IDe(a)&&!kDe(i)&&!ODe(i)&&!_De(i);n===0?this._printComment(F,B&&a.type!=="ObjectExpression"||w&&PDe(i,{body:a})?1:0):B&&n===2?this._printComment(F,1):this._printComment(F,0)}else n===1&&!(a.type==="ObjectExpression"&&a.properties.length>1)&&a.type!=="ClassBody"&&a.type!=="TSInterfaceBody"?this._printComment(F,p===0?2:p===d-1?3:0):this._printComment(F,0)}}n===2&&l&&f&&(this._lastCommentLine=f)},Qe(e)}();Object.assign(Kd.prototype,TDe),Kd.prototype.Noop=function(){};function $De(){this.tokenChar(44),this.space()}function U7(e,r){var t,n={auxiliaryCommentBefore:r.auxiliaryCommentBefore,auxiliaryCommentAfter:r.auxiliaryCommentAfter,shouldPrintComment:r.shouldPrintComment,retainLines:r.retainLines,retainFunctionParens:r.retainFunctionParens,comments:r.comments==null||r.comments,compact:r.compact,minified:r.minified,concise:r.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},r.jsescOption),recordAndTupleSyntaxType:(t=r.recordAndTupleSyntaxType)!=null?t:"hash",topicToken:r.topicToken,importAttributesKeyword:r.importAttributesKeyword};n.decoratorsBeforeExport=r.decoratorsBeforeExport,n.jsescOption.json=r.jsonCompatibleStrings,n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||function(){return n.comments}):n.shouldPrintComment=n.shouldPrintComment||function(o){return n.comments||o.includes("@license")||o.includes("@preserve")},n.compact==="auto"&&(n.compact=typeof e=="string"&&e.length>5e5,n.compact&&console.error("[BABEL] Note: The code generator has deoptimised the styling of "+(r.filename+" as it exceeds the max of 500KB."))),n.compact&&(n.indent.adjustMultilineComment=!1);var s=n.auxiliaryCommentBefore,a=n.auxiliaryCommentAfter,i=n.shouldPrintComment;return s&&!i(s)&&(n.auxiliaryCommentBefore=void 0),a&&!i(a)&&(n.auxiliaryCommentAfter=void 0),n}vr.CodeGenerator=function(){function e(t,n,s){n===void 0&&(n={}),this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=U7(s,n),this._map=n.sourceMaps?new e7(n,s):null}var r=e.prototype;return r.generate=function(){var n=new Kd(this._format,this._map);return n.generate(this._ast)},Qe(e)}();function Oi(e,r,t){r===void 0&&(r={});var n=U7(t,r),s=r.sourceMaps?new e7(r,t):null,a=new Kd(n,s);return a.generate(e)}var UDe=Object.freeze({__proto__:null,default:Oi}),GDe=ea;function WDe(e){for(var r=this;r=r.parentPath;)if(e(r))return r;return null}function VDe(e){var r=this;do if(e(r))return r;while(r=r.parentPath);return null}function HDe(){return this.findParent(function(e){return e.isFunction()})}function KDe(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function zDe(e){return this.getDeepestCommonAncestorFrom(e,function(r,t,n){for(var s,a=GDe[r.type],i=J(n),o;!(o=i()).done;){var u=o.value,d=u[t+1];if(!s){s=d;continue}if(d.listKey&&s.listKey===d.listKey&&d.key<s.key){s=d;continue}var l=a.indexOf(s.parentKey),c=a.indexOf(d.parentKey);l>c&&(s=d)}return s})}function YDe(e,r){var t=this;if(!e.length)return this;if(e.length===1)return e[0];var n=1/0,s,a,i=e.map(function(f){var D=[];do D.unshift(f);while((f=f.parentPath)&&f!==t);return D.length<n&&(n=D.length),D}),o=i[0];e:for(var u=0;u<n;u++){for(var d=o[u],l=J(i),c;!(c=l()).done;){var x=c.value;if(x[u]!==d)break e}s=u,a=d}if(a)return r?r(a,s,i):a;throw new Error("Couldn't find intersection")}function XDe(){var e=this,r=[];do r.push(e);while(e=e.parentPath);return r}function JDe(e){return e.isDescendant(this)}function QDe(e){return!!this.findParent(function(r){return r===e})}function ZDe(){for(var e=this,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];for(;e;){for(var s=J(t),a;!(a=s()).done;){var i=a.value;if(e.node.type===i)return!0}e=e.parentPath}return!1}var efe=Object.freeze({__proto__:null,find:VDe,findParent:WDe,getAncestry:XDe,getDeepestCommonAncestorFrom:YDe,getEarliestCommonAncestorFrom:zDe,getFunctionParent:HDe,getStatementParent:KDe,inType:ZDe,isAncestor:JDe,isDescendant:QDe}),G7=Ed,W7=WB,rfe=Ed,tfe=iR,afe=uR;function zd(e){{if(e.every(function(r){return tfe(r)}))return G7?G7(e):rfe(e);if(e.every(function(r){return afe(r)})&&W7)return W7(e)}}var nfe=FD,sfe=qB,V7=Ho,ife=Bi;function ofe(e){if(this.isReferenced()){var r=this.scope.getBinding(e.name);if(r)return r.identifier.typeAnnotation?r.identifier.typeAnnotation:ufe(r,this,e.name);if(e.name==="undefined")return ife();if(e.name==="NaN"||e.name==="Infinity")return V7();e.name}}function ufe(e,r,t){var n=[],s=[],a=H7(e,r,s),i=K7(e,r,t);if(i){var o=H7(e,i.ifStatement);a=a.filter(function(x){return o.indexOf(x)<0}),n.push(i.typeAnnotation)}if(a.length){var u;(u=a).push.apply(u,s);for(var d=J(a),l;!(l=d()).done;){var c=l.value;n.push(c.getTypeAnnotation())}}if(n.length)return zd(n)}function H7(e,r,t){var n=e.constantViolations.slice();return n.unshift(e.path),n.filter(function(s){s=s.resolve();var a=s._guessExecutionStatusRelativeTo(r);return t&&a==="unknown"&&t.push(s),a==="before"})}function dfe(e,r){var t=r.node.operator,n=r.get("right").resolve(),s=r.get("left").resolve(),a;if(s.isIdentifier({name:e})?a=n:n.isIdentifier({name:e})&&(a=s),a)return t==="==="?a.getTypeAnnotation():nfe.indexOf(t)>=0?V7():void 0;if(!(t!=="==="&&t!=="==")){var i,o;if(s.isUnaryExpression({operator:"typeof"})?(i=s,o=n):n.isUnaryExpression({operator:"typeof"})&&(i=n,o=s),!!i&&i.get("argument").isIdentifier({name:e})&&(o=o.resolve(),!!o.isLiteral())){var u=o.node.value;if(typeof u=="string")return sfe(u)}}}function lfe(e,r,t){for(var n;n=r.parentPath;){if(n.isIfStatement()||n.isConditionalExpression())return r.key==="test"?void 0:n;if(n.isFunction()&&n.parentPath.scope.getBinding(t)!==e)return;r=n}}function K7(e,r,t){var n=lfe(e,r,t);if(n){for(var s=n.get("test"),a=[s],i=[],o=0;o<a.length;o++){var u=a[o];if(u.isLogicalExpression())u.node.operator==="&&"&&(a.push(u.get("left")),a.push(u.get("right")));else if(u.isBinaryExpression()){var d=dfe(t,u);d&&i.push(d)}}return i.length?{typeAnnotation:zd(i),ifStatement:n}:K7(e,n,t)}}var cfe=yD,xfe=hD,Dfe=rd,ffe=ED,pfe=CD,z7=Vo,d1=zD,l1=Fd,Yd=Y0,Hn=Ri,js=Z,gfe=YD,_i=Ho,Ts=Ko,Ffe=XD,mfe=md,yfe=Bi,hfe=qe;function Efe(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function Y7(e){return e.typeAnnotation}Y7.validParent=!0;function X7(e){return e.typeAnnotation}X7.validParent=!0;function Cfe(){return this.get("expression").getTypeAnnotation()}function vfe(e){if(e.callee.type==="Identifier")return Hn(e.callee)}function Afe(){return Ts()}function bfe(e){var r=e.operator;if(r==="void")return yfe();if(ffe.indexOf(r)>=0)return _i();if(pfe.indexOf(r)>=0)return Ts();if(xfe.indexOf(r)>=0)return l1()}function Rfe(e){var r=e.operator;if(Dfe.indexOf(r)>=0)return _i();if(cfe.indexOf(r)>=0)return l1();if(r==="+"){var t=this.get("right"),n=this.get("left");return n.isBaseType("number")&&t.isBaseType("number")?_i():n.isBaseType("string")||t.isBaseType("string")?Ts():mfe([Ts(),_i()])}}function Bfe(){var e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return zd(e)}function wfe(){var e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return zd(e)}function Sfe(){return this.get("expressions").pop().getTypeAnnotation()}function jfe(){return this.get("expression").getTypeAnnotation()}function Tfe(){return this.get("right").getTypeAnnotation()}function Pfe(e){var r=e.operator;if(r==="++"||r==="--")return _i()}function Ife(){return Ts()}function kfe(){return _i()}function Ofe(){return l1()}function _fe(){return gfe()}function Nfe(){return Hn(js("RegExp"))}function Mfe(){return Hn(js("Object"))}function J7(){return Hn(js("Array"))}function Q7(){return J7()}Q7.validParent=!0;function au(){return Hn(js("Function"))}var Lfe=Yd("Array.from"),qfe=Yd("Object.keys"),$fe=Yd("Object.values"),Ufe=Yd("Object.entries");function Gfe(){var e=this.node.callee;return qfe(e)?d1(Ts()):Lfe(e)||$fe(e)||hfe(e,{name:"Array"})?d1(z7()):Ufe(e)?d1(Ffe([Ts(),z7()])):Z7(this.get("callee"))}function Wfe(){return Z7(this.get("tag"))}function Z7(e){if(e=e.resolve(),e.isFunction()){var r=e,t=r.node;if(t.async)return t.generator?Hn(js("AsyncIterator")):Hn(js("Promise"));if(t.generator)return Hn(js("Iterator"));if(e.node.returnType)return e.node.returnType}}var e9=Object.freeze({__proto__:null,ArrayExpression:J7,ArrowFunctionExpression:au,AssignmentExpression:Tfe,BinaryExpression:Rfe,BooleanLiteral:Ofe,CallExpression:Gfe,ClassDeclaration:au,ClassExpression:au,ConditionalExpression:wfe,FunctionDeclaration:au,FunctionExpression:au,Identifier:ofe,LogicalExpression:Bfe,NewExpression:vfe,NullLiteral:_fe,NumericLiteral:kfe,ObjectExpression:Mfe,ParenthesizedExpression:jfe,RegExpLiteral:Nfe,RestElement:Q7,SequenceExpression:Sfe,StringLiteral:Ife,TSAsExpression:X7,TSNonNullExpression:Cfe,TaggedTemplateExpression:Wfe,TemplateLiteral:Afe,TypeCastExpression:Y7,UnaryExpression:bfe,UpdateExpression:Pfe,VariableDeclarator:Efe}),r9=Vo,Xd=Zx,Vfe=W0,Hfe=Rb,Kfe=Sb,zfe=oD,Yfe=eD,t9=qe,Xfe=wb,Jfe=jb,Qfe=Tb,Zfe=Hb,epe=nD,rpe=aD,tpe=Pb,ape=Ib,npe=tD,spe=kb,ipe=Ko,ope=Bi;function upe(){var e=this.getData("typeAnnotation");return e!=null||(e=this._getTypeAnnotation()||r9(),(ape(e)||epe(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var c1=new WeakSet;function dpe(){var e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){var r=this.parentPath.parentPath,t=r.parentPath;return r.key==="left"&&t.isForInStatement()?ipe():r.key==="left"&&t.isForOfStatement()?r9():ope()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!c1.has(e)){c1.add(e);try{var n,s=e9[e.type];if(s)return s.call(this,e);if(s=e9[this.parentPath.type],(n=s)!=null&&n.validParent)return this.parentPath.getTypeAnnotation()}finally{c1.delete(e)}}}function lpe(e,r){return x1(e,this.getTypeAnnotation(),r)}function x1(e,r,t){if(e==="string")return Qfe(r);if(e==="number")return Jfe(r);if(e==="boolean")return Hfe(r);if(e==="any")return Xd(r);if(e==="mixed")return Xfe(r);if(e==="empty")return Kfe(r);if(e==="void")return spe(r);if(t)return!1;throw new Error("Unknown base type "+e)}function cpe(e){var r=this.getTypeAnnotation();if(Xd(r))return!0;if(npe(r)){for(var t=J(r.types),n;!(n=t()).done;){var s=n.value;if(Xd(s)||x1(e,s,!0))return!0}return!1}else return x1(e,r,!0)}function xpe(e){var r=this.getTypeAnnotation(),t=e.getTypeAnnotation();return!Xd(r)&&zfe(r)?t.type===r.type:!1}function Dpe(e){var r=this.getTypeAnnotation();return e==="Array"&&(Zfe(r)||Vfe(r)||tpe(r))?!0:Yfe(r)&&t9(r.id,{name:e})||rpe(r)&&t9(r.typeName,{name:e})}var fpe=Object.freeze({__proto__:null,_getTypeAnnotation:dpe,baseTypeStrictlyMatches:xpe,couldBeBaseType:cpe,getTypeAnnotation:upe,isBaseType:lpe,isGenericType:Dpe}),nu={},a9;function n9(){return a9||(a9=1,Object.defineProperty(nu,"__esModule",{value:!0}),nu.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,nu.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}),nu}function ppe(e){return e==null?!1:e&&e!=="false"&&e!=="0"}var s9=(ppe(He.env.BABEL_8_BREAKING),n9()),D1={exports:{}},Kr=String,i9=function(){return{isColorSupported:!1,reset:Kr,bold:Kr,dim:Kr,italic:Kr,underline:Kr,inverse:Kr,hidden:Kr,strikethrough:Kr,black:Kr,red:Kr,green:Kr,yellow:Kr,blue:Kr,magenta:Kr,cyan:Kr,white:Kr,gray:Kr,bgBlack:Kr,bgRed:Kr,bgGreen:Kr,bgYellow:Kr,bgBlue:Kr,bgMagenta:Kr,bgCyan:Kr,bgWhite:Kr}};D1.exports=i9();var Jd=D1.exports.createColors=i9,o9=D1.exports,u9=typeof He=="object"&&(He.env.FORCE_COLOR==="0"||He.env.FORCE_COLOR==="false")?Jd(!1):o9,d9=function(r,t){return function(n){return r(t(n))}},gpe=new Set(["as","async","from","get","of","set"]);function Fpe(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:d9(d9(e.white,e.bgRed),e.bold)}}var mpe=/\r\n|[\n\r\u2028\u2029]/,ype=/^[()[\]{}]$/,l9;{var hpe=/^[a-z][\w-]*$/i,Epe=function(r,t,n){if(r.type==="name"){if(Z0(r.value)||Q0(r.value,!0)||gpe.has(r.value))return"keyword";if(hpe.test(r.value)&&(n[t-1]==="<"||n.slice(t-2,t)=="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&ype.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};l9=Se().mark(function e(r){var t,n;return Se().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(t=s9.default.exec(r))){a.next=6;break}return n=s9.matchToToken(t),a.next=4,{type:Epe(n,t.index,r),value:n.value};case 4:a.next=0;break;case 6:case"end":return a.stop()}},e)})}function Cpe(e,r){for(var t="",n=function(){var o=a.value,u=o.type,d=o.value,l=e[u];l?t+=d.split(mpe).map(function(c){return l(c)}).join(`
20`):t+=d},s=J(l9(r)),a;!(a=s()).done;)n();return t}function c9(e){return u9.isColorSupported||e.forceColor}var f1=void 0;function vpe(e){if(e){var r;return(r=f1)!=null||(f1=Jd(!0)),f1}return u9}function Ape(e,r){if(r===void 0&&(r={}),e!==""&&c9(r)){var t=Fpe(vpe(r.forceColor));return Cpe(t,e)}else return e}var bpe=typeof He=="object"&&(He.env.FORCE_COLOR==="0"||He.env.FORCE_COLOR==="false")?Jd(!1):o9,x9=function(r,t){return function(n){return r(t(n))}},p1=void 0;function Rpe(e){if(e){var r;return(r=p1)!=null||(p1=Jd(!0)),p1}return bpe}function Bpe(e){return{gutter:e.gray,marker:x9(e.red,e.bold),message:x9(e.red,e.bold)}}var D9=/\r\n|[\n\r\u2028\u2029]/;function wpe(e,r,t){var n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),a=t||{},i=a.linesAbove,o=i===void 0?2:i,u=a.linesBelow,d=u===void 0?3:u,l=n.line,c=n.column,x=s.line,f=s.column,D=Math.max(l-(o+1),0),g=Math.min(r.length,x+d);l===-1&&(D=0),x===-1&&(g=r.length);var p=x-l,F={};if(p)for(var m=0;m<=p;m++){var E=m+l;if(!c)F[E]=!0;else if(m===0){var h=r[E-1].length;F[E]=[c,h-c+1]}else if(m===p)F[E]=[0,f];else{var v=r[E-m].length;F[E]=[0,v]}}else c===f?c?F[l]=[c,0]:F[l]=!0:F[l]=[c,f-c];return{start:D,end:g,markerLines:F}}function Qd(e,r,t){t===void 0&&(t={});var n=(t.highlightCode||t.forceColor)&&c9(t),s=Rpe(t.forceColor),a=Bpe(s),i=function(F,m){return n?F(m):m},o=e.split(D9),u=wpe(r,o,t),d=u.start,l=u.end,c=u.markerLines,x=r.start&&typeof r.start.column=="number",f=String(l).length,D=n?Ape(e,t):e,g=D.split(D9,l).slice(d,l).map(function(p,F){var m=d+1+F,E=(" "+m).slice(-f),h=" "+E+" |",v=c[m],A=!c[m+1];if(v){var C="";if(Array.isArray(v)){var w=p.slice(0,Math.max(v[0]-1,0)).replace(/[^\t]/g," "),B=v[1]||1;C=[`
21 `,i(a.gutter,h.replace(/\d/g," "))," ",w,i(a.marker,"^").repeat(B)].join(""),A&&t.message&&(C+=" "+i(a.message,t.message))}return[i(a.marker,">"),i(a.gutter,h),p.length>0?" "+p:"",C].join("")}else return" "+i(a.gutter,h)+(p.length>0?" "+p:"")}).join(`
22`);return t.message&&!x&&(g=""+" ".repeat(f+1)+t.message+`
23`+g),n?s.reset(g):g}var Kn=Qe(function(r,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=r,this.column=t,this.index=n}),Zd=Qe(function(r,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=r,this.end=t});function jt(e,r){var t=e.line,n=e.column,s=e.index;return new Kn(t,n+r,s+r)}var f9="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Spe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:f9},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:f9}},p9={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},el=function(r){var t=r.type,n=r.prefix;return t==="UpdateExpression"?p9.UpdateExpression[String(n)]:p9[t]},jpe={AccessorIsGenerator:function(r){var t=r.kind;return"A "+t+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(r){var t=r.kind;return"Missing initializer in "+t+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(r){var t=r.exportName;return"`"+t+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(r){var t=r.phase;return"'import."+t+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(r){var t=r.localName,n=r.exportName;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+t+"' as '"+n+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(r){var t=r.type;return"'"+(t==="ForInStatement"?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(r){var t=r.type;return"Unsyntactic "+(t==="BreakStatement"?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(r){var t=r.importName;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+t+'" as foo }`?'},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(r){var t=r.maxArgumentCount;return"`import()` requires exactly "+(t===1?"one argument":"one or two arguments")+"."},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(r){var t=r.radix;return"Expected number in radix "+t+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(r){var t=r.reservedWord;return"Escape sequence in keyword "+t+"."},InvalidIdentifier:function(r){var t=r.identifierName;return"Invalid identifier "+t+"."},InvalidLhs:function(r){var t=r.ancestor;return"Invalid left-hand side in "+el(t)+"."},InvalidLhsBinding:function(r){var t=r.ancestor;return"Binding invalid left-hand side in "+el(t)+"."},InvalidLhsOptionalChaining:function(r){var t=r.ancestor;return"Invalid optional chaining in the left-hand side of "+el(t)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(r){var t=r.unexpected;return"Unexpected character '"+t+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(r){var t=r.identifierName;return"Private name #"+t+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(r){var t=r.labelName;return"Label '"+t+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(r){var t=r.missingPlugin;return"This experimental syntax requires enabling the parser plugin: "+t.map(function(n){return JSON.stringify(n)}).join(", ")+"."},MissingOneOfPlugins:function(r){var t=r.missingPlugin;return"This experimental syntax requires enabling one of the following parser plugin(s): "+t.map(function(n){return JSON.stringify(n)}).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(r){var t=r.key;return'Duplicate key "'+t+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(r){var t=r.surrogateCharCode;return"An export name cannot include a lone surrogate, found '\\u"+t.toString(16)+"'."},ModuleExportUndefined:function(r){var t=r.localName;return"Export '"+t+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(r){var t=r.identifierName;return"Private names are only allowed in property accesses (`obj.#"+t+"`) or in `in` expressions (`#"+t+" in obj`)."},PrivateNameRedeclaration:function(r){var t=r.identifierName;return"Duplicate private name #"+t+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(r){var t=r.keyword;return"Unexpected keyword '"+t+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(r){var t=r.reservedWord;return"Unexpected reserved word '"+t+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(r){var t=r.expected,n=r.unexpected;return"Unexpected token"+(n?" '"+n+"'.":"")+(t?', expected "'+t+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(r){var t=r.target,n=r.onlyValidPropertyName;return"The only valid meta property for "+t+" is "+t+"."+n+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(r){var t=r.identifierName;return"Identifier '"+t+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Tpe={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(r){var t=r.referenceName;return"Assigning to '"+t+"' in strict mode."},StrictEvalArgumentsBinding:function(r){var t=r.bindingName;return"Binding '"+t+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Ppe=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Ipe={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(r){var t=r.token;return"Invalid topic token "+t+". In order to use "+t+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+t+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(r){var t=r.type;return"Hack-style pipe body cannot be an unparenthesized "+el({type:t})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},g9,kpe=["toMessage"],Ope=["message"];function F9(e,r,t){Object.defineProperty(e,r,{enumerable:!1,configurable:!0,value:t})}function _pe(e){var r=e.toMessage,t=li(e,kpe);return function n(s,a){var i=new SyntaxError;return Object.assign(i,t,{loc:s,pos:s.index}),"missingPlugin"in a&&Object.assign(i,{missingPlugin:a.missingPlugin}),F9(i,"clone",function(u){var d;u===void 0&&(u={});var l=(d=u.loc)!=null?d:s,c=l.line,x=l.column,f=l.index;return n(new Kn(c,x,f),Object.assign({},a,u.details))}),F9(i,"details",a),Object.defineProperty(i,"message",{configurable:!0,get:function(){var u=r(a)+" ("+s.line+":"+s.column+")";return this.message=u,u},set:function(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),i}}function un(e,r){if(Array.isArray(e))return function(i){return un(i,e[0])};for(var t={},n=function(){var o=a[s],u=e[o],d=typeof u=="string"?{message:function(){return u}}:typeof u=="function"?{message:u}:u,l=d.message,c=li(d,Ope),x=typeof l=="string"?function(){return l}:l;t[o]=_pe(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:o,toMessage:x},r?{syntaxPlugin:r}:{},c))},s=0,a=Object.keys(e);s<a.length;s++)n();return t}var oe=Object.assign({},un(Spe),un(jpe),un(Tpe),un(g9||(g9=le(["pipelineOperator"])))(Ipe)),Npe=Object.defineProperty,m9=function(r,t){return Npe(r,t,{enumerable:!1,value:r[t]})};function su(e){return e.loc.start&&m9(e.loc.start,"index"),e.loc.end&&m9(e.loc.end,"index"),e}var Mpe=function(e){return function(r){nt(t,r);function t(){return r.apply(this,arguments)||this}var n=t.prototype;return n.parse=function(){var a=su(r.prototype.parse.call(this));return this.options.tokens&&(a.tokens=a.tokens.map(su)),a},n.parseRegExpLiteral=function(a){var i=a.pattern,o=a.flags,u=null;try{u=new RegExp(i,o)}catch{}var d=this.estreeParseLiteral(u);return d.regex={pattern:i,flags:o},d},n.parseBigIntLiteral=function(a){var i;try{i=BigInt(a)}catch{i=null}var o=this.estreeParseLiteral(i);return o.bigint=String(o.value||a),o},n.parseDecimalLiteral=function(a){var i=null,o=this.estreeParseLiteral(i);return o.decimal=String(o.value||a),o},n.estreeParseLiteral=function(a){return this.parseLiteral(a,"Literal")},n.parseStringLiteral=function(a){return this.estreeParseLiteral(a)},n.parseNumericLiteral=function(a){return this.estreeParseLiteral(a)},n.parseNullLiteral=function(){return this.estreeParseLiteral(null)},n.parseBooleanLiteral=function(a){return this.estreeParseLiteral(a)},n.directiveToStmt=function(a){var i=a.value;delete a.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;var o=a;return o.type="ExpressionStatement",o.expression=i,o.directive=i.extra.rawValue,delete i.extra,o},n.initFunction=function(a,i){r.prototype.initFunction.call(this,a,i),a.expression=!1},n.checkDeclaration=function(a){a!=null&&this.isObjectProperty(a)?this.checkDeclaration(a.value):r.prototype.checkDeclaration.call(this,a)},n.getObjectOrClassMethodParams=function(a){return a.value.params},n.isValidDirective=function(a){var i;return a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&!((i=a.expression.extra)!=null&&i.parenthesized)},n.parseBlockBody=function(a,i,o,u,d){var l=this;r.prototype.parseBlockBody.call(this,a,i,o,u,d);var c=a.directives.map(function(x){return l.directiveToStmt(x)});a.body=c.concat(a.body),delete a.directives},n.pushClassMethod=function(a,i,o,u,d,l){this.parseMethod(i,o,u,d,l,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),a.body.push(i)},n.parsePrivateName=function(){var a=r.prototype.parsePrivateName.call(this);return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(a):a},n.convertPrivateNameToPrivateIdentifier=function(a){var i=r.prototype.getPrivateNameSV.call(this,a);return a=a,delete a.id,a.name=i,a.type="PrivateIdentifier",a},n.isPrivateName=function(a){return this.getPluginOption("estree","classFeatures")?a.type==="PrivateIdentifier":r.prototype.isPrivateName.call(this,a)},n.getPrivateNameSV=function(a){return this.getPluginOption("estree","classFeatures")?a.name:r.prototype.getPrivateNameSV.call(this,a)},n.parseLiteral=function(a,i){var o=r.prototype.parseLiteral.call(this,a,i);return o.raw=o.extra.raw,delete o.extra,o},n.parseFunctionBody=function(a,i,o){o===void 0&&(o=!1),r.prototype.parseFunctionBody.call(this,a,i,o),a.expression=a.body.type!=="BlockStatement"},n.parseMethod=function(a,i,o,u,d,l,c){c===void 0&&(c=!1);var x=this.startNode();return x.kind=a.kind,x=r.prototype.parseMethod.call(this,x,i,o,u,d,l,c),x.type="FunctionExpression",delete x.kind,a.value=x,l==="ClassPrivateMethod"&&(a.computed=!1),this.finishNode(a,"MethodDefinition")},n.parseClassProperty=function(){for(var a,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];var d=(a=r.prototype.parseClassProperty).call.apply(a,[this].concat(o));return this.getPluginOption("estree","classFeatures")&&(d.type="PropertyDefinition"),d},n.parseClassPrivateProperty=function(){for(var a,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];var d=(a=r.prototype.parseClassPrivateProperty).call.apply(a,[this].concat(o));return this.getPluginOption("estree","classFeatures")&&(d.type="PropertyDefinition",d.computed=!1),d},n.parseObjectMethod=function(a,i,o,u,d){var l=r.prototype.parseObjectMethod.call(this,a,i,o,u,d);return l&&(l.type="Property",l.kind==="method"&&(l.kind="init"),l.shorthand=!1),l},n.parseObjectProperty=function(a,i,o,u){var d=r.prototype.parseObjectProperty.call(this,a,i,o,u);return d&&(d.kind="init",d.type="Property"),d},n.isValidLVal=function(a,i,o){return a==="Property"?"value":r.prototype.isValidLVal.call(this,a,i,o)},n.isAssignable=function(a,i){return a!=null&&this.isObjectProperty(a)?this.isAssignable(a.value,i):r.prototype.isAssignable.call(this,a,i)},n.toAssignable=function(a,i){if(i===void 0&&(i=!1),a!=null&&this.isObjectProperty(a)){var o=a.key,u=a.value;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,i)}else r.prototype.toAssignable.call(this,a,i)},n.toAssignableObjectExpressionProp=function(a,i,o){a.kind==="get"||a.kind==="set"?this.raise(oe.PatternHasAccessor,a.key):a.method?this.raise(oe.PatternHasMethod,a.key):r.prototype.toAssignableObjectExpressionProp.call(this,a,i,o)},n.finishCallExpression=function(a,i){var o=r.prototype.finishCallExpression.call(this,a,i);if(o.callee.type==="Import"){if(o.type="ImportExpression",o.source=o.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var u,d;o.options=(u=o.arguments[1])!=null?u:null,o.attributes=(d=o.arguments[1])!=null?d:null}delete o.arguments,delete o.callee}return o},n.toReferencedArguments=function(a){a.type!=="ImportExpression"&&r.prototype.toReferencedArguments.call(this,a)},n.parseExport=function(a,i){var o=this.state.lastTokStartLoc,u=r.prototype.parseExport.call(this,a,i);switch(u.type){case"ExportAllDeclaration":u.exported=null;break;case"ExportNamedDeclaration":u.specifiers.length===1&&u.specifiers[0].type==="ExportNamespaceSpecifier"&&(u.type="ExportAllDeclaration",u.exported=u.specifiers[0].exported,delete u.specifiers);case"ExportDefaultDeclaration":{var d,l=u.declaration;l?.type==="ClassDeclaration"&&((d=l.decorators)==null?void 0:d.length)>0&&l.start===u.start&&this.resetStartLocation(u,o)}break}return u},n.parseSubscript=function(a,i,o,u){var d=r.prototype.parseSubscript.call(this,a,i,o,u);if(u.optionalChainMember){if((d.type==="OptionalMemberExpression"||d.type==="OptionalCallExpression")&&(d.type=d.type.substring(8)),u.stop){var l=this.startNodeAtNode(d);return l.expression=d,this.finishNode(l,"ChainExpression")}}else(d.type==="MemberExpression"||d.type==="CallExpression")&&(d.optional=!1);return d},n.isOptionalMemberExpression=function(a){return a.type==="ChainExpression"?a.expression.type==="MemberExpression":r.prototype.isOptionalMemberExpression.call(this,a)},n.hasPropertyAsPrivateName=function(a){return a.type==="ChainExpression"&&(a=a.expression),r.prototype.hasPropertyAsPrivateName.call(this,a)},n.isObjectProperty=function(a){return a.type==="Property"&&a.kind==="init"&&!a.method},n.isObjectMethod=function(a){return a.method||a.kind==="get"||a.kind==="set"},n.finishNodeAt=function(a,i,o){return su(r.prototype.finishNodeAt.call(this,a,i,o))},n.resetStartLocation=function(a,i){r.prototype.resetStartLocation.call(this,a,i),su(a)},n.resetEndLocation=function(a,i){i===void 0&&(i=this.state.lastTokEndLoc),r.prototype.resetEndLocation.call(this,a,i),su(a)},Qe(t)}(e)},iu=Qe(function(r,t){this.token=void 0,this.preserveSpace=void 0,this.token=r,this.preserveSpace=!!t}),Gr={brace:new iu("{"),j_oTag:new iu("<tag"),j_cTag:new iu("</tag"),j_expr:new iu("<tag>...</tag>",!0)};Gr.template=new iu("`",!0);var wr=!0,Ye=!0,g1=!0,ou=!0,zn=!0,Lpe=!0,y9=Qe(function(r,t){t===void 0&&(t={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=r,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop!=null?t.binop:null,this.updateContext=null}),F1=new Map;function kr(e,r){r===void 0&&(r={}),r.keyword=e;var t=lr(e,r);return F1.set(e,t),t}function Tt(e,r){return lr(e,{beforeExpr:wr,binop:r})}var uu=-1,dn=[],m1=[],y1=[],h1=[],E1=[],C1=[];function lr(e,r){var t,n,s,a;return r===void 0&&(r={}),++uu,m1.push(e),y1.push((t=r.binop)!=null?t:-1),h1.push((n=r.beforeExpr)!=null?n:!1),E1.push((s=r.startsExpr)!=null?s:!1),C1.push((a=r.prefix)!=null?a:!1),dn.push(new y9(e,r)),uu}function Sr(e,r){var t,n,s,a;return r===void 0&&(r={}),++uu,F1.set(e,uu),m1.push(e),y1.push((t=r.binop)!=null?t:-1),h1.push((n=r.beforeExpr)!=null?n:!1),E1.push((s=r.startsExpr)!=null?s:!1),C1.push((a=r.prefix)!=null?a:!1),dn.push(new y9("name",r)),uu}var qpe={bracketL:lr("[",{beforeExpr:wr,startsExpr:Ye}),bracketHashL:lr("#[",{beforeExpr:wr,startsExpr:Ye}),bracketBarL:lr("[|",{beforeExpr:wr,startsExpr:Ye}),bracketR:lr("]"),bracketBarR:lr("|]"),braceL:lr("{",{beforeExpr:wr,startsExpr:Ye}),braceBarL:lr("{|",{beforeExpr:wr,startsExpr:Ye}),braceHashL:lr("#{",{beforeExpr:wr,startsExpr:Ye}),braceR:lr("}"),braceBarR:lr("|}"),parenL:lr("(",{beforeExpr:wr,startsExpr:Ye}),parenR:lr(")"),comma:lr(",",{beforeExpr:wr}),semi:lr(";",{beforeExpr:wr}),colon:lr(":",{beforeExpr:wr}),doubleColon:lr("::",{beforeExpr:wr}),dot:lr("."),question:lr("?",{beforeExpr:wr}),questionDot:lr("?."),arrow:lr("=>",{beforeExpr:wr}),template:lr("template"),ellipsis:lr("...",{beforeExpr:wr}),backQuote:lr("`",{startsExpr:Ye}),dollarBraceL:lr("${",{beforeExpr:wr,startsExpr:Ye}),templateTail:lr("...`",{startsExpr:Ye}),templateNonTail:lr("...${",{beforeExpr:wr,startsExpr:Ye}),at:lr("@"),hash:lr("#",{startsExpr:Ye}),interpreterDirective:lr("#!..."),eq:lr("=",{beforeExpr:wr,isAssign:ou}),assign:lr("_=",{beforeExpr:wr,isAssign:ou}),slashAssign:lr("_=",{beforeExpr:wr,isAssign:ou}),xorAssign:lr("_=",{beforeExpr:wr,isAssign:ou}),moduloAssign:lr("_=",{beforeExpr:wr,isAssign:ou}),incDec:lr("++/--",{prefix:zn,postfix:Lpe,startsExpr:Ye}),bang:lr("!",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),tilde:lr("~",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),doubleCaret:lr("^^",{startsExpr:Ye}),doubleAt:lr("@@",{startsExpr:Ye}),pipeline:Tt("|>",0),nullishCoalescing:Tt("??",1),logicalOR:Tt("||",1),logicalAND:Tt("&&",2),bitwiseOR:Tt("|",3),bitwiseXOR:Tt("^",4),bitwiseAND:Tt("&",5),equality:Tt("==/!=/===/!==",6),lt:Tt("</>/<=/>=",7),gt:Tt("</>/<=/>=",7),relational:Tt("</>/<=/>=",7),bitShift:Tt("<</>>/>>>",8),bitShiftL:Tt("<</>>/>>>",8),bitShiftR:Tt("<</>>/>>>",8),plusMin:lr("+/-",{beforeExpr:wr,binop:9,prefix:zn,startsExpr:Ye}),modulo:lr("%",{binop:10,startsExpr:Ye}),star:lr("*",{binop:10}),slash:Tt("/",10),exponent:lr("**",{beforeExpr:wr,binop:11,rightAssociative:!0}),_in:kr("in",{beforeExpr:wr,binop:7}),_instanceof:kr("instanceof",{beforeExpr:wr,binop:7}),_break:kr("break"),_case:kr("case",{beforeExpr:wr}),_catch:kr("catch"),_continue:kr("continue"),_debugger:kr("debugger"),_default:kr("default",{beforeExpr:wr}),_else:kr("else",{beforeExpr:wr}),_finally:kr("finally"),_function:kr("function",{startsExpr:Ye}),_if:kr("if"),_return:kr("return",{beforeExpr:wr}),_switch:kr("switch"),_throw:kr("throw",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),_try:kr("try"),_var:kr("var"),_const:kr("const"),_with:kr("with"),_new:kr("new",{beforeExpr:wr,startsExpr:Ye}),_this:kr("this",{startsExpr:Ye}),_super:kr("super",{startsExpr:Ye}),_class:kr("class",{startsExpr:Ye}),_extends:kr("extends",{beforeExpr:wr}),_export:kr("export"),_import:kr("import",{startsExpr:Ye}),_null:kr("null",{startsExpr:Ye}),_true:kr("true",{startsExpr:Ye}),_false:kr("false",{startsExpr:Ye}),_typeof:kr("typeof",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),_void:kr("void",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),_delete:kr("delete",{beforeExpr:wr,prefix:zn,startsExpr:Ye}),_do:kr("do",{isLoop:g1,beforeExpr:wr}),_for:kr("for",{isLoop:g1}),_while:kr("while",{isLoop:g1}),_as:Sr("as",{startsExpr:Ye}),_assert:Sr("assert",{startsExpr:Ye}),_async:Sr("async",{startsExpr:Ye}),_await:Sr("await",{startsExpr:Ye}),_defer:Sr("defer",{startsExpr:Ye}),_from:Sr("from",{startsExpr:Ye}),_get:Sr("get",{startsExpr:Ye}),_let:Sr("let",{startsExpr:Ye}),_meta:Sr("meta",{startsExpr:Ye}),_of:Sr("of",{startsExpr:Ye}),_sent:Sr("sent",{startsExpr:Ye}),_set:Sr("set",{startsExpr:Ye}),_source:Sr("source",{startsExpr:Ye}),_static:Sr("static",{startsExpr:Ye}),_using:Sr("using",{startsExpr:Ye}),_yield:Sr("yield",{startsExpr:Ye}),_asserts:Sr("asserts",{startsExpr:Ye}),_checks:Sr("checks",{startsExpr:Ye}),_exports:Sr("exports",{startsExpr:Ye}),_global:Sr("global",{startsExpr:Ye}),_implements:Sr("implements",{startsExpr:Ye}),_intrinsic:Sr("intrinsic",{startsExpr:Ye}),_infer:Sr("infer",{startsExpr:Ye}),_is:Sr("is",{startsExpr:Ye}),_mixins:Sr("mixins",{startsExpr:Ye}),_proto:Sr("proto",{startsExpr:Ye}),_require:Sr("require",{startsExpr:Ye}),_satisfies:Sr("satisfies",{startsExpr:Ye}),_keyof:Sr("keyof",{startsExpr:Ye}),_readonly:Sr("readonly",{startsExpr:Ye}),_unique:Sr("unique",{startsExpr:Ye}),_abstract:Sr("abstract",{startsExpr:Ye}),_declare:Sr("declare",{startsExpr:Ye}),_enum:Sr("enum",{startsExpr:Ye}),_module:Sr("module",{startsExpr:Ye}),_namespace:Sr("namespace",{startsExpr:Ye}),_interface:Sr("interface",{startsExpr:Ye}),_type:Sr("type",{startsExpr:Ye}),_opaque:Sr("opaque",{startsExpr:Ye}),name:lr("name",{startsExpr:Ye}),string:lr("string",{startsExpr:Ye}),num:lr("num",{startsExpr:Ye}),bigint:lr("bigint",{startsExpr:Ye}),decimal:lr("decimal",{startsExpr:Ye}),regexp:lr("regexp",{startsExpr:Ye}),privateName:lr("#name",{startsExpr:Ye}),eof:lr("eof"),jsxName:lr("jsxName"),jsxText:lr("jsxText",{beforeExpr:!0}),jsxTagStart:lr("jsxTagStart",{startsExpr:!0}),jsxTagEnd:lr("jsxTagEnd"),placeholder:lr("%%",{startsExpr:!0})};function Nr(e){return e>=93&&e<=132}function $pe(e){return e<=92}function ba(e){return e>=58&&e<=132}function h9(e){return e>=58&&e<=136}function Upe(e){return h1[e]}function v1(e){return E1[e]}function Gpe(e){return e>=29&&e<=33}function E9(e){return e>=129&&e<=131}function Wpe(e){return e>=90&&e<=92}function A1(e){return e>=58&&e<=92}function Vpe(e){return e>=39&&e<=59}function Hpe(e){return e===34}function Kpe(e){return C1[e]}function zpe(e){return e>=121&&e<=123}function Ype(e){return e>=124&&e<=130}function Yn(e){return m1[e]}function rl(e){return y1[e]}function Xpe(e){return e===57}function tl(e){return e>=24&&e<=25}function ln(e){return dn[e]}dn[8].updateContext=function(e){e.pop()},dn[5].updateContext=dn[7].updateContext=dn[23].updateContext=function(e){e.push(Gr.brace)},dn[22].updateContext=function(e){e[e.length-1]===Gr.template?e.pop():e.push(Gr.template)},dn[142].updateContext=function(e){e.push(Gr.j_expr,Gr.j_oTag)};function Jpe(e,r,t){return e===64&&r===64&&Ma(t)}var Qpe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Zpe(e){return Qpe.has(e)}var Fr={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},or={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},ca={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},Ga={Var:1,Lexical:2,Function:4},b1=Qe(function(r){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=r}),R1=function(){function e(t,n){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=n}var r=e.prototype;return r.createScope=function(n){return new b1(n)},r.enter=function(n){this.scopeStack.push(this.createScope(n))},r.exit=function(){var n=this.scopeStack.pop();return n.flags},r.treatFunctionsAsVarInScope=function(n){return!!(n.flags&(Fr.FUNCTION|Fr.STATIC_BLOCK)||!this.parser.inModule&&n.flags&Fr.PROGRAM)},r.declareName=function(n,s,a){var i=this.currentScope();if(s&or.SCOPE_LEXICAL||s&or.SCOPE_FUNCTION){this.checkRedeclarationInScope(i,n,s,a);var o=i.names.get(n)||0;s&or.SCOPE_FUNCTION?o=o|Ga.Function:(i.firstLexicalName||(i.firstLexicalName=n),o=o|Ga.Lexical),i.names.set(n,o),s&or.SCOPE_LEXICAL&&this.maybeExportDefined(i,n)}else if(s&or.SCOPE_VAR)for(var u=this.scopeStack.length-1;u>=0&&(i=this.scopeStack[u],this.checkRedeclarationInScope(i,n,s,a),i.names.set(n,(i.names.get(n)||0)|Ga.Var),this.maybeExportDefined(i,n),!(i.flags&Fr.VAR));--u);this.parser.inModule&&i.flags&Fr.PROGRAM&&this.undefinedExports.delete(n)},r.maybeExportDefined=function(n,s){this.parser.inModule&&n.flags&Fr.PROGRAM&&this.undefinedExports.delete(s)},r.checkRedeclarationInScope=function(n,s,a,i){this.isRedeclaredInScope(n,s,a)&&this.parser.raise(oe.VarRedeclaration,i,{identifierName:s})},r.isRedeclaredInScope=function(n,s,a){if(!(a&or.KIND_VALUE))return!1;if(a&or.SCOPE_LEXICAL)return n.names.has(s);var i=n.names.get(s);return a&or.SCOPE_FUNCTION?(i&Ga.Lexical)>0||!this.treatFunctionsAsVarInScope(n)&&(i&Ga.Var)>0:(i&Ga.Lexical)>0&&!(n.flags&Fr.SIMPLE_CATCH&&n.firstLexicalName===s)||!this.treatFunctionsAsVarInScope(n)&&(i&Ga.Function)>0},r.checkLocalExport=function(n){var s=n.name,a=this.scopeStack[0];a.names.has(s)||this.undefinedExports.set(s,n.loc.start)},r.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},r.currentVarScopeFlags=function(){for(var n=this.scopeStack.length-1;;n--){var s=this.scopeStack[n].flags;if(s&Fr.VAR)return s}},r.currentThisScopeFlags=function(){for(var n=this.scopeStack.length-1;;n--){var s=this.scopeStack[n].flags;if(s&(Fr.VAR|Fr.CLASS)&&!(s&Fr.ARROW))return s}},Qe(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&Fr.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&Fr.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&Fr.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&Fr.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&Fr.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var n=this.currentThisScopeFlags();return(n&Fr.CLASS)>0&&(n&Fr.FUNCTION)===0}},{key:"inStaticBlock",get:function(){for(var n=this.scopeStack.length-1;;n--){var s=this.scopeStack[n].flags;if(s&Fr.STATIC_BLOCK)return!0;if(s&(Fr.VAR|Fr.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&Fr.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}]),e}(),e1e=function(e){nt(r,e);function r(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return t=e.call.apply(e,[this].concat(s))||this,t.declareFunctions=new Set,t}return Qe(r)}(b1),r1e=function(e){nt(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;return t.createScope=function(s){return new e1e(s)},t.declareName=function(s,a,i){var o=this.currentScope();if(a&or.FLAG_FLOW_DECLARE_FN){this.checkRedeclarationInScope(o,s,a,i),this.maybeExportDefined(o,s),o.declareFunctions.add(s);return}e.prototype.declareName.call(this,s,a,i)},t.isRedeclaredInScope=function(s,a,i){if(e.prototype.isRedeclaredInScope.call(this,s,a,i))return!0;if(i&or.FLAG_FLOW_DECLARE_FN&&!s.declareFunctions.has(a)){var o=s.names.get(a);return(o&Ga.Function)>0||(o&Ga.Lexical)>0}return!1},t.checkLocalExport=function(s){this.scopeStack[0].declareFunctions.has(s.name)||e.prototype.checkLocalExport.call(this,s)},Qe(r)}(R1),t1e=function(){function e(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}var r=e.prototype;return r.hasPlugin=function(n){if(typeof n=="string")return this.plugins.has(n);var s=n[0],a=n[1];if(!this.hasPlugin(s))return!1;for(var i=this.plugins.get(s),o=0,u=Object.keys(a);o<u.length;o++){var d=u[o];if(i?.[d]!==a[d])return!1}return!0},r.getPluginOption=function(n,s){var a;return(a=this.plugins.get(n))==null?void 0:a[s]},Qe(e)}();function C9(e,r){if(e.trailingComments===void 0)e.trailingComments=r;else{var t;(t=e.trailingComments).unshift.apply(t,r)}}function a1e(e,r){if(e.leadingComments===void 0)e.leadingComments=r;else{var t;(t=e.leadingComments).unshift.apply(t,r)}}function du(e,r){if(e.innerComments===void 0)e.innerComments=r;else{var t;(t=e.innerComments).unshift.apply(t,r)}}function lu(e,r,t){for(var n=null,s=r.length;n===null&&s>0;)n=r[--s];n===null||n.start>t.start?du(e,t.comments):C9(n,t.comments)}var n1e=function(e){nt(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;return t.addComment=function(s){this.filename&&(s.loc.filename=this.filename);var a=this.state.commentsLen;this.comments.length!=a&&(this.comments.length=a),this.comments.push(s),this.state.commentsLen++},t.processComment=function(s){var a=this.state.commentStack,i=a.length;if(i!==0){var o=i-1,u=a[o];u.start===s.end&&(u.leadingNode=s,o--);for(var d=s.start;o>=0;o--){var l=a[o],c=l.end;if(c>d)l.containingNode=s,this.finalizeComment(l),a.splice(o,1);else{c===d&&(l.trailingNode=s);break}}}},t.finalizeComment=function(s){var a=s.comments;if(s.leadingNode!==null||s.trailingNode!==null)s.leadingNode!==null&&C9(s.leadingNode,a),s.trailingNode!==null&&a1e(s.trailingNode,a);else{var i=s.containingNode,o=s.start;if(this.input.charCodeAt(o-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":lu(i,i.properties,s);break;case"CallExpression":case"OptionalCallExpression":lu(i,i.arguments,s);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":lu(i,i.params,s);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":lu(i,i.elements,s);break;case"ExportNamedDeclaration":case"ImportDeclaration":lu(i,i.specifiers,s);break;default:du(i,a)}else du(i,a)}},t.finalizeRemainingComments=function(){for(var s=this.state.commentStack,a=s.length-1;a>=0;a--)this.finalizeComment(s[a]);this.state.commentStack=[]},t.resetPreviousNodeTrailingComments=function(s){var a=this.state.commentStack,i=a.length;if(i!==0){var o=a[i-1];o.leadingNode===s&&(o.leadingNode=null)}},t.resetPreviousIdentifierLeadingComments=function(s){var a=this.state.commentStack,i=a.length;i!==0&&(a[i-1].trailingNode===s?a[i-1].trailingNode=null:i>=2&&a[i-2].trailingNode===s&&(a[i-2].trailingNode=null))},t.takeSurroundingComments=function(s,a,i){var o=this.state.commentStack,u=o.length;if(u!==0)for(var d=u-1;d>=0;d--){var l=o[d],c=l.end,x=l.start;if(x===i)l.leadingNode=s;else if(c===a)l.trailingNode=s;else if(c<a)break}},Qe(r)}(t1e),v9=/\r\n?|[\n\u2028\u2029]/,al=new RegExp(v9.source,"g");function cu(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var B1=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,nl=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,A9=new RegExp("(?=("+nl.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function s1e(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var xu={Loop:1,Switch:2},i1e=function(){function e(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[Gr.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}var r=e.prototype;return r.init=function(n){var s=n.strictMode,a=n.sourceType,i=n.startLine,o=n.startColumn;this.strict=s===!1?!1:s===!0?!0:a==="module",this.curLine=i,this.lineStart=-o,this.startLoc=this.endLoc=new Kn(i,o,0)},r.curPosition=function(){return new Kn(this.curLine,this.pos-this.lineStart,this.pos)},r.clone=function(){var n=new e;return n.flags=this.flags,n.curLine=this.curLine,n.lineStart=this.lineStart,n.startLoc=this.startLoc,n.endLoc=this.endLoc,n.errors=this.errors.slice(),n.potentialArrowAt=this.potentialArrowAt,n.noArrowAt=this.noArrowAt.slice(),n.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),n.topicContext=this.topicContext,n.labels=this.labels.slice(),n.commentsLen=this.commentsLen,n.commentStack=this.commentStack.slice(),n.pos=this.pos,n.type=this.type,n.value=this.value,n.start=this.start,n.end=this.end,n.lastTokEndLoc=this.lastTokEndLoc,n.lastTokStartLoc=this.lastTokStartLoc,n.context=this.context.slice(),n.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,n.strictErrors=this.strictErrors,n.tokensLength=this.tokensLength,n},Qe(e,[{key:"strict",get:function(){return(this.flags&1)>0},set:function(n){n?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(this.flags&2)>0},set:function(n){n?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(this.flags&4)>0},set:function(n){n?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(this.flags&8)>0},set:function(n){n?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(this.flags&16)>0},set:function(n){n?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(this.flags&32)>0},set:function(n){n?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(this.flags&64)>0},set:function(n){n?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(this.flags&128)>0},set:function(n){n?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(this.flags&256)>0},set:function(n){n?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(this.flags&512)>0},set:function(n){n?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(this.flags&1024)>0},set:function(n){n?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(this.flags&2048)>0},set:function(n){n?this.flags|=2048:this.flags&=-2049}}]),e}();function Du(e,r,t){return new Kn(t,e-r,e)}var o1e=new Set([103,109,115,105,121,117,100,118]),Xn=Qe(function(r){this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,this.loc=new Zd(r.startLoc,r.endLoc)}),u1e=function(e){nt(r,e);function r(n,s){var a;return a=e.call(this)||this,a.isLookahead=void 0,a.tokens=[],a.errorHandlers_readInt={invalidDigit:function(o,u,d,l){return a.options.errorRecovery?(a.raise(oe.InvalidDigit,Du(o,u,d),{radix:l}),!0):!1},numericSeparatorInEscapeSequence:a.errorBuilder(oe.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:a.errorBuilder(oe.UnexpectedNumericSeparator)},a.errorHandlers_readCodePoint=Object.assign({},a.errorHandlers_readInt,{invalidEscapeSequence:a.errorBuilder(oe.InvalidEscapeSequence),invalidCodePoint:a.errorBuilder(oe.InvalidCodePoint)}),a.errorHandlers_readStringContents_string=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:function(o,u,d){a.recordStrictModeErrors(oe.StrictNumericEscape,Du(o,u,d))},unterminated:function(o,u,d){throw a.raise(oe.UnterminatedString,Du(o-1,u,d))}}),a.errorHandlers_readStringContents_template=Object.assign({},a.errorHandlers_readCodePoint,{strictNumericEscape:a.errorBuilder(oe.StrictNumericEscape),unterminated:function(o,u,d){throw a.raise(oe.UnterminatedTemplate,Du(o,u,d))}}),a.state=new i1e,a.state.init(n),a.input=s,a.length=s.length,a.comments=[],a.isLookahead=!1,a}var t=r.prototype;return t.pushToken=function(s){this.tokens.length=this.state.tokensLength,this.tokens.push(s),++this.state.tokensLength},t.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Xn(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},t.eat=function(s){return this.match(s)?(this.next(),!0):!1},t.match=function(s){return this.state.type===s},t.createLookaheadState=function(s){return{pos:s.pos,value:null,type:s.type,start:s.start,end:s.end,context:[this.curContext()],inType:s.inType,startLoc:s.startLoc,lastTokEndLoc:s.lastTokEndLoc,curLine:s.curLine,lineStart:s.lineStart,curPosition:s.curPosition}},t.lookahead=function(){var s=this.state;this.state=this.createLookaheadState(s),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var a=this.state;return this.state=s,a},t.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},t.nextTokenStartSince=function(s){return B1.lastIndex=s,B1.test(this.input)?B1.lastIndex:s},t.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},t.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},t.nextTokenInLineStartSince=function(s){return nl.lastIndex=s,nl.test(this.input)?nl.lastIndex:s},t.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},t.codePointAtPos=function(s){var a=this.input.charCodeAt(s);if((a&64512)===55296&&++s<this.input.length){var i=this.input.charCodeAt(s);(i&64512)===56320&&(a=65536+((a&1023)<<10)+(i&1023))}return a},t.setStrict=function(s){var a=this;this.state.strict=s,s&&(this.state.strictErrors.forEach(function(i){var o=i[0],u=i[1];return a.raise(o,u)}),this.state.strictErrors.clear())},t.curContext=function(){return this.state.context[this.state.context.length-1]},t.nextToken=function(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))},t.skipBlockComment=function(s){var a;this.isLookahead||(a=this.state.curPosition());var i=this.state.pos,o=this.input.indexOf(s,i+2);if(o===-1)throw this.raise(oe.UnterminatedComment,this.state.curPosition());for(this.state.pos=o+s.length,al.lastIndex=i+2;al.test(this.input)&&al.lastIndex<=o;)++this.state.curLine,this.state.lineStart=al.lastIndex;if(!this.isLookahead){var u={type:"CommentBlock",value:this.input.slice(i+2,o),start:i,end:o+s.length,loc:new Zd(a,this.state.curPosition())};return this.options.tokens&&this.pushToken(u),u}},t.skipLineComment=function(s){var a=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());var o=this.input.charCodeAt(this.state.pos+=s);if(this.state.pos<this.length)for(;!cu(o)&&++this.state.pos<this.length;)o=this.input.charCodeAt(this.state.pos);if(!this.isLookahead){var u=this.state.pos,d=this.input.slice(a+s,u),l={type:"CommentLine",value:d,start:a,end:u,loc:new Zd(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(l),l}},t.skipSpace=function(){var s=this.state.pos,a=[];e:for(;this.state.pos<this.length;){var i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{var o=this.skipBlockComment("*/");o!==void 0&&(this.addComment(o),this.options.attachComment&&a.push(o));break}case 47:{var u=this.skipLineComment(2);u!==void 0&&(this.addComment(u),this.options.attachComment&&a.push(u));break}default:break e}break;default:if(s1e(i))++this.state.pos;else if(i===45&&!this.inModule&&this.options.annexB){var d=this.state.pos;if(this.input.charCodeAt(d+1)===45&&this.input.charCodeAt(d+2)===62&&(s===0||this.state.lineStart>s)){var l=this.skipLineComment(3);l!==void 0&&(this.addComment(l),this.options.attachComment&&a.push(l))}else break e}else if(i===60&&!this.inModule&&this.options.annexB){var c=this.state.pos;if(this.input.charCodeAt(c+1)===33&&this.input.charCodeAt(c+2)===45&&this.input.charCodeAt(c+3)===45){var x=this.skipLineComment(4);x!==void 0&&(this.addComment(x),this.options.attachComment&&a.push(x))}else break e}else break e}}if(a.length>0){var f=this.state.pos,D={start:s,end:f,comments:a,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(D)}},t.finishToken=function(s,a){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var i=this.state.type;this.state.type=s,this.state.value=a,this.isLookahead||this.updateContext(i)},t.replaceToken=function(s){this.state.type=s,this.updateContext()},t.readToken_numberSign=function(){if(!(this.state.pos===0&&this.readToken_interpreter())){var s=this.state.pos+1,a=this.codePointAtPos(s);if(a>=48&&a<=57)throw this.raise(oe.UnexpectedDigitAfterHash,this.state.curPosition());if(a===123||a===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(a===123?oe.RecordExpressionHashIncorrectStartSyntaxType:oe.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,a===123?this.finishToken(7):this.finishToken(1)}else Ma(a)?(++this.state.pos,this.finishToken(138,this.readWord1(a))):a===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}},t.readToken_dot=function(){var s=this.input.charCodeAt(this.state.pos+1);if(s>=48&&s<=57){this.readNumber(!0);return}s===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},t.readToken_slash=function(){var s=this.input.charCodeAt(this.state.pos+1);s===61?this.finishOp(31,2):this.finishOp(56,1)},t.readToken_interpreter=function(){if(this.state.pos!==0||this.length<2)return!1;var s=this.input.charCodeAt(this.state.pos+1);if(s!==33)return!1;var a=this.state.pos;for(this.state.pos+=1;!cu(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);var i=this.input.slice(a+2,this.state.pos);return this.finishToken(28,i),!0},t.readToken_mult_modulo=function(s){var a=s===42?55:54,i=1,o=this.input.charCodeAt(this.state.pos+1);s===42&&o===42&&(i++,o=this.input.charCodeAt(this.state.pos+2),a=57),o===61&&!this.state.inType&&(i++,a=s===37?33:30),this.finishOp(a,i)},t.readToken_pipe_amp=function(s){var a=this.input.charCodeAt(this.state.pos+1);if(a===s){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(s===124?41:42,2);return}if(s===124){if(a===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&a===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(oe.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&a===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(oe.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(a===61){this.finishOp(30,2);return}this.finishOp(s===124?43:45,1)},t.readToken_caret=function(){var s=this.input.charCodeAt(this.state.pos+1);if(s===61&&!this.state.inType)this.finishOp(32,2);else if(s===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);var a=this.input.codePointAt(this.state.pos);a===94&&this.unexpected()}else this.finishOp(44,1)},t.readToken_atSign=function(){var s=this.input.charCodeAt(this.state.pos+1);s===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)},t.readToken_plus_min=function(s){var a=this.input.charCodeAt(this.state.pos+1);if(a===s){this.finishOp(34,2);return}a===61?this.finishOp(30,2):this.finishOp(53,1)},t.readToken_lt=function(){var s=this.state.pos,a=this.input.charCodeAt(s+1);if(a===60){if(this.input.charCodeAt(s+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(a===61){this.finishOp(49,2);return}this.finishOp(47,1)},t.readToken_gt=function(){var s=this.state.pos,a=this.input.charCodeAt(s+1);if(a===62){var i=this.input.charCodeAt(s+2)===62?3:2;if(this.input.charCodeAt(s+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(a===61){this.finishOp(49,2);return}this.finishOp(48,1)},t.readToken_eq_excl=function(s){var a=this.input.charCodeAt(this.state.pos+1);if(a===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(s===61&&a===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(s===61?29:35,1)},t.readToken_question=function(){var s=this.input.charCodeAt(this.state.pos+1),a=this.input.charCodeAt(this.state.pos+2);s===63?a===61?this.finishOp(30,3):this.finishOp(40,2):s===46&&!(a>=48&&a<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))},t.getTokenFromCode=function(s){switch(s){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(oe.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(oe.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{var a=this.input.charCodeAt(this.state.pos+1);if(a===120||a===88){this.readRadixNumber(16);return}if(a===111||a===79){this.readRadixNumber(8);return}if(a===98||a===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(s);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(s);return;case 124:case 38:this.readToken_pipe_amp(s);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(s);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(s);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ma(s)){this.readWord(s);return}}throw this.raise(oe.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(s)})},t.finishOp=function(s,a){var i=this.input.slice(this.state.pos,this.state.pos+a);this.state.pos+=a,this.finishToken(s,i)},t.readRegexp=function(){for(var s=this.state.startLoc,a=this.state.start+1,i,o,u=this.state.pos;;++u){if(u>=this.length)throw this.raise(oe.UnterminatedRegExp,jt(s,1));var d=this.input.charCodeAt(u);if(cu(d))throw this.raise(oe.UnterminatedRegExp,jt(s,1));if(i)i=!1;else{if(d===91)o=!0;else if(d===93&&o)o=!1;else if(d===47&&!o)break;i=d===92}}var l=this.input.slice(a,u);++u;for(var c="",x=function(){return jt(s,u+2-a)};u<this.length;){var f=this.codePointAtPos(u),D=String.fromCharCode(f);if(o1e.has(f))f===118?c.includes("u")&&this.raise(oe.IncompatibleRegExpUVFlags,x()):f===117&&c.includes("v")&&this.raise(oe.IncompatibleRegExpUVFlags,x()),c.includes(D)&&this.raise(oe.DuplicateRegExpFlags,x());else if(Nn(f)||f===92)this.raise(oe.MalformedRegExpFlags,x());else break;++u,c+=D}this.state.pos=u,this.finishToken(137,{pattern:l,flags:c})},t.readInt=function(s,a,i,o){i===void 0&&(i=!1),o===void 0&&(o=!0);var u=vR(this.input,this.state.pos,this.state.lineStart,this.state.curLine,s,a,i,o,this.errorHandlers_readInt,!1),d=u.n,l=u.pos;return this.state.pos=l,d},t.readRadixNumber=function(s){var a=this.state.curPosition(),i=!1;this.state.pos+=2;var o=this.readInt(s);o==null&&this.raise(oe.InvalidDigit,jt(a,2),{radix:s});var u=this.input.charCodeAt(this.state.pos);if(u===110)++this.state.pos,i=!0;else if(u===109)throw this.raise(oe.InvalidDecimal,a);if(Ma(this.codePointAtPos(this.state.pos)))throw this.raise(oe.NumberIdentifier,this.state.curPosition());if(i){var d=this.input.slice(a.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,d);return}this.finishToken(134,o)},t.readNumber=function(s){var a=this.state.pos,i=this.state.curPosition(),o=!1,u=!1,d=!1,l=!1,c=!1;!s&&this.readInt(10)===null&&this.raise(oe.InvalidNumber,this.state.curPosition());var x=this.state.pos-a>=2&&this.input.charCodeAt(a)===48;if(x){var f=this.input.slice(a,this.state.pos);if(this.recordStrictModeErrors(oe.StrictOctalLiteral,i),!this.state.strict){var D=f.indexOf("_");D>0&&this.raise(oe.ZeroDigitNumericSeparator,jt(i,D))}c=x&&!/[89]/.test(f)}var g=this.input.charCodeAt(this.state.pos);if(g===46&&!c&&(++this.state.pos,this.readInt(10),o=!0,g=this.input.charCodeAt(this.state.pos)),(g===69||g===101)&&!c&&(g=this.input.charCodeAt(++this.state.pos),(g===43||g===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(oe.InvalidOrMissingExponent,i),o=!0,l=!0,g=this.input.charCodeAt(this.state.pos)),g===110&&((o||x)&&this.raise(oe.InvalidBigIntLiteral,i),++this.state.pos,u=!0),g===109&&(this.expectPlugin("decimal",this.state.curPosition()),(l||x)&&this.raise(oe.InvalidDecimal,i),++this.state.pos,d=!0),Ma(this.codePointAtPos(this.state.pos)))throw this.raise(oe.NumberIdentifier,this.state.curPosition());var p=this.input.slice(a,this.state.pos).replace(/[_mn]/g,"");if(u){this.finishToken(135,p);return}if(d){this.finishToken(136,p);return}var F=c?parseInt(p,8):parseFloat(p);this.finishToken(134,F)},t.readCodePoint=function(s){var a=AR(this.input,this.state.pos,this.state.lineStart,this.state.curLine,s,this.errorHandlers_readCodePoint),i=a.code,o=a.pos;return this.state.pos=o,i},t.readString=function(s){var a=fD(s===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),i=a.str,o=a.pos,u=a.curLine,d=a.lineStart;this.state.pos=o+1,this.state.lineStart=d,this.state.curLine=u,this.finishToken(133,i)},t.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},t.readTemplateToken=function(){var s=this.input[this.state.pos],a=fD("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),i=a.str,o=a.firstInvalidLoc,u=a.pos,d=a.curLine,l=a.lineStart;this.state.pos=u+1,this.state.lineStart=l,this.state.curLine=d,o&&(this.state.firstInvalidTemplateEscapePos=new Kn(o.curLine,o.pos-o.lineStart,o.pos)),this.input.codePointAt(u)===96?this.finishToken(24,o?null:s+i+"`"):(this.state.pos++,this.finishToken(25,o?null:s+i+"${"))},t.recordStrictModeErrors=function(s,a){var i=a.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(s,a):this.state.strictErrors.set(i,[s,a])},t.readWord1=function(s){this.state.containsEsc=!1;var a="",i=this.state.pos,o=this.state.pos;for(s!==void 0&&(this.state.pos+=s<=65535?1:2);this.state.pos<this.length;){var u=this.codePointAtPos(this.state.pos);if(Nn(u))this.state.pos+=u<=65535?1:2;else if(u===92){this.state.containsEsc=!0,a+=this.input.slice(o,this.state.pos);var d=this.state.curPosition(),l=this.state.pos===i?Ma:Nn;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(oe.MissingUnicodeEscape,this.state.curPosition()),o=this.state.pos-1;continue}++this.state.pos;var c=this.readCodePoint(!0);c!==null&&(l(c)||this.raise(oe.EscapedCharNotAnIdentifier,d),a+=String.fromCodePoint(c)),o=this.state.pos}else break}return a+this.input.slice(o,this.state.pos)},t.readWord=function(s){var a=this.readWord1(s),i=F1.get(a);i!==void 0?this.finishToken(i,Yn(i)):this.finishToken(132,a)},t.checkKeywordEscapes=function(){var s=this.state.type;A1(s)&&this.state.containsEsc&&this.raise(oe.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Yn(s)})},t.raise=function(s,a,i){i===void 0&&(i={});var o=a instanceof Kn?a:a.loc.start,u=s(o,i);if(!this.options.errorRecovery)throw u;return this.isLookahead||this.state.errors.push(u),u},t.raiseOverwrite=function(s,a,i){i===void 0&&(i={});for(var o=a instanceof Kn?a:a.loc.start,u=o.index,d=this.state.errors,l=d.length-1;l>=0;l--){var c=d[l];if(c.loc.index===u)return d[l]=s(o,i);if(c.loc.index<u)break}return this.raise(s,a,i)},t.updateContext=function(s){},t.unexpected=function(s,a){throw this.raise(oe.UnexpectedToken,s??this.state.startLoc,{expected:a?Yn(a):null})},t.expectPlugin=function(s,a){if(this.hasPlugin(s))return!0;throw this.raise(oe.MissingPlugin,a??this.state.startLoc,{missingPlugin:[s]})},t.expectOnePlugin=function(s){var a=this;if(!s.some(function(i){return a.hasPlugin(i)}))throw this.raise(oe.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:s})},t.errorBuilder=function(s){var a=this;return function(i,o,u){a.raise(s,Du(i,o,u))}},Qe(r)}(n1e),d1e=Qe(function(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}),l1e=function(){function e(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}var r=e.prototype;return r.current=function(){return this.stack[this.stack.length-1]},r.enter=function(){this.stack.push(new d1e)},r.exit=function(){for(var n=this.stack.pop(),s=this.current(),a=0,i=Array.from(n.undefinedPrivateNames);a<i.length;a++){var o=i[a],u=o[0],d=o[1];s?s.undefinedPrivateNames.has(u)||s.undefinedPrivateNames.set(u,d):this.parser.raise(oe.InvalidPrivateFieldResolution,d,{identifierName:u})}},r.declarePrivateName=function(n,s,a){var i=this.current(),o=i.privateNames,u=i.loneAccessors,d=i.undefinedPrivateNames,l=o.has(n);if(s&ca.KIND_ACCESSOR){var c=l&&u.get(n);if(c){var x=c&ca.FLAG_STATIC,f=s&ca.FLAG_STATIC,D=c&ca.KIND_ACCESSOR,g=s&ca.KIND_ACCESSOR;l=D===g||x!==f,l||u.delete(n)}else l||u.set(n,s)}l&&this.parser.raise(oe.PrivateNameRedeclaration,a,{identifierName:n}),o.add(n),d.delete(n)},r.usePrivateName=function(n,s){for(var a,i=0,o=this.stack;i<o.length;i++)if(a=o[i],a.privateNames.has(n))return;a?a.undefinedPrivateNames.set(n,s):this.parser.raise(oe.InvalidPrivateFieldResolution,s,{identifierName:n})},Qe(e)}(),sl=function(){function e(t){t===void 0&&(t=0),this.type=t}var r=e.prototype;return r.canBeArrowParameterDeclaration=function(){return this.type===2||this.type===1},r.isCertainlyParameterDeclaration=function(){return this.type===3},Qe(e)}(),b9=function(e){nt(r,e);function r(n){var s;return s=e.call(this,n)||this,s.declarationErrors=new Map,s}var t=r.prototype;return t.recordDeclarationError=function(s,a){var i=a.index;this.declarationErrors.set(i,[s,a])},t.clearDeclarationError=function(s){this.declarationErrors.delete(s)},t.iterateErrors=function(s){this.declarationErrors.forEach(s)},Qe(r)}(sl),c1e=function(){function e(t){this.parser=void 0,this.stack=[new sl],this.parser=t}var r=e.prototype;return r.enter=function(n){this.stack.push(n)},r.exit=function(){this.stack.pop()},r.recordParameterInitializerError=function(n,s){for(var a=s.loc.start,i=this.stack,o=i.length-1,u=i[o];!u.isCertainlyParameterDeclaration();){if(u.canBeArrowParameterDeclaration())u.recordDeclarationError(n,a);else return;u=i[--o]}this.parser.raise(n,a)},r.recordArrowParameterBindingError=function(n,s){var a=this.stack,i=a[a.length-1],o=s.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(n,o);else if(i.canBeArrowParameterDeclaration())i.recordDeclarationError(n,o);else return},r.recordAsyncArrowParametersError=function(n){for(var s=this.stack,a=s.length-1,i=s[a];i.canBeArrowParameterDeclaration();)i.type===2&&i.recordDeclarationError(oe.AwaitBindingIdentifier,n),i=s[--a]},r.validateAsPattern=function(){var n=this,s=this.stack,a=s[s.length-1];a.canBeArrowParameterDeclaration()&&a.iterateErrors(function(i){var o=i[0],u=i[1];n.parser.raise(o,u);for(var d=s.length-2,l=s[d];l.canBeArrowParameterDeclaration();)l.clearDeclarationError(u.index),l=s[--d]})},Qe(e)}();function x1e(){return new sl(3)}function D1e(){return new b9(1)}function f1e(){return new b9(2)}function R9(){return new sl}var ot={PARAM:0,PARAM_YIELD:1,PARAM_AWAIT:2,PARAM_RETURN:4,PARAM_IN:8},p1e=function(){function e(){this.stacks=[]}var r=e.prototype;return r.enter=function(n){this.stacks.push(n)},r.exit=function(){this.stacks.pop()},r.currentFlags=function(){return this.stacks[this.stacks.length-1]},Qe(e,[{key:"hasAwait",get:function(){return(this.currentFlags()&ot.PARAM_AWAIT)>0}},{key:"hasYield",get:function(){return(this.currentFlags()&ot.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&ot.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&ot.PARAM_IN)>0}}]),e}();function il(e,r){return(e?ot.PARAM_AWAIT:0)|(r?ot.PARAM_YIELD:0)}var g1e=function(e){nt(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;return t.addExtra=function(s,a,i,o){if(o===void 0&&(o=!0),!!s){var u=s.extra=s.extra||{};o?u[a]=i:Object.defineProperty(u,a,{enumerable:o,value:i})}},t.isContextual=function(s){return this.state.type===s&&!this.state.containsEsc},t.isUnparsedContextual=function(s,a){var i=s+a.length;if(this.input.slice(s,i)===a){var o=this.input.charCodeAt(i);return!(Nn(o)||(o&64512)===55296)}return!1},t.isLookaheadContextual=function(s){var a=this.nextTokenStart();return this.isUnparsedContextual(a,s)},t.eatContextual=function(s){return this.isContextual(s)?(this.next(),!0):!1},t.expectContextual=function(s,a){if(!this.eatContextual(s)){if(a!=null)throw this.raise(a,this.state.startLoc);this.unexpected(null,s)}},t.canInsertSemicolon=function(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()},t.hasPrecedingLineBreak=function(){return v9.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))},t.hasFollowingLineBreak=function(){return A9.lastIndex=this.state.end,A9.test(this.input)},t.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},t.semicolon=function(s){s===void 0&&(s=!0),!(s?this.isLineTerminator():this.eat(13))&&this.raise(oe.MissingSemicolon,this.state.lastTokEndLoc)},t.expect=function(s,a){this.eat(s)||this.unexpected(a,s)},t.tryParse=function(s,a){a===void 0&&(a=this.state.clone());var i={node:null};try{var o=s(function(l){throw l===void 0&&(l=null),i.node=l,i});if(this.state.errors.length>a.errors.length){var u=this.state;return this.state=a,this.state.tokensLength=u.tokensLength,{node:o,error:u.errors[a.errors.length],thrown:!1,aborted:!1,failState:u}}return{node:o,error:null,thrown:!1,aborted:!1,failState:null}}catch(l){var d=this.state;if(this.state=a,l instanceof SyntaxError)return{node:null,error:l,thrown:!0,aborted:!1,failState:d};if(l===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:d};throw l}},t.checkExpressionErrors=function(s,a){if(!s)return!1;var i=s.shorthandAssignLoc,o=s.doubleProtoLoc,u=s.privateKeyLoc,d=s.optionalParametersLoc,l=!!i||!!o||!!d||!!u;if(!a)return l;i!=null&&this.raise(oe.InvalidCoverInitializedName,i),o!=null&&this.raise(oe.DuplicateProto,o),u!=null&&this.raise(oe.UnexpectedPrivateField,u),d!=null&&this.unexpected(d)},t.isLiteralPropertyName=function(){return h9(this.state.type)},t.isPrivateName=function(s){return s.type==="PrivateName"},t.getPrivateNameSV=function(s){return s.id.name},t.hasPropertyAsPrivateName=function(s){return(s.type==="MemberExpression"||s.type==="OptionalMemberExpression")&&this.isPrivateName(s.property)},t.isObjectProperty=function(s){return s.type==="ObjectProperty"},t.isObjectMethod=function(s){return s.type==="ObjectMethod"},t.initializeScopes=function(s){var a=this;s===void 0&&(s=this.options.sourceType==="module");var i=this.state.labels;this.state.labels=[];var o=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var u=this.inModule;this.inModule=s;var d=this.scope,l=this.getScopeHandler();this.scope=new l(this,s);var c=this.prodParam;this.prodParam=new p1e;var x=this.classScope;this.classScope=new l1e(this);var f=this.expressionScope;return this.expressionScope=new c1e(this),function(){a.state.labels=i,a.exportedIdentifiers=o,a.inModule=u,a.scope=d,a.prodParam=c,a.classScope=x,a.expressionScope=f}},t.enterInitialScopes=function(){var s=ot.PARAM;this.inModule&&(s|=ot.PARAM_AWAIT),this.scope.enter(Fr.PROGRAM),this.prodParam.enter(s)},t.checkDestructuringPrivate=function(s){var a=s.privateKeyLoc;a!==null&&this.expectPlugin("destructuringPrivate",a)},Qe(r)}(u1e),ol=Qe(function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}),ul=Qe(function(r,t,n){this.type="",this.start=t,this.end=0,this.loc=new Zd(n),r!=null&&r.options.ranges&&(this.range=[t,0]),r!=null&&r.filename&&(this.loc.filename=r.filename)}),w1=ul.prototype;w1.__clone=function(){for(var e=new ul(void 0,this.start,this.loc.start),r=Object.keys(this),t=0,n=r.length;t<n;t++){var s=r[t];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};function F1e(e){return cn(e)}function cn(e){var r=e.type,t=e.start,n=e.end,s=e.loc,a=e.range,i=e.extra,o=e.name,u=Object.create(w1);return u.type=r,u.start=t,u.end=n,u.loc=s,u.range=a,u.extra=i,u.name=o,r==="Placeholder"&&(u.expectedNode=e.expectedNode),u}function m1e(e){var r=e.type,t=e.start,n=e.end,s=e.loc,a=e.range,i=e.extra;if(r==="Placeholder")return F1e(e);var o=Object.create(w1);return o.type=r,o.start=t,o.end=n,o.loc=s,o.range=a,e.raw!==void 0?o.raw=e.raw:o.extra=i,o.value=e.value,o}var y1e=function(e){nt(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;return t.startNode=function(){var s=this.state.startLoc;return new ul(this,s.index,s)},t.startNodeAt=function(s){return new ul(this,s.index,s)},t.startNodeAtNode=function(s){return this.startNodeAt(s.loc.start)},t.finishNode=function(s,a){return this.finishNodeAt(s,a,this.state.lastTokEndLoc)},t.finishNodeAt=function(s,a,i){return s.type=a,s.end=i.index,s.loc.end=i,this.options.ranges&&(s.range[1]=i.index),this.options.attachComment&&this.processComment(s),s},t.resetStartLocation=function(s,a){s.start=a.index,s.loc.start=a,this.options.ranges&&(s.range[0]=a.index)},t.resetEndLocation=function(s,a){a===void 0&&(a=this.state.lastTokEndLoc),s.end=a.index,s.loc.end=a,this.options.ranges&&(s.range[1]=a.index)},t.resetStartLocationFromNode=function(s,a){this.resetStartLocation(s,a.loc.start)},Qe(r)}(g1e),B9,h1e=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),cr=un(B9||(B9=le(["flow"])))({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:function(r){var t=r.reservedType;return"Cannot overwrite reserved type "+t+"."},DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:function(r){var t=r.memberName,n=r.enumName;return"Boolean enum members need to be initialized. Use either `"+t+" = true,` or `"+t+" = false,` in enum `"+n+"`."},EnumDuplicateMemberName:function(r){var t=r.memberName,n=r.enumName;return"Enum member names need to be unique, but the name `"+t+"` has already been used before in enum `"+n+"`."},EnumInconsistentMemberValues:function(r){var t=r.enumName;return"Enum `"+t+"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."},EnumInvalidExplicitType:function(r){var t=r.invalidEnumType,n=r.enumName;return"Enum type `"+t+"` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `"+n+"`."},EnumInvalidExplicitTypeUnknownSupplied:function(r){var t=r.enumName;return"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `"+t+"`."},EnumInvalidMemberInitializerPrimaryType:function(r){var t=r.enumName,n=r.memberName,s=r.explicitType;return"Enum `"+t+"` has type `"+s+"`, so the initializer of `"+n+"` needs to be a "+s+" literal."},EnumInvalidMemberInitializerSymbolType:function(r){var t=r.enumName,n=r.memberName;return"Symbol enum members cannot be initialized. Use `"+n+",` in enum `"+t+"`."},EnumInvalidMemberInitializerUnknownType:function(r){var t=r.enumName,n=r.memberName;return"The enum member initializer for `"+n+"` needs to be a literal (either a boolean, number, or string) in enum `"+t+"`."},EnumInvalidMemberName:function(r){var t=r.enumName,n=r.memberName,s=r.suggestion;return"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `"+n+"`, consider using `"+s+"`, in enum `"+t+"`."},EnumNumberMemberNotInitialized:function(r){var t=r.enumName,n=r.memberName;return"Number enum members need to be initialized, e.g. `"+n+" = 1` in enum `"+t+"`."},EnumStringMemberInconsistentlyInitialized:function(r){var t=r.enumName;return"String enum members need to consistently either all use initializers, or use no initializers, in enum `"+t+"`."},GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:function(r){var t=r.reservedType;return"Unexpected reserved type "+t+"."},UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:function(r){var t=r.unsupportedExportKind,n=r.suggestion;return"`declare export "+t+"` is not supported. Use `"+n+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function E1e(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function w9(e){return e.importKind==="type"||e.importKind==="typeof"}var C1e={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function v1e(e,r){for(var t=[],n=[],s=0;s<e.length;s++)(r(e[s],s,e)?t:n).push(e[s]);return[t,n]}var A1e=/\*?\s*@((?:no)?flow)\b/,b1e=function(e){return function(r){nt(t,r);function t(){for(var s,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return s=r.call.apply(r,[this].concat(i))||this,s.flowPragma=void 0,s}var n=t.prototype;return n.getScopeHandler=function(){return r1e},n.shouldParseTypes=function(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"},n.shouldParseEnums=function(){return!!this.getPluginOption("flow","enums")},n.finishToken=function(a,i){a!==133&&a!==13&&a!==28&&this.flowPragma===void 0&&(this.flowPragma=null),r.prototype.finishToken.call(this,a,i)},n.addComment=function(a){if(this.flowPragma===void 0){var i=A1e.exec(a.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}r.prototype.addComment.call(this,a)},n.flowParseTypeInitialiser=function(a){var i=this.state.inType;this.state.inType=!0,this.expect(a||14);var o=this.flowParseType();return this.state.inType=i,o},n.flowParsePredicate=function(){var a=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(cr.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(a.value=r.prototype.parseExpression.call(this),this.expect(11),this.finishNode(a,"DeclaredPredicate")):this.finishNode(a,"InferredPredicate")},n.flowParseTypeAndPredicateInitialiser=function(){var a=this.state.inType;this.state.inType=!0,this.expect(14);var i=null,o=null;return this.match(54)?(this.state.inType=a,o=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=a,this.match(54)&&(o=this.flowParsePredicate())),[i,o]},n.flowParseDeclareClass=function(a){return this.next(),this.flowParseInterfaceish(a,!0),this.finishNode(a,"DeclareClass")},n.flowParseDeclareFunction=function(a){this.next();var i=a.id=this.parseIdentifier(),o=this.startNode(),u=this.startNode();this.match(47)?o.typeParameters=this.flowParseTypeParameterDeclaration():o.typeParameters=null,this.expect(10);var d=this.flowParseFunctionTypeParams();o.params=d.params,o.rest=d.rest,o.this=d._this,this.expect(11);var l=this.flowParseTypeAndPredicateInitialiser();return o.returnType=l[0],a.predicate=l[1],u.typeAnnotation=this.finishNode(o,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(u,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(a.id.name,or.TYPE_FLOW_DECLARE_FN,a.id.loc.start),this.finishNode(a,"DeclareFunction")},n.flowParseDeclare=function(a,i){if(this.match(80))return this.flowParseDeclareClass(a);if(this.match(68))return this.flowParseDeclareFunction(a);if(this.match(74))return this.flowParseDeclareVariable(a);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(a):(i&&this.raise(cr.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(a));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(a);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(a);if(this.isContextual(129))return this.flowParseDeclareInterface(a);if(this.match(82))return this.flowParseDeclareExportDeclaration(a,i);this.unexpected()},n.flowParseDeclareVariable=function(a){return this.next(),a.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(a.id.name,or.TYPE_VAR,a.id.loc.start),this.semicolon(),this.finishNode(a,"DeclareVariable")},n.flowParseDeclareModule=function(a){var i=this;this.scope.enter(Fr.OTHER),this.match(133)?a.id=r.prototype.parseExprAtom.call(this):a.id=this.parseIdentifier();var o=a.body=this.startNode(),u=o.body=[];for(this.expect(5);!this.match(8);){var d=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(cr.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),r.prototype.parseImport.call(this,d)):(this.expectContextual(125,cr.UnsupportedStatementInDeclareModule),d=this.flowParseDeclare(d,!0)),u.push(d)}this.scope.exit(),this.expect(8),this.finishNode(o,"BlockStatement");var l=null,c=!1;return u.forEach(function(x){E1e(x)?(l==="CommonJS"&&i.raise(cr.AmbiguousDeclareModuleKind,x),l="ES"):x.type==="DeclareModuleExports"&&(c&&i.raise(cr.DuplicateDeclareModuleExports,x),l==="ES"&&i.raise(cr.AmbiguousDeclareModuleKind,x),l="CommonJS",c=!0)}),a.kind=l||"CommonJS",this.finishNode(a,"DeclareModule")},n.flowParseDeclareExportDeclaration=function(a,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?a.declaration=this.flowParseDeclare(this.startNode()):(a.declaration=this.flowParseType(),this.semicolon()),a.default=!0,this.finishNode(a,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){var o=this.state.value;throw this.raise(cr.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:o,suggestion:C1e[o]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return a.declaration=this.flowParseDeclare(this.startNode()),a.default=!1,this.finishNode(a,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return a=this.parseExport(a,null),a.type==="ExportNamedDeclaration"&&(a.type="ExportDeclaration",a.default=!1,delete a.exportKind),a.type="Declare"+a.type,a;this.unexpected()},n.flowParseDeclareModuleExports=function(a){return this.next(),this.expectContextual(111),a.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(a,"DeclareModuleExports")},n.flowParseDeclareTypeAlias=function(a){this.next();var i=this.flowParseTypeAlias(a);return i.type="DeclareTypeAlias",i},n.flowParseDeclareOpaqueType=function(a){this.next();var i=this.flowParseOpaqueType(a,!0);return i.type="DeclareOpaqueType",i},n.flowParseDeclareInterface=function(a){return this.next(),this.flowParseInterfaceish(a,!1),this.finishNode(a,"DeclareInterface")},n.flowParseInterfaceish=function(a,i){if(a.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(a.id.name,i?or.TYPE_FUNCTION:or.TYPE_LEXICAL,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.extends=[],this.eat(81))do a.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(a.implements=[],a.mixins=[],this.eatContextual(117))do a.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do a.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}a.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})},n.flowParseInterfaceExtends=function(){var a=this.startNode();return a.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?a.typeParameters=this.flowParseTypeParameterInstantiation():a.typeParameters=null,this.finishNode(a,"InterfaceExtends")},n.flowParseInterface=function(a){return this.flowParseInterfaceish(a,!1),this.finishNode(a,"InterfaceDeclaration")},n.checkNotUnderscore=function(a){a==="_"&&this.raise(cr.UnexpectedReservedUnderscore,this.state.startLoc)},n.checkReservedType=function(a,i,o){h1e.has(a)&&this.raise(o?cr.AssignReservedType:cr.UnexpectedReservedType,i,{reservedType:a})},n.flowParseRestrictedIdentifier=function(a,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(a)},n.flowParseTypeAlias=function(a){return a.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(a.id.name,or.TYPE_LEXICAL,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(a,"TypeAlias")},n.flowParseOpaqueType=function(a,i){return this.expectContextual(130),a.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(a.id.name,or.TYPE_LEXICAL,a.id.loc.start),this.match(47)?a.typeParameters=this.flowParseTypeParameterDeclaration():a.typeParameters=null,a.supertype=null,this.match(14)&&(a.supertype=this.flowParseTypeInitialiser(14)),a.impltype=null,i||(a.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(a,"OpaqueType")},n.flowParseTypeParameter=function(a){a===void 0&&(a=!1);var i=this.state.startLoc,o=this.startNode(),u=this.flowParseVariance(),d=this.flowParseTypeAnnotatableIdentifier();return o.name=d.name,o.variance=u,o.bound=d.typeAnnotation,this.match(29)?(this.eat(29),o.default=this.flowParseType()):a&&this.raise(cr.MissingTypeParamDefault,i),this.finishNode(o,"TypeParameter")},n.flowParseTypeParameterDeclaration=function(){var a=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();var o=!1;do{var u=this.flowParseTypeParameter(o);i.params.push(u),u.default&&(o=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=a,this.finishNode(i,"TypeParameterDeclaration")},n.flowParseTypeParameterInstantiation=function(){var a=this.startNode(),i=this.state.inType;a.params=[],this.state.inType=!0,this.expect(47);var o=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)a.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=o,this.expect(48),this.state.inType=i,this.finishNode(a,"TypeParameterInstantiation")},n.flowParseTypeParameterInstantiationCallOrNew=function(){var a=this.startNode(),i=this.state.inType;for(a.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)a.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(a,"TypeParameterInstantiation")},n.flowParseInterfaceType=function(){var a=this.startNode();if(this.expectContextual(129),a.extends=[],this.eat(81))do a.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return a.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(a,"InterfaceTypeAnnotation")},n.flowParseObjectPropertyKey=function(){return this.match(134)||this.match(133)?r.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},n.flowParseObjectTypeIndexer=function(a,i,o){return a.static=i,this.lookahead().type===14?(a.id=this.flowParseObjectPropertyKey(),a.key=this.flowParseTypeInitialiser()):(a.id=null,a.key=this.flowParseType()),this.expect(3),a.value=this.flowParseTypeInitialiser(),a.variance=o,this.finishNode(a,"ObjectTypeIndexer")},n.flowParseObjectTypeInternalSlot=function(a,i){return a.static=i,a.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(a.method=!0,a.optional=!1,a.value=this.flowParseObjectTypeMethodish(this.startNodeAt(a.loc.start))):(a.method=!1,this.eat(17)&&(a.optional=!0),a.value=this.flowParseTypeInitialiser()),this.finishNode(a,"ObjectTypeInternalSlot")},n.flowParseObjectTypeMethodish=function(a){for(a.params=[],a.rest=null,a.typeParameters=null,a.this=null,this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(a.this=this.flowParseFunctionTypeParam(!0),a.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)a.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(a.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),a.returnType=this.flowParseTypeInitialiser(),this.finishNode(a,"FunctionTypeAnnotation")},n.flowParseObjectTypeCallProperty=function(a,i){var o=this.startNode();return a.static=i,a.value=this.flowParseObjectTypeMethodish(o),this.finishNode(a,"ObjectTypeCallProperty")},n.flowParseObjectType=function(a){var i=a.allowStatic,o=a.allowExact,u=a.allowSpread,d=a.allowProto,l=a.allowInexact,c=this.state.inType;this.state.inType=!0;var x=this.startNode();x.callProperties=[],x.properties=[],x.indexers=[],x.internalSlots=[];var f,D,g=!1;for(o&&this.match(6)?(this.expect(6),f=9,D=!0):(this.expect(5),f=8,D=!1),x.exact=D;!this.match(f);){var p=!1,F=null,m=null,E=this.startNode();if(d&&this.isContextual(118)){var h=this.lookahead();h.type!==14&&h.type!==17&&(this.next(),F=this.state.startLoc,i=!1)}if(i&&this.isContextual(106)){var v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),p=!0)}var A=this.flowParseVariance();if(this.eat(0))F!=null&&this.unexpected(F),this.eat(0)?(A&&this.unexpected(A.loc.start),x.internalSlots.push(this.flowParseObjectTypeInternalSlot(E,p))):x.indexers.push(this.flowParseObjectTypeIndexer(E,p,A));else if(this.match(10)||this.match(47))F!=null&&this.unexpected(F),A&&this.unexpected(A.loc.start),x.callProperties.push(this.flowParseObjectTypeCallProperty(E,p));else{var C="init";if(this.isContextual(99)||this.isContextual(104)){var w=this.lookahead();h9(w.type)&&(C=this.state.value,this.next())}var B=this.flowParseObjectTypeProperty(E,p,F,A,C,u,l??!D);B===null?(g=!0,m=this.state.lastTokStartLoc):x.properties.push(B)}this.flowObjectTypeSemicolon(),m&&!this.match(8)&&!this.match(9)&&this.raise(cr.UnexpectedExplicitInexactInObject,m)}this.expect(f),u&&(x.inexact=g);var j=this.finishNode(x,"ObjectTypeAnnotation");return this.state.inType=c,j},n.flowParseObjectTypeProperty=function(a,i,o,u,d,l,c){if(this.eat(21)){var x=this.match(12)||this.match(13)||this.match(8)||this.match(9);return x?(l?c||this.raise(cr.InexactInsideExact,this.state.lastTokStartLoc):this.raise(cr.InexactInsideNonObject,this.state.lastTokStartLoc),u&&this.raise(cr.InexactVariance,u),null):(l||this.raise(cr.UnexpectedSpreadType,this.state.lastTokStartLoc),o!=null&&this.unexpected(o),u&&this.raise(cr.SpreadVariance,u),a.argument=this.flowParseType(),this.finishNode(a,"ObjectTypeSpreadProperty"))}else{a.key=this.flowParseObjectPropertyKey(),a.static=i,a.proto=o!=null,a.kind=d;var f=!1;return this.match(47)||this.match(10)?(a.method=!0,o!=null&&this.unexpected(o),u&&this.unexpected(u.loc.start),a.value=this.flowParseObjectTypeMethodish(this.startNodeAt(a.loc.start)),(d==="get"||d==="set")&&this.flowCheckGetterSetterParams(a),!l&&a.key.name==="constructor"&&a.value.this&&this.raise(cr.ThisParamBannedInConstructor,a.value.this)):(d!=="init"&&this.unexpected(),a.method=!1,this.eat(17)&&(f=!0),a.value=this.flowParseTypeInitialiser(),a.variance=u),a.optional=f,this.finishNode(a,"ObjectTypeProperty")}},n.flowCheckGetterSetterParams=function(a){var i=a.kind==="get"?0:1,o=a.value.params.length+(a.value.rest?1:0);a.value.this&&this.raise(a.kind==="get"?cr.GetterMayNotHaveThisParam:cr.SetterMayNotHaveThisParam,a.value.this),o!==i&&this.raise(a.kind==="get"?oe.BadGetterArity:oe.BadSetterArity,a),a.kind==="set"&&a.value.rest&&this.raise(oe.BadSetterRestParameter,a)},n.flowObjectTypeSemicolon=function(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()},n.flowParseQualifiedTypeIdentifier=function(a,i){var o;(o=a)!=null||(a=this.state.startLoc);for(var u=i||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var d=this.startNodeAt(a);d.qualification=u,d.id=this.flowParseRestrictedIdentifier(!0),u=this.finishNode(d,"QualifiedTypeIdentifier")}return u},n.flowParseGenericType=function(a,i){var o=this.startNodeAt(a);return o.typeParameters=null,o.id=this.flowParseQualifiedTypeIdentifier(a,i),this.match(47)&&(o.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(o,"GenericTypeAnnotation")},n.flowParseTypeofType=function(){var a=this.startNode();return this.expect(87),a.argument=this.flowParsePrimaryType(),this.finishNode(a,"TypeofTypeAnnotation")},n.flowParseTupleType=function(){var a=this.startNode();for(a.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(a.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(a,"TupleTypeAnnotation")},n.flowParseFunctionTypeParam=function(a){var i=null,o=!1,u=null,d=this.startNode(),l=this.lookahead(),c=this.state.type===78;return l.type===14||l.type===17?(c&&!a&&this.raise(cr.ThisParamMustBeFirst,d),i=this.parseIdentifier(c),this.eat(17)&&(o=!0,c&&this.raise(cr.ThisParamMayNotBeOptional,d)),u=this.flowParseTypeInitialiser()):u=this.flowParseType(),d.name=i,d.optional=o,d.typeAnnotation=u,this.finishNode(d,"FunctionTypeParam")},n.reinterpretTypeAsFunctionTypeParam=function(a){var i=this.startNodeAt(a.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=a,this.finishNode(i,"FunctionTypeParam")},n.flowParseFunctionTypeParams=function(a){a===void 0&&(a=[]);var i=null,o=null;for(this.match(78)&&(o=this.flowParseFunctionTypeParam(!0),o.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)a.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:a,rest:i,_this:o}},n.flowIdentToTypeAnnotation=function(a,i,o){switch(o.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(o.name),this.flowParseGenericType(a,o)}},n.flowParsePrimaryType=function(){var a=this.state.startLoc,i=this.startNode(),o,u,d=!1,l=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,u=this.flowParseTupleType(),this.state.noAnonFunctionType=l,u;case 47:return i.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),o=this.flowParseFunctionTypeParams(),i.params=o.params,i.rest=o.rest,i.this=o._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),this.finishNode(i,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(Nr(this.state.type)||this.match(78)){var c=this.lookahead().type;d=c!==17&&c!==14}else d=!0;if(d){if(this.state.noAnonFunctionType=!1,u=this.flowParseType(),this.state.noAnonFunctionType=l,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),u;this.eat(12)}return u?o=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(u)]):o=this.flowParseFunctionTypeParams(),i.params=o.params,i.rest=o.rest,i.this=o._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(cr.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(A1(this.state.type)){var x=Yn(this.state.type);return this.next(),r.prototype.createIdentifier.call(this,i,x)}else if(Nr(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(a,i,this.parseIdentifier())}this.unexpected()},n.flowParsePostfixType=function(){for(var a=this.state.startLoc,i=this.flowParsePrimaryType(),o=!1;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){var u=this.startNodeAt(a),d=this.eat(18);o=o||d,this.expect(0),!d&&this.match(3)?(u.elementType=i,this.next(),i=this.finishNode(u,"ArrayTypeAnnotation")):(u.objectType=i,u.indexType=this.flowParseType(),this.expect(3),o?(u.optional=d,i=this.finishNode(u,"OptionalIndexedAccessType")):i=this.finishNode(u,"IndexedAccessType"))}return i},n.flowParsePrefixType=function(){var a=this.startNode();return this.eat(17)?(a.typeAnnotation=this.flowParsePrefixType(),this.finishNode(a,"NullableTypeAnnotation")):this.flowParsePostfixType()},n.flowParseAnonFunctionWithoutParens=function(){var a=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){var i=this.startNodeAt(a.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(a)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return a},n.flowParseIntersectionType=function(){var a=this.startNode();this.eat(45);var i=this.flowParseAnonFunctionWithoutParens();for(a.types=[i];this.eat(45);)a.types.push(this.flowParseAnonFunctionWithoutParens());return a.types.length===1?i:this.finishNode(a,"IntersectionTypeAnnotation")},n.flowParseUnionType=function(){var a=this.startNode();this.eat(43);var i=this.flowParseIntersectionType();for(a.types=[i];this.eat(43);)a.types.push(this.flowParseIntersectionType());return a.types.length===1?i:this.finishNode(a,"UnionTypeAnnotation")},n.flowParseType=function(){var a=this.state.inType;this.state.inType=!0;var i=this.flowParseUnionType();return this.state.inType=a,i},n.flowParseTypeOrImplicitInstantiation=function(){if(this.state.type===132&&this.state.value==="_"){var a=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(a,i)}else return this.flowParseType()},n.flowParseTypeAnnotation=function(){var a=this.startNode();return a.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(a,"TypeAnnotation")},n.flowParseTypeAnnotatableIdentifier=function(a){var i=a?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),i},n.typeCastToParameter=function(a){return a.expression.typeAnnotation=a.typeAnnotation,this.resetEndLocation(a.expression,a.typeAnnotation.loc.end),a.expression},n.flowParseVariance=function(){var a=null;return this.match(53)?(a=this.startNode(),this.state.value==="+"?a.kind="plus":a.kind="minus",this.next(),this.finishNode(a,"Variance")):a},n.parseFunctionBody=function(a,i,o){var u=this;if(o===void 0&&(o=!1),i){this.forwardNoArrowParamsConversionAt(a,function(){return r.prototype.parseFunctionBody.call(u,a,!0,o)});return}r.prototype.parseFunctionBody.call(this,a,!1,o)},n.parseFunctionBodyAndFinish=function(a,i,o){if(o===void 0&&(o=!1),this.match(14)){var u=this.startNode(),d=this.flowParseTypeAndPredicateInitialiser();u.typeAnnotation=d[0],a.predicate=d[1],a.returnType=u.typeAnnotation?this.finishNode(u,"TypeAnnotation"):null}return r.prototype.parseFunctionBodyAndFinish.call(this,a,i,o)},n.parseStatementLike=function(a){if(this.state.strict&&this.isContextual(129)){var i=this.lookahead();if(ba(i.type)){var o=this.startNode();return this.next(),this.flowParseInterface(o)}}else if(this.shouldParseEnums()&&this.isContextual(126)){var u=this.startNode();return this.next(),this.flowParseEnumDeclaration(u)}var d=r.prototype.parseStatementLike.call(this,a);return this.flowPragma===void 0&&!this.isValidDirective(d)&&(this.flowPragma=null),d},n.parseExpressionStatement=function(a,i,o){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Nr(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(a)}else if(Nr(this.state.type)){if(i.name==="interface")return this.flowParseInterface(a);if(i.name==="type")return this.flowParseTypeAlias(a);if(i.name==="opaque")return this.flowParseOpaqueType(a,!1)}}return r.prototype.parseExpressionStatement.call(this,a,i,o)},n.shouldParseExportDeclaration=function(){var a=this.state.type;return E9(a)||this.shouldParseEnums()&&a===126?!this.state.containsEsc:r.prototype.shouldParseExportDeclaration.call(this)},n.isExportDefaultSpecifier=function(){var a=this.state.type;return E9(a)||this.shouldParseEnums()&&a===126?this.state.containsEsc:r.prototype.isExportDefaultSpecifier.call(this)},n.parseExportDefaultExpression=function(){if(this.shouldParseEnums()&&this.isContextual(126)){var a=this.startNode();return this.next(),this.flowParseEnumDeclaration(a)}return r.prototype.parseExportDefaultExpression.call(this)},n.parseConditional=function(a,i,o){var u=this;if(!this.match(17))return a;if(this.state.maybeInArrowParameters){var d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(o),a}this.expect(17);var l=this.state.clone(),c=this.state.noArrowAt,x=this.startNodeAt(i),f=this.tryParseConditionalConsequent(),D=f.consequent,g=f.failed,p=this.getArrowLikeExpressions(D),F=p[0],m=p[1];if(g||m.length>0){var E=[].concat(c);if(m.length>0){this.state=l,this.state.noArrowAt=E;for(var h=0;h<m.length;h++)E.push(m[h].start);var v=this.tryParseConditionalConsequent();D=v.consequent,g=v.failed;var A=this.getArrowLikeExpressions(D);F=A[0],m=A[1]}if(g&&F.length>1&&this.raise(cr.AmbiguousConditionalArrow,l.startLoc),g&&F.length===1){this.state=l,E.push(F[0].start),this.state.noArrowAt=E;var C=this.tryParseConditionalConsequent();D=C.consequent,g=C.failed}}return this.getArrowLikeExpressions(D,!0),this.state.noArrowAt=c,this.expect(14),x.test=a,x.consequent=D,x.alternate=this.forwardNoArrowParamsConversionAt(x,function(){return u.parseMaybeAssign(void 0,void 0)}),this.finishNode(x,"ConditionalExpression")},n.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var a=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:a,failed:i}},n.getArrowLikeExpressions=function(a,i){for(var o=this,u=[a],d=[];u.length!==0;){var l=u.pop();l.type==="ArrowFunctionExpression"?(l.typeParameters||!l.returnType?this.finishArrowValidation(l):d.push(l),u.push(l.body)):l.type==="ConditionalExpression"&&(u.push(l.consequent),u.push(l.alternate))}return i?(d.forEach(function(c){return o.finishArrowValidation(c)}),[d,[]]):v1e(d,function(c){return c.params.every(function(x){return o.isAssignable(x,!0)})})},n.finishArrowValidation=function(a){var i;this.toAssignableList(a.params,(i=a.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(Fr.FUNCTION|Fr.ARROW),r.prototype.checkParams.call(this,a,!1,!0),this.scope.exit()},n.forwardNoArrowParamsConversionAt=function(a,i){var o;return this.state.noArrowParamsConversionAt.indexOf(a.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),o=i(),this.state.noArrowParamsConversionAt.pop()):o=i(),o},n.parseParenItem=function(a,i){if(a=r.prototype.parseParenItem.call(this,a,i),this.eat(17)&&(a.optional=!0,this.resetEndLocation(a)),this.match(14)){var o=this.startNodeAt(i);return o.expression=a,o.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(o,"TypeCastExpression")}return a},n.assertModuleNodeAllowed=function(a){a.type==="ImportDeclaration"&&(a.importKind==="type"||a.importKind==="typeof")||a.type==="ExportNamedDeclaration"&&a.exportKind==="type"||a.type==="ExportAllDeclaration"&&a.exportKind==="type"||r.prototype.assertModuleNodeAllowed.call(this,a)},n.parseExportDeclaration=function(a){if(this.isContextual(130)){a.exportKind="type";var i=this.startNode();return this.next(),this.match(5)?(a.specifiers=this.parseExportSpecifiers(!0),r.prototype.parseExportFrom.call(this,a),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){a.exportKind="type";var o=this.startNode();return this.next(),this.flowParseOpaqueType(o,!1)}else if(this.isContextual(129)){a.exportKind="type";var u=this.startNode();return this.next(),this.flowParseInterface(u)}else if(this.shouldParseEnums()&&this.isContextual(126)){a.exportKind="value";var d=this.startNode();return this.next(),this.flowParseEnumDeclaration(d)}else return r.prototype.parseExportDeclaration.call(this,a)},n.eatExportStar=function(a){return r.prototype.eatExportStar.call(this,a)?!0:this.isContextual(130)&&this.lookahead().type===55?(a.exportKind="type",this.next(),this.next(),!0):!1},n.maybeParseExportNamespaceSpecifier=function(a){var i=this.state.startLoc,o=r.prototype.maybeParseExportNamespaceSpecifier.call(this,a);return o&&a.exportKind==="type"&&this.unexpected(i),o},n.parseClassId=function(a,i,o){r.prototype.parseClassId.call(this,a,i,o),this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration())},n.parseClassMember=function(a,i,o){var u=this.state.startLoc;if(this.isContextual(125)){if(r.prototype.parseClassMemberFromModifier.call(this,a,i))return;i.declare=!0}r.prototype.parseClassMember.call(this,a,i,o),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(cr.DeclareClassElement,u):i.value&&this.raise(cr.DeclareClassFieldInitializer,i.value))},n.isIterator=function(a){return a==="iterator"||a==="asyncIterator"},n.readIterator=function(){var a=r.prototype.readWord1.call(this),i="@@"+a;(!this.isIterator(a)||!this.state.inType)&&this.raise(oe.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)},n.getTokenFromCode=function(a){var i=this.input.charCodeAt(this.state.pos+1);a===123&&i===124?this.finishOp(6,2):this.state.inType&&(a===62||a===60)?this.finishOp(a===62?48:47,1):this.state.inType&&a===63?i===46?this.finishOp(18,2):this.finishOp(17,1):Jpe(a,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):r.prototype.getTokenFromCode.call(this,a)},n.isAssignable=function(a,i){return a.type==="TypeCastExpression"?this.isAssignable(a.expression,i):r.prototype.isAssignable.call(this,a,i)},n.toAssignable=function(a,i){i===void 0&&(i=!1),!i&&a.type==="AssignmentExpression"&&a.left.type==="TypeCastExpression"&&(a.left=this.typeCastToParameter(a.left)),r.prototype.toAssignable.call(this,a,i)},n.toAssignableList=function(a,i,o){for(var u=0;u<a.length;u++){var d=a[u];d?.type==="TypeCastExpression"&&(a[u]=this.typeCastToParameter(d))}r.prototype.toAssignableList.call(this,a,i,o)},n.toReferencedList=function(a,i){for(var o=0;o<a.length;o++){var u,d=a[o];d&&d.type==="TypeCastExpression"&&!((u=d.extra)!=null&&u.parenthesized)&&(a.length>1||!i)&&this.raise(cr.TypeCastInPattern,d.typeAnnotation)}return a},n.parseArrayLike=function(a,i,o,u){var d=r.prototype.parseArrayLike.call(this,a,i,o,u);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(d.elements),d},n.isValidLVal=function(a,i,o){return a==="TypeCastExpression"||r.prototype.isValidLVal.call(this,a,i,o)},n.parseClassProperty=function(a){return this.match(14)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),r.prototype.parseClassProperty.call(this,a)},n.parseClassPrivateProperty=function(a){return this.match(14)&&(a.typeAnnotation=this.flowParseTypeAnnotation()),r.prototype.parseClassPrivateProperty.call(this,a)},n.isClassMethod=function(){return this.match(47)||r.prototype.isClassMethod.call(this)},n.isClassProperty=function(){return this.match(14)||r.prototype.isClassProperty.call(this)},n.isNonstaticConstructor=function(a){return!this.match(14)&&r.prototype.isNonstaticConstructor.call(this,a)},n.pushClassMethod=function(a,i,o,u,d,l){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),r.prototype.pushClassMethod.call(this,a,i,o,u,d,l),i.params&&d){var c=i.params;c.length>0&&this.isThisParam(c[0])&&this.raise(cr.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&d&&i.value.params){var x=i.value.params;x.length>0&&this.isThisParam(x[0])&&this.raise(cr.ThisParamBannedInConstructor,i)}},n.pushClassPrivateMethod=function(a,i,o,u){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),r.prototype.pushClassPrivateMethod.call(this,a,i,o,u)},n.parseClassSuper=function(a){if(r.prototype.parseClassSuper.call(this,a),a.superClass&&this.match(47)&&(a.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var i=a.implements=[];do{var o=this.startNode();o.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?o.typeParameters=this.flowParseTypeParameterInstantiation():o.typeParameters=null,i.push(this.finishNode(o,"ClassImplements"))}while(this.eat(12))}},n.checkGetterSetterParams=function(a){r.prototype.checkGetterSetterParams.call(this,a);var i=this.getObjectOrClassMethodParams(a);if(i.length>0){var o=i[0];this.isThisParam(o)&&a.kind==="get"?this.raise(cr.GetterMayNotHaveThisParam,o):this.isThisParam(o)&&this.raise(cr.SetterMayNotHaveThisParam,o)}},n.parsePropertyNamePrefixOperator=function(a){a.variance=this.flowParseVariance()},n.parseObjPropValue=function(a,i,o,u,d,l,c){a.variance&&this.unexpected(a.variance.loc.start),delete a.variance;var x;this.match(47)&&!l&&(x=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var f=r.prototype.parseObjPropValue.call(this,a,i,o,u,d,l,c);return x&&((f.value||f).typeParameters=x),f},n.parseAssignableListItemTypes=function(a){return this.eat(17)&&(a.type!=="Identifier"&&this.raise(cr.PatternIsOptional,a),this.isThisParam(a)&&this.raise(cr.ThisParamMayNotBeOptional,a),a.optional=!0),this.match(14)?a.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(a)&&this.raise(cr.ThisParamAnnotationRequired,a),this.match(29)&&this.isThisParam(a)&&this.raise(cr.ThisParamNoDefault,a),this.resetEndLocation(a),a},n.parseMaybeDefault=function(a,i){var o=r.prototype.parseMaybeDefault.call(this,a,i);return o.type==="AssignmentPattern"&&o.typeAnnotation&&o.right.start<o.typeAnnotation.start&&this.raise(cr.TypeBeforeInitializer,o.typeAnnotation),o},n.checkImportReflection=function(a){r.prototype.checkImportReflection.call(this,a),a.module&&a.importKind!=="value"&&this.raise(cr.ImportReflectionHasImportType,a.specifiers[0].loc.start)},n.parseImportSpecifierLocal=function(a,i,o){i.local=w9(a)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),a.specifiers.push(this.finishImportSpecifier(i,o))},n.isPotentialImportPhase=function(a){if(r.prototype.isPotentialImportPhase.call(this,a))return!0;if(this.isContextual(130)){if(!a)return!0;var i=this.lookaheadCharCode();return i===123||i===42}return!a&&this.isContextual(87)},n.applyImportPhase=function(a,i,o,u){if(r.prototype.applyImportPhase.call(this,a,i,o,u),i){if(!o&&this.match(65))return;a.exportKind=o==="type"?o:"value"}else o==="type"&&this.match(55)&&this.unexpected(),a.importKind=o==="type"||o==="typeof"?o:"value"},n.parseImportSpecifier=function(a,i,o,u,d){var l=a.imported,c=null;l.type==="Identifier"&&(l.name==="type"?c="type":l.name==="typeof"&&(c="typeof"));var x=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){var f=this.parseIdentifier(!0);c!==null&&!ba(this.state.type)?(a.imported=f,a.importKind=c,a.local=cn(f)):(a.imported=l,a.importKind=null,a.local=this.parseIdentifier())}else{if(c!==null&&ba(this.state.type))a.imported=this.parseIdentifier(!0),a.importKind=c;else{if(i)throw this.raise(oe.ImportBindingIsString,a,{importName:l.value});a.imported=l,a.importKind=null}this.eatContextual(93)?a.local=this.parseIdentifier():(x=!0,a.local=cn(a.imported))}var D=w9(a);return o&&D&&this.raise(cr.ImportTypeShorthandOnlyInPureImport,a),(o||D)&&this.checkReservedType(a.local.name,a.local.loc.start,!0),x&&!o&&!D&&this.checkReservedWord(a.local.name,a.loc.start,!0,!0),this.finishImportSpecifier(a,"ImportSpecifier")},n.parseBindingAtom=function(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return r.prototype.parseBindingAtom.call(this)}},n.parseFunctionParams=function(a,i){var o=a.kind;o!=="get"&&o!=="set"&&this.match(47)&&(a.typeParameters=this.flowParseTypeParameterDeclaration()),r.prototype.parseFunctionParams.call(this,a,i)},n.parseVarId=function(a,i){r.prototype.parseVarId.call(this,a,i),this.match(14)&&(a.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(a.id))},n.parseAsyncArrowFromCallExpression=function(a,i){if(this.match(14)){var o=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,a.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=o}return r.prototype.parseAsyncArrowFromCallExpression.call(this,a,i)},n.shouldParseAsyncArrow=function(){return this.match(14)||r.prototype.shouldParseAsyncArrow.call(this)},n.parseMaybeAssign=function(a,i){var o=this,u,d=null,l;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(d=this.state.clone(),l=this.tryParse(function(){return r.prototype.parseMaybeAssign.call(o,a,i)},d),!l.error)return l.node;var c=this.state.context,x=c[c.length-1];(x===Gr.j_oTag||x===Gr.j_expr)&&c.pop()}if((u=l)!=null&&u.error||this.match(47)){var f,D;d=d||this.state.clone();var g,p=this.tryParse(function(m){var E;g=o.flowParseTypeParameterDeclaration();var h=o.forwardNoArrowParamsConversionAt(g,function(){var A=r.prototype.parseMaybeAssign.call(o,a,i);return o.resetStartLocationFromNode(A,g),A});(E=h.extra)!=null&&E.parenthesized&&m();var v=o.maybeUnwrapTypeCastExpression(h);return v.type!=="ArrowFunctionExpression"&&m(),v.typeParameters=g,o.resetStartLocationFromNode(v,g),h},d),F=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted)return p.node.async&&this.raise(cr.UnexpectedTypeParameterBeforeAsyncArrowFunction,g),p.node;F=p.node}if((f=l)!=null&&f.node)return this.state=l.failState,l.node;if(F)return this.state=p.failState,F;throw(D=l)!=null&&D.thrown?l.error:p.thrown?p.error:this.raise(cr.UnexpectedTokenAfterTypeParameter,g)}return r.prototype.parseMaybeAssign.call(this,a,i)},n.parseArrow=function(a){var i=this;if(this.match(14)){var o=this.tryParse(function(){var u=i.state.noAnonFunctionType;i.state.noAnonFunctionType=!0;var d=i.startNode(),l=i.flowParseTypeAndPredicateInitialiser();return d.typeAnnotation=l[0],a.predicate=l[1],i.state.noAnonFunctionType=u,i.canInsertSemicolon()&&i.unexpected(),i.match(19)||i.unexpected(),d});if(o.thrown)return null;o.error&&(this.state=o.failState),a.returnType=o.node.typeAnnotation?this.finishNode(o.node,"TypeAnnotation"):null}return r.prototype.parseArrow.call(this,a)},n.shouldParseArrow=function(a){return this.match(14)||r.prototype.shouldParseArrow.call(this,a)},n.setArrowFunctionParameters=function(a,i){this.state.noArrowParamsConversionAt.indexOf(a.start)!==-1?a.params=i:r.prototype.setArrowFunctionParameters.call(this,a,i)},n.checkParams=function(a,i,o,u){if(u===void 0&&(u=!0),!(o&&this.state.noArrowParamsConversionAt.indexOf(a.start)!==-1)){for(var d=0;d<a.params.length;d++)this.isThisParam(a.params[d])&&d>0&&this.raise(cr.ThisParamMustBeFirst,a.params[d]);r.prototype.checkParams.call(this,a,i,o,u)}},n.parseParenAndDistinguishExpression=function(a){return r.prototype.parseParenAndDistinguishExpression.call(this,a&&this.state.noArrowAt.indexOf(this.state.start)===-1)},n.parseSubscripts=function(a,i,o){var u=this;if(a.type==="Identifier"&&a.name==="async"&&this.state.noArrowAt.indexOf(i.index)!==-1){this.next();var d=this.startNodeAt(i);d.callee=a,d.arguments=r.prototype.parseCallExpressionArguments.call(this,11,!1),a=this.finishNode(d,"CallExpression")}else if(a.type==="Identifier"&&a.name==="async"&&this.match(47)){var l=this.state.clone(),c=this.tryParse(function(f){return u.parseAsyncArrowWithTypeParameters(i)||f()},l);if(!c.error&&!c.aborted)return c.node;var x=this.tryParse(function(){return r.prototype.parseSubscripts.call(u,a,i,o)},l);if(x.node&&!x.error)return x.node;if(c.node)return this.state=c.failState,c.node;if(x.node)return this.state=x.failState,x.node;throw c.error||x.error}return r.prototype.parseSubscripts.call(this,a,i,o)},n.parseSubscript=function(a,i,o,u){var d=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(u.optionalChainMember=!0,o)return u.stop=!0,a;this.next();var l=this.startNodeAt(i);return l.callee=a,l.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),l.arguments=this.parseCallExpressionArguments(11,!1),l.optional=!0,this.finishCallExpression(l,!0)}else if(!o&&this.shouldParseTypes()&&this.match(47)){var c=this.startNodeAt(i);c.callee=a;var x=this.tryParse(function(){return c.typeArguments=d.flowParseTypeParameterInstantiationCallOrNew(),d.expect(10),c.arguments=r.prototype.parseCallExpressionArguments.call(d,11,!1),u.optionalChainMember&&(c.optional=!1),d.finishCallExpression(c,u.optionalChainMember)});if(x.node)return x.error&&(this.state=x.failState),x.node}return r.prototype.parseSubscript.call(this,a,i,o,u)},n.parseNewCallee=function(a){var i=this;r.prototype.parseNewCallee.call(this,a);var o=null;this.shouldParseTypes()&&this.match(47)&&(o=this.tryParse(function(){return i.flowParseTypeParameterInstantiationCallOrNew()}).node),a.typeArguments=o},n.parseAsyncArrowWithTypeParameters=function(a){var i=this.startNodeAt(a);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return r.prototype.parseArrowExpression.call(this,i,void 0,!0)},n.readToken_mult_modulo=function(a){var i=this.input.charCodeAt(this.state.pos+1);if(a===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}r.prototype.readToken_mult_modulo.call(this,a)},n.readToken_pipe_amp=function(a){var i=this.input.charCodeAt(this.state.pos+1);if(a===124&&i===125){this.finishOp(9,2);return}r.prototype.readToken_pipe_amp.call(this,a)},n.parseTopLevel=function(a,i){var o=r.prototype.parseTopLevel.call(this,a,i);return this.state.hasFlowComment&&this.raise(cr.UnterminatedFlowComment,this.state.curPosition()),o},n.skipBlockComment=function(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(cr.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var a=this.skipFlowComment();a&&(this.state.pos+=a,this.state.hasFlowComment=!0);return}return r.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/")},n.skipFlowComment=function(){for(var a=this.state.pos,i=2;[32,9].includes(this.input.charCodeAt(a+i));)i++;var o=this.input.charCodeAt(i+a),u=this.input.charCodeAt(i+a+1);return o===58&&u===58?i+2:this.input.slice(i+a,i+a+12)==="flow-include"?i+12:o===58&&u!==58?i:!1},n.hasFlowCommentCompletion=function(){var a=this.input.indexOf("*/",this.state.pos);if(a===-1)throw this.raise(oe.UnterminatedComment,this.state.curPosition())},n.flowEnumErrorBooleanMemberNotInitialized=function(a,i){var o=i.enumName,u=i.memberName;this.raise(cr.EnumBooleanMemberNotInitialized,a,{memberName:u,enumName:o})},n.flowEnumErrorInvalidMemberInitializer=function(a,i){return this.raise(i.explicitType?i.explicitType==="symbol"?cr.EnumInvalidMemberInitializerSymbolType:cr.EnumInvalidMemberInitializerPrimaryType:cr.EnumInvalidMemberInitializerUnknownType,a,i)},n.flowEnumErrorNumberMemberNotInitialized=function(a,i){this.raise(cr.EnumNumberMemberNotInitialized,a,i)},n.flowEnumErrorStringMemberInconsistentlyInitialized=function(a,i){this.raise(cr.EnumStringMemberInconsistentlyInitialized,a,i)},n.flowEnumMemberInit=function(){var a=this,i=this.state.startLoc,o=function(){return a.match(12)||a.match(8)};switch(this.state.type){case 134:{var u=this.parseNumericLiteral(this.state.value);return o()?{type:"number",loc:u.loc.start,value:u}:{type:"invalid",loc:i}}case 133:{var d=this.parseStringLiteral(this.state.value);return o()?{type:"string",loc:d.loc.start,value:d}:{type:"invalid",loc:i}}case 85:case 86:{var l=this.parseBooleanLiteral(this.match(85));return o()?{type:"boolean",loc:l.loc.start,value:l}:{type:"invalid",loc:i}}default:return{type:"invalid",loc:i}}},n.flowEnumMemberRaw=function(){var a=this.state.startLoc,i=this.parseIdentifier(!0),o=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:a};return{id:i,init:o}},n.flowEnumCheckExplicitTypeMismatch=function(a,i,o){var u=i.explicitType;u!==null&&u!==o&&this.flowEnumErrorInvalidMemberInitializer(a,i)},n.flowEnumMembers=function(a){for(var i=a.enumName,o=a.explicitType,u=new Set,d={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},l=!1;!this.match(8);){if(this.eat(21)){l=!0;break}var c=this.startNode(),x=this.flowEnumMemberRaw(),f=x.id,D=x.init,g=f.name;if(g!==""){/^[a-z]/.test(g)&&this.raise(cr.EnumInvalidMemberName,f,{memberName:g,suggestion:g[0].toUpperCase()+g.slice(1),enumName:i}),u.has(g)&&this.raise(cr.EnumDuplicateMemberName,f,{memberName:g,enumName:i}),u.add(g);var p={enumName:i,explicitType:o,memberName:g};switch(c.id=f,D.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(D.loc,p,"boolean"),c.init=D.value,d.booleanMembers.push(this.finishNode(c,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(D.loc,p,"number"),c.init=D.value,d.numberMembers.push(this.finishNode(c,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(D.loc,p,"string"),c.init=D.value,d.stringMembers.push(this.finishNode(c,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(D.loc,p);case"none":switch(o){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(D.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(D.loc,p);break;default:d.defaultedMembers.push(this.finishNode(c,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:d,hasUnknownMembers:l}},n.flowEnumStringMembers=function(a,i,o){var u=o.enumName;if(a.length===0)return i;if(i.length===0)return a;if(i.length>a.length){for(var d=0;d<a.length;d++){var l=a[d];this.flowEnumErrorStringMemberInconsistentlyInitialized(l,{enumName:u})}return i}else{for(var c=0;c<i.length;c++){var x=i[c];this.flowEnumErrorStringMemberInconsistentlyInitialized(x,{enumName:u})}return a}},n.flowEnumParseExplicitType=function(a){var i=a.enumName;if(!this.eatContextual(102))return null;if(!Nr(this.state.type))throw this.raise(cr.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:i});var o=this.state.value;return this.next(),o!=="boolean"&&o!=="number"&&o!=="string"&&o!=="symbol"&&this.raise(cr.EnumInvalidExplicitType,this.state.startLoc,{enumName:i,invalidEnumType:o}),o},n.flowEnumBody=function(a,i){var o=this,u=i.name,d=i.loc.start,l=this.flowEnumParseExplicitType({enumName:u});this.expect(5);var c=this.flowEnumMembers({enumName:u,explicitType:l}),x=c.members,f=c.hasUnknownMembers;switch(a.hasUnknownMembers=f,l){case"boolean":return a.explicitType=!0,a.members=x.booleanMembers,this.expect(8),this.finishNode(a,"EnumBooleanBody");case"number":return a.explicitType=!0,a.members=x.numberMembers,this.expect(8),this.finishNode(a,"EnumNumberBody");case"string":return a.explicitType=!0,a.members=this.flowEnumStringMembers(x.stringMembers,x.defaultedMembers,{enumName:u}),this.expect(8),this.finishNode(a,"EnumStringBody");case"symbol":return a.members=x.defaultedMembers,this.expect(8),this.finishNode(a,"EnumSymbolBody");default:{var D=function(){return a.members=[],o.expect(8),o.finishNode(a,"EnumStringBody")};a.explicitType=!1;var g=x.booleanMembers.length,p=x.numberMembers.length,F=x.stringMembers.length,m=x.defaultedMembers.length;if(!g&&!p&&!F&&!m)return D();if(!g&&!p)return a.members=this.flowEnumStringMembers(x.stringMembers,x.defaultedMembers,{enumName:u}),this.expect(8),this.finishNode(a,"EnumStringBody");if(!p&&!F&&g>=m){for(var E=0,h=x.defaultedMembers;E<h.length;E++){var v=h[E];this.flowEnumErrorBooleanMemberNotInitialized(v.loc.start,{enumName:u,memberName:v.id.name})}return a.members=x.booleanMembers,this.expect(8),this.finishNode(a,"EnumBooleanBody")}else if(!g&&!F&&p>=m){for(var A=0,C=x.defaultedMembers;A<C.length;A++){var w=C[A];this.flowEnumErrorNumberMemberNotInitialized(w.loc.start,{enumName:u,memberName:w.id.name})}return a.members=x.numberMembers,this.expect(8),this.finishNode(a,"EnumNumberBody")}else return this.raise(cr.EnumInconsistentMemberValues,d,{enumName:u}),D()}}},n.flowParseEnumDeclaration=function(a){var i=this.parseIdentifier();return a.id=i,a.body=this.flowEnumBody(this.startNode(),i),this.finishNode(a,"EnumDeclaration")},n.isLookaheadToken_lt=function(){var a=this.nextTokenStart();if(this.input.charCodeAt(a)===60){var i=this.input.charCodeAt(a+1);return i!==60&&i!==61}return!1},n.maybeUnwrapTypeCastExpression=function(a){return a.type==="TypeCastExpression"?a.expression:a},Qe(t)}(e)},R1e={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},S9,Ps=un(S9||(S9=le(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(r){var t=r.openingTagName;return"Expected corresponding JSX closing tag for <"+t+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(r){var t=r.unexpected,n=r.HTMLEntity;return"Unexpected token `"+t+"`. Did you mean `"+n+"` or `{'"+t+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Jn(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Ni(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Ni(e.object)+"."+Ni(e.property);throw new Error("Node had unexpected type: "+e.type)}var B1e=function(e){return function(r){nt(t,r);function t(){return r.apply(this,arguments)||this}var n=t.prototype;return n.jsxReadToken=function(){for(var a="",i=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(Ps.UnterminatedJsxContent,this.state.startLoc);var o=this.input.charCodeAt(this.state.pos);switch(o){case 60:case 123:if(this.state.pos===this.state.start){o===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):r.prototype.getTokenFromCode.call(this,o);return}a+=this.input.slice(i,this.state.pos),this.finishToken(141,a);return;case 38:a+=this.input.slice(i,this.state.pos),a+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:cu(o)?(a+=this.input.slice(i,this.state.pos),a+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}},n.jsxReadNewLine=function(a){var i=this.input.charCodeAt(this.state.pos),o;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,o=a?`

Callers 1

ApeFunction · 0.85

Calls 3

JFunction · 0.85
sFunction · 0.85
nFunction · 0.85

Tested by

no test coverage detected