import{c as Yu,g as jme}from"./vue-repl-jaFwbjhK.js";import"./index-bVOhw2NF.js";var Qr={},B_={exports:{}};(function(n,t){(function(a,i){i(t)})(Yu,function(a){var i=Object.freeze({__proto__:null,get _call(){return _1},get _getQueueContexts(){return LR},get _resyncKey(){return NR},get _resyncList(){return DR},get _resyncParent(){return _R},get _resyncRemoved(){return LG},get call(){return O1},get isDenylisted(){return OR},get popContext(){return kR},get pushContext(){return N1},get requeue(){return MG},get requeueComputedKeyAndDecorators(){return ph},get resync(){return Xo},get setContext(){return kG},get setKey(){return ch},get setScope(){return uh},get setup(){return D1},get skip(){return _G},get skipKey(){return NG},get stop(){return DG},get visit(){return OG}}),u=Object.freeze({__proto__:null,get DEFAULT_EXTENSIONS(){return LUe},get File(){return Eh},get buildExternalHelpers(){return XK},get createConfigItem(){return sUe},get createConfigItemAsync(){return nUe},get createConfigItemSync(){return Hz},get getEnv(){return tH},get loadOptions(){return aUe},get loadOptionsAsync(){return rUe},get loadOptionsSync(){return x5},get loadPartialConfig(){return tUe},get loadPartialConfigAsync(){return eUe},get loadPartialConfigSync(){return Gz},get parse(){return NUe},get parseAsync(){return kUe},get parseSync(){return DUe},get resolvePlugin(){return zBe},get resolvePreset(){return XBe},get template(){return gt},get tokTypes(){return zq},get transform(){return PUe},get transformAsync(){return AUe},get transformFile(){return IUe},get transformFileAsync(){return jUe},get transformFileSync(){return CUe},get transformFromAst(){return OUe},get transformFromAstAsync(){return _Ue},get transformFromAstSync(){return fX},get transformSync(){return pX},get traverse(){return $a},get types(){return d8},get version(){return _h}});function p(e,r){(r==null||r>e.length)&&(r=e.length);for(var s=0,o=Array(r);s=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},q(e)}function L(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&se(e,r)}function W(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X=function(){return!!e})()}function Q(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ae(e,r){var s=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s!=null){var o,d,l,c,f=[],h=!0,y=!1;try{if(l=(s=s.call(e)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(o=l.call(s)).done)&&(f.push(o.value),f.length!==r);h=!0);}catch(g){y=!0,d=g}finally{try{if(!h&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(y)throw d}}return f}}function ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function be(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e,r){if(e==null)return{};var s,o,d=Xe(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0;--Ee){var fe=this.tryEntries[Ee],Fe=fe.completion;if(fe.tryLoc==="root")return Z("end");if(fe.tryLoc<=this.prev){var qe=o.call(fe,"catchLoc"),Ce=o.call(fe,"finallyLoc");if(qe&&Ce){if(this.prev=0;--Z){var Ee=this.tryEntries[Z];if(Ee.tryLoc<=this.prev&&o.call(Ee,"finallyLoc")&&this.prev=0;--le){var Z=this.tryEntries[le];if(Z.finallyLoc===ne)return this.complete(Z.completion,Z.afterLoc),ce(Z),P}},catch:function(ne){for(var le=this.tryEntries.length-1;le>=0;--le){var Z=this.tryEntries[le];if(Z.tryLoc===ne){var Ee=Z.completion;if(Ee.type==="throw"){var fe=Ee.arg;ce(Z)}return fe}}throw Error("illegal catch attempt")},delegateYield:function(ne,le,Z){return this.delegate={iterator:ge(ne),resultName:le,nextLoc:Z},this.method==="next"&&(this.arg=e),P}},r}function se(e,r){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},se(e,r)}function ve(e,r){return m(e)||ae(e,r)||yt(e,r)||ie()}function Y(e,r){return r||(r=e.slice(0)),e.raw=r,e}function pe(e){return b(e)||Q(e)||yt(e)||be()}function At(e,r){if(typeof e!="object"||!e)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var o=s.call(e,r);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mt(e){var r=At(e,"string");return typeof r=="symbol"?r:r+""}function yt(e,r){if(e){if(typeof e=="string")return p(e,r);var s={}.toString.call(e).slice(8,-1);return s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set"?Array.from(e):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?p(e,r):void 0}}function Ot(e){var r=typeof Map=="function"?new Map:void 0;return Ot=function(s){if(s===null||!W(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(s))return r.get(s);r.set(s,o)}function o(){return S(s,arguments,q(this).constructor)}return o.prototype=Object.create(s.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),se(o,s)},Ot(e)}var kt=typeof Yu<"u"?Yu:typeof self<"u"?self:typeof window<"u"?window:{};function ir(){throw new Error("setTimeout has not been defined")}function Et(){throw new Error("clearTimeout has not been defined")}var xt=ir,it=Et;typeof kt.setTimeout=="function"&&(xt=setTimeout),typeof kt.clearTimeout=="function"&&(it=clearTimeout);function Oe(e){if(xt===setTimeout)return setTimeout(e,0);if((xt===ir||!xt)&&setTimeout)return xt=setTimeout,setTimeout(e,0);try{return xt(e,0)}catch{try{return xt.call(null,e,0)}catch{return xt.call(this,e,0)}}}function $e(e){if(it===clearTimeout)return clearTimeout(e);if((it===Et||!it)&&clearTimeout)return it=clearTimeout,clearTimeout(e);try{return it(e)}catch{try{return it.call(null,e)}catch{return it.call(this,e)}}}var de=[],Ne=!1,Ve,Ue=-1;function lt(){!Ne||!Ve||(Ne=!1,Ve.length?de=Ve.concat(de):Ue=-1,de.length&&bt())}function bt(){if(!Ne){var e=Oe(lt);Ne=!0;for(var r=de.length;r;){for(Ve=de,de=[];++Ue1)for(var s=1;so.length)return!1;for(var c=0,f=d.length-1;ce)return!1;if(s+=r[o+1],s>=e)return!0}return!1}function so(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&kxe.test(String.fromCharCode(e)):qx(e,jB)}function Gl(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Lxe.test(String.fromCharCode(e)):qx(e,jB)||qx(e,Mxe)}function Ux(e){for(var r=!0,s=0;s=48&&r<=57},NB={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},cg={bin:function(r){return r===48||r===49},oct:function(r){return r>=48&&r<=55},dec:function(r){return r>=48&&r<=57},hex:function(r){return r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}};function Gx(e,r,s,o,d,l){for(var c=s,f=o,h=d,y="",g=null,x=s,R=r.length;;){if(s>=R){l.unterminated(c,f,h),y+=r.slice(x,s);break}var w=r.charCodeAt(s);if(Uxe(e,w,r,s)){y+=r.slice(x,s);break}if(w===92){y+=r.slice(x,s);var T=Vxe(r,s,o,d,e==="template",l);T.ch===null&&!g?g={pos:s,lineStart:o,curLine:d}:y+=T.ch,s=T.pos,o=T.lineStart,d=T.curLine,x=s}else w===8232||w===8233?(++s,++d,o=s):w===10||w===13?e==="template"?(y+=r.slice(x,s)+` `,++s,w===13&&r.charCodeAt(s)===10&&++s,++d,x=o=s):l.unterminated(c,f,h):++s}return{pos:s,str:y,firstInvalidLoc:g,lineStart:o,curLine:d,containsInvalid:!!g}}function Uxe(e,r,s,o){return e==="template"?r===96||r===36&&s.charCodeAt(o+1)===123:r===(e==="double"?34:39)}function Vxe(e,r,s,o,d,l){var c=!d;r++;var f=function(k){return{pos:r,ch:k,lineStart:s,curLine:o}},h=e.charCodeAt(r++);switch(h){case 110:return f(` `);case 114:return f("\r");case 120:{var y,g=Kx(e,r,s,o,2,!1,c,l);return y=g.code,r=g.pos,f(y===null?null:String.fromCharCode(y))}case 117:{var x,R=kB(e,r,s,o,c,l);return x=R.code,r=R.pos,f(x===null?null:String.fromCodePoint(x))}case 116:return f(" ");case 98:return f("\b");case 118:return f("\v");case 102:return f("\f");case 13:e.charCodeAt(r)===10&&++r;case 10:s=r,++o;case 8232:case 8233:return f("");case 56:case 57:if(d)return f(null);l.strictNumericEscape(r-1,s,o);default:if(h>=48&&h<=55){var w=r-1,T=/^[0-7]+/.exec(e.slice(w,r+2)),C=T[0],P=parseInt(C,8);P>255&&(C=C.slice(0,-1),P=parseInt(C,8)),r+=C.length-1;var _=e.charCodeAt(r);if(C!=="0"||_===56||_===57){if(d)return f(null);l.strictNumericEscape(w,s,o)}return f(String.fromCharCode(P))}return f(String.fromCharCode(h))}}function Kx(e,r,s,o,d,l,c,f){var h=r,y,g=DB(e,r,s,o,16,d,l,!1,f,!c);return y=g.n,r=g.pos,y===null&&(c?f.invalidEscapeSequence(h,s,o):r=h-1),{code:y,pos:r}}function DB(e,r,s,o,d,l,c,f,h,y){for(var g=r,x=d===16?NB.hex:NB.decBinOct,R=d===16?cg.hex:d===10?cg.dec:d===8?cg.oct:cg.bin,w=!1,T=0,C=0,P=l??1/0;C=97?j=_-97+10:_>=65?j=_-65+10:qxe(_)?j=_-48:j=1/0,j>=d){if(j<=9&&y)return{n:null,pos:r};if(j<=9&&h.invalidDigit(r,s,o,d))j=0;else if(c)j=0,w=!0;else break}++r,T=T*d+j}return r===g||l!=null&&r-g!==l||w?{n:null,pos:r}:{n:T,pos:r}}function kB(e,r,s,o,d,l){var c=e.charCodeAt(r),f;if(c===123){++r;var h=Kx(e,r,s,o,e.indexOf("}",r)-r,!0,d,l);if(f=h.code,r=h.pos,++r,f!==null&&f>1114111)if(d)l.invalidCodePoint(r,s,o);else return{code:null,pos:r}}else{var y=Kx(e,r,s,o,4,!1,d,l);f=y.code,r=y.pos}return{code:f,pos:r}}var LB=["consequent","body","alternate"],Wxe=["body","expressions"],Gxe=["left","init"],Hx=["leadingComments","trailingComments","innerComments"],Jd=["||","&&","??"],MB=["++","--"],zx=[">","<",">=","<="],Xx=["==","===","!=","!=="],BB=[].concat(Xx,["in","instanceof"]),Jx=[].concat(pe(BB),zx),pg=["-","/","%","*","**","&","|",">>",">>>","<<","^"],FB=["+"].concat(pg,pe(Jx),["|>"]),$B=["=","+="].concat(pe(pg.map(function(e){return e+"="})),pe(Jd.map(function(e){return e+"="}))),Yx=["delete","!"],Qx=["+","-","~"],Zx=["typeof"],qB=["void","throw"].concat(Yx,Qx,Zx),e4={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},fg=Symbol.for("var used to be block scoped"),UB=Symbol.for("should not be considered a local binding"),ks={},Ef={},xr={},Hl={},t4={},Sf={},Sc={};function hg(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function xa(e){return{validate:e}}function Gt(){return xa(rt.apply(void 0,arguments))}function Fa(e){return{validate:e,optional:!0}}function Xr(){return{validate:rt.apply(void 0,arguments),optional:!0}}function r4(e){return $n(Yt("array"),Tf(e))}function la(){return r4(rt.apply(void 0,arguments))}function pa(){return xa(la.apply(void 0,arguments))}function Tf(e){var r=Kt.env.BABEL_TYPES_8_BREAKING?vg:function(){};function s(o,d,l){if(Array.isArray(l))for(var c=0;c=2&&"type"in r[0]&&r[0].type==="array"&&!("each"in r[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return o}var Hxe=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),zxe=new Set(["default","optional","deprecated","validate"]),a4={};function wf(){for(var e=arguments.length,r=new Array(e),s=0;s0:y&&typeof y=="object")throw new Error("field defaults can only be primitives or empty arrays currently");o[f]={default:Array.isArray(y)?[]:y,optional:h.optional,deprecated:h.deprecated,validate:h.validate}}for(var g=r.visitor||s.visitor||[],x=r.aliases||s.aliases||[],R=r.builder||s.builder||r.visitor||[],w=0,T=Object.keys(r);w+c+1)throw new TypeError("RestElement must be last element of "+l)}:void 0}),Jt("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:rt("Expression"),optional:!0}}}),Jt("SequenceExpression",{visitor:["expressions"],fields:{expressions:pa("Expression")},aliases:["Expression"]}),Jt("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:rt("Expression")}}}),Jt("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:rt("Expression"),optional:!0},consequent:pa("Statement")}}),Jt("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:rt("Expression")},cases:pa("SwitchCase")}}),Jt("ThisExpression",{aliases:["Expression"]}),Jt("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:rt("Expression")}}}),Jt("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(rt("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):rt("BlockStatement")},handler:{optional:!0,validate:rt("CatchClause")},finalizer:{optional:!0,validate:rt("BlockStatement")}}}),Jt("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:rt("Expression")},operator:{validate:Ra.apply(void 0,pe(qB))}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),Jt("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:Kt.env.BABEL_TYPES_8_BREAKING?rt("Identifier","MemberExpression"):rt("Expression")},operator:{validate:Ra.apply(void 0,pe(MB))}},visitor:["argument"],aliases:["Expression"]}),Jt("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:Yt("boolean"),optional:!0},kind:{validate:Ra("var","let","const","using","await using")},declarations:pa("VariableDeclarator")},validate:Kt.env.BABEL_TYPES_8_BREAKING?function(){var e=rt("Identifier");return function(r,s,o){if(xn("ForXStatement",r,{left:o})){if(o.declarations.length!==1)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a "+r.type)}else o.declarations.forEach(function(d){d.init||e(d,"id",d.id)})}}():void 0}),Jt("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:Kt.env.BABEL_TYPES_8_BREAKING?rt("Identifier","ArrayPattern","ObjectPattern"):rt("LVal")},definite:{optional:!0,validate:Yt("boolean")},init:{optional:!0,validate:rt("Expression")}}}),Jt("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:rt("Expression")},body:{validate:rt("Statement")}}}),Jt("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:rt("Expression")},body:{validate:rt("Statement")}}}),Jt("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Af(),{left:{validate:rt("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:rt("Expression")},decorators:{validate:la("Decorator"),optional:!0}})}),Jt("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Af(),{elements:{validate:$n(Yt("array"),Tf(VB("null","PatternLike","LVal")))}})}),Jt("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Pf(),Tc(),{expression:{validate:Yt("boolean")},body:{validate:rt("BlockStatement","Expression")},predicate:{validate:rt("DeclaredPredicate","InferredPredicate"),optional:!0}})}),Jt("ClassBody",{visitor:["body"],fields:{body:pa("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),Jt("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:rt("Identifier"),optional:!0},typeParameters:{validate:rt("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:rt("ClassBody")},superClass:{optional:!0,validate:rt("Expression")},superTypeParameters:{validate:rt("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:la("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:la("Decorator"),optional:!0},mixins:{validate:rt("InterfaceExtends"),optional:!0}}}),Jt("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:rt("Identifier"),optional:!0},typeParameters:{validate:rt("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:rt("ClassBody")},superClass:{optional:!0,validate:rt("Expression")},superTypeParameters:{validate:rt("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:la("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:la("Decorator"),optional:!0},mixins:{validate:rt("InterfaceExtends"),optional:!0},declare:{validate:Yt("boolean"),optional:!0},abstract:{validate:Yt("boolean"),optional:!0}},validate:Kt.env.BABEL_TYPES_8_BREAKING?function(){var e=rt("Identifier");return function(r,s,o){xn("ExportDefaultDeclaration",r)||e(o,"id",o.id)}}():void 0}),Jt("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:rt("StringLiteral")},exportKind:Fa(Ra("type","value")),attributes:{optional:!0,validate:la("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:la("ImportAttribute")}}}),Jt("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:Gt("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:Fa(Ra("value"))}}),Jt("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:Kt.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(rt("Declaration"),Object.assign(function(e,r,s){if(s&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(s&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):rt("Declaration")},attributes:{optional:!0,validate:la("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:la("ImportAttribute")},specifiers:{default:[],validate:r4(function(){var e=rt("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),r=rt("ExportSpecifier");return Kt.env.BABEL_TYPES_8_BREAKING?Object.assign(function(s,o,d){var l=s.source?e:r;l(s,o,d)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:rt("StringLiteral"),optional:!0},exportKind:Fa(Ra("type","value"))}}),Jt("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:rt("Identifier")},exported:{validate:rt("Identifier","StringLiteral")},exportKind:{validate:Ra("type","value"),optional:!0}}}),Jt("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!Kt.env.BABEL_TYPES_8_BREAKING)return rt("VariableDeclaration","LVal");var e=rt("VariableDeclaration"),r=rt("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(s,o,d){xn("VariableDeclaration",d)?e(s,o,d):r(s,o,d)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:rt("Expression")},body:{validate:rt("Statement")},await:{default:!1}}}),Jt("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:la("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:la("ImportAttribute")},module:{optional:!0,validate:Yt("boolean")},phase:{default:null,validate:Ra("source","defer")},specifiers:pa("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:rt("StringLiteral")},importKind:{validate:Ra("type","typeof","value"),optional:!0}}}),Jt("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:rt("Identifier")}}}),Jt("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:rt("Identifier")}}}),Jt("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:rt("Identifier")},imported:{validate:rt("Identifier","StringLiteral")},importKind:{validate:Ra("type","typeof","value"),optional:!0}}}),Jt("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:Ra("source","defer")},source:{validate:rt("Expression")},options:{validate:rt("Expression"),optional:!0}}}),Jt("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(rt("Identifier"),Object.assign(function(e,r,s){var o;switch(s.name){case"function":o="sent";break;case"new":o="target";break;case"import":o="meta";break}if(!xn("Identifier",e.property,{name:o}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):rt("Identifier")},property:{validate:rt("Identifier")}}});var n4=function(){return{abstract:{validate:Yt("boolean"),optional:!0},accessibility:{validate:Ra("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:Yt("boolean"),optional:!0},key:{validate:$n(function(){var r=rt("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),s=rt("Expression");return function(o,d,l){var c=o.computed?s:r;c(o,d,l)}}(),rt("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}}},s4=function(){return Object.assign({},Pf(),n4(),{params:pa("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:Ra("get","set","method","constructor"),default:"method"},access:{validate:$n(Yt("string"),Ra("public","private","protected")),optional:!0},decorators:{validate:la("Decorator"),optional:!0}})};Jt("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},s4(),Tc(),{body:{validate:rt("BlockStatement")}})}),Jt("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Af(),{properties:pa("RestElement","ObjectProperty")})}),Jt("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:rt("Expression")}}}),Jt("Super",{aliases:["Expression"]}),Jt("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:rt("Expression")},quasi:{validate:rt("TemplateLiteral")},typeParameters:{validate:rt("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),Jt("TemplateElement",{builder:["value","tail"],fields:{value:{validate:$n(Kxe({raw:{validate:Yt("string")},cooked:{validate:Yt("string"),optional:!0}}),function(r){var s=r.value.raw,o=!1,d=function(){throw new Error("Internal @babel/types error.")},l=Gx("template",s,0,0,0,{unterminated:function(){o=!0},strictNumericEscape:d,invalidEscapeSequence:d,numericSeparatorInEscapeSequence:d,unexpectedNumericSeparator:d,invalidDigit:d,invalidCodePoint:d}),c=l.str,f=l.firstInvalidLoc;if(!o)throw new Error("Invalid raw");r.value.cooked=f?null:c})},tail:{default:!1}}}),Jt("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:pa("TemplateElement"),expressions:{validate:$n(Yt("array"),Tf(rt("Expression","TSType")),function(e,r,s){if(e.quasis.length!==s.length+1)throw new TypeError("Number of "+e.type+` quasis should be exactly one more than the number of expressions. Expected `+(s.length+1)+" quasis but got "+e.quasis.length)})}}}),Jt("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(Yt("boolean"),Object.assign(function(e,r,s){if(s&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):Yt("boolean"),default:!1},argument:{optional:!0,validate:rt("Expression")}}}),Jt("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:rt("Expression")}}}),Jt("Import",{aliases:["Expression"]}),Jt("BigIntLiteral",{builder:["value"],fields:{value:{validate:Yt("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),Jt("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:rt("Identifier")}}}),Jt("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:rt("Expression")},property:{validate:function(){var e=rt("Identifier"),r=rt("Expression"),s=Object.assign(function(o,d,l){var c=o.computed?r:e;c(o,d,l)},{oneOfNodeTypes:["Expression","Identifier"]});return s}()},computed:{default:!1},optional:{validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(Yt("boolean"),WB()):Yt("boolean")}}}),Jt("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:rt("Expression")},arguments:pa("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:Kt.env.BABEL_TYPES_8_BREAKING?$n(Yt("boolean"),WB()):Yt("boolean")},typeArguments:{validate:rt("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:rt("TSTypeParameterInstantiation"),optional:!0}}}),Jt("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},n4(),{value:{validate:rt("Expression"),optional:!0},definite:{validate:Yt("boolean"),optional:!0},typeAnnotation:{validate:rt("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:la("Decorator"),optional:!0},readonly:{validate:Yt("boolean"),optional:!0},declare:{validate:Yt("boolean"),optional:!0},variance:{validate:rt("Variance"),optional:!0}})}),Jt("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},n4(),{key:{validate:$n(function(){var e=rt("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),r=rt("Expression");return function(s,o,d){var l=s.computed?r:e;l(s,o,d)}}(),rt("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:rt("Expression"),optional:!0},definite:{validate:Yt("boolean"),optional:!0},typeAnnotation:{validate:rt("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:la("Decorator"),optional:!0},readonly:{validate:Yt("boolean"),optional:!0},declare:{validate:Yt("boolean"),optional:!0},variance:{validate:rt("Variance"),optional:!0}})}),Jt("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:rt("PrivateName")},value:{validate:rt("Expression"),optional:!0},typeAnnotation:{validate:rt("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:la("Decorator"),optional:!0},static:{validate:Yt("boolean"),default:!1},readonly:{validate:Yt("boolean"),optional:!0},definite:{validate:Yt("boolean"),optional:!0},variance:{validate:rt("Variance"),optional:!0}}}),Jt("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},s4(),Tc(),{kind:{validate:Ra("get","set","method"),default:"method"},key:{validate:rt("PrivateName")},body:{validate:rt("BlockStatement")}})}),Jt("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:rt("Identifier")}}}),Jt("StaticBlock",{visitor:["body"],fields:{body:pa("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});var yr=wf("Flow"),i4=function(r){var s=r==="DeclareClass";yr(r,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends"].concat(pe(s?["mixins","implements"]:[]),["body"]),aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:Gt("Identifier"),typeParameters:Xr("TypeParameterDeclaration"),extends:Fa(la("InterfaceExtends"))},s?{mixins:Fa(la("InterfaceExtends")),implements:Fa(la("ClassImplements"))}:{},{body:Gt("ObjectTypeAnnotation")})})};yr("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:Gt("FlowType")}}),yr("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:xa(Yt("boolean"))}}),yr("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("ClassImplements",{visitor:["id","typeParameters"],fields:{id:Gt("Identifier"),typeParameters:Xr("TypeParameterInstantiation")}}),i4("DeclareClass"),yr("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier"),predicate:Xr("DeclaredPredicate")}}),i4("DeclareInterface"),yr("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier","StringLiteral"),body:Gt("BlockStatement"),kind:Fa(Ra("CommonJS","ES"))}}),yr("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:Gt("TypeAnnotation")}}),yr("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier"),typeParameters:Xr("TypeParameterDeclaration"),right:Gt("FlowType")}}),yr("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier"),typeParameters:Xr("TypeParameterDeclaration"),supertype:Xr("FlowType"),impltype:Xr("FlowType")}}),yr("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier")}}),yr("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:Xr("Flow"),specifiers:Fa(la("ExportSpecifier","ExportNamespaceSpecifier")),source:Xr("StringLiteral"),default:Fa(Yt("boolean"))}}),yr("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:Gt("StringLiteral"),exportKind:Fa(Ra("type","value"))}}),yr("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:Gt("Flow")}}),yr("ExistsTypeAnnotation",{aliases:["FlowType"]}),yr("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:Xr("TypeParameterDeclaration"),params:pa("FunctionTypeParam"),rest:Xr("FunctionTypeParam"),this:Xr("FunctionTypeParam"),returnType:Gt("FlowType")}}),yr("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:Xr("Identifier"),typeAnnotation:Gt("FlowType"),optional:Fa(Yt("boolean"))}}),yr("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:Gt("Identifier","QualifiedTypeIdentifier"),typeParameters:Xr("TypeParameterInstantiation")}}),yr("InferredPredicate",{aliases:["FlowPredicate"]}),yr("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:Gt("Identifier","QualifiedTypeIdentifier"),typeParameters:Xr("TypeParameterInstantiation")}}),i4("InterfaceDeclaration"),yr("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:Fa(la("InterfaceExtends")),body:Gt("ObjectTypeAnnotation")}}),yr("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:xa(la("FlowType"))}}),yr("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:Gt("FlowType")}}),yr("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:xa(Yt("number"))}}),yr("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:xa(la("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:la("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:la("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:la("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:Yt("boolean"),default:!1},inexact:Fa(Yt("boolean"))}}),yr("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:Gt("Identifier"),value:Gt("FlowType"),optional:xa(Yt("boolean")),static:xa(Yt("boolean")),method:xa(Yt("boolean"))}}),yr("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:Gt("FlowType"),static:xa(Yt("boolean"))}}),yr("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:Xr("Identifier"),key:Gt("FlowType"),value:Gt("FlowType"),static:xa(Yt("boolean")),variance:Xr("Variance")}}),yr("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:Gt("Identifier","StringLiteral"),value:Gt("FlowType"),kind:xa(Ra("init","get","set")),static:xa(Yt("boolean")),proto:xa(Yt("boolean")),optional:xa(Yt("boolean")),variance:Xr("Variance"),method:xa(Yt("boolean"))}}),yr("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:Gt("FlowType")}}),yr("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier"),typeParameters:Xr("TypeParameterDeclaration"),supertype:Xr("FlowType"),impltype:Gt("FlowType")}}),yr("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:Gt("Identifier"),qualification:Gt("Identifier","QualifiedTypeIdentifier")}}),yr("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:xa(Yt("string"))}}),yr("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:xa(la("FlowType"))}}),yr("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:Gt("FlowType")}}),yr("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:Gt("Identifier"),typeParameters:Xr("TypeParameterDeclaration"),right:Gt("FlowType")}}),yr("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:Gt("FlowType")}}),yr("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:Gt("Expression"),typeAnnotation:Gt("TypeAnnotation")}}),yr("TypeParameter",{visitor:["bound","default","variance"],fields:{name:xa(Yt("string")),bound:Xr("TypeAnnotation"),default:Xr("FlowType"),variance:Xr("Variance")}}),yr("TypeParameterDeclaration",{visitor:["params"],fields:{params:xa(la("TypeParameter"))}}),yr("TypeParameterInstantiation",{visitor:["params"],fields:{params:xa(la("FlowType"))}}),yr("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:xa(la("FlowType"))}}),yr("Variance",{builder:["kind"],fields:{kind:xa(Ra("minus","plus"))}}),yr("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),yr("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:Gt("Identifier"),body:Gt("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),yr("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:xa(Yt("boolean")),members:pa("EnumBooleanMember"),hasUnknownMembers:xa(Yt("boolean"))}}),yr("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:xa(Yt("boolean")),members:pa("EnumNumberMember"),hasUnknownMembers:xa(Yt("boolean"))}}),yr("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:xa(Yt("boolean")),members:pa("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:xa(Yt("boolean"))}}),yr("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:pa("EnumDefaultedMember"),hasUnknownMembers:xa(Yt("boolean"))}}),yr("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:Gt("Identifier"),init:Gt("BooleanLiteral")}}),yr("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:Gt("Identifier"),init:Gt("NumericLiteral")}}),yr("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:Gt("Identifier"),init:Gt("StringLiteral")}}),yr("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:Gt("Identifier")}}),yr("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:Gt("FlowType"),indexType:Gt("FlowType")}}),yr("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:Gt("FlowType"),indexType:Gt("FlowType"),optional:xa(Yt("boolean"))}});var ps=wf("JSX");ps("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:rt("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:rt("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),ps("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:rt("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),ps("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:rt("JSXOpeningElement")},closingElement:{optional:!0,validate:rt("JSXClosingElement")},children:pa("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:Yt("boolean"),optional:!0}})}),ps("JSXEmptyExpression",{}),ps("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:rt("Expression","JSXEmptyExpression")}}}),ps("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:rt("Expression")}}}),ps("JSXIdentifier",{builder:["name"],fields:{name:{validate:Yt("string")}}}),ps("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:rt("JSXMemberExpression","JSXIdentifier")},property:{validate:rt("JSXIdentifier")}}}),ps("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:rt("JSXIdentifier")},name:{validate:rt("JSXIdentifier")}}}),ps("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:rt("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:pa("JSXAttribute","JSXSpreadAttribute"),typeParameters:{validate:rt("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ps("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:rt("Expression")}}}),ps("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:Yt("string")}}}),ps("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:rt("JSXOpeningFragment")},closingFragment:{validate:rt("JSXClosingFragment")},children:pa("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),ps("JSXOpeningFragment",{aliases:["Immutable"]}),ps("JSXClosingFragment",{aliases:["Immutable"]});for(var o4=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],wc={Declaration:["Statement"],Pattern:["PatternLike","LVal"]},l4=0,KB=o4;l4=Number.MAX_SAFE_INTEGER?Yl.uid=0:Yl.uid++};function uq(e,r){if(pi(e))return e;var s=!1,o;if(Ec(e))s=!0,o="ClassDeclaration";else if(Ds(e))s=!0,o="FunctionDeclaration";else if(no(e))return Qt(e);if(s&&!e.id&&(o=!1),!o){if(r)return!1;throw new Error("cannot turn "+e.type+" to a statement")}return e.type=o,e}var _Ee=Function.call.bind(Object.prototype.toString);function NEe(e){return _Ee(e)==="[object RegExp]"}function DEe(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);return r===null||Object.getPrototypeOf(r)===null}function Ff(e){if(e===void 0)return De("undefined");if(e===!0||e===!1)return fn(e);if(e===null)return Un();if(typeof e=="string")return Zt(e);if(typeof e=="number"){var r;if(Number.isFinite(e))r=Br(Math.abs(e));else{var s;Number.isNaN(e)?s=Br(0):s=Br(1),r=sn("/",s,Br(0))}return(e<0||Object.is(e,-0))&&(r=Rn("-",r)),r}if(NEe(e)){var o=e.source,d=/\/([a-z]*)$/.exec(e.toString())[1];return xg(o,d)}if(Array.isArray(e))return Ea(e.map(Ff));if(DEe(e)){for(var l=[],c=0,f=Object.keys(e);c1?e:e[0]}),WEe=u8(function(e){return e}),GEe=u8(function(e){if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),vq={code:function(r){return`( `+r+` )`},validate:function(r){if(r.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(vq.unwrap(r).start===0)throw new Error("Parse result included parens.")},unwrap:function(r){var s=r.program,o=ve(s.body,1),d=o[0];return UEe(d),d.expression}},KEe={code:function(r){return r},validate:function(){},unwrap:function(r){return r.program}},HEe=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function $f(e,r){var s=r.placeholderWhitelist,o=s===void 0?e.placeholderWhitelist:s,d=r.placeholderPattern,l=d===void 0?e.placeholderPattern:d,c=r.preserveComments,f=c===void 0?e.preserveComments:c,h=r.syntacticPlaceholders,y=h===void 0?e.syntacticPlaceholders:h;return{parser:Object.assign({},e.parser,r.parser),placeholderWhitelist:o,placeholderPattern:l,preserveComments:f,syntacticPlaceholders:y}}function qf(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");var r=e||{},s=r.placeholderWhitelist,o=r.placeholderPattern,d=r.preserveComments,l=r.syntacticPlaceholders,c=Xe(r,HEe);if(s!=null&&!(s instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(o!=null&&!(o instanceof RegExp)&&o!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(d!=null&&typeof d!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(l!=null&&typeof l!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(l===!0&&(s!=null||o!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:c,placeholderWhitelist:s||void 0,placeholderPattern:o??void 0,preserveComments:d??void 0,syntacticPlaceholders:l??void 0}}function bq(e){if(Array.isArray(e))return e.reduce(function(r,s,o){return r["$"+o]=s,r},{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}var Ql=O(function(r,s,o){this.line=void 0,this.column=void 0,this.index=void 0,this.line=r,this.column=s,this.index=o}),Mg=O(function(r,s){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=r,this.end=s});function fs(e,r){var s=e.line,o=e.column,d=e.index;return new Ql(s,o+r,d+r)}var xq="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",zEe={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:xq},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:xq}},Rq={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Bg=function(r){return r.type==="UpdateExpression"?Rq.UpdateExpression[""+r.prefix]:Rq[r.type]},XEe={AccessorIsGenerator:function(r){var s=r.kind;return"A "+s+"ter cannot be a generator."},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:function(r){var s=r.kind;return"Missing initializer in "+s+" declaration."},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:function(r){var s=r.exportName;return"`"+s+"` has already been exported. Exported identifiers must be unique."},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(r){var s=r.phase;return"'import."+s+"(...)' can only be parsed when using the 'createImportExpressions' option."},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(r){var s=r.localName,o=r.exportName;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '"+s+"' as '"+o+"' } from 'some-module'`?"},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(r){var s=r.type;return"'"+(s==="ForInStatement"?"for-in":"for-of")+"' loop variable declaration may not have an initializer."},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:function(r){var s=r.type;return"Unsyntactic "+(s==="BreakStatement"?"break":"continue")+"."},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(r){var s=r.importName;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'+s+'" as foo }`?'},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(r){var s=r.maxArgumentCount;return"`import()` requires exactly "+(s===1?"one argument":"one or two arguments")+"."},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:function(r){var s=r.radix;return"Expected number in radix "+s+"."},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(r){var s=r.reservedWord;return"Escape sequence in keyword "+s+"."},InvalidIdentifier:function(r){var s=r.identifierName;return"Invalid identifier "+s+"."},InvalidLhs:function(r){var s=r.ancestor;return"Invalid left-hand side in "+Bg(s)+"."},InvalidLhsBinding:function(r){var s=r.ancestor;return"Binding invalid left-hand side in "+Bg(s)+"."},InvalidLhsOptionalChaining:function(r){var s=r.ancestor;return"Invalid optional chaining in the left-hand side of "+Bg(s)+"."},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(r){var s=r.unexpected;return"Unexpected character '"+s+"'."},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(r){var s=r.identifierName;return"Private name #"+s+" is not defined."},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:function(r){var s=r.labelName;return"Label '"+s+"' is already declared."},LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:function(r){var s=r.missingPlugin;return"This experimental syntax requires enabling the parser plugin: "+s.map(function(o){return JSON.stringify(o)}).join(", ")+"."},MissingOneOfPlugins:function(r){var s=r.missingPlugin;return"This experimental syntax requires enabling one of the following parser plugin(s): "+s.map(function(o){return JSON.stringify(o)}).join(", ")+"."},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:function(r){var s=r.key;return'Duplicate key "'+s+'" is not allowed in module attributes.'},ModuleExportNameHasLoneSurrogate:function(r){var s=r.surrogateCharCode;return"An export name cannot include a lone surrogate, found '\\u"+s.toString(16)+"'."},ModuleExportUndefined:function(r){var s=r.localName;return"Export '"+s+"' is not defined."},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:function(r){var s=r.identifierName;return"Private names are only allowed in property accesses (`obj.#"+s+"`) or in `in` expressions (`#"+s+" in obj`)."},PrivateNameRedeclaration:function(r){var s=r.identifierName;return"Duplicate private name #"+s+"."},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:function(r){var s=r.keyword;return"Unexpected keyword '"+s+"'."},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:function(r){var s=r.reservedWord;return"Unexpected reserved word '"+s+"'."},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(r){var s=r.expected,o=r.unexpected;return"Unexpected token"+(o?" '"+o+"'.":"")+(s?', expected "'+s+'"':"")},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:function(r){var s=r.target,o=r.onlyValidPropertyName;return"The only valid meta property for "+s+" is "+s+"."+o+"."},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(r){var s=r.identifierName;return"Identifier '"+s+"' has already been declared."},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},JEe={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:function(r){var s=r.referenceName;return"Assigning to '"+s+"' in strict mode."},StrictEvalArgumentsBinding:function(r){var s=r.bindingName;return"Binding '"+s+"' in strict mode."},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},YEe=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),QEe={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:function(r){var s=r.token;return"Invalid topic token "+s+". In order to use "+s+' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "'+s+'" }.'},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(r){var s=r.type;return"Hack-style pipe body cannot be an unparenthesized "+Bg({type:s})+"; please wrap it in parentheses."},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},Eq,ZEe=["message"];function Sq(e,r,s){Object.defineProperty(e,r,{enumerable:!1,configurable:!0,value:s})}function eSe(e){var r=e.toMessage,s=e.code,o=e.reasonCode,d=e.syntaxPlugin,l=o==="MissingPlugin"||o==="MissingOneOfPlugins";{var c={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};c[o]&&(o=c[o])}return function f(h,y){var g=new SyntaxError;return g.code=s,g.reasonCode=o,g.loc=h,g.pos=h.index,g.syntaxPlugin=d,l&&(g.missingPlugin=y.missingPlugin),Sq(g,"clone",function(R){var w;R===void 0&&(R={});var T=(w=R.loc)!=null?w:h,C=T.line,P=T.column,_=T.index;return f(new Ql(C,P,_),Object.assign({},y,R.details))}),Sq(g,"details",y),Object.defineProperty(g,"message",{configurable:!0,get:function(){var R=r(y)+" ("+h.line+":"+h.column+")";return this.message=R,R},set:function(R){Object.defineProperty(this,"message",{value:R,writable:!0})}}),g}}function Uo(e,r){if(Array.isArray(e))return function(c){return Uo(c,e[0])};for(var s={},o=function(){var f=l[d],h=e[f],y=typeof h=="string"?{message:function(){return h}}:typeof h=="function"?{message:h}:h,g=y.message,x=Xe(y,ZEe),R=typeof g=="string"?function(){return g}:g;s[f]=eSe(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:f,toMessage:R},r?{syntaxPlugin:r}:{},x))},d=0,l=Object.keys(e);d0&&g.start===h.start&&this.resetStartLocation(h,f)}break}return h},o.parseSubscript=function(l,c,f,h){var y=r.prototype.parseSubscript.call(this,l,c,f,h);if(h.optionalChainMember){if((y.type==="OptionalMemberExpression"||y.type==="OptionalCallExpression")&&(y.type=y.type.substring(8)),h.stop){var g=this.startNodeAtNode(y);return g.expression=y,this.finishNode(g,"ChainExpression")}}else(y.type==="MemberExpression"||y.type==="CallExpression")&&(y.optional=!1);return y},o.isOptionalMemberExpression=function(l){return l.type==="ChainExpression"?l.expression.type==="MemberExpression":r.prototype.isOptionalMemberExpression.call(this,l)},o.hasPropertyAsPrivateName=function(l){return l.type==="ChainExpression"&&(l=l.expression),r.prototype.hasPropertyAsPrivateName.call(this,l)},o.isObjectProperty=function(l){return l.type==="Property"&&l.kind==="init"&&!l.method},o.isObjectMethod=function(l){return l.type==="Property"&&(l.method||l.kind==="get"||l.kind==="set")},o.finishNodeAt=function(l,c,f){return Uf(r.prototype.finishNodeAt.call(this,l,c,f))},o.resetStartLocation=function(l,c){r.prototype.resetStartLocation.call(this,l,c),Uf(l)},o.resetEndLocation=function(l,c){c===void 0&&(c=this.state.lastTokEndLoc),r.prototype.resetEndLocation.call(this,l,c),Uf(l)},O(s)}(e)},Vf=O(function(r,s){this.token=void 0,this.preserveSpace=void 0,this.token=r,this.preserveSpace=!!s}),Da={brace:new Vf("{"),j_oTag:new Vf("...",!0)};Da.template=new Vf("`",!0);var ra=!0,rr=!0,c8=!0,Wf=!0,Zl=!0,aSe=!0,wq=O(function(r,s){s===void 0&&(s={}),this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=r,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.rightAssociative=!!s.rightAssociative,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop!=null?s.binop:null,this.updateContext=null}),p8=new Map;function fa(e,r){r===void 0&&(r={}),r.keyword=e;var s=Tr(e,r);return p8.set(e,s),s}function hs(e,r){return Tr(e,{beforeExpr:ra,binop:r})}var Gf=-1,Vo=[],f8=[],h8=[],m8=[],y8=[],g8=[];function Tr(e,r){var s,o,d,l;return r===void 0&&(r={}),++Gf,f8.push(e),h8.push((s=r.binop)!=null?s:-1),m8.push((o=r.beforeExpr)!=null?o:!1),y8.push((d=r.startsExpr)!=null?d:!1),g8.push((l=r.prefix)!=null?l:!1),Vo.push(new wq(e,r)),Gf}function aa(e,r){var s,o,d,l;return r===void 0&&(r={}),++Gf,p8.set(e,Gf),f8.push(e),h8.push((s=r.binop)!=null?s:-1),m8.push((o=r.beforeExpr)!=null?o:!1),y8.push((d=r.startsExpr)!=null?d:!1),g8.push((l=r.prefix)!=null?l:!1),Vo.push(new wq("name",r)),Gf}var nSe={bracketL:Tr("[",{beforeExpr:ra,startsExpr:rr}),bracketHashL:Tr("#[",{beforeExpr:ra,startsExpr:rr}),bracketBarL:Tr("[|",{beforeExpr:ra,startsExpr:rr}),bracketR:Tr("]"),bracketBarR:Tr("|]"),braceL:Tr("{",{beforeExpr:ra,startsExpr:rr}),braceBarL:Tr("{|",{beforeExpr:ra,startsExpr:rr}),braceHashL:Tr("#{",{beforeExpr:ra,startsExpr:rr}),braceR:Tr("}"),braceBarR:Tr("|}"),parenL:Tr("(",{beforeExpr:ra,startsExpr:rr}),parenR:Tr(")"),comma:Tr(",",{beforeExpr:ra}),semi:Tr(";",{beforeExpr:ra}),colon:Tr(":",{beforeExpr:ra}),doubleColon:Tr("::",{beforeExpr:ra}),dot:Tr("."),question:Tr("?",{beforeExpr:ra}),questionDot:Tr("?."),arrow:Tr("=>",{beforeExpr:ra}),template:Tr("template"),ellipsis:Tr("...",{beforeExpr:ra}),backQuote:Tr("`",{startsExpr:rr}),dollarBraceL:Tr("${",{beforeExpr:ra,startsExpr:rr}),templateTail:Tr("...`",{startsExpr:rr}),templateNonTail:Tr("...${",{beforeExpr:ra,startsExpr:rr}),at:Tr("@"),hash:Tr("#",{startsExpr:rr}),interpreterDirective:Tr("#!..."),eq:Tr("=",{beforeExpr:ra,isAssign:Wf}),assign:Tr("_=",{beforeExpr:ra,isAssign:Wf}),slashAssign:Tr("_=",{beforeExpr:ra,isAssign:Wf}),xorAssign:Tr("_=",{beforeExpr:ra,isAssign:Wf}),moduloAssign:Tr("_=",{beforeExpr:ra,isAssign:Wf}),incDec:Tr("++/--",{prefix:Zl,postfix:aSe,startsExpr:rr}),bang:Tr("!",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),tilde:Tr("~",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),doubleCaret:Tr("^^",{startsExpr:rr}),doubleAt:Tr("@@",{startsExpr:rr}),pipeline:hs("|>",0),nullishCoalescing:hs("??",1),logicalOR:hs("||",1),logicalAND:hs("&&",2),bitwiseOR:hs("|",3),bitwiseXOR:hs("^",4),bitwiseAND:hs("&",5),equality:hs("==/!=/===/!==",6),lt:hs("/<=/>=",7),gt:hs("/<=/>=",7),relational:hs("/<=/>=",7),bitShift:hs("<>/>>>",8),bitShiftL:hs("<>/>>>",8),bitShiftR:hs("<>/>>>",8),plusMin:Tr("+/-",{beforeExpr:ra,binop:9,prefix:Zl,startsExpr:rr}),modulo:Tr("%",{binop:10,startsExpr:rr}),star:Tr("*",{binop:10}),slash:hs("/",10),exponent:Tr("**",{beforeExpr:ra,binop:11,rightAssociative:!0}),_in:fa("in",{beforeExpr:ra,binop:7}),_instanceof:fa("instanceof",{beforeExpr:ra,binop:7}),_break:fa("break"),_case:fa("case",{beforeExpr:ra}),_catch:fa("catch"),_continue:fa("continue"),_debugger:fa("debugger"),_default:fa("default",{beforeExpr:ra}),_else:fa("else",{beforeExpr:ra}),_finally:fa("finally"),_function:fa("function",{startsExpr:rr}),_if:fa("if"),_return:fa("return",{beforeExpr:ra}),_switch:fa("switch"),_throw:fa("throw",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),_try:fa("try"),_var:fa("var"),_const:fa("const"),_with:fa("with"),_new:fa("new",{beforeExpr:ra,startsExpr:rr}),_this:fa("this",{startsExpr:rr}),_super:fa("super",{startsExpr:rr}),_class:fa("class",{startsExpr:rr}),_extends:fa("extends",{beforeExpr:ra}),_export:fa("export"),_import:fa("import",{startsExpr:rr}),_null:fa("null",{startsExpr:rr}),_true:fa("true",{startsExpr:rr}),_false:fa("false",{startsExpr:rr}),_typeof:fa("typeof",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),_void:fa("void",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),_delete:fa("delete",{beforeExpr:ra,prefix:Zl,startsExpr:rr}),_do:fa("do",{isLoop:c8,beforeExpr:ra}),_for:fa("for",{isLoop:c8}),_while:fa("while",{isLoop:c8}),_as:aa("as",{startsExpr:rr}),_assert:aa("assert",{startsExpr:rr}),_async:aa("async",{startsExpr:rr}),_await:aa("await",{startsExpr:rr}),_defer:aa("defer",{startsExpr:rr}),_from:aa("from",{startsExpr:rr}),_get:aa("get",{startsExpr:rr}),_let:aa("let",{startsExpr:rr}),_meta:aa("meta",{startsExpr:rr}),_of:aa("of",{startsExpr:rr}),_sent:aa("sent",{startsExpr:rr}),_set:aa("set",{startsExpr:rr}),_source:aa("source",{startsExpr:rr}),_static:aa("static",{startsExpr:rr}),_using:aa("using",{startsExpr:rr}),_yield:aa("yield",{startsExpr:rr}),_asserts:aa("asserts",{startsExpr:rr}),_checks:aa("checks",{startsExpr:rr}),_exports:aa("exports",{startsExpr:rr}),_global:aa("global",{startsExpr:rr}),_implements:aa("implements",{startsExpr:rr}),_intrinsic:aa("intrinsic",{startsExpr:rr}),_infer:aa("infer",{startsExpr:rr}),_is:aa("is",{startsExpr:rr}),_mixins:aa("mixins",{startsExpr:rr}),_proto:aa("proto",{startsExpr:rr}),_require:aa("require",{startsExpr:rr}),_satisfies:aa("satisfies",{startsExpr:rr}),_keyof:aa("keyof",{startsExpr:rr}),_readonly:aa("readonly",{startsExpr:rr}),_unique:aa("unique",{startsExpr:rr}),_abstract:aa("abstract",{startsExpr:rr}),_declare:aa("declare",{startsExpr:rr}),_enum:aa("enum",{startsExpr:rr}),_module:aa("module",{startsExpr:rr}),_namespace:aa("namespace",{startsExpr:rr}),_interface:aa("interface",{startsExpr:rr}),_type:aa("type",{startsExpr:rr}),_opaque:aa("opaque",{startsExpr:rr}),name:Tr("name",{startsExpr:rr}),string:Tr("string",{startsExpr:rr}),num:Tr("num",{startsExpr:rr}),bigint:Tr("bigint",{startsExpr:rr}),decimal:Tr("decimal",{startsExpr:rr}),regexp:Tr("regexp",{startsExpr:rr}),privateName:Tr("#name",{startsExpr:rr}),eof:Tr("eof"),jsxName:Tr("jsxName"),jsxText:Tr("jsxText",{beforeExpr:!0}),jsxTagStart:Tr("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Tr("jsxTagEnd"),placeholder:Tr("%%",{startsExpr:!0})};function Sa(e){return e>=93&&e<=132}function sSe(e){return e<=92}function Vi(e){return e>=58&&e<=132}function Pq(e){return e>=58&&e<=136}function iSe(e){return m8[e]}function v8(e){return y8[e]}function oSe(e){return e>=29&&e<=33}function Aq(e){return e>=129&&e<=131}function lSe(e){return e>=90&&e<=92}function b8(e){return e>=58&&e<=92}function dSe(e){return e>=39&&e<=59}function uSe(e){return e===34}function cSe(e){return g8[e]}function pSe(e){return e>=121&&e<=123}function fSe(e){return e>=124&&e<=130}function ed(e){return f8[e]}function Fg(e){return h8[e]}function hSe(e){return e===57}function $g(e){return e>=24&&e<=25}function Wo(e){return Vo[e]}Vo[8].updateContext=function(e){e.pop()},Vo[5].updateContext=Vo[7].updateContext=Vo[23].updateContext=function(e){e.push(Da.brace)},Vo[22].updateContext=function(e){e[e.length-1]===Da.template?e.pop():e.push(Da.template)},Vo[142].updateContext=function(e){e.push(Da.j_expr,Da.j_oTag)};function mSe(e,r,s){return e===64&&r===64&&so(s)}var ySe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function gSe(e){return ySe.has(e)}var $r={OTHER:0,PROGRAM:1,FUNCTION:2,ARROW:4,SIMPLE_CATCH:8,SUPER:16,DIRECT_SUPER:32,CLASS:64,STATIC_BLOCK:128,TS_MODULE:256,VAR:387},wr={KIND_VALUE:1,KIND_TYPE:2,SCOPE_VAR:4,SCOPE_LEXICAL:8,SCOPE_FUNCTION:16,SCOPE_OUTSIDE:32,FLAG_NONE:64,FLAG_CLASS:128,FLAG_TS_ENUM:256,FLAG_TS_CONST_ENUM:512,FLAG_TS_EXPORT_ONLY:1024,FLAG_FLOW_DECLARE_FN:2048,FLAG_TS_IMPORT:4096,FLAG_NO_LET_IN_LEXICAL:8192,TYPE_CLASS:8331,TYPE_LEXICAL:8201,TYPE_CATCH_PARAM:9,TYPE_VAR:5,TYPE_FUNCTION:17,TYPE_TS_INTERFACE:130,TYPE_TS_TYPE:2,TYPE_TS_ENUM:8459,TYPE_TS_AMBIENT:1024,TYPE_NONE:64,TYPE_OUTSIDE:65,TYPE_TS_CONST_ENUM:8971,TYPE_TS_NAMESPACE:1024,TYPE_TS_TYPE_IMPORT:4098,TYPE_TS_VALUE_IMPORT:4096,TYPE_FLOW_DECLARE_FN:2048},gi={OTHER:0,FLAG_STATIC:4,KIND_GETTER:2,KIND_SETTER:1,KIND_ACCESSOR:3,STATIC_GETTER:6,STATIC_SETTER:5,INSTANCE_GETTER:2,INSTANCE_SETTER:1},co={Var:1,Lexical:2,Function:4},x8=O(function(r){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=r}),R8=function(){function e(s,o){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=s,this.inModule=o}var r=e.prototype;return r.createScope=function(o){return new x8(o)},r.enter=function(o){this.scopeStack.push(this.createScope(o))},r.exit=function(){var o=this.scopeStack.pop();return o.flags},r.treatFunctionsAsVarInScope=function(o){return!!(o.flags&($r.FUNCTION|$r.STATIC_BLOCK)||!this.parser.inModule&&o.flags&$r.PROGRAM)},r.declareName=function(o,d,l){var c=this.currentScope();if(d&wr.SCOPE_LEXICAL||d&wr.SCOPE_FUNCTION){this.checkRedeclarationInScope(c,o,d,l);var f=c.names.get(o)||0;d&wr.SCOPE_FUNCTION?f=f|co.Function:(c.firstLexicalName||(c.firstLexicalName=o),f=f|co.Lexical),c.names.set(o,f),d&wr.SCOPE_LEXICAL&&this.maybeExportDefined(c,o)}else if(d&wr.SCOPE_VAR)for(var h=this.scopeStack.length-1;h>=0&&(c=this.scopeStack[h],this.checkRedeclarationInScope(c,o,d,l),c.names.set(o,(c.names.get(o)||0)|co.Var),this.maybeExportDefined(c,o),!(c.flags&$r.VAR));--h);this.parser.inModule&&c.flags&$r.PROGRAM&&this.undefinedExports.delete(o)},r.maybeExportDefined=function(o,d){this.parser.inModule&&o.flags&$r.PROGRAM&&this.undefinedExports.delete(d)},r.checkRedeclarationInScope=function(o,d,l,c){this.isRedeclaredInScope(o,d,l)&&this.parser.raise(Ke.VarRedeclaration,c,{identifierName:d})},r.isRedeclaredInScope=function(o,d,l){if(!(l&wr.KIND_VALUE))return!1;if(l&wr.SCOPE_LEXICAL)return o.names.has(d);var c=o.names.get(d);return l&wr.SCOPE_FUNCTION?(c&co.Lexical)>0||!this.treatFunctionsAsVarInScope(o)&&(c&co.Var)>0:(c&co.Lexical)>0&&!(o.flags&$r.SIMPLE_CATCH&&o.firstLexicalName===d)||!this.treatFunctionsAsVarInScope(o)&&(c&co.Function)>0},r.checkLocalExport=function(o){var d=o.name,l=this.scopeStack[0];l.names.has(d)||this.undefinedExports.set(d,o.loc.start)},r.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},r.currentVarScopeFlags=function(){for(var o=this.scopeStack.length-1;;o--){var d=this.scopeStack[o].flags;if(d&$r.VAR)return d}},r.currentThisScopeFlags=function(){for(var o=this.scopeStack.length-1;;o--){var d=this.scopeStack[o].flags;if(d&($r.VAR|$r.CLASS)&&!(d&$r.ARROW))return d}},O(e,[{key:"inTopLevel",get:function(){return(this.currentScope().flags&$r.PROGRAM)>0}},{key:"inFunction",get:function(){return(this.currentVarScopeFlags()&$r.FUNCTION)>0}},{key:"allowSuper",get:function(){return(this.currentThisScopeFlags()&$r.SUPER)>0}},{key:"allowDirectSuper",get:function(){return(this.currentThisScopeFlags()&$r.DIRECT_SUPER)>0}},{key:"inClass",get:function(){return(this.currentThisScopeFlags()&$r.CLASS)>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var o=this.currentThisScopeFlags();return(o&$r.CLASS)>0&&(o&$r.FUNCTION)===0}},{key:"inStaticBlock",get:function(){for(var o=this.scopeStack.length-1;;o--){var d=this.scopeStack[o].flags;if(d&$r.STATIC_BLOCK)return!0;if(d&($r.VAR|$r.CLASS))return!1}}},{key:"inNonArrowFunction",get:function(){return(this.currentThisScopeFlags()&$r.FUNCTION)>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}}])}(),vSe=function(e){function r(){for(var s,o=arguments.length,d=new Array(o),l=0;l0||(f&co.Lexical)>0}return!1},s.checkLocalExport=function(d){this.scopeStack[0].declareFunctions.has(d.name)||e.prototype.checkLocalExport.call(this,d)},O(r)}(R8),xSe=function(){function e(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}var r=e.prototype;return r.hasPlugin=function(o){if(typeof o=="string")return this.plugins.has(o);var d=o[0],l=o[1];if(!this.hasPlugin(d))return!1;for(var c=this.plugins.get(d),f=0,h=Object.keys(l);f0;)o=r[--d];o===null||o.start>s.start?Kf(e,s.comments):Iq(o,s.comments)}var ESe=function(e){function r(){return e.apply(this,arguments)||this}L(r,e);var s=r.prototype;return s.addComment=function(d){this.filename&&(d.loc.filename=this.filename);var l=this.state.commentsLen;this.comments.length!==l&&(this.comments.length=l),this.comments.push(d),this.state.commentsLen++},s.processComment=function(d){var l=this.state.commentStack,c=l.length;if(c!==0){var f=c-1,h=l[f];h.start===d.end&&(h.leadingNode=d,f--);for(var y=d.start;f>=0;f--){var g=l[f],x=g.end;if(x>y)g.containingNode=d,this.finalizeComment(g),l.splice(f,1);else{x===y&&(g.trailingNode=d);break}}}},s.finalizeComment=function(d){var l=d.comments;if(d.leadingNode!==null||d.trailingNode!==null)d.leadingNode!==null&&Iq(d.leadingNode,l),d.trailingNode!==null&&RSe(d.trailingNode,l);else{var c=d.containingNode,f=d.start;if(this.input.charCodeAt(f-1)===44)switch(c.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Hf(c,c.properties,d);break;case"CallExpression":case"OptionalCallExpression":Hf(c,c.arguments,d);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Hf(c,c.params,d);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Hf(c,c.elements,d);break;case"ExportNamedDeclaration":case"ImportDeclaration":Hf(c,c.specifiers,d);break;default:Kf(c,l)}else Kf(c,l)}},s.finalizeRemainingComments=function(){for(var d=this.state.commentStack,l=d.length-1;l>=0;l--)this.finalizeComment(d[l]);this.state.commentStack=[]},s.resetPreviousNodeTrailingComments=function(d){var l=this.state.commentStack,c=l.length;if(c!==0){var f=l[c-1];f.leadingNode===d&&(f.leadingNode=null)}},s.resetPreviousIdentifierLeadingComments=function(d){var l=this.state.commentStack,c=l.length;c!==0&&(l[c-1].trailingNode===d?l[c-1].trailingNode=null:c>=2&&l[c-2].trailingNode===d&&(l[c-2].trailingNode=null))},s.takeSurroundingComments=function(d,l,c){var f=this.state.commentStack,h=f.length;if(h!==0)for(var y=h-1;y>=0;y--){var g=f[y],x=g.end,R=g.start;if(R===c)g.leadingNode=d;else if(x===l)g.trailingNode=d;else if(x0},set:function(o){o?this.flags|=1:this.flags&=-2}},{key:"maybeInArrowParameters",get:function(){return(this.flags&2)>0},set:function(o){o?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(this.flags&4)>0},set:function(o){o?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(this.flags&8)>0},set:function(o){o?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(this.flags&16)>0},set:function(o){o?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(this.flags&32)>0},set:function(o){o?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(this.flags&64)>0},set:function(o){o?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(this.flags&128)>0},set:function(o){o?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(this.flags&256)>0},set:function(o){o?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(this.flags&512)>0},set:function(o){o?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(this.flags&1024)>0},set:function(o){o?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(this.flags&2048)>0},set:function(o){o?this.flags|=2048:this.flags&=-2049}},{key:"hasTopLevelAwait",get:function(){return(this.flags&4096)>0},set:function(o){o?this.flags|=4096:this.flags&=-4097}}])}();function Xf(e,r,s){return new Ql(s,e-r,e)}var PSe=new Set([103,109,115,105,121,117,100,118]),td=O(function(r){this.type=r.type,this.value=r.value,this.start=r.start,this.end=r.end,this.loc=new Mg(r.startLoc,r.endLoc)}),ASe=function(e){function r(o,d){var l;return l=e.call(this)||this,l.isLookahead=void 0,l.tokens=[],l.errorHandlers_readInt={invalidDigit:function(f,h,y,g){return l.options.errorRecovery?(l.raise(Ke.InvalidDigit,Xf(f,h,y),{radix:g}),!0):!1},numericSeparatorInEscapeSequence:l.errorBuilder(Ke.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:l.errorBuilder(Ke.UnexpectedNumericSeparator)},l.errorHandlers_readCodePoint=Object.assign({},l.errorHandlers_readInt,{invalidEscapeSequence:l.errorBuilder(Ke.InvalidEscapeSequence),invalidCodePoint:l.errorBuilder(Ke.InvalidCodePoint)}),l.errorHandlers_readStringContents_string=Object.assign({},l.errorHandlers_readCodePoint,{strictNumericEscape:function(f,h,y){l.recordStrictModeErrors(Ke.StrictNumericEscape,Xf(f,h,y))},unterminated:function(f,h,y){throw l.raise(Ke.UnterminatedString,Xf(f-1,h,y))}}),l.errorHandlers_readStringContents_template=Object.assign({},l.errorHandlers_readCodePoint,{strictNumericEscape:l.errorBuilder(Ke.StrictNumericEscape),unterminated:function(f,h,y){throw l.raise(Ke.UnterminatedTemplate,Xf(f,h,y))}}),l.state=new wSe,l.state.init(o),l.input=d,l.length=d.length,l.comments=[],l.isLookahead=!1,l}L(r,e);var s=r.prototype;return s.pushToken=function(d){this.tokens.length=this.state.tokensLength,this.tokens.push(d),++this.state.tokensLength},s.next=function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new td(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},s.eat=function(d){return this.match(d)?(this.next(),!0):!1},s.match=function(d){return this.state.type===d},s.createLookaheadState=function(d){return{pos:d.pos,value:null,type:d.type,start:d.start,end:d.end,context:[this.curContext()],inType:d.inType,startLoc:d.startLoc,lastTokEndLoc:d.lastTokEndLoc,curLine:d.curLine,lineStart:d.lineStart,curPosition:d.curPosition}},s.lookahead=function(){var d=this.state;this.state=this.createLookaheadState(d),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var l=this.state;return this.state=d,l},s.nextTokenStart=function(){return this.nextTokenStartSince(this.state.pos)},s.nextTokenStartSince=function(d){return E8.lastIndex=d,E8.test(this.input)?E8.lastIndex:d},s.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},s.nextTokenInLineStart=function(){return this.nextTokenInLineStartSince(this.state.pos)},s.nextTokenInLineStartSince=function(d){return S8.lastIndex=d,S8.test(this.input)?S8.lastIndex:d},s.lookaheadInLineCharCode=function(){return this.input.charCodeAt(this.nextTokenInLineStart())},s.codePointAtPos=function(d){var l=this.input.charCodeAt(d);if((l&64512)===55296&&++d=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))},s.skipBlockComment=function(d){var l;this.isLookahead||(l=this.state.curPosition());var c=this.state.pos,f=this.input.indexOf(d,c+2);if(f===-1)throw this.raise(Ke.UnterminatedComment,this.state.curPosition());for(this.state.pos=f+d.length,qg.lastIndex=c+2;qg.test(this.input)&&qg.lastIndex<=f;)++this.state.curLine,this.state.lineStart=qg.lastIndex;if(!this.isLookahead){var h={type:"CommentBlock",value:this.input.slice(c+2,f),start:c,end:f+d.length,loc:new Mg(l,this.state.curPosition())};return this.options.tokens&&this.pushToken(h),h}},s.skipLineComment=function(d){var l=this.state.pos,c;this.isLookahead||(c=this.state.curPosition());var f=this.input.charCodeAt(this.state.pos+=d);if(this.state.posd)){var g=this.skipLineComment(3);g!==void 0&&(this.addComment(g),this.options.attachComment&&l.push(g))}else break e}else if(c===60&&!this.inModule&&this.options.annexB){var x=this.state.pos;if(this.input.charCodeAt(x+1)===33&&this.input.charCodeAt(x+2)===45&&this.input.charCodeAt(x+3)===45){var R=this.skipLineComment(4);R!==void 0&&(this.addComment(R),this.options.attachComment&&l.push(R))}else break e}else break e}}if(l.length>0){var w=this.state.pos,T={start:d,end:w,comments:l,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(T)}},s.finishToken=function(d,l){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var c=this.state.type;this.state.type=d,this.state.value=l,this.isLookahead||this.updateContext(c)},s.replaceToken=function(d){this.state.type=d,this.updateContext()},s.readToken_numberSign=function(){if(!(this.state.pos===0&&this.readToken_interpreter())){var d=this.state.pos+1,l=this.codePointAtPos(d);if(l>=48&&l<=57)throw this.raise(Ke.UnexpectedDigitAfterHash,this.state.curPosition());if(l===123||l===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(l===123?Ke.RecordExpressionHashIncorrectStartSyntaxType:Ke.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,l===123?this.finishToken(7):this.finishToken(1)}else so(l)?(++this.state.pos,this.finishToken(138,this.readWord1(l))):l===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}},s.readToken_dot=function(){var d=this.input.charCodeAt(this.state.pos+1);if(d>=48&&d<=57){this.readNumber(!0);return}d===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))},s.readToken_slash=function(){var d=this.input.charCodeAt(this.state.pos+1);d===61?this.finishOp(31,2):this.finishOp(56,1)},s.readToken_interpreter=function(){if(this.state.pos!==0||this.length<2)return!1;var d=this.input.charCodeAt(this.state.pos+1);if(d!==33)return!1;var l=this.state.pos;for(this.state.pos+=1;!Lc(d)&&++this.state.pos=48&&l<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))},s.getTokenFromCode=function(d){switch(d){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ke.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(Ke.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{var l=this.input.charCodeAt(this.state.pos+1);if(l===120||l===88){this.readRadixNumber(16);return}if(l===111||l===79){this.readRadixNumber(8);return}if(l===98||l===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(d);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(d);return;case 124:case 38:this.readToken_pipe_amp(d);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(d);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(d);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(so(d)){this.readWord(d);return}}throw this.raise(Ke.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(d)})},s.finishOp=function(d,l){var c=this.input.slice(this.state.pos,this.state.pos+l);this.state.pos+=l,this.finishToken(d,c)},s.readRegexp=function(){for(var d=this.state.startLoc,l=this.state.start+1,c,f,h=this.state.pos;;++h){if(h>=this.length)throw this.raise(Ke.UnterminatedRegExp,fs(d,1));var y=this.input.charCodeAt(h);if(Lc(y))throw this.raise(Ke.UnterminatedRegExp,fs(d,1));if(c)c=!1;else{if(y===91)f=!0;else if(y===93&&f)f=!1;else if(y===47&&!f)break;c=y===92}}var g=this.input.slice(l,h);++h;for(var x="",R=function(){return fs(d,h+2-l)};h=2&&this.input.charCodeAt(l)===48;if(x){var R=this.input.slice(l,this.state.pos);if(this.recordStrictModeErrors(Ke.StrictOctalLiteral,c),!this.state.strict){var w=R.indexOf("_");w>0&&this.raise(Ke.ZeroDigitNumericSeparator,fs(c,w))}g=x&&!/[89]/.test(R)}var T=this.input.charCodeAt(this.state.pos);if(T===46&&!g&&(++this.state.pos,this.readInt(10),f=!0,T=this.input.charCodeAt(this.state.pos)),(T===69||T===101)&&!g&&(T=this.input.charCodeAt(++this.state.pos),(T===43||T===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(Ke.InvalidOrMissingExponent,c),f=!0,y=!0,T=this.input.charCodeAt(this.state.pos)),T===110&&((f||x)&&this.raise(Ke.InvalidBigIntLiteral,c),++this.state.pos,h=!0),T===109){this.expectPlugin("decimal",this.state.curPosition()),(y||x)&&this.raise(Ke.InvalidDecimal,c),++this.state.pos;var C=!0}if(so(this.codePointAtPos(this.state.pos)))throw this.raise(Ke.NumberIdentifier,this.state.curPosition());var P=this.input.slice(l,this.state.pos).replace(/[_mn]/g,"");if(h){this.finishToken(135,P);return}if(C){this.finishToken(136,P);return}var _=g?parseInt(P,8):parseFloat(P);this.finishToken(134,_)},s.readCodePoint=function(d){var l=kB(this.input,this.state.pos,this.state.lineStart,this.state.curLine,d,this.errorHandlers_readCodePoint),c=l.code,f=l.pos;return this.state.pos=f,c},s.readString=function(d){var l=Gx(d===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),c=l.str,f=l.pos,h=l.curLine,y=l.lineStart;this.state.pos=f+1,this.state.lineStart=y,this.state.curLine=h,this.finishToken(133,c)},s.readTemplateContinuation=function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()},s.readTemplateToken=function(){var d=this.input[this.state.pos],l=Gx("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),c=l.str,f=l.firstInvalidLoc,h=l.pos,y=l.curLine,g=l.lineStart;this.state.pos=h+1,this.state.lineStart=g,this.state.curLine=y,f&&(this.state.firstInvalidTemplateEscapePos=new Ql(f.curLine,f.pos-f.lineStart,f.pos)),this.input.codePointAt(h)===96?this.finishToken(24,f?null:d+c+"`"):(this.state.pos++,this.finishToken(25,f?null:d+c+"${"))},s.recordStrictModeErrors=function(d,l){var c=l.index;this.state.strict&&!this.state.strictErrors.has(c)?this.raise(d,l):this.state.strictErrors.set(c,[d,l])},s.readWord1=function(d){this.state.containsEsc=!1;var l="",c=this.state.pos,f=this.state.pos;for(d!==void 0&&(this.state.pos+=d<=65535?1:2);this.state.pos=0;g--){var x=y[g];if(x.loc.index===h)return y[g]=d(f,c);if(x.loc.index0}},{key:"hasYield",get:function(){return(this.currentFlags()&En.PARAM_YIELD)>0}},{key:"hasReturn",get:function(){return(this.currentFlags()&En.PARAM_RETURN)>0}},{key:"hasIn",get:function(){return(this.currentFlags()&En.PARAM_IN)>0}}])}();function Vg(e,r){return(e?En.PARAM_AWAIT:0)|(r?En.PARAM_YIELD:0)}var kSe=function(e){function r(){return e.apply(this,arguments)||this}L(r,e);var s=r.prototype;return s.addExtra=function(d,l,c,f){if(f===void 0&&(f=!0),!!d){var h=d.extra;h==null&&(h={},d.extra=h),f?h[l]=c:Object.defineProperty(h,l,{enumerable:f,value:c})}},s.isContextual=function(d){return this.state.type===d&&!this.state.containsEsc},s.isUnparsedContextual=function(d,l){var c=d+l.length;if(this.input.slice(d,c)===l){var f=this.input.charCodeAt(c);return!(Gl(f)||(f&64512)===55296)}return!1},s.isLookaheadContextual=function(d){var l=this.nextTokenStart();return this.isUnparsedContextual(l,d)},s.eatContextual=function(d){return this.isContextual(d)?(this.next(),!0):!1},s.expectContextual=function(d,l){if(!this.eatContextual(d)){if(l!=null)throw this.raise(l,this.state.startLoc);this.unexpected(null,d)}},s.canInsertSemicolon=function(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()},s.hasPrecedingLineBreak=function(){return Cq(this.input,this.state.lastTokEndLoc.index,this.state.start)},s.hasFollowingLineBreak=function(){return Cq(this.input,this.state.end,this.nextTokenStart())},s.isLineTerminator=function(){return this.eat(13)||this.canInsertSemicolon()},s.semicolon=function(d){d===void 0&&(d=!0),!(d?this.isLineTerminator():this.eat(13))&&this.raise(Ke.MissingSemicolon,this.state.lastTokEndLoc)},s.expect=function(d,l){this.eat(d)||this.unexpected(l,d)},s.tryParse=function(d,l){l===void 0&&(l=this.state.clone());var c={node:null};try{var f=d(function(g){throw g===void 0&&(g=null),c.node=g,c});if(this.state.errors.length>l.errors.length){var h=this.state;return this.state=l,this.state.tokensLength=h.tokensLength,{node:f,error:h.errors[l.errors.length],thrown:!1,aborted:!1,failState:h}}return{node:f,error:null,thrown:!1,aborted:!1,failState:null}}catch(g){var y=this.state;if(this.state=l,g instanceof SyntaxError)return{node:null,error:g,thrown:!0,aborted:!1,failState:y};if(g===c)return{node:c.node,error:null,thrown:!1,aborted:!0,failState:y};throw g}},s.checkExpressionErrors=function(d,l){if(!d)return!1;var c=d.shorthandAssignLoc,f=d.doubleProtoLoc,h=d.privateKeyLoc,y=d.optionalParametersLoc,g=!!c||!!f||!!y||!!h;if(!l)return g;c!=null&&this.raise(Ke.InvalidCoverInitializedName,c),f!=null&&this.raise(Ke.DuplicateProto,f),h!=null&&this.raise(Ke.UnexpectedPrivateField,h),y!=null&&this.unexpected(y)},s.isLiteralPropertyName=function(){return Pq(this.state.type)},s.isPrivateName=function(d){return d.type==="PrivateName"},s.getPrivateNameSV=function(d){return d.id.name},s.hasPropertyAsPrivateName=function(d){return(d.type==="MemberExpression"||d.type==="OptionalMemberExpression")&&this.isPrivateName(d.property)},s.isObjectProperty=function(d){return d.type==="ObjectProperty"},s.isObjectMethod=function(d){return d.type==="ObjectMethod"},s.initializeScopes=function(d){var l=this;d===void 0&&(d=this.options.sourceType==="module");var c=this.state.labels;this.state.labels=[];var f=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var h=this.inModule;this.inModule=d;var y=this.scope,g=this.getScopeHandler();this.scope=new g(this,d);var x=this.prodParam;this.prodParam=new DSe;var R=this.classScope;this.classScope=new CSe(this);var w=this.expressionScope;return this.expressionScope=new jSe(this),function(){l.state.labels=c,l.exportedIdentifiers=f,l.inModule=h,l.scope=y,l.prodParam=x,l.classScope=R,l.expressionScope=w}},s.enterInitialScopes=function(){var d=En.PARAM;this.inModule&&(d|=En.PARAM_AWAIT),this.scope.enter($r.PROGRAM),this.prodParam.enter(d)},s.checkDestructuringPrivate=function(d){var l=d.privateKeyLoc;l!==null&&this.expectPlugin("destructuringPrivate",l)},O(r)}(ASe),Wg=O(function(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}),Gg=O(function(r,s,o){this.type="",this.start=s,this.end=0,this.loc=new Mg(o),r!=null&&r.options.ranges&&(this.range=[s,0]),r!=null&&r.filename&&(this.loc.filename=r.filename)}),T8=Gg.prototype;T8.__clone=function(){for(var e=new Gg(void 0,this.start,this.loc.start),r=Object.keys(this),s=0,o=r.length;s async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(r){var s=r.unsupportedExportKind,o=r.suggestion;return"`declare export "+s+"` is not supported. Use `"+o+"` instead."},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function $Se(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Nq(e){return e.importKind==="type"||e.importKind==="typeof"}var qSe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function USe(e,r){for(var s=[],o=[],d=0;dc.index+1&&this.raise(Cr.UnexpectedSpaceBetweenModuloChecks,c),this.eat(10)?(l.value=r.prototype.parseExpression.call(this),this.expect(11),this.finishNode(l,"DeclaredPredicate")):this.finishNode(l,"InferredPredicate")},o.flowParseTypeAndPredicateInitialiser=function(){var l=this.state.inType;this.state.inType=!0,this.expect(14);var c=null,f=null;return this.match(54)?(this.state.inType=l,f=this.flowParsePredicate()):(c=this.flowParseType(),this.state.inType=l,this.match(54)&&(f=this.flowParsePredicate())),[c,f]},o.flowParseDeclareClass=function(l){return this.next(),this.flowParseInterfaceish(l,!0),this.finishNode(l,"DeclareClass")},o.flowParseDeclareFunction=function(l){this.next();var c=l.id=this.parseIdentifier(),f=this.startNode(),h=this.startNode();this.match(47)?f.typeParameters=this.flowParseTypeParameterDeclaration():f.typeParameters=null,this.expect(10);var y=this.flowParseFunctionTypeParams();f.params=y.params,f.rest=y.rest,f.this=y._this,this.expect(11);var g=this.flowParseTypeAndPredicateInitialiser();return f.returnType=g[0],l.predicate=g[1],h.typeAnnotation=this.finishNode(f,"FunctionTypeAnnotation"),c.typeAnnotation=this.finishNode(h,"TypeAnnotation"),this.resetEndLocation(c),this.semicolon(),this.scope.declareName(l.id.name,wr.TYPE_FLOW_DECLARE_FN,l.id.loc.start),this.finishNode(l,"DeclareFunction")},o.flowParseDeclare=function(l,c){if(this.match(80))return this.flowParseDeclareClass(l);if(this.match(68))return this.flowParseDeclareFunction(l);if(this.match(74))return this.flowParseDeclareVariable(l);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(l):(c&&this.raise(Cr.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(l));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(l);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(l);if(this.isContextual(129))return this.flowParseDeclareInterface(l);if(this.match(82))return this.flowParseDeclareExportDeclaration(l,c);this.unexpected()},o.flowParseDeclareVariable=function(l){return this.next(),l.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(l.id.name,wr.TYPE_VAR,l.id.loc.start),this.semicolon(),this.finishNode(l,"DeclareVariable")},o.flowParseDeclareModule=function(l){var c=this;this.scope.enter($r.OTHER),this.match(133)?l.id=r.prototype.parseExprAtom.call(this):l.id=this.parseIdentifier();var f=l.body=this.startNode(),h=f.body=[];for(this.expect(5);!this.match(8);){var y=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Cr.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),r.prototype.parseImport.call(this,y)):(this.expectContextual(125,Cr.UnsupportedStatementInDeclareModule),y=this.flowParseDeclare(y,!0)),h.push(y)}this.scope.exit(),this.expect(8),this.finishNode(f,"BlockStatement");var g=null,x=!1;return h.forEach(function(R){$Se(R)?(g==="CommonJS"&&c.raise(Cr.AmbiguousDeclareModuleKind,R),g="ES"):R.type==="DeclareModuleExports"&&(x&&c.raise(Cr.DuplicateDeclareModuleExports,R),g==="ES"&&c.raise(Cr.AmbiguousDeclareModuleKind,R),g="CommonJS",x=!0)}),l.kind=g||"CommonJS",this.finishNode(l,"DeclareModule")},o.flowParseDeclareExportDeclaration=function(l,c){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?l.declaration=this.flowParseDeclare(this.startNode()):(l.declaration=this.flowParseType(),this.semicolon()),l.default=!0,this.finishNode(l,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!c){var f=this.state.value;throw this.raise(Cr.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:f,suggestion:qSe[f]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return l.declaration=this.flowParseDeclare(this.startNode()),l.default=!1,this.finishNode(l,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return l=this.parseExport(l,null),l.type==="ExportNamedDeclaration"&&(l.type="ExportDeclaration",l.default=!1,delete l.exportKind),l.type="Declare"+l.type,l;this.unexpected()},o.flowParseDeclareModuleExports=function(l){return this.next(),this.expectContextual(111),l.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(l,"DeclareModuleExports")},o.flowParseDeclareTypeAlias=function(l){this.next();var c=this.flowParseTypeAlias(l);return c.type="DeclareTypeAlias",c},o.flowParseDeclareOpaqueType=function(l){this.next();var c=this.flowParseOpaqueType(l,!0);return c.type="DeclareOpaqueType",c},o.flowParseDeclareInterface=function(l){return this.next(),this.flowParseInterfaceish(l,!1),this.finishNode(l,"DeclareInterface")},o.flowParseInterfaceish=function(l,c){if(l.id=this.flowParseRestrictedIdentifier(!c,!0),this.scope.declareName(l.id.name,c?wr.TYPE_FUNCTION:wr.TYPE_LEXICAL,l.id.loc.start),this.match(47)?l.typeParameters=this.flowParseTypeParameterDeclaration():l.typeParameters=null,l.extends=[],this.eat(81))do l.extends.push(this.flowParseInterfaceExtends());while(!c&&this.eat(12));if(c){if(l.implements=[],l.mixins=[],this.eatContextual(117))do l.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do l.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}l.body=this.flowParseObjectType({allowStatic:c,allowExact:!1,allowSpread:!1,allowProto:c,allowInexact:!1})},o.flowParseInterfaceExtends=function(){var l=this.startNode();return l.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?l.typeParameters=this.flowParseTypeParameterInstantiation():l.typeParameters=null,this.finishNode(l,"InterfaceExtends")},o.flowParseInterface=function(l){return this.flowParseInterfaceish(l,!1),this.finishNode(l,"InterfaceDeclaration")},o.checkNotUnderscore=function(l){l==="_"&&this.raise(Cr.UnexpectedReservedUnderscore,this.state.startLoc)},o.checkReservedType=function(l,c,f){FSe.has(l)&&this.raise(f?Cr.AssignReservedType:Cr.UnexpectedReservedType,c,{reservedType:l})},o.flowParseRestrictedIdentifier=function(l,c){return this.checkReservedType(this.state.value,this.state.startLoc,c),this.parseIdentifier(l)},o.flowParseTypeAlias=function(l){return l.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(l.id.name,wr.TYPE_LEXICAL,l.id.loc.start),this.match(47)?l.typeParameters=this.flowParseTypeParameterDeclaration():l.typeParameters=null,l.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(l,"TypeAlias")},o.flowParseOpaqueType=function(l,c){return this.expectContextual(130),l.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(l.id.name,wr.TYPE_LEXICAL,l.id.loc.start),this.match(47)?l.typeParameters=this.flowParseTypeParameterDeclaration():l.typeParameters=null,l.supertype=null,this.match(14)&&(l.supertype=this.flowParseTypeInitialiser(14)),l.impltype=null,c||(l.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(l,"OpaqueType")},o.flowParseTypeParameter=function(l){l===void 0&&(l=!1);var c=this.state.startLoc,f=this.startNode(),h=this.flowParseVariance(),y=this.flowParseTypeAnnotatableIdentifier();return f.name=y.name,f.variance=h,f.bound=y.typeAnnotation,this.match(29)?(this.eat(29),f.default=this.flowParseType()):l&&this.raise(Cr.MissingTypeParamDefault,c),this.finishNode(f,"TypeParameter")},o.flowParseTypeParameterDeclaration=function(){var l=this.state.inType,c=this.startNode();c.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();var f=!1;do{var h=this.flowParseTypeParameter(f);c.params.push(h),h.default&&(f=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=l,this.finishNode(c,"TypeParameterDeclaration")},o.flowParseTypeParameterInstantiation=function(){var l=this.startNode(),c=this.state.inType;l.params=[],this.state.inType=!0,this.expect(47);var f=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)l.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=f,this.expect(48),this.state.inType=c,this.finishNode(l,"TypeParameterInstantiation")},o.flowParseTypeParameterInstantiationCallOrNew=function(){var l=this.startNode(),c=this.state.inType;for(l.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)l.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=c,this.finishNode(l,"TypeParameterInstantiation")},o.flowParseInterfaceType=function(){var l=this.startNode();if(this.expectContextual(129),l.extends=[],this.eat(81))do l.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return l.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(l,"InterfaceTypeAnnotation")},o.flowParseObjectPropertyKey=function(){return this.match(134)||this.match(133)?r.prototype.parseExprAtom.call(this):this.parseIdentifier(!0)},o.flowParseObjectTypeIndexer=function(l,c,f){return l.static=c,this.lookahead().type===14?(l.id=this.flowParseObjectPropertyKey(),l.key=this.flowParseTypeInitialiser()):(l.id=null,l.key=this.flowParseType()),this.expect(3),l.value=this.flowParseTypeInitialiser(),l.variance=f,this.finishNode(l,"ObjectTypeIndexer")},o.flowParseObjectTypeInternalSlot=function(l,c){return l.static=c,l.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(l.method=!0,l.optional=!1,l.value=this.flowParseObjectTypeMethodish(this.startNodeAt(l.loc.start))):(l.method=!1,this.eat(17)&&(l.optional=!0),l.value=this.flowParseTypeInitialiser()),this.finishNode(l,"ObjectTypeInternalSlot")},o.flowParseObjectTypeMethodish=function(l){for(l.params=[],l.rest=null,l.typeParameters=null,l.this=null,this.match(47)&&(l.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(l.this=this.flowParseFunctionTypeParam(!0),l.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)l.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(l.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),l.returnType=this.flowParseTypeInitialiser(),this.finishNode(l,"FunctionTypeAnnotation")},o.flowParseObjectTypeCallProperty=function(l,c){var f=this.startNode();return l.static=c,l.value=this.flowParseObjectTypeMethodish(f),this.finishNode(l,"ObjectTypeCallProperty")},o.flowParseObjectType=function(l){var c=l.allowStatic,f=l.allowExact,h=l.allowSpread,y=l.allowProto,g=l.allowInexact,x=this.state.inType;this.state.inType=!0;var R=this.startNode();R.callProperties=[],R.properties=[],R.indexers=[],R.internalSlots=[];var w,T,C=!1;for(f&&this.match(6)?(this.expect(6),w=9,T=!0):(this.expect(5),w=8,T=!1),R.exact=T;!this.match(w);){var P=!1,_=null,j=null,k=this.startNode();if(y&&this.isContextual(118)){var D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),_=this.state.startLoc,c=!1)}if(c&&this.isContextual(106)){var F=this.lookahead();F.type!==14&&F.type!==17&&(this.next(),P=!0)}var B=this.flowParseVariance();if(this.eat(0))_!=null&&this.unexpected(_),this.eat(0)?(B&&this.unexpected(B.loc.start),R.internalSlots.push(this.flowParseObjectTypeInternalSlot(k,P))):R.indexers.push(this.flowParseObjectTypeIndexer(k,P,B));else if(this.match(10)||this.match(47))_!=null&&this.unexpected(_),B&&this.unexpected(B.loc.start),R.callProperties.push(this.flowParseObjectTypeCallProperty(k,P));else{var M="init";if(this.isContextual(99)||this.isContextual(104)){var V=this.lookahead();Pq(V.type)&&(M=this.state.value,this.next())}var H=this.flowParseObjectTypeProperty(k,P,_,B,M,h,g??!T);H===null?(C=!0,j=this.state.lastTokStartLoc):R.properties.push(H)}this.flowObjectTypeSemicolon(),j&&!this.match(8)&&!this.match(9)&&this.raise(Cr.UnexpectedExplicitInexactInObject,j)}this.expect(w),h&&(R.inexact=C);var z=this.finishNode(R,"ObjectTypeAnnotation");return this.state.inType=x,z},o.flowParseObjectTypeProperty=function(l,c,f,h,y,g,x){if(this.eat(21)){var R=this.match(12)||this.match(13)||this.match(8)||this.match(9);return R?(g?x||this.raise(Cr.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Cr.InexactInsideNonObject,this.state.lastTokStartLoc),h&&this.raise(Cr.InexactVariance,h),null):(g||this.raise(Cr.UnexpectedSpreadType,this.state.lastTokStartLoc),f!=null&&this.unexpected(f),h&&this.raise(Cr.SpreadVariance,h),l.argument=this.flowParseType(),this.finishNode(l,"ObjectTypeSpreadProperty"))}else{l.key=this.flowParseObjectPropertyKey(),l.static=c,l.proto=f!=null,l.kind=y;var w=!1;return this.match(47)||this.match(10)?(l.method=!0,f!=null&&this.unexpected(f),h&&this.unexpected(h.loc.start),l.value=this.flowParseObjectTypeMethodish(this.startNodeAt(l.loc.start)),(y==="get"||y==="set")&&this.flowCheckGetterSetterParams(l),!g&&l.key.name==="constructor"&&l.value.this&&this.raise(Cr.ThisParamBannedInConstructor,l.value.this)):(y!=="init"&&this.unexpected(),l.method=!1,this.eat(17)&&(w=!0),l.value=this.flowParseTypeInitialiser(),l.variance=h),l.optional=w,this.finishNode(l,"ObjectTypeProperty")}},o.flowCheckGetterSetterParams=function(l){var c=l.kind==="get"?0:1,f=l.value.params.length+(l.value.rest?1:0);l.value.this&&this.raise(l.kind==="get"?Cr.GetterMayNotHaveThisParam:Cr.SetterMayNotHaveThisParam,l.value.this),f!==c&&this.raise(l.kind==="get"?Ke.BadGetterArity:Ke.BadSetterArity,l),l.kind==="set"&&l.value.rest&&this.raise(Ke.BadSetterRestParameter,l)},o.flowObjectTypeSemicolon=function(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()},o.flowParseQualifiedTypeIdentifier=function(l,c){var f;(f=l)!=null||(l=this.state.startLoc);for(var h=c||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var y=this.startNodeAt(l);y.qualification=h,y.id=this.flowParseRestrictedIdentifier(!0),h=this.finishNode(y,"QualifiedTypeIdentifier")}return h},o.flowParseGenericType=function(l,c){var f=this.startNodeAt(l);return f.typeParameters=null,f.id=this.flowParseQualifiedTypeIdentifier(l,c),this.match(47)&&(f.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(f,"GenericTypeAnnotation")},o.flowParseTypeofType=function(){var l=this.startNode();return this.expect(87),l.argument=this.flowParsePrimaryType(),this.finishNode(l,"TypeofTypeAnnotation")},o.flowParseTupleType=function(){var l=this.startNode();for(l.types=[],this.expect(0);this.state.pos0){var k=[].concat(x);if(j.length>0){this.state=g,this.state.noArrowAt=k;for(var D=0;D1&&this.raise(Cr.AmbiguousConditionalArrow,g.startLoc),C&&_.length===1){this.state=g,k.push(_[0].start),this.state.noArrowAt=k;var M=this.tryParseConditionalConsequent();T=M.consequent,C=M.failed}}return this.getArrowLikeExpressions(T,!0),this.state.noArrowAt=x,this.expect(14),R.test=l,R.consequent=T,R.alternate=this.forwardNoArrowParamsConversionAt(R,function(){return h.parseMaybeAssign(void 0,void 0)}),this.finishNode(R,"ConditionalExpression")},o.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var l=this.parseMaybeAssignAllowIn(),c=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:l,failed:c}},o.getArrowLikeExpressions=function(l,c){for(var f=this,h=[l],y=[];h.length!==0;){var g=h.pop();g.type==="ArrowFunctionExpression"&&g.body.type!=="BlockStatement"?(g.typeParameters||!g.returnType?this.finishArrowValidation(g):y.push(g),h.push(g.body)):g.type==="ConditionalExpression"&&(h.push(g.consequent),h.push(g.alternate))}return c?(y.forEach(function(x){return f.finishArrowValidation(x)}),[y,[]]):USe(y,function(x){return x.params.every(function(R){return f.isAssignable(R,!0)})})},o.finishArrowValidation=function(l){var c;this.toAssignableList(l.params,(c=l.extra)==null?void 0:c.trailingCommaLoc,!1),this.scope.enter($r.FUNCTION|$r.ARROW),r.prototype.checkParams.call(this,l,!1,!0),this.scope.exit()},o.forwardNoArrowParamsConversionAt=function(l,c){var f;return this.state.noArrowParamsConversionAt.includes(l.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),f=c(),this.state.noArrowParamsConversionAt.pop()):f=c(),f},o.parseParenItem=function(l,c){var f=r.prototype.parseParenItem.call(this,l,c);if(this.eat(17)&&(f.optional=!0,this.resetEndLocation(l)),this.match(14)){var h=this.startNodeAt(c);return h.expression=f,h.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(h,"TypeCastExpression")}return f},o.assertModuleNodeAllowed=function(l){l.type==="ImportDeclaration"&&(l.importKind==="type"||l.importKind==="typeof")||l.type==="ExportNamedDeclaration"&&l.exportKind==="type"||l.type==="ExportAllDeclaration"&&l.exportKind==="type"||r.prototype.assertModuleNodeAllowed.call(this,l)},o.parseExportDeclaration=function(l){if(this.isContextual(130)){l.exportKind="type";var c=this.startNode();return this.next(),this.match(5)?(l.specifiers=this.parseExportSpecifiers(!0),r.prototype.parseExportFrom.call(this,l),null):this.flowParseTypeAlias(c)}else if(this.isContextual(131)){l.exportKind="type";var f=this.startNode();return this.next(),this.flowParseOpaqueType(f,!1)}else if(this.isContextual(129)){l.exportKind="type";var h=this.startNode();return this.next(),this.flowParseInterface(h)}else if(this.plugins.get("flow").enums&&this.isContextual(126)){l.exportKind="value";var y=this.startNode();return this.next(),this.flowParseEnumDeclaration(y)}else return r.prototype.parseExportDeclaration.call(this,l)},o.eatExportStar=function(l){return r.prototype.eatExportStar.call(this,l)?!0:this.isContextual(130)&&this.lookahead().type===55?(l.exportKind="type",this.next(),this.next(),!0):!1},o.maybeParseExportNamespaceSpecifier=function(l){var c=this.state.startLoc,f=r.prototype.maybeParseExportNamespaceSpecifier.call(this,l);return f&&l.exportKind==="type"&&this.unexpected(c),f},o.parseClassId=function(l,c,f){r.prototype.parseClassId.call(this,l,c,f),this.match(47)&&(l.typeParameters=this.flowParseTypeParameterDeclaration())},o.parseClassMember=function(l,c,f){var h=this.state.startLoc;if(this.isContextual(125)){if(r.prototype.parseClassMemberFromModifier.call(this,l,c))return;c.declare=!0}r.prototype.parseClassMember.call(this,l,c,f),c.declare&&(c.type!=="ClassProperty"&&c.type!=="ClassPrivateProperty"&&c.type!=="PropertyDefinition"?this.raise(Cr.DeclareClassElement,h):c.value&&this.raise(Cr.DeclareClassFieldInitializer,c.value))},o.isIterator=function(l){return l==="iterator"||l==="asyncIterator"},o.readIterator=function(){var l=r.prototype.readWord1.call(this),c="@@"+l;(!this.isIterator(l)||!this.state.inType)&&this.raise(Ke.InvalidIdentifier,this.state.curPosition(),{identifierName:c}),this.finishToken(132,c)},o.getTokenFromCode=function(l){var c=this.input.charCodeAt(this.state.pos+1);l===123&&c===124?this.finishOp(6,2):this.state.inType&&(l===62||l===60)?this.finishOp(l===62?48:47,1):this.state.inType&&l===63?c===46?this.finishOp(18,2):this.finishOp(17,1):mSe(l,c,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):r.prototype.getTokenFromCode.call(this,l)},o.isAssignable=function(l,c){return l.type==="TypeCastExpression"?this.isAssignable(l.expression,c):r.prototype.isAssignable.call(this,l,c)},o.toAssignable=function(l,c){c===void 0&&(c=!1),!c&&l.type==="AssignmentExpression"&&l.left.type==="TypeCastExpression"&&(l.left=this.typeCastToParameter(l.left)),r.prototype.toAssignable.call(this,l,c)},o.toAssignableList=function(l,c,f){for(var h=0;h1||!c)&&this.raise(Cr.TypeCastInPattern,y.typeAnnotation)}return l},o.parseArrayLike=function(l,c,f,h){var y=r.prototype.parseArrayLike.call(this,l,c,f,h);return c&&!this.state.maybeInArrowParameters&&this.toReferencedList(y.elements),y},o.isValidLVal=function(l,c,f){return l==="TypeCastExpression"||r.prototype.isValidLVal.call(this,l,c,f)},o.parseClassProperty=function(l){return this.match(14)&&(l.typeAnnotation=this.flowParseTypeAnnotation()),r.prototype.parseClassProperty.call(this,l)},o.parseClassPrivateProperty=function(l){return this.match(14)&&(l.typeAnnotation=this.flowParseTypeAnnotation()),r.prototype.parseClassPrivateProperty.call(this,l)},o.isClassMethod=function(){return this.match(47)||r.prototype.isClassMethod.call(this)},o.isClassProperty=function(){return this.match(14)||r.prototype.isClassProperty.call(this)},o.isNonstaticConstructor=function(l){return!this.match(14)&&r.prototype.isNonstaticConstructor.call(this,l)},o.pushClassMethod=function(l,c,f,h,y,g){if(c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),r.prototype.pushClassMethod.call(this,l,c,f,h,y,g),c.params&&y){var x=c.params;x.length>0&&this.isThisParam(x[0])&&this.raise(Cr.ThisParamBannedInConstructor,c)}else if(c.type==="MethodDefinition"&&y&&c.value.params){var R=c.value.params;R.length>0&&this.isThisParam(R[0])&&this.raise(Cr.ThisParamBannedInConstructor,c)}},o.pushClassPrivateMethod=function(l,c,f,h){c.variance&&this.unexpected(c.variance.loc.start),delete c.variance,this.match(47)&&(c.typeParameters=this.flowParseTypeParameterDeclaration()),r.prototype.pushClassPrivateMethod.call(this,l,c,f,h)},o.parseClassSuper=function(l){if(r.prototype.parseClassSuper.call(this,l),l.superClass&&this.match(47)&&(l.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var c=l.implements=[];do{var f=this.startNode();f.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?f.typeParameters=this.flowParseTypeParameterInstantiation():f.typeParameters=null,c.push(this.finishNode(f,"ClassImplements"))}while(this.eat(12))}},o.checkGetterSetterParams=function(l){r.prototype.checkGetterSetterParams.call(this,l);var c=this.getObjectOrClassMethodParams(l);if(c.length>0){var f=c[0];this.isThisParam(f)&&l.kind==="get"?this.raise(Cr.GetterMayNotHaveThisParam,f):this.isThisParam(f)&&this.raise(Cr.SetterMayNotHaveThisParam,f)}},o.parsePropertyNamePrefixOperator=function(l){l.variance=this.flowParseVariance()},o.parseObjPropValue=function(l,c,f,h,y,g,x){l.variance&&this.unexpected(l.variance.loc.start),delete l.variance;var R;this.match(47)&&!g&&(R=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var w=r.prototype.parseObjPropValue.call(this,l,c,f,h,y,g,x);return R&&((w.value||w).typeParameters=R),w},o.parseFunctionParamType=function(l){return this.eat(17)&&(l.type!=="Identifier"&&this.raise(Cr.PatternIsOptional,l),this.isThisParam(l)&&this.raise(Cr.ThisParamMayNotBeOptional,l),l.optional=!0),this.match(14)?l.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(l)&&this.raise(Cr.ThisParamAnnotationRequired,l),this.match(29)&&this.isThisParam(l)&&this.raise(Cr.ThisParamNoDefault,l),this.resetEndLocation(l),l},o.parseMaybeDefault=function(l,c){var f=r.prototype.parseMaybeDefault.call(this,l,c);return f.type==="AssignmentPattern"&&f.typeAnnotation&&f.right.start0&&this.raise(Cr.ThisParamMustBeFirst,l.params[y]);r.prototype.checkParams.call(this,l,c,f,h)}},o.parseParenAndDistinguishExpression=function(l){return r.prototype.parseParenAndDistinguishExpression.call(this,l&&!this.state.noArrowAt.includes(this.state.start))},o.parseSubscripts=function(l,c,f){var h=this;if(l.type==="Identifier"&&l.name==="async"&&this.state.noArrowAt.includes(c.index)){this.next();var y=this.startNodeAt(c);y.callee=l,y.arguments=r.prototype.parseCallExpressionArguments.call(this,11,!1),l=this.finishNode(y,"CallExpression")}else if(l.type==="Identifier"&&l.name==="async"&&this.match(47)){var g=this.state.clone(),x=this.tryParse(function(w){return h.parseAsyncArrowWithTypeParameters(c)||w()},g);if(!x.error&&!x.aborted)return x.node;var R=this.tryParse(function(){return r.prototype.parseSubscripts.call(h,l,c,f)},g);if(R.node&&!R.error)return R.node;if(x.node)return this.state=x.failState,x.node;if(R.node)return this.state=R.failState,R.node;throw x.error||R.error}return r.prototype.parseSubscripts.call(this,l,c,f)},o.parseSubscript=function(l,c,f,h){var y=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(h.optionalChainMember=!0,f)return h.stop=!0,l;this.next();var g=this.startNodeAt(c);return g.callee=l,g.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),g.arguments=this.parseCallExpressionArguments(11,!1),g.optional=!0,this.finishCallExpression(g,!0)}else if(!f&&this.shouldParseTypes()&&this.match(47)){var x=this.startNodeAt(c);x.callee=l;var R=this.tryParse(function(){return x.typeArguments=y.flowParseTypeParameterInstantiationCallOrNew(),y.expect(10),x.arguments=r.prototype.parseCallExpressionArguments.call(y,11,!1),h.optionalChainMember&&(x.optional=!1),y.finishCallExpression(x,h.optionalChainMember)});if(R.node)return R.error&&(this.state=R.failState),R.node}return r.prototype.parseSubscript.call(this,l,c,f,h)},o.parseNewCallee=function(l){var c=this;r.prototype.parseNewCallee.call(this,l);var f=null;this.shouldParseTypes()&&this.match(47)&&(f=this.tryParse(function(){return c.flowParseTypeParameterInstantiationCallOrNew()}).node),l.typeArguments=f},o.parseAsyncArrowWithTypeParameters=function(l){var c=this.startNodeAt(l);if(this.parseFunctionParams(c,!1),!!this.parseArrow(c))return r.prototype.parseArrowExpression.call(this,c,void 0,!0)},o.readToken_mult_modulo=function(l){var c=this.input.charCodeAt(this.state.pos+1);if(l===42&&c===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}r.prototype.readToken_mult_modulo.call(this,l)},o.readToken_pipe_amp=function(l){var c=this.input.charCodeAt(this.state.pos+1);if(l===124&&c===125){this.finishOp(9,2);return}r.prototype.readToken_pipe_amp.call(this,l)},o.parseTopLevel=function(l,c){var f=r.prototype.parseTopLevel.call(this,l,c);return this.state.hasFlowComment&&this.raise(Cr.UnterminatedFlowComment,this.state.curPosition()),f},o.skipBlockComment=function(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Cr.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var l=this.skipFlowComment();l&&(this.state.pos+=l,this.state.hasFlowComment=!0);return}return r.prototype.skipBlockComment.call(this,this.state.hasFlowComment?"*-/":"*/")},o.skipFlowComment=function(){for(var l=this.state.pos,c=2;[32,9].includes(this.input.charCodeAt(l+c));)c++;var f=this.input.charCodeAt(c+l),h=this.input.charCodeAt(c+l+1);return f===58&&h===58?c+2:this.input.slice(c+l,c+l+12)==="flow-include"?c+12:f===58&&h!==58?c:!1},o.hasFlowCommentCompletion=function(){var l=this.input.indexOf("*/",this.state.pos);if(l===-1)throw this.raise(Ke.UnterminatedComment,this.state.curPosition())},o.flowEnumErrorBooleanMemberNotInitialized=function(l,c){var f=c.enumName,h=c.memberName;this.raise(Cr.EnumBooleanMemberNotInitialized,l,{memberName:h,enumName:f})},o.flowEnumErrorInvalidMemberInitializer=function(l,c){return this.raise(c.explicitType?c.explicitType==="symbol"?Cr.EnumInvalidMemberInitializerSymbolType:Cr.EnumInvalidMemberInitializerPrimaryType:Cr.EnumInvalidMemberInitializerUnknownType,l,c)},o.flowEnumErrorNumberMemberNotInitialized=function(l,c){this.raise(Cr.EnumNumberMemberNotInitialized,l,c)},o.flowEnumErrorStringMemberInconsistentlyInitialized=function(l,c){this.raise(Cr.EnumStringMemberInconsistentlyInitialized,l,c)},o.flowEnumMemberInit=function(){var l=this,c=this.state.startLoc,f=function(){return l.match(12)||l.match(8)};switch(this.state.type){case 134:{var h=this.parseNumericLiteral(this.state.value);return f()?{type:"number",loc:h.loc.start,value:h}:{type:"invalid",loc:c}}case 133:{var y=this.parseStringLiteral(this.state.value);return f()?{type:"string",loc:y.loc.start,value:y}:{type:"invalid",loc:c}}case 85:case 86:{var g=this.parseBooleanLiteral(this.match(85));return f()?{type:"boolean",loc:g.loc.start,value:g}:{type:"invalid",loc:c}}default:return{type:"invalid",loc:c}}},o.flowEnumMemberRaw=function(){var l=this.state.startLoc,c=this.parseIdentifier(!0),f=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:l};return{id:c,init:f}},o.flowEnumCheckExplicitTypeMismatch=function(l,c,f){var h=c.explicitType;h!==null&&h!==f&&this.flowEnumErrorInvalidMemberInitializer(l,c)},o.flowEnumMembers=function(l){for(var c=l.enumName,f=l.explicitType,h=new Set,y={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},g=!1;!this.match(8);){if(this.eat(21)){g=!0;break}var x=this.startNode(),R=this.flowEnumMemberRaw(),w=R.id,T=R.init,C=w.name;if(C!==""){/^[a-z]/.test(C)&&this.raise(Cr.EnumInvalidMemberName,w,{memberName:C,suggestion:C[0].toUpperCase()+C.slice(1),enumName:c}),h.has(C)&&this.raise(Cr.EnumDuplicateMemberName,w,{memberName:C,enumName:c}),h.add(C);var P={enumName:c,explicitType:f,memberName:C};switch(x.id=w,T.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(T.loc,P,"boolean"),x.init=T.value,y.booleanMembers.push(this.finishNode(x,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(T.loc,P,"number"),x.init=T.value,y.numberMembers.push(this.finishNode(x,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(T.loc,P,"string"),x.init=T.value,y.stringMembers.push(this.finishNode(x,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(T.loc,P);case"none":switch(f){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(T.loc,P);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(T.loc,P);break;default:y.defaultedMembers.push(this.finishNode(x,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:y,hasUnknownMembers:g}},o.flowEnumStringMembers=function(l,c,f){var h=f.enumName;if(l.length===0)return c;if(c.length===0)return l;if(c.length>l.length){for(var y=0;y=j){for(var k=0,D=R.defaultedMembers;k=j){for(var B=0,M=R.defaultedMembers;B",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Dq,ru=Uo(Dq||(Dq=Y(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(r){var s=r.openingTagName;return"Expected corresponding JSX closing tag for <"+s+">."},MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:function(r){var s=r.unexpected,o=r.HTMLEntity;return"Unexpected token `"+s+"`. Did you mean `"+o+"` or `{'"+s+"'}`?"},UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function rd(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Mc(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Mc(e.object)+"."+Mc(e.property);throw new Error("Node had unexpected type: "+e.type)}var KSe=function(e){return function(r){function s(){return r.apply(this,arguments)||this}L(s,r);var o=s.prototype;return o.jsxReadToken=function(){for(var l="",c=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(ru.UnterminatedJsxContent,this.state.startLoc);var f=this.input.charCodeAt(this.state.pos);switch(f){case 60:case 123:if(this.state.pos===this.state.start){f===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):r.prototype.getTokenFromCode.call(this,f);return}l+=this.input.slice(c,this.state.pos),this.finishToken(141,l);return;case 38:l+=this.input.slice(c,this.state.pos),l+=this.jsxReadEntity(),c=this.state.pos;break;case 62:case 125:default:Lc(f)?(l+=this.input.slice(c,this.state.pos),l+=this.jsxReadNewLine(!0),c=this.state.pos):++this.state.pos}}},o.jsxReadNewLine=function(l){var c=this.input.charCodeAt(this.state.pos),f;return++this.state.pos,c===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,f=l?` `:`\r `):f=String.fromCharCode(c),++this.state.curLine,this.state.lineStart=this.state.pos,f},o.jsxReadString=function(l){for(var c="",f=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(Ke.UnterminatedString,this.state.startLoc);var h=this.input.charCodeAt(this.state.pos);if(h===l)break;h===38?(c+=this.input.slice(f,this.state.pos),c+=this.jsxReadEntity(),f=this.state.pos):Lc(h)?(c+=this.input.slice(f,this.state.pos),c+=this.jsxReadNewLine(!1),f=this.state.pos):++this.state.pos}c+=this.input.slice(f,this.state.pos++),this.finishToken(133,c)},o.jsxReadEntity=function(){var l=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;var c=10;this.codePointAtPos(this.state.pos)===120&&(c=16,++this.state.pos);var f=this.readInt(c,void 0,!1,"bail");if(f!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(f)}else{for(var h=0,y=!1;h++<10&&this.state.pos1){for(var f=0;f0){if(c&wr.FLAG_TS_ENUM){var h=!!(c&wr.FLAG_TS_CONST_ENUM),y=(f&4)>0;return h!==y}return!0}return c&wr.FLAG_CLASS&&(f&8)>0?d.names.get(l)&co.Lexical?!!(c&wr.KIND_VALUE):!1:c&wr.KIND_TYPE&&(f&1)>0?!0:e.prototype.isRedeclaredInScope.call(this,d,l,c)},s.checkLocalExport=function(d){var l=d.name;if(!this.hasImport(l)){for(var c=this.scopeStack.length,f=c-1;f>=0;f--){var h=this.scopeStack[f],y=h.tsNames.get(l);if((y&1)>0||(y&16)>0)return}e.prototype.checkLocalExport.call(this,d)}},O(r)}(R8),kq=function(r){return r.type==="ParenthesizedExpression"?kq(r.expression):r},po={ALLOW_EMPTY:1,IS_FUNCTION_PARAMS:2,IS_CONSTRUCTOR_PARAMS:4},XSe=function(e){function r(){return e.apply(this,arguments)||this}L(r,e);var s=r.prototype;return s.toAssignable=function(d,l){var c,f;l===void 0&&(l=!1);var h=void 0;switch((d.type==="ParenthesizedExpression"||(c=d.extra)!=null&&c.parenthesized)&&(h=kq(d),l?h.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(Ke.InvalidParenthesizedAssignment,d):h.type!=="MemberExpression"&&!this.isOptionalMemberExpression(h)&&this.raise(Ke.InvalidParenthesizedAssignment,d):this.raise(Ke.InvalidParenthesizedAssignment,d)),d.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":d.type="ObjectPattern";for(var y=0,g=d.properties.length,x=g-1;y() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(r){var s=r.typeParameterName;return"Single type parameter "+s+" should have a trailing comma. Example usage: <"+s+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(r){var s=r.type;return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+s+"."}});function YSe(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Bq(e){return e==="private"||e==="public"||e==="protected"}function QSe(e){return e==="in"||e==="out"}var ZSe=function(e){return function(r){function s(){for(var d,l=arguments.length,c=new Array(l),f=0;f0&&(this.raise(Ke.BadGetterArity,this.state.curPosition()),this.isThisParam(h[y][0])&&this.raise(cr.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(h.kind==="set"){if(h[y].length!==1)this.raise(Ke.BadSetterArity,this.state.curPosition());else{var x=h[y][0];this.isThisParam(x)&&this.raise(cr.AccessorCannotDeclareThisParameter,this.state.curPosition()),x.type==="Identifier"&&x.optional&&this.raise(cr.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),x.type==="RestElement"&&this.raise(cr.SetAccessorCannotHaveRestParameter,this.state.curPosition())}h[g]&&this.raise(cr.SetAccessorCannotHaveReturnType,h[g])}else h.kind="method";return this.finishNode(h,"TSMethodSignature")}else{var R=f;c&&(R.readonly=!0);var w=this.tsTryParseTypeAnnotation();return w&&(R.typeAnnotation=w),this.tsParseTypeMemberSemicolon(),this.finishNode(R,"TSPropertySignature")}},o.tsParseTypeMember=function(){var l=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",l);if(this.match(77)){var c=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",l):(l.key=this.createIdentifier(c,"new"),this.tsParsePropertyOrMethodSignature(l,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},l);var f=this.tsTryParseIndexSignature(l);return f||(r.prototype.parsePropertyName.call(this,l),!l.computed&&l.key.type==="Identifier"&&(l.key.name==="get"||l.key.name==="set")&&this.tsTokenCanFollowModifier()&&(l.kind=l.key.name,r.prototype.parsePropertyName.call(this,l)),this.tsParsePropertyOrMethodSignature(l,!!l.readonly))},o.tsParseTypeLiteral=function(){var l=this.startNode();return l.members=this.tsParseObjectTypeMembers(),this.finishNode(l,"TSTypeLiteral")},o.tsParseObjectTypeMembers=function(){this.expect(5);var l=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),l},o.tsIsStartOfMappedType=function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))},o.tsParseMappedType=function(){var l=this.startNode();this.expect(5),this.match(53)?(l.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(l.readonly=!0),this.expect(0);{var c=this.startNode();c.name=this.tsParseTypeParameterName(),c.constraint=this.tsExpectThenParseType(58),l.typeParameter=this.finishNode(c,"TSTypeParameter")}return l.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(l.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(l.optional=!0),l.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(l,"TSMappedType")},o.tsParseTupleType=function(){var l=this,c=this.startNode();c.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var f=!1;return c.elementTypes.forEach(function(h){var y=h.type;f&&y!=="TSRestType"&&y!=="TSOptionalType"&&!(y==="TSNamedTupleMember"&&h.optional)&&l.raise(cr.OptionalTypeBeforeRequired,h),f||(f=y==="TSNamedTupleMember"&&h.optional||y==="TSOptionalType")}),this.finishNode(c,"TSTupleType")},o.tsParseTupleElementType=function(){var l=this.state.startLoc,c=this.eat(21),f,h,y,g,x=Vi(this.state.type),R=x?this.lookaheadCharCode():null;if(R===58)f=!0,y=!1,h=this.parseIdentifier(!0),this.expect(14),g=this.tsParseType();else if(R===63){y=!0;var w=this.state.startLoc,T=this.state.value,C=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(f=!0,h=this.createIdentifier(this.startNodeAt(w),T),this.expect(17),this.expect(14),g=this.tsParseType()):(f=!1,g=C,this.expect(17))}else g=this.tsParseType(),y=this.eat(17),f=this.eat(14);if(f){var P;h?(P=this.startNodeAtNode(h),P.optional=y,P.label=h,P.elementType=g,this.eat(17)&&(P.optional=!0,this.raise(cr.TupleOptionalAfterType,this.state.lastTokStartLoc))):(P=this.startNodeAtNode(g),P.optional=y,this.raise(cr.InvalidTupleMemberLabel,g),P.label=g,P.elementType=this.tsParseType()),g=this.finishNode(P,"TSNamedTupleMember")}else if(y){var _=this.startNodeAtNode(g);_.typeAnnotation=g,g=this.finishNode(_,"TSOptionalType")}if(c){var j=this.startNodeAt(l);j.typeAnnotation=g,g=this.finishNode(j,"TSRestType")}return g},o.tsParseParenthesizedType=function(){var l=this.startNode();return this.expect(10),l.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(l,"TSParenthesizedType")},o.tsParseFunctionOrConstructorType=function(l,c){var f=this,h=this.startNode();return l==="TSConstructorType"&&(h.abstract=!!c,c&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return f.tsFillSignature(19,h)}),this.finishNode(h,l)},o.tsParseLiteralTypeNode=function(){var l=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:l.literal=r.prototype.parseExprAtom.call(this);break;default:this.unexpected()}return this.finishNode(l,"TSLiteralType")},o.tsParseTemplateLiteralType=function(){var l=this.startNode();return l.literal=r.prototype.parseTemplate.call(this,!1),this.finishNode(l,"TSLiteralType")},o.parseTemplateSubstitution=function(){return this.state.inType?this.tsParseType():r.prototype.parseTemplateSubstitution.call(this)},o.tsParseThisTypeOrThisTypePredicate=function(){var l=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(l):l},o.tsParseNonArrayType=function(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){var l=this.startNode(),c=this.lookahead();return c.type!==134&&c.type!==135&&this.unexpected(),l.literal=this.parseMaybeUnary(),this.finishNode(l,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{var f=this.state.type;if(Sa(f)||f===88||f===84){var h=f===88?"TSVoidKeyword":f===84?"TSNullKeyword":YSe(this.state.value);if(h!==void 0&&this.lookaheadCharCode()!==46){var y=this.startNode();return this.next(),this.finishNode(y,h)}return this.tsParseTypeReference()}}}this.unexpected()},o.tsParseArrayTypeOrHigher=function(){for(var l=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var c=this.startNodeAtNode(l);c.elementType=l,this.expect(3),l=this.finishNode(c,"TSArrayType")}else{var f=this.startNodeAtNode(l);f.objectType=l,f.indexType=this.tsParseType(),this.expect(3),l=this.finishNode(f,"TSIndexedAccessType")}return l},o.tsParseTypeOperator=function(){var l=this.startNode(),c=this.state.value;return this.next(),l.operator=c,l.typeAnnotation=this.tsParseTypeOperatorOrHigher(),c==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(l),this.finishNode(l,"TSTypeOperator")},o.tsCheckTypeAnnotationForReadOnly=function(l){switch(l.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(cr.UnexpectedReadonly,l)}},o.tsParseInferType=function(){var l=this,c=this.startNode();this.expectContextual(115);var f=this.startNode();return f.name=this.tsParseTypeParameterName(),f.constraint=this.tsTryParse(function(){return l.tsParseConstraintForInferType()}),c.typeParameter=this.finishNode(f,"TSTypeParameter"),this.finishNode(c,"TSInferType")},o.tsParseConstraintForInferType=function(){var l=this;if(this.eat(81)){var c=this.tsInDisallowConditionalTypesContext(function(){return l.tsParseType()});if(this.state.inDisallowConditionalTypesContext||!this.match(17))return c}},o.tsParseTypeOperatorOrHigher=function(){var l=this,c=pSe(this.state.type)&&!this.state.containsEsc;return c?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return l.tsParseArrayTypeOrHigher()})},o.tsParseUnionOrIntersectionType=function(l,c,f){var h=this.startNode(),y=this.eat(f),g=[];do g.push(c());while(this.eat(f));return g.length===1&&!y?g[0]:(h.types=g,this.finishNode(h,l))},o.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)},o.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)},o.tsIsStartOfFunctionType=function(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},o.tsSkipParameterStart=function(){if(Sa(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var l=this.state.errors,c=l.length;try{return this.parseObjectLike(8,!0),l.length===c}catch{return!1}}if(this.match(0)){this.next();var f=this.state.errors,h=f.length;try{return r.prototype.parseBindingList.call(this,3,93,po.ALLOW_EMPTY),f.length===h}catch{return!1}}return!1},o.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))},o.tsParseTypeOrTypePredicateAnnotation=function(l){var c=this;return this.tsInType(function(){var f=c.startNode();c.expect(l);var h=c.startNode(),y=!!c.tsTryParse(c.tsParseTypePredicateAsserts.bind(c));if(y&&c.match(78)){var g=c.tsParseThisTypeOrThisTypePredicate();return g.type==="TSThisType"?(h.parameterName=g,h.asserts=!0,h.typeAnnotation=null,g=c.finishNode(h,"TSTypePredicate")):(c.resetStartLocationFromNode(g,h),g.asserts=!0),f.typeAnnotation=g,c.finishNode(f,"TSTypeAnnotation")}var x=c.tsIsIdentifier()&&c.tsTryParse(c.tsParseTypePredicatePrefix.bind(c));if(!x)return y?(h.parameterName=c.parseIdentifier(),h.asserts=y,h.typeAnnotation=null,f.typeAnnotation=c.finishNode(h,"TSTypePredicate"),c.finishNode(f,"TSTypeAnnotation")):c.tsParseTypeAnnotation(!1,f);var R=c.tsParseTypeAnnotation(!1);return h.parameterName=x,h.typeAnnotation=R,h.asserts=y,f.typeAnnotation=c.finishNode(h,"TSTypePredicate"),c.finishNode(f,"TSTypeAnnotation")})},o.tsTryParseTypeOrTypePredicateAnnotation=function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)},o.tsTryParseTypeAnnotation=function(){if(this.match(14))return this.tsParseTypeAnnotation()},o.tsTryParseType=function(){return this.tsEatThenParseType(14)},o.tsParseTypePredicatePrefix=function(){var l=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),l},o.tsParseTypePredicateAsserts=function(){if(this.state.type!==109)return!1;var l=this.state.containsEsc;return this.next(),!Sa(this.state.type)&&!this.match(78)?!1:(l&&this.raise(Ke.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)},o.tsParseTypeAnnotation=function(l,c){var f=this;return l===void 0&&(l=!0),c===void 0&&(c=this.startNode()),this.tsInType(function(){l&&f.expect(14),c.typeAnnotation=f.tsParseType()}),this.finishNode(c,"TSTypeAnnotation")},o.tsParseType=function(){var l=this;Mq(this.state.inType);var c=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return c;var f=this.startNodeAtNode(c);return f.checkType=c,f.extendsType=this.tsInDisallowConditionalTypesContext(function(){return l.tsParseNonConditionalType()}),this.expect(17),f.trueType=this.tsInAllowConditionalTypesContext(function(){return l.tsParseType()}),this.expect(14),f.falseType=this.tsInAllowConditionalTypesContext(function(){return l.tsParseType()}),this.finishNode(f,"TSConditionalType")},o.isAbstractConstructorSignature=function(){return this.isContextual(124)&&this.lookahead().type===77},o.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},o.tsParseTypeAssertion=function(){var l=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(cr.ReservedTypeAssertion,this.state.startLoc);var c=this.startNode();return c.typeAnnotation=this.tsInType(function(){return l.next(),l.match(75)?l.tsParseTypeReference():l.tsParseType()}),this.expect(48),c.expression=this.parseMaybeUnary(),this.finishNode(c,"TSTypeAssertion")},o.tsParseHeritageClause=function(l){var c=this,f=this.state.startLoc,h=this.tsParseDelimitedList("HeritageClauseElement",function(){var y=c.startNode();return y.expression=c.tsParseEntityName(),c.match(47)&&(y.typeParameters=c.tsParseTypeArguments()),c.finishNode(y,"TSExpressionWithTypeArguments")});return h.length||this.raise(cr.EmptyHeritageClauseType,f,{token:l}),h},o.tsParseInterfaceDeclaration=function(l,c){if(c===void 0&&(c={}),this.hasFollowingLineBreak())return null;this.expectContextual(129),c.declare&&(l.declare=!0),Sa(this.state.type)?(l.id=this.parseIdentifier(),this.checkIdentifier(l.id,wr.TYPE_TS_INTERFACE)):(l.id=null,this.raise(cr.MissingInterfaceName,this.state.startLoc)),l.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(l.extends=this.tsParseHeritageClause("extends"));var f=this.startNode();return f.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),l.body=this.finishNode(f,"TSInterfaceBody"),this.finishNode(l,"TSInterfaceDeclaration")},o.tsParseTypeAliasDeclaration=function(l){var c=this;return l.id=this.parseIdentifier(),this.checkIdentifier(l.id,wr.TYPE_TS_TYPE),l.typeAnnotation=this.tsInType(function(){if(l.typeParameters=c.tsTryParseTypeParameters(c.tsParseInOutModifiers),c.expect(29),c.isContextual(114)&&c.lookahead().type!==16){var f=c.startNode();return c.next(),c.finishNode(f,"TSIntrinsicKeyword")}return c.tsParseType()}),this.semicolon(),this.finishNode(l,"TSTypeAliasDeclaration")},o.tsInNoContext=function(l){var c=this.state.context;this.state.context=[c[0]];try{return l()}finally{this.state.context=c}},o.tsInType=function(l){var c=this.state.inType;this.state.inType=!0;try{return l()}finally{this.state.inType=c}},o.tsInDisallowConditionalTypesContext=function(l){var c=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return l()}finally{this.state.inDisallowConditionalTypesContext=c}},o.tsInAllowConditionalTypesContext=function(l){var c=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return l()}finally{this.state.inDisallowConditionalTypesContext=c}},o.tsEatThenParseType=function(l){if(this.match(l))return this.tsNextThenParseType()},o.tsExpectThenParseType=function(l){var c=this;return this.tsInType(function(){return c.expect(l),c.tsParseType()})},o.tsNextThenParseType=function(){var l=this;return this.tsInType(function(){return l.next(),l.tsParseType()})},o.tsParseEnumMember=function(){var l=this.startNode();return l.id=this.match(133)?r.prototype.parseStringLiteral.call(this,this.state.value):this.parseIdentifier(!0),this.eat(29)&&(l.initializer=r.prototype.parseMaybeAssignAllowIn.call(this)),this.finishNode(l,"TSEnumMember")},o.tsParseEnumDeclaration=function(l,c){return c===void 0&&(c={}),c.const&&(l.const=!0),c.declare&&(l.declare=!0),this.expectContextual(126),l.id=this.parseIdentifier(),this.checkIdentifier(l.id,l.const?wr.TYPE_TS_CONST_ENUM:wr.TYPE_TS_ENUM),this.expect(5),l.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(l,"TSEnumDeclaration")},o.tsParseModuleBlock=function(){var l=this.startNode();return this.scope.enter($r.OTHER),this.expect(5),r.prototype.parseBlockOrModuleBlockBody.call(this,l.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(l,"TSModuleBlock")},o.tsParseModuleOrNamespaceDeclaration=function(l,c){if(c===void 0&&(c=!1),l.id=this.parseIdentifier(),c||this.checkIdentifier(l.id,wr.TYPE_TS_NAMESPACE),this.eat(16)){var f=this.startNode();this.tsParseModuleOrNamespaceDeclaration(f,!0),l.body=f}else this.scope.enter($r.TS_MODULE),this.prodParam.enter(En.PARAM),l.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(l,"TSModuleDeclaration")},o.tsParseAmbientExternalModuleDeclaration=function(l){return this.isContextual(112)?(l.global=!0,l.id=this.parseIdentifier()):this.match(133)?l.id=r.prototype.parseStringLiteral.call(this,this.state.value):this.unexpected(),this.match(5)?(this.scope.enter($r.TS_MODULE),this.prodParam.enter(En.PARAM),l.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(l,"TSModuleDeclaration")},o.tsParseImportEqualsDeclaration=function(l,c,f){l.isExport=f||!1,l.id=c||this.parseIdentifier(),this.checkIdentifier(l.id,wr.TYPE_TS_VALUE_IMPORT),this.expect(29);var h=this.tsParseModuleReference();return l.importKind==="type"&&h.type!=="TSExternalModuleReference"&&this.raise(cr.ImportAliasHasImportType,h),l.moduleReference=h,this.semicolon(),this.finishNode(l,"TSImportEqualsDeclaration")},o.tsIsExternalModuleReference=function(){return this.isContextual(119)&&this.lookaheadCharCode()===40},o.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},o.tsParseExternalModuleReference=function(){var l=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),l.expression=r.prototype.parseExprAtom.call(this),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(l,"TSExternalModuleReference")},o.tsLookAhead=function(l){var c=this.state.clone(),f=l();return this.state=c,f},o.tsTryParseAndCatch=function(l){var c=this.tryParse(function(f){return l()||f()});if(!(c.aborted||!c.node))return c.error&&(this.state=c.failState),c.node},o.tsTryParse=function(l){var c=this.state.clone(),f=l();if(f!==void 0&&f!==!1)return f;this.state=c},o.tsTryParseDeclare=function(l){var c=this;if(!this.isLineTerminator()){var f=this.state.type,h;return this.isContextual(100)&&(f=74,h="let"),this.tsInAmbientContext(function(){switch(f){case 68:return l.declare=!0,r.prototype.parseFunctionStatement.call(c,l,!1,!1);case 80:return l.declare=!0,c.parseClass(l,!0,!1);case 126:return c.tsParseEnumDeclaration(l,{declare:!0});case 112:return c.tsParseAmbientExternalModuleDeclaration(l);case 75:case 74:return!c.match(75)||!c.isLookaheadContextual("enum")?(l.declare=!0,c.parseVarStatement(l,h||c.state.value,!0)):(c.expect(75),c.tsParseEnumDeclaration(l,{const:!0,declare:!0}));case 129:{var y=c.tsParseInterfaceDeclaration(l,{declare:!0});if(y)return y}default:if(Sa(f))return c.tsParseDeclaration(l,c.state.value,!0,null)}})}},o.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)},o.tsParseExpressionStatement=function(l,c,f){switch(c.name){case"declare":{var h=this.tsTryParseDeclare(l);return h&&(h.declare=!0),h}case"global":if(this.match(5)){this.scope.enter($r.TS_MODULE),this.prodParam.enter(En.PARAM);var y=l;return y.global=!0,y.id=c,y.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(y,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(l,c.name,!1,f)}},o.tsParseDeclaration=function(l,c,f,h){switch(c){case"abstract":if(this.tsCheckLineTerminator(f)&&(this.match(80)||Sa(this.state.type)))return this.tsParseAbstractDeclaration(l,h);break;case"module":if(this.tsCheckLineTerminator(f)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(l);if(Sa(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(l)}break;case"namespace":if(this.tsCheckLineTerminator(f)&&Sa(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(l);break;case"type":if(this.tsCheckLineTerminator(f)&&Sa(this.state.type))return this.tsParseTypeAliasDeclaration(l);break}},o.tsCheckLineTerminator=function(l){return l?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()},o.tsTryParseGenericAsyncArrowFunction=function(l){var c=this;if(this.match(47)){var f=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var h=this.tsTryParseAndCatch(function(){var y=c.startNodeAt(l);return y.typeParameters=c.tsParseTypeParameters(c.tsParseConstModifier),r.prototype.parseFunctionParams.call(c,y),y.returnType=c.tsTryParseTypeOrTypePredicateAnnotation(),c.expect(19),y});if(this.state.maybeInArrowParameters=f,!!h)return r.prototype.parseArrowExpression.call(this,h,null,!0)}},o.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()},o.tsParseTypeArguments=function(){var l=this,c=this.startNode();return c.params=this.tsInType(function(){return l.tsInNoContext(function(){return l.expect(47),l.tsParseDelimitedList("TypeParametersOrArguments",l.tsParseType.bind(l))})}),c.params.length===0?this.raise(cr.EmptyTypeArguments,c):!this.state.inType&&this.curContext()===Da.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(c,"TSTypeParameterInstantiation")},o.tsIsDeclarationStart=function(){return fSe(this.state.type)},o.isExportDefaultSpecifier=function(){return this.tsIsDeclarationStart()?!1:r.prototype.isExportDefaultSpecifier.call(this)},o.parseAssignableListItem=function(l,c){var f=this.state.startLoc,h={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},h);var y=h.accessibility,g=h.override,x=h.readonly;!(l&po.IS_CONSTRUCTOR_PARAMS)&&(y||x||g)&&this.raise(cr.UnexpectedParameterModifier,f);var R=this.parseMaybeDefault();l&po.IS_FUNCTION_PARAMS&&this.parseFunctionParamType(R);var w=this.parseMaybeDefault(R.loc.start,R);if(y||x||g){var T=this.startNodeAt(f);return c.length&&(T.decorators=c),y&&(T.accessibility=y),x&&(T.readonly=x),g&&(T.override=g),w.type!=="Identifier"&&w.type!=="AssignmentPattern"&&this.raise(cr.UnsupportedParameterPropertyKind,T),T.parameter=w,this.finishNode(T,"TSParameterProperty")}return c.length&&(R.decorators=c),w},o.isSimpleParameter=function(l){return l.type==="TSParameterProperty"&&r.prototype.isSimpleParameter.call(this,l.parameter)||r.prototype.isSimpleParameter.call(this,l)},o.tsDisallowOptionalPattern=function(l){for(var c=0,f=l.params;cf&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(y=this.isContextual(120)))){var g=this.startNodeAt(c);return g.expression=l,g.typeAnnotation=this.tsInType(function(){return h.next(),h.match(75)?(y&&h.raise(Ke.UnexpectedKeyword,h.state.startLoc,{keyword:"const"}),h.tsParseTypeReference()):h.tsParseType()}),this.finishNode(g,y?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(g,c,f)}return r.prototype.parseExprOp.call(this,l,c,f)},o.checkReservedWord=function(l,c,f,h){this.state.isAmbientContext||r.prototype.checkReservedWord.call(this,l,c,f,h)},o.checkImportReflection=function(l){r.prototype.checkImportReflection.call(this,l),l.module&&l.importKind!=="value"&&this.raise(cr.ImportReflectionHasImportType,l.specifiers[0].loc.start)},o.checkDuplicateExports=function(){},o.isPotentialImportPhase=function(l){if(r.prototype.isPotentialImportPhase.call(this,l))return!0;if(this.isContextual(130)){var c=this.lookaheadCharCode();return l?c===123||c===42:c!==61}return!l&&this.isContextual(87)},o.applyImportPhase=function(l,c,f,h){r.prototype.applyImportPhase.call(this,l,c,f,h),c?l.exportKind=f==="type"?"type":"value":l.importKind=f==="type"||f==="typeof"?f:"value"},o.parseImport=function(l){if(this.match(133))return l.importKind="value",r.prototype.parseImport.call(this,l);var c;if(Sa(this.state.type)&&this.lookaheadCharCode()===61)return l.importKind="value",this.tsParseImportEqualsDeclaration(l);if(this.isContextual(130)){var f=this.parseMaybeImportPhase(l,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(l,f);c=r.prototype.parseImportSpecifiersAndAfter.call(this,l,f)}else c=r.prototype.parseImport.call(this,l);return c.importKind==="type"&&c.specifiers.length>1&&c.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(cr.TypeImportCannotSpecifyDefaultAndNamed,c),c},o.parseExport=function(l,c){if(this.match(83)){this.next();var f=l,h=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?h=this.parseMaybeImportPhase(f,!1):f.importKind="value",this.tsParseImportEqualsDeclaration(f,h,!0)}else if(this.eat(29)){var y=l;return y.expression=r.prototype.parseExpression.call(this),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(y,"TSExportAssignment")}else if(this.eatContextual(93)){var g=l;return this.expectContextual(128),g.id=this.parseIdentifier(),this.semicolon(),this.finishNode(g,"TSNamespaceExportDeclaration")}else return r.prototype.parseExport.call(this,l,c)},o.isAbstractClass=function(){return this.isContextual(124)&&this.lookahead().type===80},o.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var l=this.startNode();return this.next(),l.abstract=!0,this.parseClass(l,!0,!0)}if(this.match(129)){var c=this.tsParseInterfaceDeclaration(this.startNode());if(c)return c}return r.prototype.parseExportDefaultExpression.call(this)},o.parseVarStatement=function(l,c,f){f===void 0&&(f=!1);var h=this.state.isAmbientContext,y=r.prototype.parseVarStatement.call(this,l,c,f||h);if(!h)return y;for(var g=0,x=y.declarations;g0)?!1:$q(e.object)}function tTe(e,r){var s,o=e.type;if((s=e.extra)!=null&&s.parenthesized)return!1;if(r){if(o==="Literal"){var d=e.value;if(typeof d=="string"||typeof d=="boolean")return!0}}else if(o==="StringLiteral"||o==="BooleanLiteral")return!0;return!!(Fq(e,r)||rTe(e,r)||o==="TemplateLiteral"&&e.expressions.length===0||eTe(e))}function Fq(e,r){return r?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function rTe(e,r){if(e.type==="UnaryExpression"){var s=e.operator,o=e.argument;if(s==="-"&&Fq(o,r))return!0}return!1}function $q(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:$q(e.object)}var qq,Uq=Uo(qq||(qq=Y(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),aTe=function(e){return function(r){function s(){return r.apply(this,arguments)||this}L(s,r);var o=s.prototype;return o.parsePlaceholder=function(l){if(this.match(144)){var c=this.startNode();return this.next(),this.assertNoSpace(),c.name=r.prototype.parseIdentifier.call(this,!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(c,l)}},o.finishPlaceholder=function(l,c){var f=l;return(!f.expectedNode||!f.type)&&(f=this.finishNode(f,"Placeholder")),f.expectedNode=c,f},o.getTokenFromCode=function(l){l===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):r.prototype.getTokenFromCode.call(this,l)},o.parseExprAtom=function(l){return this.parsePlaceholder("Expression")||r.prototype.parseExprAtom.call(this,l)},o.parseIdentifier=function(l){return this.parsePlaceholder("Identifier")||r.prototype.parseIdentifier.call(this,l)},o.checkReservedWord=function(l,c,f,h){l!==void 0&&r.prototype.checkReservedWord.call(this,l,c,f,h)},o.parseBindingAtom=function(){return this.parsePlaceholder("Pattern")||r.prototype.parseBindingAtom.call(this)},o.isValidLVal=function(l,c,f){return l==="Placeholder"||r.prototype.isValidLVal.call(this,l,c,f)},o.toAssignable=function(l,c){l&&l.type==="Placeholder"&&l.expectedNode==="Expression"?l.expectedNode="Pattern":r.prototype.toAssignable.call(this,l,c)},o.chStartsBindingIdentifier=function(l,c){if(r.prototype.chStartsBindingIdentifier.call(this,l,c))return!0;var f=this.lookahead();return f.type===144},o.verifyBreakContinue=function(l,c){l.label&&l.label.type==="Placeholder"||r.prototype.verifyBreakContinue.call(this,l,c)},o.parseExpressionStatement=function(l,c){var f;if(c.type!=="Placeholder"||(f=c.extra)!=null&&f.parenthesized)return r.prototype.parseExpressionStatement.call(this,l,c);if(this.match(14)){var h=l;return h.label=this.finishPlaceholder(c,"Identifier"),this.next(),h.body=r.prototype.parseStatementOrSloppyAnnexBFunctionDeclaration.call(this),this.finishNode(h,"LabeledStatement")}this.semicolon();var y=l;return y.name=c.name,this.finishPlaceholder(y,"Statement")},o.parseBlock=function(l,c,f){return this.parsePlaceholder("BlockStatement")||r.prototype.parseBlock.call(this,l,c,f)},o.parseFunctionId=function(l){return this.parsePlaceholder("Identifier")||r.prototype.parseFunctionId.call(this,l)},o.parseClass=function(l,c,f){var h=c?"ClassDeclaration":"ClassExpression";this.next();var y=this.state.strict,g=this.parsePlaceholder("Identifier");if(g)if(this.match(81)||this.match(144)||this.match(5))l.id=g;else{if(f||!c)return l.id=null,l.body=this.finishPlaceholder(g,"ClassBody"),this.finishNode(l,h);throw this.raise(Uq.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(l,c,f);return r.prototype.parseClassSuper.call(this,l),l.body=this.parsePlaceholder("ClassBody")||r.prototype.parseClassBody.call(this,!!l.superClass,y),this.finishNode(l,h)},o.parseExport=function(l,c){var f=this.parsePlaceholder("Identifier");if(!f)return r.prototype.parseExport.call(this,l,c);var h=l;if(!this.isContextual(98)&&!this.match(12))return h.specifiers=[],h.source=null,h.declaration=this.finishPlaceholder(f,"Declaration"),this.finishNode(h,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var y=this.startNode();return y.exported=f,h.specifiers=[this.finishNode(y,"ExportDefaultSpecifier")],r.prototype.parseExport.call(this,h,c)},o.isExportDefaultSpecifier=function(){if(this.match(65)){var l=this.nextTokenStart();if(this.isUnparsedContextual(l,"from")&&this.input.startsWith(ed(144),this.nextTokenStartSince(l+4)))return!0}return r.prototype.isExportDefaultSpecifier.call(this)},o.maybeParseExportDefaultSpecifier=function(l,c){var f;return(f=l.specifiers)!=null&&f.length?!0:r.prototype.maybeParseExportDefaultSpecifier.call(this,l,c)},o.checkExport=function(l){var c=l.specifiers;c!=null&&c.length&&(l.specifiers=c.filter(function(f){return f.exported.type==="Placeholder"})),r.prototype.checkExport.call(this,l),l.specifiers=c},o.parseImport=function(l){var c=this.parsePlaceholder("Identifier");if(!c)return r.prototype.parseImport.call(this,l);if(l.specifiers=[],!this.isContextual(98)&&!this.match(12))return l.source=this.finishPlaceholder(c,"StringLiteral"),this.semicolon(),this.finishNode(l,"ImportDeclaration");var f=this.startNodeAtNode(c);if(f.local=c,l.specifiers.push(this.finishNode(f,"ImportDefaultSpecifier")),this.eat(12)){var h=this.maybeParseStarImportSpecifier(l);h||this.parseNamedImportSpecifiers(l)}return this.expectContextual(98),l.source=this.parseImportSource(),this.semicolon(),this.finishNode(l,"ImportDeclaration")},o.parseImportSource=function(){return this.parsePlaceholder("StringLiteral")||r.prototype.parseImportSource.call(this)},o.assertNoSpace=function(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Uq.UnexpectedSpace,this.state.lastTokEndLoc)},O(s)}(e)},nTe=function(e){return function(r){function s(){return r.apply(this,arguments)||this}L(s,r);var o=s.prototype;return o.parseV8Intrinsic=function(){if(this.match(54)){var l=this.state.startLoc,c=this.startNode();if(this.next(),Sa(this.state.type)){var f=this.parseIdentifierName(),h=this.createIdentifier(c,f);if(h.type="V8IntrinsicIdentifier",this.match(10))return h}this.unexpected(l)}},o.parseExprAtom=function(l){return this.parseV8Intrinsic()||r.prototype.parseExprAtom.call(this,l)},O(s)}(e)},Vq=["minimal","fsharp","hack","smart"],Wq=["^^","@@","^","%","#"];function sTe(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var o,d=e.get("pipelineOperator").proposal;if(!Vq.includes(d)){var l=Vq.map(function(w){return'"'+w+'"'}).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '+l+".")}var c=((o=e.get("recordAndTuple"))==null?void 0:o.syntaxType)==="hash";if(d==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");var f=e.get("pipelineOperator").topicToken;if(!Wq.includes(f)){var h=Wq.map(function(w){return'"'+w+'"'}).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '+h+".")}if(f==="#"&&c)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}else if(d==="smart"&&c)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'+JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])+"`.")}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");var y=e.get("moduleAttributes").version;if(y!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){var g=e.get("recordAndTuple").syntaxType;if(g!=null){var x=["hash","bar"];if(!x.includes(g))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+x.map(function(w){return"'"+w+"'"}).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var R=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw R.missingPlugins="doExpressions",R}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var Gq={estree:rSe,jsx:KSe,flow:WSe,typescript:ZSe,v8intrinsic:nTe,placeholders:aTe},Kq=Object.keys(Gq),w8={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function iTe(e){if(e==null)return Object.assign({},w8);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(var r={},s=0,o=Object.keys(w8);s=w&&(d.doubleProtoLoc=null),d.shorthandAssignLoc!=null&&d.shorthandAssignLoc.index>=w&&(d.shorthandAssignLoc=null),d.privateKeyLoc!=null&&d.privateKeyLoc.index>=w&&(this.checkDestructuringPrivate(d),d.privateKeyLoc=null)}else x.left=g;return this.next(),x.right=this.parseMaybeAssign(),this.checkLVal(g,this.finishNode(x,"AssignmentExpression")),x}else h&&this.checkExpressionErrors(d,!0);return g},s.parseMaybeConditional=function(d){var l=this.state.startLoc,c=this.state.potentialArrowAt,f=this.parseExprOps(d);return this.shouldExitDescending(f,c)?f:this.parseConditional(f,l,d)},s.parseConditional=function(d,l,c){if(this.eat(17)){var f=this.startNodeAt(l);return f.test=d,f.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),f.alternate=this.parseMaybeAssign(),this.finishNode(f,"ConditionalExpression")}return d},s.parseMaybeUnaryOrPrivate=function(d){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(d)},s.parseExprOps=function(d){var l=this.state.startLoc,c=this.state.potentialArrowAt,f=this.parseMaybeUnaryOrPrivate(d);return this.shouldExitDescending(f,c)?f:this.parseExprOp(f,l,-1)},s.parseExprOp=function(d,l,c){if(this.isPrivateName(d)){var f=this.getPrivateNameSV(d);(c>=Fg(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(Ke.PrivateInExpectedIn,d,{identifierName:f}),this.classScope.usePrivateName(f,d.loc.start)}var h=this.state.type;if(dSe(h)&&(this.prodParam.hasIn||!this.match(58))){var y=Fg(h);if(y>c){if(h===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return d;this.checkPipelineAtInfixOperator(d,l)}var g=this.startNodeAt(l);g.left=d,g.operator=this.state.value;var x=h===41||h===42,R=h===40;if(R&&(y=Fg(42)),this.next(),h===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(Ke.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);g.right=this.parseExprOpRightExpr(h,y);var w=this.finishNode(g,x||R?"LogicalExpression":"BinaryExpression"),T=this.state.type;if(R&&(T===41||T===42)||x&&T===40)throw this.raise(Ke.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(w,l,c)}}return d},s.parseExprOpRightExpr=function(d,l){var c=this,f=this.state.startLoc;switch(d){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(function(){return c.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(function(){if(c.prodParam.hasYield&&c.isContextual(108))throw c.raise(Ke.PipeBodyIsTighter,c.state.startLoc);return c.parseSmartPipelineBodyInStyle(c.parseExprOpBaseRightExpr(d,l),f)});case"fsharp":return this.withSoloAwaitPermittingContext(function(){return c.parseFSharpPipelineBody(l)})}default:return this.parseExprOpBaseRightExpr(d,l)}},s.parseExprOpBaseRightExpr=function(d,l){var c=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),c,hSe(d)?l-1:l)},s.parseHackPipeBody=function(){var d,l=this.state.startLoc,c=this.parseMaybeAssign(),f=YEe.has(c.type);return f&&!((d=c.extra)!=null&&d.parenthesized)&&this.raise(Ke.PipeUnparenthesizedBody,l,{type:c.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(Ke.PipeTopicUnused,l),c},s.checkExponentialAfterUnary=function(d){this.match(57)&&this.raise(Ke.UnexpectedTokenUnaryExponentiation,d.argument)},s.parseMaybeUnary=function(d,l){var c=this.state.startLoc,f=this.isContextual(96);if(f&&this.recordAwaitIfAllowed()){this.next();var h=this.parseAwait(c);return l||this.checkExponentialAfterUnary(h),h}var y=this.match(34),g=this.startNode();if(cSe(this.state.type)){g.operator=this.state.value,g.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var x=this.match(89);if(this.next(),g.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(d,!0),this.state.strict&&x){var R=g.argument;R.type==="Identifier"?this.raise(Ke.StrictDelete,g):this.hasPropertyAsPrivateName(R)&&this.raise(Ke.DeletePrivateField,g)}if(!y)return l||this.checkExponentialAfterUnary(g),this.finishNode(g,"UnaryExpression")}var w=this.parseUpdate(g,y,d);if(f){var T=this.state.type,C=this.hasPlugin("v8intrinsic")?v8(T):v8(T)&&!this.match(54);if(C&&!this.isAmbiguousAwait())return this.raiseOverwrite(Ke.AwaitNotInAsyncContext,c),this.parseAwait(c)}return w},s.parseUpdate=function(d,l,c){if(l){var f=d;return this.checkLVal(f.argument,this.finishNode(f,"UpdateExpression")),d}var h=this.state.startLoc,y=this.parseExprSubscripts(c);if(this.checkExpressionErrors(c,!1))return y;for(;uSe(this.state.type)&&!this.canInsertSemicolon();){var g=this.startNodeAt(h);g.operator=this.state.value,g.prefix=!1,g.argument=y,this.next(),this.checkLVal(y,y=this.finishNode(g,"UpdateExpression"))}return y},s.parseExprSubscripts=function(d){var l=this.state.startLoc,c=this.state.potentialArrowAt,f=this.parseExprAtom(d);return this.shouldExitDescending(f,c)?f:this.parseSubscripts(f,l)},s.parseSubscripts=function(d,l,c){var f={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(d),stop:!1};do d=this.parseSubscript(d,l,c,f),f.maybeAsyncArrow=!1;while(!f.stop);return d},s.parseSubscript=function(d,l,c,f){var h=this.state.type;if(!c&&h===15)return this.parseBind(d,l,c,f);if($g(h))return this.parseTaggedTemplateExpression(d,l,f);var y=!1;if(h===18){if(c&&(this.raise(Ke.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return f.stop=!0,d;f.optionalChainMember=y=!0,this.next()}if(!c&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(d,l,f,y);var g=this.eat(0);return g||y||this.eat(16)?this.parseMember(d,l,f,g,y):(f.stop=!0,d)},s.parseMember=function(d,l,c,f,h){var y=this.startNodeAt(l);return y.object=d,y.computed=f,f?(y.property=this.parseExpression(),this.expect(3)):this.match(138)?(d.type==="Super"&&this.raise(Ke.SuperPrivateField,l),this.classScope.usePrivateName(this.state.value,this.state.startLoc),y.property=this.parsePrivateName()):y.property=this.parseIdentifier(!0),c.optionalChainMember?(y.optional=h,this.finishNode(y,"OptionalMemberExpression")):this.finishNode(y,"MemberExpression")},s.parseBind=function(d,l,c,f){var h=this.startNodeAt(l);return h.object=d,this.next(),h.callee=this.parseNoCallExpr(),f.stop=!0,this.parseSubscripts(this.finishNode(h,"BindExpression"),l,c)},s.parseCoverCallAndAsyncArrowHead=function(d,l,c,f){var h=this.state.maybeInArrowParameters,y=null;this.state.maybeInArrowParameters=!0,this.next();var g=this.startNodeAt(l);g.callee=d;var x=c.maybeAsyncArrow,R=c.optionalChainMember;x&&(this.expressionScope.enter(NSe()),y=new Wg),R&&(g.optional=f),f?g.arguments=this.parseCallExpressionArguments(11):g.arguments=this.parseCallExpressionArguments(11,d.type==="Import",d.type!=="Super",g,y);var w=this.finishCallExpression(g,R);return x&&this.shouldParseAsyncArrow()&&!f?(c.stop=!0,this.checkDestructuringPrivate(y),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),w=this.parseAsyncArrowFromCallExpression(this.startNodeAt(l),w)):(x&&(this.checkExpressionErrors(y,!0),this.expressionScope.exit()),this.toReferencedArguments(w)),this.state.maybeInArrowParameters=h,w},s.toReferencedArguments=function(d,l){this.toReferencedListDeep(d.arguments,l)},s.parseTaggedTemplateExpression=function(d,l,c){var f=this.startNodeAt(l);return f.tag=d,f.quasi=this.parseTemplate(!0),c.optionalChainMember&&this.raise(Ke.OptionalChainingNoTemplate,l),this.finishNode(f,"TaggedTemplateExpression")},s.atPossibleAsyncArrow=function(d){return d.type==="Identifier"&&d.name==="async"&&this.state.lastTokEndLoc.index===d.end&&!this.canInsertSemicolon()&&d.end-d.start===5&&d.start===this.state.potentialArrowAt},s.finishCallExpression=function(d,l){if(d.callee.type==="Import")if(d.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")),d.arguments.length===0||d.arguments.length>2)this.raise(Ke.ImportCallArity,d,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(var c=0,f=d.arguments;c1?(c=this.startNodeAt(y),c.expressions=g,this.finishNode(c,"SequenceExpression"),this.resetEndLocation(c,P)):c=g[0],this.wrapParenthesis(l,c))},s.wrapParenthesis=function(d,l){if(!this.options.createParenthesizedExpressions)return this.addExtra(l,"parenthesized",!0),this.addExtra(l,"parenStart",d.index),this.takeSurroundingComments(l,d.index,this.state.lastTokEndLoc.index),l;var c=this.startNodeAt(d);return c.expression=l,this.finishNode(c,"ParenthesizedExpression")},s.shouldParseArrow=function(d){return!this.canInsertSemicolon()},s.parseArrow=function(d){if(this.eat(19))return d},s.parseParenItem=function(d,l){return d},s.parseNewOrNewTarget=function(){var d=this.startNode();if(this.next(),this.match(16)){var l=this.createIdentifier(this.startNodeAtNode(d),"new");this.next();var c=this.parseMetaProperty(d,l,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(Ke.UnexpectedNewTarget,c),c}return this.parseNew(d)},s.parseNew=function(d){if(this.parseNewCallee(d),this.eat(10)){var l=this.parseExprList(11);this.toReferencedList(l),d.arguments=l}else d.arguments=[];return this.finishNode(d,"NewExpression")},s.parseNewCallee=function(d){var l=this.match(83),c=this.parseNoCallExpr();d.callee=c,l&&(c.type==="Import"||c.type==="ImportExpression")&&this.raise(Ke.ImportCallNotNewExpression,c)},s.parseTemplateElement=function(d){var l=this.state,c=l.start,f=l.startLoc,h=l.end,y=l.value,g=c+1,x=this.startNodeAt(fs(f,1));y===null&&(d||this.raise(Ke.InvalidEscapeSequenceTemplate,fs(this.state.firstInvalidTemplateEscapePos,1)));var R=this.match(24),w=R?-1:-2,T=h+w;x.value={raw:this.input.slice(g,T).replace(/\r\n?/g,` `),cooked:y===null?null:y.slice(1,w)},x.tail=R,this.next();var C=this.finishNode(x,"TemplateElement");return this.resetEndLocation(C,fs(this.state.lastTokEndLoc,w)),C},s.parseTemplate=function(d){for(var l=this.startNode(),c=this.parseTemplateElement(d),f=[c],h=[];!c.tail;)h.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),f.push(c=this.parseTemplateElement(d));return l.expressions=h,l.quasis=f,this.finishNode(l,"TemplateLiteral")},s.parseTemplateSubstitution=function(){return this.parseExpression()},s.parseObjectLike=function(d,l,c,f){c&&this.expectPlugin("recordAndTuple");var h=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var y=Object.create(null),g=!0,x=this.startNode();for(x.properties=[],this.next();!this.match(d);){if(g)g=!1;else if(this.expect(12),this.match(d)){this.addTrailingCommaExtraToNode(x);break}var R=void 0;l?R=this.parseBindingProperty():(R=this.parsePropertyDefinition(f),this.checkProto(R,c,y,f)),c&&!this.isObjectProperty(R)&&R.type!=="SpreadElement"&&this.raise(Ke.InvalidRecordProperty,R),R.shorthand&&this.addExtra(R,"shorthand",!0),x.properties.push(R)}this.next(),this.state.inFSharpPipelineDirectBody=h;var w="ObjectExpression";return l?w="ObjectPattern":c&&(w="RecordExpression"),this.finishNode(x,w)},s.addTrailingCommaExtraToNode=function(d){this.addExtra(d,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(d,"trailingCommaLoc",this.state.lastTokStartLoc,!1)},s.maybeAsyncOrAccessorProp=function(d){return!d.computed&&d.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))},s.parsePropertyDefinition=function(d){var l=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Ke.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)l.push(this.parseDecorator());var c=this.startNode(),f=!1,h=!1,y;if(this.match(21))return l.length&&this.unexpected(),this.parseSpread();l.length&&(c.decorators=l,l=[]),c.method=!1,d&&(y=this.state.startLoc);var g=this.eat(55);this.parsePropertyNamePrefixOperator(c);var x=this.state.containsEsc;if(this.parsePropertyName(c,d),!g&&!x&&this.maybeAsyncOrAccessorProp(c)){var R=c.key,w=R.name;w==="async"&&!this.hasPrecedingLineBreak()&&(f=!0,this.resetPreviousNodeTrailingComments(R),g=this.eat(55),this.parsePropertyName(c)),(w==="get"||w==="set")&&(h=!0,this.resetPreviousNodeTrailingComments(R),c.kind=w,this.match(55)&&(g=!0,this.raise(Ke.AccessorIsGenerator,this.state.curPosition(),{kind:w}),this.next()),this.parsePropertyName(c))}return this.parseObjPropValue(c,y,g,f,!1,h,d)},s.getGetterSetterExpectedParamCount=function(d){return d.kind==="get"?0:1},s.getObjectOrClassMethodParams=function(d){return d.params},s.checkGetterSetterParams=function(d){var l,c=this.getGetterSetterExpectedParamCount(d),f=this.getObjectOrClassMethodParams(d);f.length!==c&&this.raise(d.kind==="get"?Ke.BadGetterArity:Ke.BadSetterArity,d),d.kind==="set"&&((l=f[f.length-1])==null?void 0:l.type)==="RestElement"&&this.raise(Ke.BadSetterRestParameter,d)},s.parseObjectMethod=function(d,l,c,f,h){if(h){var y=this.parseMethod(d,l,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(y),y}if(c||l||this.match(10))return f&&this.unexpected(),d.kind="method",d.method=!0,this.parseMethod(d,l,c,!1,!1,"ObjectMethod")},s.parseObjectProperty=function(d,l,c,f){if(d.shorthand=!1,this.eat(14))return d.value=c?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(f),this.finishNode(d,"ObjectProperty");if(!d.computed&&d.key.type==="Identifier"){if(this.checkReservedWord(d.key.name,d.key.loc.start,!0,!1),c)d.value=this.parseMaybeDefault(l,Go(d.key));else if(this.match(29)){var h=this.state.startLoc;f!=null?f.shorthandAssignLoc===null&&(f.shorthandAssignLoc=h):this.raise(Ke.InvalidCoverInitializedName,h),d.value=this.parseMaybeDefault(l,Go(d.key))}else d.value=Go(d.key);return d.shorthand=!0,this.finishNode(d,"ObjectProperty")}},s.parseObjPropValue=function(d,l,c,f,h,y,g){var x=this.parseObjectMethod(d,c,f,h,y)||this.parseObjectProperty(d,l,h,g);return x||this.unexpected(),x},s.parsePropertyName=function(d,l){if(this.eat(0))d.computed=!0,d.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var c=this.state,f=c.type,h=c.value,y;if(Vi(f))y=this.parseIdentifier(!0);else switch(f){case 134:y=this.parseNumericLiteral(h);break;case 133:y=this.parseStringLiteral(h);break;case 135:y=this.parseBigIntLiteral(h);break;case 138:{var g=this.state.startLoc;l!=null?l.privateKeyLoc===null&&(l.privateKeyLoc=g):this.raise(Ke.UnexpectedPrivateField,g),y=this.parsePrivateName();break}default:if(f===136){y=this.parseDecimalLiteral(h);break}this.unexpected()}d.key=y,f!==138&&(d.computed=!1)}},s.initFunction=function(d,l){d.id=null,d.generator=!1,d.async=l},s.parseMethod=function(d,l,c,f,h,y,g){g===void 0&&(g=!1),this.initFunction(d,c),d.generator=l,this.scope.enter($r.FUNCTION|$r.SUPER|(g?$r.CLASS:0)|(h?$r.DIRECT_SUPER:0)),this.prodParam.enter(Vg(c,d.generator)),this.parseFunctionParams(d,f);var x=this.parseFunctionBodyAndFinish(d,y,!0);return this.prodParam.exit(),this.scope.exit(),x},s.parseArrayLike=function(d,l,c,f){c&&this.expectPlugin("recordAndTuple");var h=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var y=this.startNode();return this.next(),y.elements=this.parseExprList(d,!c,f,y),this.state.inFSharpPipelineDirectBody=h,this.finishNode(y,c?"TupleExpression":"ArrayExpression")},s.parseArrowExpression=function(d,l,c,f){this.scope.enter($r.FUNCTION|$r.ARROW);var h=Vg(c,!1);!this.match(5)&&this.prodParam.hasIn&&(h|=En.PARAM_IN),this.prodParam.enter(h),this.initFunction(d,c);var y=this.state.maybeInArrowParameters;return l&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(d,l,f)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(d,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=y,this.finishNode(d,"ArrowFunctionExpression")},s.setArrowFunctionParameters=function(d,l,c){this.toAssignableList(l,c,!1),d.params=l},s.parseFunctionBodyAndFinish=function(d,l,c){return c===void 0&&(c=!1),this.parseFunctionBody(d,!1,c),this.finishNode(d,l)},s.parseFunctionBody=function(d,l,c){var f=this;c===void 0&&(c=!1);var h=l&&!this.match(5);if(this.expressionScope.enter(Oq()),h)d.body=this.parseMaybeAssign(),this.checkParams(d,!1,l,!1);else{var y=this.state.strict,g=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|En.PARAM_RETURN),d.body=this.parseBlock(!0,!1,function(x){var R=!f.isSimpleParamList(d.params);x&&R&&f.raise(Ke.IllegalLanguageModeDirective,(d.kind==="method"||d.kind==="constructor")&&d.key?d.key.loc.end:d);var w=!y&&f.state.strict;f.checkParams(d,!f.state.strict&&!l&&!c&&!R,l,w),f.state.strict&&d.id&&f.checkIdentifier(d.id,wr.TYPE_OUTSIDE,w)}),this.prodParam.exit(),this.state.labels=g}this.expressionScope.exit()},s.isSimpleParameter=function(d){return d.type==="Identifier"},s.isSimpleParamList=function(d){for(var l=0,c=d.length;l10)&&gSe(d)){if(c&&ug(d)){this.raise(Ke.UnexpectedKeyword,l,{keyword:d});return}var h=this.state.strict?f?_B:dg:Wx;if(h(d,this.inModule)){this.raise(Ke.UnexpectedReservedWord,l,{reservedWord:d});return}else if(d==="yield"){if(this.prodParam.hasYield){this.raise(Ke.YieldBindingIdentifier,l);return}}else if(d==="await"){if(this.prodParam.hasAwait){this.raise(Ke.AwaitBindingIdentifier,l);return}if(this.scope.inStaticBlock){this.raise(Ke.AwaitBindingIdentifierInStaticBlock,l);return}this.expressionScope.recordAsyncArrowParametersError(l)}else if(d==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Ke.ArgumentsInClass,l);return}}},s.recordAwaitIfAllowed=function(){var d=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return d&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),d},s.parseAwait=function(d){var l=this.startNodeAt(d);return this.expressionScope.recordParameterInitializerError(Ke.AwaitExpressionFormalParameter,l),this.eat(55)&&this.raise(Ke.ObsoleteAwaitStar,l),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(l.argument=this.parseMaybeUnary(null,!0)),this.finishNode(l,"AwaitExpression")},s.isAmbiguousAwait=function(){if(this.hasPrecedingLineBreak())return!0;var d=this.state.type;return d===53||d===10||d===0||$g(d)||d===102&&!this.state.containsEsc||d===137||d===56||this.hasPlugin("v8intrinsic")&&d===54},s.parseYield=function(){var d=this.startNode();this.expressionScope.recordParameterInitializerError(Ke.YieldInParameter,d),this.next();var l=!1,c=null;if(!this.hasPrecedingLineBreak())switch(l=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!l)break;default:c=this.parseMaybeAssign()}return d.delegate=l,d.argument=c,this.finishNode(d,"YieldExpression")},s.parseImportCall=function(d){return this.next(),d.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(d.options=null),this.eat(12)&&(this.hasPlugin("moduleAttributes")||this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes"),this.match(11)||(d.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(d,"ImportExpression")},s.checkPipelineAtInfixOperator=function(d,l){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&d.type==="SequenceExpression"&&this.raise(Ke.PipelineHeadSequenceExpression,l)},s.parseSmartPipelineBodyInStyle=function(d,l){if(this.isSimpleReference(d)){var c=this.startNodeAt(l);return c.callee=d,this.finishNode(c,"PipelineBareFunction")}else{var f=this.startNodeAt(l);return this.checkSmartPipeTopicBodyEarlyErrors(l),f.expression=d,this.finishNode(f,"PipelineTopicExpression")}},s.isSimpleReference=function(d){switch(d.type){case"MemberExpression":return!d.computed&&this.isSimpleReference(d.object);case"Identifier":return!0;default:return!1}},s.checkSmartPipeTopicBodyEarlyErrors=function(d){if(this.match(19))throw this.raise(Ke.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(Ke.PipelineTopicUnused,d)},s.withTopicBindingContext=function(d){var l=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return d()}finally{this.state.topicContext=l}},s.withSmartMixTopicForbiddingContext=function(d){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){var l=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return d()}finally{this.state.topicContext=l}}else return d()},s.withSoloAwaitPermittingContext=function(d){var l=this.state.soloAwait;this.state.soloAwait=!0;try{return d()}finally{this.state.soloAwait=l}},s.allowInAnd=function(d){var l=this.prodParam.currentFlags(),c=En.PARAM_IN&~l;if(c){this.prodParam.enter(l|En.PARAM_IN);try{return d()}finally{this.prodParam.exit()}}return d()},s.disallowInAnd=function(d){var l=this.prodParam.currentFlags(),c=En.PARAM_IN&l;if(c){this.prodParam.enter(l&~En.PARAM_IN);try{return d()}finally{this.prodParam.exit()}}return d()},s.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},s.topicReferenceIsAllowedInCurrentContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},s.topicReferenceWasUsedInCurrentContext=function(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0},s.parseFSharpPipelineBody=function(d){var l=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var c=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var f=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),l,d);return this.state.inFSharpPipelineDirectBody=c,f},s.parseModuleExpression=function(){this.expectPlugin("moduleBlocks");var d=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var l=this.startNodeAt(this.state.endLoc);this.next();var c=this.initializeScopes(!0);this.enterInitialScopes();try{d.body=this.parseProgram(l,8,"module")}finally{c()}return this.finishNode(d,"ModuleExpression")},s.parsePropertyNamePrefixOperator=function(d){},O(r)}(XSe),P8={kind:zf.Loop},lTe={kind:zf.Switch},Bs={Expression:0,Declaration:1,HangingDeclaration:2,NullableId:4,Async:8},ms={StatementOnly:0,AllowImportExport:1,AllowDeclaration:2,AllowFunctionDeclaration:4,AllowLabeledFunction:8},dTe=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,A8=new RegExp("in(?:stanceof)?","y");function uTe(e,r){for(var s=0;s0)for(var f=0,h=Array.from(this.scope.undefinedExports);f0){var f;typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Ke.DecoratorsBeforeAfterExport,l.decorators[0]),(f=l.decorators).unshift.apply(f,d)}else l.decorators=d;this.resetStartLocationFromNode(l,d[0]),c&&this.resetStartLocationFromNode(c,l)}return l},s.canHaveLeadingDecorator=function(){return this.match(80)},s.parseDecorators=function(d){var l=[];do l.push(this.parseDecorator());while(this.match(26));if(this.match(82))d||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Ke.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(Ke.UnexpectedLeadingDecorator,this.state.startLoc);return l},s.parseDecorator=function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var d=this.startNode();if(this.next(),this.hasPlugin("decorators")){var l=this.state.startLoc,c;if(this.match(10)){var f=this.state.startLoc;this.next(),c=this.parseExpression(),this.expect(11),c=this.wrapParenthesis(f,c);var h=this.state.startLoc;d.expression=this.parseMaybeDecoratorArguments(c),this.getPluginOption("decorators","allowCallParenthesized")===!1&&d.expression!==c&&this.raise(Ke.DecoratorArgumentsOutsideParentheses,h)}else{for(c=this.parseIdentifier(!1);this.eat(16);){var y=this.startNodeAt(l);y.object=c,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),y.property=this.parsePrivateName()):y.property=this.parseIdentifier(!0),y.computed=!1,c=this.finishNode(y,"MemberExpression")}d.expression=this.parseMaybeDecoratorArguments(c)}}else d.expression=this.parseExprSubscripts();return this.finishNode(d,"Decorator")},s.parseMaybeDecoratorArguments=function(d){if(this.eat(10)){var l=this.startNodeAtNode(d);return l.callee=d,l.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(l.arguments),this.finishNode(l,"CallExpression")}return d},s.parseBreakContinueStatement=function(d,l){return this.next(),this.isLineTerminator()?d.label=null:(d.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(d,l),this.finishNode(d,l?"BreakStatement":"ContinueStatement")},s.verifyBreakContinue=function(d,l){var c;for(c=0;c=0;R--){var w=this.state.labels[R];if(w.statementStart===d.start)w.statementStart=this.state.start,w.kind=x;else break}return this.state.labels.push({name:l,kind:x,statementStart:this.state.start}),d.body=f&ms.AllowLabeledFunction?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),d.label=c,this.finishNode(d,"LabeledStatement")},s.parseExpressionStatement=function(d,l,c){return d.expression=l,this.semicolon(),this.finishNode(d,"ExpressionStatement")},s.parseBlock=function(d,l,c){d===void 0&&(d=!1),l===void 0&&(l=!0);var f=this.startNode();return d&&this.state.strictErrors.clear(),this.expect(5),l&&this.scope.enter($r.OTHER),this.parseBlockBody(f,d,!1,8,c),l&&this.scope.exit(),this.finishNode(f,"BlockStatement")},s.isValidDirective=function(d){return d.type==="ExpressionStatement"&&d.expression.type==="StringLiteral"&&!d.expression.extra.parenthesized},s.parseBlockBody=function(d,l,c,f,h){var y=d.body=[],g=d.directives=[];this.parseBlockOrModuleBlockBody(y,l?g:void 0,c,f,h)},s.parseBlockOrModuleBlockBody=function(d,l,c,f,h){for(var y=this.state.strict,g=!1,x=!1;!this.match(f);){var R=c?this.parseModuleItem():this.parseStatementListItem();if(l&&!x){if(this.isValidDirective(R)){var w=this.stmtToDirective(R);l.push(w),!g&&w.value.value==="use strict"&&(g=!0,this.setStrict(!0));continue}x=!0,this.state.strictErrors.clear()}d.push(R)}h==null||h.call(this,g),y||this.setStrict(!1),this.next()},s.parseFor=function(d,l){var c=this;return d.init=l,this.semicolon(!1),d.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),d.update=this.match(11)?null:this.parseExpression(),this.expect(11),d.body=this.withSmartMixTopicForbiddingContext(function(){return c.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(d,"ForStatement")},s.parseForIn=function(d,l,c){var f=this,h=this.match(58);return this.next(),h?c!==null&&this.unexpected(c):d.await=c!==null,l.type==="VariableDeclaration"&&l.declarations[0].init!=null&&(!h||!this.options.annexB||this.state.strict||l.kind!=="var"||l.declarations[0].id.type!=="Identifier")&&this.raise(Ke.ForInOfLoopInitializer,l,{type:h?"ForInStatement":"ForOfStatement"}),l.type==="AssignmentPattern"&&this.raise(Ke.InvalidLhs,l,{ancestor:{type:"ForStatement"}}),d.left=l,d.right=h?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),d.body=this.withSmartMixTopicForbiddingContext(function(){return f.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(d,h?"ForInStatement":"ForOfStatement")},s.parseVar=function(d,l,c,f){f===void 0&&(f=!1);var h=d.declarations=[];for(d.kind=c;;){var y=this.startNode();if(this.parseVarId(y,c),y.init=this.eat(29)?l?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,y.init===null&&!f&&(y.id.type!=="Identifier"&&!(l&&(this.match(58)||this.isContextual(102)))?this.raise(Ke.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(c==="const"||c==="using"||c==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(Ke.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:c})),h.push(this.finishNode(y,"VariableDeclarator")),!this.eat(12))break}return d},s.parseVarId=function(d,l){var c=this.parseBindingAtom();(l==="using"||l==="await using")&&(c.type==="ArrayPattern"||c.type==="ObjectPattern")&&this.raise(Ke.UsingDeclarationHasBindingPattern,c.loc.start),this.checkLVal(c,{type:"VariableDeclarator"},l==="var"?wr.TYPE_VAR:wr.TYPE_LEXICAL),d.id=c},s.parseAsyncFunctionExpression=function(d){return this.parseFunction(d,Bs.Async)},s.parseFunction=function(d,l){var c=this;l===void 0&&(l=Bs.Expression);var f=l&Bs.HangingDeclaration,h=!!(l&Bs.Declaration),y=h&&!(l&Bs.NullableId),g=!!(l&Bs.Async);this.initFunction(d,g),this.match(55)&&(f&&this.raise(Ke.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),d.generator=!0),h&&(d.id=this.parseFunctionId(y));var x=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter($r.FUNCTION),this.prodParam.enter(Vg(g,d.generator)),h||(d.id=this.parseFunctionId()),this.parseFunctionParams(d,!1),this.withSmartMixTopicForbiddingContext(function(){c.parseFunctionBodyAndFinish(d,h?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),h&&!f&&this.registerFunctionStatementId(d),this.state.maybeInArrowParameters=x,d},s.parseFunctionId=function(d){return d||Sa(this.state.type)?this.parseIdentifier():null},s.parseFunctionParams=function(d,l){this.expect(10),this.expressionScope.enter(OSe()),d.params=this.parseBindingList(11,41,po.IS_FUNCTION_PARAMS|(l?po.IS_CONSTRUCTOR_PARAMS:0)),this.expressionScope.exit()},s.registerFunctionStatementId=function(d){d.id&&this.scope.declareName(d.id.name,!this.options.annexB||this.state.strict||d.generator||d.async?this.scope.treatFunctionsAsVar?wr.TYPE_VAR:wr.TYPE_LEXICAL:wr.TYPE_FUNCTION,d.id.loc.start)},s.parseClass=function(d,l,c){this.next();var f=this.state.strict;return this.state.strict=!0,this.parseClassId(d,l,c),this.parseClassSuper(d),d.body=this.parseClassBody(!!d.superClass,f),this.finishNode(d,l?"ClassDeclaration":"ClassExpression")},s.isClassProperty=function(){return this.match(29)||this.match(13)||this.match(8)},s.isClassMethod=function(){return this.match(10)},s.nameIsConstructor=function(d){return d.type==="Identifier"&&d.name==="constructor"||d.type==="StringLiteral"&&d.value==="constructor"},s.isNonstaticConstructor=function(d){return!d.computed&&!d.static&&this.nameIsConstructor(d.key)},s.parseClassBody=function(d,l){var c=this;this.classScope.enter();var f={hadConstructor:!1,hadSuperClass:d},h=[],y=this.startNode();if(y.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(function(){for(;!c.match(8);){if(c.eat(13)){if(h.length>0)throw c.raise(Ke.DecoratorSemicolon,c.state.lastTokEndLoc);continue}if(c.match(26)){h.push(c.parseDecorator());continue}var g=c.startNode();h.length&&(g.decorators=h,c.resetStartLocationFromNode(g,h[0]),h=[]),c.parseClassMember(y,g,f),g.kind==="constructor"&&g.decorators&&g.decorators.length>0&&c.raise(Ke.DecoratorConstructor,g)}}),this.state.strict=l,this.next(),h.length)throw this.raise(Ke.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(y,"ClassBody")},s.parseClassMemberFromModifier=function(d,l){var c=this.parseIdentifier(!0);if(this.isClassMethod()){var f=l;return f.kind="method",f.computed=!1,f.key=c,f.static=!1,this.pushClassMethod(d,f,!1,!1,!1,!1),!0}else if(this.isClassProperty()){var h=l;return h.computed=!1,h.key=c,h.static=!1,d.body.push(this.parseClassProperty(h)),!0}return this.resetPreviousNodeTrailingComments(c),!1},s.parseClassMember=function(d,l,c){var f=this.isContextual(106);if(f){if(this.parseClassMemberFromModifier(d,l))return;if(this.eat(5)){this.parseClassStaticBlock(d,l);return}}this.parseClassMemberWithIsStatic(d,l,c,f)},s.parseClassMemberWithIsStatic=function(d,l,c,f){var h=l,y=l,g=l,x=l,R=l,w=h,T=h;if(l.static=f,this.parsePropertyNamePrefixOperator(l),this.eat(55)){w.kind="method";var C=this.match(138);if(this.parseClassElementName(w),C){this.pushClassPrivateMethod(d,y,!0,!1);return}this.isNonstaticConstructor(h)&&this.raise(Ke.ConstructorIsGenerator,h.key),this.pushClassMethod(d,h,!0,!1,!1,!1);return}var P=!this.state.containsEsc&&Sa(this.state.type),_=this.parseClassElementName(l),j=P?_.name:null,k=this.isPrivateName(_),D=this.state.startLoc;if(this.parsePostMemberNameModifiers(T),this.isClassMethod()){if(w.kind="method",k){this.pushClassPrivateMethod(d,y,!1,!1);return}var F=this.isNonstaticConstructor(h),B=!1;F&&(h.kind="constructor",c.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Ke.DuplicateConstructor,_),F&&this.hasPlugin("typescript")&&l.override&&this.raise(Ke.OverrideOnConstructor,_),c.hadConstructor=!0,B=c.hadSuperClass),this.pushClassMethod(d,h,!1,!1,F,B)}else if(this.isClassProperty())k?this.pushClassPrivateProperty(d,x):this.pushClassProperty(d,g);else if(j==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(_);var M=this.eat(55);T.optional&&this.unexpected(D),w.kind="method";var V=this.match(138);this.parseClassElementName(w),this.parsePostMemberNameModifiers(T),V?this.pushClassPrivateMethod(d,y,M,!0):(this.isNonstaticConstructor(h)&&this.raise(Ke.ConstructorIsAsync,h.key),this.pushClassMethod(d,h,M,!0,!1,!1))}else if((j==="get"||j==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(_),w.kind=j;var H=this.match(138);this.parseClassElementName(h),H?this.pushClassPrivateMethod(d,y,!1,!1):(this.isNonstaticConstructor(h)&&this.raise(Ke.ConstructorIsAccessor,h.key),this.pushClassMethod(d,h,!1,!1,!1,!1)),this.checkGetterSetterParams(h)}else if(j==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(_);var z=this.match(138);this.parseClassElementName(g),this.pushClassAccessorProperty(d,R,z)}else this.isLineTerminator()?k?this.pushClassPrivateProperty(d,x):this.pushClassProperty(d,g):this.unexpected()},s.parseClassElementName=function(d){var l=this.state,c=l.type,f=l.value;if((c===132||c===133)&&d.static&&f==="prototype"&&this.raise(Ke.StaticPrototype,this.state.startLoc),c===138){f==="constructor"&&this.raise(Ke.ConstructorClassPrivateField,this.state.startLoc);var h=this.parsePrivateName();return d.key=h,h}return this.parsePropertyName(d),d.key},s.parseClassStaticBlock=function(d,l){var c;this.scope.enter($r.CLASS|$r.STATIC_BLOCK|$r.SUPER);var f=this.state.labels;this.state.labels=[],this.prodParam.enter(En.PARAM);var h=l.body=[];this.parseBlockOrModuleBlockBody(h,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=f,d.body.push(this.finishNode(l,"StaticBlock")),(c=l.decorators)!=null&&c.length&&this.raise(Ke.DecoratorStaticBlock,l)},s.pushClassProperty=function(d,l){!l.computed&&this.nameIsConstructor(l.key)&&this.raise(Ke.ConstructorClassField,l.key),d.body.push(this.parseClassProperty(l))},s.pushClassPrivateProperty=function(d,l){var c=this.parseClassPrivateProperty(l);d.body.push(c),this.classScope.declarePrivateName(this.getPrivateNameSV(c.key),gi.OTHER,c.key.loc.start)},s.pushClassAccessorProperty=function(d,l,c){!c&&!l.computed&&this.nameIsConstructor(l.key)&&this.raise(Ke.ConstructorClassField,l.key);var f=this.parseClassAccessorProperty(l);d.body.push(f),c&&this.classScope.declarePrivateName(this.getPrivateNameSV(f.key),gi.OTHER,f.key.loc.start)},s.pushClassMethod=function(d,l,c,f,h,y){d.body.push(this.parseMethod(l,c,f,h,y,"ClassMethod",!0))},s.pushClassPrivateMethod=function(d,l,c,f){var h=this.parseMethod(l,c,f,!1,!1,"ClassPrivateMethod",!0);d.body.push(h);var y=h.kind==="get"?h.static?gi.STATIC_GETTER:gi.INSTANCE_GETTER:h.kind==="set"?h.static?gi.STATIC_SETTER:gi.INSTANCE_SETTER:gi.OTHER;this.declareClassPrivateMethodInScope(h,y)},s.declareClassPrivateMethodInScope=function(d,l){this.classScope.declarePrivateName(this.getPrivateNameSV(d.key),l,d.key.loc.start)},s.parsePostMemberNameModifiers=function(d){},s.parseClassPrivateProperty=function(d){return this.parseInitializer(d),this.semicolon(),this.finishNode(d,"ClassPrivateProperty")},s.parseClassProperty=function(d){return this.parseInitializer(d),this.semicolon(),this.finishNode(d,"ClassProperty")},s.parseClassAccessorProperty=function(d){return this.parseInitializer(d),this.semicolon(),this.finishNode(d,"ClassAccessorProperty")},s.parseInitializer=function(d){this.scope.enter($r.CLASS|$r.SUPER),this.expressionScope.enter(Oq()),this.prodParam.enter(En.PARAM),d.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()},s.parseClassId=function(d,l,c,f){if(f===void 0&&(f=wr.TYPE_CLASS),Sa(this.state.type))d.id=this.parseIdentifier(),l&&this.declareNameFromIdentifier(d.id,f);else if(c||!l)d.id=null;else throw this.raise(Ke.MissingClassName,this.state.startLoc)},s.parseClassSuper=function(d){d.superClass=this.eat(81)?this.parseExprSubscripts():null},s.parseExport=function(d,l){var c=this.parseMaybeImportPhase(d,!0),f=this.maybeParseExportDefaultSpecifier(d,c),h=!f||this.eat(12),y=h&&this.eatExportStar(d),g=y&&this.maybeParseExportNamespaceSpecifier(d),x=h&&(!g||this.eat(12)),R=f||y;if(y&&!g){if(f&&this.unexpected(),l)throw this.raise(Ke.UnsupportedDecoratorExport,d);return this.parseExportFrom(d,!0),this.finishNode(d,"ExportAllDeclaration")}var w=this.maybeParseExportNamedSpecifiers(d);f&&h&&!y&&!w&&this.unexpected(null,5),g&&x&&this.unexpected(null,98);var T;if(R||w){if(T=!1,l)throw this.raise(Ke.UnsupportedDecoratorExport,d);this.parseExportFrom(d,R)}else T=this.maybeParseExportDeclaration(d);if(R||w||T){var C,P=d;if(this.checkExport(P,!0,!1,!!P.source),((C=P.declaration)==null?void 0:C.type)==="ClassDeclaration")this.maybeTakeDecorators(l,P.declaration,P);else if(l)throw this.raise(Ke.UnsupportedDecoratorExport,d);return this.finishNode(P,"ExportNamedDeclaration")}if(this.eat(65)){var _=d,j=this.parseExportDefaultExpression();if(_.declaration=j,j.type==="ClassDeclaration")this.maybeTakeDecorators(l,j,_);else if(l)throw this.raise(Ke.UnsupportedDecoratorExport,d);return this.checkExport(_,!0,!0),this.finishNode(_,"ExportDefaultDeclaration")}this.unexpected(null,5)},s.eatExportStar=function(d){return this.eat(55)},s.maybeParseExportDefaultSpecifier=function(d,l){if(l||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",l==null?void 0:l.loc.start);var c=l||this.parseIdentifier(!0),f=this.startNodeAtNode(c);return f.exported=c,d.specifiers=[this.finishNode(f,"ExportDefaultSpecifier")],!0}return!1},s.maybeParseExportNamespaceSpecifier=function(d){if(this.isContextual(93)){var l,c;(c=(l=d).specifiers)!=null||(l.specifiers=[]);var f=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),f.exported=this.parseModuleExportName(),d.specifiers.push(this.finishNode(f,"ExportNamespaceSpecifier")),!0}return!1},s.maybeParseExportNamedSpecifiers=function(d){if(this.match(5)){var l,c=d;c.specifiers||(c.specifiers=[]);var f=c.exportKind==="type";return(l=c.specifiers).push.apply(l,this.parseExportSpecifiers(f)),c.source=null,c.declaration=null,this.hasPlugin("importAssertions")&&(c.assertions=[]),!0}return!1},s.maybeParseExportDeclaration=function(d){return this.shouldParseExportDeclaration()?(d.specifiers=[],d.source=null,this.hasPlugin("importAssertions")&&(d.assertions=[]),d.declaration=this.parseExportDeclaration(d),!0):!1},s.isAsyncFunction=function(){if(!this.isContextual(95))return!1;var d=this.nextTokenInLineStart();return this.isUnparsedContextual(d,"function")},s.parseExportDefaultExpression=function(){var d=this.startNode();if(this.match(68))return this.next(),this.parseFunction(d,Bs.Declaration|Bs.NullableId);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(d,Bs.Declaration|Bs.NullableId|Bs.Async);if(this.match(80))return this.parseClass(d,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Ke.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Ke.UnsupportedDefaultExport,this.state.startLoc);var l=this.parseMaybeAssignAllowIn();return this.semicolon(),l},s.parseExportDeclaration=function(d){if(this.match(80)){var l=this.parseClass(this.startNode(),!0,!1);return l}return this.parseStatementListItem()},s.isExportDefaultSpecifier=function(){var d=this.state.type;if(Sa(d)){if(d===95&&!this.state.containsEsc||d===100)return!1;if((d===130||d===129)&&!this.state.containsEsc){var l=this.lookahead(),c=l.type;if(Sa(c)&&c!==98||c===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var f=this.nextTokenStart(),h=this.isUnparsedContextual(f,"from");if(this.input.charCodeAt(f)===44||Sa(this.state.type)&&h)return!0;if(this.match(65)&&h){var y=this.input.charCodeAt(this.nextTokenStartSince(f+4));return y===34||y===39}return!1},s.parseExportFrom=function(d,l){this.eatContextual(98)?(d.source=this.parseImportSource(),this.checkExport(d),this.maybeParseImportAttributes(d),this.checkJSONModuleImport(d)):l&&this.unexpected(),this.semicolon()},s.shouldParseExportDeclaration=function(){var d=this.state.type;return d===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Ke.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(Ke.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(Ke.UsingDeclarationExport,this.state.startLoc),!0):d===74||d===75||d===68||d===80||this.isLet()||this.isAsyncFunction()},s.checkExport=function(d,l,c,f){if(l){var h;if(c){if(this.checkDuplicateExports(d,"default"),this.hasPlugin("exportDefaultFrom")){var y,g=d.declaration;g.type==="Identifier"&&g.name==="from"&&g.end-g.start===4&&!((y=g.extra)!=null&&y.parenthesized)&&this.raise(Ke.ExportDefaultFromAsIdentifier,g)}}else if((h=d.specifiers)!=null&&h.length)for(var x=0,R=d.specifiers;x0&&this.raise(Ke.ImportReflectionHasAssertion,l[0].loc.start)}},s.checkJSONModuleImport=function(d){if(this.isJSONModuleImport(d)&&d.type!=="ExportAllDeclaration"){var l=d.specifiers;if(l!=null){var c=l.find(function(f){var h;if(f.type==="ExportSpecifier"?h=f.local:f.type==="ImportSpecifier"&&(h=f.imported),h!==void 0)return h.type==="Identifier"?h.name!=="default":h.value!=="default"});c!==void 0&&this.raise(Ke.ImportJSONBindingNotDefault,c.loc.start)}}},s.isPotentialImportPhase=function(d){return d?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)},s.applyImportPhase=function(d,l,c,f){l||(c==="module"?(this.expectPlugin("importReflection",f),d.module=!0):this.hasPlugin("importReflection")&&(d.module=!1),c==="source"?(this.expectPlugin("sourcePhaseImports",f),d.phase="source"):c==="defer"?(this.expectPlugin("deferredImportEvaluation",f),d.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(d.phase=null))},s.parseMaybeImportPhase=function(d,l){if(!this.isPotentialImportPhase(l))return this.applyImportPhase(d,l,null),null;var c=this.parseIdentifier(!0),f=this.state.type,h=Vi(f)?f!==98||this.lookaheadCharCode()===102:f!==12;return h?(this.resetPreviousIdentifierLeadingComments(c),this.applyImportPhase(d,l,c.name,c.loc.start),null):(this.applyImportPhase(d,l,null),c)},s.isPrecedingIdImportPhase=function(d){var l=this.state.type;return Sa(l)?l!==98||this.lookaheadCharCode()===102:l!==12},s.parseImport=function(d){return this.match(133)?this.parseImportSourceAndAttributes(d):this.parseImportSpecifiersAndAfter(d,this.parseMaybeImportPhase(d,!1))},s.parseImportSpecifiersAndAfter=function(d,l){d.specifiers=[];var c=this.maybeParseDefaultImportSpecifier(d,l),f=!c||this.eat(12),h=f&&this.maybeParseStarImportSpecifier(d);return f&&!h&&this.parseNamedImportSpecifiers(d),this.expectContextual(98),this.parseImportSourceAndAttributes(d)},s.parseImportSourceAndAttributes=function(d){var l;return(l=d.specifiers)!=null||(d.specifiers=[]),d.source=this.parseImportSource(),this.maybeParseImportAttributes(d),this.checkImportReflection(d),this.checkJSONModuleImport(d),this.semicolon(),this.finishNode(d,"ImportDeclaration")},s.parseImportSource=function(){return this.match(133)||this.unexpected(),this.parseExprAtom()},s.parseImportSpecifierLocal=function(d,l,c){l.local=this.parseIdentifier(),d.specifiers.push(this.finishImportSpecifier(l,c))},s.finishImportSpecifier=function(d,l,c){return c===void 0&&(c=wr.TYPE_LEXICAL),this.checkLVal(d.local,{type:l},c),this.finishNode(d,l)},s.parseImportAttributes=function(){this.expect(5);var d=[],l=new Set;do{if(this.match(8))break;var c=this.startNode(),f=this.state.value;if(l.has(f)&&this.raise(Ke.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:f}),l.add(f),this.match(133)?c.key=this.parseStringLiteral(f):c.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(Ke.ModuleAttributeInvalidValue,this.state.startLoc);c.value=this.parseStringLiteral(this.state.value),d.push(this.finishNode(c,"ImportAttribute"))}while(this.eat(12));return this.expect(8),d},s.parseModuleAttributes=function(){var d=[],l=new Set;do{var c=this.startNode();if(c.key=this.parseIdentifier(!0),c.key.name!=="type"&&this.raise(Ke.ModuleAttributeDifferentFromType,c.key),l.has(c.key.name)&&this.raise(Ke.ModuleAttributesWithDuplicateKeys,c.key,{key:c.key.name}),l.add(c.key.name),this.expect(14),!this.match(133))throw this.raise(Ke.ModuleAttributeInvalidValue,this.state.startLoc);c.value=this.parseStringLiteral(this.state.value),d.push(this.finishNode(c,"ImportAttribute"))}while(this.eat(12));return d},s.maybeParseImportAttributes=function(d){var l,c=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?l=this.parseModuleAttributes():(this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes"),l=this.parseImportAttributes()),c=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(Ke.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(d,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),l=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))l=[];else if(this.hasPlugin("moduleAttributes"))l=[];else return;!c&&this.hasPlugin("importAssertions")?d.assertions=l:d.attributes=l},s.maybeParseDefaultImportSpecifier=function(d,l){if(l){var c=this.startNodeAtNode(l);return c.local=l,d.specifiers.push(this.finishImportSpecifier(c,"ImportDefaultSpecifier")),!0}else if(Vi(this.state.type))return this.parseImportSpecifierLocal(d,this.startNode(),"ImportDefaultSpecifier"),!0;return!1},s.maybeParseStarImportSpecifier=function(d){if(this.match(55)){var l=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(d,l,"ImportNamespaceSpecifier"),!0}return!1},s.parseNamedImportSpecifiers=function(d){var l=!0;for(this.expect(5);!this.eat(8);){if(l)l=!1;else{if(this.eat(14))throw this.raise(Ke.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var c=this.startNode(),f=this.match(133),h=this.isContextual(130);c.imported=this.parseModuleExportName();var y=this.parseImportSpecifier(c,f,d.importKind==="type"||d.importKind==="typeof",h,void 0);d.specifiers.push(y)}},s.parseImportSpecifier=function(d,l,c,f,h){if(this.eatContextual(93))d.local=this.parseIdentifier();else{var y=d.imported;if(l)throw this.raise(Ke.ImportBindingIsString,d,{importName:y.value});this.checkReservedWord(y.name,d.loc.start,!0,!0),d.local||(d.local=Go(y))}return this.finishImportSpecifier(d,"ImportSpecifier",h)},s.isThisParam=function(d){return d.type==="Identifier"&&d.name==="this"},O(r)}(oTe),Hq=function(e){function r(o,d,l){var c;return o=iTe(o),c=e.call(this,o,d)||this,c.options=o,c.initializeScopes(),c.plugins=l,c.filename=o.sourceFilename,c}L(r,e);var s=r.prototype;return s.getScopeHandler=function(){return R8},s.parse=function(){this.enterInitialScopes();var d=this.startNode(),l=this.startNode();return this.nextToken(),d.errors=null,this.parseTopLevel(d,l),d.errors=this.state.errors,d.comments.length=this.state.commentsLen,d},O(r)}(cTe);function Jf(e,r){var s;if(((s=r)==null?void 0:s.sourceType)==="unambiguous"){r=Object.assign({},r);try{r.sourceType="module";var o=Yf(r,e),d=o.parse();if(o.sawUnambiguousESM)return d;if(o.ambiguousScriptDifferentAst)try{return r.sourceType="script",Yf(r,e).parse()}catch{}else d.program.sourceType="script";return d}catch(l){try{return r.sourceType="script",Yf(r,e).parse()}catch{}throw l}}else return Yf(r,e).parse()}function pTe(e,r){var s=Yf(r,e);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()}function fTe(e){for(var r={},s=0,o=Object.keys(e);s!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,Qf.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}),Qf}function yTe(e){return e==null?!1:e&&e!=="false"&&e!=="0"}var Qq=(yTe(Kt.env.BABEL_8_BREAKING),Yq()),I8={exports:{}},za=String,Zq=function(){return{isColorSupported:!1,reset:za,bold:za,dim:za,italic:za,underline:za,inverse:za,hidden:za,strikethrough:za,black:za,red:za,green:za,yellow:za,blue:za,magenta:za,cyan:za,white:za,gray:za,bgBlack:za,bgRed:za,bgGreen:za,bgYellow:za,bgBlue:za,bgMagenta:za,bgCyan:za,bgWhite:za}};I8.exports=Zq();var Kg=I8.exports.createColors=Zq,eU=I8.exports,tU=typeof Kt=="object"&&(Kt.env.FORCE_COLOR==="0"||Kt.env.FORCE_COLOR==="false")?Kg(!1):eU,rU=function(r,s){return function(o){return r(s(o))}},gTe=new Set(["as","async","from","get","of","set"]);function vTe(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:rU(rU(e.white,e.bgRed),e.bold)}}var bTe=/\r\n|[\n\r\u2028\u2029]/,xTe=/^[()[\]{}]$/,aU;{var RTe=/^[a-z][\w-]*$/i,ETe=function(r,s,o){if(r.type==="name"){if(ug(r.value)||dg(r.value,!0)||gTe.has(r.value))return"keyword";if(RTe.test(r.value)&&(o[s-1]==="<"||o.slice(s-2,s)===""),c(l.gutter,D),P.length>0?" "+P:"",M].join("")}else return" "+c(l.gutter,D)+(P.length>0?" "+P:"")}).join(` `);return s.message&&!R&&(C=""+" ".repeat(w+1)+s.message+` `+C),o?d.reset(C):C}var jTe=un,OTe=Lo,_Te=Ds,NTe=Wt,DTe=ci,kTe=uf,zg=ZM,LTe=pi,oU=Va,MTe=n8,BTe=i8,FTe=/^[_$A-Z0-9]+$/;function lU(e,r,s){var o=s.placeholderWhitelist,d=s.placeholderPattern,l=s.preserveComments,c=s.syntacticPlaceholders,f=UTe(r,s.parser,c);MTe(f,{preserveComments:l}),e.validate(f);var h={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:o,placeholderPattern:d,syntacticPlaceholders:c};return BTe(f,$Te,h),Object.assign({ast:f},h.syntactic.placeholders.length?h.syntactic:h.legacy)}function $Te(e,r,s){var o,d,l=s.syntactic.placeholders.length>0;if(zg(e)){if(s.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");d=e.name.name,l=!0}else{if(l||s.syntacticPlaceholders)return;if(NTe(e)||DTe(e))d=e.name;else if(oU(e))d=e.value;else return}if(l&&(s.placeholderPattern!=null||s.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!(!l&&(s.placeholderPattern===!1||!(s.placeholderPattern||FTe).test(d))&&!((o=s.placeholderWhitelist)!=null&&o.has(d)))){r=r.slice();var c=r[r.length-1],f=c.node,h=c.key,y;oU(e)||zg(e,{expectedNode:"StringLiteral"})?y="string":kTe(f)&&h==="arguments"||jTe(f)&&h==="arguments"||_Te(f)&&h==="params"?y="param":OTe(f)&&!zg(e)?(y="statement",r=r.slice(0,-1)):LTe(e)&&zg(e)?y="statement":y="other";var g=l?s.syntactic:s.legacy,x=g.placeholders,R=g.placeholderNames;x.push({name:d,type:y,resolve:function(T){return qTe(T,r)},isDuplicate:R.has(d)}),R.add(d)}}function qTe(e,r){for(var s=e,o=0;o1?c-1:0),h=1;h1)throw new Error("Unexpected extra params.");return mU(pU(e,l,$f(d,qf(f[0]))))}else if(Array.isArray(l)){var y=s.get(l);return y||(y=fU(e,l,d),s.set(l,y)),mU(y(f))}else if(typeof l=="object"&&l){if(f.length>0)throw new Error("Unexpected extra params.");return Bc(e,$f(d,qf(l)))}throw new Error("Unexpected template param "+typeof l)},{ast:function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),y=1;y1)throw new Error("Unexpected extra params.");return pU(e,c,$f($f(d,qf(h[0])),hU))()}else if(Array.isArray(c)){var g=o.get(c);return g||(g=fU(e,c,$f(d,hU)),o.set(c,g)),g(h)()}throw new Error("Unexpected template param "+typeof c)}})}function mU(e){var r="";try{throw new Error}catch(s){s.stack&&(r=s.stack.split(` `).slice(3).join(` `))}return function(s){try{return e(s)}catch(o){throw o.stack+=` ============= `+r,o}}}var Jg=Bc(VEe),yU=Bc(GEe),gU=Bc(WEe),vU=Bc(vq),bU=Bc(KEe),gt=Object.assign(Jg.bind(void 0),{smart:Jg,statement:yU,statements:gU,expression:vU,program:bU,ast:Jg.ast}),JTe=Object.freeze({__proto__:null,default:gt,expression:vU,program:bU,smart:Jg,statement:yU,statements:gU});function Dt(e,r,s){return Object.freeze({minVersion:e,ast:function(){return gt.program.ast(r,{preserveComments:!0})},metadata:s})}var N8={__proto__:null,OverloadYield:Dt("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:Dt("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:Dt("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:Dt("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:Dt("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:Dt("7.1.5",`function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}`,{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:Dt("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:Dt("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:Dt("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:Dt("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:Dt("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:Dt("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:Dt("7.25.0",'function _superPropertyGet(t,e,o,r){var p=get(getPrototypeOf(1&r?t.prototype:t),e,o);return 2&r&&"function"==typeof p?function(t){return p.apply(o,t)}:p}',{globals:[],locals:{_superPropertyGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropertyGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:Dt("7.25.0","function _superPropertySet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropertySet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropertySet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:Dt("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:Dt("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:Dt("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:Dt("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:Dt("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:Dt("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:Dt("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:Dt("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:Dt("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:Dt("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),typeof:Dt("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:Dt("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:Dt("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:Dt("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:Dt("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:Dt("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:Dt("7.12.13",`function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`,{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};Object.assign(N8,{AwaitValue:Dt("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:Dt("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:Dt("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:Dt("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:Dt("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:Dt("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:Dt("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:Dt("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:Dt("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:Dt("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:Dt("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:Dt("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:Dt("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:Dt("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:Dt("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:Dt("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:Dt("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:Dt("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:Dt("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r0;)e=e[d],d=o.shift();if(arguments.length>2)e[d]=s;else return e[d]}catch(l){throw l.message+=" (when accessing "+r+")",l}}function QTe(e,r,s,o,d,l){var c=r.locals,f=r.dependencies,h=r.exportBindingAssignments,y=r.exportName,g=new Set(o||[]);s&&g.add(s);for(var x=0,R=(Object.entries||function(ce){return Object.keys(ce).map(function(ue){return[ue,ce[ue]]})})(c);x0)return c(x);if(w==="number"&&isFinite(x))return R.long?h(x):f(x);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(x))};function c(g){if(g=String(g),!(g.length>100)){var x=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(g);if(x){var R=parseFloat(x[1]),w=(x[2]||"ms").toLowerCase();switch(w){case"years":case"year":case"yrs":case"yr":case"y":return R*l;case"weeks":case"week":case"w":return R*d;case"days":case"day":case"d":return R*o;case"hours":case"hour":case"hrs":case"hr":case"h":return R*s;case"minutes":case"minute":case"mins":case"min":case"m":return R*r;case"seconds":case"second":case"secs":case"sec":case"s":return R*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return R;default:return}}}}function f(g){var x=Math.abs(g);return x>=o?Math.round(g/o)+"d":x>=s?Math.round(g/s)+"h":x>=r?Math.round(g/r)+"m":x>=e?Math.round(g/e)+"s":g+"ms"}function h(g){var x=Math.abs(g);return x>=o?y(g,x,o,"day"):x>=s?y(g,x,s,"hour"):x>=r?y(g,x,r,"minute"):x>=e?y(g,x,e,"second"):g+" ms"}function y(g,x,R,w){var T=x>=R*1.5;return Math.round(g/R)+" "+w+(T?"s":"")}return M8}function x3e(e){s.debug=s,s.default=s,s.coerce=h,s.disable=l,s.enable=d,s.enabled=c,s.humanize=b3e(),s.destroy=y,Object.keys(e).forEach(function(g){s[g]=e[g]}),s.names=[],s.skips=[],s.formatters={};function r(g){for(var x=0,R=0;R"u"?":":x)+g);return R.log=this.log,R}function d(g){s.save(g),s.namespaces=g,s.names=[],s.skips=[];var x,R=(typeof g=="string"?g:"").split(/[\s,]+/),w=R.length;for(x=0;x=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(h){if(h[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+h[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!!this.useColors){var y="color: "+this.color;h.splice(1,0,y,"color: inherit");var g=0,x=0;h[0].replace(/%[a-zA-Z%]/g,function(R){R!=="%%"&&(g++,R==="%c"&&(x=g))}),h.splice(x,0,y)}}r.log=console.debug||console.log||function(){};function d(h){try{h?r.storage.setItem("debug",h):r.storage.removeItem("debug")}catch{}}function l(){var h;try{h=r.storage.getItem("debug")}catch{}return!h&&typeof Kt<"u"&&"env"in Kt&&(h=Kt.env.DEBUG),h}function c(){try{return localStorage}catch{}}e.exports=R3e(r);var f=e.exports.formatters;f.j=function(h){try{return JSON.stringify(h)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(L8,L8.exports);var B8=L8.exports,E3e=fq,S3e=mq,T3e=xf,w3e=qi,P3e=Mx,A3e=of,I3e=bf,TU=Wt,C3e=tg,j3e=Rx,O3e=ci,_3e=gf,N3e=Pa,wU=ui,F8=kc,D3e=yq,k3e=pi,L3e=gq,M3e=cn,B3e=Ui,F3e=bx,$3e=B3e.isCompatTag;function q3e(e){var r=this.node,s=this.parent;if(!TU(r,e)&&!_3e(s,e))if(O3e(r,e)){if($3e(r.name))return!1}else return!1;return F8(r,s,this.parentPath.parent)}function U3e(){var e=this.node,r=this.parent;return N3e(e)&&F8(e,r)}function V3e(){var e=this.node,r=this.parent,s=this.parentPath.parent;return TU(e)&&E3e(e,r,s)}function W3e(){var e=this.node,r=this.parent;return k3e(e)?!(M3e(e)&&(I3e(r,{left:e})||A3e(r,{init:e}))):!1}function G3e(){return this.isIdentifier()?this.isReferencedIdentifier():w3e(this.node)}function K3e(){return D3e(this.node,this.parent)}function H3e(){return F8(this.node,this.parent)}function z3e(){return S3e(this.node)}function X3e(){return L3e(this.node)}function J3e(){return this.node&&!!this.node.loc}function Y3e(){return!this.isUser()}function Q3e(e){return this.scope.isPure(this.node,e)}function Z3e(){var e=this.node;return P3e(e)?!0:C3e(e)?e.importKind==="type"||e.importKind==="typeof":T3e(e)?e.exportKind==="type":j3e(e)?e.importKind==="type"||e.importKind==="typeof":!1}function ewe(){var e;return wU(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function twe(){var e;return wU(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function rwe(){return F3e(this.node,{await:!0})}a.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},a.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")};var PU=Object.freeze({__proto__:null,isBindingIdentifier:V3e,isBlockScoped:z3e,isExpression:G3e,isFlow:Z3e,isForAwaitStatement:rwe,isGenerated:Y3e,isPure:Q3e,isReferenced:H3e,isReferencedIdentifier:q3e,isReferencedMemberExpression:U3e,isRestProperty:ewe,isScope:K3e,isSpreadProperty:twe,isStatement:W3e,isUser:J3e,isVar:X3e}),AU=Sf,IU=yg,CU=xr,awe=Cf,jU=Qn;function nwe(e){return e in k8}function $8(e){return e==null?void 0:e._exploded}function Zf(e){if($8(e))return e;e._exploded=!0;for(var r=0,s=Object.keys(e);r1&&(d+=l),l++;while(this.hasLabel(d)||this.hasBinding(d)||this.hasGlobal(d)||this.hasReference(d));var c=this.getProgramParent();return c.references[d]=!0,c.uids[d]=!0,d},r.generateUidBasedOnNode=function(o,d){var l=[];Wa(o,l);var c=l.join("$");return c=c.replace(/^_/,"")||d||"ref",this.generateUid(c.slice(0,20))},r.generateUidIdentifierBasedOnNode=function(o,d){return nu(this.generateUidBasedOnNode(o,d))},r.isStatic=function(o){if(zU(o)||pPe(o)||JU(o))return!0;if(su(o)){var d=this.getBinding(o.name);return d?d.constant:this.hasBinding(o.name)}return!1},r.maybeGenerateMemoised=function(o,d){if(this.isStatic(o))return null;var l=this.generateUidIdentifierBasedOnNode(o);return d?l:(this.push({id:l}),UU(l))},r.checkBlockScopedCollisions=function(o,d,l,c){if(d!=="param"&&o.kind!=="local"){var f=d==="let"||o.kind==="let"||o.kind==="const"||o.kind==="module"||o.kind==="param"&&d==="const";if(f)throw this.path.hub.buildError(c,'Duplicate declaration "'+l+'"',TypeError)}},r.rename=function(o,d){var l=this.getBinding(o);if(l){d||(d=this.generateUidIdentifier(o).name);var c=new uwe(l,o,d);c.rename(arguments[2])}},r.dump=function(){var o="-".repeat(60);console.log(o);var d=this;do{console.log("#",d.block.type);for(var l=0,c=Object.keys(d.bindings);l0?!1:this.isPure(o.body,d)}else if(Zwe(o)){for(var f=I(o.body),h;!(h=f()).done;){var y=h.value;if(!this.isPure(y,d))return!1}return!0}else{if(Ywe(o))return this.isPure(o.left,d)&&this.isPure(o.right,d);if(WU(o)||EPe(o)){for(var g=I(o.elements),x;!(x=g()).done;){var R=x.value;if(R!==null&&!this.isPure(R,d))return!1}return!0}else if(lPe(o)||RPe(o)){for(var w=I(o.properties),T;!(T=w()).done;){var C=T.value;if(!this.isPure(C,d))return!1}return!0}else if(sPe(o)){var P;return!(o.computed&&!this.isPure(o.key,d)||((P=o.decorators)==null?void 0:P.length)>0)}else if(dPe(o)){var _;return!(o.computed&&!this.isPure(o.key,d)||((_=o.decorators)==null?void 0:_.length)>0||(SPe(o)||o.static)&&o.value!==null&&!this.isPure(o.value,d))}else{if(hPe(o))return this.isPure(o.argument,d);if(HU(o)){for(var j=I(o.expressions),k;!(k=j()).done;){var D=k.value;if(!this.isPure(D,d))return!1}return!0}else return fPe(o)?XU(o.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(o.quasi,d):nPe(o)?!o.computed&&su(o.object)&&o.object.name==="Symbol"&&su(o.property)&&o.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):GU(o)?XU(o.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&o.arguments.length===1&&Va(o.arguments[0]):uPe(o)}}}},r.setData=function(o,d){return this.data[o]=d},r.getData=function(o){var d=this;do{var l=d.data[o];if(l!=null)return l}while(d=d.parent)},r.removeData=function(o){var d=this;do{var l=d.data[o];l!=null&&(d.data[o]=null)}while(d=d.parent)},r.init=function(){this.inited||(this.inited=!0,this.crawl())},r.crawl=function(){var o=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);var d=this.getProgramParent();if(!d.crawling){var l={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,o.type!=="Program"&&$8(t1)){for(var c=I(t1.enter),f;!(f=c()).done;){var h=f.value;h.call(l,o,l)}var y=t1[o.type];if(y)for(var g=I(y.enter),x;!(x=g()).done;){var R=x.value;R.call(l,o,l)}}o.traverse(t1,l),this.crawling=!1;for(var w=I(l.assignments),T;!(T=w()).done;){for(var C=T.value,P=C.getAssignmentIdentifiers(),_=0,j=Object.keys(P);_1&&(o+=s),"_"+o},fo.prototype.toArray=function(r,s,o){if(su(r)){var d=this.getBinding(r.name);if(d!=null&&d.constant&&d.path.isGenericType("Array"))return r}if(WU(r))return r;if(su(r,{name:"arguments"}))return qU(K8(K8(K8(nu("Array"),nu("prototype")),nu("slice")),nu("call")),[r]);var l,c=[r];return s===!0?l="toConsumableArray":typeof s=="number"?(c.push(gPe(s)),l="slicedToArray"):l="toArray",o&&(c.unshift(this.path.hub.addHelper(l)),l="maybeArrayLike"),qU(this.path.hub.addHelper(l),c)},fo.prototype.getAllBindingsOfKind=function(){for(var r=Object.create(null),s=arguments.length,o=new Array(s),d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");l=e[f-2]==="="?2:e[f-1]==="="?1:0,c=new jPe(f*3/4-l),o=l>0?f-4:f;var h=0;for(r=0,s=0;r>16&255,c[h++]=d>>8&255,c[h++]=d&255;return l===2?(d=vi[e.charCodeAt(r)]<<2|vi[e.charCodeAt(r+1)]>>4,c[h++]=d&255):l===1&&(d=vi[e.charCodeAt(r)]<<10|vi[e.charCodeAt(r+1)]<<4|vi[e.charCodeAt(r+2)]>>2,c[h++]=d>>8&255,c[h++]=d&255),c}function _Pe(e){return ho[e>>18&63]+ho[e>>12&63]+ho[e>>6&63]+ho[e&63]}function NPe(e,r,s){for(var o,d=[],l=r;lh?h:f+c));return o===1?(r=e[s-1],d+=ho[r>>2],d+=ho[r<<4&63],d+="=="):o===2&&(r=(e[s-2]<<8)+e[s-1],d+=ho[r>>10],d+=ho[r>>4&63],d+=ho[r<<2&63],d+="="),l.push(d),l.join("")}function a1(e,r,s,o,d){var l,c,f=d*8-o-1,h=(1<>1,g=-7,x=s?d-1:0,R=s?-1:1,w=e[r+x];for(x+=R,l=w&(1<<-g)-1,w>>=-g,g+=f;g>0;l=l*256+e[r+x],x+=R,g-=8);for(c=l&(1<<-g)-1,l>>=-g,g+=o;g>0;c=c*256+e[r+x],x+=R,g-=8);if(l===0)l=1-y;else{if(l===h)return c?NaN:(w?-1:1)*(1/0);c=c+Math.pow(2,o),l=l-y}return(w?-1:1)*c*Math.pow(2,l-o)}function tV(e,r,s,o,d,l){var c,f,h,y=l*8-d-1,g=(1<>1,R=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:l-1,T=o?1:-1,C=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,c=g):(c=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-c))<1&&(c--,h*=2),c+x>=1?r+=R/h:r+=R*Math.pow(2,1-x),r*h>=2&&(c++,h/=2),c+x>=g?(f=0,c=g):c+x>=1?(f=(r*h-1)*Math.pow(2,d),c=c+x):(f=r*Math.pow(2,x-1)*Math.pow(2,d),c=0));d>=8;e[s+w]=f&255,w+=T,f/=256,d-=8);for(c=c<0;e[s+w]=c&255,w+=T,c/=256,y-=8);e[s+w-T]|=C*128}var DPe={}.toString,rV=Array.isArray||function(e){return DPe.call(e)=="[object Array]"};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var kPe=50;_t.TYPED_ARRAY_SUPPORT=kt.TYPED_ARRAY_SUPPORT!==void 0?kt.TYPED_ARRAY_SUPPORT:!0,n1();function n1(){return _t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ko(e,r){if(n1()=n1())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n1().toString(16)+" bytes");return e|0}_t.isBuffer=Fc;function mo(e){return!!(e!=null&&e._isBuffer)}_t.compare=function(r,s){if(!mo(r)||!mo(s))throw new TypeError("Arguments must be Buffers");if(r===s)return 0;for(var o=r.length,d=s.length,l=0,c=Math.min(o,d);l>>1;case"base64":return hV(e).length;default:if(o)return o1(e).length;r=(""+r).toLowerCase(),o=!0}}_t.byteLength=sV;function $Pe(e,r,s){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((s===void 0||s>this.length)&&(s=this.length),s<=0)||(s>>>=0,r>>>=0,s<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return JPe(this,r,s);case"utf8":case"utf-8":return dV(this,r,s);case"ascii":return zPe(this,r,s);case"latin1":case"binary":return XPe(this,r,s);case"base64":return KPe(this,r,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return YPe(this,r,s);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}_t.prototype._isBuffer=!0;function iu(e,r,s){var o=e[r];e[r]=e[s],e[s]=o}_t.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var s=0;s0&&(r=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(r+=" ... ")),""},_t.prototype.compare=function(r,s,o,d,l){if(!mo(r))throw new TypeError("Argument must be a Buffer");if(s===void 0&&(s=0),o===void 0&&(o=r?r.length:0),d===void 0&&(d=0),l===void 0&&(l=this.length),s<0||o>r.length||d<0||l>this.length)throw new RangeError("out of range index");if(d>=l&&s>=o)return 0;if(d>=l)return-1;if(s>=o)return 1;if(s>>>=0,o>>>=0,d>>>=0,l>>>=0,this===r)return 0;for(var c=l-d,f=o-s,h=Math.min(c,f),y=this.slice(d,l),g=r.slice(s,o),x=0;x2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),s=+s,isNaN(s)&&(s=d?0:e.length-1),s<0&&(s=e.length+s),s>=e.length){if(d)return-1;s=e.length-1}else if(s<0)if(d)s=0;else return-1;if(typeof r=="string"&&(r=_t.from(r,o)),mo(r))return r.length===0?-1:oV(e,r,s,o,d);if(typeof r=="number")return r=r&255,_t.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?d?Uint8Array.prototype.indexOf.call(e,r,s):Uint8Array.prototype.lastIndexOf.call(e,r,s):oV(e,[r],s,o,d);throw new TypeError("val must be string, number or Buffer")}function oV(e,r,s,o,d){var l=1,c=e.length,f=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(e.length<2||r.length<2)return-1;l=2,c/=2,f/=2,s/=2}function h(w,T){return l===1?w[T]:w.readUInt16BE(T*l)}var y;if(d){var g=-1;for(y=s;yc&&(s=c-f),y=s;y>=0;y--){for(var x=!0,R=0;Rd&&(o=d)):o=d;var l=r.length;if(l%2!==0)throw new TypeError("Invalid hex string");o>l/2&&(o=l/2);for(var c=0;cl)&&(o=l),r.length>0&&(o<0||s<0)||s>this.length)throw new RangeError("Attempt to write outside buffer bounds");d||(d="utf8");for(var c=!1;;)switch(d){case"hex":return qPe(this,r,s,o);case"utf8":case"utf-8":return UPe(this,r,s,o);case"ascii":return lV(this,r,s,o);case"latin1":case"binary":return VPe(this,r,s,o);case"base64":return WPe(this,r,s,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return GPe(this,r,s,o);default:if(c)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),c=!0}},_t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function KPe(e,r,s){return r===0&&s===e.length?eV(e):eV(e.slice(r,s))}function dV(e,r,s){s=Math.min(e.length,s);for(var o=[],d=r;d239?4:l>223?3:l>191?2:1;if(d+f<=s){var h,y,g,x;switch(f){case 1:l<128&&(c=l);break;case 2:h=e[d+1],(h&192)===128&&(x=(l&31)<<6|h&63,x>127&&(c=x));break;case 3:h=e[d+1],y=e[d+2],(h&192)===128&&(y&192)===128&&(x=(l&15)<<12|(h&63)<<6|y&63,x>2047&&(x<55296||x>57343)&&(c=x));break;case 4:h=e[d+1],y=e[d+2],g=e[d+3],(h&192)===128&&(y&192)===128&&(g&192)===128&&(x=(l&15)<<18|(h&63)<<12|(y&63)<<6|g&63,x>65535&&x<1114112&&(c=x))}}c===null?(c=65533,f=1):c>65535&&(c-=65536,o.push(c>>>10&1023|55296),c=56320|c&1023),o.push(c),d+=f}return HPe(o)}var uV=4096;function HPe(e){var r=e.length;if(r<=uV)return String.fromCharCode.apply(String,e);for(var s="",o=0;oo)&&(s=o);for(var d="",l=r;lo&&(r=o),s<0?(s+=o,s<0&&(s=0)):s>o&&(s=o),ss)throw new RangeError("Trying to access beyond buffer length")}_t.prototype.readUIntLE=function(r,s,o){r=r|0,s=s|0,o||_n(r,s,this.length);for(var d=this[r],l=1,c=0;++c0&&(l*=256);)d+=this[r+--s]*l;return d},_t.prototype.readUInt8=function(r,s){return s||_n(r,1,this.length),this[r]},_t.prototype.readUInt16LE=function(r,s){return s||_n(r,2,this.length),this[r]|this[r+1]<<8},_t.prototype.readUInt16BE=function(r,s){return s||_n(r,2,this.length),this[r]<<8|this[r+1]},_t.prototype.readUInt32LE=function(r,s){return s||_n(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},_t.prototype.readUInt32BE=function(r,s){return s||_n(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},_t.prototype.readIntLE=function(r,s,o){r=r|0,s=s|0,o||_n(r,s,this.length);for(var d=this[r],l=1,c=0;++c=l&&(d-=Math.pow(2,8*s)),d},_t.prototype.readIntBE=function(r,s,o){r=r|0,s=s|0,o||_n(r,s,this.length);for(var d=s,l=1,c=this[r+--d];d>0&&(l*=256);)c+=this[r+--d]*l;return l*=128,c>=l&&(c-=Math.pow(2,8*s)),c},_t.prototype.readInt8=function(r,s){return s||_n(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},_t.prototype.readInt16LE=function(r,s){s||_n(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o},_t.prototype.readInt16BE=function(r,s){s||_n(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o},_t.prototype.readInt32LE=function(r,s){return s||_n(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},_t.prototype.readInt32BE=function(r,s){return s||_n(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},_t.prototype.readFloatLE=function(r,s){return s||_n(r,4,this.length),a1(this,r,!0,23,4)},_t.prototype.readFloatBE=function(r,s){return s||_n(r,4,this.length),a1(this,r,!1,23,4)},_t.prototype.readDoubleLE=function(r,s){return s||_n(r,8,this.length),a1(this,r,!0,52,8)},_t.prototype.readDoubleBE=function(r,s){return s||_n(r,8,this.length),a1(this,r,!1,52,8)};function Fs(e,r,s,o,d,l){if(!mo(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>d||re.length)throw new RangeError("Index out of range")}_t.prototype.writeUIntLE=function(r,s,o,d){if(r=+r,s=s|0,o=o|0,!d){var l=Math.pow(2,8*o)-1;Fs(this,r,s,o,l,0)}var c=1,f=0;for(this[s]=r&255;++f=0&&(f*=256);)this[s+c]=r/f&255;return s+o},_t.prototype.writeUInt8=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,1,255,0),_t.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[s]=r&255,s+1};function s1(e,r,s,o){r<0&&(r=65535+r+1);for(var d=0,l=Math.min(e.length-s,2);d>>(o?d:1-d)*8}_t.prototype.writeUInt16LE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[s]=r&255,this[s+1]=r>>>8):s1(this,r,s,!0),s+2},_t.prototype.writeUInt16BE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,2,65535,0),_t.TYPED_ARRAY_SUPPORT?(this[s]=r>>>8,this[s+1]=r&255):s1(this,r,s,!1),s+2};function i1(e,r,s,o){r<0&&(r=4294967295+r+1);for(var d=0,l=Math.min(e.length-s,4);d>>(o?d:3-d)*8&255}_t.prototype.writeUInt32LE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[s+3]=r>>>24,this[s+2]=r>>>16,this[s+1]=r>>>8,this[s]=r&255):i1(this,r,s,!0),s+4},_t.prototype.writeUInt32BE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,4,4294967295,0),_t.TYPED_ARRAY_SUPPORT?(this[s]=r>>>24,this[s+1]=r>>>16,this[s+2]=r>>>8,this[s+3]=r&255):i1(this,r,s,!1),s+4},_t.prototype.writeIntLE=function(r,s,o,d){if(r=+r,s=s|0,!d){var l=Math.pow(2,8*o-1);Fs(this,r,s,o,l-1,-l)}var c=0,f=1,h=0;for(this[s]=r&255;++c>0)-h&255;return s+o},_t.prototype.writeIntBE=function(r,s,o,d){if(r=+r,s=s|0,!d){var l=Math.pow(2,8*o-1);Fs(this,r,s,o,l-1,-l)}var c=o-1,f=1,h=0;for(this[s+c]=r&255;--c>=0&&(f*=256);)r<0&&h===0&&this[s+c+1]!==0&&(h=1),this[s+c]=(r/f>>0)-h&255;return s+o},_t.prototype.writeInt8=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,1,127,-128),_t.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[s]=r&255,s+1},_t.prototype.writeInt16LE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[s]=r&255,this[s+1]=r>>>8):s1(this,r,s,!0),s+2},_t.prototype.writeInt16BE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,2,32767,-32768),_t.TYPED_ARRAY_SUPPORT?(this[s]=r>>>8,this[s+1]=r&255):s1(this,r,s,!1),s+2},_t.prototype.writeInt32LE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,4,2147483647,-2147483648),_t.TYPED_ARRAY_SUPPORT?(this[s]=r&255,this[s+1]=r>>>8,this[s+2]=r>>>16,this[s+3]=r>>>24):i1(this,r,s,!0),s+4},_t.prototype.writeInt32BE=function(r,s,o){return r=+r,s=s|0,o||Fs(this,r,s,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),_t.TYPED_ARRAY_SUPPORT?(this[s]=r>>>24,this[s+1]=r>>>16,this[s+2]=r>>>8,this[s+3]=r&255):i1(this,r,s,!1),s+4};function cV(e,r,s,o,d,l){if(s+o>e.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("Index out of range")}function pV(e,r,s,o,d){return d||cV(e,r,s,4),tV(e,r,s,o,23,4),s+4}_t.prototype.writeFloatLE=function(r,s,o){return pV(this,r,s,!0,o)},_t.prototype.writeFloatBE=function(r,s,o){return pV(this,r,s,!1,o)};function fV(e,r,s,o,d){return d||cV(e,r,s,8),tV(e,r,s,o,52,8),s+8}_t.prototype.writeDoubleLE=function(r,s,o){return fV(this,r,s,!0,o)},_t.prototype.writeDoubleBE=function(r,s,o){return fV(this,r,s,!1,o)},_t.prototype.copy=function(r,s,o,d){if(o||(o=0),!d&&d!==0&&(d=this.length),s>=r.length&&(s=r.length),s||(s=0),d>0&&d=this.length)throw new RangeError("sourceStart out of bounds");if(d<0)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),r.length-s=0;--c)r[c+s]=this[c+o];else if(l<1e3||!_t.TYPED_ARRAY_SUPPORT)for(c=0;c>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var c;if(typeof r=="number")for(c=s;c55295&&s<57344){if(!d){if(s>56319){(r-=3)>-1&&l.push(239,191,189);continue}else if(c+1===o){(r-=3)>-1&&l.push(239,191,189);continue}d=s;continue}if(s<56320){(r-=3)>-1&&l.push(239,191,189),d=s;continue}s=(d-55296<<10|s-56320)+65536}else d&&(r-=3)>-1&&l.push(239,191,189);if(d=null,s<128){if((r-=1)<0)break;l.push(s)}else if(s<2048){if((r-=2)<0)break;l.push(s>>6|192,s&63|128)}else if(s<65536){if((r-=3)<0)break;l.push(s>>12|224,s>>6&63|128,s&63|128)}else if(s<1114112){if((r-=4)<0)break;l.push(s>>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else throw new Error("Invalid code point")}return l}function rAe(e){for(var r=[],s=0;s>8,d=s%256,l.push(d),l.push(o);return l}function hV(e){return OPe(ZPe(e))}function l1(e,r,s,o){for(var d=0;d=r.length||d>=e.length);++d)r[d+s]=e[d];return d}function nAe(e){return e!==e}function Fc(e){return e!=null&&(!!e._isBuffer||mV(e)||sAe(e))}function mV(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function sAe(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&mV(e.slice(0,0))}var d1={exports:{}},yV;function Q8(){return yV||(yV=1,function(e,r){(function(s,o){o(r)})(fi,function(s){for(var o=44,d=59,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(64),f=new Uint8Array(128),h=0;h>>=1,G&&(M=-2147483648|-M),F[B]+=M,D}function T(k,D,F){return D>=F?!1:k.charCodeAt(D)!==o}function C(k){k.sort(P)}function P(k,D){return k[0]-D[0]}function _(k){for(var D=new Int32Array(5),F=1024*16,B=F-36,M=new Uint8Array(F),V=M.subarray(0,B),H=0,z="",G=0;G0&&(H===F&&(z+=g.decode(M),H=0),M[H++]=d),J.length!==0){D[0]=0;for(var ce=0;ceB&&(z+=g.decode(V),M.copyWithin(0,B,H),H-=B),ce>0&&(M[H++]=o),H=j(M,H,D,ue,0),ue.length!==1&&(H=j(M,H,D,ue,1),H=j(M,H,D,ue,2),H=j(M,H,D,ue,3),ue.length!==4&&(H=j(M,H,D,ue,4)))}}}return z+g.decode(M.subarray(0,H))}function j(k,D,F,B,M){var V=B[M],H=V-F[M];F[M]=V,H=H<0?-H<<1|1:H<<1;do{var z=H&31;H>>>=5,H>0&&(z|=32),k[D++]=c[z]}while(H>0);return D}s.decode=x,s.encode=_,Object.defineProperty(s,"__esModule",{value:!0})})}(d1,d1.exports)),d1.exports}var Z8={exports:{}},eR={exports:{}},gV;function iAe(){return gV||(gV=1,function(e,r){(function(s,o){e.exports=o()})(fi,function(){var s=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,d=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function l(j){return s.test(j)}function c(j){return j.startsWith("//")}function f(j){return j.startsWith("/")}function h(j){return j.startsWith("file:")}function y(j){return/^[.?#]/.test(j)}function g(j){var k=o.exec(j);return R(k[1],k[2]||"",k[3],k[4]||"",k[5]||"/",k[6]||"",k[7]||"")}function x(j){var k=d.exec(j),D=k[2];return R("file:","",k[1]||"","",f(D)?D:"/"+D,k[3]||"",k[4]||"")}function R(j,k,D,F,B,M,V){return{scheme:j,user:k,host:D,port:F,path:B,query:M,hash:V,type:7}}function w(j){if(c(j)){var k=g("http:"+j);return k.scheme="",k.type=6,k}if(f(j)){var D=g("http://foo.com"+j);return D.scheme="",D.host="",D.type=5,D}if(h(j))return x(j);if(l(j))return g(j);var F=g("http://foo.com/"+j);return F.scheme="",F.host="",F.type=j?j.startsWith("?")?3:j.startsWith("#")?2:4:1,F}function T(j){if(j.endsWith("/.."))return j;var k=j.lastIndexOf("/");return j.slice(0,k+1)}function C(j,k){P(k,k.type),j.path==="/"?j.path=k.path:j.path=T(k.path)+j.path}function P(j,k){for(var D=k<=4,F=j.path.split("/"),B=1,M=0,V=!1,H=1;HF&&(F=M)}P(D,F);var V=D.query+D.hash;switch(F){case 2:case 3:return V;case 4:{var H=D.path.slice(1);return H?y(k||j)&&!y(H)?"./"+H+V:H+V:V||"."}case 5:return D.path+V;default:return D.scheme+"//"+D.user+D.host+D.port+D.path+V}}return _})}(eR)),eR.exports}(function(e,r){(function(s,o){o(r,Q8(),iAe())})(fi,function(s,o,d){function l(Le,Ye){return Ye&&!Ye.endsWith("/")&&(Ye+="/"),d(Le,Ye)}function c(Le){if(!Le)return"";var Ye=Le.lastIndexOf("/");return Le.slice(0,Ye+1)}var f=0,h=1,y=2,g=3,x=4,R=1,w=2;function T(Le,Ye){var ht=C(Le,0);if(ht===Le.length)return Le;Ye||(Le=Le.slice());for(var jt=ht;jt>1),Xt=Le[zt][f]-Ye;if(Xt===0)return k=!0,zt;Xt<0?ht=zt+1:jt=zt-1}return k=!1,ht-1}function F(Le,Ye,ht){for(var jt=ht+1;jt=0&&Le[jt][f]===Ye;ht=jt--);return ht}function M(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function V(Le,Ye,ht,jt){var zt=ht.lastKey,Xt=ht.lastNeedle,Ir=ht.lastIndex,zr=0,jr=Le.length-1;if(jt===zt){if(Ye===Xt)return k=Ir!==-1&&Le[Ir][f]===Ye,Ir;Ye>=Xt?zr=Ir===-1?0:Ir:jr=Ir}return ht.lastKey=jt,ht.lastNeedle=Ye,ht.lastIndex=D(Le,Ye,zr,jr)}function H(Le,Ye){for(var ht=Ye.map(G),jt=0;jtYe;jt--)Le[jt]=Le[jt-1];Le[Ye]=ht}function G(){return{__proto__:null}}var J=function(Ye,ht){var jt=ce(Ye);if(!("sections"in jt))return new qe(jt,ht);var zt=[],Xt=[],Ir=[],zr=[],jr=[];ue(jt,ht,zt,Xt,Ir,zr,jr,0,0,1/0,1/0);var Vr={version:3,file:jt.file,names:zr,sources:Xt,sourcesContent:Ir,mappings:zt,ignoreList:jr};return $t(Vr)};function ce(Le){return typeof Le=="string"?JSON.parse(Le):Le}function ue(Le,Ye,ht,jt,zt,Xt,Ir,zr,jr,Vr,qa){for(var lr=Le.sections,ea=0;eaVr)return;for(var dt=le(ht,nt),wt=oe===0?jr:0,Ht=U[oe],qr=0;qr=qa)return;if(Ga.length===1){dt.push([ri]);continue}var Lv=N+Ga[h],Mv=Ga[y],gm=Ga[g];dt.push(Ga.length===4?[ri,Lv,Mv,gm]:[ri,Lv,Mv,gm,$+Ga[x]])}}}function ne(Le,Ye){for(var ht=0;ht=jt.length)return null;var zt=jt[Ye],Xt=st(zt,Le._decodedMemo,Ye,ht,Fe);return Xt===-1?null:zt[Xt]}function ot(Le,Ye){var ht=Ye.line,jt=Ye.column,zt=Ye.bias;if(ht--,ht<0)throw new Error(Z);if(jt<0)throw new Error(Ee);var Xt=Be(Le);if(ht>=Xt.length)return Me(null,null,null,null);var Ir=Xt[ht],zr=st(Ir,Le._decodedMemo,ht,jt,zt||Fe);if(zr===-1)return Me(null,null,null,null);var jr=Ir[zr];if(jr.length===1)return Me(null,null,null,null);var Vr=Le.names,qa=Le.resolvedSources;return Me(qa[jr[h]],jr[y]+1,jr[g],jr.length===5?Vr[jr[x]]:null)}function pt(Le,Ye){var ht=Ye.source,jt=Ye.line,zt=Ye.column,Xt=Ye.bias;return Nt(Le,ht,jt,zt,Xt||Fe,!1)}function Rt(Le,Ye){var ht=Ye.source,jt=Ye.line,zt=Ye.column,Xt=Ye.bias;return Nt(Le,ht,jt,zt,Xt||fe,!0)}function Pt(Le,Ye){for(var ht=Be(Le),jt=Le.names,zt=Le.resolvedSources,Xt=0;Xt=0;Ee=fe--){var Fe=le[fe];if(Z>=Fe[c])break}return Ee}function G(le,Z,Ee){for(var fe=le.length;fe>Z;fe--)le[fe]=le[fe-1];le[Z]=Ee}function J(le){for(var Z=le.length,Ee=Z,fe=Ee-1;fe>=0&&!(le[fe].length>0);Ee=fe,fe--);Ee1?this._indentChar.repeat(d):this._indentChar}else this._str+=d>1?String.fromCharCode(o).repeat(d):String.fromCharCode(o);o!==10?(this._mark(l.line,l.column,l.identifierName,l.identifierNamePos,l.filename),this._position.column+=d):(this._position.line++,this._position.column=0),this._canMarkIdName&&(l.identifierName=void 0,l.identifierNamePos=void 0)},r._append=function(o,d,l){var c=o.length,f=this._position;if(this._last=o.charCodeAt(c-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=o,this._appendCount=0):this._str+=o,!l&&!this._map){f.column+=c;return}var h=d.column,y=d.identifierName,g=d.identifierNamePos,x=d.filename,R=d.line;(y!=null||g!=null)&&this._canMarkIdName&&(d.identifierName=void 0,d.identifierNamePos=void 0);var w=o.indexOf(` `),T=0;for(w!==0&&this._mark(R,h,y,g,x);w!==-1;)f.line++,f.column=0,T=w+1,T=0&&this._queue[l].char===10;l--)d++;return d===o&&this._last===10?d+1:d},r.endsWithCharAndNewline=function(){var o=this._queue,d=this._queueCursor;if(d!==0){var l=o[d-1].char;return l!==10?void 0:d>1?o[d-2].char:this._last}},r.hasContent=function(){return this._queueCursor!==0||!!this._last},r.exactSource=function(o,d){if(!this._map){d();return}this.source("start",o);var l=o.identifierName,c=this._sourcePosition;l&&(this._canMarkIdName=!1,c.identifierName=l),d(),l&&(this._canMarkIdName=!0,c.identifierName=void 0,c.identifierNamePos=void 0),this.source("end",o)},r.source=function(o,d){this._map&&this._normalizePosition(o,d,0)},r.sourceWithOffset=function(o,d,l){this._map&&this._normalizePosition(o,d,l)},r._normalizePosition=function(o,d,l){var c=d[o],f=this._sourcePosition;c&&(f.line=c.line,f.column=Math.max(c.column+l,0),f.filename=d.filename)},r.getCurrentColumn=function(){for(var o=this._queue,d=this._queueCursor,l=-1,c=0,f=0;f",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function wV(e,r){if(r==="BinaryExpression"||r==="LogicalExpression")return TV.get(e.operator);if(r==="TSAsExpression"||r==="TSSatisfiesExpression")return TV.get("in")}function rR(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var c1=function(r,s){var o=s.type;return(o==="ClassDeclaration"||o==="ClassExpression")&&s.superClass===r},p1=function(r,s){var o=s.type;return(o==="MemberExpression"||o==="OptionalMemberExpression")&&s.object===r||(o==="CallExpression"||o==="OptionalCallExpression"||o==="NewExpression")&&s.callee===r||o==="TaggedTemplateExpression"&&s.tag===r||o==="TSNonNullExpression"};function PAe(e,r){return gAe(r)}function AAe(e,r,s){var o=r.type;return o==="UnionTypeAnnotation"||o==="IntersectionTypeAnnotation"||o==="ArrayTypeAnnotation"||!!(s&Pn.arrowFlowReturnType)}function IAe(e,r){return p1(e,r)||c1(e,r)}function PV(e){return!!(e&(Pn.expressionStatement|Pn.arrowBody))}function CAe(e,r,s){return PV(s)}function jAe(e,r,s){return!e.async&&!!(s&Pn.expressionStatement)}function AV(e,r){var s=r.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&s==="BinaryExpression"&&r.operator==="**")return r.left===e;if(c1(e,r)||p1(e,r)||s==="UnaryExpression"||s==="SpreadElement"||s==="AwaitExpression")return!0;var o=wV(r,s);if(o!=null){var d=wV(e,e.type);if(o===d&&s==="BinaryExpression"&&r.right===e||o>d)return!0}}function IV(e,r){var s=r.type;return s==="ArrayTypeAnnotation"||s==="NullableTypeAnnotation"||s==="IntersectionTypeAnnotation"||s==="UnionTypeAnnotation"}function OAe(e,r){return RAe(r)&&r.objectType===e}function CV(e,r){return(r.type==="AssignmentExpression"||r.type==="AssignmentPattern")&&r.left===e||r.type==="BinaryExpression"&&(r.operator==="|"||r.operator==="&")&&e===r.left?!0:AV(e,r)}function jV(e,r){var s=r.type;return s==="TSArrayType"||s==="TSOptionalType"||s==="TSIntersectionType"||s==="TSRestType"}function _Ae(e,r){var s=r.type;return s==="TSArrayType"||s==="TSOptionalType"}function NAe(e,r){var s=r.type;return(s==="CallExpression"||s==="OptionalCallExpression"||s==="NewExpression"||s==="TSInstantiationExpression")&&!!r.typeParameters}function DAe(e,r,s,o){return e.operator==="in"&&o}function kAe(e,r){var s=r.type;return s==="SequenceExpression"||s==="ParenthesizedExpression"||s==="MemberExpression"&&r.property===e||s==="OptionalMemberExpression"&&r.property===e||s==="TemplateLiteral"?!1:s==="ClassDeclaration"?!0:s==="ForOfStatement"?r.right===e:s==="ExportDefaultDeclaration"?!0:!wAe(r)}function OV(e,r){var s=r.type;return s==="BinaryExpression"||s==="LogicalExpression"||s==="UnaryExpression"||s==="SpreadElement"||p1(e,r)||s==="AwaitExpression"&&TAe(e)||s==="ConditionalExpression"&&e===r.test||c1(e,r)||rR(s)}function LAe(e,r,s){return!!(s&(Pn.expressionStatement|Pn.exportDefault))}function aR(e,r){return p1(e,r)||vAe(r)&&r.operator==="**"&&r.left===e||c1(e,r)}function MAe(e,r,s){return!!(s&(Pn.expressionStatement|Pn.exportDefault))}function nR(e,r){var s=r.type;return s==="UnaryExpression"||s==="SpreadElement"||s==="BinaryExpression"||s==="LogicalExpression"||s==="ConditionalExpression"&&r.test===e||s==="AwaitExpression"||rR(s)?!0:aR(e,r)}function _V(e,r){return bAe(r)&&r.callee===e||SV(r)&&r.object===e}function BAe(e,r,s){return PV(s)&&EAe(e.left)?!0:nR(e,r)}function FAe(e,r){var s=r.type;if(rR(s))return!0;if(s!=="LogicalExpression")return!1;switch(e.operator){case"||":return r.operator==="??"||r.operator==="&&";case"&&":return r.operator==="??";case"??":return r.operator!=="??"}}function $Ae(e,r,s){var o,d=r.type;if((o=e.extra)!=null&&o.parenthesized&&d==="AssignmentExpression"&&r.left===e){var l=r.right.type;if((l==="FunctionExpression"||l==="ClassExpression")&&r.right.id==null)return!0}if(e.name==="let"){var c=SV(r,{object:e,computed:!0})||SAe(r,{object:e,computed:!0,optional:!1});return c&&s&(Pn.expressionStatement|Pn.forHead|Pn.forInHead)?!0:!!(s&Pn.forOfHead)}return e.name==="async"&&xAe(r,{left:e,await:!1})}var qAe=Object.freeze({__proto__:null,ArrowFunctionExpression:nR,AssignmentExpression:BAe,AwaitExpression:OV,Binary:AV,BinaryExpression:DAe,ClassExpression:LAe,ConditionalExpression:nR,DoExpression:jAe,FunctionExpression:MAe,FunctionTypeAnnotation:AAe,Identifier:$Ae,IntersectionTypeAnnotation:IV,LogicalExpression:FAe,NullableTypeAnnotation:PAe,ObjectExpression:CAe,OptionalCallExpression:_V,OptionalIndexedAccessType:OAe,OptionalMemberExpression:_V,SequenceExpression:kAe,TSAsExpression:CV,TSInferType:_Ae,TSInstantiationExpression:NAe,TSIntersectionType:jV,TSSatisfiesExpression:CV,TSTypeAssertion:aR,TSUnionType:jV,UnaryLike:aR,UnionTypeAnnotation:IV,UpdateExpression:IAe,YieldExpression:OV}),UAe=xr,VAe=ks,NV=un,WAe=tB,GAe=Pa,KAe=uf,HAe=hx,Pn={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function DV(e){var r=new Map;function s(g,x){var R=r.get(g);r.set(g,R?function(w,T,C,P){var _;return(_=R(w,T,C,P))!=null?_:x(w,T,C,P)}:x)}for(var o=0,d=Object.keys(e);o=0;o--){var d=e[s[o]];if(d===r)return!0;if(Array.isArray(d)){for(var l=d.length-1;l>=0&&d[l]===null;)l--;return l>=0&&d[l]===r}else if(d)return!1}return!1}function YAe(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function QAe(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function ZAe(e){for(var r=e.quasis,s="`",o=0;o1}),MV(r)){if(CIe(r)){if(r.init===e)return}else if(r.left===e)return}this.semicolon()}function JIe(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}var YIe=gx,QIe=eg;function $V(e,r){var s=YIe(r)||QIe(r);(!s||!this._shouldPrintDecoratorsBeforeExport(r))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function ZIe(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();var r=this.enterDelimited();this.printSequence(e.body,{indent:!0}),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function eCe(e){var r;this.printJoin(e.decorators);var s=(r=e.key.loc)==null||(r=r.end)==null?void 0:r.line;s&&this.catchUp(s),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function tCe(e){var r;this.printJoin(e.decorators);var s=(r=e.key.loc)==null||(r=r.end)==null?void 0:r.line;s&&this.catchUp(s),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function rCe(e){this.printJoin(e.decorators),e.static&&(this.word("static"),this.space()),this.print(e.key),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function aCe(e){this._classMethodHead(e),this.space(),this.print(e.body)}function nCe(e){this._classMethodHead(e),this.space(),this.print(e.body)}function sCe(e){var r;this.printJoin(e.decorators);var s=(r=e.key.loc)==null||(r=r.end)==null?void 0:r.line;s&&this.catchUp(s),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function iCe(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,{indent:!0}),this.rightBrace(e))}var oCe=Wt;function lCe(e,r,s){this.print(e.typeParameters);var o=yCe.call(this,r,s);o&&this.sourceIdentifierName(o.name,o.pos),this.tokenChar(40),this._parameters(e.params),this.tokenChar(41);var d=e.type==="ArrowFunctionExpression";this.print(e.returnType,d),this._noLineTerminator=d}function dCe(e){for(var r=this.enterDelimited(),s=e.length,o=0;o"),this.space(),this.tokenContext|=Pn.arrowBody,this.print(e.body)}function mCe(e,r){var s,o;return!!(e.typeParameters||e.returnType||e.predicate||r.typeAnnotation||r.optional||(s=r.leadingComments)!=null&&s.length||(o=r.trailingComments)!=null&&o.length)}function yCe(e,r){var s=e;if(!s&&r){var o=r.type;o==="VariableDeclarator"?s=r.id:o==="AssignmentExpression"||o==="AssignmentPattern"?s=r.left:o==="ObjectProperty"||o==="ClassProperty"?(!r.computed||r.key.type==="StringLiteral")&&(s=r.key):(o==="ClassPrivateProperty"||o==="ClassAccessorProperty")&&(s=r.key)}if(s){var d;if(s.type==="Identifier"){var l,c;d={pos:(l=s.loc)==null?void 0:l.start,name:((c=s.loc)==null?void 0:c.identifierName)||s.name}}else if(s.type==="PrivateName"){var f;d={pos:(f=s.loc)==null?void 0:f.start,name:"#"+s.id.name}}else if(s.type==="StringLiteral"){var h;d={pos:(h=s.loc)==null?void 0:h.start,name:s.value}}return d}}var gCe=Hd,vCe=sg,bCe=Ax,xCe=rg,RCe=xx,UV=pi;function ECe(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function SCe(e){this.print(e.local)}function TCe(e){this.print(e.exported)}function wCe(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function PCe(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var VV=!1;function ACe(e){var r=this.format.importAttributesKeyword,s=e.attributes,o=e.assertions;s&&!r&&!VV&&(VV=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));var d=r==="assert"||!r&&o;if(this.word(d?"assert":"with"),this.space(),!d&&r!=="with"){this.printList(s||o);return}this.tokenChar(123),this.space(),this.printList(s||o),this.space(),this.tokenChar(125)}function WV(e){var r,s;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(r=e.attributes)!=null&&r.length||(s=e.assertions)!=null&&s.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function GV(e,r){gCe(r.declaration)&&e._shouldPrintDecoratorsBeforeExport(r)&&e.printJoin(r.declaration.decorators)}function ICe(e){if(GV(this,e),this.word("export"),this.space(),e.declaration){var r=e.declaration;this.print(r),UV(r)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());for(var s=e.specifiers.slice(0),o=!1;;){var d=s[0];if(vCe(d)||bCe(d))o=!0,this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}if((s.length||!s.length&&!o)&&(this.tokenChar(123),s.length&&(this.space(),this.printList(s),this.space()),this.tokenChar(125)),e.source){var l,c;this.space(),this.word("from"),this.space(),(l=e.attributes)!=null&&l.length||(c=e.assertions)!=null&&c.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source)}this.semicolon()}}function CCe(e){GV(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Pn.exportDefault;var r=e.declaration;this.print(r),UV(r)||this.semicolon()}function jCe(e){var r,s;this.word("import"),this.space();var o=e.importKind==="type"||e.importKind==="typeof";o?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());for(var d=e.specifiers.slice(0),l=!!d.length;l;){var c=d[0];if(xCe(c)||RCe(c))this.print(d.shift()),d.length&&(this.tokenChar(44),this.space());else break}d.length?(this.tokenChar(123),this.space(),this.printList(d),this.space(),this.tokenChar(125)):o&&!l&&(this.tokenChar(123),this.tokenChar(125)),(l||o)&&(this.space(),this.word("from"),this.space()),(r=e.attributes)!=null&&r.length||(s=e.assertions)!=null&&s.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function OCe(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function _Ce(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function NCe(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}var KV={},DCe=KV.hasOwnProperty,HV=function(r,s){for(var o in r)DCe.call(r,o)&&s(o,r[o])},kCe=function(r,s){return s&&HV(s,function(o,d){r[o]=d}),r},LCe=function(r,s){for(var o=r.length,d=-1;++d2?h1(ne):"\\x"+("00"+ne).slice(-2)}),c=="`"&&(T=T.replace(/\$\{/g,"\\${")),s.isScriptContext&&(T=T.replace(/<\/(script|style)/gi,"<\\/$1").replace(/=0;){const E=m[b];E&&E.type===9&&(v+=E.branches.length)}return()=>{if(p)i.codegenNode=nhe(u,v,a);else{const E=c3t(i.codegenNode);E.alternate=nhe(u,v+i.branches.length-1,a)}}}));function C1e(n,t,a,i){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const u=t.exp?t.exp.loc:n.loc;a.onError(_a(28,t.loc)),t.exp=Mr("true",!1,u)}if(a.prefixIdentifiers&&t.exp&&(t.exp=os(t.exp,a)),t.name==="if"){const u=ahe(n,t),p={type:9,loc:n.loc,branches:[u]};if(a.replaceNode(p),i)return i(p,u,!0)}else{const u=a.parent.children,p=[];let m=u.indexOf(n);for(;m-->=-1;){const b=u[m];if(b&&b.type===3){a.removeNode(b),p.unshift(b);continue}if(b&&b.type===2&&!b.content.trim().length){a.removeNode(b);continue}if(b&&b.type===9){t.name==="else-if"&&b.branches[b.branches.length-1].condition===void 0&&a.onError(_a(30,n.loc)),a.removeNode();const v=ahe(n,t);p.length&&!(a.parent&&a.parent.type===1&&(a.parent.tag==="transition"||a.parent.tag==="Transition"))&&(v.children=[...p,...v.children]);{const S=v.userKey;S&&b.branches.forEach(({userKey:A})=>{u3t(A,S)&&a.onError(_a(29,v.userKey.loc))})}b.branches.push(v);const E=i&&i(b,v,!1);Vy(v,a),E&&E(),a.currentNode=null}else a.onError(_a(30,n.loc));break}}}function ahe(n,t){const a=n.tagType===3;return{type:10,loc:n.loc,condition:t.name==="else"?void 0:t.exp,children:a&&!Cs(n,"for")?n.children:[n],userKey:Vp(n,"key"),isTemplateIf:a}}function nhe(n,t,a){return n.condition?ub(n.condition,she(n,t,a),mn(a.helper(ef),['"v-if"',"true"])):she(n,t,a)}function she(n,t,a){const{helper:i}=a,u=en("key",Mr(`${t}`,!1,wn,2)),{children:p}=n,m=p[0];if(p.length!==1||m.type!==1)if(p.length===1&&m.type===11){const v=m.codegenNode;return hy(v,u,a),v}else{let v=64;return!n.isTemplateIf&&p.filter(E=>E.type!==3).length===1&&(v|=2048),Up(a,i($p),si([u]),p,v,void 0,void 0,!0,!1,!1,n.loc)}else{const v=m.codegenNode,E=e1e(v);return E.type===13&&k6(E,a),hy(E,u,a),v}}function u3t(n,t){if(!n||n.type!==t.type)return!1;if(n.type===6){if(n.value.content!==t.value.content)return!1}else{const a=n.exp,i=t.exp;if(a.type!==i.type||a.type!==4||a.isStatic!==i.isStatic||a.content!==i.content)return!1}return!0}function c3t(n){for(;;)if(n.type===19)if(n.alternate.type===19)n=n.alternate;else return n;else n.type===20&&(n=n.value)}const j1e=(n,t,a)=>{const{modifiers:i,loc:u}=n,p=n.arg;let{exp:m}=n;if(m&&m.type===4&&!m.content.trim())return a.onError(_a(34,u)),{props:[en(p,Mr("",!0,u))]};if(!m){if(p.type!==4||!p.isStatic)return a.onError(_a(52,p.loc)),{props:[en(p,Mr("",!0,u))]};O1e(n,a),m=n.exp}return p.type!==4?(p.children.unshift("("),p.children.push(') || ""')):p.isStatic||(p.content=`${p.content} || ""`),i.some(b=>b.content==="camel")&&(p.type===4?p.isStatic?p.content=Xs(p.content):p.content=`${a.helperString(lb)}(${p.content})`:(p.children.unshift(`${a.helperString(lb)}(`),p.children.push(")"))),a.inSSR||(i.some(b=>b.content==="prop")&&ihe(p,"."),i.some(b=>b.content==="attr")&&ihe(p,"^")),{props:[en(p,m)]}},O1e=(n,t)=>{const a=n.arg,i=Xs(a.content);n.exp=Mr(i,!1,a.loc),n.exp=os(n.exp,t)},ihe=(n,t)=>{n.type===4?n.isStatic?n.content=t+n.content:n.content=`\`${t}\${${n.content}}\``:(n.children.unshift(`'${t}' + (`),n.children.push(")"))},p3t=tL("for",(n,t,a)=>{const{helper:i,removeHelper:u}=a;return _1e(n,t,a,p=>{const m=mn(i(C6),[p.source]),b=Wp(n),v=Cs(n,"memo"),E=Vp(n,"key",!1,!0);E&&E.type===7&&!E.exp&&O1e(E,a);const S=E&&(E.type===6?E.value?Mr(E.value.content,!0):void 0:E.exp),A=E&&S?en("key",S):null;b&&(v&&(v.exp=os(v.exp,a)),A&&E.type!==6&&(A.value=os(A.value,a)));const O=p.source.type===4&&p.source.constType>0,I=O?64:E?128:256;return p.codegenNode=Up(a,i($p),void 0,m,I,void 0,void 0,!0,!O,!1,n.loc),()=>{let q;const{children:L}=p;b&&n.children.some(Q=>{if(Q.type===1){const ae=Vp(Q,"key");if(ae)return a.onError(_a(33,ae.loc)),!0}});const W=L.length!==1||L[0].type!==1,X=fy(n)?n:b&&n.children.length===1&&fy(n.children[0])?n.children[0]:null;if(X?(q=X.codegenNode,b&&A&&hy(q,A,a)):W?q=Up(a,i($p),A?si([A]):void 0,n.children,64,void 0,void 0,!0,void 0,!1):(q=L[0].codegenNode,b&&A&&hy(q,A,a),q.isBlock!==!O&&(q.isBlock?(u(Fd),u(cc(a.inSSR,q.isComponent))):u(uc(a.inSSR,q.isComponent))),q.isBlock=!O,q.isBlock?(i(Fd),i(cc(a.inSSR,q.isComponent))):i(uc(a.inSSR,q.isComponent))),v){const Q=dc(gb(p.parseResult,[Mr("_cached")]));Q.body=vge([Os(["const _memo = (",v.exp,")"]),Os(["if (_cached",...S?[" && _cached.key === ",S]:[],` && ${a.helperString(Pk)}(_cached, _memo)) return _cached`]),Os(["const _item = ",q]),Mr("_item.memo = _memo"),Mr("return _item")]),m.arguments.push(Q,Mr("_cache"),Mr(String(a.cached.length))),a.cached.push(null)}else m.arguments.push(dc(gb(p.parseResult),q,!0))}})});function _1e(n,t,a,i){if(!t.exp){a.onError(_a(31,t.loc));return}const u=t.forParseResult;if(!u){a.onError(_a(32,t.loc));return}dL(u,a);const{addIdentifiers:p,removeIdentifiers:m,scopes:b}=a,{source:v,value:E,key:S,index:A}=u,O={type:11,loc:t.loc,source:v,valueAlias:E,keyAlias:S,objectIndexAlias:A,parseResult:u,children:Wp(n)?n.children:[n]};a.replaceNode(O),b.vFor++,a.prefixIdentifiers&&(E&&p(E),S&&p(S),A&&p(A));const I=i&&i(O);return()=>{b.vFor--,a.prefixIdentifiers&&(E&&m(E),S&&m(S),A&&m(A)),I&&I()}}function dL(n,t){n.finalized||(t.prefixIdentifiers&&(n.source=os(n.source,t),n.key&&(n.key=os(n.key,t,!0)),n.index&&(n.index=os(n.index,t,!0)),n.value&&(n.value=os(n.value,t,!0))),n.finalized=!0)}function gb({value:n,key:t,index:a},i=[]){return f3t([n,t,a,...i])}function f3t(n){let t=n.length;for(;t--&&!n[t];);return n.slice(0,t+1).map((a,i)=>a||Mr("_".repeat(i+1),!1))}const ohe=Mr("undefined",!1),N1e=(n,t)=>{if(n.type===1&&(n.tagType===1||n.tagType===3)){const a=Cs(n,"slot");if(a){const i=a.exp;return t.prefixIdentifiers&&i&&t.addIdentifiers(i),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&i&&t.removeIdentifiers(i),t.scopes.vSlot--}}}},D1e=(n,t)=>{let a;if(Wp(n)&&n.props.some(Qk)&&(a=Cs(n,"for"))){const i=a.forParseResult;if(i){dL(i,t);const{value:u,key:p,index:m}=i,{addIdentifiers:b,removeIdentifiers:v}=t;return u&&b(u),p&&b(p),m&&b(m),()=>{u&&v(u),p&&v(p),m&&v(m)}}}},h3t=(n,t,a,i)=>dc(n,a,!1,!0,a.length?a[0].loc:i);function k1e(n,t,a=h3t){t.helper(N6);const{children:i,loc:u}=n,p=[],m=[];let b=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(b=Hs(n,t.identifiers));const v=Cs(n,"slot",!0);if(v){const{arg:W,exp:X}=v;W&&!Ns(W)&&(b=!0),p.push(en(W||Mr("default",!0),a(X,void 0,i,u)))}let E=!1,S=!1;const A=[],O=new Set;let I=0;for(let W=0;W{const ae=a(X,void 0,Q,u);return en("default",ae)};E?A.length&&A.some(X=>L1e(X))&&(S?t.onError(_a(39,A[0].loc)):p.push(W(void 0,A))):p.push(W(void 0,i))}const q=b?2:J2(n.children)?3:1;let L=si(p.concat(en("_",Mr(q+` /* ${N5t[q]} */`,!1))),u);return m.length&&(L=mn(t.helper(wk),[L,kd(m)])),{slots:L,hasDynamicSlots:b}}function h2(n,t,a){const i=[en("name",n),en("fn",t)];return a!=null&&i.push(en("key",Mr(String(a),!0))),si(i)}function J2(n){for(let t=0;tfunction(){if(n=t.currentNode,!(n.type===1&&(n.tagType===0||n.tagType===1)))return;const{tag:i,props:u}=n,p=n.tagType===1;let m=p?F1e(n,t):`"${i}"`;const b=Zp(m)&&m.callee===P6;let v,E,S=0,A,O,I,q=b||m===Np||m===R6||!p&&(i==="svg"||i==="foreignObject"||i==="math");if(u.length>0){const L=uL(n,t,void 0,p,b);v=L.props,S=L.patchFlag,O=L.dynamicPropNames;const W=L.directives;I=W&&W.length?kd(W.map(X=>$1e(X,t))):void 0,L.shouldUseBlock&&(q=!0)}if(n.children.length>0)if(m===sy&&(q=!0,S|=1024,n.children.length>1&&t.onError(_a(46,{start:n.children[0].loc.start,end:n.children[n.children.length-1].loc.end,source:""}))),p&&m!==Np&&m!==sy){const{slots:W,hasDynamicSlots:X}=k1e(n,t);E=W,X&&(S|=1024)}else if(n.children.length===1&&m!==Np){const W=n.children[0],X=W.type,Q=X===5||X===8;Q&&Js(W,t)===0&&(S|=1),Q||X===2?E=W:E=n.children}else E=n.children;O&&O.length&&(A=y3t(O)),n.codegenNode=Up(t,m,v,E,S===0?void 0:S,A,I,!!q,!1,p,n.loc)};function F1e(n,t,a=!1){let{tag:i}=n;const u=vN(i),p=Vp(n,"is",!1,!0);if(p)if(u){let b;if(p.type===6?b=p.value&&Mr(p.value.content,!0):(b=p.exp,b||(b=Mr("is",!1,p.arg.loc),b=p.exp=os(b,t))),b)return mn(t.helper(P6),[b])}else p.type===6&&p.value.content.startsWith("vue:")&&(i=p.value.content.slice(4));const m=Xk(i)||t.isBuiltInComponent(i);if(m)return a||t.helper(m),m;{const b=gN(i,t);if(b)return b;const v=i.indexOf(".");if(v>0){const E=gN(i.slice(0,v),t);if(E)return E+i.slice(v)}}return t.selfName&&Bd(Xs(i))===t.selfName?(t.helper(iy),t.components.add(i+"__self"),my(i,"component")):(t.helper(iy),t.components.add(i),my(i,"component"))}function gN(n,t){const a=t.bindingMetadata;if(!a||a.__isScriptSetup===!1)return;const i=Xs(n),u=Bd(i),p=E=>{if(a[n]===E)return n;if(a[i]===E)return i;if(a[u]===E)return u},m=p("setup-const")||p("setup-reactive-const")||p("literal-const");if(m)return t.inline?m:`$setup[${JSON.stringify(m)}]`;const b=p("setup-let")||p("setup-ref")||p("setup-maybe-ref");if(b)return t.inline?`${t.helperString(dy)}(${b})`:`$setup[${JSON.stringify(b)}]`;const v=p("props");if(v)return`${t.helperString(dy)}(${t.inline?"__props":"$props"}[${JSON.stringify(v)}])`}function uL(n,t,a=n.props,i,u,p=!1){const{tag:m,loc:b,children:v}=n;let E=[];const S=[],A=[],O=v.length>0;let I=!1,q=0,L=!1,W=!1,X=!1,Q=!1,ae=!1,ie=!1;const be=[],Ge=ve=>{E.length&&(S.push(si(lhe(E),b)),E=[]),ve&&S.push(ve)},Xe=()=>{t.scopes.vFor>0&&E.push(en(Mr("ref_for",!0),Mr("true")))},K=({key:ve,value:Y})=>{if(Ns(ve)){const pe=ve.content,At=age(pe);if(At&&(!i||u)&&pe.toLowerCase()!=="onclick"&&pe!=="onUpdate:modelValue"&&!Afe(pe)&&(Q=!0),At&&Afe(pe)&&(ie=!0),At&&Y.type===14&&(Y=Y.arguments[0]),Y.type===20||(Y.type===4||Y.type===8)&&Js(Y,t)>0)return;pe==="ref"?L=!0:pe==="class"?W=!0:pe==="style"?X=!0:pe!=="key"&&!be.includes(pe)&&be.push(pe),i&&(pe==="class"||pe==="style")&&!be.includes(pe)&&be.push(pe)}else ae=!0};for(let ve=0;vext.content==="prop")&&(q|=32);const Et=t.directiveTransforms[pe];if(Et){const{props:xt,needRuntime:it}=Et(Y,n,t);!p&&xt.forEach(K),ir&&At&&!Ns(At)?Ge(si(xt,b)):E.push(...xt),it&&(A.push(Y),yc(it)&&M1e.set(Y,it))}else sge(pe)||(A.push(Y),O&&(I=!0))}}let se;if(S.length?(Ge(),S.length>1?se=mn(t.helper(oy),S,b):se=S[0]):E.length&&(se=si(lhe(E),b)),ae?q|=16:(W&&!i&&(q|=2),X&&!i&&(q|=4),be.length&&(q|=8),Q&&(q|=32)),!I&&(q===0||q===32)&&(L||ie||A.length>0)&&(q|=512),!t.inSSR&&se)switch(se.type){case 15:let ve=-1,Y=-1,pe=!1;for(let yt=0;yten(m,p)),u))}return kd(a,n.loc)}function y3t(n){let t="[";for(let a=0,i=n.length;a{if(fy(n)){const{children:a,loc:i}=n,{slotName:u,slotProps:p}=q1e(n,t),m=[t.prefixIdentifiers?"_ctx.$slots":"$slots",u,"{}","undefined","true"];let b=2;p&&(m[2]=p,b=3),a.length&&(m[3]=dc([],a,!1,!1,i),b=4),t.scopeId&&!t.slotted&&(b=5),m.splice(b),n.codegenNode=mn(t.helper(Tk),m,i)}};function q1e(n,t){let a='"default"',i;const u=[];for(let p=0;p0){const{props:p,directives:m}=uL(n,t,u,!1,!1);i=p,m.length&&t.onError(_a(36,m[0].loc))}return{slotName:a,slotProps:i}}const cL=(n,t,a,i)=>{const{loc:u,modifiers:p,arg:m}=n;!n.exp&&!p.length&&a.onError(_a(35,u));let b;if(m.type===4)if(m.isStatic){let A=m.content;A.startsWith("vnode")&&a.onError(_a(51,m.loc)),A.startsWith("vue:")&&(A=`vnode-${A.slice(4)}`);const O=t.tagType!==0||A.startsWith("vnode")||!/[A-Z]/.test(A)?j5t(Xs(A)):`on:${A}`;b=Mr(O,!0,m.loc)}else b=Os([`${a.helperString(db)}(`,m,")"]);else b=m,b.children.unshift(`${a.helperString(db)}(`),b.children.push(")");let v=n.exp;v&&!v.content.trim()&&(v=void 0);let E=a.cacheHandlers&&!v&&!a.inVOnce;if(v){const A=Jk(v,a),O=!(A||Yge(v,a)),I=v.content.includes(";");a.prefixIdentifiers&&(O&&a.addIdentifiers("$event"),v=n.exp=os(v,a,!1,I),O&&a.removeIdentifiers("$event"),E=a.cacheHandlers&&!a.inVOnce&&!(v.type===4&&v.constType>0)&&!(A&&t.tagType===1)&&!Hs(v,a.identifiers),E&&A&&(v.type===4?v.content=`${v.content} && ${v.content}(...args)`:v.children=[...v.children," && ",...v.children,"(...args)"])),(O||E&&A)&&(v=Os([`${O?a.isTS?"($event: any)":"$event":`${a.isTS?` //@ts-ignore `:""}(...args)`} => ${I?"{":"("}`,v,I?"}":")"]))}let S={props:[en(b,v||Mr("() => {}",!1,u))]};return i&&(S=i(S)),E&&(S.props[0].value=a.cache(S.props[0].value)),S.props.forEach(A=>A.key.isHandlerKey=!0),S},v3t=(n,t)=>{if(n.type===0||n.type===1||n.type===11||n.type===10)return()=>{const a=n.children;let i,u=!1;for(let p=0;pp.type===7&&!t.directiveTransforms[p.name]))))for(let p=0;p{if(n.type===1&&Cs(n,"once",!0))return dhe.has(n)||t.inVOnce||t.inSSR?void 0:(dhe.add(n),t.inVOnce=!0,t.helper(ly),()=>{t.inVOnce=!1;const a=t.currentNode;a.codegenNode&&(a.codegenNode=t.cache(a.codegenNode,!0))})},pL=(n,t,a)=>{const{exp:i,arg:u}=n;if(!i)return a.onError(_a(41,n.loc)),Mm();const p=i.loc.source.trim(),m=i.type===4?i.content:p,b=a.bindingMetadata[p];if(b==="props"||b==="props-aliased")return a.onError(_a(44,i.loc)),Mm();const v=a.inline&&(b==="setup-let"||b==="setup-ref"||b==="setup-maybe-ref");if(!m.trim()||!Jk(i,a)&&!v)return a.onError(_a(42,i.loc)),Mm();if(a.prefixIdentifiers&&_l(m)&&a.identifiers[m])return a.onError(_a(43,i.loc)),Mm();const E=u||Mr("modelValue",!0),S=u?Ns(u)?`onUpdate:${Xs(u.content)}`:Os(['"onUpdate:" + ',u]):"onUpdate:modelValue";let A;const O=a.isTS?"($event: any)":"$event";if(v)if(b==="setup-ref")A=Os([`${O} => ((`,Mr(p,!1,i.loc),").value = $event)"]);else{const q=b==="setup-let"?`${p} = $event`:"null";A=Os([`${O} => (${a.helperString(uy)}(${p}) ? (`,Mr(p,!1,i.loc),`).value = $event : ${q})`])}else A=Os([`${O} => ((`,i,") = $event)"]);const I=[en(E,n.exp),en(S,A)];if(a.prefixIdentifiers&&!a.inVOnce&&a.cacheHandlers&&!Hs(i,a.identifiers)&&(I[1].value=a.cache(I[1].value)),n.modifiers.length&&t.tagType===1){const q=n.modifiers.map(W=>W.content).map(W=>(_l(W)?W:JSON.stringify(W))+": true").join(", "),L=u?Ns(u)?`${u.content}Modifiers`:Os([u,' + "Modifiers"']):"modelModifiers";I.push(en(L,Mr(`{ ${q} }`,!1,n.loc,2)))}return Mm(I)};function Mm(n=[]){return{props:n}}const uhe=new WeakSet,x3t=(n,t)=>{if(n.type===1){const a=Cs(n,"memo");return!a||uhe.has(n)?void 0:(uhe.add(n),()=>{const i=n.codegenNode||t.currentNode.codegenNode;i&&i.type===13&&(n.tagType!==1&&k6(i,t),n.codegenNode=mn(t.helper(D6),[a.exp,dc(void 0,i),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function fL(n){return[[b3t,d3t,x3t,p3t,...n?[D1e,I1e]:[],g3t,B1e,N1e,v3t],{on:cL,bind:j1e,model:pL}]}function U1e(n,t={}){const a=t.onError||Ck,i=t.mode==="module",u=t.prefixIdentifiers===!0||i;!u&&t.cacheHandlers&&a(_a(49)),t.scopeId&&!i&&a(_a(50));const p=Cl({},t,{prefixIdentifiers:u}),m=ja(n)?eL(n,p):n,[b,v]=fL(u);if(t.isTS){const{expressionPlugins:E}=t;(!E||!E.includes("typescript"))&&(t.expressionPlugins=[...E||[],"typescript"])}return c1e(m,Cl({},p,{nodeTransforms:[...b,...t.nodeTransforms||[]],directiveTransforms:Cl({},v,t.directiveTransforms||{})})),S1e(m,p)}const R3t={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},V1e=()=>({props:[]}),hL=Symbol("vModelRadio"),mL=Symbol("vModelCheckbox"),yL=Symbol("vModelText"),gL=Symbol("vModelSelect"),vb=Symbol("vModelDynamic"),vL=Symbol("vOnModifiersGuard"),bL=Symbol("vOnKeysGuard"),xL=Symbol("vShow"),V6=Symbol("Transition"),RL=Symbol("TransitionGroup");Ak({[hL]:"vModelRadio",[mL]:"vModelCheckbox",[yL]:"vModelText",[gL]:"vModelSelect",[vb]:"vModelDynamic",[vL]:"withModifiers",[bL]:"withKeys",[xL]:"vShow",[V6]:"Transition",[RL]:"TransitionGroup"});const gy={parseMode:"html",isVoidTag:uge,isNativeTag:n=>W5t(n)||G5t(n)||K5t(n),isPreTag:n=>n==="pre",isIgnoreNewlineTag:n=>n==="pre"||n==="textarea",decodeEntities:void 0,isBuiltInComponent:n=>{if(n==="Transition"||n==="transition")return V6;if(n==="TransitionGroup"||n==="transition-group")return RL},getNamespace(n,t,a){let i=t?t.ns:a;if(t&&i===2)if(t.tag==="annotation-xml"){if(n==="svg")return 1;t.props.some(u=>u.type===6&&u.name==="encoding"&&u.value!=null&&(u.value.content==="text/html"||u.value.content==="application/xhtml+xml"))&&(i=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&n!=="mglyph"&&n!=="malignmark"&&(i=0);else t&&i===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(i=0);if(i===0){if(n==="svg")return 1;if(n==="math")return 2}return i}},W1e=n=>{n.type===1&&n.props.forEach((t,a)=>{t.type===6&&t.name==="style"&&t.value&&(n.props[a]={type:7,name:"bind",arg:Mr("style",!0,t.loc),exp:E3t(t.value.content,t.loc),modifiers:[],loc:t.loc})})},E3t=(n,t)=>{const a=lge(n);return Mr(JSON.stringify(a),!1,t,3)};function Ni(n,t){return _a(n,t,EL)}const S3t={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},EL={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on ,