prettier 3.0.0-alpha.10 → 3.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/plugins/acorn.mjs CHANGED
@@ -1,13 +1,13 @@
1
- var ys=Object.create;var et=Object.defineProperty;var gs=Object.getOwnPropertyDescriptor;var bs=Object.getOwnPropertyNames;var vs=Object.getPrototypeOf,Ss=Object.prototype.hasOwnProperty;var N=(r,o)=>()=>(r&&(o=r(r=0)),o);var ve=(r,o)=>()=>(o||r((o={exports:{}}).exports,o),o.exports),ii=(r,o)=>{for(var p in o)et(r,p,{get:o[p],enumerable:!0})},ks=(r,o,p,h)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of bs(o))!Ss.call(r,l)&&l!==p&&et(r,l,{get:()=>o[l],enumerable:!(h=gs(o,l))||h.enumerable});return r};var Ts=(r,o,p)=>(p=r!=null?ys(vs(r)):{},ks(o||!r||!r.__esModule?et(p,"default",{value:r,enumerable:!0}):p,r));function ws(r,o){let p=new SyntaxError(r+" ("+o.loc.start.line+":"+o.loc.start.column+")");return Object.assign(p,o)}var pe,Oe=N(()=>{pe=ws});function Cs(r){let o=[];for(let p of r)try{return p()}catch(h){o.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:o})}var Be,tt=N(()=>{Be=Cs});var pi=ve(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.extract=Ls;ie.parse=Rs;ie.parseWithComments=hi;ie.print=Os;ie.strip=Vs;var Es=/\*\/$/,As=/^\/\*\*?/,oi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Ps=/(^|\s+)\/\/([^\r\n]*)/g,ri=/^(\r?\n)+/,Is=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,ai=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Ns=/(\r?\n|^) *\* ?/g,ui=[];function Ls(r){let o=r.match(oi);return o?o[0].trimLeft():""}function Vs(r){let o=r.match(oi);return o&&o[0]?r.substring(o[0].length):r}function Rs(r){return hi(r).pragmas}function hi(r){let o=`
2
- `;r=r.replace(As,"").replace(Es,"").replace(Ns,"$1");let p="";for(;p!==r;)p=r,r=r.replace(Is,`${o}$1 $2${o}`);r=r.replace(ri,"").trimRight();let h=Object.create(null),l=r.replace(ai,"").replace(ri,"").trimRight(),f;for(;f=ai.exec(r);){let x=f[2].replace(Ps,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=ui.concat(h[f[1]],x):h[f[1]]=x}return{comments:l,pragmas:h}}function Os({comments:r="",pragmas:o={}}){let p=`
3
- `,h="/**",l=" *",f=" */",x=Object.keys(o),S=x.map(P=>ni(P,o[P])).reduce((P,D)=>P.concat(D),[]).map(P=>`${l} ${P}${p}`).join("");if(!r){if(x.length===0)return"";if(x.length===1&&!Array.isArray(o[x[0]])){let P=o[x[0]];return`${h} ${ni(x[0],P)[0]}${f}`}}let R=r.split(p).map(P=>`${l} ${P}`).join(p)+p;return h+p+(r?R:"")+(r&&x.length?l+p:"")+S+f}function ni(r,o){return ui.concat(o).map(p=>`@${r} ${p}`.trim())}});var ci=N(()=>{});var li=N(()=>{ci()});function Bs(r){if(!r.startsWith("#!"))return"";let o=r.indexOf(`
4
- `);return o===-1?r:r.slice(0,o)}var fi,di=N(()=>{fi=Bs});function Fs(r){let o=fi(r);o&&(r=r.slice(o.length+1));let p=(0,ce.extract)(r),{pragmas:h,comments:l}=(0,ce.parseWithComments)(p);return{shebang:o,text:r,pragmas:h,comments:l}}function mi(r){let{pragmas:o}=Fs(r);return Object.prototype.hasOwnProperty.call(o,"prettier")||Object.prototype.hasOwnProperty.call(o,"format")}var ce,xi=N(()=>{ce=Ts(pi(),1);li();di()});function Ds(r){return Array.isArray(r)&&r.length>0}var Se,it=N(()=>{Se=Ds});function U(r){var h;let o=r.range?r.range[0]:r.start,p=((h=r.declaration)==null?void 0:h.decorators)??r.decorators;return Se(p)?Math.min(U(p[0]),o):o}function X(r){return r.range?r.range[1]:r.end}var st=N(()=>{it()});function Ms(r){return r=typeof r=="function"?{parse:r}:r,{astFormat:"estree",hasPragma:mi,locStart:U,locEnd:X,...r}}var Fe,rt=N(()=>{xi();st();Fe=Ms});var js,at,yi=N(()=>{js=(r,o,p)=>{if(!(r&&o==null))return Array.isArray(o)||typeof o=="string"?o[p<0?o.length+p:p]:o.at(p)},at=js});function Us(r){return r=new Set(r),o=>r.has(o==null?void 0:o.type)}var gi,bi=N(()=>{gi=Us});var qs,ke,nt=N(()=>{bi();qs=gi(["Block","CommentBlock","MultiLine"]),ke=qs});function Ks(r){return ke(r)&&r.value[0]==="*"&&/@(?:type|satisfies)\b/.test(r.value)}var vi,Si=N(()=>{nt();vi=Ks});function Js(r){let o=`*${r.value}*`.split(`
5
- `);return o.length>1&&o.every(p=>p.trimStart()[0]==="*")}var ot,ki=N(()=>{ot=Js});function _e(r){if(Te!==null&&typeof Te.property){let o=Te;return Te=_e.prototype=null,o}return Te=_e.prototype=r??Object.create(null),new _e}function ut(r){return _e(r)}var Te,zs,Ti=N(()=>{Te=null;zs=10;for(let r=0;r<=zs;r++)_e()});function Gs(r,o="type"){ut(r);function p(h){let l=h[o],f=r[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return p}var _i,wi=N(()=>{Ti();_i=Gs});var Ci,Ei=N(()=>{Ci={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["id","qualification"],TupleTypeSpreadElement:["label","typeAnnotation"],TupleTypeLabeledElement:["label","elementType","variance"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]}});var Xs,Ai,Pi=N(()=>{wi();Ei();Xs=_i(Ci),Ai=Xs});function ht(r,o){if(!(r!==null&&typeof r=="object"))return r;if(Array.isArray(r)){for(let h=0;h<r.length;h++)r[h]=ht(r[h],o);return r}let p=Ai(r);for(let h=0;h<p.length;h++)r[p[h]]=ht(r[p[h]],o);return o(r)||r}var De,Ii=N(()=>{Pi();De=ht});function Ws(r,o){let{start:p,end:h}=r.loc;throw pe(o,{loc:{start:{line:p.line,column:p.column+1},end:{line:h.line,column:h.column+1}}})}var Me,Ni=N(()=>{Oe();Me=Ws});function Hs(r,o){let{parser:p,text:h}=o;if(r.type==="File"&&r.program.interpreter){let{program:{interpreter:f},comments:x}=r;delete r.program.interpreter,x.unshift(f)}if(p==="babel"){let f=new Set;r=De(r,x=>{var S;(S=x.leadingComments)!=null&&S.some(vi)&&f.add(U(x))}),r=De(r,x=>{if(x.type==="ParenthesizedExpression"){let{expression:S}=x;if(S.type==="TypeCastExpression")return S.range=x.range,S;let R=U(x);if(!f.has(R))return S.extra={...S.extra,parenthesized:!0},S}})}if(r=De(r,f=>{switch(f.type){case"LogicalExpression":if(Li(f))return pt(f);break;case"VariableDeclaration":{let x=at(!1,f.declarations,-1);x!=null&&x.init&&l(f,x);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let x=U(f);f.name={type:"Identifier",name:f.name,range:[x,x+f.name.length]}}break;case"ObjectExpression":if(p==="typescript"){let x=f.properties.find(S=>S.type==="Property"&&S.value.type==="TSEmptyBodyFunctionExpression");x&&Me(x.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":Se(f.implements)&&Me(f.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":f.initializer&&Me(f.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":r.extra={...r.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:x}=f;if(p==="meriyah"&&(x==null?void 0:x.type)==="Identifier"){let S=h.slice(U(x),X(x));(S.startsWith('"')||S.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:S})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),Se(r.comments)){let f=at(!1,r.comments,-1);for(let x=r.comments.length-2;x>=0;x--){let S=r.comments[x];X(S)===U(f)&&ke(S)&&ke(f)&&ot(S)&&ot(f)&&(r.comments.splice(x+1,1),S.value+="*//*"+f.value,S.range=[U(S),X(f)]),f=S}}return r.type==="Program"&&(r.range=[0,h.length]),r;function l(f,x){h[X(x)]!==";"&&(f.range=[U(f),X(x)])}}function Li(r){return r.type==="LogicalExpression"&&r.right.type==="LogicalExpression"&&r.operator===r.right.operator}function pt(r){return Li(r)?pt({type:"LogicalExpression",operator:r.operator,left:pt({type:"LogicalExpression",operator:r.operator,left:r.left,right:r.right.left,range:[U(r.left),X(r.right.left)]}),right:r.right.right,range:[U(r),X(r)]}):r}var je,ct=N(()=>{yi();st();Si();it();nt();ki();Ii();Ni();je=Hs});function Qs(r){let{filepath:o}=r;if(o){if(o=o.toLowerCase(),o.endsWith(".cjs"))return"script";if(o.endsWith(".mjs"))return"module"}}var Ue,lt=N(()=>{Ue=Qs});var we=ve((qe,Vi)=>{(function(r,o){typeof qe=="object"&&typeof Vi<"u"?o(qe):typeof define=="function"&&define.amd?define(["exports"],o):(r=typeof globalThis<"u"?globalThis:r||self,o(r.acorn={}))})(qe,function(r){"use strict";var o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],p=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},x="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",S={5:x,"5module":x+" export import",6:x+" const class extends export import super"},R=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),D=new RegExp("["+l+h+"]");function z(e,t){for(var i=65536,s=0;s<t.length;s+=2){if(i+=t[s],i>e)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function M(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:z(e,p)}function m(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&D.test(String.fromCharCode(e)):t===!1?!1:z(e,p)||z(e,o)}var y=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new y(e,{beforeExpr:!0,binop:t})}var T={beforeExpr:!0},L={startsExpr:!0},W={};function C(e,t){return t===void 0&&(t={}),t.keyword=e,W[e]=new y(e,t)}var a={num:new y("num",L),regexp:new y("regexp",L),string:new y("string",L),name:new y("name",L),privateId:new y("privateId",L),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",T),semi:new y(";",T),colon:new y(":",T),dot:new y("."),question:new y("?",T),questionDot:new y("?."),arrow:new y("=>",T),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",T),backQuote:new y("`",L),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("</>/<=/>=",7),bitShift:b("<</>>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:b("??",1),_break:C("break"),_case:C("case",T),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",T),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",T),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",L),_if:C("if"),_return:C("return",T),_switch:C("switch"),_throw:C("throw",T),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",L),_super:C("super",L),_class:C("class",L),_extends:C("extends",T),_export:C("export"),_import:C("import",L),_null:C("null",L),_true:C("true",L),_false:C("false",L),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,bt=new RegExp(j.source,"g");function $(e){return e===10||e===13||e===8232||e===8233}function vt(e,t,i){i===void 0&&(i=e.length);for(var s=t;s<i;s++){var n=e.charCodeAt(s);if($(n))return s<i-1&&n===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Je=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,q=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,St=Object.prototype,zi=St.hasOwnProperty,Gi=St.toString,le=Object.hasOwn||function(e,t){return zi.call(e,t)},kt=Array.isArray||function(e){return Gi.call(e)==="[object Array]"};function ee(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function Y(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Xi=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,re=function(t,i){this.line=t,this.column=i};re.prototype.offset=function(t){return new re(this.line,this.column+t)};var fe=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function ze(e,t){for(var i=1,s=0;;){var n=vt(e,s,t);if(n<0)return new re(i,t-s);++i,s=n}}var Ee={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Tt=!1;function Wi(e){var t={};for(var i in Ee)t[i]=e&&le(e,i)?e[i]:Ee[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Tt&&typeof console=="object"&&console.warn&&(Tt=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
6
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),kt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return kt(t.onComment)&&(t.onComment=Hi(t,t.onComment)),t}function Hi(e,t){return function(i,s,n,u,c,d){var g={type:i?"Block":"Line",value:s,start:n,end:u};e.locations&&(g.loc=new fe(this,c,d)),e.ranges&&(g.range=[n,u]),t.push(g)}}var de=1,ae=2,Ge=4,_t=8,wt=16,Ct=32,Xe=64,Et=128,me=256,We=de|ae|me;function He(e,t){return ae|(e?Ge:0)|(t?_t:0)}var Ae=0,Qe=1,H=2,At=3,Pt=4,It=5,V=function(t,i,s){this.options=t=Wi(t),this.sourceFile=t.sourceFile,this.keywords=ee(S[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=ee(n);var u=(n?n+" ":"")+f.strict;this.reservedWordsStrict=ee(u),this.reservedWordsStrictBind=ee(u+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
7
- `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(de),this.regexpState=null,this.privateNameStack=[]},G={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},G.inFunction.get=function(){return(this.currentVarScope().flags&ae)>0},G.inGenerator.get=function(){return(this.currentVarScope().flags&_t)>0&&!this.currentVarScope().inClassFieldInit},G.inAsync.get=function(){return(this.currentVarScope().flags&Ge)>0&&!this.currentVarScope().inClassFieldInit},G.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&me)return!1;if(t.flags&ae)return(t.flags&Ge)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},G.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Xe)>0||i||this.options.allowSuperOutsideMethod},G.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Et)>0},G.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},G.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ae|me))>0||i},G.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&me)>0},V.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n<t.length;n++)s=t[n](s);return s},V.parse=function(t,i){return new this(i,t).parse()},V.parseExpressionAt=function(t,i,s){var n=new this(s,t,i);return n.nextToken(),n.parseExpression()},V.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(V.prototype,G);var B=V.prototype,Qi=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;B.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){q.lastIndex=e,e+=q.exec(this.input)[0].length;var t=Qi.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){q.lastIndex=e+t[0].length;var i=q.exec(this.input),s=i.index+i[0].length,n=this.input.charAt(s);return n===";"||n==="}"||j.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,q.lastIndex=e,e+=q.exec(this.input)[0].length,this.input[e]===";"&&e++}},B.eat=function(e){return this.type===e?(this.next(),!0):!1},B.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc},B.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},B.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},B.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},B.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},B.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()},B.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},B.expect=function(e){this.eat(e)||this.unexpected()},B.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Pe=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},B.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},B.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},B.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var k=V.prototype;k.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==a.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,n=Object.keys(this.undefinedExports);s<n.length;s+=1){var u=n[s];this.raiseRecoverable(this.undefinedExports[u].start,"Export '"+u+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Ye={kind:"loop"},Yi={kind:"switch"};k.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;q.lastIndex=this.pos;var t=q.exec(this.input),i=this.pos+t[0].length,s=this.input.charCodeAt(i);if(s===91||s===92)return!0;if(e)return!1;if(s===123||s>55295&&s<56320)return!0;if(M(s,!0)){for(var n=i+1;m(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var u=this.input.slice(i,n);if(!R.test(u))return!0}return!1},k.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;q.lastIndex=this.pos;var e=q.exec(this.input),t=this.pos+e[0].length,i;return!j.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(m(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},k.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),u;switch(this.isLet(e)&&(s=a._var,u="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(n,s.keyword);case a._debugger:return this.parseDebuggerStatement(n);case a._do:return this.parseDoStatement(n);case a._for:return this.parseForStatement(n);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(n,!0);case a._if:return this.parseIfStatement(n);case a._return:return this.parseReturnStatement(n);case a._switch:return this.parseSwitchStatement(n);case a._throw:return this.parseThrowStatement(n);case a._try:return this.parseTryStatement(n);case a._const:case a._var:return u=u||this.value,e&&u!=="var"&&this.unexpected(),this.parseVarStatement(n,u);case a._while:return this.parseWhileStatement(n);case a._with:return this.parseWithStatement(n);case a.braceL:return this.parseBlock(!0,n);case a.semi:return this.parseEmptyStatement(n);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){q.lastIndex=this.pos;var c=q.exec(this.input),d=this.pos+c[0].length,g=this.input.charCodeAt(d);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var _=this.value,E=this.parseExpression();return s===a.name&&E.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(n,_,E,e):this.parseExpressionStatement(n,E)}},k.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var n=this.labels[s];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(i||n.kind==="loop")||e.label&&i))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},k.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},k.parseDoStatement=function(e){return this.next(),this.labels.push(Ye),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},k.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ye),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var u=this.isContextual("let"),c=!1,d=new Pe,g=this.parseExpression(t>-1?"await":!0,d);return this.type===a._in||(c=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),u&&c&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,d),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},k.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,xe|(i?0:Ze),!1,t)},k.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},k.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},k.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(Yi),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},k.parseThrowStatement=function(e){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Zi=[];k.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();if(this.next(),this.eat(a.parenL)){t.param=this.parseBindingAtom();var i=t.param.type==="Identifier";this.enterScope(i?Ct:0),this.checkLValPattern(t.param,i?Pt:H),this.expect(a.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},k.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},k.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ye),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},k.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},k.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},k.parseLabeledStatement=function(e,t,i,s){for(var n=0,u=this.labels;n<u.length;n+=1){var c=u[n];c.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var d=this.type.isLoop?"loop":this.type===a._switch?"switch":null,g=this.labels.length-1;g>=0;g--){var _=this.labels[g];if(_.statementStart===e.start)_.statementStart=this.start,_.kind=d;else break}return this.labels.push({name:t,kind:d,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},k.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},k.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},k.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},k.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},k.parseVar=function(e,t,i){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(a.eq)?s.init=this.parseMaybeAssign(t):i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():s.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(a.comma))break}return e},k.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Qe:H,!1)};var xe=1,Ze=2,Nt=4;k.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&Ze&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&xe&&(e.id=t&Nt&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&Ze)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Qe:H:At));var u=this.yieldPos,c=this.awaitPos,d=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(e.async,e.generator)),t&xe||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=u,this.awaitPos=c,this.awaitIdentPos=d,this.finishNode(e,t&xe?"FunctionDeclaration":"FunctionExpression")},k.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},k.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),u=!1;for(n.body=[],this.expect(a.braceL);this.type!==a.braceR;){var c=this.parseClassElement(e.superClass!==null);c&&(n.body.push(c),c.type==="MethodDefinition"&&c.kind==="constructor"?(u&&this.raise(c.start,"Duplicate constructor in the same class"),u=!0):c.key&&c.key.type==="PrivateIdentifier"&&$i(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},k.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,u=!1,c="method",d=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?d=!0:s="static"}if(i.static=d,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?u=!0:s="async"),!s&&(t>=9||!u)&&this.eat(a.star)&&(n=!0),!s&&!u&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||c!=="method"||n||u){var _=!i.static&&Ie(i,"constructor"),E=_&&e;_&&c!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=_?"constructor":c,this.parseClassMethod(i,n,u,E)}else this.parseClassField(i);return i},k.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword},k.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},k.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Ie(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var u=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&u.params.length!==0&&this.raiseRecoverable(u.start,"getter should have no params"),e.kind==="set"&&u.params.length!==1&&this.raiseRecoverable(u.start,"setter should have exactly one param"),e.kind==="set"&&u.params[0].type==="RestElement"&&this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},k.parseClassField=function(e){if(Ie(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Ie(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},k.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(me|Xe);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},k.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,H,!1)):(t===!0&&this.unexpected(),e.id=null)},k.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null},k.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},k.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],u=0;u<i.length;++u){var c=i[u];le(t,c.name)||(n?n.used.push(c):this.raiseRecoverable(c.start,"Private field '#"+c.name+"' must be declared in an enclosing class"))}};function $i(e,t){var i=t.key.name,s=e[i],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),s==="iget"&&n==="iset"||s==="iset"&&n==="iget"||s==="sget"&&n==="sset"||s==="sset"&&n==="sget"?(e[i]="true",!1):s?!0:(e[i]=n,!1)}function Ie(e,t){var i=e.computed,s=e.key;return!i&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}k.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(a._default)){this.checkExport(t,"default",this.lastTokStart);var i;if(this.type===a._function||(i=this.isAsyncFunction())){var s=this.startNode();this.next(),i&&this.next(),e.declaration=this.parseFunction(s,xe|Nt,!1,i)}else if(this.type===a._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var u=0,c=e.specifiers;u<c.length;u+=1){var d=c[u];this.checkUnreserved(d.local),this.checkLocalExport(d.local),d.local.type==="Literal"&&this.raise(d.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},k.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),le(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},k.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var s=0,n=t.properties;s<n.length;s+=1){var u=n[s];this.checkPatternExport(e,u)}else if(i==="ArrayPattern")for(var c=0,d=t.elements;c<d.length;c+=1){var g=d[c];g&&this.checkPatternExport(e,g)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"?this.checkPatternExport(e,t.argument):i==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)},k.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var n=s[i];this.checkPatternExport(e,n.id)}},k.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},k.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(e,s.exported,s.exported.start),t.push(this.finishNode(s,"ExportSpecifier"))}return t},k.parseImport=function(e){return this.next(),this.type===a.string?(e.specifiers=Zi,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},k.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,H),e.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(a.comma))return e}if(this.type===a.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,H),e.push(this.finishNode(s,"ImportNamespaceSpecifier")),e}for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;var n=this.startNode();n.imported=this.parseModuleExportName(),this.eatContextual("as")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLValSimple(n.local,H),e.push(this.finishNode(n,"ImportSpecifier"))}return e},k.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return Xi.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},k.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},k.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var J=V.prototype;J.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s<n.length;s+=1){var u=n[s];this.toAssignable(u,t),u.type==="RestElement"&&(u.argument.type==="ArrayPattern"||u.argument.type==="ObjectPattern")&&this.raise(u.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},J.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var n=e[s];n&&this.toAssignable(n,t)}if(i){var u=e[i-1];this.options.ecmaVersion===6&&t&&u&&u.type==="RestElement"&&u.argument.type!=="Identifier"&&this.unexpected(u.argument.start)}return e},J.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},J.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==a.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i){for(var s=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(a.comma),t&&this.type===a.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===a.ellipsis){var u=this.parseRestBinding();this.parseBindingListItem(u),s.push(u),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var c=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(c),s.push(c)}}return s},J.parseBindingListItem=function(e){return e},J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){t===void 0&&(t=Ae);var s=t!==Ae;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===H&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(le(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==It&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Ae),e.type){case"ObjectPattern":for(var s=0,n=e.properties;s<n.length;s+=1){var u=n[s];this.checkLValInnerPattern(u,t,i)}break;case"ArrayPattern":for(var c=0,d=e.elements;c<d.length;c+=1){var g=d[c];g&&this.checkLValInnerPattern(g,t,i)}break;default:this.checkLValSimple(e,t,i)}},J.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Ae),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var K=function(t,i,s,n,u){this.token=t,this.isExpr=!!i,this.preserveSpace=!!s,this.override=n,this.generator=!!u},I={b_stat:new K("{",!1),b_expr:new K("{",!0),b_tmpl:new K("${",!1),p_stat:new K("(",!1),p_expr:new K("(",!0),q_tmpl:new K("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new K("function",!1),f_expr:new K("function",!0),f_expr_gen:new K("function",!0,!1,null,!0),f_gen:new K("function",!1,!1,null,!0)},ne=V.prototype;ne.initialContext=function(){return[I.b_stat]},ne.curContext=function(){return this.context[this.context.length-1]},ne.braceIsBlock=function(e){var t=this.curContext();return t===I.f_expr||t===I.f_stat?!0:e===a.colon&&(t===I.b_stat||t===I.b_expr)?!t.isExpr:e===a._return||e===a.name&&this.exprAllowed?j.test(this.input.slice(this.lastTokEnd,this.start)):e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow?!0:e===a.braceL?t===I.b_stat:e===a._var||e===a._const||e===a.name?!1:!this.exprAllowed},ne.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1},ne.updateContext=function(e){var t,i=this.type;i.keyword&&e===a.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},ne.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===I.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},a.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?I.b_stat:I.b_expr),this.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.context.push(I.b_tmpl),this.exprAllowed=!0},a.parenL.updateContext=function(e){var t=e===a._if||e===a._for||e===a._with||e===a._while;this.context.push(t?I.p_stat:I.p_expr),this.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(e){e.beforeExpr&&e!==a._else&&!(e===a.semi&&this.curContext()!==I.p_stat)&&!(e===a._return&&j.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===a.colon||e===a.braceL)&&this.curContext()===I.b_stat)?this.context.push(I.f_expr):this.context.push(I.f_stat),this.exprAllowed=!1},a.backQuote.updateContext=function(){this.curContext()===I.q_tmpl?this.context.pop():this.context.push(I.q_tmpl),this.exprAllowed=!1},a.star.updateContext=function(e){if(e===a._function){var t=this.context.length-1;this.context[t]===I.f_expr?this.context[t]=I.f_expr_gen:this.context[t]=I.f_gen}this.exprAllowed=!0},a.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==a.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var w=V.prototype;w.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,n;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var u=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&u==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var c=t[n];if(c){var d;u==="init"?d=this.strict&&c.init||c.get||c.set:d=c.init||c[u],d&&this.raiseRecoverable(s.start,"Redefinition of property")}else c=t[n]={init:!1,get:!1,set:!1};c[u]=!0}},w.parseExpression=function(e,t){var i=this.start,s=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===a.comma){var u=this.startNodeAt(i,s);for(u.expressions=[n];this.eat(a.comma);)u.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(u,"SequenceExpression")}return n},w.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,n=-1,u=-1,c=-1;t?(n=t.parenthesizedAssign,u=t.trailingComma,c=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Pe,s=!0);var d=this.start,g=this.startLoc;(this.type===a.parenL||this.type===a.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var _=this.parseMaybeConditional(e,t);if(i&&(_=i.call(this,_,d,g)),this.type.isAssign){var E=this.startNodeAt(d,g);return E.operator=this.value,this.type===a.eq&&(_=this.toAssignable(_,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=_.start&&(t.shorthandAssign=-1),this.type===a.eq?this.checkLValPattern(_):this.checkLValSimple(_),E.left=_,this.next(),E.right=this.parseMaybeAssign(e),c>-1&&(t.doubleProto=c),this.finishNode(E,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),u>-1&&(t.trailingComma=u),_},w.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(a.question)){var u=this.startNodeAt(i,s);return u.test=n,u.consequent=this.parseMaybeAssign(),this.expect(a.colon),u.alternate=this.parseMaybeAssign(e),this.finishNode(u,"ConditionalExpression")}return n},w.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,i,s,-1,e)},w.parseExprOp=function(e,t,i,s,n){var u=this.type.binop;if(u!=null&&(!n||this.type!==a._in)&&u>s){var c=this.type===a.logicalOR||this.type===a.logicalAND,d=this.type===a.coalesce;d&&(u=a.logicalAND.binop);var g=this.value;this.next();var _=this.start,E=this.startLoc,O=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),_,E,u,n),te=this.buildBinary(t,i,e,O,g,c||d);return(c&&this.type===a.coalesce||d&&(this.type===a.logicalOR||this.type===a.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(te,t,i,s,n)}return e},w.buildBinary=function(e,t,i,s,n,u){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var c=this.startNodeAt(e,t);return c.left=i,c.operator=n,c.right=s,this.finishNode(c,u?"LogicalExpression":"BinaryExpression")},w.parseMaybeUnary=function(e,t,i,s){var n=this.start,u=this.startLoc,c;if(this.isContextual("await")&&this.canAwait)c=this.parseAwait(s),t=!0;else if(this.type.prefix){var d=this.startNode(),g=this.type===a.incDec;d.operator=this.value,d.prefix=!0,this.next(),d.argument=this.parseMaybeUnary(null,!0,g,s),this.checkExpressionErrors(e,!0),g?this.checkLValSimple(d.argument):this.strict&&d.operator==="delete"&&d.argument.type==="Identifier"?this.raiseRecoverable(d.start,"Deleting local variable in strict mode"):d.operator==="delete"&&Lt(d.argument)?this.raiseRecoverable(d.start,"Private fields can not be deleted"):t=!0,c=this.finishNode(d,g?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===a.privateId)(s||this.privateNameStack.length===0)&&this.unexpected(),c=this.parsePrivateIdent(),this.type!==a._in&&this.unexpected();else{if(c=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return c;for(;this.type.postfix&&!this.canInsertSemicolon();){var _=this.startNodeAt(n,u);_.operator=this.value,_.prefix=!1,_.argument=c,this.checkLValSimple(c),this.next(),c=this.finishNode(_,"UpdateExpression")}}if(!i&&this.eat(a.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,u,c,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return c};function Lt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Lt(e.expression)}w.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var u=this.parseSubscripts(n,i,s,!1,t);return e&&u.type==="MemberExpression"&&(e.parenthesizedAssign>=u.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=u.start&&(e.parenthesizedBind=-1),e.trailingComma>=u.start&&(e.trailingComma=-1)),u},w.parseSubscripts=function(e,t,i,s,n){for(var u=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,c=!1;;){var d=this.parseSubscript(e,t,i,s,u,c,n);if(d.optional&&(c=!0),d===e||d.type==="ArrowFunctionExpression"){if(c){var g=this.startNodeAt(t,i);g.expression=d,d=this.finishNode(g,"ChainExpression")}return d}e=d}},w.parseSubscript=function(e,t,i,s,n,u,c){var d=this.options.ecmaVersion>=11,g=d&&this.eat(a.questionDot);s&&g&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var _=this.eat(a.bracketL);if(_||g&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var E=this.startNodeAt(t,i);E.object=e,_?(E.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&e.type!=="Super"?E.property=this.parsePrivateIdent():E.property=this.parseIdent(this.options.allowReserved!=="never"),E.computed=!!_,d&&(E.optional=g),e=this.finishNode(E,"MemberExpression")}else if(!s&&this.eat(a.parenL)){var O=new Pe,te=this.yieldPos,be=this.awaitPos,oe=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Re=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,O);if(n&&!g&&!this.canInsertSemicolon()&&this.eat(a.arrow))return this.checkPatternErrors(O,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=te,this.awaitPos=be,this.awaitIdentPos=oe,this.parseArrowExpression(this.startNodeAt(t,i),Re,!0,c);this.checkExpressionErrors(O,!0),this.yieldPos=te||this.yieldPos,this.awaitPos=be||this.awaitPos,this.awaitIdentPos=oe||this.awaitIdentPos;var ue=this.startNodeAt(t,i);ue.callee=e,ue.arguments=Re,d&&(ue.optional=g),e=this.finishNode(ue,"CallExpression")}else if(this.type===a.backQuote){(g||u)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var he=this.startNodeAt(t,i);he.tag=e,he.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(he,"TaggedTemplateExpression")}return e},w.parseExprAtom=function(e,t){this.type===a.slash&&this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case a._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===a.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL&&this.unexpected(),this.finishNode(i,"Super");case a._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case a.name:var n=this.start,u=this.startLoc,c=this.containsEsc,d=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&d.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(n,u),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,u),[d],!1,t);if(this.options.ecmaVersion>=8&&d.name==="async"&&this.type===a.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return d=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,u),[d],!0,t)}return d;case a.regexp:var g=this.value;return i=this.parseLiteral(g.value),i.regex={pattern:g.pattern,flags:g.flags},i;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return i=this.startNode(),i.value=this.type===a._null?null:this.type===a._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case a.parenL:var _=this.start,E=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(E)&&(e.parenthesizedAssign=_),e.parenthesizedBind<0&&(e.parenthesizedBind=_)),E;case a.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case a.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case a._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},w.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case a.parenL:return this.parseDynamicImport(e);case a.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},w.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},w.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},w.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},w.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e},w.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,u=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var c=this.start,d=this.startLoc,g=[],_=!0,E=!1,O=new Pe,te=this.yieldPos,be=this.awaitPos,oe;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(_?_=!1:this.expect(a.comma),u&&this.afterTrailingComma(a.parenR,!0)){E=!0;break}else if(this.type===a.ellipsis){oe=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,O,this.parseParenItem));var Re=this.lastTokEnd,ue=this.lastTokEndLoc;if(this.expect(a.parenR),e&&!this.canInsertSemicolon()&&this.eat(a.arrow))return this.checkPatternErrors(O,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=te,this.awaitPos=be,this.parseParenArrowList(i,s,g,t);(!g.length||E)&&this.unexpected(this.lastTokStart),oe&&this.unexpected(oe),this.checkExpressionErrors(O,!0),this.yieldPos=te||this.yieldPos,this.awaitPos=be||this.awaitPos,g.length>1?(n=this.startNodeAt(c,d),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Re,ue)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var he=this.startNodeAt(i,s);return he.expression=n,this.finishNode(he,"ParenthesizedExpression")}else return n},w.parseParenItem=function(e){return e},w.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var es=[];w.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(a.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc,u=this.type===a._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),s,n,!0,!1),u&&e.callee.type==="ImportExpression"&&this.raise(s,"Cannot use new with import()"),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=es,this.finishNode(e,"NewExpression")},w.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
8
- `),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")},w.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},w.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},w.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var u=this.parseProperty(e,t);e||this.checkPropClash(u,n,t),i.properties.push(u)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},w.parseProperty=function(e,t){var i=this.startNode(),s,n,u,c;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(u=this.start,c=this.startLoc),e||(s=this.eat(a.star)));var d=this.containsEsc;return this.parsePropertyName(i),!e&&!d&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,u,c,t,d),this.finishNode(i,"Property")},w.parsePropertyValue=function(e,t,i,s,n,u,c,d){if((i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===a.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s);else if(!t&&!d&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq){(i||s)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var g=e.kind==="get"?0:1;if(e.value.params.length!==g){var _=e.value.start;e.kind==="get"?this.raiseRecoverable(_,"getter should have no params"):this.raiseRecoverable(_,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,u,this.copyNode(e.key)):this.type===a.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,u,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},w.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},w.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},w.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,u=this.awaitPos,c=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(He(t,s.generator)|Xe|(i?Et:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=u,this.awaitIdentPos=c,this.finishNode(s,"FunctionExpression")},w.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,u=this.awaitPos,c=this.awaitIdentPos;return this.enterScope(He(i,!1)|wt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=u,this.awaitIdentPos=c,this.finishNode(e,"ArrowFunctionExpression")},w.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==a.braceL,u=this.strict,c=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!u||d)&&(c=this.strictDirective(this.end),c&&d&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],c&&(this.strict=!0),this.checkParams(e,!u&&!c&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,It),e.body=this.parseBlock(!1,void 0,c&&!u),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},w.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var s=i[t];if(s.type!=="Identifier")return!1}return!0},w.checkParams=function(e,t){for(var i=Object.create(null),s=0,n=e.params;s<n.length;s+=1){var u=n[s];this.checkLValInnerPattern(u,Qe,t?null:i)}},w.parseExprList=function(e,t,i,s){for(var n=[],u=!0;!this.eat(e);){if(u)u=!1;else if(this.expect(a.comma),t&&this.afterTrailingComma(e))break;var c=void 0;i&&this.type===a.comma?c=null:this.type===a.ellipsis?(c=this.parseSpread(s),s&&this.type===a.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):c=this.parseMaybeAssign(!1,s),n.push(c)}return n},w.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}},w.parseIdent=function(e){var t=this.startNode();return this.type===a.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},w.parsePrivateIdent=function(){var e=this.startNode();return this.type===a.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},w.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(a.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},w.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ne=V.prototype;Ne.raise=function(e,t){var i=ze(this.input,e);t+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},Ne.raiseRecoverable=Ne.raise,Ne.curPosition=function(){if(this.options.locations)return new re(this.curLine,this.pos-this.lineStart)};var Z=V.prototype,ts=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Z.enterScope=function(e){this.scopeStack.push(new ts(e))},Z.exitScope=function(){this.scopeStack.pop()},Z.treatFunctionsAsVarInScope=function(e){return e.flags&ae||!this.inModule&&e.flags&de},Z.declareName=function(e,t,i){var s=!1;if(t===H){var n=this.currentScope();s=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&de&&delete this.undefinedExports[e]}else if(t===Pt){var u=this.currentScope();u.lexical.push(e)}else if(t===At){var c=this.currentScope();this.treatFunctionsAsVar?s=c.lexical.indexOf(e)>-1:s=c.lexical.indexOf(e)>-1||c.var.indexOf(e)>-1,c.functions.push(e)}else for(var d=this.scopeStack.length-1;d>=0;--d){var g=this.scopeStack[d];if(g.lexical.indexOf(e)>-1&&!(g.flags&Ct&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&de&&delete this.undefinedExports[e],g.flags&We)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},Z.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Z.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Z.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&We)return t}},Z.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&We&&!(t.flags&wt))return t}};var ye=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new fe(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ge=V.prototype;ge.startNode=function(){return new ye(this,this.start,this.startLoc)},ge.startNodeAt=function(e,t){return new ye(this,e,t)};function Vt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ge.finishNode=function(e,t){return Vt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ge.finishNodeAt=function(e,t,i,s){return Vt.call(this,e,t,i,s)},ge.copyNode=function(e){var t=new ye(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Rt="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ot=Rt+" Extended_Pictographic",Bt=Ot,Ft=Bt+" EBase EComp EMod EPres ExtPict",Dt=Ft,is=Dt,ss={9:Rt,10:Ot,11:Bt,12:Ft,13:Dt,14:is},Mt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",jt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ut=jt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",qt=Ut+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Kt=qt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Jt=Kt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",rs=Jt+" Kawi Nag_Mundari Nagm",as={9:jt,10:Ut,11:qt,12:Kt,13:Jt,14:rs},zt={};function ns(e){var t=zt[e]={binary:ee(ss[e]+" "+Mt),nonBinary:{General_Category:ee(Mt),Script:ee(as[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var $e=0,Gt=[9,10,11,12,13,14];$e<Gt.length;$e+=1){var os=Gt[$e];ns(os)}var v=V.prototype,Q=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":""),this.unicodeProperties=zt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Q.prototype.reset=function(t,i,s){var n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Q.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Q.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var u=s.charCodeAt(t);if(!(i||this.switchU)||u<=55295||u>=57344||t+1>=n)return u;var c=s.charCodeAt(t+1);return c>=56320&&c<=57343?(u<<10)+c-56613888:u},Q.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var u=s.charCodeAt(t),c;return!(i||this.switchU)||u<=55295||u>=57344||t+1>=n||(c=s.charCodeAt(t+1))<56320||c>57343?t+1:t+2},Q.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},Q.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Q.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Q.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},v.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=0;s<i.length;s++){var n=i.charAt(s);t.indexOf(n)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(n,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames.indexOf(s)===-1&&e.raise("Invalid named capture referenced")}},v.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},v.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},v.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},v.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},v.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},v.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},v.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},v.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Xt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Xt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Xt(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Y(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Y(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),us(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function us(e){return M(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),hs(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function hs(e){return m(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Le(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return Wt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Wt(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var u=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var c=e.lastIntValue;if(c>=56320&&c<=57343)return e.lastIntValue=(n-55296)*1024+(c-56320)+65536,!0}e.pos=u,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ps(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function ps(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cs(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function cs(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){le(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ht(t=e.current());)e.lastStringValue+=Y(t),e.advance();return e.lastStringValue!==""};function Ht(e){return Wt(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";ls(t=e.current());)e.lastStringValue+=Y(t),e.advance();return e.lastStringValue!==""};function ls(e){return Ht(e)||Le(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},v.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||Zt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_eatClassControlLetter=function(e){var t=e.current();return Le(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Le(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Le(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Qt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Yt(i),e.advance();return e.pos!==t};function Qt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Yt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return Zt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Zt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var n=e.current();if(!Qt(n))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Yt(n),e.advance()}return!0};var Ve=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new fe(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},A=V.prototype;A.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ve(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},A.getToken=function(){return this.next(),new Ve(this)},typeof Symbol<"u"&&(A[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===a.eof,value:t}}}}),A.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return M(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=vt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!$(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},A.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Je.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||j.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),M(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Y(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Y(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(j.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var u=this.pos,c=this.readWord1();this.containsEsc&&this.unexpected(u);var d=this.regexpState||(this.regexpState=new Q(this));d.reset(i,n,c),this.validateRegExpFlags(d),this.validateRegExpPattern(d);var g=null;try{g=new RegExp(n,c)}catch{}return this.finishToken(a.regexp,{pattern:n,flags:c,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,u=this.pos,c=0,d=0,g=0,_=t??1/0;g<_;++g,++this.pos){var E=this.input.charCodeAt(this.pos),O=void 0;if(s&&E===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),d===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),g===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),d=E;continue}if(E>=97?O=E-97+10:E>=65?O=E-65+10:E>=48&&E<=57?O=E-48:O=1/0,O>=e)break;d=E,c=c*e+O}return s&&d===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===u||t!=null&&this.pos-u!==t?null:c};function fs(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function $t(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=$t(this.input.slice(t,this.pos)),++this.pos):M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=$t(this.input.slice(t,this.pos));return++this.pos,M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),M(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var u=fs(this.input.slice(t,this.pos),i);return this.finishToken(a.num,u)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):($(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var ei={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ei)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ei;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if($(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
9
- `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(a.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},A.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
10
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Y(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return $(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(m(n,s))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var u=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?M:m)(c,s)||this.invalidStringToken(u,"Invalid Unicode escape"),e+=Y(c),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},A.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=W[e]),this.finishToken(t,e)};var ti="8.8.2";V.acorn={Parser:V,version:ti,defaultOptions:Ee,Position:re,SourceLocation:fe,getLineInfo:ze,Node:ye,TokenType:y,tokTypes:a,keywordTypes:W,TokContext:K,tokContexts:I,isIdentifierChar:m,isIdentifierStart:M,Token:Ve,isNewLine:$,lineBreak:j,lineBreakG:bt,nonASCIIwhitespace:Je};function ds(e,t){return V.parse(e,t)}function ms(e,t,i){return V.parseExpressionAt(e,t,i)}function xs(e,t){return V.tokenizer(e,t)}r.Node=ye,r.Parser=V,r.Position=re,r.SourceLocation=fe,r.TokContext=K,r.Token=Ve,r.TokenType=y,r.defaultOptions=Ee,r.getLineInfo=ze,r.isIdentifierChar=m,r.isIdentifierStart=M,r.isNewLine=$,r.keywordTypes=W,r.lineBreak=j,r.lineBreakG=bt,r.nonASCIIwhitespace=Je,r.parse=ds,r.parseExpressionAt=ms,r.tokContexts=I,r.tokTypes=a,r.tokenizer=xs,r.version=ti})});var Oi=ve((va,Ri)=>{Ri.exports={}});var dt=ve((Sa,ft)=>{"use strict";var Ys=Oi(),Zs=/^[\da-fA-F]+$/,$s=/^\d+$/,Bi=new WeakMap;function Fi(r){r=r.Parser.acorn||r;let o=Bi.get(r);if(!o){let p=r.tokTypes,h=r.TokContext,l=r.TokenType,f=new h("<tag",!1),x=new h("</tag",!1),S=new h("<tag>...</tag>",!0,!0),R={tc_oTag:f,tc_cTag:x,tc_expr:S},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(S),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(D){let z=this.context.pop();z===f&&D===p.slash||z===x?(this.context.pop(),this.exprAllowed=this.curContext()===S):this.exprAllowed=!0},o={tokContexts:R,tokTypes:P},Bi.set(r,o)}return o}function Ce(r){if(!r)return r;if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return Ce(r.object)+"."+Ce(r.property)}ft.exports=function(r){return r=r||{},function(o){return er({allowNamespaces:r.allowNamespaces!==!1,allowNamespacedObjects:!!r.allowNamespacedObjects},o)}};Object.defineProperty(ft.exports,"tokTypes",{get:function(){return Fi(we()).tokTypes},configurable:!0,enumerable:!0});function er(r,o){let p=o.acorn||we(),h=Fi(p),l=p.tokTypes,f=h.tokTypes,x=p.tokContexts,S=h.tokContexts.tc_oTag,R=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,D=p.isNewLine,z=p.isIdentifierStart,M=p.isIdentifierChar;return class extends o{static get acornJsx(){return h}jsx_readToken(){let m="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(m+=this.input.slice(y,this.pos),this.finishToken(f.jsxText,m));case 38:m+=this.input.slice(y,this.pos),m+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(b)?(m+=this.input.slice(y,this.pos),m+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(m){let y=this.input.charCodeAt(this.pos),b;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=m?`
1
+ var Ji=Object.create;var Gt=Object.defineProperty;var zi=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var Xi=Object.getPrototypeOf,Wi=Object.prototype.hasOwnProperty;var be=(a,u)=>()=>(u||a((u={exports:{}}).exports,u),u.exports);var Hi=(a,u,c,h)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of Gi(u))!Wi.call(a,l)&&l!==c&&Gt(a,l,{get:()=>u[l],enumerable:!(h=zi(u,l))||h.enumerable});return a};var Qi=(a,u,c)=>(c=a!=null?Ji(Xi(a)):{},Hi(u||!a||!a.__esModule?Gt(c,"default",{value:a,enumerable:!0}):c,a));var $t=be(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.extract=rs;te.parse=ns;te.parseWithComments=Zt;te.print=os;te.strip=as;var $i=/\*\/$/,es=/^\/\*\*?/,Qt=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ts=/(^|\s+)\/\/([^\r\n]*)/g,Xt=/^(\r?\n)+/,is=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wt=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,ss=/(\r?\n|^) *\* ?/g,Yt=[];function rs(a){let u=a.match(Qt);return u?u[0].trimLeft():""}function as(a){let u=a.match(Qt);return u&&u[0]?a.substring(u[0].length):a}function ns(a){return Zt(a).pragmas}function Zt(a){let u=`
2
+ `;a=a.replace(es,"").replace($i,"").replace(ss,"$1");let c="";for(;c!==a;)c=a,a=a.replace(is,`${u}$1 $2${u}`);a=a.replace(Xt,"").trimRight();let h=Object.create(null),l=a.replace(Wt,"").replace(Xt,"").trimRight(),f;for(;f=Wt.exec(a);){let x=f[2].replace(ts,"");typeof h[f[1]]=="string"||Array.isArray(h[f[1]])?h[f[1]]=Yt.concat(h[f[1]],x):h[f[1]]=x}return{comments:l,pragmas:h}}function os({comments:a="",pragmas:u={}}){let c=`
3
+ `,h="/**",l=" *",f=" */",x=Object.keys(u),S=x.map(P=>Ht(P,u[P])).reduce((P,F)=>P.concat(F),[]).map(P=>`${l} ${P}${c}`).join("");if(!a){if(x.length===0)return"";if(x.length===1&&!Array.isArray(u[x[0]])){let P=u[x[0]];return`${h} ${Ht(x[0],P)[0]}${f}`}}let V=a.split(c).map(P=>`${l} ${P}`).join(c)+c;return h+c+(a?V:"")+(a&&x.length?l+c:"")+S+f}function Ht(a,u){return Yt.concat(u).map(c=>`@${a} ${c}`.trim())}});var _e=be((je,ui)=>{(function(a,u){typeof je=="object"&&typeof ui<"u"?u(je):typeof define=="function"&&define.amd?define(["exports"],u):(a=typeof globalThis<"u"?globalThis:a||self,u(a.acorn={}))})(je,function(a){"use strict";var u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],h="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",l="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",f={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},x="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",S={5:x,"5module":x+" export import",6:x+" const class extends export import super"},V=/^in(stanceof)?$/,P=new RegExp("["+l+"]"),F=new RegExp("["+l+h+"]");function J(e,t){for(var i=65536,s=0;s<t.length;s+=2){if(i+=t[s],i>e)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function D(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&P.test(String.fromCharCode(e)):t===!1?!1:J(e,c)}function m(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&F.test(String.fromCharCode(e)):t===!1?!1:J(e,c)||J(e,u)}var y=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function b(e,t){return new y(e,{beforeExpr:!0,binop:t})}var T={beforeExpr:!0},N={startsExpr:!0},X={};function C(e,t){return t===void 0&&(t={}),t.keyword=e,X[e]=new y(e,t)}var r={num:new y("num",N),regexp:new y("regexp",N),string:new y("string",N),name:new y("name",N),privateId:new y("privateId",N),eof:new y("eof"),bracketL:new y("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new y("]"),braceL:new y("{",{beforeExpr:!0,startsExpr:!0}),braceR:new y("}"),parenL:new y("(",{beforeExpr:!0,startsExpr:!0}),parenR:new y(")"),comma:new y(",",T),semi:new y(";",T),colon:new y(":",T),dot:new y("."),question:new y("?",T),questionDot:new y("?."),arrow:new y("=>",T),template:new y("template"),invalidTemplate:new y("invalidTemplate"),ellipsis:new y("...",T),backQuote:new y("`",N),dollarBraceL:new y("${",{beforeExpr:!0,startsExpr:!0}),eq:new y("=",{beforeExpr:!0,isAssign:!0}),assign:new y("_=",{beforeExpr:!0,isAssign:!0}),incDec:new y("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new y("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("</>/<=/>=",7),bitShift:b("<</>>/>>>",8),plusMin:new y("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new y("**",{beforeExpr:!0}),coalesce:b("??",1),_break:C("break"),_case:C("case",T),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",T),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",T),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",N),_if:C("if"),_return:C("return",T),_switch:C("switch"),_throw:C("throw",T),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",N),_super:C("super",N),_class:C("class",N),_extends:C("extends",T),_export:C("export"),_import:C("import",N),_null:C("null",N),_true:C("true",N),_false:C("false",N),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},M=/\r\n?|\n|\u2028|\u2029/,ht=new RegExp(M.source,"g");function Z(e){return e===10||e===13||e===8232||e===8233}function pt(e,t,i){i===void 0&&(i=e.length);for(var s=t;s<i;s++){var n=e.charCodeAt(s);if(Z(n))return s<i-1&&n===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var qe=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,U=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ct=Object.prototype,gi=ct.hasOwnProperty,bi=ct.toString,ce=Object.hasOwn||function(e,t){return gi.call(e,t)},lt=Array.isArray||function(e){return bi.call(e)==="[object Array]"};function $(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function Q(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var vi=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,se=function(t,i){this.line=t,this.column=i};se.prototype.offset=function(t){return new se(this.line,this.column+t)};var le=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ke(e,t){for(var i=1,s=0;;){var n=pt(e,s,t);if(n<0)return new se(i,t-s);++i,s=n}}var Ce={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ft=!1;function Si(e){var t={};for(var i in Ce)t[i]=e&&ce(e,i)?e[i]:Ce[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ft&&typeof console=="object"&&console.warn&&(ft=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
4
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),lt(t.onToken)){var s=t.onToken;t.onToken=function(n){return s.push(n)}}return lt(t.onComment)&&(t.onComment=ki(t,t.onComment)),t}function ki(e,t){return function(i,s,n,o,p,d){var g={type:i?"Block":"Line",value:s,start:n,end:o};e.locations&&(g.loc=new le(this,p,d)),e.ranges&&(g.range=[n,o]),t.push(g)}}var fe=1,re=2,Je=4,dt=8,mt=16,xt=32,ze=64,yt=128,de=256,Ge=fe|re|de;function Xe(e,t){return re|(e?Je:0)|(t?dt:0)}var Ee=0,We=1,W=2,gt=3,bt=4,vt=5,L=function(t,i,s){this.options=t=Si(t),this.sourceFile=t.sourceFile,this.keywords=$(S[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";t.allowReserved!==!0&&(n=f[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(n+=" await")),this.reservedWords=$(n);var o=(n?n+" ":"")+f.strict;this.reservedWordsStrict=$(o),this.reservedWordsStrictBind=$(o+" "+f.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
5
+ `,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(M).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=r.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(fe),this.regexpState=null,this.privateNameStack=[]},z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};L.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},z.inFunction.get=function(){return(this.currentVarScope().flags&re)>0},z.inGenerator.get=function(){return(this.currentVarScope().flags&dt)>0&&!this.currentVarScope().inClassFieldInit},z.inAsync.get=function(){return(this.currentVarScope().flags&Je)>0&&!this.currentVarScope().inClassFieldInit},z.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&de)return!1;if(t.flags&re)return(t.flags&Je)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},z.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&ze)>0||i||this.options.allowSuperOutsideMethod},z.allowDirectSuper.get=function(){return(this.currentThisScope().flags&yt)>0},z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},z.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(re|de))>0||i},z.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&de)>0},L.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,n=0;n<t.length;n++)s=t[n](s);return s},L.parse=function(t,i){return new this(i,t).parse()},L.parseExpressionAt=function(t,i,s){var n=new this(s,t,i);return n.nextToken(),n.parseExpression()},L.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(L.prototype,z);var O=L.prototype,Ti=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;O.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){U.lastIndex=e,e+=U.exec(this.input)[0].length;var t=Ti.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){U.lastIndex=e+t[0].length;var i=U.exec(this.input),s=i.index+i[0].length,n=this.input.charAt(s);return n===";"||n==="}"||M.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||n==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,U.lastIndex=e,e+=U.exec(this.input)[0].length,this.input[e]===";"&&e++}},O.eat=function(e){return this.type===e?(this.next(),!0):!1},O.isContextual=function(e){return this.type===r.name&&this.value===e&&!this.containsEsc},O.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},O.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},O.canInsertSemicolon=function(){return this.type===r.eof||this.type===r.braceR||M.test(this.input.slice(this.lastTokEnd,this.start))},O.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},O.semicolon=function(){!this.eat(r.semi)&&!this.insertSemicolon()&&this.unexpected()},O.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},O.expect=function(e){this.eat(e)||this.unexpected()},O.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Ae=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},O.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},O.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},O.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var k=L.prototype;k.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==r.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,n=Object.keys(this.undefinedExports);s<n.length;s+=1){var o=n[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var He={kind:"loop"},_i={kind:"switch"};k.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;U.lastIndex=this.pos;var t=U.exec(this.input),i=this.pos+t[0].length,s=this.input.charCodeAt(i);if(s===91||s===92)return!0;if(e)return!1;if(s===123||s>55295&&s<56320)return!0;if(D(s,!0)){for(var n=i+1;m(s=this.input.charCodeAt(n),!0);)++n;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,n);if(!V.test(o))return!0}return!1},k.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;U.lastIndex=this.pos;var e=U.exec(this.input),t=this.pos+e[0].length,i;return!M.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(m(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},k.parseStatement=function(e,t,i){var s=this.type,n=this.startNode(),o;switch(this.isLet(e)&&(s=r._var,o="let"),s){case r._break:case r._continue:return this.parseBreakContinueStatement(n,s.keyword);case r._debugger:return this.parseDebuggerStatement(n);case r._do:return this.parseDoStatement(n);case r._for:return this.parseForStatement(n);case r._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case r._class:return e&&this.unexpected(),this.parseClass(n,!0);case r._if:return this.parseIfStatement(n);case r._return:return this.parseReturnStatement(n);case r._switch:return this.parseSwitchStatement(n);case r._throw:return this.parseThrowStatement(n);case r._try:return this.parseTryStatement(n);case r._const:case r._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(n,o);case r._while:return this.parseWhileStatement(n);case r._with:return this.parseWithStatement(n);case r.braceL:return this.parseBlock(!0,n);case r.semi:return this.parseEmptyStatement(n);case r._export:case r._import:if(this.options.ecmaVersion>10&&s===r._import){U.lastIndex=this.pos;var p=U.exec(this.input),d=this.pos+p[0].length,g=this.input.charCodeAt(d);if(g===40||g===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===r._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var _=this.value,E=this.parseExpression();return s===r.name&&E.type==="Identifier"&&this.eat(r.colon)?this.parseLabeledStatement(n,_,E,e):this.parseExpressionStatement(n,E)}},k.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(r.semi)||this.insertSemicolon()?e.label=null:this.type!==r.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var n=this.labels[s];if((e.label==null||n.name===e.label.name)&&(n.kind!=null&&(i||n.kind==="loop")||e.label&&i))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},k.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},k.parseDoStatement=function(e){return this.next(),this.labels.push(He),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(r._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(r.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},k.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(He),this.enterScope(0),this.expect(r.parenL),this.type===r.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===r._var||this.type===r._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var o=this.isContextual("let"),p=!1,d=new Ae,g=this.parseExpression(t>-1?"await":!0,d);return this.type===r._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===r._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&p&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,d),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(d,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))},k.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,me|(i?0:Qe),!1,t)},k.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(r._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},k.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(r.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},k.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(r.braceL),this.labels.push(_i),this.enterScope(0);for(var t,i=!1;this.type!==r.braceR;)if(this.type===r._case||this.type===r._default){var s=this.type===r._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(r.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},k.parseThrowStatement=function(e){return this.next(),M.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var wi=[];k.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===r._catch){var t=this.startNode();if(this.next(),this.eat(r.parenL)){t.param=this.parseBindingAtom();var i=t.param.type==="Identifier";this.enterScope(i?xt:0),this.checkLValPattern(t.param,i?bt:W),this.expect(r.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(r._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},k.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},k.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(He),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},k.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},k.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},k.parseLabeledStatement=function(e,t,i,s){for(var n=0,o=this.labels;n<o.length;n+=1){var p=o[n];p.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var d=this.type.isLoop?"loop":this.type===r._switch?"switch":null,g=this.labels.length-1;g>=0;g--){var _=this.labels[g];if(_.statementStart===e.start)_.statementStart=this.start,_.kind=d;else break}return this.labels.push({name:t,kind:d,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},k.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},k.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(r.braceL),e&&this.enterScope(0);this.type!==r.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},k.parseFor=function(e,t){return e.init=t,this.expect(r.semi),e.test=this.type===r.semi?null:this.parseExpression(),this.expect(r.semi),e.update=this.type===r.parenR?null:this.parseExpression(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},k.parseForIn=function(e,t){var i=this.type===r._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(r.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},k.parseVar=function(e,t,i){for(e.declarations=[],e.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(r.eq)?s.init=this.parseMaybeAssign(t):i==="const"&&!(this.type===r._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():s.id.type!=="Identifier"&&!(t&&(this.type===r._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(r.comma))break}return e},k.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?We:W,!1)};var me=1,Qe=2,St=4;k.parseFunction=function(e,t,i,s,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===r.star&&t&Qe&&this.unexpected(),e.generator=this.eat(r.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&me&&(e.id=t&St&&this.type!==r.name?null:this.parseIdent(),e.id&&!(t&Qe)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?We:W:gt));var o=this.yieldPos,p=this.awaitPos,d=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Xe(e.async,e.generator)),t&me||(e.id=this.type===r.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=o,this.awaitPos=p,this.awaitIdentPos=d,this.finishNode(e,t&me?"FunctionDeclaration":"FunctionExpression")},k.parseFunctionParams=function(e){this.expect(r.parenL),e.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},k.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),n=this.startNode(),o=!1;for(n.body=[],this.expect(r.braceL);this.type!==r.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(n.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(o&&this.raise(p.start,"Duplicate constructor in the same class"),o=!0):p.key&&p.key.type==="PrivateIdentifier"&&Ci(s,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},k.parseClassElement=function(e){if(this.eat(r.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,o=!1,p="method",d=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(r.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===r.star?d=!0:s="static"}if(i.static=d,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===r.star)&&!this.canInsertSemicolon()?o=!0:s="async"),!s&&(t>=9||!o)&&this.eat(r.star)&&(n=!0),!s&&!o&&!n){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=g:s=g)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===r.parenL||p!=="method"||n||o){var _=!i.static&&Pe(i,"constructor"),E=_&&e;_&&p!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=_?"constructor":p,this.parseClassMethod(i,n,o,E)}else this.parseClassField(i);return i},k.isClassElementNameStart=function(){return this.type===r.name||this.type===r.privateId||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword},k.parseClassElementName=function(e){this.type===r.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},k.parseClassMethod=function(e,t,i,s){var n=e.key;e.kind==="constructor"?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&Pe(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&o.params.length!==0&&this.raiseRecoverable(o.start,"getter should have no params"),e.kind==="set"&&o.params.length!==1&&this.raiseRecoverable(o.start,"setter should have exactly one param"),e.kind==="set"&&o.params[0].type==="RestElement"&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},k.parseClassField=function(e){if(Pe(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Pe(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(r.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},k.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(de|ze);this.type!==r.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},k.parseClassId=function(e,t){this.type===r.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,W,!1)):(t===!0&&this.unexpected(),e.id=null)},k.parseClassSuper=function(e){e.superClass=this.eat(r._extends)?this.parseExprSubscripts(null,!1):null},k.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},k.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,i=e.used,s=this.privateNameStack.length,n=s===0?null:this.privateNameStack[s-1],o=0;o<i.length;++o){var p=i[o];ce(t,p.name)||(n?n.used.push(p):this.raiseRecoverable(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class"))}};function Ci(e,t){var i=t.key.name,s=e[i],n="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(n=(t.static?"s":"i")+t.kind),s==="iget"&&n==="iset"||s==="iset"&&n==="iget"||s==="sget"&&n==="sset"||s==="sset"&&n==="sget"?(e[i]="true",!1):s?!0:(e[i]=n,!1)}function Pe(e,t){var i=e.computed,s=e.key;return!i&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}k.parseExport=function(e,t){if(this.next(),this.eat(r.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(r._default)){this.checkExport(t,"default",this.lastTokStart);var i;if(this.type===r._function||(i=this.isAsyncFunction())){var s=this.startNode();this.next(),i&&this.next(),e.declaration=this.parseFunction(s,me|St,!1,i)}else if(this.type===r._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==r.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,p=e.specifiers;o<p.length;o+=1){var d=p[o];this.checkUnreserved(d.local),this.checkLocalExport(d.local),d.local.type==="Literal"&&this.raise(d.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},k.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),ce(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},k.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var s=0,n=t.properties;s<n.length;s+=1){var o=n[s];this.checkPatternExport(e,o)}else if(i==="ArrayPattern")for(var p=0,d=t.elements;p<d.length;p+=1){var g=d[p];g&&this.checkPatternExport(e,g)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"?this.checkPatternExport(e,t.argument):i==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)},k.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var n=s[i];this.checkPatternExport(e,n.id)}},k.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},k.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(r.braceL);!this.eat(r.braceR);){if(i)i=!1;else if(this.expect(r.comma),this.afterTrailingComma(r.braceR))break;var s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(e,s.exported,s.exported.start),t.push(this.finishNode(s,"ExportSpecifier"))}return t},k.parseImport=function(e){return this.next(),this.type===r.string?(e.specifiers=wi,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===r.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},k.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===r.name){var i=this.startNode();if(i.local=this.parseIdent(),this.checkLValSimple(i.local,W),e.push(this.finishNode(i,"ImportDefaultSpecifier")),!this.eat(r.comma))return e}if(this.type===r.star){var s=this.startNode();return this.next(),this.expectContextual("as"),s.local=this.parseIdent(),this.checkLValSimple(s.local,W),e.push(this.finishNode(s,"ImportNamespaceSpecifier")),e}for(this.expect(r.braceL);!this.eat(r.braceR);){if(t)t=!1;else if(this.expect(r.comma),this.afterTrailingComma(r.braceR))break;var n=this.startNode();n.imported=this.parseModuleExportName(),this.eatContextual("as")?n.local=this.parseIdent():(this.checkUnreserved(n.imported),n.local=n.imported),this.checkLValSimple(n.local,W),e.push(this.finishNode(n,"ImportSpecifier"))}return e},k.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===r.string){var e=this.parseLiteral(this.value);return vi.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},k.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},k.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var K=L.prototype;K.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=e.properties;s<n.length;s+=1){var o=n[s];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},K.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var n=e[s];n&&this.toAssignable(n,t)}if(i){var o=e[i-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e},K.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},K.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==r.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},K.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case r.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(r.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case r.braceL:return this.parseObj(!0)}return this.parseIdent()},K.parseBindingList=function(e,t,i){for(var s=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(r.comma),t&&this.type===r.comma)s.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===r.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),s.push(o),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var p=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(p),s.push(p)}}return s},K.parseBindingListItem=function(e){return e},K.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(r.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},K.checkLValSimple=function(e,t,i){t===void 0&&(t=Ee);var s=t!==Ee;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===W&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(ce(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==vt&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},K.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=Ee),e.type){case"ObjectPattern":for(var s=0,n=e.properties;s<n.length;s+=1){var o=n[s];this.checkLValInnerPattern(o,t,i)}break;case"ArrayPattern":for(var p=0,d=e.elements;p<d.length;p+=1){var g=d[p];g&&this.checkLValInnerPattern(g,t,i)}break;default:this.checkLValSimple(e,t,i)}},K.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=Ee),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var q=function(t,i,s,n,o){this.token=t,this.isExpr=!!i,this.preserveSpace=!!s,this.override=n,this.generator=!!o},I={b_stat:new q("{",!1),b_expr:new q("{",!0),b_tmpl:new q("${",!1),p_stat:new q("(",!1),p_expr:new q("(",!0),q_tmpl:new q("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new q("function",!1),f_expr:new q("function",!0),f_expr_gen:new q("function",!0,!1,null,!0),f_gen:new q("function",!1,!1,null,!0)},ae=L.prototype;ae.initialContext=function(){return[I.b_stat]},ae.curContext=function(){return this.context[this.context.length-1]},ae.braceIsBlock=function(e){var t=this.curContext();return t===I.f_expr||t===I.f_stat?!0:e===r.colon&&(t===I.b_stat||t===I.b_expr)?!t.isExpr:e===r._return||e===r.name&&this.exprAllowed?M.test(this.input.slice(this.lastTokEnd,this.start)):e===r._else||e===r.semi||e===r.eof||e===r.parenR||e===r.arrow?!0:e===r.braceL?t===I.b_stat:e===r._var||e===r._const||e===r.name?!1:!this.exprAllowed},ae.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1},ae.updateContext=function(e){var t,i=this.type;i.keyword&&e===r.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},ae.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},r.parenR.updateContext=r.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===I.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},r.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?I.b_stat:I.b_expr),this.exprAllowed=!0},r.dollarBraceL.updateContext=function(){this.context.push(I.b_tmpl),this.exprAllowed=!0},r.parenL.updateContext=function(e){var t=e===r._if||e===r._for||e===r._with||e===r._while;this.context.push(t?I.p_stat:I.p_expr),this.exprAllowed=!0},r.incDec.updateContext=function(){},r._function.updateContext=r._class.updateContext=function(e){e.beforeExpr&&e!==r._else&&!(e===r.semi&&this.curContext()!==I.p_stat)&&!(e===r._return&&M.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===r.colon||e===r.braceL)&&this.curContext()===I.b_stat)?this.context.push(I.f_expr):this.context.push(I.f_stat),this.exprAllowed=!1},r.backQuote.updateContext=function(){this.curContext()===I.q_tmpl?this.context.pop():this.context.push(I.q_tmpl),this.exprAllowed=!1},r.star.updateContext=function(e){if(e===r._function){var t=this.context.length-1;this.context[t]===I.f_expr?this.context[t]=I.f_expr_gen:this.context[t]=I.f_gen}this.exprAllowed=!0},r.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==r.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var w=L.prototype;w.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,n;switch(s.type){case"Identifier":n=s.name;break;case"Literal":n=String(s.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){n==="__proto__"&&o==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}n="$"+n;var p=t[n];if(p){var d;o==="init"?d=this.strict&&p.init||p.get||p.set:d=p.init||p[o],d&&this.raiseRecoverable(s.start,"Redefinition of property")}else p=t[n]={init:!1,get:!1,set:!1};p[o]=!0}},w.parseExpression=function(e,t){var i=this.start,s=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===r.comma){var o=this.startNodeAt(i,s);for(o.expressions=[n];this.eat(r.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return n},w.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,n=-1,o=-1,p=-1;t?(n=t.parenthesizedAssign,o=t.trailingComma,p=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Ae,s=!0);var d=this.start,g=this.startLoc;(this.type===r.parenL||this.type===r.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var _=this.parseMaybeConditional(e,t);if(i&&(_=i.call(this,_,d,g)),this.type.isAssign){var E=this.startNodeAt(d,g);return E.operator=this.value,this.type===r.eq&&(_=this.toAssignable(_,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=_.start&&(t.shorthandAssign=-1),this.type===r.eq?this.checkLValPattern(_):this.checkLValSimple(_),E.left=_,this.next(),E.right=this.parseMaybeAssign(e),p>-1&&(t.doubleProto=p),this.finishNode(E,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return n>-1&&(t.parenthesizedAssign=n),o>-1&&(t.trailingComma=o),_},w.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(r.question)){var o=this.startNodeAt(i,s);return o.test=n,o.consequent=this.parseMaybeAssign(),this.expect(r.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return n},w.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&n.type==="ArrowFunctionExpression"?n:this.parseExprOp(n,i,s,-1,e)},w.parseExprOp=function(e,t,i,s,n){var o=this.type.binop;if(o!=null&&(!n||this.type!==r._in)&&o>s){var p=this.type===r.logicalOR||this.type===r.logicalAND,d=this.type===r.coalesce;d&&(o=r.logicalAND.binop);var g=this.value;this.next();var _=this.start,E=this.startLoc,R=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),_,E,o,n),ee=this.buildBinary(t,i,e,R,g,p||d);return(p&&this.type===r.coalesce||d&&(this.type===r.logicalOR||this.type===r.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(ee,t,i,s,n)}return e},w.buildBinary=function(e,t,i,s,n,o){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var p=this.startNodeAt(e,t);return p.left=i,p.operator=n,p.right=s,this.finishNode(p,o?"LogicalExpression":"BinaryExpression")},w.parseMaybeUnary=function(e,t,i,s){var n=this.start,o=this.startLoc,p;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(s),t=!0;else if(this.type.prefix){var d=this.startNode(),g=this.type===r.incDec;d.operator=this.value,d.prefix=!0,this.next(),d.argument=this.parseMaybeUnary(null,!0,g,s),this.checkExpressionErrors(e,!0),g?this.checkLValSimple(d.argument):this.strict&&d.operator==="delete"&&d.argument.type==="Identifier"?this.raiseRecoverable(d.start,"Deleting local variable in strict mode"):d.operator==="delete"&&kt(d.argument)?this.raiseRecoverable(d.start,"Private fields can not be deleted"):t=!0,p=this.finishNode(d,g?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===r.privateId)(s||this.privateNameStack.length===0)&&this.unexpected(),p=this.parsePrivateIdent(),this.type!==r._in&&this.unexpected();else{if(p=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return p;for(;this.type.postfix&&!this.canInsertSemicolon();){var _=this.startNodeAt(n,o);_.operator=this.value,_.prefix=!1,_.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(_,"UpdateExpression")}}if(!i&&this.eat(r.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(n,o,p,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return p};function kt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&kt(e.expression)}w.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,n=this.parseExprAtom(e,t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var o=this.parseSubscripts(n,i,s,!1,t);return e&&o.type==="MemberExpression"&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},w.parseSubscripts=function(e,t,i,s,n){for(var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,p=!1;;){var d=this.parseSubscript(e,t,i,s,o,p,n);if(d.optional&&(p=!0),d===e||d.type==="ArrowFunctionExpression"){if(p){var g=this.startNodeAt(t,i);g.expression=d,d=this.finishNode(g,"ChainExpression")}return d}e=d}},w.parseSubscript=function(e,t,i,s,n,o,p){var d=this.options.ecmaVersion>=11,g=d&&this.eat(r.questionDot);s&&g&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var _=this.eat(r.bracketL);if(_||g&&this.type!==r.parenL&&this.type!==r.backQuote||this.eat(r.dot)){var E=this.startNodeAt(t,i);E.object=e,_?(E.property=this.parseExpression(),this.expect(r.bracketR)):this.type===r.privateId&&e.type!=="Super"?E.property=this.parsePrivateIdent():E.property=this.parseIdent(this.options.allowReserved!=="never"),E.computed=!!_,d&&(E.optional=g),e=this.finishNode(E,"MemberExpression")}else if(!s&&this.eat(r.parenL)){var R=new Ae,ee=this.yieldPos,ge=this.awaitPos,ne=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ve=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1,R);if(n&&!g&&!this.canInsertSemicolon()&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=ee,this.awaitPos=ge,this.awaitIdentPos=ne,this.parseArrowExpression(this.startNodeAt(t,i),Ve,!0,p);this.checkExpressionErrors(R,!0),this.yieldPos=ee||this.yieldPos,this.awaitPos=ge||this.awaitPos,this.awaitIdentPos=ne||this.awaitIdentPos;var oe=this.startNodeAt(t,i);oe.callee=e,oe.arguments=Ve,d&&(oe.optional=g),e=this.finishNode(oe,"CallExpression")}else if(this.type===r.backQuote){(g||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var ue=this.startNodeAt(t,i);ue.tag=e,ue.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(ue,"TaggedTemplateExpression")}return e},w.parseExprAtom=function(e,t){this.type===r.slash&&this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case r._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===r.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==r.dot&&this.type!==r.bracketL&&this.type!==r.parenL&&this.unexpected(),this.finishNode(i,"Super");case r._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case r.name:var n=this.start,o=this.startLoc,p=this.containsEsc,d=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!p&&d.name==="async"&&!this.canInsertSemicolon()&&this.eat(r._function))return this.overrideContext(I.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(r.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[d],!1,t);if(this.options.ecmaVersion>=8&&d.name==="async"&&this.type===r.name&&!p&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return d=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(r.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[d],!0,t)}return d;case r.regexp:var g=this.value;return i=this.parseLiteral(g.value),i.regex={pattern:g.pattern,flags:g.flags},i;case r.num:case r.string:return this.parseLiteral(this.value);case r._null:case r._true:case r._false:return i=this.startNode(),i.value=this.type===r._null?null:this.type===r._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case r.parenL:var _=this.start,E=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(E)&&(e.parenthesizedAssign=_),e.parenthesizedBind<0&&(e.parenthesizedBind=_)),E;case r.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(r.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case r.braceL:return this.overrideContext(I.b_expr),this.parseObj(!1,e);case r._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case r._class:return this.parseClass(this.startNode(),!1);case r._new:return this.parseNew();case r.backQuote:return this.parseTemplate();case r._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},w.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case r.parenL:return this.parseDynamicImport(e);case r.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},w.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(r.parenR)){var t=this.start;this.eat(r.comma)&&this.eat(r.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},w.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},w.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},w.parseParenExpression=function(){this.expect(r.parenL);var e=this.parseExpression();return this.expect(r.parenR),e},w.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,n,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,d=this.startLoc,g=[],_=!0,E=!1,R=new Ae,ee=this.yieldPos,ge=this.awaitPos,ne;for(this.yieldPos=0,this.awaitPos=0;this.type!==r.parenR;)if(_?_=!1:this.expect(r.comma),o&&this.afterTrailingComma(r.parenR,!0)){E=!0;break}else if(this.type===r.ellipsis){ne=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,R,this.parseParenItem));var Ve=this.lastTokEnd,oe=this.lastTokEndLoc;if(this.expect(r.parenR),e&&!this.canInsertSemicolon()&&this.eat(r.arrow))return this.checkPatternErrors(R,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=ee,this.awaitPos=ge,this.parseParenArrowList(i,s,g,t);(!g.length||E)&&this.unexpected(this.lastTokStart),ne&&this.unexpected(ne),this.checkExpressionErrors(R,!0),this.yieldPos=ee||this.yieldPos,this.awaitPos=ge||this.awaitPos,g.length>1?(n=this.startNodeAt(p,d),n.expressions=g,this.finishNodeAt(n,"SequenceExpression",Ve,oe)):n=g[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var ue=this.startNodeAt(i,s);return ue.expression=n,this.finishNode(ue,"ParenthesizedExpression")}else return n},w.parseParenItem=function(e){return e},w.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Ei=[];w.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(r.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,n=this.startLoc,o=this.type===r._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),s,n,!0,!1),o&&e.callee.type==="ImportExpression"&&this.raise(s,"Cannot use new with import()"),this.eat(r.parenL)?e.arguments=this.parseExprList(r.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Ei,this.finishNode(e,"NewExpression")},w.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===r.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
6
+ `),cooked:this.value},this.next(),i.tail=this.type===r.backQuote,this.finishNode(i,"TemplateElement")},w.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===r.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(r.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(r.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},w.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===r.name||this.type===r.num||this.type===r.string||this.type===r.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===r.star)&&!M.test(this.input.slice(this.lastTokEnd,this.start))},w.parseObj=function(e,t){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(r.braceR);){if(s)s=!1;else if(this.expect(r.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(r.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,n,t),i.properties.push(o)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},w.parseProperty=function(e,t){var i=this.startNode(),s,n,o,p;if(this.options.ecmaVersion>=9&&this.eat(r.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===r.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===r.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(o=this.start,p=this.startLoc),e||(s=this.eat(r.star)));var d=this.containsEsc;return this.parsePropertyName(i),!e&&!d&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(n=!0,s=this.options.ecmaVersion>=9&&this.eat(r.star),this.parsePropertyName(i)):n=!1,this.parsePropertyValue(i,e,s,n,o,p,t,d),this.finishNode(i,"Property")},w.parsePropertyValue=function(e,t,i,s,n,o,p,d){if((i||s)&&this.type===r.colon&&this.unexpected(),this.eat(r.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===r.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s);else if(!t&&!d&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==r.comma&&this.type!==r.braceR&&this.type!==r.eq){(i||s)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var g=e.kind==="get"?0:1;if(e.value.params.length!==g){var _=e.value.start;e.kind==="get"?this.raiseRecoverable(_,"getter should have no params"):this.raiseRecoverable(_,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key)):this.type===r.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},w.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(r.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(r.bracketR),e.key;e.computed=!1}return e.key=this.type===r.num||this.type===r.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},w.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},w.parseMethod=function(e,t,i){var s=this.startNode(),n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Xe(t,s.generator)|ze|(i?yt:0)),this.expect(r.parenL),s.params=this.parseBindingList(r.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(s,"FunctionExpression")},w.parseArrowExpression=function(e,t,i,s){var n=this.yieldPos,o=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(Xe(i,!1)|mt),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")},w.parseFunctionBody=function(e,t,i,s){var n=t&&this.type!==r.braceL,o=this.strict,p=!1;if(n)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var d=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!o||d)&&(p=this.strictDirective(this.end),p&&d&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!o&&!p&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,vt),e.body=this.parseBlock(!1,void 0,p&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()},w.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var s=i[t];if(s.type!=="Identifier")return!1}return!0},w.checkParams=function(e,t){for(var i=Object.create(null),s=0,n=e.params;s<n.length;s+=1){var o=n[s];this.checkLValInnerPattern(o,We,t?null:i)}},w.parseExprList=function(e,t,i,s){for(var n=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(r.comma),t&&this.afterTrailingComma(e))break;var p=void 0;i&&this.type===r.comma?p=null:this.type===r.ellipsis?(p=this.parseSpread(s),s&&this.type===r.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):p=this.parseMaybeAssign(!1,s),n.push(p)}return n},w.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var n=this.strict?this.reservedWordsStrict:this.reservedWords;n.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}},w.parseIdent=function(e){var t=this.startNode();return this.type===r.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name==="class"||t.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},w.parsePrivateIdent=function(){var e=this.startNode();return this.type===r.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},w.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===r.semi||this.canInsertSemicolon()||this.type!==r.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(r.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},w.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Ie=L.prototype;Ie.raise=function(e,t){var i=Ke(this.input,e);t+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},Ie.raiseRecoverable=Ie.raise,Ie.curPosition=function(){if(this.options.locations)return new se(this.curLine,this.pos-this.lineStart)};var Y=L.prototype,Ai=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Y.enterScope=function(e){this.scopeStack.push(new Ai(e))},Y.exitScope=function(){this.scopeStack.pop()},Y.treatFunctionsAsVarInScope=function(e){return e.flags&re||!this.inModule&&e.flags&fe},Y.declareName=function(e,t,i){var s=!1;if(t===W){var n=this.currentScope();s=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&fe&&delete this.undefinedExports[e]}else if(t===bt){var o=this.currentScope();o.lexical.push(e)}else if(t===gt){var p=this.currentScope();this.treatFunctionsAsVar?s=p.lexical.indexOf(e)>-1:s=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var d=this.scopeStack.length-1;d>=0;--d){var g=this.scopeStack[d];if(g.lexical.indexOf(e)>-1&&!(g.flags&xt&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){s=!0;break}if(g.var.push(e),this.inModule&&g.flags&fe&&delete this.undefinedExports[e],g.flags&Ge)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},Y.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Y.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Y.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ge)return t}},Y.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Ge&&!(t.flags&mt))return t}};var xe=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new le(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},ye=L.prototype;ye.startNode=function(){return new xe(this,this.start,this.startLoc)},ye.startNodeAt=function(e,t){return new xe(this,e,t)};function Tt(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}ye.finishNode=function(e,t){return Tt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ye.finishNodeAt=function(e,t,i,s){return Tt.call(this,e,t,i,s)},ye.copyNode=function(e){var t=new xe(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var _t="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",wt=_t+" Extended_Pictographic",Ct=wt,Et=Ct+" EBase EComp EMod EPres ExtPict",At=Et,Pi=At,Ii={9:_t,10:wt,11:Ct,12:Et,13:At,14:Pi},Pt="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",It="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Nt=It+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Lt=Nt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Vt=Lt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Rt=Vt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ni=Rt+" Kawi Nag_Mundari Nagm",Li={9:It,10:Nt,11:Lt,12:Vt,13:Rt,14:Ni},Ot={};function Vi(e){var t=Ot[e]={binary:$(Ii[e]+" "+Pt),nonBinary:{General_Category:$(Pt),Script:$(Li[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ye=0,Bt=[9,10,11,12,13,14];Ye<Bt.length;Ye+=1){var Ri=Bt[Ye];Vi(Ri)}var v=L.prototype,H=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":""),this.unicodeProperties=Ot[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};H.prototype.reset=function(t,i,s){var n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},H.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},H.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return-1;var o=s.charCodeAt(t);if(!(i||this.switchU)||o<=55295||o>=57344||t+1>=n)return o;var p=s.charCodeAt(t+1);return p>=56320&&p<=57343?(o<<10)+p-56613888:o},H.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,n=s.length;if(t>=n)return n;var o=s.charCodeAt(t),p;return!(i||this.switchU)||o<=55295||o>=57344||t+1>=n||(p=s.charCodeAt(t+1))<56320||p>57343?t+1:t+2},H.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},H.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},H.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},H.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},v.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=0;s<i.length;s++){var n=i.charAt(s);t.indexOf(n)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(n,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},v.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},v.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames.indexOf(s)===-1&&e.raise("Invalid named capture referenced")}},v.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},v.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},v.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},v.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},v.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},v.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},v.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},v.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},v.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},v.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},v.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},v.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},v.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},v.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ft(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ft(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}v.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!Ft(i);)e.advance();return e.pos!==t},v.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},v.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},v.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},v.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Q(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Q(e.lastIntValue);return!0}return!1},v.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Oi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Oi(e){return D(e,!0)||e===36||e===95}v.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Bi(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Bi(e){return m(e,!0)||e===36||e===95||e===8204||e===8205}v.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},v.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},v.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},v.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},v.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},v.regexp_eatZero=function(e){return e.current()===48&&!Ne(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},v.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},v.regexp_eatControlLetter=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}v.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(s&&n>=55296&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(n-55296)*1024+(p-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Fi(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Fi(e){return e>=0&&e<=1114111}v.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},v.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},v.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Di(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function Di(e){return e===100||e===68||e===115||e===83||e===119||e===87}v.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1},v.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){ce(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},v.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},v.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Mt(t=e.current());)e.lastStringValue+=Q(t),e.advance();return e.lastStringValue!==""};function Mt(e){return Dt(e)||e===95}v.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Mi(t=e.current());)e.lastStringValue+=Q(t),e.advance();return e.lastStringValue!==""};function Mi(e){return Mt(e)||Ne(e)}v.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},v.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},v.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},v.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||qt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},v.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},v.regexp_eatClassControlLetter=function(e){var t=e.current();return Ne(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},v.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},v.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;Ne(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function Ne(e){return e>=48&&e<=57}v.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;jt(i=e.current());)e.lastIntValue=16*e.lastIntValue+Ut(i),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ut(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}v.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},v.regexp_eatOctalDigit=function(e){var t=e.current();return qt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function qt(e){return e>=48&&e<=55}v.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var n=e.current();if(!jt(n))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+Ut(n),e.advance()}return!0};var Le=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new le(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},A=L.prototype;A.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Le(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},A.getToken=function(){return this.next(),new Le(this)},typeof Symbol<"u"&&(A[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===r.eof,value:t}}}}),A.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(r.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},A.readToken=function(e){return D(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},A.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},A.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=t;(s=pt(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},A.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Z(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},A.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&qe.test(String.fromCharCode(e)))++this.pos;else break e}}},A.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},A.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(r.ellipsis)):(++this.pos,this.finishToken(r.dot))},A.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(r.assign,2):this.finishOp(r.slash,1)},A.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?r.star:r.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=r.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(r.assign,i+1):this.finishOp(s,i)},A.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(r.assign,3)}return this.finishOp(e===124?r.logicalOR:r.logicalAND,2)}return t===61?this.finishOp(r.assign,2):this.finishOp(e===124?r.bitwiseOR:r.bitwiseAND,1)},A.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(r.assign,2):this.finishOp(r.bitwiseXOR,1)},A.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||M.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(r.incDec,2):t===61?this.finishOp(r.assign,2):this.finishOp(r.plusMin,1)},A.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(r.assign,i+1):this.finishOp(r.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(r.relational,i))},A.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(r.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(r.arrow)):this.finishOp(e===61?r.eq:r.prefix,1)},A.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(r.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(r.assign,3)}return this.finishOp(r.coalesce,2)}}return this.finishOp(r.question,1)},A.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),D(t,!0)||t===92))return this.finishToken(r.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Q(t)+"'")},A.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(r.parenL);case 41:return++this.pos,this.finishToken(r.parenR);case 59:return++this.pos,this.finishToken(r.semi);case 44:return++this.pos,this.finishToken(r.comma);case 91:return++this.pos,this.finishToken(r.bracketL);case 93:return++this.pos,this.finishToken(r.bracketR);case 123:return++this.pos,this.finishToken(r.braceL);case 125:return++this.pos,this.finishToken(r.braceR);case 58:return++this.pos,this.finishToken(r.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(r.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(r.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Q(e)+"'")},A.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},A.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(M.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var o=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(o);var d=this.regexpState||(this.regexpState=new H(this));d.reset(i,n,p),this.validateRegExpFlags(d),this.validateRegExpPattern(d);var g=null;try{g=new RegExp(n,p)}catch{}return this.finishToken(r.regexp,{pattern:n,flags:p,value:g})},A.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,n=i&&this.input.charCodeAt(this.pos)===48,o=this.pos,p=0,d=0,g=0,_=t??1/0;g<_;++g,++this.pos){var E=this.input.charCodeAt(this.pos),R=void 0;if(s&&E===95){n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),d===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),g===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),d=E;continue}if(E>=97?R=E-97+10:E>=65?R=E-65+10:E>=48&&E<=57?R=E-48:R=1/0,R>=e)break;d=E,p=p*e+R}return s&&d===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:p};function ji(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Kt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}A.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=Kt(this.input.slice(t,this.pos)),++this.pos):D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,i)},A.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var n=Kt(this.input.slice(t,this.pos));return++this.pos,D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(r.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=ji(this.input.slice(t,this.pos),i);return this.finishToken(r.num,o)},A.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},A.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Z(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(r.string,t)};var Jt={};A.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Jt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},A.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Jt;this.raise(e,t)},A.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===r.template||this.type===r.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(r.dollarBraceL)):(++this.pos,this.finishToken(r.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(r.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Z(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
7
+ `;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},A.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(r.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},A.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
8
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Q(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return Z(t)?"":String.fromCharCode(t)}},A.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},A.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(m(n,s))this.pos+=n<=65535?1:2;else if(n===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var p=this.readCodePoint();(t?D:m)(p,s)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Q(p),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},A.readWord=function(){var e=this.readWord1(),t=r.name;return this.keywords.test(e)&&(t=X[e]),this.finishToken(t,e)};var zt="8.8.2";L.acorn={Parser:L,version:zt,defaultOptions:Ce,Position:se,SourceLocation:le,getLineInfo:Ke,Node:xe,TokenType:y,tokTypes:r,keywordTypes:X,TokContext:q,tokContexts:I,isIdentifierChar:m,isIdentifierStart:D,Token:Le,isNewLine:Z,lineBreak:M,lineBreakG:ht,nonASCIIwhitespace:qe};function Ui(e,t){return L.parse(e,t)}function qi(e,t,i){return L.parseExpressionAt(e,t,i)}function Ki(e,t){return L.tokenizer(e,t)}a.Node=xe,a.Parser=L,a.Position=se,a.SourceLocation=le,a.TokContext=q,a.Token=Le,a.TokenType=y,a.defaultOptions=Ce,a.getLineInfo=Ke,a.isIdentifierChar=m,a.isIdentifierStart=D,a.isNewLine=Z,a.keywordTypes=X,a.lineBreak=M,a.lineBreakG=ht,a.nonASCIIwhitespace=qe,a.parse=Ui,a.parseExpressionAt=qi,a.tokContexts=I,a.tokTypes=r,a.tokenizer=Ki,a.version=zt})});var pi=be((Kr,hi)=>{hi.exports={}});var rt=be((Jr,st)=>{"use strict";var Ts=pi(),_s=/^[\da-fA-F]+$/,ws=/^\d+$/,ci=new WeakMap;function li(a){a=a.Parser.acorn||a;let u=ci.get(a);if(!u){let c=a.tokTypes,h=a.TokContext,l=a.TokenType,f=new h("<tag",!1),x=new h("</tag",!1),S=new h("<tag>...</tag>",!0,!0),V={tc_oTag:f,tc_cTag:x,tc_expr:S},P={jsxName:new l("jsxName"),jsxText:new l("jsxText",{beforeExpr:!0}),jsxTagStart:new l("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new l("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(S),this.context.push(f),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(F){let J=this.context.pop();J===f&&F===c.slash||J===x?(this.context.pop(),this.exprAllowed=this.curContext()===S):this.exprAllowed=!0},u={tokContexts:V,tokTypes:P},ci.set(a,u)}return u}function we(a){if(!a)return a;if(a.type==="JSXIdentifier")return a.name;if(a.type==="JSXNamespacedName")return a.namespace.name+":"+a.name.name;if(a.type==="JSXMemberExpression")return we(a.object)+"."+we(a.property)}st.exports=function(a){return a=a||{},function(u){return Cs({allowNamespaces:a.allowNamespaces!==!1,allowNamespacedObjects:!!a.allowNamespacedObjects},u)}};Object.defineProperty(st.exports,"tokTypes",{get:function(){return li(_e()).tokTypes},configurable:!0,enumerable:!0});function Cs(a,u){let c=u.acorn||_e(),h=li(c),l=c.tokTypes,f=h.tokTypes,x=c.tokContexts,S=h.tokContexts.tc_oTag,V=h.tokContexts.tc_cTag,P=h.tokContexts.tc_expr,F=c.isNewLine,J=c.isIdentifierStart,D=c.isIdentifierChar;return class extends u{static get acornJsx(){return h}jsx_readToken(){let m="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let b=this.input.charCodeAt(this.pos);switch(b){case 60:case 123:return this.pos===this.start?b===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(b):(m+=this.input.slice(y,this.pos),this.finishToken(f.jsxText,m));case 38:m+=this.input.slice(y,this.pos),m+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(b===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:F(b)?(m+=this.input.slice(y,this.pos),m+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(m){let y=this.input.charCodeAt(this.pos),b;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,b=m?`
11
9
  `:`\r
12
- `):b=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(m){let y="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let T=this.input.charCodeAt(this.pos);if(T===m)break;T===38?(y+=this.input.slice(b,this.pos),y+=this.jsx_readEntity(),b=this.pos):D(T)?(y+=this.input.slice(b,this.pos),y+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return y+=this.input.slice(b,this.pos++),this.finishToken(l.string,y)}jsx_readEntity(){let m="",y=0,b,T=this.input[this.pos];T!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let L=++this.pos;for(;this.pos<this.input.length&&y++<10;){if(T=this.input[this.pos++],T===";"){m[0]==="#"?m[1]==="x"?(m=m.substr(2),Zs.test(m)&&(b=String.fromCharCode(parseInt(m,16)))):(m=m.substr(1),$s.test(m)&&(b=String.fromCharCode(parseInt(m,10)))):b=Ys[m];break}m+=T}return b||(this.pos=L,"&")}jsx_readWord(){let m,y=this.pos;do m=this.input.charCodeAt(++this.pos);while(M(m)||m===45);return this.finishToken(f.jsxName,this.input.slice(y,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===f.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,y=this.startLoc,b=this.jsx_parseIdentifier();if(!r.allowNamespaces||!this.eat(l.colon))return b;var T=this.startNodeAt(m,y);return T.namespace=b,T.name=this.jsx_parseIdentifier(),this.finishNode(T,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let m=this.start,y=this.startLoc,b=this.jsx_parseNamespacedName();for(this.type===l.dot&&b.type==="JSXNamespacedName"&&!r.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let T=this.startNodeAt(m,y);T.object=b,T.property=this.jsx_parseIdentifier(),b=this.finishNode(T,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case f.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),m.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(m,"JSXExpressionContainer")}jsx_parseAttribute(){let m=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,y){let b=this.startNodeAt(m,y);b.attributes=[];let T=this.jsx_parseElementName();for(T&&(b.name=T);this.type!==l.slash&&this.type!==f.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(l.slash),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,y){let b=this.startNodeAt(m,y),T=this.jsx_parseElementName();return T&&(b.name=T),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,y){let b=this.startNodeAt(m,y),T=[],L=this.jsx_parseOpeningElementAt(m,y),W=null;if(!L.selfClosing){e:for(;;)switch(this.type){case f.jsxTagStart:if(m=this.start,y=this.startLoc,this.next(),this.eat(l.slash)){W=this.jsx_parseClosingElementAt(m,y);break e}T.push(this.jsx_parseElementAt(m,y));break;case f.jsxText:T.push(this.parseExprAtom());break;case l.braceL:T.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Ce(W.name)!==Ce(L.name)&&this.raise(W.start,"Expected corresponding JSX closing tag for <"+Ce(L.name)+">")}let C=L.name?"Element":"Fragment";return b["opening"+C]=L,b["closing"+C]=W,b.children=T,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+C)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(m,y)}parseExprAtom(m){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let y=this.curContext();if(y===P)return this.jsx_readToken();if(y===S||y===R){if(z(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((m===34||m===39)&&y==S)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==l.braceL){var y=this.curContext();y==S?this.context.push(x.b_expr):y==P?this.context.push(x.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===l.slash&&m===f.jsxTagStart)this.context.length-=2,this.context.push(R),this.exprAllowed=!1;else return super.updateContext(m)}}}});var Di={};ii(Di,{acorn:()=>nr});function ir(r){let{message:o,loc:p}=r;if(!p)return r;let{line:h,column:l}=p;return pe(o.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:r})}function rr(r,o){let p=sr(),h=[],l=[],f=p.parse(r,{...tr,sourceType:o,allowImportExportEverywhere:o==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function ar(r,o={}){let p=Ue(o),h=(p?[p]:["module","script"]).map(f=>()=>rr(r,f)),l;try{l=Be(h)}catch({errors:[f]}){throw ir(f)}return je(l,{text:r})}var tr,mt,sr,nr,Mi=N(()=>{Oe();tt();rt();ct();lt();tr={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};sr=()=>{if(!mt){let{Parser:r}=we(),o=dt();mt=r.extend(o())}return mt};nr=Fe(ar)});var qi=ve(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});var or=we(),ur=dt();function hr(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function pr(r){if(r&&r.__esModule)return r;var o=Object.create(null);return r&&Object.keys(r).forEach(function(p){if(p!=="default"){var h=Object.getOwnPropertyDescriptor(r,p);Object.defineProperty(o,p,h.get?h:{enumerable:!0,get:function(){return r[p]}})}}),o.default=r,Object.freeze(o)}var ji=pr(or),cr=hr(ur),F={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function lr(r,o){let p=r[0],h=r[r.length-1],l={type:F.Template,value:o.slice(p.start,h.end)};return p.loc&&(l.loc={start:p.loc.start,end:h.loc.end}),p.range&&(l.start=p.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function yt(r,o){this._acornTokTypes=r,this._tokens=[],this._curlyBrace=null,this._code=o}yt.prototype={constructor:yt,translate(r,o){let p=r.type,h=this._acornTokTypes;if(p===h.name)r.type=F.Identifier,r.value==="static"&&(r.type=F.Keyword),o.ecmaVersion>5&&(r.value==="yield"||r.value==="let")&&(r.type=F.Keyword);else if(p===h.privateId)r.type=F.PrivateIdentifier;else if(p===h.semi||p===h.comma||p===h.parenL||p===h.parenR||p===h.braceL||p===h.braceR||p===h.dot||p===h.bracketL||p===h.colon||p===h.question||p===h.bracketR||p===h.ellipsis||p===h.arrow||p===h.jsxTagStart||p===h.incDec||p===h.starstar||p===h.jsxTagEnd||p===h.prefix||p===h.questionDot||p.binop&&!p.keyword||p.isAssign)r.type=F.Punctuator,r.value=this._code.slice(r.start,r.end);else if(p===h.jsxName)r.type=F.JSXIdentifier;else if(p.label==="jsxText"||p===h.jsxAttrValueToken)r.type=F.JSXText;else if(p.keyword)p.keyword==="true"||p.keyword==="false"?r.type=F.Boolean:p.keyword==="null"?r.type=F.Null:r.type=F.Keyword;else if(p===h.num)r.type=F.Numeric,r.value=this._code.slice(r.start,r.end);else if(p===h.string)o.jsxAttrValueToken?(o.jsxAttrValueToken=!1,r.type=F.JSXText):r.type=F.String,r.value=this._code.slice(r.start,r.end);else if(p===h.regexp){r.type=F.RegularExpression;let l=r.value;r.regex={flags:l.flags,pattern:l.pattern},r.value=`/${l.pattern}/${l.flags}`}return r},onToken(r,o){let p=this,h=this._acornTokTypes,l=o.tokens,f=this._tokens;function x(){l.push(lr(p._tokens,p._code)),p._tokens=[]}if(r.type===h.eof){this._curlyBrace&&l.push(this.translate(this._curlyBrace,o));return}if(r.type===h.backQuote){this._curlyBrace&&(l.push(this.translate(this._curlyBrace,o)),this._curlyBrace=null),f.push(r),f.length>1&&x();return}if(r.type===h.dollarBraceL){f.push(r),x();return}if(r.type===h.braceR){this._curlyBrace&&l.push(this.translate(this._curlyBrace,o)),this._curlyBrace=r;return}if(r.type===h.template||r.type===h.invalidTemplate){this._curlyBrace&&(f.push(this._curlyBrace),this._curlyBrace=null),f.push(r);return}this._curlyBrace&&(l.push(this.translate(this._curlyBrace,o)),this._curlyBrace=null),l.push(this.translate(r,o))}};var gt=[3,5,6,7,8,9,10,11,12,13,14];function fr(){return gt[gt.length-1]}function dr(r=5){let o=r==="latest"?fr():r;if(typeof o!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof r} instead.`);if(o>=2015&&(o-=2009),!gt.includes(o))throw new Error("Invalid ecmaVersion.");return o}function mr(r="script"){if(r==="script"||r==="module")return r;if(r==="commonjs")return"script";throw new Error("Invalid sourceType.")}function xr(r){let o=dr(r.ecmaVersion),p=mr(r.sourceType),h=r.range===!0,l=r.loc===!0;if(o!==3&&r.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof r.allowReserved<"u"&&typeof r.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=o===3?r.allowReserved||"never":!1,x=r.ecmaFeatures||{},S=r.sourceType==="commonjs"||!!x.globalReturn;if(p==="module"&&o<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},r,{ecmaVersion:o,sourceType:p,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:S})}var se=Symbol("espree's internal state"),xt=Symbol("espree's esprimaFinishNode");function yr(r,o,p,h,l,f,x){let S;r?S="Block":x.slice(p,p+2)==="#!"?S="Hashbang":S="Line";let R={type:S,value:o};return typeof p=="number"&&(R.start=p,R.end=h,R.range=[p,h]),typeof l=="object"&&(R.loc={start:l,end:f}),R}var Ui=()=>r=>{let o=Object.assign({},r.acorn.tokTypes);return r.acornJsx&&Object.assign(o,r.acornJsx.tokTypes),class extends r{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,x=xr(h),S=x.ecmaFeatures||{},R=x.tokens===!0?new yt(o,l):null,P={originalSourceType:f||x.sourceType,tokens:R?[]:null,comments:x.comment===!0?[]:null,impliedStrict:S.impliedStrict===!0&&x.ecmaVersion>=5,ecmaVersion:x.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:x.ecmaVersion,sourceType:x.sourceType,ranges:x.ranges,locations:x.locations,allowReserved:x.allowReserved,allowReturnOutsideFunction:x.allowReturnOutsideFunction,onToken:D=>{R&&R.onToken(D,P),D.type!==o.eof&&(P.lastToken=D)},onComment:(D,z,M,m,y,b)=>{if(P.comments){let T=yr(D,z,M,m,y,b,l);P.comments.push(T)}}},l),this[se]=P}tokenize(){do this.next();while(this.type!==o.eof);this.next();let h=this[se],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[xt](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[xt](l)}parse(){let h=this[se],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[se].templateElements.forEach(f=>{let S=f.tail?1:2;f.start+=-1,f.end+=S,f.range&&(f.range[0]+=-1,f.range[1]+=S),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=S)}),l}parseTopLevel(h){return this[se].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=r.acorn.getLineInfo(this.input,h),x=new SyntaxError(l);throw x.index=h,x.lineNumber=f.line,x.column=f.column+1,x}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
13
- `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===o.string&&(this[se].jsxAttrValueToken=!0),l}[xt](h){return h.type==="TemplateElement"&&this[se].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},gr={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=ji.Parser.extend(Ui())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=ji.Parser.extend(cr.default(),Ui())),this._jsx},get(r){return!!(r&&r.ecmaFeatures&&r.ecmaFeatures.jsx)?this.jsx:this.regular}};function br(r,o){let p=gr.get(o);return new p(o,r).parse()}var vr="espree";Ke.name=vr;Ke.parse=br});var Ki={};ii(Ki,{espree:()=>_r});function kr(r){let{message:o,lineNumber:p,column:h}=r;return typeof p!="number"?r:pe(o,{loc:{start:{line:p,column:h}},cause:r})}function Tr(r,o={}){let{parse:p}=qi(),h=Ue(o),l=(h?[h]:["module","script"]).map(x=>()=>p(r,{...Sr,sourceType:x})),f;try{f=Be(l)}catch({errors:[x]}){throw kr(x)}return je(f,{text:r})}var Sr,_r,Ji=N(()=>{Oe();tt();rt();ct();lt();Sr={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};_r=Fe(Tr)});function _s(r){let o=Object.create(null);for(let{importParsers:p,parserNames:h}of r)for(let l of h)o[l]=async()=>Object.assign(o,await p())[l];return o}var si=_s;var wr=si([{importParsers:()=>Promise.resolve().then(()=>(Mi(),Di)),parserNames:["acorn"]},{importParsers:()=>Promise.resolve().then(()=>(Ji(),Ki)),parserNames:["espree"]}]),Ba={parsers:wr};export{Ba as default,wr as parsers};
10
+ `):b=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),b}jsx_readString(m){let y="",b=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let T=this.input.charCodeAt(this.pos);if(T===m)break;T===38?(y+=this.input.slice(b,this.pos),y+=this.jsx_readEntity(),b=this.pos):F(T)?(y+=this.input.slice(b,this.pos),y+=this.jsx_readNewLine(!1),b=this.pos):++this.pos}return y+=this.input.slice(b,this.pos++),this.finishToken(l.string,y)}jsx_readEntity(){let m="",y=0,b,T=this.input[this.pos];T!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let N=++this.pos;for(;this.pos<this.input.length&&y++<10;){if(T=this.input[this.pos++],T===";"){m[0]==="#"?m[1]==="x"?(m=m.substr(2),_s.test(m)&&(b=String.fromCharCode(parseInt(m,16)))):(m=m.substr(1),ws.test(m)&&(b=String.fromCharCode(parseInt(m,10)))):b=Ts[m];break}m+=T}return b||(this.pos=N,"&")}jsx_readWord(){let m,y=this.pos;do m=this.input.charCodeAt(++this.pos);while(D(m)||m===45);return this.finishToken(f.jsxName,this.input.slice(y,this.pos))}jsx_parseIdentifier(){let m=this.startNode();return this.type===f.jsxName?m.name=this.value:this.type.keyword?m.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(m,"JSXIdentifier")}jsx_parseNamespacedName(){let m=this.start,y=this.startLoc,b=this.jsx_parseIdentifier();if(!a.allowNamespaces||!this.eat(l.colon))return b;var T=this.startNodeAt(m,y);return T.namespace=b,T.name=this.jsx_parseIdentifier(),this.finishNode(T,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let m=this.start,y=this.startLoc,b=this.jsx_parseNamespacedName();for(this.type===l.dot&&b.type==="JSXNamespacedName"&&!a.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let T=this.startNodeAt(m,y);T.object=b,T.property=this.jsx_parseIdentifier(),b=this.finishNode(T,"JSXMemberExpression")}return b}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let m=this.jsx_parseExpressionContainer();return m.expression.type==="JSXEmptyExpression"&&this.raise(m.start,"JSX attributes must only be assigned a non-empty expression"),m;case f.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let m=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(m,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let m=this.startNode();return this.next(),m.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(m,"JSXExpressionContainer")}jsx_parseAttribute(){let m=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),m.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(m,"JSXSpreadAttribute")):(m.name=this.jsx_parseNamespacedName(),m.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(m,"JSXAttribute"))}jsx_parseOpeningElementAt(m,y){let b=this.startNodeAt(m,y);b.attributes=[];let T=this.jsx_parseElementName();for(T&&(b.name=T);this.type!==l.slash&&this.type!==f.jsxTagEnd;)b.attributes.push(this.jsx_parseAttribute());return b.selfClosing=this.eat(l.slash),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(m,y){let b=this.startNodeAt(m,y),T=this.jsx_parseElementName();return T&&(b.name=T),this.expect(f.jsxTagEnd),this.finishNode(b,T?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(m,y){let b=this.startNodeAt(m,y),T=[],N=this.jsx_parseOpeningElementAt(m,y),X=null;if(!N.selfClosing){e:for(;;)switch(this.type){case f.jsxTagStart:if(m=this.start,y=this.startLoc,this.next(),this.eat(l.slash)){X=this.jsx_parseClosingElementAt(m,y);break e}T.push(this.jsx_parseElementAt(m,y));break;case f.jsxText:T.push(this.parseExprAtom());break;case l.braceL:T.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}we(X.name)!==we(N.name)&&this.raise(X.start,"Expected corresponding JSX closing tag for <"+we(N.name)+">")}let C=N.name?"Element":"Fragment";return b["opening"+C]=N,b["closing"+C]=X,b.children=T,this.type===l.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(b,"JSX"+C)}jsx_parseText(){let m=this.parseLiteral(this.value);return m.type="JSXText",m}jsx_parseElement(){let m=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(m,y)}parseExprAtom(m){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(m)}readToken(m){let y=this.curContext();if(y===P)return this.jsx_readToken();if(y===S||y===V){if(J(m))return this.jsx_readWord();if(m==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((m===34||m===39)&&y==S)return this.jsx_readString(m)}return m===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(m)}updateContext(m){if(this.type==l.braceL){var y=this.curContext();y==S?this.context.push(x.b_expr):y==P?this.context.push(x.b_tmpl):super.updateContext(m),this.exprAllowed=!0}else if(this.type===l.slash&&m===f.jsxTagStart)this.context.length-=2,this.context.push(V),this.exprAllowed=!1;else return super.updateContext(m)}}}});var xi=be(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});var Ls=_e(),Vs=rt();function Rs(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}function Os(a){if(a&&a.__esModule)return a;var u=Object.create(null);return a&&Object.keys(a).forEach(function(c){if(c!=="default"){var h=Object.getOwnPropertyDescriptor(a,c);Object.defineProperty(u,c,h.get?h:{enumerable:!0,get:function(){return a[c]}})}}),u.default=a,Object.freeze(u)}var di=Os(Ls),Bs=Rs(Vs),B={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function Fs(a,u){let c=a[0],h=a[a.length-1],l={type:B.Template,value:u.slice(c.start,h.end)};return c.loc&&(l.loc={start:c.loc.start,end:h.loc.end}),c.range&&(l.start=c.range[0],l.end=h.range[1],l.range=[l.start,l.end]),l}function ot(a,u){this._acornTokTypes=a,this._tokens=[],this._curlyBrace=null,this._code=u}ot.prototype={constructor:ot,translate(a,u){let c=a.type,h=this._acornTokTypes;if(c===h.name)a.type=B.Identifier,a.value==="static"&&(a.type=B.Keyword),u.ecmaVersion>5&&(a.value==="yield"||a.value==="let")&&(a.type=B.Keyword);else if(c===h.privateId)a.type=B.PrivateIdentifier;else if(c===h.semi||c===h.comma||c===h.parenL||c===h.parenR||c===h.braceL||c===h.braceR||c===h.dot||c===h.bracketL||c===h.colon||c===h.question||c===h.bracketR||c===h.ellipsis||c===h.arrow||c===h.jsxTagStart||c===h.incDec||c===h.starstar||c===h.jsxTagEnd||c===h.prefix||c===h.questionDot||c.binop&&!c.keyword||c.isAssign)a.type=B.Punctuator,a.value=this._code.slice(a.start,a.end);else if(c===h.jsxName)a.type=B.JSXIdentifier;else if(c.label==="jsxText"||c===h.jsxAttrValueToken)a.type=B.JSXText;else if(c.keyword)c.keyword==="true"||c.keyword==="false"?a.type=B.Boolean:c.keyword==="null"?a.type=B.Null:a.type=B.Keyword;else if(c===h.num)a.type=B.Numeric,a.value=this._code.slice(a.start,a.end);else if(c===h.string)u.jsxAttrValueToken?(u.jsxAttrValueToken=!1,a.type=B.JSXText):a.type=B.String,a.value=this._code.slice(a.start,a.end);else if(c===h.regexp){a.type=B.RegularExpression;let l=a.value;a.regex={flags:l.flags,pattern:l.pattern},a.value=`/${l.pattern}/${l.flags}`}return a},onToken(a,u){let c=this,h=this._acornTokTypes,l=u.tokens,f=this._tokens;function x(){l.push(Fs(c._tokens,c._code)),c._tokens=[]}if(a.type===h.eof){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u));return}if(a.type===h.backQuote){this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),f.push(a),f.length>1&&x();return}if(a.type===h.dollarBraceL){f.push(a),x();return}if(a.type===h.braceR){this._curlyBrace&&l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=a;return}if(a.type===h.template||a.type===h.invalidTemplate){this._curlyBrace&&(f.push(this._curlyBrace),this._curlyBrace=null),f.push(a);return}this._curlyBrace&&(l.push(this.translate(this._curlyBrace,u)),this._curlyBrace=null),l.push(this.translate(a,u))}};var ut=[3,5,6,7,8,9,10,11,12,13,14];function Ds(){return ut[ut.length-1]}function Ms(a=5){let u=a==="latest"?Ds():a;if(typeof u!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof a} instead.`);if(u>=2015&&(u-=2009),!ut.includes(u))throw new Error("Invalid ecmaVersion.");return u}function js(a="script"){if(a==="script"||a==="module")return a;if(a==="commonjs")return"script";throw new Error("Invalid sourceType.")}function Us(a){let u=Ms(a.ecmaVersion),c=js(a.sourceType),h=a.range===!0,l=a.loc===!0;if(u!==3&&a.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof a.allowReserved<"u"&&typeof a.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let f=u===3?a.allowReserved||"never":!1,x=a.ecmaFeatures||{},S=a.sourceType==="commonjs"||!!x.globalReturn;if(c==="module"&&u<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},a,{ecmaVersion:u,sourceType:c,ranges:h,locations:l,allowReserved:f,allowReturnOutsideFunction:S})}var ie=Symbol("espree's internal state"),nt=Symbol("espree's esprimaFinishNode");function qs(a,u,c,h,l,f,x){let S;a?S="Block":x.slice(c,c+2)==="#!"?S="Hashbang":S="Line";let V={type:S,value:u};return typeof c=="number"&&(V.start=c,V.end=h,V.range=[c,h]),typeof l=="object"&&(V.loc={start:l,end:f}),V}var mi=()=>a=>{let u=Object.assign({},a.acorn.tokTypes);return a.acornJsx&&Object.assign(u,a.acornJsx.tokTypes),class extends a{constructor(h,l){(typeof h!="object"||h===null)&&(h={}),typeof l!="string"&&!(l instanceof String)&&(l=String(l));let f=h.sourceType,x=Us(h),S=x.ecmaFeatures||{},V=x.tokens===!0?new ot(u,l):null,P={originalSourceType:f||x.sourceType,tokens:V?[]:null,comments:x.comment===!0?[]:null,impliedStrict:S.impliedStrict===!0&&x.ecmaVersion>=5,ecmaVersion:x.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:x.ecmaVersion,sourceType:x.sourceType,ranges:x.ranges,locations:x.locations,allowReserved:x.allowReserved,allowReturnOutsideFunction:x.allowReturnOutsideFunction,onToken:F=>{V&&V.onToken(F,P),F.type!==u.eof&&(P.lastToken=F)},onComment:(F,J,D,m,y,b)=>{if(P.comments){let T=qs(F,J,D,m,y,b,l);P.comments.push(T)}}},l),this[ie]=P}tokenize(){do this.next();while(this.type!==u.eof);this.next();let h=this[ie],l=h.tokens;return h.comments&&(l.comments=h.comments),l}finishNode(...h){let l=super.finishNode(...h);return this[nt](l)}finishNodeAt(...h){let l=super.finishNodeAt(...h);return this[nt](l)}parse(){let h=this[ie],l=super.parse();if(l.sourceType=h.originalSourceType,h.comments&&(l.comments=h.comments),h.tokens&&(l.tokens=h.tokens),l.body.length){let[f]=l.body;l.range&&(l.range[0]=f.range[0]),l.loc&&(l.loc.start=f.loc.start),l.start=f.start}return h.lastToken&&(l.range&&(l.range[1]=h.lastToken.range[1]),l.loc&&(l.loc.end=h.lastToken.loc.end),l.end=h.lastToken.end),this[ie].templateElements.forEach(f=>{let S=f.tail?1:2;f.start+=-1,f.end+=S,f.range&&(f.range[0]+=-1,f.range[1]+=S),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=S)}),l}parseTopLevel(h){return this[ie].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),x=new SyntaxError(l);throw x.index=h,x.lineNumber=f.line,x.column=f.column+1,x}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
11
+ `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[ie].jsxAttrValueToken=!0),l}[nt](h){return h.type==="TemplateElement"&&this[ie].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Ks={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=di.Parser.extend(mi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=di.Parser.extend(Bs.default(),mi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function Js(a,u){let c=Ks.get(u);return new c(u,a).parse()}var zs="espree";Ue.name=zs;Ue.parse=Js});function Yi(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var he=Yi;function Zi(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Re=Zi;var pe=Qi($t(),1);function us(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(`
12
+ `);return u===-1?a:a.slice(0,u)}var ei=us;function hs(a){let u=ei(a);u&&(a=a.slice(u.length+1));let c=(0,pe.extract)(a),{pragmas:h,comments:l}=(0,pe.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ti(a){let{pragmas:u}=hs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function ps(a){return Array.isArray(a)&&a.length>0}var ve=ps;function j(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return ve(c)?Math.min(j(c[0]),u):u}function G(a){return a.range?a.range[1]:a.end}function cs(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ti,locStart:j,locEnd:G,...a}}var Oe=cs;var ls=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},Ze=ls;function fs(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ii=fs;var ds=ii(["Block","CommentBlock","MultiLine"]),Se=ds;function ms(a){return Se(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var si=ms;function xs(a){let u=`*${a.value}*`.split(`
13
+ `);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var $e=xs;var ke=null;function Te(a){if(ke!==null&&typeof ke.property){let u=ke;return ke=Te.prototype=null,u}return ke=Te.prototype=a??Object.create(null),new Te}var ys=10;for(let a=0;a<=ys;a++)Te();function et(a){return Te(a)}function gs(a,u="type"){et(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var ri=gs;var ai={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],ExportAllDeclaration:["source","exported","assertions"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","parameter"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["id","qualification"],TupleTypeSpreadElement:["label","typeAnnotation"],TupleTypeLabeledElement:["label","elementType","variance"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var bs=ri(ai),ni=bs;function tt(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h<a.length;h++)a[h]=tt(a[h],u);return a}let c=ni(a);for(let h=0;h<c.length;h++)a[c[h]]=tt(a[c[h]],u);return u(a)||a}var Be=tt;function vs(a,u){let{start:c,end:h}=a.loc;throw he(u,{loc:{start:{line:c.line,column:c.column+1},end:{line:h.line,column:h.column+1}}})}var Fe=vs;function Ss(a,u){let{parser:c,text:h}=u;if(a.type==="File"&&a.program.interpreter){let{program:{interpreter:f},comments:x}=a;delete a.program.interpreter,x.unshift(f)}if(c==="babel"){let f=new Set;a=Be(a,x=>{var S;(S=x.leadingComments)!=null&&S.some(si)&&f.add(j(x))}),a=Be(a,x=>{if(x.type==="ParenthesizedExpression"){let{expression:S}=x;if(S.type==="TypeCastExpression")return S.range=x.range,S;let V=j(x);if(!f.has(V))return S.extra={...S.extra,parenthesized:!0},S}})}if(a=Be(a,f=>{switch(f.type){case"LogicalExpression":if(oi(f))return it(f);break;case"VariableDeclaration":{let x=Ze(!1,f.declarations,-1);x!=null&&x.init&&l(f,x);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let x=j(f);f.name={type:"Identifier",name:f.name,range:[x,x+f.name.length]}}break;case"ObjectExpression":if(c==="typescript"){let x=f.properties.find(S=>S.type==="Property"&&S.value.type==="TSEmptyBodyFunctionExpression");x&&Fe(x.value,"Unexpected token.")}break;case"TSInterfaceDeclaration":ve(f.implements)&&Fe(f.implements[0],"Interface declaration cannot have 'implements' clause.");break;case"TSPropertySignature":f.initializer&&Fe(f.initializer,"An interface property cannot have an initializer.");break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:x}=f;if(c==="meriyah"&&(x==null?void 0:x.type)==="Identifier"){let S=h.slice(j(x),G(x));(S.startsWith('"')||S.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:S})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),ve(a.comments)){let f=Ze(!1,a.comments,-1);for(let x=a.comments.length-2;x>=0;x--){let S=a.comments[x];G(S)===j(f)&&Se(S)&&Se(f)&&$e(S)&&$e(f)&&(a.comments.splice(x+1,1),S.value+="*//*"+f.value,S.range=[j(S),G(f)]),f=S}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,x){h[G(x)]!==";"&&(f.range=[j(f),G(x)])}}function oi(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function it(a){return oi(a)?it({type:"LogicalExpression",operator:a.operator,left:it({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[j(a.left),G(a.right.left)]}),right:a.right.right,range:[j(a),G(a)]}):a}var De=Ss;function ks(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Me=ks;var Es={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function As(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return he(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var at,Ps=()=>{if(!at){let{Parser:a}=_e(),u=rt();at=a.extend(u())}return at};function Is(a,u){let c=Ps(),h=[],l=[],f=c.parse(a,{...Es,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function Ns(a,u={}){let c=Me(u),h=(c?[c]:["module","script"]).map(f=>()=>Is(a,f)),l;try{l=Re(h)}catch({errors:[f]}){throw As(f)}return De(l,{text:a})}var fi=Oe(Ns);var Gs={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Xs(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:he(u,{loc:{start:{line:c,column:h}},cause:a})}function Ws(a,u={}){let{parse:c}=xi(),h=Me(u),l=(h?[h]:["module","script"]).map(x=>()=>c(a,{...Gs,sourceType:x})),f;try{f=Re(l)}catch({errors:[x]}){throw Xs(x)}return De(f,{text:a})}var yi=Oe(Ws);var Hs={acorn:fi,espree:yi},ua={parsers:Hs};export{ua as default,Hs as parsers};