sveld 0.36.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/browser.js CHANGED
@@ -1,204 +1,204 @@
1
- var t4=Object.defineProperty;var e4=(q)=>q;function q3(q,Q){this[q]=e4.bind(null,Q)}var Q3=(q,Q)=>{for(var Z in Q)t4(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:q3.bind(Q,Z)})};function Z3(q){return q}class a1{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,Q,Z,Y){if(q&&Q)if(Z!=null)q[Q][Z]=Y;else q[Q]=Y}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class a0 extends a1{constructor(q,Q){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z},this.enter=q,this.leave=Q}visit(q,Q,Z,Y){if(q){if(this.enter){let V=this.should_skip,K=this.should_remove,W=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let G=this.should_skip,R=this.should_remove;if(this.should_skip=V,this.should_remove=K,this.replacement=W,G)return q;if(R)return null}let H;for(H in q){let V=q[H];if(V&&typeof V==="object"){if(Array.isArray(V)){let K=V;for(let W=0;W<K.length;W+=1){let G=K[W];if(_6(G)){if(!this.visit(G,q,H,W))W--}}}else if(_6(V))this.visit(V,q,H,null)}}if(this.leave){let V=this.replacement,K=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,Y),this.replacement)q=this.replacement,this.replace(Q,Z,Y,q);if(this.should_remove)this.remove(Q,Z,Y);let W=this.should_remove;if(this.replacement=V,this.should_remove=K,W)return null}}return q}}function _6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function d8(q,{enter:Q,leave:Z}){return new a0(Q,Z).visit(q,null)}function f8(q){return typeof q==="object"&&q!==null}function x6(q){return f8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function K1(q){return f8(q)&&q.type==="Literal"}function u8(q){return f8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function u6(q){return f8(q)&&q.type==="MemberExpression"}function r1(q){return f8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function Y3(q){return f8(q)&&q.type==="CallExpression"}function m8(q,Q){if(!Y3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function e8(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e8(q.expression);return q}function m6(q){if(f8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function H3(q){return f8(q)&&q.type==="NewExpression"}function r0(q,Q){if(!H3(q))return!1;return!!q.callee&&f8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var l6={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function J3(q){return q in l6}function c6(q){if(J3(q))return l6[q];return"HTMLElement"}var t1=Symbol("sveld.parsedComponentTypeScriptMetadata");function t0(q){return q[t1]}var K3=/\w/;function V3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let Y=Z.slice(1,-1),H=[],V=0,K="";for(let W of Y)if(W==="{"||W==="<"||W==="("||W==="[")V++,K+=W;else if(W==="}"||W===">"||W===")"||W==="]")V--,K+=W;else if((W===";"||W===",")&&V===0)H.push(K.trim()),K="";else K+=W;if(K.trim())H.push(K.trim());for(let W of H){if(!W.startsWith(Q))continue;let G=W.slice(Q.length);if(G.length>0&&K3.test(G[0]))continue;let R=G.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function e1(q,Q,Z){let Y=Z;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let H=Y.object.name,V=Y.property.name;if(!H||!V)return;if(q.wholePropsLocals.has(H))return Q.getPropTypeByLocalOrPublic(V);let K=Q.getPropTypeByLocalOrPublic(H)??Q.findVariableTypeAndDescription(H)?.type;if(!K)return;return V3(K,V)}function e0(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,explicitVariableTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map,variableInfoCacheBuilt:!1}}function p8(q,Q,Z,Y,H){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:Y,...H?{source:H}:{}})}var X3=/[\r\n]+/g;function W3(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Q=[0];if(q.source){for(let Z=0;Z<q.source.length;Z++)if(q.source[Z]===`
2
- `)Q.push(Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function i6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=W3(q),Y=0,H=Z.length-1;while(Y<=H){let V=Math.floor((Y+H)/2),K=Z[V],W=Z[V+1]??Number.POSITIVE_INFINITY;if(Q<K)H=V-1;else if(Q>=W)Y=V+1;else return{line:V+1,column:Q-K}}return}function q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let Y=i6(q,Q),H=i6(q,Z);if(!Y||!H)return;return{start:Y,end:H}}function V8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return q0(q,Z,Y)}function q9(q,Q,Z,Y){if(!Z||Z.length===0||Y===void 0)return;let H=[...Z];while(H.length>1){let M=H[H.length-1];if(M.tokens.tag||!M.source.trim().endsWith("*/"))break;H.pop()}let V=Y;for(let M=0;M<H[0].number-1;M++)V+=Q[M]?.source.length??0,V+=1;let K=H[0],W=K.source.indexOf(K.tokens.tag??""),G=V+Math.max(W,0),R=Y,O=H[H.length-1],$=O.number;for(let M=0;M<$-1;M++)R+=Q[M]?.source.length??0,R+=1;return R+=O.source.length,q0(q,G,R)}function J8(q,Q,Z){return q.source?.slice(Q,Z)}function d6(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,Y="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.replace(X3," ")}function I8(q){return q===void 0||q===""?void 0:q}var G3=/[\r\n]+/g;function w1(q,Q,Z,Y){if(I8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let H=Q.props.get(Z);Q.props.set(Z,{...H,...Y})}else Q.props.set(Z,Y)}function V1(q,Q,Z,Y=0){let H,V,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:H,type:V,isFunction:K};let W=F3(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)?.replace(G3," ");if(V=H,K=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let R=Z;if(R.left&&typeof R.left==="object"&&"type"in R.left&&R.left.type==="Literal"&&"value"in R.left&&typeof R.left.value==="string")V="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")V=o6(Z),H=void 0}else if(Z.type==="UnaryExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(G.argument){if(typeof G.argument==="object"&&"type"in G.argument&&G.argument.type==="UnaryExpression")V=V1(q,Q,G.argument).type;else if(typeof G.argument==="object"&&"value"in G.argument)V=typeof G.argument.value}}else if(Z.type==="NewExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(G.callee&&typeof G.callee==="object"&&"type"in G.callee&&G.callee.type==="Identifier"){let R=G.callee.name;if(R==="Date")V="Date";else if(R==="Map")V="Map<any, any>";else if(R==="Set")V="Set<any>";else if(R==="WeakMap")V="WeakMap<object, any>";else if(R==="WeakSet")V="WeakSet<object>";else if(R==="Array")V="any[]";else if(R==="RegExp"||R==="Regexp")V="RegExp";else if(R==="Error")V="Error";else V=R}}else if(Z.type==="CallExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)}else if(Z.type==="Identifier"){let G=Z;if(Y<5){let R=z3(Q,G.name);if(R){let O=V1(q,Q,R,Y+1),$=q.resolveLocalVarJSDoc(G.name);return{...O,resolvedType:$?.type??O.resolvedType,resolvedDescription:$?.description??O.resolvedDescription,resolvedParams:$?.params??O.resolvedParams,resolvedReturnType:$?.returnType??O.resolvedReturnType}}if(Q.funcDecls.has(G.name)){let O=q.resolveLocalVarJSDoc(G.name),$=Q.funcDecls.get(G.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:O?.type??j3(O,$),resolvedDescription:O?.description,resolvedParams:O?.params,resolvedReturnType:O?.returnType}}}if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end)}else if(Z.type==="MemberExpression"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);if(q.isNumericConstant(Z))V="number"}else if(Z.type==="TemplateLiteral"){let G=Z;if("start"in G&&"end"in G&&typeof G.start==="number"&&typeof G.end==="number")H=J8(Q,G.start,G.end);V="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(H=Z.raw,"value"in Z)V=Z.value==null?void 0:typeof Z.value}return{value:H,type:V,isFunction:K,defaultValue:W}}function z3(q,Q){for(let Z of q.vars)for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init;return}function p6(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let Y of Z.declarations)if(Y.id&&typeof Y.id==="object"&&"type"in Y.id&&Y.id.type==="Identifier"&&"name"in Y.id&&Y.id.name===Q&&Y.init)return Y.init}return}function j3(q,Q){let Z=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((V)=>`${V.name}${V.optional?"?":""}: ${V.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return o6(Q);return"(...args: any[]) => any"}function o6(q){return`(${O3(q)}) => ${U3(q)}`}function O3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let Y of Q)if(Y&&typeof Y==="object"&&"type"in Y&&Y.type==="Identifier"&&"name"in Y&&typeof Y.name==="string")Z.push(`${Y.name}: any`);else return"...args: any[]";return Z.join(", ")}function U3(q){if(q.async||q.generator)return"any";let Q=q.body,Z;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="BlockStatement"){if(Z=R3(Q),Z.length===0)return"any"}else Z=[Q];let Y=null;for(let H of Z){let V=B3(H);if(!V)return"any";if(Y===null)Y=V;else if(Y!==V)return"any"}return Y??"any"}function R3(q){let Q=[];return d8(q,{enter(Z){if(Z.type==="FunctionDeclaration"||Z.type==="FunctionExpression"||Z.type==="ArrowFunctionExpression"){this.skip();return}if(Z.type==="ReturnStatement")Q.push(Z.argument??null)}}),Q}function B3(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let Q=q.value;if(typeof Q==="string")return"string";if(typeof Q==="number")return"number";if(typeof Q==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let Q=q.callee;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="Identifier"){let Z=Q.name;if(Z==="String")return"string";if(Z==="Number")return"number";if(Z==="Boolean")return"boolean"}return null}default:return null}}function n6(q){if(m8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function F3(q,Q,Z){let Y=d6(Q,Z);if(!Y||!Z||typeof Z!=="object"||!("type"in Z))return;let H="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")H="literal";else if(Z.type==="TemplateLiteral")H=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")H="array";else if(Z.type==="ObjectExpression")H="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")H="function";let V={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let K=Q9(q,Z);if(K.ok)V.value=K.value}return V}function Q9(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return{ok:!1};if(Q.type==="Literal"){let Z=Q.value;return typeof Z==="bigint"?{ok:!1}:{ok:!0,value:Z}}if(Q.type==="UnaryExpression"){let Z=Q,Y=Z.argument;if(!Y||typeof Y!=="object"||!("type"in Y)||Y.type!=="Literal")return{ok:!1};let H=Y.value;if(typeof H==="number"){if(Z.operator==="-")return{ok:!0,value:-H};if(Z.operator==="+")return{ok:!0,value:H}}if(typeof H==="boolean"&&Z.operator==="!")return{ok:!0,value:!H};return{ok:!1}}if(Q.type==="TemplateLiteral"){let Z=Q;if(Z.expressions.length>0||Z.quasis.length!==1)return{ok:!1};return{ok:!0,value:Z.quasis[0].value.cooked??Z.quasis[0].value.raw}}if(Q.type==="ArrayExpression"){let Z=Q,Y=[];for(let H of Z.elements){if(!H)return{ok:!1};let V=Q9(q,H);if(!V.ok)return{ok:!1};Y.push(V.value)}return{ok:!0,value:Y}}if(Q.type==="ObjectExpression"){let Z=Q,Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)return{ok:!1};let V=q.getPropertyName(H.key);if(!V)return{ok:!1};let K=Q9(q,H.value);if(!K.ok)return{ok:!1};Y[V]=K.value}return{ok:!0,value:Y}}return{ok:!1}}var M3=/[-_.:/\s]+/;function Z9(q){return`${q.split(M3).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function $3(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let H=[];if(!r1(Z))return null;let V=Z;for(let K of V.properties){if(K.type!=="Property")continue;let W=Q.getPropertyName(K.key);if(!W)continue;let G="any",R;if(u8(K.value)){let O=K.value.name,$=Q.findVariableTypeAndDescription(O);if($)G=$.type,R=$.description;else p8(q,"context-any-type",W,`Context "${Y}" property "${W}" has no type annotation; defaulted to "any".`,V8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))G=`(${K.value.params?.map((M)=>{if(u8(M))return`${M.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(K1(K.value))G=K.value.value==null?"null":typeof K.value.value;H.push({name:W,type:G,description:R,optional:!1})}return{key:Y,typeName:Z9(Y),properties:H,description:void 0}}else if(u8(Z)){let H=Z.name,V=Q.findVariableTypeAndDescription(H);if(V)return{key:Y,typeName:Z9(Y),properties:[{name:H,type:V.type,description:V.description,optional:!1}]};return p8(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,V8(q,Z)),{key:Y,typeName:Z9(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function s6(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",Y=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!Y)return null;let H=q.arguments[0];if(!H||typeof H!=="object"||!("type"in H))return"";if(H.type==="Literal"&&typeof H.value==="string")return H.value;if(H.type==="TemplateLiteral"&&H.quasis?.length===1)return H.quasis[0].value.cooked??"";return""}function a6(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Y=Q;if(Y.type==="Literal")return typeof Y.value==="string"?Y.value:Y.value==null?null:String(Y.value);if(Y.type==="TemplateLiteral"){if(Y.quasis?.length===1){let H=Y.quasis[0].value.cooked;return H==null?null:H}return null}if(Y.type==="CallExpression"||Y.type==="NewExpression")return s6(Y);if(Y.type==="Identifier"){if(Z>=5)return null;let H=p6(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let V=H;if((V.type==="CallExpression"||V.type==="NewExpression")&&s6(V)==="")return Y.name;return a6(q,V,Z+1)}return null}return null}function r6(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let H=Z,V=H.arguments[0];if(!V)return;let K=a6(q,V);if(!K){let R=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${R}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let W=H.arguments[1];if(!W)return;let G=$3(q,Q,W,K);if(G&&!q.contexts.has(K))q.contexts.set(K,G)}function Y9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function I1(q,{name:Q,detail:Z,has_argument:Y,description:H,deprecated:V,tags:K,source:W}){if(Q===void 0)return;let G=!Y&&!Z?"null":I8(Z),R=H,O=q.events.get(Q);if(O?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:G,description:R||O.description,deprecated:V??O.deprecated,tags:K??O.tags,source:W||O.source});else if(O){let $=O.tags??K;q.events.set(Q,{...O,detail:O.detail===void 0?G:O.detail,description:O.description||R,deprecated:O.deprecated??V,tags:$,source:W||O.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:G,description:R,deprecated:V,tags:K,source:W})}function t6(q,Q){let Z=Q.arguments[0],Y=r0(Z,"CustomEvent");if(!Y&&!r0(Z,"Event"))return;let H=Z.arguments[0],V=K1(H)?H.value:void 0;if(V==null)return;let K=Y?Z.arguments[1]:void 0,W=!1,G;if(r1(K)){let R=K.properties.find((O)=>O.type==="Property"&&u8(O.key)&&O.key.name==="detail");if(R?.type==="Property")W=!0,G=K1(R.value)?R.value.value:void 0}return I1(q,{name:String(V),detail:G==null?"":Y9(G),has_argument:W,source:V8(q,Q)}),String(V)}function H9(q,Q,Z=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:V,description:K,optional:W,default:G})=>{let R=W?"?":"",O=K||"";if(G&&O)O=`${O} @default ${G}`;else if(G)O=`@default ${G}`;if(O){if(Z)return`/** ${O} */
3
- ${H}${R}: ${V};`;return`/** ${O} */ ${H}${R}: ${V};`}return`${H}${R}: ${V};`}).join(Z?`
1
+ var e4=Object.defineProperty;var q3=(q)=>q;function Q3(q,Q){this[q]=q3.bind(null,Q)}var Z3=(q,Q)=>{for(var Z in Q)e4(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:Q3.bind(Q,Z)})};function j3(q){return q}class a1{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(q)=>this.replacement=q}}replace(q,Q,Z,j){if(q&&Q)if(Z!=null)q[Q][Z]=j;else q[Q]=j}remove(q,Q,Z){if(q&&Q)if(Z!==null&&Z!==void 0)q[Q].splice(Z,1);else delete q[Q]}}class a0 extends a1{constructor(q,Q){super();this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:(Z)=>this.replacement=Z},this.enter=q,this.leave=Q}visit(q,Q,Z,j){if(q){if(this.enter){let K=this.should_skip,J=this.should_remove,X=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let W=this.should_skip,R=this.should_remove;if(this.should_skip=K,this.should_remove=J,this.replacement=X,W)return q;if(R)return null}let Y;for(Y in q){let K=q[Y];if(K&&typeof K==="object"){if(Array.isArray(K)){let J=K;for(let X=0;X<J.length;X+=1){let W=J[X];if(x6(W)){if(!this.visit(W,q,Y,X))X--}}}else if(x6(K))this.visit(K,q,Y,null)}}if(this.leave){let K=this.replacement,J=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,q,Q,Z,j),this.replacement)q=this.replacement,this.replace(Q,Z,j,q);if(this.should_remove)this.remove(Q,Z,j);let X=this.should_remove;if(this.replacement=K,this.should_remove=J,X)return null}}return q}}function x6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function d8(q,{enter:Q,leave:Z}){return new a0(Q,Z).visit(q,null)}function h8(q){return typeof q==="object"&&q!==null}function u6(q){return h8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function J1(q){return h8(q)&&q.type==="Literal"}function u8(q){return h8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function m6(q){return h8(q)&&q.type==="MemberExpression"}function r1(q){return h8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function Y3(q){return h8(q)&&q.type==="CallExpression"}function m8(q,Q){if(!Y3(q))return!1;return!!q.callee&&h8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function e8(q){if(h8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return e8(q.expression);return q}function l6(q){if(h8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function H3(q){return h8(q)&&q.type==="NewExpression"}function r0(q,Q){if(!H3(q))return!1;return!!q.callee&&h8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var c6={a:"HTMLAnchorElement",abbr:"HTMLElement",address:"HTMLElement",applet:"HTMLUnknownElement",area:"HTMLAreaElement",article:"HTMLElement",aside:"HTMLElement",audio:"HTMLAudioElement",b:"HTMLElement",base:"HTMLBaseElement",basefont:"HTMLElement",bdi:"HTMLElement",bdo:"HTMLElement",blockquote:"HTMLQuoteElement",body:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElement",cite:"HTMLElement",code:"HTMLElement",col:"HTMLTableColElement",colgroup:"HTMLTableColElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",dd:"HTMLElement",del:"HTMLModElement",details:"HTMLDetailsElement",dfn:"HTMLElement",dialog:"HTMLDialogElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",dt:"HTMLElement",em:"HTMLElement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",figcaption:"HTMLElement",figure:"HTMLElement",font:"HTMLFontElement",footer:"HTMLElement",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",h2:"HTMLHeadingElement",h3:"HTMLHeadingElement",h4:"HTMLHeadingElement",h5:"HTMLHeadingElement",h6:"HTMLHeadingElement",head:"HTMLHeadElement",header:"HTMLElement",hgroup:"HTMLElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",i:"HTMLElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInputElement",ins:"HTMLModElement",kbd:"HTMLElement",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkElement",main:"HTMLElement",map:"HTMLMapElement",mark:"HTMLElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",nav:"HTMLElement",noscript:"HTMLElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",picture:"HTMLPictureElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",rp:"HTMLElement",rt:"HTMLElement",ruby:"HTMLElement",s:"HTMLElement",samp:"HTMLElement",script:"HTMLScriptElement",search:"HTMLElement",section:"HTMLElement",select:"HTMLSelectElement",slot:"HTMLSlotElement",small:"HTMLElement",source:"HTMLSourceElement",span:"HTMLSpanElement",strong:"HTMLElement",style:"HTMLStyleElement",sub:"HTMLElement",summary:"HTMLElement",sup:"HTMLElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",td:"HTMLTableCellElement",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",tfoot:"HTMLTableSectionElement",th:"HTMLTableCellElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",u:"HTMLElement",ul:"HTMLUListElement",var:"HTMLElement",video:"HTMLVideoElement",wbr:"HTMLElement"};function J3(q){return q in c6}function i6(q){if(J3(q))return c6[q];return"HTMLElement"}var t1=Symbol("sveld.parsedComponentTypeScriptMetadata");function t0(q){return q[t1]}var K3=/\w/;function V3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let j=Z.slice(1,-1),Y=[],K=0,J="";for(let X of j)if(X==="{"||X==="<"||X==="("||X==="[")K++,J+=X;else if(X==="}"||X===">"||X===")"||X==="]")K--,J+=X;else if((X===";"||X===",")&&K===0)Y.push(J.trim()),J="";else J+=X;if(J.trim())Y.push(J.trim());for(let X of Y){if(!X.startsWith(Q))continue;let W=X.slice(Q.length);if(W.length>0&&K3.test(W[0]))continue;let R=W.trimStart();if(R.startsWith("?"))R=R.slice(1).trimStart();if(R.startsWith(":"))return R.slice(1).trim()}return}function e1(q,Q,Z){let j=Z;if(j.computed||j.object?.type!=="Identifier"||j.property?.type!=="Identifier")return;let Y=j.object.name,K=j.property.name;if(!Y||!K)return;if(q.wholePropsLocals.has(Y))return Q.getPropTypeByLocalOrPublic(K);let J=Q.getPropTypeByLocalOrPublic(Y)??Q.findVariableTypeAndDescription(Y)?.type;if(!J)return;return V3(J,K)}function e0(){return{syntaxMode:"legacy",scriptLanguage:void 0,source:void 0,parsed:void 0,runesOptionOverride:void 0,sourceLineStartOffsetsCache:void 0,rest_props:void 0,extends:void 0,customElementTag:void 0,componentComment:void 0,componentCommentSource:void 0,generics:null,scriptGenericsAttribute:void 0,diagnosticRecords:[],componentFilePath:"",props:new Map,moduleExports:new Map,propLocalToPublicName:new Map,reactive_vars:new Set,funcDecls:new Map,vars:new Set,runesPropsDeclarationMetadataByDeclaratorStart:new Map,typedRunesPropsDeclarations:[],explicitPropTypesByName:new Map,explicitVariableTypesByName:new Map,typeImportBindingsByLocalName:new Map,localTypeDeclarationsByName:new Map,wholePropsLocals:new Set,restPropLocals:new Set,componentScope:new Map,scopeDeclarations:new WeakMap,activeScopes:[],slots:new Map,snippetPropLocals:new Set,deferredSlotBlockGenerics:[],events:new Map,eventDescriptions:new Map,forwardedEvents:new Map,jsDocEventNames:new Set,jsDocEventSources:new Map,bindings:new Map,contexts:new Map,typedefs:new Map,variableInfoCache:new Map,variableInfoCacheBuilt:!1}}function p8(q,Q,Z,j,Y){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:j,...Y?{source:Y}:{}})}var X3=/[\r\n]+/g;function W3(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Q=[0];if(q.source){for(let Z=0;Z<q.source.length;Z++)if(q.source[Z]===`
2
+ `)Q.push(Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function d6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=W3(q),j=0,Y=Z.length-1;while(j<=Y){let K=Math.floor((j+Y)/2),J=Z[K],X=Z[K+1]??Number.POSITIVE_INFINITY;if(Q<J)Y=K-1;else if(Q>=X)j=K+1;else return{line:K+1,column:Q-J}}return}function q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let j=d6(q,Q),Y=d6(q,Z);if(!j||!Y)return;return{start:j,end:Y}}function K8(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;return q0(q,Z,j)}function q9(q,Q,Z,j){if(!Z||Z.length===0||j===void 0)return;let Y=[...Z];while(Y.length>1){let $=Y[Y.length-1];if($.tokens.tag||!$.source.trim().endsWith("*/"))break;Y.pop()}let K=j;for(let $=0;$<Y[0].number-1;$++)K+=Q[$]?.source.length??0,K+=1;let J=Y[0],X=J.source.indexOf(J.tokens.tag??""),W=K+Math.max(X,0),R=j,O=Y[Y.length-1],M=O.number;for(let $=0;$<M-1;$++)R+=Q[$]?.source.length??0,R+=1;return R+=O.source.length,q0(q,W,R)}function H8(q,Q,Z){return q.source?.slice(Q,Z)}function p6(q,Q){if(!Q||typeof Q!=="object")return;let Z="start"in Q&&typeof Q.start==="number"?Q.start:void 0,j="end"in Q&&typeof Q.end==="number"?Q.end:void 0;if(Z===void 0||j===void 0)return;return H8(q,Z,j)?.replace(X3," ")}function I8(q){return q===void 0||q===""?void 0:q}var z3=/[\r\n]+/g;function A1(q,Q,Z,j){if(I8(Z)===void 0)return;if(q.trackPropLocalName(Z),Q.props.has(Z)){let Y=Q.props.get(Z);Q.props.set(Z,{...Y,...j})}else Q.props.set(Z,j)}function K1(q,Q,Z,j=0){let Y,K,J=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:Y,type:K,isFunction:J};let X=M3(q,Q,Z);if(Z.type==="ObjectExpression"||Z.type==="BinaryExpression"||Z.type==="ArrayExpression"||Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end)?.replace(z3," ");if(K=Y,J=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let R=Z;if(R.left&&typeof R.left==="object"&&"type"in R.left&&R.left.type==="Literal"&&"value"in R.left&&typeof R.left.value==="string")K="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")K=n6(Z),Y=void 0}else if(Z.type==="UnaryExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end);if(W.argument){if(typeof W.argument==="object"&&"type"in W.argument&&W.argument.type==="UnaryExpression")K=K1(q,Q,W.argument).type;else if(typeof W.argument==="object"&&"value"in W.argument)K=typeof W.argument.value}}else if(Z.type==="NewExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end);if(W.callee&&typeof W.callee==="object"&&"type"in W.callee&&W.callee.type==="Identifier"){let R=W.callee.name;if(R==="Date")K="Date";else if(R==="Map")K="Map<any, any>";else if(R==="Set")K="Set<any>";else if(R==="WeakMap")K="WeakMap<object, any>";else if(R==="WeakSet")K="WeakSet<object>";else if(R==="Array")K="any[]";else if(R==="RegExp"||R==="Regexp")K="RegExp";else if(R==="Error")K="Error";else K=R}}else if(Z.type==="CallExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end)}else if(Z.type==="Identifier"){let W=Z;if(j<5){let R=G3(Q,W.name);if(R){let O=K1(q,Q,R,j+1),M=q.resolveLocalVarJSDoc(W.name);return{...O,resolvedType:M?.type??O.resolvedType,resolvedDescription:M?.description??O.resolvedDescription,resolvedParams:M?.params??O.resolvedParams,resolvedReturnType:M?.returnType??O.resolvedReturnType}}if(Q.funcDecls.has(W.name)){let O=q.resolveLocalVarJSDoc(W.name),M=Q.funcDecls.get(W.name);return{value:void 0,type:void 0,isFunction:!0,resolvedType:O?.type??O3(O,M),resolvedDescription:O?.description,resolvedParams:O?.params,resolvedReturnType:O?.returnType}}}if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end)}else if(Z.type==="MemberExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end);if(q.isNumericConstant(Z))K="number"}else if(Z.type==="TemplateLiteral"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")Y=H8(Q,W.start,W.end);K="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(Y=Z.raw,"value"in Z)K=Z.value==null?void 0:typeof Z.value}return{value:Y,type:K,isFunction:J,defaultValue:X}}function G3(q,Q){for(let Z of q.vars)for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init;return}function o6(q,Q){for(let Z of q.vars){if(Z.kind!=="const")continue;for(let j of Z.declarations)if(j.id&&typeof j.id==="object"&&"type"in j.id&&j.id.type==="Identifier"&&"name"in j.id&&j.id.name===Q&&j.init)return j.init}return}function O3(q,Q){let Z=q?.returnType??"any",j=q?.params;if(j&&j.length>0)return`(${j.map((K)=>`${K.name}${K.optional?"?":""}: ${K.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return n6(Q);return"(...args: any[]) => any"}function n6(q){return`(${U3(q)}) => ${R3(q)}`}function U3(q){let Q=q.params;if(!Array.isArray(Q)||Q.length===0)return"...args: any[]";let Z=[];for(let j of Q)if(j&&typeof j==="object"&&"type"in j&&j.type==="Identifier"&&"name"in j&&typeof j.name==="string")Z.push(`${j.name}: any`);else return"...args: any[]";return Z.join(", ")}function R3(q){if(q.async||q.generator)return"any";let Q=q.body,Z;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="BlockStatement"){if(Z=B3(Q),Z.length===0)return"any"}else Z=[Q];let j=null;for(let Y of Z){let K=F3(Y);if(!K)return"any";if(j===null)j=K;else if(j!==K)return"any"}return j??"any"}function B3(q){let Q=[];return d8(q,{enter(Z){if(Z.type==="FunctionDeclaration"||Z.type==="FunctionExpression"||Z.type==="ArrowFunctionExpression"){this.skip();return}if(Z.type==="ReturnStatement")Q.push(Z.argument??null)}}),Q}function F3(q){if(!q||typeof q!=="object"||!("type"in q))return null;switch(q.type){case"Literal":{let Q=q.value;if(typeof Q==="string")return"string";if(typeof Q==="number")return"number";if(typeof Q==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let Q=q.callee;if(Q&&typeof Q==="object"&&"type"in Q&&Q.type==="Identifier"){let Z=Q.name;if(Z==="String")return"string";if(Z==="Number")return"number";if(Z==="Boolean")return"boolean"}return null}default:return null}}function s6(q){if(m8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function M3(q,Q,Z){let j=p6(Q,Z);if(!j||!Z||typeof Z!=="object"||!("type"in Z))return;let Y="expression";if(Z.type==="Literal"||Z.type==="UnaryExpression")Y="literal";else if(Z.type==="TemplateLiteral")Y=Z.expressions.length===0?"literal":"expression";else if(Z.type==="ArrayExpression")Y="array";else if(Z.type==="ObjectExpression")Y="object";else if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")Y="function";let K={raw:j,kind:Y};if(Y==="literal"||Y==="array"||Y==="object"){let J=Q9(q,Z);if(J.ok)K.value=J.value}return K}function Q9(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return{ok:!1};if(Q.type==="Literal"){let Z=Q.value;return typeof Z==="bigint"?{ok:!1}:{ok:!0,value:Z}}if(Q.type==="UnaryExpression"){let Z=Q,j=Z.argument;if(!j||typeof j!=="object"||!("type"in j)||j.type!=="Literal")return{ok:!1};let Y=j.value;if(typeof Y==="number"){if(Z.operator==="-")return{ok:!0,value:-Y};if(Z.operator==="+")return{ok:!0,value:Y}}if(typeof Y==="boolean"&&Z.operator==="!")return{ok:!0,value:!Y};return{ok:!1}}if(Q.type==="TemplateLiteral"){let Z=Q;if(Z.expressions.length>0||Z.quasis.length!==1)return{ok:!1};return{ok:!0,value:Z.quasis[0].value.cooked??Z.quasis[0].value.raw}}if(Q.type==="ArrayExpression"){let Z=Q,j=[];for(let Y of Z.elements){if(!Y)return{ok:!1};let K=Q9(q,Y);if(!K.ok)return{ok:!1};j.push(K.value)}return{ok:!0,value:j}}if(Q.type==="ObjectExpression"){let Z=Q,j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)return{ok:!1};let K=q.getPropertyName(Y.key);if(!K)return{ok:!1};let J=Q9(q,Y.value);if(!J.ok)return{ok:!1};j[K]=J.value}return{ok:!0,value:j}}return{ok:!1}}var $3=/[-_.:/\s]+/;function Z9(q){return`${q.split($3).map((j)=>j.charAt(0).toUpperCase()+j.slice(1)).join("")}Context`}function w3(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let Y=[];if(!r1(Z))return null;let K=Z;for(let J of K.properties){if(J.type!=="Property")continue;let X=Q.getPropertyName(J.key);if(!X)continue;let W="any",R;if(u8(J.value)){let O=J.value.name,M=Q.findVariableTypeAndDescription(O);if(M)W=M.type,R=M.description;else p8(q,"context-any-type",X,`Context "${j}" property "${X}" has no type annotation; defaulted to "any".`,K8(q,J))}else if(J.value&&typeof J.value==="object"&&"type"in J.value&&(J.value.type==="ArrowFunctionExpression"||J.value.type==="FunctionExpression"))W=`(${J.value.params?.map(($)=>{if(u8($))return`${$.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(J1(J.value))W=J.value.value==null?"null":typeof J.value.value;Y.push({name:X,type:W,description:R,optional:!1})}return{key:j,typeName:Z9(j),properties:Y,description:void 0}}else if(u8(Z)){let Y=Z.name,K=Q.findVariableTypeAndDescription(Y);if(K)return{key:j,typeName:Z9(j),properties:[{name:Y,type:K.type,description:K.description,optional:!1}]};return p8(q,"context-any-type",Y,`Context "${j}" variable "${Y}" has no type annotation; defaulted to "any".`,K8(q,Z)),{key:j,typeName:Z9(j),properties:[{name:Y,type:"any",description:void 0,optional:!1}]}}return null}function a6(q){let Q=q.callee;if(!Q||typeof Q!=="object"||!("type"in Q))return null;let Z=Q.type==="Identifier"&&Q.name==="Symbol",j=Q.type==="MemberExpression"&&!Q.computed&&Q.object.type==="Identifier"&&Q.object.name==="Symbol"&&Q.property.type==="Identifier"&&Q.property.name==="for";if(!Z&&!j)return null;let Y=q.arguments[0];if(!Y||typeof Y!=="object"||!("type"in Y))return"";if(Y.type==="Literal"&&typeof Y.value==="string")return Y.value;if(Y.type==="TemplateLiteral"&&Y.quasis?.length===1)return Y.quasis[0].value.cooked??"";return""}function r6(q,Q,Z=0){if(!Q||typeof Q!=="object"||!("type"in Q))return null;let j=Q;if(j.type==="Literal")return typeof j.value==="string"?j.value:j.value==null?null:String(j.value);if(j.type==="TemplateLiteral"){if(j.quasis?.length===1){let Y=j.quasis[0].value.cooked;return Y==null?null:Y}return null}if(j.type==="CallExpression"||j.type==="NewExpression")return a6(j);if(j.type==="Identifier"){if(Z>=5)return null;let Y=o6(q,j.name);if(Y&&typeof Y==="object"&&"type"in Y){let K=Y;if((K.type==="CallExpression"||K.type==="NewExpression")&&a6(K)==="")return j.name;return r6(q,K,Z+1)}return null}return null}function t6(q,Q,Z,j){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let Y=Z,K=Y.arguments[0];if(!K)return;let J=r6(q,K);if(!J){let R=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${R}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let X=Y.arguments[1];if(!X)return;let W=w3(q,Q,X,J);if(W&&!q.contexts.has(J))q.contexts.set(J,W)}function j9(q){return typeof q==="string"?JSON.stringify(q):String(q)}function I1(q,{name:Q,detail:Z,has_argument:j,description:Y,deprecated:K,tags:J,source:X}){if(Q===void 0)return;let W=!j&&!Z?"null":I8(Z),R=Y,O=q.events.get(Q);if(O?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:R||O.description,deprecated:K??O.deprecated,tags:J??O.tags,source:X||O.source});else if(O){let M=O.tags??J;q.events.set(Q,{...O,detail:O.detail===void 0?W:O.detail,description:O.description||R,deprecated:O.deprecated??K,tags:M,source:X||O.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:R,deprecated:K,tags:J,source:X})}function e6(q,Q){let Z=Q.arguments[0],j=r0(Z,"CustomEvent");if(!j&&!r0(Z,"Event"))return;let Y=Z.arguments[0],K=J1(Y)?Y.value:void 0;if(K==null)return;let J=j?Z.arguments[1]:void 0,X=!1,W;if(r1(J)){let R=J.properties.find((O)=>O.type==="Property"&&u8(O.key)&&O.key.name==="detail");if(R?.type==="Property")X=!0,W=J1(R.value)?R.value.value:void 0}return I1(q,{name:String(K),detail:W==null?"":j9(W),has_argument:X,source:K8(q,Q)}),String(K)}function Y9(q,Q,Z=!1){if(q.length===0)return"null";let j=q.map(({name:Y,type:K,description:J,optional:X,default:W})=>{let R=X?"?":"",O=J||"";if(W&&O)O=`${O} @default ${W}`;else if(W)O=`@default ${W}`;if(O){if(Z)return`/** ${O} */
3
+ ${Y}${R}: ${K};`;return`/** ${O} */ ${Y}${R}: ${K};`}return`${Y}${R}: ${K};`}).join(Z?`
4
4
  `:" ");return Z?`{
5
- ${Y}
6
- }`:`{ ${Y} }`}var L3=/[A-Za-z_$][\w$]*/g;function C3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((Y)=>Y.trim()));for(let[Y]of q.matchAll(L3))if(Z.has(Y))return!0;return!1}function J9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function e6(q,Q,Z){return J9(q,Q)?.props.get(Z)}function q7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function Q7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return Q7(q.left);return}function Q0(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z+1,Y)?.trim()}function Z7(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return J8(q,Z,Y)?.trim()}function P8(q,Q,Z,Y,H=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":P8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,Y,H);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":P8(q,Q.typeAnnotation,Z,Y,H);return;case"TSIntersectionType":case"TSUnionType":for(let V of Q.types??[])P8(q,V,Z,Y,H);return;case"TSTypeLiteral":for(let V of Q.members??[]){if(V?.type!=="TSPropertySignature")continue;P8(q,V.typeAnnotation?.typeAnnotation,Z,Y,H)}return;case"TSTypeReference":{let V=Q7(Q.typeName);if(V){if(q.typeImportBindingsByLocalName.has(V))Z.add(V);let K=q.localTypeDeclarationsByName.get(V);if(K&&!H.has(V))Y.add(V),H.add(V),P8(q,K.node,Z,Y,H),H.delete(V)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let W of K.params??[])P8(q,W,Z,Y,H)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let V of Object.values(Q)){if(!V||typeof V!=="object")continue;if(Array.isArray(V)){for(let K of V){if(!K||typeof K!=="object"||!("type"in K))continue;P8(q,K,Z,Y,H)}continue}if("type"in V)P8(q,V,Z,Y,H)}}function A3(q,Q){let Z=new Map;for(let Y of Array.from(Q).sort()){let H=q.typeImportBindingsByLocalName.get(Y);if(!H)continue;let V=Z.get(H.source)??{default:[],named:[],namespace:[]};if(H.specifierType==="default")V.default.push(H.localName);else if(H.specifierType==="namespace")V.namespace.push(H.localName);else V.named.push({imported:H.importedName,local:H.localName});Z.set(H.source,V)}return Array.from(Z.entries()).sort(([Y],[H])=>Y.localeCompare(H)).map(([Y,H])=>{if(H.namespace.length>0)return H.namespace.map((G)=>`import type * as ${G} from "${Y}";`).join(`
7
- `);let V=H.named.map(({imported:G,local:R})=>{if(!G||G===R)return R;return`${G} as ${R}`}),K=H.default[0],W=V.length>0?`{ ${V.join(", ")} }`:"";if(K&&W)return`import type ${K}, ${W} from "${Y}";`;if(K)return`import type ${K} from "${Y}";`;return`import type ${W} from "${Y}";`})}function Y7(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[Q]=q.typedRunesPropsDeclarations;if(!Q.canonicalType)return;let Z=Array.from(Q.referencedLocalTypes).map((Y)=>q.localTypeDeclarationsByName.get(Y)).filter((Y)=>Y!==void 0).sort((Y,H)=>Y.start-H.start).map((Y)=>Y.code);return{canonicalPropsType:Q.canonicalType,canonicalPropNames:Array.from(Q.props.keys()).sort(),localTypeDeclarations:Z,typeImportStatements:A3(q,Q.referencedImportedTypes),referencesComponentGenerics:C3(Q.canonicalType,q.generics)}}var w3=/^[A-Za-z_$][\w$]*/,I3=/[A-Za-z_$][\w$]*/g,H7=/^(?:const|in|out)\s+/;function X1(q){let Q=[],Z=0,Y=0;for(let H=0;H<q.length;H++){let V=q[H];if(V==="<"||V==="("||V==="["||V==="{")Z++;else if(V===">"||V===")"||V==="]"||V==="}")Z=Math.max(Z-1,0);else if(V===","&&Z===0)Q.push(q.slice(Y,H)),Y=H+1}return Q.push(q.slice(Y)),Q}function J7(q){let Q=X1(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Q.length===0)return null;return[Q.map((Y)=>{let H=Y;while(H7.test(H))H=H.replace(H7,"");return H.match(w3)?.[0]??Y}).join(", "),Q.join(", ")]}function K7(q,Q,Z){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[H]of Y.matchAll(I3)){if(q.typeImportBindingsByLocalName.has(H))Q.add(H);if(Z.has(H))continue;let V=q.localTypeDeclarationsByName.get(H);if(!V)continue;Z.add(H),P8(q,V.node,Q,Z)}}var S8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(S8=S8||(S8={}));function K9(q){return/^\s+$/.test(q)}function V7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function o8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function X7(q){return q.split(/\n/)}function W7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function V9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var P3=/^@\S+/;function X9({fence:q="```"}={}){let Q=S3(q),Z=(Y,H)=>Q(Y)?!H:H;return function(H){let V=[[]],K=!1;for(let W of H){if(P3.test(W.tokens.description)&&!K)V.push([W]);else V[V.length-1].push(W);K=Z(W.tokens.description,K)}return V}}function S3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function W9({startLine:q=0,markers:Q=S8}={}){let Z=null,Y=q;return function(V){let K=V,W=V9();if([W.lineEnd,K]=V7(K),[W.start,K]=o8(K),Z===null&&K.startsWith(Q.start)&&!K.startsWith(Q.nostart))Z=[],W.delimiter=K.slice(0,Q.start.length),K=K.slice(Q.start.length),[W.postDelimiter,K]=o8(K);if(Z===null)return Y++,null;let G=K.trimRight().endsWith(Q.end);if(W.delimiter===""&&K.startsWith(Q.delim)&&!K.startsWith(Q.end))W.delimiter=Q.delim,K=K.slice(Q.delim.length),[W.postDelimiter,K]=o8(K);if(G){let R=K.trimRight();W.end=K.slice(R.length-Q.end.length),K=R.slice(0,-Q.end.length)}if(W.description=K,Z.push({number:Y,source:V,tokens:W}),Y++,G){let R=Z.slice();return Z=null,R}return null}}function G9({tokenizers:q}){return function(Z){var Y;let H=W7({source:Z});for(let V of q)if(H=V(H),(Y=H.problems[H.problems.length-1])===null||Y===void 0?void 0:Y.critical)break;return H}}function Z0(){return(q)=>{let{tokens:Q}=q.source[0],Z=Q.description.match(/\s*(@(\S+))(\s*)/);if(Z===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function Y0(q="compact"){let Q=N3(q);return(Z)=>{let Y=0,H=[];for(let[W,{tokens:G}]of Z.source.entries()){let R="";if(W===0&&G.description[0]!=="{")return Z;for(let O of G.description){if(O==="{")Y++;if(O==="}")Y--;if(R+=O,Y===0)break}if(H.push([G,R]),Y===0)break}if(Y!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let V=[],K=H[0][0].postDelimiter.length;for(let[W,[G,R]]of H.entries()){if(G.type=R,W>0)G.type=G.postDelimiter.slice(K)+R,G.postDelimiter=G.postDelimiter.slice(0,K);[G.postType,G.description]=o8(G.description.slice(R.length)),V.push(G.type)}return V[0]=V[0].slice(1),V[V.length-1]=V[V.length-1].slice(0,-1),Z.type=Q(V),Z}}var D3=(q)=>q.trim();function N3(q){if(q==="compact")return(Q)=>Q.map(D3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
- `);else return q}var T3=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function H0(){let q=(Q,{tokens:Z},Y)=>Z.type===""?Q:Y;return(Q)=>{let{tokens:Z}=Q.source[Q.source.reduce(q,0)],Y=Z.description.trimLeft(),H=Y.split('"');if(H.length>1&&H[0]===""&&H.length%2===1)return Q.name=H[1],Z.name=`"${H[1]}"`,[Z.postName,Z.description]=o8(Y.slice(Z.name.length)),Q;let V=0,K="",W=!1,G;for(let O of Y){if(V===0&&K9(O))break;if(O==="[")V++;if(O==="]")V--;K+=O}if(V!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let R=K;if(K[0]==="["&&K[K.length-1]==="]"){W=!0,K=K.slice(1,-1);let O=K.split("=");if(K=O[0].trim(),O[1]!==void 0)G=O.slice(1).join("=").trim();if(K==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(G==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!T3(G)&&/=(?!>)/.test(G))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(Q.optional=W,Q.name=K,Z.name=R,G!==void 0)Q.default=G;return[Z.postName,Z.description]=o8(Y.slice(Z.name.length)),Q}}function J0(q="compact",Q=S8){let Z=z9(q);return(Y)=>{return Y.description=Z(Y.source,Q),Y}}function z9(q){if(q==="compact")return b3;if(q==="preserve")return v3;return q}function b3(q,Q=S8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var k3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,E3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function v3(q,Q=S8){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===Q.start)q=q.slice(1);let Z=q[q.length-1];if(Z!==void 0&&Z.tokens.description===""&&Z.tokens.end.endsWith(Q.end))q=q.slice(0,-1);return q=q.slice(q.reduce(k3,0)),q.map(E3).join(`
9
- `)}function j9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:Y=S8,tokenizers:H=[Z0(),Y0(Z),H0(),J0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let V=W9({startLine:q,markers:Y}),K=X9({fence:Q}),W=G9({tokenizers:H}),G=z9(Z);return function(R){let O=[];for(let $ of X7(R)){let M=V($);if(M===null)continue;let F=K(M),P=F.slice(1).map(W);O.push({description:G(F[0],Y),tags:P,source:M,problems:P.reduce((w,N)=>w.concat(N.problems),[])})}return O}}function h3(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function O9(){return(q)=>q.source.map(({tokens:Q})=>h3(Q)).join(`
10
- `)}var f3={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var OJ=Object.keys(f3);function P1(q,Q={}){return j9(Q)(q)}var vJ=O9();var y3=null;function g3(q,Q,Z){let Y={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return Y;if(Z.type==="Identifier")Y.value=Z.name,Y.replace=!0;else if(Z.type==="Literal")Y.value=String(Z.value);else if(Z.type==="MemberExpression")Y.value=e1(q,Q,Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")Y.value=J8(q,Z.start,Z.end);return Y}function G7(q,Q,Z){let Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)continue;let V=Q.getPropertyName(H.key);if(!V)continue;Y[V]=g3(q,Q,H.value)}return Y}function _3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let V=Q,K=q.propLocalToPublicName.get(V.name);if(!K)return null;return{publicName:K,trackingName:V.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,Y=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!Y||!q.wholePropsLocals.has(Y))return null;let H;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")H=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)H=String(Z.property.value)}else if(Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property&&Z.property.type==="Literal"&&"value"in Z.property&&Z.property.value!=null)H=String(Z.property.value);if(!H)return null;return{publicName:H,trackingName:H}}function z7(q,Q){let Z=Q;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="ChainExpression")Z=Z.expression;if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return null;let Y=Z;if(!Y.callee||typeof Y.callee!=="object"||!("type"in Y.callee))return null;let H=_3(q,Y.callee);if(!H)return null;return{...H,arguments:Y.arguments}}function S1(q,{slot_name:Q,slot_props:Z,slot_fallback:Y,slot_description:H,slot_deprecated:V,slot_tags:K,source:W}){let G=Q===void 0||Q==="",R=G?y3:Q??"",O=I8(Y),$=Z===void 0||Z===""?void 0:Z,M=H?.trim()||void 0;if(q.slots.has(R)){let F=q.slots.get(R);if(F)q.slots.set(R,{...F,default:F.default??G,fallback:O,slot_props:F.slot_props===void 0?$:F.slot_props,description:F.description||M,deprecated:F.deprecated??V,tags:F.tags||K,source:W||F.source})}else q.slots.set(R,{name:R,default:G,fallback:O,slot_props:Z,description:M,deprecated:V,tags:K,source:W})}var x3=/\s*=\s*/;function j7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),Y=q.slice(Q+1,-1),H=X1(Y).map((V)=>V.trim().replace(x3," = ")).join(", ");return`${Z}<${H}>`}var u3=/^\s*$/,m3=/;$/,l3=/^-\s*/;function W1(q){if(q===void 0)return;let Q=q.replace(l3,"").trim();return Q===""?"":Q}function D1(q){if(!q||q.length===0)return;return q[0].tokens.description}var O7=new Set(["since","example"]);function U7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let Y=Z.tokens;if((Y.end??"").trim()==="*/")break;if(Y.tag){let H=`${Y.name??""}${Y.postName??""}${Y.description??""}`.trimEnd();if(H)Q.push(H)}else Q.push(`${Y.postDelimiter??""}${Y.description??""}`)}return Q.join(`
11
- `)}function c3(q){let Q=q.trim();return Q===""?!0:Q}function R7(q,Q){return c3(`${q??""}${Q?` ${Q}`:""}`)}function i3(q){let Q=q.trim().replace(m3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,Y=null;for(let H=0;H<Q.length;H++){let V=Q[H];if(Y!==null){if(V==="\\"){H++;continue}if(V===Y)Y=null;continue}if(V==='"'||V==="'"||V==="`"){Y=V;continue}if(V==="{"||V==="["||V==="(")Z++;else if(V==="}"||V==="]"||V===")"){if(Z--,Z===0&&H<Q.length-1)return!1}}return Z===0}function d3(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function R9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),Y,H=[],V,K,W,G=[],R=[];for(let O of Q)if(O.tag==="type")Y=O;else if(O.tag==="param")H.push(O);else if(O.tag==="returns"||O.tag==="return")V=O;else if(O.tag==="deprecated")W??=R7(O.name,O.description);else if(O7.has(O.tag))R.push(O);else if(O.tag==="bindable"){if(O.type)continue;let $=`${O.name}${O.description?` ${O.description}`:""}`.trim();if($==="readonly"||$==="writable")K??=$}else if(!Z.has(O.tag))G.push(O);return{type:Y,param:H,returns:V,binding:K,deprecated:W,additional:G,passthrough:R,description:q[0]?.description}}function p3(q){if(!q||q.length===0)return;let Q=q[q.length-1];return Q&&typeof Q==="object"&&"value"in Q?Q:void 0}function o3(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let Y=Q.length-1;Y>=0;Y--){let H=Q[Y];if(!H||typeof H!=="object"||!("value"in H)||!("end"in H))continue;if(typeof H.end!=="number")continue;let V=q.source.slice(H.end,Z);if(u3.test(V))return H}return}function q1(q,Q,Z){if(!Z?.leadingComments)return;let Y=o3(q,Z.leadingComments,Z.start);if(!Y)return;return n3(Q,[Y])}function B7(q,Q,Z){if(!Z?.leadingComments)return;return q1(q,Q,Z)}function n3(q,Q){if(!Q)return;let Z=p3(Q);if(!Z)return;let Y=P1(d3(Z.value),{spacing:"preserve"}),{type:H,param:V,returns:K,binding:W,deprecated:G,additional:R,passthrough:O,description:$}=R9(Y),M,F,P,w;if(H)M=q.aliasType(H.type);if(V.length>0)F=V.filter((g)=>!g.name.includes(".")).map((g)=>({name:g.name,type:q.aliasType(g.type),description:W1(g.description),optional:g.optional||!1}));if(K)P=q.aliasType(K.type);let N=I8($?.trim());if(N||R.length>0){let g=[];if(N)g.push(N);for(let f of R){let a=`@${f.tag}${f.name?` ${f.name}`:""}${f.description?` ${f.description}`:""}`;g.push(a)}w=g.join(`
12
- `)}let v=O.length>0?O.map((g)=>({name:g.tag,body:U7(g.source)})):void 0;return{type:M,params:F,returnType:P,description:w,binding:W,deprecated:G,tags:v}}function F7(q,Q,Z=q.source){if(!Z)return;let Y=0;for(let{tags:H,description:V,source:K}of P1(Z,{spacing:"preserve"})){let W=K.map((b)=>b.source).join(`
13
- `),G=Z.indexOf(W,Y),R=G===-1?void 0:G;if(G!==-1)Y=G+W.length;let O,$,M,F,P,w,N=[],v=[],g,f,a,x=[],Z8,C,J=[],X,z=!1,j=!0,B=[],L,A=new Map,D=new Set,S=new Set;for(let b of H)if(b.source&&b.source.length>0)D.add(b.source[0].number);for(let b of K)if(!b.tokens.tag&&b.tokens.description&&b.tokens.description.trim()!=="}")A.set(b.number,b.tokens.description);let I=(b)=>{if(!b||b.length===0)return;let r=b[0].number,_=[],s=[],U8=!1;for(let p=r-1;p>=1;p--){if(D.has(p))break;let t=A.get(p);if(t)_.unshift(t),s.unshift(p),U8=!0;else if(U8){let l=K.find((e)=>e.number===p);if(!(!l||!l.tokens.tag&&(!l.tokens.description||l.tokens.description.trim()==="")))break}}if(_.length===0)return;for(let p of s)S.add(p);return _.join(`
14
- `).trim()},h=()=>{if(O!==void 0){let b=$&&$!=="object"&&$!=="Object"?$:void 0,r;if(b)r=b;else if(v.length>0)r=H9(v,O,!0);else r=$||"";if(w!==void 0){let _;for(let p of H){let t=p.source?.[0]?.number;if(typeof t!=="number")continue;if(t<=w)continue;if(p.tag==="property"||p.tag==="type")continue;_=t;break}let s=[],U8=Array.from(A.keys()).sort((p,t)=>p-t);for(let p of U8){if(p<=w)continue;if(_!==void 0&&p>=_)continue;if(S.has(p))continue;let l=A.get(p)?.trim();if(l)s.push(l),S.add(p)}if(s.length>0){let p=s.join(`
15
- `);M=M?`${M}
16
- ${p}`:p}}I1(q,{name:O,detail:r,has_argument:!1,description:M,deprecated:F,tags:N.length>0?N:void 0,source:P}),q.eventDescriptions.set(O,M),q.jsDocEventNames.add(O),q.jsDocEventSources.set(O,P),v.length=0,O=void 0,$=void 0,M=void 0,F=void 0,P=void 0,w=void 0,N=[]}},c=()=>{if(g!==void 0){let b,r;if(x.length>0)b=H9(x,void 0,!0),r=`type ${g} = ${b};`;else if(f)b=f,r=i3(b)?`interface ${g} ${b}`:`type ${g} = ${b};`;else b="{}",r=`type ${g} = ${b};`;q.typedefs.set(g,{type:b,name:g,description:I8(a),ts:r}),x.length=0,g=void 0,f=void 0,a=void 0}},m=()=>{if(Z8!==void 0){let _=`(${J.map(({name:U8,type:p,optional:t})=>{return`${U8}${t?"?":""}: ${p}`}).join(", ")}) => ${X||"void"}`,s=`type ${Z8} = ${_};`;q.typedefs.set(Z8,{type:_,name:Z8,description:I8(C),ts:s}),J.length=0,X=void 0,Z8=void 0,C=void 0}},n=H.some((b)=>b.tag==="slot"||b.tag==="snippet"),H8=H.some((b)=>b.tag==="extends"||b.tag==="extendProps");for(let{tag:b,type:r,name:_,description:s,optional:U8,default:p,source:t}of H){let l=Q.aliasType(r),M8=I(t);switch(b){case"extends":case"extendProps":if(q.extends={interface:_,import:l},j)j=!1;break;case"restProps":{let e=_?s?`${_} ${s}`:_:s,c8=W1(e)||M8;if(!c8&&j&&!z&&V)c8=V,z=!0;if(q.rest_props={type:"Element",name:l,description:c8||void 0},j)j=!1;break}case"slot":case"snippet":{let C8=W1(D1(t));if(!C8&&j&&!z&&V)C8=V,z=!0;if(!C8&&B.length===0)C8=M8;if(j)j=!1;S1(q,{slot_name:_,slot_props:l,slot_description:C8||void 0,slot_deprecated:L,slot_tags:B.length>0?[...B]:void 0,source:q9(q,K,t,R)}),B.length=0,L=void 0;break}case"event":{if(h(),O=_,$=l,w=t&&t.length>0?t[0].number:void 0,M=W1(D1(t))||M8,!M&&j&&!z&&V)M=V,z=!0;if(P=q9(q,K,t,R),j)j=!1;break}case"type":if(O!==void 0)$=l;break;case"param":if(Z8!==void 0)J.push({name:_,type:l,optional:U8||!1});break;case"returns":case"return":if(Z8!==void 0)X=l;break;case"property":{let e={name:_,type:l,description:W1(D1(t)),optional:U8||!1,default:p};if(O!==void 0)v.push(e);else if(g!==void 0)x.push(e);break}case"typedef":{if(c(),g=j7(_),f=l,a=W1(D1(t))||M8,!a&&j&&!z&&V)a=V,z=!0;if(j)j=!1;break}case"callback":{if(m(),Z8=j7(_),C=W1(D1(t))||M8,!C&&j&&!z&&V)C=V,z=!0;if(j)j=!1;break}case"generics":if(q.generics=[_,l],j)j=!1;break;case"template":{let e=_;if(l)e=`${_} extends ${l}`;if(p)e+=` = ${p}`;if(n&&!H8){q.deferredSlotBlockGenerics.push({name:_,constraint:e});break}if(Q.accumulateGeneric(_,e),j)j=!1;break}case"deprecated":{let e=R7(_,s);if(O===void 0)L??=e;else F??=e;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let e={name:b,body:U7(t)};if(O!==void 0&&O7.has(b))N.push(e);else B.push(e)}break}}h(),c(),m()}}function s3({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:Y}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(Y!==void 0)return"inferred";return"unknown"}function N1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,Y=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&Y)Q=Z&&Z.length>0?`(${Z.map((W)=>`${W.name}${W.optional?"?":""}: ${W.type}`).join(", ")}) => ${Y}`:`() => ${Y}`;let H=q.jsdocDescription??q.resolvedDescription;if(H===void 0&&Q!==void 0)H=q.typedefs?.get(Q)?.description;let V=s3({hasTypeScriptType:q.explicitType!==void 0,hasJSDocType:q.jsdocType!==void 0||q.jsdocParams!==void 0||q.jsdocReturnType!==void 0||q.resolvedType!==void 0,inferredType:q.inferredTypeForSource,finalType:Q}),K=q.initializerIsFunction||q.isFunctionDeclaration||q.inferIsFunctionFromTypeSignature===!0&&(!!q.jsdocParams?.length||q.jsdocReturnType!==void 0||!!q.jsdocType?.includes("=>")||!!q.resolvedType?.includes("=>")||!!q.explicitType?.includes("=>"));return{type:Q,typeSource:V,description:H,params:Z,returnType:Y,isFunction:K}}function a3(q){if(!q||typeof q!=="object"||!("type"in q))return;let Q=String(q.type);if(Q!=="InlineComponent"&&Q!=="Element")return;let Z="name"in q&&typeof q.name==="string"?q.name:void 0;if(!Z)return;let Y=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")Y.thisValue=q.tag;return Y}function M7(q,Q){if(q.rest_props!==void 0)return;let Z=a3(Q);if(Z)q.rest_props=Z}function R8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function K0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let Y=q.activeScopes[Z]?.get(Q);if(!Y)continue;return Y.kind==="prop"?Y.publicPropName:void 0}return}function X8(q,Q=new Set){if(!q||typeof q!=="object"||!("type"in q))return Q;switch(q.type){case"Identifier":Q.add(q.name);break;case"AssignmentPattern":X8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)X8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")X8(Z.value,Q);else if(Z.type==="RestElement")X8(Z.argument,Q);break;case"RestElement":X8(q.argument,Q);break}return Q}function F9(q,Q){let Z=X8(Q);if(!Z)return;for(let Y of Z){let H=K0(q,Y);if(H)q.reactive_vars.add(H)}}function V0(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function $7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function r3(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function t3(q,Q,Z){let Y=[];if(Z.id.type==="Identifier")return Y.push({kind:"local",name:Z.id.name}),Y;if(Z.id.type!=="ObjectPattern")return Y;for(let H of Z.id.properties){if(H.type==="RestElement"){if(H.argument.type==="Identifier")Y.push({kind:"local",name:H.argument.name});continue}if(H.computed)continue;let V=q.getPropertyName(H.key);if(!V)continue;let K;if(H.value.type==="Identifier")K=H.value.name;else if(H.value.type==="AssignmentPattern"&&H.value.left.type==="Identifier")K=H.value.left.name;if(!K)continue;Y.push({kind:"prop",name:K,publicPropName:V})}return Y}function B9(q,Q,Z,Y,H){if(!x6(Q))return;let V=H?.allowRunesProps??!1,K=H?.forceProp??!1,W=Q;for(let G of W.declarations){if(V&&m8(e8(G.init),"$props")){for(let $ of t3(q,W,G))R8($.kind==="prop"?Z:Y,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let R=W.kind==="var"?Y:Z,O=K?"prop":"local";for(let $ of X8(G.id))R8(R,$,O==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}function e3(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")R8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let Y of X8(Z))R8(Q,Y,{kind:"local"})}function qq(q,Q,Z,Y){if(!Array.isArray(Q))return;for(let H of Q){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"VariableDeclaration":B9(q,H,Z,Y);break;case"FunctionDeclaration":if(H.id?.name)R8(Z,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)R8(Z,H.id.name,{kind:"local"});break}}}function Qq(q,Q,Z){if(!Z||typeof Z!=="object")return;let Y="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!Y||!("body"in Y)||!Array.isArray(Y.body))return;for(let H of Y.body){if(!H||typeof H!=="object"||!("type"in H))continue;switch(H.type){case"ImportDeclaration":for(let V of H.specifiers??[])if(V.local?.name)R8(Q.componentScope,V.local.name,{kind:"local"});break;case"VariableDeclaration":B9(q,H,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)R8(Q.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)R8(Q.componentScope,H.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!H.declaration||typeof H.declaration!=="object"||!("type"in H.declaration))break;if(H.declaration.type==="VariableDeclaration")B9(q,H.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)R8(Q.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function L7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Qq(q,Q,Q.parsed?.instance)}function C7(q){return{varScopeStack:[q.componentScope]}}function A7(q,Q,Z,Y){if(!V0(Y))return;let H=r3(Q,Y),V=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(Y.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":e3(Y,H);break;case"BlockStatement":qq(q,Y.body,H,V);break;case"CatchClause":if("param"in Y)for(let W of X8(Y.param))R8(H,W,{kind:"local"});break;case"EachBlock":{let W=Y;for(let G of X8(W.context))R8(H,G,{kind:"local"});if(typeof W.index==="string")R8(H,W.index,{kind:"local"});else if(W.index&&"name"in W.index)R8(H,W.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let W of X8(Y.value))R8(H,W,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let W of X8(Y.error))R8(H,W,{kind:"local"});break}if($7(Y))Z.varScopeStack.push(H)}function w7(q,Q){if($7(Q))q.varScopeStack.pop()}var Zq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Yq(q,Q){switch(Q?.type){case"MemberExpression":return Q.computed||q===Q.object;case"MethodDefinition":return!!Q.computed;case"MetaProperty":return q===Q.meta;case"PropertyDefinition":return Q.computed||q===Q.value;case"Property":return Q.computed||q===Q.value;case"ExportSpecifier":case"ImportSpecifier":return q===Q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Hq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Jq(q){let Q=new Set;if(!q||typeof q!=="object"||!("type"in q))return Q;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let Z=q;if(Z.id?.name)Q.add(Z.id.name);for(let Y of Z.params??[])X8(Y,Q);break}case"BlockStatement":X0(q.body,Q);break;case"CatchClause":X8(q.param,Q);break;case"EachBlock":{let Z=q;if(X8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":X8(q.value,Q);break;case"CatchBlock":X8(q.error,Q);break}return Q}function X0(q,Q){if(!Array.isArray(q))return;for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;switch(String(Z.type)){case"ImportDeclaration":for(let Y of Z.specifiers??[])if(Y.local?.name)Q.add(Y.local.name);break;case"VariableDeclaration":for(let Y of Z.declarations??[])X8(Y.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let Y=Z.id?.name;if(Y)Q.add(Y);break}case"ExportNamedDeclaration":{let Y=Z.declaration;if(Y&&typeof Y==="object"&&"type"in Y)X0([Y],Q);break}}}}function M9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],Y=!1;return d8(q,{enter(H,V){if(Y){this.skip();return}if(V0(H))Z.push(Jq(H));if(V&&H.type==="Identifier"&&Zq.has(H.name)&&!V.type.startsWith("TS")&&Yq(H,V)&&!Hq(H.name,Z))Y=!0,this.skip()},leave(H){if(V0(H))Z.pop()}}),Y}function I7(q){if(!q||typeof q!=="object")return;if("content"in q){let Q=q.content,Z=Q&&typeof Q==="object"&&"body"in Q?Q.body:void 0;if(Array.isArray(Z))return Z}if("body"in q&&Array.isArray(q.body))return q.body;return}function P7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;X0(I7(Q.module),Z);let Y=new Set;return X0(I7(Q.instance),Y),M9(Q.module,[Z])||M9(Q.instance,[Z,Y])||M9(Q.html,[Z,Y])?"runes":"legacy"}var Kq=/[A-Za-z_$][\w$]*/g;function Vq(q,Q,Z){let Y=new Map,H=Q.typeParameters?.params,V=Z.typeArguments?.params;if(!H?.length||!V?.length)return Y;for(let K=0;K<H.length;K++){let W=H[K]?.name,G=V[K];if(!W||G?.start===void 0||G?.end===void 0)continue;let R=J8(q,G.start,G.end)?.trim();if(R)Y.set(W,R)}return Y}function Xq(q,Q){if(Q.size===0)return q;return q.replace(Kq,(Z)=>Q.get(Z)??Z)}function T1(q,Q,Z,Y,H=new Set){let V=new Map;if(!Z?.type)return V;let K=(W)=>{for(let G of W){if(G?.type!=="TSPropertySignature"||G.computed)continue;if(!G.key)continue;let R=q.getPropertyName(G.key);if(!R)continue;let O=G.typeAnnotation?.start,$=G.typeAnnotation?.end;if(O===void 0||$===void 0)continue;let M=J8(Q,O+1,$)?.trim();if(!M)continue;V.set(R,{type:M,optional:G.optional===!0,source:V8(Q,G)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let W=T1(q,Q,Z.typeAnnotation,Y,H);for(let[G,R]of W)V.set(G,R);break}case"TSTypeReference":{let W=q7(Z.typeName);if(!W||H.has(W))break;let G=Y.get(W);if(!G)break;H.add(W);let R=T1(q,Q,G,Y,H);H.delete(W);let O=Vq(Q,G,Z);for(let[$,M]of R)V.set($,O.size===0?M:{...M,type:Xq(M.type,O)});break}case"TSIntersectionType":for(let W of Z.types??[]){let G=T1(q,Q,W,Y,H);for(let[R,O]of G)V.set(R,O)}break;case"TSParenthesizedType":{let W=T1(q,Q,Z.typeAnnotation,Y,H);for(let[G,R]of W)V.set(G,R);break}}return V}function S7(q,Q,Z){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let Y=Z;Q.scriptLanguage=q.resolveScriptLanguage(Y),Q.customElementTag=Y.options?.customElement?.tag,Q.runesOptionOverride=Y.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(Y);let H=Y.instance?.content?.body??[];for(let V of H){if(!V?.type)continue;if(V.type==="ImportDeclaration"&&V.source?.value)for(let K of V.specifiers??[]){let W=K.local?.name;if(!W)continue;if(!(V.importKind==="type"||K.importKind==="type"))continue;let R,O;if(K.type==="ImportSpecifier")R="named",O=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")R="default";else if(K.type==="ImportNamespaceSpecifier")R="namespace";if(!R)continue;Q.typeImportBindingsByLocalName.set(W,{importedName:O,localName:W,source:String(V.source.value),specifierType:R})}if((V.type==="TSInterfaceDeclaration"||V.type==="TSTypeAliasDeclaration")&&V.id?.name&&V.start!==void 0&&V.end!==void 0)Q.localTypeDeclarationsByName.set(V.id.name,{code:J8(Q,V.start,V.end)?.trim()??"",node:V,start:V.start});if(V.type==="ExportNamedDeclaration"&&V.declaration?.type==="VariableDeclaration")for(let K of V.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Q0(Q,K.id.typeAnnotation);if(W)Q.explicitPropTypesByName.set(K.id.name,W)}else if(V.type==="VariableDeclaration")for(let K of V.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let W=Q0(Q,K.id.typeAnnotation);if(W)Q.explicitVariableTypesByName.set(K.id.name,W)}}for(let V of H){if(!V||typeof V!=="object"||!("declarations"in V))continue;for(let K of V.declarations??[]){if(!m8(e8(K.init),"$props"))continue;let W=K.id?.typeAnnotation?void 0:m6(K.init),G=K.id?.typeAnnotation?.typeAnnotation??W,R=K.id?.typeAnnotation?Q0(Q,K.id.typeAnnotation):Z7(Q,W),O=T1(q,Q,G,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([F,P])=>[F,P.node]))),$=new Set,M=new Set;if(P8(Q,G,$,M),K7(Q,$,M),K.start!==void 0){let F={canonicalType:R,props:O,referencedImportedTypes:$,referencedLocalTypes:M};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,F),R)Q.typedRunesPropsDeclarations.push(F)}}}}function D7(q,Q,Z){for(let Y of Z.declarations){if(!m8(e8(Y.init),"$props"))continue;if(Y.id.type==="Identifier"){Q.wholePropsLocals.add(Y.id.name),Q.restPropLocals.add(Y.id.name);let K=J9(Q,Y.start);if(K)for(let[W,G]of K.props)w1(q,Q,W,{name:W,kind:"let",type:G.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!G.optional,constant:!1,reactive:!1,source:G.source});continue}if(Y.id.type!=="ObjectPattern")continue;let H=q1(Q,q,Z),V=Y.id.properties.filter((K)=>{if(K.type!=="Property"||K.computed)return!1;if(!q.getPropertyName(K.key))return!1;if(K.value.type==="Identifier")return!0;return K.value.type==="AssignmentPattern"&&K.value.left.type==="Identifier"}).length;for(let K of Y.id.properties){if(K.type==="RestElement"){if(K.argument.type==="Identifier")Q.restPropLocals.add(K.argument.name);continue}let W=q.getPropertyName(K.key);if(!W)continue;let G,R;if(K.value.type==="Identifier")G=K.value.name;else{let z=K.value;G=z.left.name,R=z.right}if(!G)continue;if(q.trackPropLocalName(W,G),W==="children")Q.snippetPropLocals.add(G);let O=B7(Q,q,K)??(V===1?H:void 0),$=e6(Q,Y.start,W),{init:M,bindable:F}=n6(R),P=M==null?{isFunction:!1}:V1(q,Q,M),{value:w,type:N,isFunction:v,defaultValue:g}=P,f=$?.type===void 0&&O?.type===void 0?P.resolvedType:void 0,{type:a,typeSource:x,description:Z8,params:C,returnType:J,isFunction:X}=N1({explicitType:$?.type,typeSeed:N,inferredTypeForSource:N,jsdocType:O?.type,jsdocDescription:O?.description,jsdocParams:O?.params,jsdocReturnType:O?.returnType,resolvedType:f,resolvedDescription:P.resolvedDescription,resolvedParams:P.resolvedParams,resolvedReturnType:P.resolvedReturnType,initializerIsFunction:v,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(F)Q.reactive_vars.add(W);w1(q,Q,W,{name:W,...G===W?{}:{localName:G},kind:"let",description:Z8,binding:O?.binding,deprecated:O?.deprecated,tags:O?.tags,...F?{bindable:!0}:{},type:a,typeSource:x,value:w,defaultValue:g,params:C,returnType:J,isFunction:X,isFunctionDeclaration:!1,isRequired:M==null&&$?.optional!==!0,constant:!1,reactive:F,source:V8(Q,K)})}}}function N7(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,Y]of Array.from(q.events.entries())){if(Y.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let H=`on${Z}`,V=q.props.get(H);if(!V)continue;let K=V.type!==void 0||V.params!==void 0||V.returnType!==void 0,W=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...V,description:V.description??Y.description,type:K?V.type:W,typeSource:K?V.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var T7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function W0(q){if(!q||typeof q!=="object")return;d8(q,{enter(Q){if(!T7.has(Q.type))return;let Z=Q.expression;while(Z&&T7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}var Wq=/^\s*$/;function k7(q,Q,Z){let Y=Q+1;while(Y<q.length){if(q[Y]==="\\"){Y+=2;continue}if(q[Y]===Z)return Y+1;Y++}return Y}function E7(q,Q){let Z=Q+1,Y=0;while(Z<q.length){let H=q[Z];if(H==="\\"){Z+=2;continue}if(Y===0){if(H==="`")return Z+1;if(H==="$"&&q[Z+1]==="{"){Y=1,Z+=2;continue}Z++;continue}if(H==="{")Y++;else if(H==="}")Y--;else if(H==='"'||H==="'"){Z=k7(q,Z,H);continue}else if(H==="`"){Z=E7(q,Z);continue}Z++}return Z}function Gq(q,Q){let Z=[],Y=q.length,H=0;while(H<Y){let V=q[H];if(V==='"'||V==="'"){H=k7(q,H,V);continue}if(V==="`"){H=E7(q,H);continue}if(V==="/"&&q[H+1]==="/"){let K=H+2;while(K<Y&&q[K]!==`
17
- `)K++;H=K;continue}if(V==="/"&&q[H+1]==="*"){let K=H,W=H+2;while(W<Y&&!(q[W]==="*"&&q[W+1]==="/"))W++;let G=Math.min(W+2,Y),R=q.slice(K,G);Z.push({end:G+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),H=G;continue}H++}return Z}function b7(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let Y=q;if(Y.type==="FunctionDeclaration"){if(Y.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q});return}if(Y.type==="VariableDeclaration"){for(let H of Y.declarations??[])if(H?.id?.type==="Identifier"&&H.id.name)Z.push({name:H.id.name,start:Q})}}function zq(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let Y=Z;if(Y.start===void 0)continue;if(Y.type==="ExportNamedDeclaration"&&Y.declaration)b7(Y.declaration,Y.start,Q);else b7(Y,Y.start,Q)}return Q}function jq(q,Q,Z){let Y;for(let H of q){if(H.end>Q)break;if(!H.isJsDoc)continue;if(!Wq.test(Z.slice(H.end,Q)))continue;Y=H}return Y}function v7(q,Q){let Z=new Map;if(!q.source)return Z;let Y=[q.parsed?.module,q.parsed?.instance],H=[],V=[];for(let K of Y){let W=K?.content;if(!W?.body||W.start===void 0||W.end===void 0)continue;H.push(...Gq(q.source.slice(W.start,W.end),W.start)),V.push(...zq(W.body))}H.sort((K,W)=>K.end-W.end);for(let K of V){let W=jq(H,K.start,q.source);if(!W)continue;let G=P1(W.text,{spacing:"preserve"}),{type:R,description:O}=R9(G);if(!R)continue;Z.set(K.name,{type:Q.aliasType(R.type),description:O||R.description})}return Z}function n8(q,Q,Z){let Y=Z._,H=!1;function V(W,{next:G,state:R}){G(R)}function K(W,G,R){if(H)return;if(!W.type)return;let O,$={},M={path:G,state:R,next:(P=R)=>{G.push(W);for(let w in W){if(w==="type")continue;let N=W[w];if(N&&typeof N==="object")if(Array.isArray(N)){let v={},g=N.length,f=!1;for(let a=0;a<g;a++){let x=N[a];if(x&&typeof x==="object"){let Z8=K(x,G,P);if(Z8)v[a]=Z8,f=!0}}if(f)$[w]=N.map((a,x)=>v[x]??a)}else{let v=K(N,G,P);if(v)$[w]=v}}if(G.pop(),Object.keys($).length>0)return h7(W,$)},stop:()=>{H=!0},visit:(P,w=R)=>{G.push(W);let N=K(P,G,w)??P;return G.pop(),N}},F=Z[W.type]??V;if(Y){let P;if(O=Y(W,{...M,next:(w=R)=>{return R=w,P=F(W,{...M,state:w}),P}}),!O&&P)O=P}else O=F(W,M);if(!O){if(Object.keys($).length>0)O=h7(W,$)}if(O)return O}return K(q,[],Q)??q}function h7(q,Q){let Z={},Y=Object.getOwnPropertyDescriptors(q);for(let H in Y)Object.defineProperty(Z,H,Y[H]);for(let H in Q)Z[H]=Q[H];return Z}var f7=/^[ \t\r\n]+/;var y7=/[ \t\r\n]+$/,$9=/[^ \t\r\n]/;var G0=/[^\n]/g;var BK=Symbol("uninitialized"),FK=Symbol("filename"),MK=Symbol("hmr");var g7="http://www.w3.org/2000/svg",_7="http://www.w3.org/1998/Math/MathML",x7=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function A9(q,Q){if(Q.length===0)return null;let Y=new l7(Q).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var L9=2,C9=3;function Oq(q,Q){if(q===null&&Q===null)throw"Trying to compare two null values";if(q===null||Q===null)return 0;return q=String(q),Q=String(Q),1-Uq(q,Q)/Math.max(q.length,Q.length)}function Uq(q,Q){let Z=[],Y=0;for(let H=0;H<=Q.length;H++)for(let V=0;V<=q.length;V++){let K;if(H&&V)if(q.charAt(V-1)===Q.charAt(H-1))K=Y;else K=Math.min(Z[V],Z[V-1],Y)+1;else K=H+V;Y=Z[V],Z[V]=K}return Z.pop()}var Rq=/[^\w, ]+/;function Bq(q,Q=2){let Z="-"+q.toLowerCase().replace(Rq,"")+"-",Y=Q-Z.length,H=[];if(Y>0)for(let V=0;V<Y;++V)q+="-";for(let V=0;V<Z.length-Q+1;++V)H.push(Z.slice(V,V+Q));return H}function u7(q,Q=2){let Z={},Y=Bq(q,Q),H=0;for(H;H<Y.length;++H)if(Y[H]in Z)Z[Y[H]]+=1;else Z[Y[H]]=1;return Z}function m7(q,Q){return Q[0]-q[0]}class l7{exact_set={};match_dict={};items={};constructor(q){for(let Q=L9;Q<C9+1;++Q)this.items[Q]=[];for(let Q=0;Q<q.length;++Q)this.add(q[Q])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let Z=L9;for(Z;Z<C9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),Y=this.items[Q]||[],H=Y.length;Y.push(0);let V=u7(Z,Q),K=0,W,G;for(W in V)if(G=V[W],K+=Math.pow(G,2),W in this.match_dict)this.match_dict[W].push([H,G]);else this.match_dict[W]=[[H,G]];let R=Math.sqrt(K);Y[H]=[R,Z],this.items[Q]=Y,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let Y=C9;Y>=L9;--Y){let H=this.__get(q,Y);if(H.length>0)return H}return null}__get(q,Q){let Z=q.toLowerCase(),Y={},H=u7(Z,Q),V=this.items[Q],K=0,W,G,R,O,$;for(W in H)if(G=H[W],K+=Math.pow(G,2),W in this.match_dict)for(R=0;R<this.match_dict[W].length;++R)if(O=this.match_dict[W][R][0],$=this.match_dict[W][R][1],O in Y)Y[O]+=G*$;else Y[O]=G*$;let M=Math.sqrt(K),F=[],P;for(let v in Y)P=Y[v],F.push([P/(M*V[v][0]),V[v][1]]);F.sort(m7);let w=[],N=Math.min(50,F.length);for(let v=0;v<N;++v)w.push([Oq(F[v][1],Z),F[v][1]]);F=w,F.sort(m7),w=[];for(let v=0;v<F.length;++v)if(F[v][0]===F[0][0])w.push([F[v][0],this.exact_set[F[v][1]]]);return w}}function Fq(q,Q){return q.start<=Q&&Q<q.end}function c7(q,Q={}){let{offsetLine:Z=0,offsetColumn:Y=0}=Q,H=0,V=q.split(`
18
- `).map((G,R)=>{let O=H+G.length+1,$={start:H,end:O,line:R};return H=O,$}),K=0;function W(G,R){if(typeof G==="string")G=q.indexOf(G,R??0);if(G===-1)return;let O=V[K],$=G>=O.end?1:-1;while(O){if(Fq(O,G))return{line:Z+O.line,column:Y+G-O.start,character:G};K+=$,O=V[K]}}return W}var Mq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function w9(q){return Mq.includes(q)||q.toLowerCase()==="!doctype"}var $q=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function i7(q){return $q.includes(q)}var Lq=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var AK=[...Lq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Cq=["$state","$state.raw","$derived","$derived.by"],wK=[...Cq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var d7=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u;var I9=[],O0,j0="(unknown)",Aq="<unknown>",z0,U0=[],wq,Iq=!1,z8;function p7(q){z0=q,U0=z0.split(`
19
- `);let Q=c7(z0,{offsetLine:1});z8=(Z)=>{let Y=Q(Z);if(!Y)throw Error("An impossible situation occurred");return Y}}var P9,S9=[],o7=new Map;function n7(q){wq=!1,Iq=!1,Aq=j0,z0="",U0=[],O0=(q.filename??j0).replace(/\\/g,"/"),P9=q.warning??(()=>!0),I9=[]}var Pq=/^\t+/;function D9(q){return q.replace(Pq,(Q)=>Q.split("\t").join(" "))}function Sq(q,Q){let Z=U0,Y=Math.max(0,q-2),H=Math.min(q+3,Z.length),V=String(H+1).length;return Z.slice(Y,H).map((K,W)=>{let G=Y+W===q,R=String(W+Y+1).padStart(V," ");if(G){let O=" ".repeat(V+2+D9(K.slice(0,Q)).length)+"^";return`${R}: ${D9(K)}
20
- ${O}`}return`${R}: ${D9(K)}`}).join(`
21
- `)}class b1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,O0!==j0)this.filename=O0;if(Z){if(this.position=Z,this.start=z8(Z[0]),this.end=z8(Z[1]),this.start&&this.end)this.frame=Sq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
5
+ ${j}
6
+ }`:`{ ${j} }`}var L3=/[A-Za-z_$][\w$]*/g;function C3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((j)=>j.trim()));for(let[j]of q.matchAll(L3))if(Z.has(j))return!0;return!1}function H9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function q7(q,Q,Z){return H9(q,Q)?.props.get(Z)}function Q7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"right"in q&&q.right&&typeof q.right==="object"&&"name"in q.right&&typeof q.right.name==="string")return q.right.name;return}function Z7(q){if(!q||typeof q!=="object"||!("type"in q))return;if(q.type==="Identifier"&&"name"in q&&typeof q.name==="string")return q.name;if(q.type==="TSQualifiedName"&&"left"in q&&q.left&&typeof q.left==="object")return Z7(q.left);return}function Q0(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return H8(q,Z+1,j)?.trim()}function j7(q,Q){let Z=Q?.start,j=Q?.end;if(Z===void 0||j===void 0)return;return H8(q,Z,j)?.trim()}function P8(q,Q,Z,j,Y=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":P8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,j,Y);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":P8(q,Q.typeAnnotation,Z,j,Y);return;case"TSIntersectionType":case"TSUnionType":for(let K of Q.types??[])P8(q,K,Z,j,Y);return;case"TSTypeLiteral":for(let K of Q.members??[]){if(K?.type!=="TSPropertySignature")continue;P8(q,K.typeAnnotation?.typeAnnotation,Z,j,Y)}return;case"TSTypeReference":{let K=Z7(Q.typeName);if(K){if(q.typeImportBindingsByLocalName.has(K))Z.add(K);let J=q.localTypeDeclarationsByName.get(K);if(J&&!Y.has(K))j.add(K),Y.add(K),P8(q,J.node,Z,j,Y),Y.delete(K)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let J=Q.typeParameters;for(let X of J.params??[])P8(q,X,Z,j,Y)}return}case"TSArrayType":case"TSRestType":case"TSOptionalType":case"TSIndexedAccessType":case"TSTypeOperator":case"TSExpressionWithTypeArguments":case"TSTupleType":case"TSConditionalType":case"TSInferType":case"TSMappedType":case"TSFunctionType":case"TSConstructorType":case"TSTypeQuery":case"TSImportType":case"TSLiteralType":case"TSTypePredicate":case"TSNamedTupleMember":break;default:break}for(let K of Object.values(Q)){if(!K||typeof K!=="object")continue;if(Array.isArray(K)){for(let J of K){if(!J||typeof J!=="object"||!("type"in J))continue;P8(q,J,Z,j,Y)}continue}if("type"in K)P8(q,K,Z,j,Y)}}function A3(q,Q){let Z=new Map;for(let j of Array.from(Q).sort()){let Y=q.typeImportBindingsByLocalName.get(j);if(!Y)continue;let K=Z.get(Y.source)??{default:[],named:[],namespace:[]};if(Y.specifierType==="default")K.default.push(Y.localName);else if(Y.specifierType==="namespace")K.namespace.push(Y.localName);else K.named.push({imported:Y.importedName,local:Y.localName});Z.set(Y.source,K)}return Array.from(Z.entries()).sort(([j],[Y])=>j.localeCompare(Y)).map(([j,Y])=>{if(Y.namespace.length>0)return Y.namespace.map((W)=>`import type * as ${W} from "${j}";`).join(`
7
+ `);let K=Y.named.map(({imported:W,local:R})=>{if(!W||W===R)return R;return`${W} as ${R}`}),J=Y.default[0],X=K.length>0?`{ ${K.join(", ")} }`:"";if(J&&X)return`import type ${J}, ${X} from "${j}";`;if(J)return`import type ${J} from "${j}";`;return`import type ${X} from "${j}";`})}function Y7(q){if(q.typedRunesPropsDeclarations.length!==1)return;let[Q]=q.typedRunesPropsDeclarations;if(!Q.canonicalType)return;let Z=Array.from(Q.referencedLocalTypes).map((j)=>q.localTypeDeclarationsByName.get(j)).filter((j)=>j!==void 0).sort((j,Y)=>j.start-Y.start).map((j)=>j.code);return{canonicalPropsType:Q.canonicalType,canonicalPropNames:Array.from(Q.props.keys()).sort(),localTypeDeclarations:Z,typeImportStatements:A3(q,Q.referencedImportedTypes),referencesComponentGenerics:C3(Q.canonicalType,q.generics)}}var I3=/^[A-Za-z_$][\w$]*/,P3=/[A-Za-z_$][\w$]*/g,H7=/^(?:const|in|out)\s+/;function V1(q){let Q=[],Z=0,j=0;for(let Y=0;Y<q.length;Y++){let K=q[Y];if(K==="<"||K==="("||K==="["||K==="{")Z++;else if(K===">"||K===")"||K==="]"||K==="}")Z=Math.max(Z-1,0);else if(K===","&&Z===0)Q.push(q.slice(j,Y)),j=Y+1}return Q.push(q.slice(j)),Q}function J7(q){let Q=V1(q).map((j)=>j.trim()).filter((j)=>j.length>0);if(Q.length===0)return null;return[Q.map((j)=>{let Y=j;while(H7.test(Y))Y=Y.replace(H7,"");return Y.match(I3)?.[0]??j}).join(", "),Q.join(", ")]}function K7(q,Q,Z){let j=q.scriptGenericsAttribute?.value;if(!j)return;for(let[Y]of j.matchAll(P3)){if(q.typeImportBindingsByLocalName.has(Y))Q.add(Y);if(Z.has(Y))continue;let K=q.localTypeDeclarationsByName.get(Y);if(!K)continue;Z.add(Y),P8(q,K.node,Q,Z)}}var f8;(function(q){q.start="/**",q.nostart="/***",q.delim="*",q.end="*/"})(f8||(f8={}));function J9(q){return/^\s+$/.test(q)}function V7(q){let Q=q.match(/\r+$/);return Q==null?["",q]:[q.slice(-Q[0].length),q.slice(0,-Q[0].length)]}function o8(q){let Q=q.match(/^\s+/);return Q==null?["",q]:[q.slice(0,Q[0].length),q.slice(Q[0].length)]}function X7(q){return q.split(/\n/)}function W7(q={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},q)}function K9(q={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},q)}var S3=/^@[^\s/]+(?=\s|$)/;function V9({fence:q="```"}={}){let Q=D3(q),Z=(j,Y)=>Q(j)?!Y:Y;return function(Y){let K=[[]],J=!1;for(let X of Y){if(S3.test(X.tokens.description)&&!J)K.push([X]);else K[K.length-1].push(X);J=Z(X.tokens.description,J)}return K}}function D3(q){if(typeof q==="string")return(Q)=>Q.split(q).length%2===0;return q}function X9({startLine:q=0,markers:Q=f8}={}){let Z=null,j=q;return function(K){let J=K,X=K9();if([X.lineEnd,J]=V7(J),[X.start,J]=o8(J),Z===null&&J.startsWith(Q.start)&&!J.startsWith(Q.nostart))Z=[],X.delimiter=J.slice(0,Q.start.length),J=J.slice(Q.start.length),[X.postDelimiter,J]=o8(J);if(Z===null)return j++,null;let W=J.trimRight().endsWith(Q.end);if(X.delimiter===""&&J.startsWith(Q.delim)&&!J.startsWith(Q.end))X.delimiter=Q.delim,J=J.slice(Q.delim.length),[X.postDelimiter,J]=o8(J);if(W){let R=J.trimRight();X.end=J.slice(R.length-Q.end.length),J=R.slice(0,-Q.end.length)}if(X.description=J,Z.push({number:j,source:K,tokens:X}),j++,W){let R=Z.slice();return Z=null,R}return null}}function W9({tokenizers:q}){return function(Z){var j;let Y=W7({source:Z});for(let K of q)if(Y=K(Y),(j=Y.problems[Y.problems.length-1])===null||j===void 0?void 0:j.critical)break;return Y}}function Z0(){return(q)=>{let{tokens:Q}=q.source[0],Z=Q.description.match(/\s*(@(\S+))(\s*)/);if(Z===null)return q.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:q.source[0].number,critical:!0}),q;if(Z[1].includes("/"))return q;return Q.tag=Z[1],Q.postTag=Z[3],Q.description=Q.description.slice(Z[0].length),q.tag=Z[2],q}}function j0(q="compact"){let Q=b3(q);return(Z)=>{let j=0,Y=[],K=!1,J=!0;for(let{tokens:R}of Z.source.values()){let O="";if(!K&&R.description.trim())K=!0;else if(!K)continue;if(J&&R.description[0]!=="{")return Z;J=!1;for(let M of R.description){if(M==="{")j++;if(M==="}")j--;if(O+=M,j===0)break}if(Y.push([R,O]),j===0)break}if(!K)return Z;if(j!==0)return Z.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:Z.source[0].number,critical:!0}),Z;let X=[],W=Y[0][0].postDelimiter.length;for(let[R,[O,M]]of Y.entries()){if(O.type=M,R>0)O.type=O.postDelimiter.slice(W)+M,O.postDelimiter=O.postDelimiter.slice(0,W);[O.postType,O.description]=o8(O.description.slice(M.length)),X.push(O.type)}return X[0]=X[0].slice(1),X[X.length-1]=X[X.length-1].slice(0,-1),Z.type=Q(X),Z}}var N3=(q)=>q.trim();function b3(q){if(q==="compact")return(Q)=>Q.map(N3).join("");else if(q==="preserve")return(Q)=>Q.join(`
8
+ `);else return q}var z7=(q)=>q&&q.startsWith('"')&&q.endsWith('"');function Y0(){let q=(Q,{tokens:Z},j)=>Z.type===""?Q:j;return(Q)=>{let Z=Q.source.reduce(q,0),j;if(Q.type)do{if({tokens:j}=Q.source[Z],j.description.trim())break;Z++}while(Q.source[Z]);else({tokens:j}=Q.source[Z]);let Y=j.description.trimStart(),K=Y.split('"');if(K.length>1&&K[0]===""&&K.length%2===1)return Q.name=K[1],j.name=`"${K[1]}"`,[j.postName,j.description]=o8(Y.slice(j.name.length)),Q;let J=0,X="",W=!1,R;for(let M of Y){if(J===0&&J9(M))break;if(M==="[")J++;if(M==="]")J--;X+=M}if(J!==0)return Q.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:Q.source[0].number,critical:!0}),Q;let O=X;if(X[0]==="["&&X[X.length-1]==="]"){W=!0,X=X.slice(1,-1);let M=X.split("=");if(X=M[0].trim(),M[1]!==void 0)R=M.slice(1).join("=").trim();if(X==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(R==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(!z7(R)&&/=(?!>)/.test(R))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q}if(!W){let M=X.search(/=(?!>)/);if(M!==-1){let $=X.slice(0,M).trim(),B=X.slice(M+1).trim();if($==="")return Q.problems.push({code:"spec:name:empty-name",message:"empty name",line:Q.source[0].number,critical:!0}),Q;if(B==="")return Q.problems.push({code:"spec:name:empty-default",message:"empty default value",line:Q.source[0].number,critical:!0}),Q;if(/^[\p{ID_Start}$_\.][\p{ID_Continue}$_\u200c\u200d\.]*=/u.test(X)){if(!z7(B)&&/=(?!>)/.test(B))return Q.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:Q.source[0].number,critical:!0}),Q;X=$,R=B}}}if(Q.optional=W,Q.name=X,j.name=O,R!==void 0)Q.default=R;return[j.postName,j.description]=o8(Y.slice(j.name.length)),Q}}function H0(q="compact",Q=f8){let Z=z9(q);return(j)=>{return j.description=Z(j.source,Q),j}}function z9(q){if(q==="compact")return T3;if(q==="preserve")return v3;return q}function T3(q,Q=f8){return q.map(({tokens:{description:Z}})=>Z.trim()).filter((Z)=>Z!=="").join(" ")}var k3=(q,{tokens:Q},Z)=>Q.type===""?q:Z,E3=({tokens:q})=>(q.delimiter===""?q.start:q.postDelimiter.slice(1))+q.description;function v3(q,Q=f8){if(q.length===0)return"";if(q[0].tokens.description===""&&q[0].tokens.delimiter===Q.start)q=q.slice(1);let Z=q[q.length-1];if(Z!==void 0&&Z.tokens.description===""&&Z.tokens.end.endsWith(Q.end))q=q.slice(0,-1);return q=q.slice(q.reduce(k3,0)),q.map(E3).join(`
9
+ `)}function G9({startLine:q=0,fence:Q="```",spacing:Z="compact",markers:j=f8,tokenizers:Y=[Z0(),j0(Z),Y0(),H0(Z)]}={}){if(q<0||q%1>0)throw Error("Invalid startLine");let K=X9({startLine:q,markers:j}),J=V9({fence:Q}),X=W9({tokenizers:Y}),W=z9(Z);return function(R){let O=[];for(let M of X7(R)){let $=K(M);if($===null)continue;let B=J($),P=B.slice(1).map(X);O.push({description:W(B[0],j),tags:P,source:$,problems:P.reduce((A,N)=>A.concat(N.problems),[])})}return O}}function h3(q){return q.start+q.delimiter+q.postDelimiter+q.tag+q.postTag+q.type+q.postType+q.name+q.postName+q.description+q.end+q.lineEnd}function O9(){return(q)=>q.source.map(({tokens:Q})=>h3(Q)).join(`
10
+ `)}var f3={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0};var BH=Object.keys(f3);function P1(q,Q={}){return G9(Q)(q)}var yH=O9();var y3=null;function g3(q,Q,Z){let j={value:void 0,replace:!1};if(!Z||typeof Z!=="object"||!("type"in Z))return j;if(Z.type==="Identifier")j.value=Z.name,j.replace=!0;else if(Z.type==="Literal")j.value=String(Z.value);else if(Z.type==="MemberExpression")j.value=e1(q,Q,Z);else if((Z.type==="ObjectExpression"||Z.type==="TemplateLiteral")&&"start"in Z&&"end"in Z&&typeof Z.start==="number"&&typeof Z.end==="number")j.value=H8(q,Z.start,Z.end);return j}function G7(q,Q,Z){let j={};for(let Y of Z.properties){if(Y.type!=="Property"||Y.computed)continue;let K=Q.getPropertyName(Y.key);if(!K)continue;j[K]=g3(q,Q,Y.value)}return j}function _3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let K=Q,J=q.propLocalToPublicName.get(K.name);if(!J)return null;return{publicName:J,trackingName:K.name}}if(Q.type!=="MemberExpression")return null;let Z=Q,j=Z.object&&typeof Z.object==="object"&&"type"in Z.object&&Z.object.type==="Identifier"?Z.object.name:void 0;if(!j||!q.wholePropsLocals.has(j))return null;let Y;if(!Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property){if(Z.property.type==="Identifier")Y=Z.property.name;else if(Z.property.type==="Literal"&&Z.property.value!=null)Y=String(Z.property.value)}else if(Z.computed&&Z.property&&typeof Z.property==="object"&&"type"in Z.property&&Z.property.type==="Literal"&&"value"in Z.property&&Z.property.value!=null)Y=String(Z.property.value);if(!Y)return null;return{publicName:Y,trackingName:Y}}function O7(q,Q){let Z=Q;if(Z&&typeof Z==="object"&&"type"in Z&&Z.type==="ChainExpression")Z=Z.expression;if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return null;let j=Z;if(!j.callee||typeof j.callee!=="object"||!("type"in j.callee))return null;let Y=_3(q,j.callee);if(!Y)return null;return{...Y,arguments:j.arguments}}function S1(q,{slot_name:Q,slot_props:Z,slot_fallback:j,slot_description:Y,slot_deprecated:K,slot_tags:J,source:X}){let W=Q===void 0||Q==="",R=W?y3:Q??"",O=I8(j),M=Z===void 0||Z===""?void 0:Z,$=Y?.trim()||void 0;if(q.slots.has(R)){let B=q.slots.get(R);if(B)q.slots.set(R,{...B,default:B.default??W,fallback:O,slot_props:B.slot_props===void 0?M:B.slot_props,description:B.description||$,deprecated:B.deprecated??K,tags:B.tags||J,source:X||B.source})}else q.slots.set(R,{name:R,default:W,fallback:O,slot_props:Z,description:$,deprecated:K,tags:J,source:X})}var x3=/\s*=\s*/;function U7(q){let Q=q.indexOf("<");if(Q===-1||!q.endsWith(">"))return q;let Z=q.slice(0,Q),j=q.slice(Q+1,-1),Y=V1(j).map((K)=>K.trim().replace(x3," = ")).join(", ");return`${Z}<${Y}>`}var u3=/^\s*$/,m3=/;$/,l3=/^-\s*/;function X1(q){if(q===void 0)return;let Q=q.replace(l3,"").trim();return Q===""?"":Q}function D1(q){if(!q||q.length===0)return;return q[0].tokens.description}var R7=new Set(["since","example"]);function B7(q){if(!q||q.length===0)return"";let Q=[];for(let Z of q){let j=Z.tokens;if((j.end??"").trim()==="*/")break;if(j.tag){let Y=`${j.name??""}${j.postName??""}${j.description??""}`.trimEnd();if(Y)Q.push(Y)}else Q.push(`${j.postDelimiter??""}${j.description??""}`)}return Q.join(`
11
+ `)}function c3(q){let Q=q.trim();return Q===""?!0:Q}function F7(q,Q){return c3(`${q??""}${Q?` ${Q}`:""}`)}function i3(q){let Q=q.trim().replace(m3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,j=null;for(let Y=0;Y<Q.length;Y++){let K=Q[Y];if(j!==null){if(K==="\\"){Y++;continue}if(K===j)j=null;continue}if(K==='"'||K==="'"||K==="`"){j=K;continue}if(K==="{"||K==="["||K==="(")Z++;else if(K==="}"||K==="]"||K===")"){if(Z--,Z===0&&Y<Q.length-1)return!1}}return Z===0}function d3(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function R9(q){let Q=q[0]?.tags??[],Z=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),j,Y=[],K,J,X,W=[],R=[];for(let O of Q)if(O.tag==="type")j=O;else if(O.tag==="param")Y.push(O);else if(O.tag==="returns"||O.tag==="return")K=O;else if(O.tag==="deprecated")X??=F7(O.name,O.description);else if(R7.has(O.tag))R.push(O);else if(O.tag==="bindable"){if(O.type)continue;let M=`${O.name}${O.description?` ${O.description}`:""}`.trim();if(M==="readonly"||M==="writable")J??=M}else if(!Z.has(O.tag))W.push(O);return{type:j,param:Y,returns:K,binding:J,deprecated:X,additional:W,passthrough:R,description:q[0]?.description}}function p3(q){if(!q||q.length===0)return;let Q=q[q.length-1];return Q&&typeof Q==="object"&&"value"in Q?Q:void 0}function o3(q,Q,Z){if(!Q||Q.length===0||Z===void 0||!q.source)return;for(let j=Q.length-1;j>=0;j--){let Y=Q[j];if(!Y||typeof Y!=="object"||!("value"in Y)||!("end"in Y))continue;if(typeof Y.end!=="number")continue;let K=q.source.slice(Y.end,Z);if(u3.test(K))return Y}return}function q1(q,Q,Z){if(!Z?.leadingComments)return;let j=o3(q,Z.leadingComments,Z.start);if(!j)return;return n3(Q,[j])}function M7(q,Q,Z){if(!Z?.leadingComments)return;return q1(q,Q,Z)}function n3(q,Q){if(!Q)return;let Z=p3(Q);if(!Z)return;let j=P1(d3(Z.value),{spacing:"preserve"}),{type:Y,param:K,returns:J,binding:X,deprecated:W,additional:R,passthrough:O,description:M}=R9(j),$,B,P,A;if(Y)$=q.aliasType(Y.type);if(K.length>0)B=K.filter((g)=>!g.name.includes(".")).map((g)=>({name:g.name,type:q.aliasType(g.type),description:X1(g.description),optional:g.optional||!1}));if(J)P=q.aliasType(J.type);let N=I8(M?.trim());if(N||R.length>0){let g=[];if(N)g.push(N);for(let f of R){let a=`@${f.tag}${f.name?` ${f.name}`:""}${f.description?` ${f.description}`:""}`;g.push(a)}A=g.join(`
12
+ `)}let v=O.length>0?O.map((g)=>({name:g.tag,body:B7(g.source)})):void 0;return{type:$,params:B,returnType:P,description:A,binding:X,deprecated:W,tags:v}}function $7(q,Q,Z=q.source){if(!Z)return;let j=0;for(let{tags:Y,description:K,source:J}of P1(Z,{spacing:"preserve"})){let X=J.map((T)=>T.source).join(`
13
+ `),W=Z.indexOf(X,j),R=W===-1?void 0:W;if(W!==-1)j=W+X.length;let O,M,$,B,P,A,N=[],v=[],g,f,a,x=[],Z8,L,H=[],V,z=!1,G=!0,F=[],w,C=new Map,D=new Set,S=new Set;for(let T of Y)if(T.source&&T.source.length>0)D.add(T.source[0].number);for(let T of J)if(!T.tokens.tag&&T.tokens.description&&T.tokens.description.trim()!=="}")C.set(T.number,T.tokens.description);let I=(T)=>{if(!T||T.length===0)return;let r=T[0].number,_=[],s=[],U8=!1;for(let p=r-1;p>=1;p--){if(D.has(p))break;let t=C.get(p);if(t)_.unshift(t),s.unshift(p),U8=!0;else if(U8){let l=J.find((e)=>e.number===p);if(!(!l||!l.tokens.tag&&(!l.tokens.description||l.tokens.description.trim()==="")))break}}if(_.length===0)return;for(let p of s)S.add(p);return _.join(`
14
+ `).trim()},h=()=>{if(O!==void 0){let T=M&&M!=="object"&&M!=="Object"?M:void 0,r;if(T)r=T;else if(v.length>0)r=Y9(v,O,!0);else r=M||"";if(A!==void 0){let _;for(let p of Y){let t=p.source?.[0]?.number;if(typeof t!=="number")continue;if(t<=A)continue;if(p.tag==="property"||p.tag==="type")continue;_=t;break}let s=[],U8=Array.from(C.keys()).sort((p,t)=>p-t);for(let p of U8){if(p<=A)continue;if(_!==void 0&&p>=_)continue;if(S.has(p))continue;let l=C.get(p)?.trim();if(l)s.push(l),S.add(p)}if(s.length>0){let p=s.join(`
15
+ `);$=$?`${$}
16
+ ${p}`:p}}I1(q,{name:O,detail:r,has_argument:!1,description:$,deprecated:B,tags:N.length>0?N:void 0,source:P}),q.eventDescriptions.set(O,$),q.jsDocEventNames.add(O),q.jsDocEventSources.set(O,P),v.length=0,O=void 0,M=void 0,$=void 0,B=void 0,P=void 0,A=void 0,N=[]}},c=()=>{if(g!==void 0){let T,r;if(x.length>0)T=Y9(x,void 0,!0),r=`type ${g} = ${T};`;else if(f)T=f,r=i3(T)?`interface ${g} ${T}`:`type ${g} = ${T};`;else T="{}",r=`type ${g} = ${T};`;q.typedefs.set(g,{type:T,name:g,description:I8(a),ts:r}),x.length=0,g=void 0,f=void 0,a=void 0}},m=()=>{if(Z8!==void 0){let _=`(${H.map(({name:U8,type:p,optional:t})=>{return`${U8}${t?"?":""}: ${p}`}).join(", ")}) => ${V||"void"}`,s=`type ${Z8} = ${_};`;q.typedefs.set(Z8,{type:_,name:Z8,description:I8(L),ts:s}),H.length=0,V=void 0,Z8=void 0,L=void 0}},n=Y.some((T)=>T.tag==="slot"||T.tag==="snippet"),Y8=Y.some((T)=>T.tag==="extends"||T.tag==="extendProps");for(let{tag:T,type:r,name:_,description:s,optional:U8,default:p,source:t}of Y){let l=Q.aliasType(r),M8=I(t);switch(T){case"extends":case"extendProps":if(q.extends={interface:_,import:l},G)G=!1;break;case"restProps":{let e=_?s?`${_} ${s}`:_:s,c8=X1(e)||M8;if(!c8&&G&&!z&&K)c8=K,z=!0;if(q.rest_props={type:"Element",name:l,description:c8||void 0},G)G=!1;break}case"slot":case"snippet":{let L8=X1(D1(t));if(!L8&&G&&!z&&K)L8=K,z=!0;if(!L8&&F.length===0)L8=M8;if(G)G=!1;S1(q,{slot_name:_,slot_props:l,slot_description:L8||void 0,slot_deprecated:w,slot_tags:F.length>0?[...F]:void 0,source:q9(q,J,t,R)}),F.length=0,w=void 0;break}case"event":{if(h(),O=_,M=l,A=t&&t.length>0?t[0].number:void 0,$=X1(D1(t))||M8,!$&&G&&!z&&K)$=K,z=!0;if(P=q9(q,J,t,R),G)G=!1;break}case"type":if(O!==void 0)M=l;break;case"param":if(Z8!==void 0)H.push({name:_,type:l,optional:U8||!1});break;case"returns":case"return":if(Z8!==void 0)V=l;break;case"property":{let e={name:_,type:l,description:X1(D1(t)),optional:U8||!1,default:p};if(O!==void 0)v.push(e);else if(g!==void 0)x.push(e);break}case"typedef":{if(c(),g=U7(_),f=l,a=X1(D1(t))||M8,!a&&G&&!z&&K)a=K,z=!0;if(G)G=!1;break}case"callback":{if(m(),Z8=U7(_),L=X1(D1(t))||M8,!L&&G&&!z&&K)L=K,z=!0;if(G)G=!1;break}case"generics":if(q.generics=[_,l],G)G=!1;break;case"template":{let e=_;if(l)e=`${_} extends ${l}`;if(p)e+=` = ${p}`;if(n&&!Y8){q.deferredSlotBlockGenerics.push({name:_,constraint:e});break}if(Q.accumulateGeneric(_,e),G)G=!1;break}case"deprecated":{let e=F7(_,s);if(O===void 0)w??=e;else B??=e;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let e={name:T,body:B7(t)};if(O!==void 0&&R7.has(T))N.push(e);else F.push(e)}break}}h(),c(),m()}}function s3({hasTypeScriptType:q,hasJSDocType:Q,inferredType:Z,finalType:j}){if(q)return"typescript";if(Q)return"jsdoc";if(Z!==void 0)return"default";if(j!==void 0)return"inferred";return"unknown"}function N1(q){let Q=q.explicitType??q.jsdocType??q.resolvedType??q.typeSeed,Z=q.jsdocParams??q.resolvedParams,j=q.jsdocReturnType??q.resolvedReturnType;if(q.isFunctionDeclaration&&Q==="() => any"&&j)Q=Z&&Z.length>0?`(${Z.map((X)=>`${X.name}${X.optional?"?":""}: ${X.type}`).join(", ")}) => ${j}`:`() => ${j}`;let Y=q.jsdocDescription??q.resolvedDescription;if(Y===void 0&&Q!==void 0)Y=q.typedefs?.get(Q)?.description;let K=s3({hasTypeScriptType:q.explicitType!==void 0,hasJSDocType:q.jsdocType!==void 0||q.jsdocParams!==void 0||q.jsdocReturnType!==void 0||q.resolvedType!==void 0,inferredType:q.inferredTypeForSource,finalType:Q}),J=q.initializerIsFunction||q.isFunctionDeclaration||q.inferIsFunctionFromTypeSignature===!0&&(!!q.jsdocParams?.length||q.jsdocReturnType!==void 0||!!q.jsdocType?.includes("=>")||!!q.resolvedType?.includes("=>")||!!q.explicitType?.includes("=>"));return{type:Q,typeSource:K,description:Y,params:Z,returnType:j,isFunction:J}}function a3(q){if(!q||typeof q!=="object"||!("type"in q))return;let Q=String(q.type);if(Q!=="InlineComponent"&&Q!=="Element")return;let Z="name"in q&&typeof q.name==="string"?q.name:void 0;if(!Z)return;let j=Q==="InlineComponent"?{type:"InlineComponent",name:Z}:{type:"Element",name:Z};if(Q==="Element"&&Z==="svelte:element"&&"tag"in q&&typeof q.tag==="string")j.thisValue=q.tag;return j}function w7(q,Q){if(q.rest_props!==void 0)return;let Z=a3(Q);if(Z)q.rest_props=Z}function R8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function J0(q,Q){for(let Z=q.activeScopes.length-1;Z>=0;Z-=1){let j=q.activeScopes[Z]?.get(Q);if(!j)continue;return j.kind==="prop"?j.publicPropName:void 0}return}function V8(q,Q=new Set){if(!q||typeof q!=="object"||!("type"in q))return Q;switch(q.type){case"Identifier":Q.add(q.name);break;case"AssignmentPattern":V8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)V8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")V8(Z.value,Q);else if(Z.type==="RestElement")V8(Z.argument,Q);break;case"RestElement":V8(q.argument,Q);break}return Q}function F9(q,Q){let Z=V8(Q);if(!Z)return;for(let j of Z){let Y=J0(q,j);if(Y)q.reactive_vars.add(Y)}}function K0(q){if(!q||typeof q!=="object"||!("type"in q))return!1;switch(String(q.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function L7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function r3(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function t3(q,Q,Z){let j=[];if(Z.id.type==="Identifier")return j.push({kind:"local",name:Z.id.name}),j;if(Z.id.type!=="ObjectPattern")return j;for(let Y of Z.id.properties){if(Y.type==="RestElement"){if(Y.argument.type==="Identifier")j.push({kind:"local",name:Y.argument.name});continue}if(Y.computed)continue;let K=q.getPropertyName(Y.key);if(!K)continue;let J;if(Y.value.type==="Identifier")J=Y.value.name;else if(Y.value.type==="AssignmentPattern"&&Y.value.left.type==="Identifier")J=Y.value.left.name;if(!J)continue;j.push({kind:"prop",name:J,publicPropName:K})}return j}function B9(q,Q,Z,j,Y){if(!u6(Q))return;let K=Y?.allowRunesProps??!1,J=Y?.forceProp??!1,X=Q;for(let W of X.declarations){if(K&&m8(e8(W.init),"$props")){for(let M of t3(q,X,W))R8(M.kind==="prop"?Z:j,M.name,M.kind==="prop"?{kind:"prop",publicPropName:M.publicPropName}:{kind:"local"});continue}let R=X.kind==="var"?j:Z,O=J?"prop":"local";for(let M of V8(W.id))R8(R,M,O==="prop"?{kind:"prop",publicPropName:M}:{kind:"local"})}}function e3(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")R8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let j of V8(Z))R8(Q,j,{kind:"local"})}function qq(q,Q,Z,j){if(!Array.isArray(Q))return;for(let Y of Q){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"VariableDeclaration":B9(q,Y,Z,j);break;case"FunctionDeclaration":if(Y.id?.name)R8(Z,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)R8(Z,Y.id.name,{kind:"local"});break}}}function Qq(q,Q,Z){if(!Z||typeof Z!=="object")return;let j="content"in Z&&Z.content&&typeof Z.content==="object"&&"body"in Z.content&&Array.isArray(Z.content.body)?Z.content:("body"in Z)&&Array.isArray(Z.body)?Z:void 0;if(!j||!("body"in j)||!Array.isArray(j.body))return;for(let Y of j.body){if(!Y||typeof Y!=="object"||!("type"in Y))continue;switch(Y.type){case"ImportDeclaration":for(let K of Y.specifiers??[])if(K.local?.name)R8(Q.componentScope,K.local.name,{kind:"local"});break;case"VariableDeclaration":B9(q,Y,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(Y.id?.name)R8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ClassDeclaration":if(Y.id?.name)R8(Q.componentScope,Y.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!Y.declaration||typeof Y.declaration!=="object"||!("type"in Y.declaration))break;if(Y.declaration.type==="VariableDeclaration")B9(q,Y.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(Y.declaration.type==="FunctionDeclaration"&&Y.declaration.id?.name)R8(Q.componentScope,Y.declaration.id.name,{kind:"prop",publicPropName:Y.declaration.id.name});break}}}function C7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Qq(q,Q,Q.parsed?.instance)}function A7(q){return{varScopeStack:[q.componentScope]}}function I7(q,Q,Z,j){if(!K0(j))return;let Y=r3(Q,j),K=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(j.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":e3(j,Y);break;case"BlockStatement":qq(q,j.body,Y,K);break;case"CatchClause":if("param"in j)for(let X of V8(j.param))R8(Y,X,{kind:"local"});break;case"EachBlock":{let X=j;for(let W of V8(X.context))R8(Y,W,{kind:"local"});if(typeof X.index==="string")R8(Y,X.index,{kind:"local"});else if(X.index&&"name"in X.index)R8(Y,X.index.name,{kind:"local"});break}case"ThenBlock":if("value"in j)for(let X of V8(j.value))R8(Y,X,{kind:"local"});break;case"CatchBlock":if("error"in j)for(let X of V8(j.error))R8(Y,X,{kind:"local"});break}if(L7(j))Z.varScopeStack.push(Y)}function P7(q,Q){if(L7(Q))q.varScopeStack.pop()}var Zq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function jq(q,Q){switch(Q?.type){case"MemberExpression":return Q.computed||q===Q.object;case"MethodDefinition":return!!Q.computed;case"MetaProperty":return q===Q.meta;case"PropertyDefinition":return Q.computed||q===Q.value;case"Property":return Q.computed||q===Q.value;case"ExportSpecifier":case"ImportSpecifier":return q===Q.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function Yq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Hq(q){let Q=new Set;if(!q||typeof q!=="object"||!("type"in q))return Q;switch(String(q.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let Z=q;if(Z.id?.name)Q.add(Z.id.name);for(let j of Z.params??[])V8(j,Q);break}case"BlockStatement":V0(q.body,Q);break;case"CatchClause":V8(q.param,Q);break;case"EachBlock":{let Z=q;if(V8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":V8(q.value,Q);break;case"CatchBlock":V8(q.error,Q);break}return Q}function V0(q,Q){if(!Array.isArray(q))return;for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;switch(String(Z.type)){case"ImportDeclaration":for(let j of Z.specifiers??[])if(j.local?.name)Q.add(j.local.name);break;case"VariableDeclaration":for(let j of Z.declarations??[])V8(j.id,Q);break;case"FunctionDeclaration":case"ClassDeclaration":{let j=Z.id?.name;if(j)Q.add(j);break}case"ExportNamedDeclaration":{let j=Z.declaration;if(j&&typeof j==="object"&&"type"in j)V0([j],Q);break}}}}function M9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],j=!1;return d8(q,{enter(Y,K){if(j){this.skip();return}if(K0(Y))Z.push(Hq(Y));if(K&&Y.type==="Identifier"&&Zq.has(Y.name)&&!K.type.startsWith("TS")&&jq(Y,K)&&!Yq(Y.name,Z))j=!0,this.skip()},leave(Y){if(K0(Y))Z.pop()}}),j}function S7(q){if(!q||typeof q!=="object")return;if("content"in q){let Q=q.content,Z=Q&&typeof Q==="object"&&"body"in Q?Q.body:void 0;if(Array.isArray(Z))return Z}if("body"in q&&Array.isArray(q.body))return q.body;return}function D7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;V0(S7(Q.module),Z);let j=new Set;return V0(S7(Q.instance),j),M9(Q.module,[Z])||M9(Q.instance,[Z,j])||M9(Q.html,[Z,j])?"runes":"legacy"}var Jq=/[A-Za-z_$][\w$]*/g;function Kq(q,Q,Z){let j=new Map,Y=Q.typeParameters?.params,K=Z.typeArguments?.params;if(!Y?.length||!K?.length)return j;for(let J=0;J<Y.length;J++){let X=Y[J]?.name,W=K[J];if(!X||W?.start===void 0||W?.end===void 0)continue;let R=H8(q,W.start,W.end)?.trim();if(R)j.set(X,R)}return j}function Vq(q,Q){if(Q.size===0)return q;return q.replace(Jq,(Z)=>Q.get(Z)??Z)}function b1(q,Q,Z,j,Y=new Set){let K=new Map;if(!Z?.type)return K;let J=(X)=>{for(let W of X){if(W?.type!=="TSPropertySignature"||W.computed)continue;if(!W.key)continue;let R=q.getPropertyName(W.key);if(!R)continue;let O=W.typeAnnotation?.start,M=W.typeAnnotation?.end;if(O===void 0||M===void 0)continue;let $=H8(Q,O+1,M)?.trim();if(!$)continue;K.set(R,{type:$,optional:W.optional===!0,source:K8(Q,W)})}};switch(Z.type){case"TSTypeLiteral":J(Z.members??[]);break;case"TSInterfaceDeclaration":J(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let X=b1(q,Q,Z.typeAnnotation,j,Y);for(let[W,R]of X)K.set(W,R);break}case"TSTypeReference":{let X=Q7(Z.typeName);if(!X||Y.has(X))break;let W=j.get(X);if(!W)break;Y.add(X);let R=b1(q,Q,W,j,Y);Y.delete(X);let O=Kq(Q,W,Z);for(let[M,$]of R)K.set(M,O.size===0?$:{...$,type:Vq($.type,O)});break}case"TSIntersectionType":for(let X of Z.types??[]){let W=b1(q,Q,X,j,Y);for(let[R,O]of W)K.set(R,O)}break;case"TSParenthesizedType":{let X=b1(q,Q,Z.typeAnnotation,j,Y);for(let[W,R]of X)K.set(W,R);break}}return K}function N7(q,Q,Z){if(Q.runesPropsDeclarationMetadataByDeclaratorStart.clear(),Q.explicitPropTypesByName.clear(),Q.explicitVariableTypesByName.clear(),Q.typeImportBindingsByLocalName.clear(),Q.localTypeDeclarationsByName.clear(),Q.typedRunesPropsDeclarations.length=0,!Q.source)return;let j=Z;Q.scriptLanguage=q.resolveScriptLanguage(j),Q.customElementTag=j.options?.customElement?.tag,Q.runesOptionOverride=j.options?.runes,Q.scriptGenericsAttribute=q.resolveScriptGenericsAttribute(j);let Y=j.instance?.content?.body??[];for(let K of Y){if(!K?.type)continue;if(K.type==="ImportDeclaration"&&K.source?.value)for(let J of K.specifiers??[]){let X=J.local?.name;if(!X)continue;if(!(K.importKind==="type"||J.importKind==="type"))continue;let R,O;if(J.type==="ImportSpecifier")R="named",O=J.imported?.type==="Identifier"?J.imported.name:typeof J.imported?.value==="string"?J.imported.value:void 0;else if(J.type==="ImportDefaultSpecifier")R="default";else if(J.type==="ImportNamespaceSpecifier")R="namespace";if(!R)continue;Q.typeImportBindingsByLocalName.set(X,{importedName:O,localName:X,source:String(K.source.value),specifierType:R})}if((K.type==="TSInterfaceDeclaration"||K.type==="TSTypeAliasDeclaration")&&K.id?.name&&K.start!==void 0&&K.end!==void 0)Q.localTypeDeclarationsByName.set(K.id.name,{code:H8(Q,K.start,K.end)?.trim()??"",node:K,start:K.start});if(K.type==="ExportNamedDeclaration"&&K.declaration?.type==="VariableDeclaration")for(let J of K.declaration.declarations??[]){if(J.id?.type!=="Identifier"||!J.id.name)continue;let X=Q0(Q,J.id.typeAnnotation);if(X)Q.explicitPropTypesByName.set(J.id.name,X)}else if(K.type==="VariableDeclaration")for(let J of K.declarations??[]){if(J.id?.type!=="Identifier"||!J.id.name)continue;let X=Q0(Q,J.id.typeAnnotation);if(X)Q.explicitVariableTypesByName.set(J.id.name,X)}}for(let K of Y){if(!K||typeof K!=="object"||!("declarations"in K))continue;for(let J of K.declarations??[]){if(!m8(e8(J.init),"$props"))continue;let X=J.id?.typeAnnotation?void 0:l6(J.init),W=J.id?.typeAnnotation?.typeAnnotation??X,R=J.id?.typeAnnotation?Q0(Q,J.id.typeAnnotation):j7(Q,X),O=b1(q,Q,W,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([B,P])=>[B,P.node]))),M=new Set,$=new Set;if(P8(Q,W,M,$),K7(Q,M,$),J.start!==void 0){let B={canonicalType:R,props:O,referencedImportedTypes:M,referencedLocalTypes:$};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(J.start,B),R)Q.typedRunesPropsDeclarations.push(B)}}}}function b7(q,Q,Z){for(let j of Z.declarations){if(!m8(e8(j.init),"$props"))continue;if(j.id.type==="Identifier"){Q.wholePropsLocals.add(j.id.name),Q.restPropLocals.add(j.id.name);let J=H9(Q,j.start);if(J)for(let[X,W]of J.props)A1(q,Q,X,{name:X,kind:"let",type:W.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!W.optional,constant:!1,reactive:!1,source:W.source});continue}if(j.id.type!=="ObjectPattern")continue;let Y=q1(Q,q,Z),K=j.id.properties.filter((J)=>{if(J.type!=="Property"||J.computed)return!1;if(!q.getPropertyName(J.key))return!1;if(J.value.type==="Identifier")return!0;return J.value.type==="AssignmentPattern"&&J.value.left.type==="Identifier"}).length;for(let J of j.id.properties){if(J.type==="RestElement"){if(J.argument.type==="Identifier")Q.restPropLocals.add(J.argument.name);continue}let X=q.getPropertyName(J.key);if(!X)continue;let W,R;if(J.value.type==="Identifier")W=J.value.name;else{let z=J.value;W=z.left.name,R=z.right}if(!W)continue;if(q.trackPropLocalName(X,W),X==="children")Q.snippetPropLocals.add(W);let O=M7(Q,q,J)??(K===1?Y:void 0),M=q7(Q,j.start,X),{init:$,bindable:B}=s6(R),P=$==null?{isFunction:!1}:K1(q,Q,$),{value:A,type:N,isFunction:v,defaultValue:g}=P,f=M?.type===void 0&&O?.type===void 0?P.resolvedType:void 0,{type:a,typeSource:x,description:Z8,params:L,returnType:H,isFunction:V}=N1({explicitType:M?.type,typeSeed:N,inferredTypeForSource:N,jsdocType:O?.type,jsdocDescription:O?.description,jsdocParams:O?.params,jsdocReturnType:O?.returnType,resolvedType:f,resolvedDescription:P.resolvedDescription,resolvedParams:P.resolvedParams,resolvedReturnType:P.resolvedReturnType,initializerIsFunction:v,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(B)Q.reactive_vars.add(X);A1(q,Q,X,{name:X,...W===X?{}:{localName:W},kind:"let",description:Z8,binding:O?.binding,deprecated:O?.deprecated,tags:O?.tags,...B?{bindable:!0}:{},type:a,typeSource:x,value:A,defaultValue:g,params:L,returnType:H,isFunction:V,isFunctionDeclaration:!1,isRequired:$==null&&M?.optional!==!0,constant:!1,reactive:B,source:K8(Q,J)})}}}function T7(q,Q){if(q.syntaxMode!=="runes")return;for(let[Z,j]of Array.from(q.events.entries())){if(j.type!=="dispatched")continue;if(Q.has(Z)||q.forwardedEvents.has(Z))continue;let Y=`on${Z}`,K=q.props.get(Y);if(!K)continue;let J=K.type!==void 0||K.params!==void 0||K.returnType!==void 0,X=j.detail===void 0||j.detail==="undefined"||j.detail==="null"?"() => void":`(detail: ${j.detail}) => void`;q.props.set(Y,{...K,description:K.description??j.description,type:J?K.type:X,typeSource:J?K.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var k7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function X0(q){if(!q||typeof q!=="object")return;d8(q,{enter(Q){if(!k7.has(Q.type))return;let Z=Q.expression;while(Z&&k7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}var Xq=/^\s*$/;function v7(q,Q,Z){let j=Q+1;while(j<q.length){if(q[j]==="\\"){j+=2;continue}if(q[j]===Z)return j+1;j++}return j}function h7(q,Q){let Z=Q+1,j=0;while(Z<q.length){let Y=q[Z];if(Y==="\\"){Z+=2;continue}if(j===0){if(Y==="`")return Z+1;if(Y==="$"&&q[Z+1]==="{"){j=1,Z+=2;continue}Z++;continue}if(Y==="{")j++;else if(Y==="}")j--;else if(Y==='"'||Y==="'"){Z=v7(q,Z,Y);continue}else if(Y==="`"){Z=h7(q,Z);continue}Z++}return Z}function Wq(q,Q){let Z=[],j=q.length,Y=0;while(Y<j){let K=q[Y];if(K==='"'||K==="'"){Y=v7(q,Y,K);continue}if(K==="`"){Y=h7(q,Y);continue}if(K==="/"&&q[Y+1]==="/"){let J=Y+2;while(J<j&&q[J]!==`
17
+ `)J++;Y=J;continue}if(K==="/"&&q[Y+1]==="*"){let J=Y,X=Y+2;while(X<j&&!(q[X]==="*"&&q[X+1]==="/"))X++;let W=Math.min(X+2,j),R=q.slice(J,W);Z.push({end:W+Q,isJsDoc:R.startsWith("/**")&&R.length>4,text:R}),Y=W;continue}Y++}return Z}function E7(q,Q,Z){if(!q||typeof q!=="object"||!("type"in q))return;let j=q;if(j.type==="FunctionDeclaration"){if(j.id?.type==="Identifier"&&j.id.name)Z.push({name:j.id.name,start:Q});return}if(j.type==="VariableDeclaration"){for(let Y of j.declarations??[])if(Y?.id?.type==="Identifier"&&Y.id.name)Z.push({name:Y.id.name,start:Q})}}function zq(q){let Q=[];for(let Z of q){if(!Z||typeof Z!=="object"||!("type"in Z))continue;let j=Z;if(j.start===void 0)continue;if(j.type==="ExportNamedDeclaration"&&j.declaration)E7(j.declaration,j.start,Q);else E7(j,j.start,Q)}return Q}function Gq(q,Q,Z){let j;for(let Y of q){if(Y.end>Q)break;if(!Y.isJsDoc)continue;if(!Xq.test(Z.slice(Y.end,Q)))continue;j=Y}return j}function f7(q,Q){let Z=new Map;if(!q.source)return Z;let j=[q.parsed?.module,q.parsed?.instance],Y=[],K=[];for(let J of j){let X=J?.content;if(!X?.body||X.start===void 0||X.end===void 0)continue;Y.push(...Wq(q.source.slice(X.start,X.end),X.start)),K.push(...zq(X.body))}Y.sort((J,X)=>J.end-X.end);for(let J of K){let X=Gq(Y,J.start,q.source);if(!X)continue;let W=P1(X.text,{spacing:"preserve"}),{type:R,description:O}=R9(W);if(!R)continue;Z.set(J.name,{type:Q.aliasType(R.type),description:O||R.description})}return Z}function n8(q,Q,Z){let j=Z._,Y=!1;function K(X,{next:W,state:R}){W(R)}function J(X,W,R){if(Y)return;if(!X.type)return;let O,M={},$={path:W,state:R,next:(P=R)=>{W.push(X);for(let A in X){if(A==="type")continue;let N=X[A];if(N&&typeof N==="object")if(Array.isArray(N)){let v={},g=N.length,f=!1;for(let a=0;a<g;a++){let x=N[a];if(x&&typeof x==="object"){let Z8=J(x,W,P);if(Z8)v[a]=Z8,f=!0}}if(f)M[A]=N.map((a,x)=>v[x]??a)}else{let v=J(N,W,P);if(v)M[A]=v}}if(W.pop(),Object.keys(M).length>0)return y7(X,M)},stop:()=>{Y=!0},visit:(P,A=R)=>{W.push(X);let N=J(P,W,A)??P;return W.pop(),N}},B=Z[X.type]??K;if(j){let P;if(O=j(X,{...$,next:(A=R)=>{return R=A,P=B(X,{...$,state:A}),P}}),!O&&P)O=P}else O=B(X,$);if(!O){if(Object.keys(M).length>0)O=y7(X,M)}if(O)return O}return J(q,[],Q)??q}function y7(q,Q){let Z={},j=Object.getOwnPropertyDescriptors(q);for(let Y in j)Object.defineProperty(Z,Y,j[Y]);for(let Y in Q)Z[Y]=Q[Y];return Z}var g7=/^[ \t\r\n]+/;var _7=/[ \t\r\n]+$/,$9=/[^ \t\r\n]/;var W0=/[^\n]/g;var $J=Symbol("uninitialized"),wJ=Symbol("filename"),LJ=Symbol("hmr");var x7="http://www.w3.org/2000/svg",u7="http://www.w3.org/1998/Math/MathML",m7=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function C9(q,Q){if(Q.length===0)return null;let j=new i7(Q).get(q);return j&&j[0][0]>0.7?j[0][1]:null}var w9=2,L9=3;function Oq(q,Q){if(q===null&&Q===null)throw"Trying to compare two null values";if(q===null||Q===null)return 0;return q=String(q),Q=String(Q),1-Uq(q,Q)/Math.max(q.length,Q.length)}function Uq(q,Q){let Z=[],j=0;for(let Y=0;Y<=Q.length;Y++)for(let K=0;K<=q.length;K++){let J;if(Y&&K)if(q.charAt(K-1)===Q.charAt(Y-1))J=j;else J=Math.min(Z[K],Z[K-1],j)+1;else J=Y+K;j=Z[K],Z[K]=J}return Z.pop()}var Rq=/[^\w, ]+/;function Bq(q,Q=2){let Z="-"+q.toLowerCase().replace(Rq,"")+"-",j=Q-Z.length,Y=[];if(j>0)for(let K=0;K<j;++K)q+="-";for(let K=0;K<Z.length-Q+1;++K)Y.push(Z.slice(K,K+Q));return Y}function l7(q,Q=2){let Z={},j=Bq(q,Q),Y=0;for(Y;Y<j.length;++Y)if(j[Y]in Z)Z[j[Y]]+=1;else Z[j[Y]]=1;return Z}function c7(q,Q){return Q[0]-q[0]}class i7{exact_set={};match_dict={};items={};constructor(q){for(let Q=w9;Q<L9+1;++Q)this.items[Q]=[];for(let Q=0;Q<q.length;++Q)this.add(q[Q])}add(q){if(q.toLowerCase()in this.exact_set)return!1;let Z=w9;for(Z;Z<L9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),j=this.items[Q]||[],Y=j.length;j.push(0);let K=l7(Z,Q),J=0,X,W;for(X in K)if(W=K[X],J+=Math.pow(W,2),X in this.match_dict)this.match_dict[X].push([Y,W]);else this.match_dict[X]=[[Y,W]];let R=Math.sqrt(J);j[Y]=[R,Z],this.items[Q]=j,this.exact_set[Z]=q}get(q){let Q=q.toLowerCase(),Z=this.exact_set[Q];if(Z)return[[1,Z]];for(let j=L9;j>=w9;--j){let Y=this.__get(q,j);if(Y.length>0)return Y}return null}__get(q,Q){let Z=q.toLowerCase(),j={},Y=l7(Z,Q),K=this.items[Q],J=0,X,W,R,O,M;for(X in Y)if(W=Y[X],J+=Math.pow(W,2),X in this.match_dict)for(R=0;R<this.match_dict[X].length;++R)if(O=this.match_dict[X][R][0],M=this.match_dict[X][R][1],O in j)j[O]+=W*M;else j[O]=W*M;let $=Math.sqrt(J),B=[],P;for(let v in j)P=j[v],B.push([P/($*K[v][0]),K[v][1]]);B.sort(c7);let A=[],N=Math.min(50,B.length);for(let v=0;v<N;++v)A.push([Oq(B[v][1],Z),B[v][1]]);B=A,B.sort(c7),A=[];for(let v=0;v<B.length;++v)if(B[v][0]===B[0][0])A.push([B[v][0],this.exact_set[B[v][1]]]);return A}}function Fq(q,Q){return q.start<=Q&&Q<q.end}function d7(q,Q={}){let{offsetLine:Z=0,offsetColumn:j=0}=Q,Y=0,K=q.split(`
18
+ `).map((W,R)=>{let O=Y+W.length+1,M={start:Y,end:O,line:R};return Y=O,M}),J=0;function X(W,R){if(typeof W==="string")W=q.indexOf(W,R??0);if(W===-1)return;let O=K[J],M=W>=O.end?1:-1;while(O){if(Fq(O,W))return{line:Z+O.line,column:j+W-O.start,character:W};J+=M,O=K[J]}}return X}var Mq=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function A9(q){return Mq.includes(q)||q.toLowerCase()==="!doctype"}var $q=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function p7(q){return $q.includes(q)}var wq=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var PJ=[...wq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Lq=["$state","$state.raw","$derived","$derived.by"],SJ=[...Lq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var o7=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u;var I9=[],O0,G0="(unknown)",Cq="<unknown>",z0,U0=[],Aq,Iq=!1,z8;function n7(q){z0=q,U0=z0.split(`
19
+ `);let Q=d7(z0,{offsetLine:1});z8=(Z)=>{let j=Q(Z);if(!j)throw Error("An impossible situation occurred");return j}}var P9,S9=[],s7=new Map;function a7(q){Aq=!1,Iq=!1,Cq=G0,z0="",U0=[],O0=(q.filename??G0).replace(/\\/g,"/"),P9=q.warning??(()=>!0),I9=[]}var Pq=/^\t+/;function D9(q){return q.replace(Pq,(Q)=>Q.split("\t").join(" "))}function Sq(q,Q){let Z=U0,j=Math.max(0,q-2),Y=Math.min(q+3,Z.length),K=String(Y+1).length;return Z.slice(j,Y).map((J,X)=>{let W=j+X===q,R=String(X+j+1).padStart(K," ");if(W){let O=" ".repeat(K+2+D9(J.slice(0,Q)).length)+"^";return`${R}: ${D9(J)}
20
+ ${O}`}return`${R}: ${D9(J)}`}).join(`
21
+ `)}class T1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,O0!==G0)this.filename=O0;if(Z){if(this.position=Z,this.start=z8(Z[0]),this.end=z8(Z[1]),this.start&&this.end)this.frame=Sq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
22
22
  ${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
23
- ${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class a7 extends b1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function k1(q,Q,Z){let Y=S9;if(q)Y=o7.get(q)??S9;if(Y&&Y.at(-1)?.has(Q))return;let H=new a7(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!P9(H))return;I9.push(H)}var r7=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function t7(q,Q,Z){k1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
24
- https://svelte.dev/e/legacy_code`)}function e7(q,Q,Z){k1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
23
+ ${this.frame}`;return q}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class t7 extends T1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function k1(q,Q,Z){let j=S9;if(q)j=s7.get(q)??S9;if(j&&j.at(-1)?.has(Q))return;let Y=new t7(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!P9(Y))return;I9.push(Y)}var e7=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","bidirectional_control_characters","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","custom_element_props_identifier","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_implicitly_closed","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"];function q2(q,Q,Z){k1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
24
+ https://svelte.dev/e/legacy_code`)}function Q2(q,Q,Z){k1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
25
25
  https://svelte.dev/e/unknown_code`)}function N9(q,Q,Z){k1(q,"element_implicitly_closed",`This element is implicitly closed by the following \`${Q}\`, which can cause an unexpected DOM structure. Add an explicit \`${Z}\` to avoid surprises.
26
- https://svelte.dev/e/element_implicitly_closed`)}function q2(q){k1(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function Q2(q){k1(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}var Dq=/^\s*svelte-ignore\s/,Z2={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},E1=r7.concat(x7);function Y2(q,Q,Z){let Y=Dq.exec(Q);if(!Y)return[];let H=Y[0].length;q+=H;let V=[];if(Z)for(let K of Q.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let W=K[1];if(E1.includes(W))V.push(W);else{let G=Z2[W]??W.replace(/-/g,"_"),R=q+K.index,O=R+W.length;if(E1.includes(G))t7({start:R,end:O},W,G);else{let $=A9(W,E1);e7({start:R,end:O},W,$)}}if(!K[2])break}else for(let K of Q.slice(H).matchAll(/[\w$-]+/gm)){let W=K[0];if(V.push(W),!E1.includes(W)){let G=Z2[W]??W.replace(/-/g,"_");if(E1.includes(G))V.push(G)}}return V}function G1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!$9.test(Q.data))q.shift();else Q.data=Q.data.replace(f7,"");if(Z?.type==="Text")if(!$9.test(Z.data))q.pop();else Z.data=Z.data.replace(y7,"")}function H2(q,Q){return n8(Q,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:V,module:K,options:W}=Y;if(W?.__raw__){let O=Y.fragment.nodes.findIndex(($)=>W.end<=$.start);if(O===-1)O=Y.fragment.nodes.length;Y.fragment.nodes.splice(O,0,W.__raw__)}let G=null,R=null;if(Y.fragment.nodes.length>0){let O=Y.fragment.nodes.at(0),$=Y.fragment.nodes.at(-1);G=O.start,R=$.end;while(/\s/.test(q[G]))G+=1;while(/\s/.test(q[R-1]))R-=1}if(V)delete V.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:G,end:R,children:Y.fragment.nodes.map((O)=>H(O))},instance:V,module:K,css:Q.css?H(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(Y){return{...Y,type:"Animation"}},AwaitBlock(Y,{visit:H}){let V={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((G)=>H(G))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((G)=>H(G))??[],skip:!0},W={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((G)=>H(G))??[],skip:!0};if(Y.pending){let G=Y.pending.nodes.at(0),R=Y.pending.nodes.at(-1);V.start=G?.start??q.indexOf("}",Y.expression.end)+1,V.end=R?.end??V.start,V.skip=!1}if(Y.then){let G=Y.then.nodes.at(0),R=Y.then.nodes.at(-1);K.start=V.end??G?.start??q.indexOf("}",Y.expression.end)+1,K.end=R?.end??q.lastIndexOf("}",V.end??Y.expression.end)+1,K.skip=!1}if(Y.catch){let G=Y.catch.nodes.at(0),R=Y.catch.nodes.at(-1);W.start=K.end??V.end??G?.start??q.indexOf("}",Y.expression.end)+1,W.end=R?.end??q.lastIndexOf("}",K.end??V.end??Y.expression.end)+1,W.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:V,then:K,catch:W}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:Y2(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let V=[];for(let K of Y.children){if(K.combinator)V.push(K.combinator);V.push(...K.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:V}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:V}={...H.declaration.declarations[0]};return delete V.typeAnnotation,{type:"ConstTag",start:H.start,end:Y.end,expression:{type:"AssignmentExpression",start:(H.declaration.start??0)+6,end:H.declaration.end??0,operator:"=",left:V,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return G1(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((V)=>H(V))}},EachBlock(Y,{visit:H}){let V=void 0;if(Y.fallback){let K=Y.fallback.nodes.at(0),W=q.lastIndexOf("{",Y.end-1),G=K?.start??W;G1(Y.fallback.nodes),V={type:"ElseBlock",start:G,end:W,children:Y.fallback.nodes.map((R)=>H(R))}}return G1(Y.body.nodes),{type:"EachBlock",start:Y.start,end:Y.end,children:Y.body.nodes.map((K)=>H(K)),context:Y.context,expression:Y.expression,index:Y.index,key:Y.key,else:V}},ExpressionTag(Y,{path:H}){let V=H.at(-1);if(V?.type==="Attribute"){if(q[V.start]==="{")return{type:"AttributeShorthand",start:Y.start,end:Y.end,expression:Y.expression}}return{type:"MustacheTag",start:Y.start,end:Y.end,expression:Y.expression}},HtmlTag(Y){return{...Y,type:"RawMustacheTag"}},IfBlock(Y,{visit:H}){let V=void 0;if(Y.alternate){let W=Y.alternate.nodes;if(W.length===1&&W[0].type==="IfBlock"&&W[0].elseif)W=W[0].consequent.nodes;let G=q.lastIndexOf("{",Y.end-1),R=W.at(0)?.start??G;G1(Y.alternate.nodes),V={type:"ElseBlock",start:R,end:G,children:Y.alternate.nodes.map((O)=>H(O))}}let K=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return G1(Y.consequent.nodes),{type:"IfBlock",start:K,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((W)=>H(W)),else:V,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return G1(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((V)=>H(V)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return G1(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Attribute(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let W=[H(Y.value)];return K.pop(),{...Y,value:W}}else return V()},StyleDirective(Y,{visit:H,next:V,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let W=[H(Y.value)];return K.pop(),{...Y,value:W}}else return V()},SpreadAttribute(Y){return{...Y,type:"Spread"}},StyleSheet(Y,H){return{...Y,...H.next(),type:"Style"}},SvelteBody(Y,{visit:H}){return{type:"Body",name:"svelte:body",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteElement(Y,{visit:H}){let V=Y.tag;if(V.type==="Literal"&&typeof V.value==="string"&&q[Y.tag.start-1]!=="{")V=V.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:V,attributes:Y.attributes.map((K)=>H(K)),children:Y.fragment.nodes.map((K)=>H(K))}},SvelteFragment(Y,{visit:H}){return{type:"SlotTemplate",name:"svelte:fragment",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},Text(Y,{path:H}){let V=H.at(-1);if(V?.type==="RegularElement"&&V.name==="style")return{type:"Text",start:Y.start,end:Y.end,data:Y.data}},TitleElement(Y,{visit:H}){return{type:"Title",name:"title",start:Y.start,end:Y.end,attributes:Y.attributes.map((V)=>H(V)),children:Y.fragment.nodes.map((V)=>H(V))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var D0={};Q3(D0,{version:()=>d2,tokenizer:()=>zQ,tokTypes:()=>U,tokContexts:()=>Q8,parseExpressionAt:()=>GQ,parse:()=>WQ,nonASCIIwhitespace:()=>y9,lineBreakG:()=>j2,lineBreak:()=>F8,keywordTypes:()=>C0,isNewLine:()=>j1,isIdentifierStart:()=>A8,isIdentifierChar:()=>y8,getLineInfo:()=>g9,defaultOptions:()=>B0,TokenType:()=>o,Token:()=>S0,TokContext:()=>T8,SourceLocation:()=>f1,Position:()=>B1,Parser:()=>Y8,Node:()=>g1});var Nq=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],W2=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Tq="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",G2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",b9={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},k9="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",bq={5:k9,"5module":k9+" export import",6:k9+" const class extends export import super"},z2=/^in(stanceof)?$/,kq=new RegExp("["+G2+"]"),Eq=new RegExp("["+G2+Tq+"]");function E9(q,Q){var Z=65536;for(var Y=0;Y<Q.length;Y+=2){if(Z+=Q[Y],Z>q)return!1;if(Z+=Q[Y+1],Z>=q)return!0}return!1}function A8(q,Q){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&kq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,W2)}function y8(q,Q){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&Eq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,W2)||E9(q,Nq)}var o=function(Q,Z){if(Z===void 0)Z={};this.label=Q,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=Z.binop||null,this.updateContext=null};function D8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var N8={beforeExpr:!0},$8={startsExpr:!0},C0={};function d(q,Q){if(Q===void 0)Q={};return Q.keyword=q,C0[q]=new o(q,Q)}var U={num:new o("num",$8),regexp:new o("regexp",$8),string:new o("string",$8),name:new o("name",$8),privateId:new o("privateId",$8),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",N8),semi:new o(";",N8),colon:new o(":",N8),dot:new o("."),question:new o("?",N8),questionDot:new o("?."),arrow:new o("=>",N8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",N8),backQuote:new o("`",$8),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D8("||",1),logicalAND:D8("&&",2),bitwiseOR:D8("|",3),bitwiseXOR:D8("^",4),bitwiseAND:D8("&",5),equality:D8("==/!=/===/!==",6),relational:D8("</>/<=/>=",7),bitShift:D8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D8("%",10),star:D8("*",10),slash:D8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:D8("??",1),_break:d("break"),_case:d("case",N8),_catch:d("catch"),_continue:d("continue"),_debugger:d("debugger"),_default:d("default",N8),_do:d("do",{isLoop:!0,beforeExpr:!0}),_else:d("else",N8),_finally:d("finally"),_for:d("for",{isLoop:!0}),_function:d("function",$8),_if:d("if"),_return:d("return",N8),_switch:d("switch"),_throw:d("throw",N8),_try:d("try"),_var:d("var"),_const:d("const"),_while:d("while",{isLoop:!0}),_with:d("with"),_new:d("new",{beforeExpr:!0,startsExpr:!0}),_this:d("this",$8),_super:d("super",$8),_class:d("class",$8),_extends:d("extends",N8),_export:d("export"),_import:d("import",$8),_null:d("null",$8),_true:d("true",$8),_false:d("false",$8),_in:d("in",{beforeExpr:!0,binop:7}),_instanceof:d("instanceof",{beforeExpr:!0,binop:7}),_typeof:d("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:d("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:d("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},F8=/\r\n?|\n|\u2028|\u2029/,j2=new RegExp(F8.source,"g");function j1(q){return q===10||q===13||q===8232||q===8233}function O2(q,Q,Z){if(Z===void 0)Z=q.length;for(var Y=Q;Y<Z;Y++){var H=q.charCodeAt(Y);if(j1(H))return Y<Z-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var y9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,W8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,U2=Object.prototype,vq=U2.hasOwnProperty,hq=U2.toString,F1=Object.hasOwn||function(q,Q){return vq.call(q,Q)},J2=Array.isArray||function(q){return hq.call(q)==="[object Array]"},K2=Object.create(null);function Q1(q){return K2[q]||(K2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function s8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var fq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B1=function(Q,Z){this.line=Q,this.column=Z};B1.prototype.offset=function(Q){return new B1(this.line,this.column+Q)};var f1=function(Q,Z,Y){if(this.start=Z,this.end=Y,Q.sourceFile!==null)this.source=Q.sourceFile};function g9(q,Q){for(var Z=1,Y=0;;){var H=O2(q,Y,Q);if(H<0)return new B1(Z,Q-Y);++Z,Y=H}}var B0={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},V2=!1;function yq(q){var Q={};for(var Z in B0)Q[Z]=q&&F1(q,Z)?q[Z]:B0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!V2&&typeof console==="object"&&console.warn)V2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
- Defaulting to 2020, but this will stop working in the future.`);Q.ecmaVersion=11}else if(Q.ecmaVersion>=2015)Q.ecmaVersion-=2009;if(Q.allowReserved==null)Q.allowReserved=Q.ecmaVersion<5;if(!q||q.allowHashBang==null)Q.allowHashBang=Q.ecmaVersion>=14;if(J2(Q.onToken)){var Y=Q.onToken;Q.onToken=function(H){return Y.push(H)}}if(J2(Q.onComment))Q.onComment=gq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function gq(q,Q){return function(Z,Y,H,V,K,W){var G={type:Z?"Block":"Line",value:Y,start:H,end:V};if(q.locations)G.loc=new f1(this,K,W);if(q.ranges)G.range=[H,V];Q.push(G)}}var z1=1,O1=2,_9=4,R2=8,x9=16,B2=32,A0=64,F2=128,U1=256,y1=512,M2=1024,w0=z1|O1|U1;function u9(q,Q){return O1|(q?_9:0)|(Q?R2:0)}var F0=0,m9=1,r8=2,$2=3,L2=4,C2=5,Y8=function(Q,Z,Y){this.options=Q=yq(Q),this.sourceFile=Q.sourceFile,this.keywords=Q1(bq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var H="";if(Q.allowReserved!==!0){if(H=b9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")H+=" await"}this.reservedWords=Q1(H);var V=(H?H+" ":"")+b9.strict;if(this.reservedWordsStrict=Q1(V),this.reservedWordsStrictBind=Q1(V+" "+b9.strictBind),this.input=String(Z),this.containsEsc=!1,Y)this.pos=Y,this.lineStart=this.input.lastIndexOf(`
28
- `,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(F8).length;else this.pos=this.lineStart=0,this.curLine=1;if(this.type=U.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=Q.sourceType==="module",this.strict=this.inModule||Q.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&Q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?O1:z1),this.regexpState=null,this.privateNameStack=[]},k8={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Y8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};k8.inFunction.get=function(){return(this.currentVarScope().flags&O1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&R2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&_9)>0};k8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1))return!1;if(Z&O1)return(Z&_9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};k8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&z1)return!0;return!1};k8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&A0)>0||this.options.allowSuperOutsideMethod};k8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&F2)>0};k8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};k8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1)||Z&O1&&!(Z&x9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&M2)return!1;if(!this.inModule&&Q&z1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&U1)>0};Y8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var Y=this;for(var H=0;H<Q.length;H++)Y=Q[H](Y);return Y};Y8.parse=function(Q,Z){return new this(Z,Q).parse()};Y8.parseExpressionAt=function(Q,Z,Y){var H=new this(Y,Q,Z);return H.nextToken(),H.parseExpression()};Y8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Y8.prototype,k8);var B8=Y8.prototype,_q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;B8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){W8.lastIndex=q,q+=W8.exec(this.input)[0].length;var Q=_q.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){W8.lastIndex=q+Q[0].length;var Z=W8.exec(this.input),Y=Z.index+Z[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||F8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Q[0].length,W8.lastIndex=q,q+=W8.exec(this.input)[0].length,this.input[q]===";")q++}};B8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};B8.isContextual=function(q){return this.type===U.name&&this.value===q&&!this.containsEsc};B8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};B8.catchStackOverflow=function(q){try{return q()}catch(Q){if(Q instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(Q.message)||/\btoo much recursion\b/i.test(Q.message)))this.raise(this.start,"Not enough stack space to parse input");else throw Q}};B8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};B8.canInsertSemicolon=function(){return this.type===U.eof||this.type===U.braceR||F8.test(this.input.slice(this.lastTokEnd,this.start))};B8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};B8.semicolon=function(){if(!this.eat(U.semi)&&!this.insertSemicolon())this.unexpected()};B8.afterTrailingComma=function(q,Q){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!Q)this.next();return!0}};B8.expect=function(q){this.eat(q)||this.unexpected()};B8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var I0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B8.checkPatternErrors=function(q,Q){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var Z=Q?q.parenthesizedAssign:q.parenthesizedBind;if(Z>-1)this.raiseRecoverable(Z,Q?"Assigning to rvalue":"Parenthesized pattern")};B8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:Y}=q;if(!Q)return Z>=0||Y>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(Y>=0)this.raiseRecoverable(Y,"Redefinition of __proto__ property")};B8.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};B8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var k=Y8.prototype;k.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==U.eof){var Z=this.parseStatement(null,!0,Q);q.body.push(Z)}if(this.inModule)for(var Y=0,H=Object.keys(this.undefinedExports);Y<H.length;Y+=1){var V=H[Y];this.raiseRecoverable(this.undefinedExports[V].start,"Export '"+V+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var l9={kind:"loop"},xq={kind:"switch"};k.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;W8.lastIndex=this.pos;var Q=W8.exec(this.input),Z=this.pos+Q[0].length,Y=this.fullCharCodeAt(Z);if(Y===91||Y===92)return!0;if(q)return!1;if(Y===123)return!0;if(A8(Y)){var H=Z;do Z+=Y<=65535?1:2;while(y8(Y=this.fullCharCodeAt(Z)));if(Y===92)return!0;var V=this.input.slice(H,Z);if(!z2.test(V))return!0}return!1};k.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;W8.lastIndex=this.pos;var q=W8.exec(this.input),Q=this.pos+q[0].length,Z;return!F8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(y8(Z=this.fullCharCodeAt(Q+8))||Z===92))};k.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;W8.lastIndex=this.pos;var Z=W8.exec(this.input),Y=this.pos+Z[0].length;if(F8.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,V;if(this.input.slice(Y,H)!=="using"||H===this.input.length||y8(V=this.fullCharCodeAt(H))||V===92)return!1;W8.lastIndex=H;var K=W8.exec(this.input);if(Y=H+K[0].length,K&&F8.test(this.input.slice(H,Y)))return!1}var W=this.fullCharCodeAt(Y);if(!A8(W)&&W!==92)return!1;var G=Y;do Y+=W<=65535?1:2;while(y8(W=this.fullCharCodeAt(Y)));if(W===92)return!0;var R=this.input.slice(G,Y);if(z2.test(R))return!1;if(Q&&!q&&R==="of"){W8.lastIndex=Y;var O=W8.exec(this.input);if(Y=Y+O[0].length,this.input.charCodeAt(Y)!==61||(W=this.input.charCodeAt(Y+1))===61||W===62)return!1}return!0};k.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};k.isUsing=function(q){return this.isUsingKeyword(!1,q)};k.parseStatement=function(q,Q,Z){var Y=this.type,H=this.startNode(),V;if(this.isLet(q))Y=U._var,V="let";switch(Y){case U._break:case U._continue:return this.parseBreakContinueStatement(H,Y.keyword);case U._debugger:return this.parseDebuggerStatement(H);case U._do:return this.parseDoStatement(H);case U._for:return this.parseForStatement(H);case U._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case U._class:if(q)this.unexpected();return this.parseClass(H,!0);case U._if:return this.parseIfStatement(H);case U._return:return this.parseReturnStatement(H);case U._switch:return this.parseSwitchStatement(H);case U._throw:return this.parseThrowStatement(H);case U._try:return this.parseTryStatement(H);case U._const:case U._var:if(V=V||this.value,q&&V!=="var")this.unexpected();return this.parseVarStatement(H,V);case U._while:return this.parseWhileStatement(H);case U._with:return this.parseWithStatement(H);case U.braceL:return this.parseBlock(!0,H);case U.semi:return this.parseEmptyStatement(H);case U._export:case U._import:if(this.options.ecmaVersion>10&&Y===U._import){W8.lastIndex=this.pos;var K=W8.exec(this.input),W=this.pos+K[0].length,G=this.input.charCodeAt(W);if(G===40||G===46)return this.parseExpressionStatement(H,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!Q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return Y===U._import?this.parseImport(H):this.parseExport(H,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(H,!0,!q)}var R=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(R){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(R==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(H,!1,R),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var O=this.value,$=this.parseExpression();if(Y===U.name&&$.type==="Identifier"&&this.eat(U.colon))return this.parseLabeledStatement(H,O,$,q);else return this.parseExpressionStatement(H,$)}};k.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.label=null;else if(this.type!==U.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var Y=0;for(;Y<this.labels.length;++Y){var H=this.labels[Y];if(q.label==null||H.name===q.label.name){if(H.kind!=null&&(Z||H.kind==="loop"))break;if(q.label&&Z)break}}if(Y===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};k.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};k.parseDoStatement=function(q){if(this.next(),this.labels.push(l9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(U._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(U.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};k.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(l9),this.enterScope(0),this.expect(U.parenL),this.type===U.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===U._var||this.type===U._const||Z){var Y=this.startNode(),H=Z?"let":this.value;return this.next(),this.parseVar(Y,!0,H),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(q,Y,Q)}var V=this.isContextual("let"),K=!1,W=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(W){var G=this.startNode();if(this.next(),W==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(G,!0,W),this.finishNode(G,"VariableDeclaration"),this.parseForAfterInit(q,G,Q)}var R=this.containsEsc,O=new I0,$=this.start,M=Q>-1?this.parseExprSubscripts(O,"await"):this.parseExpression(!0,O);if(this.type===U._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===U._in)this.unexpected(Q);q.await=!0}else if(K&&this.options.ecmaVersion>=8){if(M.start===$&&!R&&M.type==="Identifier"&&M.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(V&&K)this.raise(M.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(M,!1,O),this.checkLValPattern(M),this.parseForIn(q,M)}else this.checkExpressionErrors(O,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,M)};k.parseForAfterInit=function(q,Q,Z){if((this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===U._in){if((Q.kind==="using"||Q.kind==="await using")&&!Q.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&Z>-1)this.unexpected(Z)}else if(this.options.ecmaVersion>=9)q.await=Z>-1;return this.parseForIn(q,Q)}if(Z>-1)this.unexpected(Z);return this.parseFor(q,Q)};k.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,h1|(Z?0:v9),!1,Q)};k.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(U._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};k.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};k.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(U.braceL),this.labels.push(xq),this.enterScope(M2);var Q;for(var Z=!1;this.type!==U.braceR;)if(this.type===U._case||this.type===U._default){var Y=this.type===U._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),Y)Q.test=this.parseExpression();else{if(Z)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Z=!0,Q.test=null}this.expect(U.colon)}else{if(!Q)this.unexpected();Q.consequent.push(this.parseStatement(null))}if(this.exitScope(),Q)this.finishNode(Q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};k.parseThrowStatement=function(q){if(this.next(),F8.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var uq=[];k.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?B2:0),this.checkLValPattern(q,Q?L2:r8),this.expect(U.parenR),q};k.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===U._catch){var Q=this.startNode();if(this.next(),this.eat(U.parenL))Q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();Q.param=null,this.enterScope(0)}Q.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(Q,"CatchClause")}if(q.finalizer=this.eat(U._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};k.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};k.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(l9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};k.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};k.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};k.parseLabeledStatement=function(q,Q,Z,Y){for(var H=0,V=this.labels;H<V.length;H+=1){var K=V[H];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var W=this.type.isLoop?"loop":this.type===U._switch?"switch":null;for(var G=this.labels.length-1;G>=0;G--){var R=this.labels[G];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=W;else break}return this.labels.push({name:Q,kind:W,statementStart:this.start}),q.body=this.parseStatement(Y?Y.indexOf("label")===-1?Y+"label":Y:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};k.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};k.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(U.braceL),q)this.enterScope(0);while(this.type!==U.braceR){var Y=this.parseStatement(null);Q.body.push(Y)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};k.parseFor=function(q,Q){return q.init=Q,this.expect(U.semi),q.test=this.type===U.semi?null:this.parseExpression(),this.expect(U.semi),q.update=this.type===U.parenR?null:this.parseExpression(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};k.parseForIn=function(q,Q){var Z=this.type===U._in;if(this.next(),Q.type==="VariableDeclaration"&&Q.declarations[0].init!=null&&(!Z||this.options.ecmaVersion<8||this.strict||Q.kind!=="var"||Q.declarations[0].id.type!=="Identifier"))this.raise(Q.start,(Z?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=Q,q.right=Z?this.parseExpression():this.parseMaybeAssign(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};k.parseVar=function(q,Q,Z,Y){q.declarations=[],q.kind=Z;for(;;){var H=this.startNode();if(this.parseVarId(H,Z),this.eat(U.eq))H.init=this.parseMaybeAssign(Q);else if(!Y&&Z==="const"&&!(this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==U._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Q&&(this.type===U._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else H.init=null;if(q.declarations.push(this.finishNode(H,"VariableDeclarator")),!this.eat(U.comma))break}return q};k.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?m9:r8,!1)};var h1=1,v9=2,A2=4;k.parseFunction=function(q,Q,Z,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===U.star&&Q&v9)this.unexpected();q.generator=this.eat(U.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Q&h1){if(q.id=Q&A2&&this.type!==U.name?null:this.parseIdent(),q.id&&!(Q&v9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?m9:r8:$2)}var V=this.yieldPos,K=this.awaitPos,W=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(q.async,q.generator)),!(Q&h1))q.id=this.type===U.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,H),this.yieldPos=V,this.awaitPos=K,this.awaitIdentPos=W,this.finishNode(q,Q&h1?"FunctionDeclaration":"FunctionExpression")};k.parseFunctionParams=function(q){this.expect(U.parenL),q.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};k.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var Y=this.enterClassBody(),H=this.startNode(),V=!1;H.body=[],this.expect(U.braceL);while(this.type!==U.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(H.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(V)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");V=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&mq(Y,K))this.raiseRecoverable(K.key.start,"Identifier '#"+K.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(H,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};k.parseClassElement=function(q){if(this.eat(U.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),Y="",H=!1,V=!1,K="method",W=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(U.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===U.star)W=!0;else Y="static"}if(Z.static=W,!Y&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===U.star)&&!this.canInsertSemicolon())V=!0;else Y="async";if(!Y&&(Q>=9||!V)&&this.eat(U.star))H=!0;if(!Y&&!V&&!H){var G=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=G;else Y=G}if(Y)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=Y,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===U.parenL||K!=="method"||H||V){var R=!Z.static&&M0(Z,"constructor"),O=R&&q;if(R&&K!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=R?"constructor":K,this.parseClassMethod(Z,H,V,O)}else this.parseClassField(Z);return Z};k.isClassElementNameStart=function(){return this.type===U.name||this.type===U.privateId||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword};k.parseClassElementName=function(q){if(this.type===U.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};k.parseClassMethod=function(q,Q,Z,Y){var H=q.key;if(q.kind==="constructor"){if(Q)this.raise(H.start,"Constructor can't be a generator");if(Z)this.raise(H.start,"Constructor can't be an async method")}else if(q.static&&M0(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var V=q.value=this.parseMethod(Q,Z,Y);if(q.kind==="get"&&V.params.length!==0)this.raiseRecoverable(V.start,"getter should have no params");if(q.kind==="set"&&V.params.length!==1)this.raiseRecoverable(V.start,"setter should have exactly one param");if(q.kind==="set"&&V.params[0].type==="RestElement")this.raiseRecoverable(V.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};k.parseClassField=function(q){if(M0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&M0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(U.eq))this.enterScope(y1|A0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};k.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(U1|A0);while(this.type!==U.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};k.parseClassId=function(q,Q){if(this.type===U.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,r8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};k.parseClassSuper=function(q){q.superClass=this.eat(U._extends)?this.parseExprSubscripts(null,!1):null};k.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};k.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var Y=this.privateNameStack.length,H=Y===0?null:this.privateNameStack[Y-1];for(var V=0;V<Z.length;++V){var K=Z[V];if(!F1(Q,K.name))if(H)H.used.push(K);else this.raiseRecoverable(K.start,"Private field '#"+K.name+"' must be declared in an enclosing class")}};function mq(q,Q){var Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function M0(q,Q){var{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}k.parseExportAllDeclaration=function(q,Q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(Q,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};k.parseExport=function(q,Q){if(this.next(),this.eat(U.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(U._default))return this.checkExport(Q,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(Q,q.declaration.declarations);else this.checkExport(Q,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(Q),this.eatContextual("from")){if(this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var Z=0,Y=q.specifiers;Z<Y.length;Z+=1){var H=Y[Z];if(this.checkUnreserved(H.local),this.checkLocalExport(H.local),H.local.type==="Literal")this.raise(H.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};k.parseExportDeclaration=function(q){return this.parseStatement(null)};k.parseExportDefaultDeclaration=function(){var q;if(this.type===U._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,h1|A2,!1,q)}else if(this.type===U._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};k.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(F1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};k.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var Y=0,H=Q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkPatternExport(q,V)}else if(Z==="ArrayPattern")for(var K=0,W=Q.elements;K<W.length;K+=1){var G=W[K];if(G)this.checkPatternExport(q,G)}else if(Z==="Property")this.checkPatternExport(q,Q.value);else if(Z==="AssignmentPattern")this.checkPatternExport(q,Q.left);else if(Z==="RestElement")this.checkPatternExport(q,Q.argument)};k.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,Y=Q;Z<Y.length;Z+=1){var H=Y[Z];this.checkPatternExport(q,H.id)}};k.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};k.parseExportSpecifier=function(q){var Q=this.startNode();return Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(q,Q.exported,Q.exported.start),this.finishNode(Q,"ExportSpecifier")};k.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};k.parseImport=function(q){if(this.next(),this.type===U.string)q.specifiers=uq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===U.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};k.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportSpecifier")};k.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportDefaultSpecifier")};k.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportNamespaceSpecifier")};k.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===U.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(U.comma))return q}if(this.type===U.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Q){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};k.parseWithClause=function(){var q=[];if(!this.eat(U._with))return q;this.expect(U.braceL);var Q={},Z=!0;while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(F1(Q,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Q[H]=!0,q.push(Y)}return q};k.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(U.colon),this.type!==U.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};k.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===U.string){var q=this.parseLiteral(this.value);if(fq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};k.adaptDirectivePrologue=function(q){for(var Q=0;Q<q.length&&this.isDirectiveCandidate(q[Q]);++Q)q[Q].directive=q[Q].expression.raw.slice(1,-1)};k.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var E8=Y8.prototype;E8.toAssignable=function(q,Q,Z){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",Z)this.checkPatternErrors(Z,!0);for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];if(this.toAssignable(V,Q),V.type==="RestElement"&&(V.argument.type==="ArrayPattern"||V.argument.type==="ObjectPattern"))this.raise(V.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,Q);break;case"ArrayExpression":if(q.type="ArrayPattern",Z)this.checkPatternErrors(Z,!0);this.toAssignableList(q.elements,Q);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,Q),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,Q);break;case"ParenthesizedExpression":this.toAssignable(q.expression,Q,Z);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!Q)break;default:this.raise(q.start,"Assigning to rvalue")}else if(Z)this.checkPatternErrors(Z,!0);return q};E8.toAssignableList=function(q,Q){var Z=q.length;for(var Y=0;Y<Z;Y++){var H=q[Y];if(H)this.toAssignable(H,Q)}if(Z){var V=q[Z-1];if(this.options.ecmaVersion===6&&Q&&V&&V.type==="RestElement"&&V.argument.type!=="Identifier")this.unexpected(V.argument.start)}return q};E8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};E8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==U.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};E8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case U.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(U.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case U.braceL:return this.parseObj(!0)}return this.parseIdent()};E8.parseBindingList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(V)V=!1;else this.expect(U.comma);if(Q&&this.type===U.comma)H.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===U.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),H.push(K),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else H.push(this.parseAssignableListItem(Y))}return H};E8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};E8.parseBindingListItem=function(q){return q};E8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(U.eq))return Z;var Y=this.startNodeAt(q,Q);return Y.left=Z,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};E8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=F0;var Y=Q!==F0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(Y?"Binding ":"Assigning to ")+q.name+" in strict mode");if(Y){if(Q===r8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(F1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==C2)this.declareName(q.name,Q,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(Y)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(Y)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(Y?"Binding":"Assigning to")+" rvalue")}};E8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"ObjectPattern":for(var Y=0,H=q.properties;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,Q,Z)}break;case"ArrayPattern":for(var K=0,W=q.elements;K<W.length;K+=1){var G=W[K];if(G)this.checkLValInnerPattern(G,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};E8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,Q,Z);break;case"AssignmentPattern":this.checkLValPattern(q.left,Q,Z);break;case"RestElement":this.checkLValPattern(q.argument,Q,Z);break;default:this.checkLValPattern(q,Q,Z)}};var T8=function(Q,Z,Y,H,V){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!Y,this.override=H,this.generator=!!V},Q8={b_stat:new T8("{",!1),b_expr:new T8("{",!0),b_tmpl:new T8("${",!1),p_stat:new T8("(",!1),p_expr:new T8("(",!0),q_tmpl:new T8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new T8("function",!1),f_expr:new T8("function",!0),f_expr_gen:new T8("function",!0,!1,null,!0),f_gen:new T8("function",!1,!1,null,!0)},M1=Y8.prototype;M1.initialContext=function(){return[Q8.b_stat]};M1.curContext=function(){return this.context[this.context.length-1]};M1.braceIsBlock=function(q){var Q=this.curContext();if(Q===Q8.f_expr||Q===Q8.f_stat)return!0;if(q===U.colon&&(Q===Q8.b_stat||Q===Q8.b_expr))return!Q.isExpr;if(q===U._return||q===U.name&&this.exprAllowed)return F8.test(this.input.slice(this.lastTokEnd,this.start));if(q===U._else||q===U.semi||q===U.eof||q===U.parenR||q===U.arrow)return!0;if(q===U.braceL)return Q===Q8.b_stat;if(q===U._var||q===U._const||q===U.name)return!1;return!this.exprAllowed};M1.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var Q=this.context[q];if(Q.token==="function")return Q.generator}return!1};M1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===U.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};M1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};U.parenR.updateContext=U.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===Q8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};U.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?Q8.b_stat:Q8.b_expr),this.exprAllowed=!0};U.dollarBraceL.updateContext=function(){this.context.push(Q8.b_tmpl),this.exprAllowed=!0};U.parenL.updateContext=function(q){var Q=q===U._if||q===U._for||q===U._with||q===U._while;this.context.push(Q?Q8.p_stat:Q8.p_expr),this.exprAllowed=!0};U.incDec.updateContext=function(){};U._function.updateContext=U._class.updateContext=function(q){if(q.beforeExpr&&q!==U._else&&!(q===U.semi&&this.curContext()!==Q8.p_stat)&&!(q===U._return&&F8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===U.colon||q===U.braceL)&&this.curContext()===Q8.b_stat))this.context.push(Q8.f_expr);else this.context.push(Q8.f_stat);this.exprAllowed=!1};U.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};U.backQuote.updateContext=function(){if(this.curContext()===Q8.q_tmpl)this.context.pop();else this.context.push(Q8.q_tmpl);this.exprAllowed=!1};U.star.updateContext=function(q){if(q===U._function){var Q=this.context.length-1;if(this.context[Q]===Q8.f_expr)this.context[Q]=Q8.f_expr_gen;else this.context[Q]=Q8.f_gen}this.exprAllowed=!0};U.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==U.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var u=Y8.prototype;u.checkPropClash=function(q,Q,Z){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var Y=q.key,H;switch(Y.type){case"Identifier":H=Y.name;break;case"Literal":H=String(Y.value);break;default:return}var V=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&V==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=Y.start}else this.raiseRecoverable(Y.start,"Redefinition of __proto__ property");Q.proto=!0}return}H="$"+H;var K=Q[H];if(K){var W;if(V==="init")W=this.strict&&K.init||K.get||K.set;else W=K.init||K[V];if(W)this.raiseRecoverable(Y.start,"Redefinition of property")}else K=Q[H]={init:!1,get:!1,set:!1};K[V]=!0};u.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Z,V=Z.parseMaybeAssign(q,Q);if(Z.type===U.comma){var K=Z.startNodeAt(Y,H);K.expressions=[V];while(Z.eat(U.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return V})};u.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var Y=!1,H=-1,V=-1,K=-1;if(Q)H=Q.parenthesizedAssign,V=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new I0,Y=!0;var W=this.start,G=this.startLoc;if(this.type===U.parenL||this.type===U.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Q);if(Z)R=Z.call(this,R,W,G);if(this.type.isAssign){var O=this.startNodeAt(W,G);if(O.operator=this.value,this.type===U.eq)R=this.toAssignable(R,!1,Q);if(!Y)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=R.start)Q.shorthandAssign=-1;if(this.type===U.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(O.left=R,this.next(),O.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(O,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Q,!0);if(H>-1)Q.parenthesizedAssign=H;if(V>-1)Q.trailingComma=V;return R};u.parseMaybeConditional=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return H;if(!(H.type==="ArrowFunctionExpression"&&H.start===Z)&&this.eat(U.question)){var V=this.startNodeAt(Z,Y);return V.test=H,V.consequent=this.parseMaybeAssign(),this.expect(U.colon),V.alternate=this.parseMaybeAssign(q),this.finishNode(V,"ConditionalExpression")}return H};u.parseExprOps=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return H;return H.start===Z&&H.type==="ArrowFunctionExpression"?H:this.parseExprOp(H,Z,Y,-1,q)};u.parseExprOp=function(q,Q,Z,Y,H){var V=this.type.binop;if(V!=null&&(!H||this.type!==U._in)){if(V>Y){var K=this.type===U.logicalOR||this.type===U.logicalAND,W=this.type===U.coalesce;if(W)V=U.logicalAND.binop;var G=this.value;this.next();var R=this.start,O=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),R,O,V,H),M=this.buildBinary(Q,Z,q,$,G,K||W);if(K&&this.type===U.coalesce||W&&(this.type===U.logicalOR||this.type===U.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(M,Q,Z,Y,H)}}return q};u.buildBinary=function(q,Q,Z,Y,H,V){if(Y.type==="PrivateIdentifier")this.raise(Y.start,"Private identifier can only be left side of binary expression");var K=this.startNodeAt(q,Q);return K.left=Z,K.operator=H,K.right=Y,this.finishNode(K,V?"LogicalExpression":"BinaryExpression")};u.parseMaybeUnary=function(q,Q,Z,Y){var H=this.start,V=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(Y),Q=!0;else if(this.type.prefix){var W=this.startNode(),G=this.type===U.incDec;if(W.operator=this.value,W.prefix=!0,this.next(),W.argument=this.parseMaybeUnary(null,!0,G,Y),this.checkExpressionErrors(q,!0),G)this.checkLValSimple(W.argument);else if(this.strict&&W.operator==="delete"&&w2(W.argument))this.raiseRecoverable(W.start,"Deleting local variable in strict mode");else if(W.operator==="delete"&&h9(W.argument))this.raiseRecoverable(W.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(W,G?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===U.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(K=this.parsePrivateIdent(),this.type!==U._in)this.unexpected()}else{if(K=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(H,V);R.operator=this.value,R.prefix=!1,R.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(R,"UpdateExpression")}}if(!Z&&this.eat(U.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(H,V,K,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return K};function w2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&w2(q.expression)}function h9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&h9(q.expression)||q.type==="ParenthesizedExpression"&&h9(q.expression)}u.parseExprSubscripts=function(q,Q){var Z=this.start,Y=this.startLoc,H=this.parseExprAtom(q,Q);if(H.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return H;var V=this.parseSubscripts(H,Z,Y,!1,Q);if(q&&V.type==="MemberExpression"){if(q.parenthesizedAssign>=V.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=V.start)q.parenthesizedBind=-1;if(q.trailingComma>=V.start)q.trailingComma=-1}return V};u.parseSubscripts=function(q,Q,Z,Y,H){var V=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,K=!1;while(!0){var W=this.parseSubscript(q,Q,Z,Y,V,K,H);if(W.optional)K=!0;if(W===q||W.type==="ArrowFunctionExpression"){if(K){var G=this.startNodeAt(Q,Z);G.expression=W,W=this.finishNode(G,"ChainExpression")}return W}q=W}};u.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(U.arrow)};u.parseSubscriptAsyncArrow=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,Y)};u.parseSubscript=function(q,Q,Z,Y,H,V,K){var W=this.options.ecmaVersion>=11,G=W&&this.eat(U.questionDot);if(Y&&G)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(U.bracketL);if(R||G&&this.type!==U.parenL&&this.type!==U.backQuote||this.eat(U.dot)){var O=this.startNodeAt(Q,Z);if(O.object=q,R)O.property=this.parseExpression(),this.expect(U.bracketR);else if(this.type===U.privateId&&q.type!=="Super")O.property=this.parsePrivateIdent();else O.property=this.parseIdent(this.options.allowReserved!=="never");if(O.computed=!!R,W)O.optional=G;q=this.finishNode(O,"MemberExpression")}else if(!Y&&this.eat(U.parenL)){var $=new I0,M=this.yieldPos,F=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1,$);if(H&&!G&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=M,this.awaitPos=F,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(Q,Z,w,K)}this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=F||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var N=this.startNodeAt(Q,Z);if(N.callee=q,N.arguments=w,W)N.optional=G;q=this.finishNode(N,"CallExpression")}else if(this.type===U.backQuote){if(G||V)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(Q,Z);v.tag=q,v.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(v,"TaggedTemplateExpression")}return q};u.parseExprAtom=function(q,Q,Z){if(this.type===U.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case U._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===U.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==U.dot&&this.type!==U.bracketL&&this.type!==U.parenL)this.unexpected();return this.finishNode(Y,"Super");case U._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case U.name:var V=this.start,K=this.startLoc,W=this.containsEsc,G=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!W&&G.name==="async"&&!this.canInsertSemicolon()&&this.eat(U._function))return this.overrideContext(Q8.f_expr),this.parseFunction(this.startNodeAt(V,K),0,!1,!0,Q);if(H&&!this.canInsertSemicolon()){if(this.eat(U.arrow))return this.parseArrowExpression(this.startNodeAt(V,K),[G],!1,Q);if(this.options.ecmaVersion>=8&&G.name==="async"&&this.type===U.name&&!W&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(G=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(U.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(V,K),[G],!0,Q)}}return G;case U.regexp:var R=this.value;return Y=this.parseLiteral(R.value),Y.regex={pattern:R.pattern,flags:R.flags},Y;case U.num:case U.string:return this.parseLiteral(this.value);case U._null:case U._true:case U._false:return Y=this.startNode(),Y.value=this.type===U._null?null:this.type===U._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case U.parenL:var O=this.start,$=this.parseParenAndDistinguishExpression(H,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=O;if(q.parenthesizedBind<0)q.parenthesizedBind=O}return $;case U.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(U.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case U.braceL:return this.overrideContext(Q8.b_expr),this.parseObj(!1,q);case U._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case U._class:return this.parseClass(this.startNode(),!1);case U._new:return this.parseNew();case U.backQuote:return this.parseTemplate();case U._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};u.parseExprAtomDefault=function(){this.unexpected()};u.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===U.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===U.dot){var Z=this.startNodeAt(Q.start,Q.loc&&Q.loc.start);return Z.name="import",Q.meta=this.finishNode(Z,"Identifier"),this.parseImportMeta(Q)}else this.unexpected()};u.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(U.parenR))if(this.expect(U.comma),!this.afterTrailingComma(U.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(U.parenR)){if(this.expect(U.comma),!this.afterTrailingComma(U.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(U.parenR)){var Q=this.start;if(this.eat(U.comma)&&this.eat(U.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};u.parseImportMeta=function(q){this.next();var Q=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(Q)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};u.parseLiteral=function(q){var Q=this.startNode();if(Q.value=q,Q.raw=this.input.slice(this.start,this.end),Q.raw.charCodeAt(Q.raw.length-1)===110)Q.bigint=Q.value!=null?Q.value.toString():Q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(Q,"Literal")};u.parseParenExpression=function(){this.expect(U.parenL);var q=this.parseExpression();return this.expect(U.parenR),q};u.shouldParseArrow=function(q){return!this.canInsertSemicolon()};u.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,Y=this.startLoc,H,V=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,W=this.startLoc,G=[],R=!0,O=!1,$=new I0,M=this.yieldPos,F=this.awaitPos,P;this.yieldPos=0,this.awaitPos=0;while(this.type!==U.parenR)if(R?R=!1:this.expect(U.comma),V&&this.afterTrailingComma(U.parenR,!0)){O=!0;break}else if(this.type===U.ellipsis){if(P=this.start,G.push(this.parseParenItem(this.parseRestBinding())),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else G.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var w=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(U.parenR),q&&this.shouldParseArrow(G)&&this.eat(U.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=M,this.awaitPos=F,this.parseParenArrowList(Z,Y,G,Q);if(!G.length||O)this.unexpected(this.lastTokStart);if(P)this.unexpected(P);if(this.checkExpressionErrors($,!0),this.yieldPos=M||this.yieldPos,this.awaitPos=F||this.awaitPos,G.length>1)H=this.startNodeAt(K,W),H.expressions=G,this.finishNodeAt(H,"SequenceExpression",w,N);else H=G[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(Z,Y);return v.expression=H,this.finishNode(v,"ParenthesizedExpression")}else return H};u.parseParenItem=function(q){return q};u.parseParenArrowList=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,Y)};var lq=[];u.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===U.dot){var Q=this.startNodeAt(q.start,q.loc&&q.loc.start);Q.name="new",q.meta=this.finishNode(Q,"Identifier"),this.next();var Z=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(Z)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var Y=this.start,H=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,H,!0,!1),q.callee.type==="Super")this.raiseRecoverable(Y,"Invalid use of 'super'");if(this.eat(U.parenL))q.arguments=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=lq;return this.finishNode(q,"NewExpression")};u.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===U.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
26
+ https://svelte.dev/e/element_implicitly_closed`)}function Z2(q){k1(q,"script_unknown_attribute","Unrecognised attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}function j2(q){k1(q,"svelte_element_invalid_this","`this` should be an `{expression}`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this")}var Dq=/^\s*svelte-ignore\s/,Y2={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},E1=e7.concat(m7);function H2(q,Q,Z){let j=Dq.exec(Q);if(!j)return[];let Y=j[0].length;q+=Y;let K=[];if(Z)for(let J of Q.slice(Y).matchAll(/([\w$-]+)(,)?/gm)){let X=J[1];if(E1.includes(X))K.push(X);else{let W=Y2[X]??X.replace(/-/g,"_"),R=q+J.index,O=R+X.length;if(E1.includes(W))q2({start:R,end:O},X,W);else{let M=C9(X,E1);Q2({start:R,end:O},X,M)}}if(!J[2])break}else for(let J of Q.slice(Y).matchAll(/[\w$-]+/gm)){let X=J[0];if(K.push(X),!E1.includes(X)){let W=Y2[X]??X.replace(/-/g,"_");if(E1.includes(W))K.push(W)}}return K}function W1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!$9.test(Q.data))q.shift();else Q.data=Q.data.replace(g7,"");if(Z?.type==="Text")if(!$9.test(Z.data))q.pop();else Z.data=Z.data.replace(_7,"")}function J2(q,Q){return n8(Q,null,{_(j,{next:Y}){delete j.metadata,Y()},Root(j,{visit:Y}){let{instance:K,module:J,options:X}=j;if(X?.__raw__){let O=j.fragment.nodes.findIndex((M)=>X.end<=M.start);if(O===-1)O=j.fragment.nodes.length;j.fragment.nodes.splice(O,0,X.__raw__)}let W=null,R=null;if(j.fragment.nodes.length>0){let O=j.fragment.nodes.at(0),M=j.fragment.nodes.at(-1);W=O.start,R=M.end;while(/\s/.test(q[W]))W+=1;while(/\s/.test(q[R-1]))R-=1}if(K)delete K.attributes;if(J)delete J.attributes;return{html:{type:"Fragment",start:W,end:R,children:j.fragment.nodes.map((O)=>Y(O))},instance:K,module:J,css:Q.css?Y(Q.css):void 0,_comments:Q.comments?.length>0?Q.comments:void 0}},AnimateDirective(j){return{...j,type:"Animation"}},AwaitBlock(j,{visit:Y}){let K={type:"PendingBlock",start:null,end:null,children:j.pending?.nodes.map((W)=>Y(W))??[],skip:!0},J={type:"ThenBlock",start:null,end:null,children:j.then?.nodes.map((W)=>Y(W))??[],skip:!0},X={type:"CatchBlock",start:null,end:null,children:j.catch?.nodes.map((W)=>Y(W))??[],skip:!0};if(j.pending){let W=j.pending.nodes.at(0),R=j.pending.nodes.at(-1);K.start=W?.start??q.indexOf("}",j.expression.end)+1,K.end=R?.end??K.start,K.skip=!1}if(j.then){let W=j.then.nodes.at(0),R=j.then.nodes.at(-1);J.start=K.end??W?.start??q.indexOf("}",j.expression.end)+1,J.end=R?.end??q.lastIndexOf("}",K.end??j.expression.end)+1,J.skip=!1}if(j.catch){let W=j.catch.nodes.at(0),R=j.catch.nodes.at(-1);X.start=J.end??K.end??W?.start??q.indexOf("}",j.expression.end)+1,X.end=R?.end??q.lastIndexOf("}",J.end??K.end??j.expression.end)+1,X.skip=!1}return{type:"AwaitBlock",start:j.start,end:j.end,expression:j.expression,value:j.value,error:j.error,pending:K,then:J,catch:X}},BindDirective(j){return{...j,type:"Binding"}},ClassDirective(j){return{...j,type:"Class"}},Comment(j){return{...j,ignores:H2(j.start,j.data,!1)}},ComplexSelector(j,{next:Y}){Y();let K=[];for(let J of j.children){if(J.combinator)K.push(J.combinator);K.push(...J.selectors)}return{type:"Selector",start:j.start,end:j.end,children:K}},Component(j,{visit:Y}){return{type:"InlineComponent",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},ConstTag(j){if(j.expression!==void 0)return j;let Y=j,{id:K}={...Y.declaration.declarations[0]};return delete K.typeAnnotation,{type:"ConstTag",start:Y.start,end:j.end,expression:{type:"AssignmentExpression",start:(Y.declaration.start??0)+6,end:Y.declaration.end??0,operator:"=",left:K,right:Y.declaration.declarations[0].init}}},DeclarationTag(j){return j},KeyBlock(j,{visit:Y}){return W1(j.fragment.nodes),{type:"KeyBlock",start:j.start,end:j.end,expression:j.expression,children:j.fragment.nodes.map((K)=>Y(K))}},EachBlock(j,{visit:Y}){let K=void 0;if(j.fallback){let J=j.fallback.nodes.at(0),X=q.lastIndexOf("{",j.end-1),W=J?.start??X;W1(j.fallback.nodes),K={type:"ElseBlock",start:W,end:X,children:j.fallback.nodes.map((R)=>Y(R))}}return W1(j.body.nodes),{type:"EachBlock",start:j.start,end:j.end,children:j.body.nodes.map((J)=>Y(J)),context:j.context,expression:j.expression,index:j.index,key:j.key,else:K}},ExpressionTag(j,{path:Y}){let K=Y.at(-1);if(K?.type==="Attribute"){if(q[K.start]==="{")return{type:"AttributeShorthand",start:j.start,end:j.end,expression:j.expression}}return{type:"MustacheTag",start:j.start,end:j.end,expression:j.expression}},HtmlTag(j){return{...j,type:"RawMustacheTag"}},IfBlock(j,{visit:Y}){let K=void 0;if(j.alternate){let X=j.alternate.nodes;if(X.length===1&&X[0].type==="IfBlock"&&X[0].elseif)X=X[0].consequent.nodes;let W=q.lastIndexOf("{",j.end-1),R=X.at(0)?.start??W;W1(j.alternate.nodes),K={type:"ElseBlock",start:R,end:W,children:j.alternate.nodes.map((O)=>Y(O))}}let J=j.elseif?j.consequent.nodes[0]?.start??q.lastIndexOf("{",j.end-1):j.start;return W1(j.consequent.nodes),{type:"IfBlock",start:J,end:j.end,expression:j.test,children:j.consequent.nodes.map((X)=>Y(X)),else:K,elseif:j.elseif?!0:void 0}},OnDirective(j){return{...j,type:"EventHandler"}},SnippetBlock(j,{visit:Y}){return W1(j.body.nodes),{type:"SnippetBlock",start:j.start,end:j.end,expression:j.expression,parameters:j.parameters,children:j.body.nodes.map((K)=>Y(K)),typeParams:j.typeParams}},SvelteBoundary(j,{visit:Y}){return W1(j.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},RegularElement(j,{visit:Y}){return{type:"Element",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SlotElement(j,{visit:Y}){return{type:"Slot",start:j.start,end:j.end,name:j.name,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},Attribute(j,{visit:Y,next:K,path:J}){if(j.value!==!0&&!Array.isArray(j.value)){J.push(j);let X=[Y(j.value)];return J.pop(),{...j,value:X}}else return K()},StyleDirective(j,{visit:Y,next:K,path:J}){if(j.value!==!0&&!Array.isArray(j.value)){J.push(j);let X=[Y(j.value)];return J.pop(),{...j,value:X}}else return K()},SpreadAttribute(j){return{...j,type:"Spread"}},StyleSheet(j,Y){return{...j,...Y.next(),type:"Style"}},SvelteBody(j,{visit:Y}){return{type:"Body",name:"svelte:body",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteComponent(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:component",start:j.start,end:j.end,expression:j.expression,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteDocument(j,{visit:Y}){return{type:"Document",name:"svelte:document",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteElement(j,{visit:Y}){let K=j.tag;if(K.type==="Literal"&&typeof K.value==="string"&&q[j.tag.start-1]!=="{")K=K.value;return{type:"Element",name:"svelte:element",start:j.start,end:j.end,tag:K,attributes:j.attributes.map((J)=>Y(J)),children:j.fragment.nodes.map((J)=>Y(J))}},SvelteFragment(j,{visit:Y}){return{type:"SlotTemplate",name:"svelte:fragment",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteHead(j,{visit:Y}){return{type:"Head",name:"svelte:head",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteOptions(j,{visit:Y}){return{type:"Options",name:"svelte:options",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K))}},SvelteSelf(j,{visit:Y}){return{type:"InlineComponent",name:"svelte:self",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},SvelteWindow(j,{visit:Y}){return{type:"Window",name:"svelte:window",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},Text(j,{path:Y}){let K=Y.at(-1);if(K?.type==="RegularElement"&&K.name==="style")return{type:"Text",start:j.start,end:j.end,data:j.data}},TitleElement(j,{visit:Y}){return{type:"Title",name:"title",start:j.start,end:j.end,attributes:j.attributes.map((K)=>Y(K)),children:j.fragment.nodes.map((K)=>Y(K))}},TransitionDirective(j){return{...j,type:"Transition"}},UseDirective(j){return{...j,type:"Action"}},LetDirective(j){return{...j,type:"Let"}}})}var D0={};Z3(D0,{version:()=>o2,tokenizer:()=>zQ,tokTypes:()=>U,tokContexts:()=>Q8,parseExpressionAt:()=>WQ,parse:()=>XQ,nonASCIIwhitespace:()=>y9,lineBreakG:()=>U2,lineBreak:()=>F8,keywordTypes:()=>L0,isNewLine:()=>G1,isIdentifierStart:()=>C8,isIdentifierChar:()=>y8,getLineInfo:()=>g9,defaultOptions:()=>B0,TokenType:()=>o,Token:()=>S0,TokContext:()=>N8,SourceLocation:()=>f1,Position:()=>B1,Parser:()=>j8,Node:()=>g1});var Nq=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],z2=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],bq="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",G2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",T9={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},k9="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Tq={5:k9,"5module":k9+" export import",6:k9+" const class extends export import super"},O2=/^in(stanceof)?$/,kq=new RegExp("["+G2+"]"),Eq=new RegExp("["+G2+bq+"]");function E9(q,Q){var Z=65536;for(var j=0;j<Q.length;j+=2){if(Z+=Q[j],Z>q)return!1;if(Z+=Q[j+1],Z>=q)return!0}return!1}function C8(q,Q){if(q<65)return q===36;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&kq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,z2)}function y8(q,Q){if(q<48)return q===36;if(q<58)return!0;if(q<65)return!1;if(q<91)return!0;if(q<97)return q===95;if(q<123)return!0;if(q<=65535)return q>=170&&Eq.test(String.fromCharCode(q));if(Q===!1)return!1;return E9(q,z2)||E9(q,Nq)}var o=function(Q,Z){if(Z===void 0)Z={};this.label=Q,this.keyword=Z.keyword,this.beforeExpr=!!Z.beforeExpr,this.startsExpr=!!Z.startsExpr,this.isLoop=!!Z.isLoop,this.isAssign=!!Z.isAssign,this.prefix=!!Z.prefix,this.postfix=!!Z.postfix,this.binop=Z.binop||null,this.updateContext=null};function S8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var D8={beforeExpr:!0},$8={startsExpr:!0},L0={};function d(q,Q){if(Q===void 0)Q={};return Q.keyword=q,L0[q]=new o(q,Q)}var U={num:new o("num",$8),regexp:new o("regexp",$8),string:new o("string",$8),name:new o("name",$8),privateId:new o("privateId",$8),eof:new o("eof"),bracketL:new o("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new o("]"),braceL:new o("{",{beforeExpr:!0,startsExpr:!0}),braceR:new o("}"),parenL:new o("(",{beforeExpr:!0,startsExpr:!0}),parenR:new o(")"),comma:new o(",",D8),semi:new o(";",D8),colon:new o(":",D8),dot:new o("."),question:new o("?",D8),questionDot:new o("?."),arrow:new o("=>",D8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",D8),backQuote:new o("`",$8),dollarBraceL:new o("${",{beforeExpr:!0,startsExpr:!0}),eq:new o("=",{beforeExpr:!0,isAssign:!0}),assign:new o("_=",{beforeExpr:!0,isAssign:!0}),incDec:new o("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new o("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:S8("||",1),logicalAND:S8("&&",2),bitwiseOR:S8("|",3),bitwiseXOR:S8("^",4),bitwiseAND:S8("&",5),equality:S8("==/!=/===/!==",6),relational:S8("</>/<=/>=",7),bitShift:S8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:S8("%",10),star:S8("*",10),slash:S8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:S8("??",1),_break:d("break"),_case:d("case",D8),_catch:d("catch"),_continue:d("continue"),_debugger:d("debugger"),_default:d("default",D8),_do:d("do",{isLoop:!0,beforeExpr:!0}),_else:d("else",D8),_finally:d("finally"),_for:d("for",{isLoop:!0}),_function:d("function",$8),_if:d("if"),_return:d("return",D8),_switch:d("switch"),_throw:d("throw",D8),_try:d("try"),_var:d("var"),_const:d("const"),_while:d("while",{isLoop:!0}),_with:d("with"),_new:d("new",{beforeExpr:!0,startsExpr:!0}),_this:d("this",$8),_super:d("super",$8),_class:d("class",$8),_extends:d("extends",D8),_export:d("export"),_import:d("import",$8),_null:d("null",$8),_true:d("true",$8),_false:d("false",$8),_in:d("in",{beforeExpr:!0,binop:7}),_instanceof:d("instanceof",{beforeExpr:!0,binop:7}),_typeof:d("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:d("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:d("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},F8=/\r\n?|\n|\u2028|\u2029/,U2=new RegExp(F8.source,"g");function G1(q){return q===10||q===13||q===8232||q===8233}function R2(q,Q,Z){if(Z===void 0)Z=q.length;for(var j=Q;j<Z;j++){var Y=q.charCodeAt(j);if(G1(Y))return j<Z-1&&Y===13&&q.charCodeAt(j+1)===10?j+2:j+1}return-1}var y9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,X8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,B2=Object.prototype,vq=B2.hasOwnProperty,hq=B2.toString,F1=Object.hasOwn||function(q,Q){return vq.call(q,Q)},K2=Array.isArray||function(q){return hq.call(q)==="[object Array]"},V2=Object.create(null);function Q1(q){return V2[q]||(V2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function s8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var fq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B1=function(Q,Z){this.line=Q,this.column=Z};B1.prototype.offset=function(Q){return new B1(this.line,this.column+Q)};var f1=function(Q,Z,j){if(this.start=Z,this.end=j,Q.sourceFile!==null)this.source=Q.sourceFile};function g9(q,Q){for(var Z=1,j=0;;){var Y=R2(q,j,Q);if(Y<0)return new B1(Z,Q-j);++Z,j=Y}}var B0={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},X2=!1;function yq(q){var Q={};for(var Z in B0)Q[Z]=q&&F1(q,Z)?q[Z]:B0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!X2&&typeof console==="object"&&console.warn)X2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
27
+ Defaulting to 2020, but this will stop working in the future.`);Q.ecmaVersion=11}else if(Q.ecmaVersion>=2015)Q.ecmaVersion-=2009;if(Q.allowReserved==null)Q.allowReserved=Q.ecmaVersion<5;if(!q||q.allowHashBang==null)Q.allowHashBang=Q.ecmaVersion>=14;if(K2(Q.onToken)){var j=Q.onToken;Q.onToken=function(Y){return j.push(Y)}}if(K2(Q.onComment))Q.onComment=gq(Q,Q.onComment);if(Q.sourceType==="commonjs"&&Q.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return Q}function gq(q,Q){return function(Z,j,Y,K,J,X){var W={type:Z?"Block":"Line",value:j,start:Y,end:K};if(q.locations)W.loc=new f1(this,J,X);if(q.ranges)W.range=[Y,K];Q.push(W)}}var z1=1,O1=2,_9=4,F2=8,x9=16,M2=32,C0=64,$2=128,U1=256,y1=512,w2=1024,A0=z1|O1|U1;function u9(q,Q){return O1|(q?_9:0)|(Q?F2:0)}var F0=0,m9=1,r8=2,L2=3,C2=4,A2=5,j8=function(Q,Z,j){this.options=Q=yq(Q),this.sourceFile=Q.sourceFile,this.keywords=Q1(Tq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var Y="";if(Q.allowReserved!==!0){if(Y=T9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")Y+=" await"}this.reservedWords=Q1(Y);var K=(Y?Y+" ":"")+T9.strict;if(this.reservedWordsStrict=Q1(K),this.reservedWordsStrictBind=Q1(K+" "+T9.strictBind),this.input=String(Z),this.containsEsc=!1,this.pos=j||0,this.curLine=1,Q.startLocation)this.lineStart=this.pos-Q.startLocation.column,this.curLine=Q.startLocation.line;else if(j){if(this.lineStart=this.input.lastIndexOf(`
28
+ `,j-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(F8).length}else this.lineStart=0;if(this.type=U.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=Q.sourceType==="module",this.strict=this.inModule||Q.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&Q.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?O1:z1),this.regexpState=null,this.privateNameStack=[]},T8={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};j8.prototype.parse=function(){var Q=this,Z=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return Q.parseTopLevel(Z)})};T8.inFunction.get=function(){return(this.currentVarScope().flags&O1)>0};T8.inGenerator.get=function(){return(this.currentVarScope().flags&F2)>0};T8.inAsync.get=function(){return(this.currentVarScope().flags&_9)>0};T8.canAwait.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1))return!1;if(Z&O1)return(Z&_9)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};T8.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&z1)return!0;return!1};T8.allowSuper.get=function(){var q=this.currentThisScope(),Q=q.flags;return(Q&C0)>0||this.options.allowSuperOutsideMethod};T8.allowDirectSuper.get=function(){return(this.currentThisScope().flags&$2)>0};T8.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};T8.allowNewDotTarget.get=function(){for(var q=this.scopeStack.length-1;q>=0;q--){var Q=this.scopeStack[q],Z=Q.flags;if(Z&(U1|y1)||Z&O1&&!(Z&x9))return!0}return!1};T8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&w2)return!1;if(!this.inModule&&Q&z1)return!1;return!0};T8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&U1)>0};j8.extend=function(){var Q=[],Z=arguments.length;while(Z--)Q[Z]=arguments[Z];var j=this;for(var Y=0;Y<Q.length;Y++)j=Q[Y](j);return j};j8.parse=function(Q,Z){return new this(Z,Q).parse()};j8.parseExpressionAt=function(Q,Z,j){var Y=new this(j,Q,Z);return Y.nextToken(),Y.parseExpression()};j8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(j8.prototype,T8);var B8=j8.prototype,_q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;B8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){X8.lastIndex=q,q+=X8.exec(this.input)[0].length;var Q=_q.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){X8.lastIndex=q+Q[0].length;var Z=X8.exec(this.input),j=Z.index+Z[0].length,Y=this.input.charAt(j);return Y===";"||Y==="}"||F8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(Y)||Y==="!"&&this.input.charAt(j+1)==="=")}if(q+=Q[0].length,X8.lastIndex=q,q+=X8.exec(this.input)[0].length,this.input[q]===";")q++}};B8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};B8.isContextual=function(q){return this.type===U.name&&this.value===q&&!this.containsEsc};B8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};B8.catchStackOverflow=function(q){try{return q()}catch(Q){if(Q instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(Q.message)||/\btoo much recursion\b/i.test(Q.message)))this.raise(this.start,"Not enough stack space to parse input");else throw Q}};B8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};B8.canInsertSemicolon=function(){return this.type===U.eof||this.type===U.braceR||F8.test(this.input.slice(this.lastTokEnd,this.start))};B8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};B8.semicolon=function(){if(!this.eat(U.semi)&&!this.insertSemicolon())this.unexpected()};B8.afterTrailingComma=function(q,Q){if(this.type===q){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!Q)this.next();return!0}};B8.expect=function(q){this.eat(q)||this.unexpected()};B8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var I0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B8.checkPatternErrors=function(q,Q){if(!q)return;if(q.trailingComma>-1)this.raiseRecoverable(q.trailingComma,"Comma is not permitted after the rest element");var Z=Q?q.parenthesizedAssign:q.parenthesizedBind;if(Z>-1)this.raiseRecoverable(Z,Q?"Assigning to rvalue":"Parenthesized pattern")};B8.checkExpressionErrors=function(q,Q){if(!q)return!1;var{shorthandAssign:Z,doubleProto:j}=q;if(!Q)return Z>=0||j>=0;if(Z>=0)this.raise(Z,"Shorthand property assignments are valid only in destructuring patterns");if(j>=0)this.raiseRecoverable(j,"Redefinition of __proto__ property")};B8.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};B8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var k=j8.prototype;k.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==U.eof){var Z=this.parseStatement(null,!0,Q);q.body.push(Z)}if(this.inModule)for(var j=0,Y=Object.keys(this.undefinedExports);j<Y.length;j+=1){var K=Y[j];this.raiseRecoverable(this.undefinedExports[K].start,"Export '"+K+"' is not defined")}return this.adaptDirectivePrologue(q.body),this.next(),q.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(q,"Program")};var l9={kind:"loop"},xq={kind:"switch"};k.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;X8.lastIndex=this.pos;var Q=X8.exec(this.input),Z=this.pos+Q[0].length,j=this.fullCharCodeAt(Z);if(j===91||j===92)return!0;if(q)return!1;if(j===123)return!0;if(C8(j)){var Y=Z;do Z+=j<=65535?1:2;while(y8(j=this.fullCharCodeAt(Z)));if(j===92)return!0;var K=this.input.slice(Y,Z);if(!O2.test(K))return!0}return!1};k.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X8.lastIndex=this.pos;var q=X8.exec(this.input),Q=this.pos+q[0].length,Z;return!F8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(y8(Z=this.fullCharCodeAt(Q+8))||Z===92))};k.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;X8.lastIndex=this.pos;var Z=X8.exec(this.input),j=this.pos+Z[0].length;if(F8.test(this.input.slice(this.pos,j)))return!1;if(q){var Y=j+5,K;if(this.input.slice(j,Y)!=="using"||Y===this.input.length||y8(K=this.fullCharCodeAt(Y))||K===92)return!1;X8.lastIndex=Y;var J=X8.exec(this.input);if(j=Y+J[0].length,J&&F8.test(this.input.slice(Y,j)))return!1}var X=this.fullCharCodeAt(j);if(!C8(X)&&X!==92)return!1;var W=j;do j+=X<=65535?1:2;while(y8(X=this.fullCharCodeAt(j)));if(X===92)return!0;var R=this.input.slice(W,j);if(O2.test(R))return!1;if(Q&&!q&&R==="of"){X8.lastIndex=j;var O=X8.exec(this.input);if(j=j+O[0].length,this.input.charCodeAt(j)!==61||(X=this.input.charCodeAt(j+1))===61||X===62)return!1}return!0};k.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};k.isUsing=function(q){return this.isUsingKeyword(!1,q)};k.parseStatement=function(q,Q,Z){var j=this.type,Y=this.startNode(),K;if(this.isLet(q))j=U._var,K="let";switch(j){case U._break:case U._continue:return this.parseBreakContinueStatement(Y,j.keyword);case U._debugger:return this.parseDebuggerStatement(Y);case U._do:return this.parseDoStatement(Y);case U._for:return this.parseForStatement(Y);case U._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(Y,!1,!q);case U._class:if(q)this.unexpected();return this.parseClass(Y,!0);case U._if:return this.parseIfStatement(Y);case U._return:return this.parseReturnStatement(Y);case U._switch:return this.parseSwitchStatement(Y);case U._throw:return this.parseThrowStatement(Y);case U._try:return this.parseTryStatement(Y);case U._const:case U._var:if(K=K||this.value,q&&K!=="var")this.unexpected();return this.parseVarStatement(Y,K);case U._while:return this.parseWhileStatement(Y);case U._with:return this.parseWithStatement(Y);case U.braceL:return this.parseBlock(!0,Y);case U.semi:return this.parseEmptyStatement(Y);case U._export:case U._import:if(this.options.ecmaVersion>10&&j===U._import){X8.lastIndex=this.pos;var J=X8.exec(this.input),X=this.pos+J[0].length,W=this.input.charCodeAt(X);if(W===40||W===46)return this.parseExpressionStatement(Y,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!Q)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return j===U._import?this.parseImport(Y):this.parseExport(Y,Z);default:if(this.isAsyncFunction()){if(q)this.unexpected();return this.next(),this.parseFunctionStatement(Y,!0,!q)}var R=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(R){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(q)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(R==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(Y,!1,R),this.semicolon(),this.finishNode(Y,"VariableDeclaration")}var O=this.value,M=this.parseExpression();if(j===U.name&&M.type==="Identifier"&&this.eat(U.colon))return this.parseLabeledStatement(Y,O,M,q);else return this.parseExpressionStatement(Y,M)}};k.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.label=null;else if(this.type!==U.name)this.unexpected();else q.label=this.parseIdent(),this.semicolon();var j=0;for(;j<this.labels.length;++j){var Y=this.labels[j];if(q.label==null||Y.name===q.label.name){if(Y.kind!=null&&(Z||Y.kind==="loop"))break;if(q.label&&Z)break}}if(j===this.labels.length)this.raise(q.start,"Unsyntactic "+Q);return this.finishNode(q,Z?"BreakStatement":"ContinueStatement")};k.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};k.parseDoStatement=function(q){if(this.next(),this.labels.push(l9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(U._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(U.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};k.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(l9),this.enterScope(0),this.expect(U.parenL),this.type===U.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===U._var||this.type===U._const||Z){var j=this.startNode(),Y=Z?"let":this.value;return this.next(),this.parseVar(j,!0,Y),this.finishNode(j,"VariableDeclaration"),this.parseForAfterInit(q,j,Q)}var K=this.isContextual("let"),J=!1,X=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(X){var W=this.startNode();if(this.next(),X==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(W,!0,X),this.finishNode(W,"VariableDeclaration"),this.parseForAfterInit(q,W,Q)}var R=this.containsEsc,O=new I0,M=this.start,$=Q>-1?this.parseExprSubscripts(O,"await"):this.parseExpression(!0,O);if(this.type===U._in||(J=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===U._in)this.unexpected(Q);q.await=!0}else if(J&&this.options.ecmaVersion>=8){if($.start===M&&!R&&$.type==="Identifier"&&$.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(K&&J)this.raise($.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable($,!1,O),this.checkLValPattern($),this.parseForIn(q,$)}else this.checkExpressionErrors(O,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,$)};k.parseForAfterInit=function(q,Q,Z){if((this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===U._in){if((Q.kind==="using"||Q.kind==="await using")&&!Q.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&Z>-1)this.unexpected(Z)}else if(this.options.ecmaVersion>=9)q.await=Z>-1;return this.parseForIn(q,Q)}if(Z>-1)this.unexpected(Z);return this.parseFor(q,Q)};k.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,h1|(Z?0:v9),!1,Q)};k.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(U._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};k.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(U.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};k.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(U.braceL),this.labels.push(xq),this.enterScope(w2);var Q;for(var Z=!1;this.type!==U.braceR;)if(this.type===U._case||this.type===U._default){var j=this.type===U._case;if(Q)this.finishNode(Q,"SwitchCase");if(q.cases.push(Q=this.startNode()),Q.consequent=[],this.next(),j)Q.test=this.parseExpression();else{if(Z)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");Z=!0,Q.test=null}this.expect(U.colon)}else{if(!Q)this.unexpected();Q.consequent.push(this.parseStatement(null))}if(this.exitScope(),Q)this.finishNode(Q,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(q,"SwitchStatement")};k.parseThrowStatement=function(q){if(this.next(),F8.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return q.argument=this.parseExpression(),this.semicolon(),this.finishNode(q,"ThrowStatement")};var uq=[];k.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?M2:0),this.checkLValPattern(q,Q?C2:r8),this.expect(U.parenR),q};k.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===U._catch){var Q=this.startNode();if(this.next(),this.eat(U.parenL))Q.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();Q.param=null,this.enterScope(0)}Q.body=this.parseBlock(!1),this.exitScope(),q.handler=this.finishNode(Q,"CatchClause")}if(q.finalizer=this.eat(U._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};k.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};k.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(l9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};k.parseWithStatement=function(q){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),q.object=this.parseParenExpression(),q.body=this.parseStatement("with"),this.finishNode(q,"WithStatement")};k.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};k.parseLabeledStatement=function(q,Q,Z,j){for(var Y=0,K=this.labels;Y<K.length;Y+=1){var J=K[Y];if(J.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var X=this.type.isLoop?"loop":this.type===U._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var R=this.labels[W];if(R.statementStart===q.start)R.statementStart=this.start,R.kind=X;else break}return this.labels.push({name:Q,kind:X,statementStart:this.start}),q.body=this.parseStatement(j?j.indexOf("label")===-1?j+"label":j:"label"),this.labels.pop(),q.label=Z,this.finishNode(q,"LabeledStatement")};k.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};k.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(U.braceL),q)this.enterScope(0);while(this.type!==U.braceR){var j=this.parseStatement(null);Q.body.push(j)}if(Z)this.strict=!1;if(this.next(),q)this.exitScope();return this.finishNode(Q,"BlockStatement")};k.parseFor=function(q,Q){return q.init=Q,this.expect(U.semi),q.test=this.type===U.semi?null:this.parseExpression(),this.expect(U.semi),q.update=this.type===U.parenR?null:this.parseExpression(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};k.parseForIn=function(q,Q){var Z=this.type===U._in;if(this.next(),Q.type==="VariableDeclaration"&&Q.declarations[0].init!=null&&(!Z||this.options.ecmaVersion<8||this.strict||Q.kind!=="var"||Q.declarations[0].id.type!=="Identifier"))this.raise(Q.start,(Z?"for-in":"for-of")+" loop variable declaration may not have an initializer");return q.left=Q,q.right=Z?this.parseExpression():this.parseMaybeAssign(),this.expect(U.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};k.parseVar=function(q,Q,Z,j){q.declarations=[],q.kind=Z;for(;;){var Y=this.startNode();if(this.parseVarId(Y,Z),this.eat(U.eq))Y.init=this.parseMaybeAssign(Q);else if(!j&&Z==="const"&&!(this.type===U._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!j&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==U._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!j&&Y.id.type!=="Identifier"&&!(Q&&(this.type===U._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else Y.init=null;if(q.declarations.push(this.finishNode(Y,"VariableDeclarator")),!this.eat(U.comma))break}return q};k.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?m9:r8,!1)};var h1=1,v9=2,I2=4;k.parseFunction=function(q,Q,Z,j,Y){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!j){if(this.type===U.star&&Q&v9)this.unexpected();q.generator=this.eat(U.star)}if(this.options.ecmaVersion>=8)q.async=!!j;if(Q&h1){if(q.id=Q&I2&&this.type!==U.name?null:this.parseIdent(),q.id&&!(Q&v9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?m9:r8:L2)}var K=this.yieldPos,J=this.awaitPos,X=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(q.async,q.generator)),!(Q&h1))q.id=this.type===U.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,Y),this.yieldPos=K,this.awaitPos=J,this.awaitIdentPos=X,this.finishNode(q,Q&h1?"FunctionDeclaration":"FunctionExpression")};k.parseFunctionParams=function(q){this.expect(U.parenL),q.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};k.parseClass=function(q,Q){this.next();var Z=this.strict;this.strict=!0,this.parseClassId(q,Q),this.parseClassSuper(q);var j=this.enterClassBody(),Y=this.startNode(),K=!1;Y.body=[],this.expect(U.braceL);while(this.type!==U.braceR){var J=this.parseClassElement(q.superClass!==null);if(J){if(Y.body.push(J),J.type==="MethodDefinition"&&J.kind==="constructor"){if(K)this.raiseRecoverable(J.start,"Duplicate constructor in the same class");K=!0}else if(J.key&&J.key.type==="PrivateIdentifier"&&mq(j,J))this.raiseRecoverable(J.key.start,"Identifier '#"+J.key.name+"' has already been declared")}}return this.strict=Z,this.next(),q.body=this.finishNode(Y,"ClassBody"),this.exitClassBody(),this.finishNode(q,Q?"ClassDeclaration":"ClassExpression")};k.parseClassElement=function(q){if(this.eat(U.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),j="",Y=!1,K=!1,J="method",X=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(U.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===U.star)X=!0;else j="static"}if(Z.static=X,!j&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===U.star)&&!this.canInsertSemicolon())K=!0;else j="async";if(!j&&(Q>=9||!K)&&this.eat(U.star))Y=!0;if(!j&&!K&&!Y){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())J=W;else j=W}if(j)Z.computed=!1,Z.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),Z.key.name=j,this.finishNode(Z.key,"Identifier");else this.parseClassElementName(Z);if(Q<13||this.type===U.parenL||J!=="method"||Y||K){var R=!Z.static&&M0(Z,"constructor"),O=R&&q;if(R&&J!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=R?"constructor":J,this.parseClassMethod(Z,Y,K,O)}else this.parseClassField(Z);return Z};k.isClassElementNameStart=function(){return this.type===U.name||this.type===U.privateId||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword};k.parseClassElementName=function(q){if(this.type===U.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");q.computed=!1,q.key=this.parsePrivateIdent()}else this.parsePropertyName(q)};k.parseClassMethod=function(q,Q,Z,j){var Y=q.key;if(q.kind==="constructor"){if(Q)this.raise(Y.start,"Constructor can't be a generator");if(Z)this.raise(Y.start,"Constructor can't be an async method")}else if(q.static&&M0(q,"prototype"))this.raise(Y.start,"Classes may not have a static property named prototype");var K=q.value=this.parseMethod(Q,Z,j);if(q.kind==="get"&&K.params.length!==0)this.raiseRecoverable(K.start,"getter should have no params");if(q.kind==="set"&&K.params.length!==1)this.raiseRecoverable(K.start,"setter should have exactly one param");if(q.kind==="set"&&K.params[0].type==="RestElement")this.raiseRecoverable(K.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};k.parseClassField=function(q){if(M0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&M0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(U.eq))this.enterScope(y1|C0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};k.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(U1|C0);while(this.type!==U.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};k.parseClassId=function(q,Q){if(this.type===U.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,r8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};k.parseClassSuper=function(q){q.superClass=this.eat(U._extends)?this.parseExprSubscripts(null,!1):null};k.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};k.exitClassBody=function(){var q=this.privateNameStack.pop(),Q=q.declared,Z=q.used;if(!this.options.checkPrivateFields)return;var j=this.privateNameStack.length,Y=j===0?null:this.privateNameStack[j-1];for(var K=0;K<Z.length;++K){var J=Z[K];if(!F1(Q,J.name))if(Y)Y.used.push(J);else this.raiseRecoverable(J.start,"Private field '#"+J.name+"' must be declared in an enclosing class")}};function mq(q,Q){var Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function M0(q,Q){var{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}k.parseExportAllDeclaration=function(q,Q){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))q.exported=this.parseModuleExportName(),this.checkExport(Q,q.exported,this.lastTokStart);else q.exported=null;if(this.expectContextual("from"),this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};k.parseExport=function(q,Q){if(this.next(),this.eat(U.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(U._default))return this.checkExport(Q,"default",this.lastTokStart),q.declaration=this.parseExportDefaultDeclaration(),this.finishNode(q,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(q.declaration=this.parseExportDeclaration(q),q.declaration.type==="VariableDeclaration")this.checkVariableExport(Q,q.declaration.declarations);else this.checkExport(Q,q.declaration.id,q.declaration.id.start);if(q.specifiers=[],q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}else{if(q.declaration=null,q.specifiers=this.parseExportSpecifiers(Q),this.eatContextual("from")){if(this.type!==U.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause()}else{for(var Z=0,j=q.specifiers;Z<j.length;Z+=1){var Y=j[Z];if(this.checkUnreserved(Y.local),this.checkLocalExport(Y.local),Y.local.type==="Literal")this.raise(Y.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(q.source=null,this.options.ecmaVersion>=16)q.attributes=[]}this.semicolon()}return this.finishNode(q,"ExportNamedDeclaration")};k.parseExportDeclaration=function(q){return this.parseStatement(null)};k.parseExportDefaultDeclaration=function(){var q;if(this.type===U._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,h1|I2,!1,q)}else if(this.type===U._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var j=this.parseMaybeAssign();return this.semicolon(),j}};k.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(F1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};k.checkPatternExport=function(q,Q){var Z=Q.type;if(Z==="Identifier")this.checkExport(q,Q,Q.start);else if(Z==="ObjectPattern")for(var j=0,Y=Q.properties;j<Y.length;j+=1){var K=Y[j];this.checkPatternExport(q,K)}else if(Z==="ArrayPattern")for(var J=0,X=Q.elements;J<X.length;J+=1){var W=X[J];if(W)this.checkPatternExport(q,W)}else if(Z==="Property")this.checkPatternExport(q,Q.value);else if(Z==="AssignmentPattern")this.checkPatternExport(q,Q.left);else if(Z==="RestElement")this.checkPatternExport(q,Q.argument)};k.checkVariableExport=function(q,Q){if(!q)return;for(var Z=0,j=Q;Z<j.length;Z+=1){var Y=j[Z];this.checkPatternExport(q,Y.id)}};k.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};k.parseExportSpecifier=function(q){var Q=this.startNode();return Q.local=this.parseModuleExportName(),Q.exported=this.eatContextual("as")?this.parseModuleExportName():Q.local,this.checkExport(q,Q.exported,Q.exported.start),this.finishNode(Q,"ExportSpecifier")};k.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};k.parseImport=function(q){if(this.next(),this.type===U.string)q.specifiers=uq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===U.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};k.parseImportSpecifier=function(){var q=this.startNode();if(q.imported=this.parseModuleExportName(),this.eatContextual("as"))q.local=this.parseIdent();else this.checkUnreserved(q.imported),q.local=q.imported;return this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportSpecifier")};k.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportDefaultSpecifier")};k.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,r8),this.finishNode(q,"ImportNamespaceSpecifier")};k.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===U.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(U.comma))return q}if(this.type===U.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(U.braceL);while(!this.eat(U.braceR)){if(!Q){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};k.parseWithClause=function(){var q=[];if(!this.eat(U._with))return q;this.expect(U.braceL);var Q={},Z=!0;while(!this.eat(U.braceR)){if(!Z){if(this.expect(U.comma),this.afterTrailingComma(U.braceR))break}else Z=!1;var j=this.parseImportAttribute(),Y=j.key.type==="Identifier"?j.key.name:j.key.value;if(F1(Q,Y))this.raiseRecoverable(j.key.start,"Duplicate attribute key '"+Y+"'");Q[Y]=!0,q.push(j)}return q};k.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(U.colon),this.type!==U.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};k.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===U.string){var q=this.parseLiteral(this.value);if(fq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};k.adaptDirectivePrologue=function(q){for(var Q=0;Q<q.length&&this.isDirectiveCandidate(q[Q]);++Q)q[Q].directive=q[Q].expression.raw.slice(1,-1)};k.isDirectiveCandidate=function(q){return this.options.ecmaVersion>=5&&q.type==="ExpressionStatement"&&q.expression.type==="Literal"&&typeof q.expression.value==="string"&&(this.input[q.start]==='"'||this.input[q.start]==="'")};var k8=j8.prototype;k8.toAssignable=function(q,Q,Z){if(this.options.ecmaVersion>=6&&q)switch(q.type){case"Identifier":if(this.inAsync&&q.name==="await")this.raise(q.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(q.type="ObjectPattern",Z)this.checkPatternErrors(Z,!0);for(var j=0,Y=q.properties;j<Y.length;j+=1){var K=Y[j];if(this.toAssignable(K,Q),K.type==="RestElement"&&(K.argument.type==="ArrayPattern"||K.argument.type==="ObjectPattern"))this.raise(K.argument.start,"Unexpected token")}break;case"Property":if(q.kind!=="init")this.raise(q.key.start,"Object pattern can't contain getter or setter");this.toAssignable(q.value,Q);break;case"ArrayExpression":if(q.type="ArrayPattern",Z)this.checkPatternErrors(Z,!0);this.toAssignableList(q.elements,Q);break;case"SpreadElement":if(q.type="RestElement",this.toAssignable(q.argument,Q),q.argument.type==="AssignmentPattern")this.raise(q.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(q.operator!=="=")this.raise(q.left.end,"Only '=' operator can be used for specifying default value.");q.type="AssignmentPattern",delete q.operator,this.toAssignable(q.left,Q);break;case"ParenthesizedExpression":this.toAssignable(q.expression,Q,Z);break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!Q)break;default:this.raise(q.start,"Assigning to rvalue")}else if(Z)this.checkPatternErrors(Z,!0);return q};k8.toAssignableList=function(q,Q){var Z=q.length;for(var j=0;j<Z;j++){var Y=q[j];if(Y)this.toAssignable(Y,Q)}if(Z){var K=q[Z-1];if(this.options.ecmaVersion===6&&Q&&K&&K.type==="RestElement"&&K.argument.type!=="Identifier")this.unexpected(K.argument.start)}return q};k8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};k8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==U.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};k8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case U.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(U.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case U.braceL:return this.parseObj(!0)}return this.parseIdent()};k8.parseBindingList=function(q,Q,Z,j){var Y=[],K=!0;while(!this.eat(q)){if(K)K=!1;else this.expect(U.comma);if(Q&&this.type===U.comma)Y.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===U.ellipsis){var J=this.parseRestBinding();if(this.parseBindingListItem(J),Y.push(J),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(q);break}else Y.push(this.parseAssignableListItem(j))}return Y};k8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};k8.parseBindingListItem=function(q){return q};k8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(U.eq))return Z;var j=this.startNodeAt(q,Q);return j.left=Z,j.right=this.parseMaybeAssign(),this.finishNode(j,"AssignmentPattern")};k8.checkLValSimple=function(q,Q,Z){if(Q===void 0)Q=F0;var j=Q!==F0;switch(q.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(q.name))this.raiseRecoverable(q.start,(j?"Binding ":"Assigning to ")+q.name+" in strict mode");if(j){if(Q===r8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(F1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==A2)this.declareName(q.name,Q,q.start)}break;case"ChainExpression":this.raiseRecoverable(q.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(j)this.raiseRecoverable(q.start,"Binding member expression");break;case"ParenthesizedExpression":if(j)this.raiseRecoverable(q.start,"Binding parenthesized expression");return this.checkLValSimple(q.expression,Q,Z);default:this.raise(q.start,(j?"Binding":"Assigning to")+" rvalue")}};k8.checkLValPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"ObjectPattern":for(var j=0,Y=q.properties;j<Y.length;j+=1){var K=Y[j];this.checkLValInnerPattern(K,Q,Z)}break;case"ArrayPattern":for(var J=0,X=q.elements;J<X.length;J+=1){var W=X[J];if(W)this.checkLValInnerPattern(W,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};k8.checkLValInnerPattern=function(q,Q,Z){if(Q===void 0)Q=F0;switch(q.type){case"Property":this.checkLValInnerPattern(q.value,Q,Z);break;case"AssignmentPattern":this.checkLValPattern(q.left,Q,Z);break;case"RestElement":this.checkLValPattern(q.argument,Q,Z);break;default:this.checkLValPattern(q,Q,Z)}};var N8=function(Q,Z,j,Y,K){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!j,this.override=Y,this.generator=!!K},Q8={b_stat:new N8("{",!1),b_expr:new N8("{",!0),b_tmpl:new N8("${",!1),p_stat:new N8("(",!1),p_expr:new N8("(",!0),q_tmpl:new N8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new N8("function",!1),f_expr:new N8("function",!0),f_expr_gen:new N8("function",!0,!1,null,!0),f_gen:new N8("function",!1,!1,null,!0)},M1=j8.prototype;M1.initialContext=function(){return[Q8.b_stat]};M1.curContext=function(){return this.context[this.context.length-1]};M1.braceIsBlock=function(q){var Q=this.curContext();if(Q===Q8.f_expr||Q===Q8.f_stat)return!0;if(q===U.colon&&(Q===Q8.b_stat||Q===Q8.b_expr))return!Q.isExpr;if(q===U._return||q===U.name&&this.exprAllowed)return F8.test(this.input.slice(this.lastTokEnd,this.start));if(q===U._else||q===U.semi||q===U.eof||q===U.parenR||q===U.arrow)return!0;if(q===U.braceL)return Q===Q8.b_stat;if(q===U._var||q===U._const||q===U.name)return!1;return!this.exprAllowed};M1.inGeneratorContext=function(){for(var q=this.context.length-1;q>=1;q--){var Q=this.context[q];if(Q.token==="function")return Q.generator}return!1};M1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===U.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};M1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};U.parenR.updateContext=U.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var q=this.context.pop();if(q===Q8.b_stat&&this.curContext().token==="function")q=this.context.pop();this.exprAllowed=!q.isExpr};U.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?Q8.b_stat:Q8.b_expr),this.exprAllowed=!0};U.dollarBraceL.updateContext=function(){this.context.push(Q8.b_tmpl),this.exprAllowed=!0};U.parenL.updateContext=function(q){var Q=q===U._if||q===U._for||q===U._with||q===U._while;this.context.push(Q?Q8.p_stat:Q8.p_expr),this.exprAllowed=!0};U.incDec.updateContext=function(){};U._function.updateContext=U._class.updateContext=function(q){if(q.beforeExpr&&q!==U._else&&!(q===U.semi&&this.curContext()!==Q8.p_stat)&&!(q===U._return&&F8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===U.colon||q===U.braceL)&&this.curContext()===Q8.b_stat))this.context.push(Q8.f_expr);else this.context.push(Q8.f_stat);this.exprAllowed=!1};U.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};U.backQuote.updateContext=function(){if(this.curContext()===Q8.q_tmpl)this.context.pop();else this.context.push(Q8.q_tmpl);this.exprAllowed=!1};U.star.updateContext=function(q){if(q===U._function){var Q=this.context.length-1;if(this.context[Q]===Q8.f_expr)this.context[Q]=Q8.f_expr_gen;else this.context[Q]=Q8.f_gen}this.exprAllowed=!0};U.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==U.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var u=j8.prototype;u.checkPropClash=function(q,Q,Z){if(this.options.ecmaVersion>=9&&q.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(q.computed||q.method||q.shorthand))return;var j=q.key,Y;switch(j.type){case"Identifier":Y=j.name;break;case"Literal":Y=String(j.value);break;default:return}var K=q.kind;if(this.options.ecmaVersion>=6){if(Y==="__proto__"&&K==="init"){if(Q.proto)if(Z){if(Z.doubleProto<0)Z.doubleProto=j.start}else this.raiseRecoverable(j.start,"Redefinition of __proto__ property");Q.proto=!0}return}Y="$"+Y;var J=Q[Y];if(J){var X;if(K==="init")X=this.strict&&J.init||J.get||J.set;else X=J.init||J[K];if(X)this.raiseRecoverable(j.start,"Redefinition of property")}else J=Q[Y]={init:!1,get:!1,set:!1};J[K]=!0};u.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:j,startLoc:Y}=Z,K=Z.parseMaybeAssign(q,Q);if(Z.type===U.comma){var J=Z.startNodeAt(j,Y);J.expressions=[K];while(Z.eat(U.comma))J.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(J,"SequenceExpression")}return K})};u.parseMaybeAssign=function(q,Q,Z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(q);else this.exprAllowed=!1;var j=!1,Y=-1,K=-1,J=-1;if(Q)Y=Q.parenthesizedAssign,K=Q.trailingComma,J=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new I0,j=!0;var X=this.start,W=this.startLoc;if(this.type===U.parenL||this.type===U.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var R=this.parseMaybeConditional(q,Q);if(Z)R=Z.call(this,R,X,W);if(this.type.isAssign){var O=this.startNodeAt(X,W);if(O.operator=this.value,this.type===U.eq)R=this.toAssignable(R,!1,Q);if(!j)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=R.start)Q.shorthandAssign=-1;if(this.type===U.eq)this.checkLValPattern(R);else this.checkLValSimple(R);if(O.left=R,this.next(),O.right=this.parseMaybeAssign(q),J>-1)Q.doubleProto=J;return this.finishNode(O,"AssignmentExpression")}else if(j)this.checkExpressionErrors(Q,!0);if(Y>-1)Q.parenthesizedAssign=Y;if(K>-1)Q.trailingComma=K;return R};u.parseMaybeConditional=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprOps(q,Q);if(this.checkExpressionErrors(Q))return Y;if(!(Y.type==="ArrowFunctionExpression"&&Y.start===Z)&&this.eat(U.question)){var K=this.startNodeAt(Z,j);return K.test=Y,K.consequent=this.parseMaybeAssign(),this.expect(U.colon),K.alternate=this.parseMaybeAssign(q),this.finishNode(K,"ConditionalExpression")}return Y};u.parseExprOps=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseMaybeUnary(Q,!1,!1,q);if(this.checkExpressionErrors(Q))return Y;return Y.start===Z&&Y.type==="ArrowFunctionExpression"?Y:this.parseExprOp(Y,Z,j,-1,q)};u.parseExprOp=function(q,Q,Z,j,Y){var K=this.type.binop;if(K!=null&&(!Y||this.type!==U._in)){if(K>j){var J=this.type===U.logicalOR||this.type===U.logicalAND,X=this.type===U.coalesce;if(X)K=U.logicalAND.binop;var W=this.value;this.next();var R=this.start,O=this.startLoc,M=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,Y),R,O,K,Y),$=this.buildBinary(Q,Z,q,M,W,J||X);if(J&&this.type===U.coalesce||X&&(this.type===U.logicalOR||this.type===U.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp($,Q,Z,j,Y)}}return q};u.buildBinary=function(q,Q,Z,j,Y,K){if(j.type==="PrivateIdentifier")this.raise(j.start,"Private identifier can only be left side of binary expression");var J=this.startNodeAt(q,Q);return J.left=Z,J.operator=Y,J.right=j,this.finishNode(J,K?"LogicalExpression":"BinaryExpression")};u.parseMaybeUnary=function(q,Q,Z,j){var Y=this.start,K=this.startLoc,J;if(this.isContextual("await")&&this.canAwait)J=this.parseAwait(j),Q=!0;else if(this.type.prefix){var X=this.startNode(),W=this.type===U.incDec;if(X.operator=this.value,X.prefix=!0,this.next(),X.argument=this.parseMaybeUnary(null,!0,W,j),this.checkExpressionErrors(q,!0),W)this.checkLValSimple(X.argument);else if(this.strict&&X.operator==="delete"&&P2(X.argument))this.raiseRecoverable(X.start,"Deleting local variable in strict mode");else if(X.operator==="delete"&&h9(X.argument))this.raiseRecoverable(X.start,"Private fields can not be deleted");else Q=!0;J=this.finishNode(X,W?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===U.privateId){if((j||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(J=this.parsePrivateIdent(),this.type!==U._in)this.unexpected()}else{if(J=this.parseExprSubscripts(q,j),this.checkExpressionErrors(q))return J;while(this.type.postfix&&!this.canInsertSemicolon()){var R=this.startNodeAt(Y,K);R.operator=this.value,R.prefix=!1,R.argument=J,this.checkLValSimple(J),this.next(),J=this.finishNode(R,"UpdateExpression")}}if(!Z&&!(J.type==="ArrowFunctionExpression"&&J.start===Y)&&this.eat(U.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(Y,K,J,this.parseMaybeUnary(null,!1,!1,j),"**",!1);else return J};function P2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&P2(q.expression)}function h9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&h9(q.expression)||q.type==="ParenthesizedExpression"&&h9(q.expression)}u.parseExprSubscripts=function(q,Q){var Z=this.start,j=this.startLoc,Y=this.parseExprAtom(q,Q);if(Y.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Y;var K=this.parseSubscripts(Y,Z,j,!1,Q);if(q&&K.type==="MemberExpression"){if(q.parenthesizedAssign>=K.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=K.start)q.parenthesizedBind=-1;if(q.trailingComma>=K.start)q.trailingComma=-1}return K};u.parseSubscripts=function(q,Q,Z,j,Y){var K=this.options.ecmaVersion>=8&&q.type==="Identifier"&&q.name==="async"&&this.lastTokEnd===q.end&&!this.canInsertSemicolon()&&q.end-q.start===5&&this.potentialArrowAt===q.start,J=!1;while(!0){var X=this.parseSubscript(q,Q,Z,j,K,J,Y);if(X.optional)J=!0;if(X===q||X.type==="ArrowFunctionExpression"){if(J){var W=this.startNodeAt(Q,Z);W.expression=X,X=this.finishNode(W,"ChainExpression")}return X}q=X}};u.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(U.arrow)};u.parseSubscriptAsyncArrow=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,j)};u.parseSubscript=function(q,Q,Z,j,Y,K,J){var X=this.options.ecmaVersion>=11,W=X&&this.eat(U.questionDot);if(j&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var R=this.eat(U.bracketL);if(R||W&&this.type!==U.parenL&&this.type!==U.backQuote||this.eat(U.dot)){var O=this.startNodeAt(Q,Z);if(O.object=q,R)O.property=this.parseExpression(),this.expect(U.bracketR);else if(this.type===U.privateId&&q.type!=="Super")O.property=this.parsePrivateIdent();else O.property=this.parseIdent(this.options.allowReserved!=="never");if(O.computed=!!R,X)O.optional=W;q=this.finishNode(O,"MemberExpression")}else if(!j&&this.eat(U.parenL)){var M=new I0,$=this.yieldPos,B=this.awaitPos,P=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var A=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1,M);if(Y&&!W&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=$,this.awaitPos=B,this.awaitIdentPos=P,this.parseSubscriptAsyncArrow(Q,Z,A,J)}this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=B||this.awaitPos,this.awaitIdentPos=P||this.awaitIdentPos;var N=this.startNodeAt(Q,Z);if(N.callee=q,N.arguments=A,X)N.optional=W;q=this.finishNode(N,"CallExpression")}else if(this.type===U.backQuote){if(W||K)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(Q,Z);v.tag=q,v.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(v,"TaggedTemplateExpression")}return q};u.parseExprAtom=function(q,Q,Z){if(this.type===U.slash)this.readRegexp();var j,Y=this.potentialArrowAt===this.start;switch(this.type){case U._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(j=this.startNode(),this.next(),this.type===U.parenL&&!this.allowDirectSuper)this.raise(j.start,"super() call outside constructor of a subclass");if(this.type!==U.dot&&this.type!==U.bracketL&&this.type!==U.parenL)this.unexpected();return this.finishNode(j,"Super");case U._this:return j=this.startNode(),this.next(),this.finishNode(j,"ThisExpression");case U.name:var K=this.start,J=this.startLoc,X=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!X&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(U._function))return this.overrideContext(Q8.f_expr),this.parseFunction(this.startNodeAt(K,J),0,!1,!0,Q);if(Y&&!this.canInsertSemicolon()){if(this.eat(U.arrow))return this.parseArrowExpression(this.startNodeAt(K,J),[W],!1,Q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===U.name&&!X&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(U.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(K,J),[W],!0,Q)}}return W;case U.regexp:var R=this.value;return j=this.parseLiteral(R.value),j.regex={pattern:R.pattern,flags:R.flags},j;case U.num:case U.string:return this.parseLiteral(this.value);case U._null:case U._true:case U._false:return j=this.startNode(),j.value=this.type===U._null?null:this.type===U._true,j.raw=this.type.keyword,this.next(),this.finishNode(j,"Literal");case U.parenL:var O=this.start,M=this.parseParenAndDistinguishExpression(Y,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget(M))q.parenthesizedAssign=O;if(q.parenthesizedBind<0)q.parenthesizedBind=O}return M;case U.bracketL:return j=this.startNode(),this.next(),j.elements=this.parseExprList(U.bracketR,!0,!0,q),this.finishNode(j,"ArrayExpression");case U.braceL:return this.overrideContext(Q8.b_expr),this.parseObj(!1,q);case U._function:return j=this.startNode(),this.next(),this.parseFunction(j,0);case U._class:return this.parseClass(this.startNode(),!1);case U._new:return this.parseNew();case U.backQuote:return this.parseTemplate();case U._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};u.parseExprAtomDefault=function(){this.unexpected()};u.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===U.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===U.dot){var Z=this.startNodeAt(Q.start,Q.loc&&Q.loc.start);return Z.name="import",Q.meta=this.finishNode(Z,"Identifier"),this.parseImportMeta(Q)}else this.unexpected()};u.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(U.parenR))if(this.expect(U.comma),!this.afterTrailingComma(U.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(U.parenR)){if(this.expect(U.comma),!this.afterTrailingComma(U.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(U.parenR)){var Q=this.start;if(this.eat(U.comma)&&this.eat(U.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};u.parseImportMeta=function(q){this.next();var Q=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="meta")this.raiseRecoverable(q.property.start,"The only valid meta property for import is 'import.meta'");if(Q)this.raiseRecoverable(q.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(q.start,"Cannot use 'import.meta' outside a module");return this.finishNode(q,"MetaProperty")};u.parseLiteral=function(q){var Q=this.startNode();if(Q.value=q,Q.raw=this.input.slice(this.start,this.end),Q.raw.charCodeAt(Q.raw.length-1)===110)Q.bigint=Q.value!=null?Q.value.toString():Q.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(Q,"Literal")};u.parseParenExpression=function(){this.expect(U.parenL);var q=this.parseExpression();return this.expect(U.parenR),q};u.shouldParseArrow=function(q){return!this.canInsertSemicolon()};u.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,j=this.startLoc,Y,K=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var J=this.start,X=this.startLoc,W=[],R=!0,O=!1,M=new I0,$=this.yieldPos,B=this.awaitPos,P;this.yieldPos=0,this.awaitPos=0;while(this.type!==U.parenR)if(R?R=!1:this.expect(U.comma),K&&this.afterTrailingComma(U.parenR,!0)){O=!0;break}else if(this.type===U.ellipsis){if(P=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,M,this.parseParenItem));var A=this.lastTokEnd,N=this.lastTokEndLoc;if(this.expect(U.parenR),q&&this.shouldParseArrow(W)&&this.eat(U.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=$,this.awaitPos=B,this.parseParenArrowList(Z,j,W,Q);if(!W.length||O)this.unexpected(this.lastTokStart);if(P)this.unexpected(P);if(this.checkExpressionErrors(M,!0),this.yieldPos=$||this.yieldPos,this.awaitPos=B||this.awaitPos,W.length>1)Y=this.startNodeAt(J,X),Y.expressions=W,this.finishNodeAt(Y,"SequenceExpression",A,N);else Y=W[0]}else Y=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(Z,j);return v.expression=Y,this.finishNode(v,"ParenthesizedExpression")}else return Y};u.parseParenItem=function(q){return q};u.parseParenArrowList=function(q,Q,Z,j){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,j)};var lq=[];u.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var q=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===U.dot){var Q=this.startNodeAt(q.start,q.loc&&q.loc.start);Q.name="new",q.meta=this.finishNode(Q,"Identifier"),this.next();var Z=this.containsEsc;if(q.property=this.parseIdent(!0),q.property.name!=="target")this.raiseRecoverable(q.property.start,"The only valid meta property for new is 'new.target'");if(Z)this.raiseRecoverable(q.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(q.start,"'new.target' can only be used in functions and class static block");return this.finishNode(q,"MetaProperty")}var j=this.start,Y=this.startLoc;if(q.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),j,Y,!0,!1),q.callee.type==="Super")this.raiseRecoverable(j,"Invalid use of 'super'");if(this.eat(U.parenL))q.arguments=this.parseExprList(U.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=lq;return this.finishNode(q,"NewExpression")};u.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===U.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
29
29
  `),cooked:null}}else Z.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
30
- `),cooked:this.value};return this.next(),Z.tail=this.type===U.backQuote,this.finishNode(Z,"TemplateElement")};u.parseTemplate=function(q){if(q===void 0)q={};var Q=q.isTagged;if(Q===void 0)Q=!1;var Z=this.startNode();this.next(),Z.expressions=[];var Y=this.parseTemplateElement({isTagged:Q});Z.quasis=[Y];while(!Y.tail){if(this.type===U.eof)this.raise(this.pos,"Unterminated template literal");this.expect(U.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(U.braceR),Z.quasis.push(Y=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};u.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===U.name||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===U.star)&&!F8.test(this.input.slice(this.lastTokEnd,this.start))};u.parseObj=function(q,Q){var Z=this.startNode(),Y=!0,H={};Z.properties=[],this.next();while(!this.eat(U.braceR)){if(!Y){if(this.expect(U.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(U.braceR))break}else Y=!1;var V=this.parseProperty(q,Q);if(!q)this.checkPropClash(V,H,Q);Z.properties.push(V)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};u.parseProperty=function(q,Q){var Z=this.startNode(),Y,H,V,K;if(this.options.ecmaVersion>=9&&this.eat(U.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Z,"RestElement")}if(Z.argument=this.parseMaybeAssign(!1,Q),this.type===U.comma&&Q&&Q.trailingComma<0)Q.trailingComma=this.start;return this.finishNode(Z,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Z.method=!1,Z.shorthand=!1,q||Q)V=this.start,K=this.startLoc;if(!q)Y=this.eat(U.star)}var W=this.containsEsc;if(this.parsePropertyName(Z),!q&&!W&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Z))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(U.star),this.parsePropertyName(Z);else H=!1;return this.parsePropertyValue(Z,q,Y,H,V,K,Q,W),this.finishNode(Z,"Property")};u.parseGetterSetter=function(q){var Q=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=Q;var Z=q.kind==="get"?0:1;if(q.value.params.length!==Z){var Y=q.value.start;if(q.kind==="get")this.raiseRecoverable(Y,"getter should have no params");else this.raiseRecoverable(Y,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};u.parsePropertyValue=function(q,Q,Z,Y,H,V,K,W){if((Z||Y)&&this.type===U.colon)this.unexpected();if(this.eat(U.colon))q.value=Q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,K),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===U.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,Y),q.kind="init"}else if(!Q&&!W&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==U.comma&&this.type!==U.braceR&&this.type!==U.eq)){if(Z||Y)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||Y)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=H;if(Q)q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key));else if(this.type===U.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,V,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};u.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(U.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(U.bracketR),q.key;else q.computed=!1;return q.key=this.type===U.num||this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};u.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};u.parseMethod=function(q,Q,Z){var Y=this.startNode(),H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.initFunction(Y),this.options.ecmaVersion>=6)Y.generator=q;if(this.options.ecmaVersion>=8)Y.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(Q,Y.generator)|A0|(Z?F2:0)),this.expect(U.parenL),Y.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(Y,"FunctionExpression")};u.parseArrowExpression=function(q,Q,Z,Y){var H=this.yieldPos,V=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(u9(Z,!1)|x9),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!Z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(Q,!0),this.parseFunctionBody(q,!0,!1,Y),this.yieldPos=H,this.awaitPos=V,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};u.parseFunctionBody=function(q,Q,Z,Y){var H=Q&&this.type!==U.braceL,V=this.strict,K=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var W=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!V||W){if(K=this.strictDirective(this.end),K&&W)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var G=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!V&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,C2);q.body=this.parseBlock(!1,void 0,K&&!V),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=G}this.exitScope()};u.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var Y=Z[Q];if(Y.type!=="Identifier")return!1}return!0};u.checkParams=function(q,Q){var Z=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var V=H[Y];this.checkLValInnerPattern(V,m9,Q?null:Z)}};u.parseExprList=function(q,Q,Z,Y){var H=[],V=!0;while(!this.eat(q)){if(!V){if(this.expect(U.comma),Q&&this.afterTrailingComma(q))break}else V=!1;var K=void 0;if(Z&&this.type===U.comma)K=null;else if(this.type===U.ellipsis){if(K=this.parseSpread(Y),Y&&this.type===U.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y);H.push(K)}return H};u.checkUnreserved=function(q){var{start:Q,end:Z,name:Y}=q;if(this.inGenerator&&Y==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&w0)&&Y==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(Y==="arguments"||Y==="await"))this.raise(Q,"Cannot use "+Y+" in class static initialization block");if(this.keywords.test(Y))this.raise(Q,"Unexpected keyword '"+Y+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var H=this.strict?this.reservedWordsStrict:this.reservedWords;if(H.test(Y)){if(!this.inAsync&&Y==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+Y+"' is reserved")}};u.parseIdent=function(q){var Q=this.parseIdentNode();if(this.next(!!q),this.finishNode(Q,"Identifier"),!q){if(this.checkUnreserved(Q),Q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Q.start}return Q};u.parseIdentNode=function(){var q=this.startNode();if(this.type===U.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=U.name}else this.unexpected();return q};u.parsePrivateIdent=function(){var q=this.startNode();if(this.type===U.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};u.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===U.semi||this.canInsertSemicolon()||this.type!==U.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(U.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};u.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(Q,"AwaitExpression")};var $0=Y8.prototype;$0.raise=function(q,Q){var Z=g9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var Y=SyntaxError(Q);throw Y.pos=q,Y.loc=Z,Y.raisedAt=this.pos,Y};$0.raiseRecoverable=$0.raise;$0.curPosition=function(){if(this.options.locations)return new B1(this.curLine,this.pos-this.lineStart)};var Z1=Y8.prototype,cq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};Z1.enterScope=function(q){this.scopeStack.push(new cq(q))};Z1.exitScope=function(){this.scopeStack.pop()};Z1.treatFunctionsAsVarInScope=function(q){return q.flags&O1||!this.inModule&&q.flags&z1};Z1.declareName=function(q,Q,Z){var Y=!1;if(Q===r8){var H=this.currentScope();if(Y=H.lexical.indexOf(q)>-1||H.functions.indexOf(q)>-1||H.var.indexOf(q)>-1,H.lexical.push(q),this.inModule&&H.flags&z1)delete this.undefinedExports[q]}else if(Q===L2){var V=this.currentScope();V.lexical.push(q)}else if(Q===$2){var K=this.currentScope();if(this.treatFunctionsAsVar)Y=K.lexical.indexOf(q)>-1;else Y=K.lexical.indexOf(q)>-1||K.var.indexOf(q)>-1;K.functions.push(q)}else for(var W=this.scopeStack.length-1;W>=0;--W){var G=this.scopeStack[W];if(G.lexical.indexOf(q)>-1&&!(G.flags&B2&&G.lexical[0]===q)||!this.treatFunctionsAsVarInScope(G)&&G.functions.indexOf(q)>-1){Y=!0;break}if(G.var.push(q),this.inModule&&G.flags&z1)delete this.undefinedExports[q];if(G.flags&w0)break}if(Y)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};Z1.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};Z1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Z1.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(w0|y1|U1))return Q}};Z1.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(w0|y1|U1)&&!(Q.flags&x9))return Q}};var g1=function(Q,Z,Y){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new f1(Q,Y);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},_1=Y8.prototype;_1.startNode=function(){return new g1(this,this.start,this.startLoc)};_1.startNodeAt=function(q,Q){return new g1(this,q,Q)};function I2(q,Q,Z,Y){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=Y;if(this.options.ranges)q.range[1]=Z;return q}_1.finishNode=function(q,Q){return I2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};_1.finishNodeAt=function(q,Q,Z,Y){return I2.call(this,q,Q,Z,Y)};_1.copyNode=function(q){var Q=new g1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var iq="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",P2="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",S2=P2+" Extended_Pictographic",D2=S2,N2=D2+" EBase EComp EMod EPres ExtPict",T2=N2,dq=T2,pq={9:P2,10:S2,11:D2,12:N2,13:T2,14:dq},oq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nq={9:"",10:"",11:"",12:"",13:"",14:oq},X2="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",b2="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",k2=b2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",E2=k2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",v2=E2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",h2=v2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",sq=h2+" "+iq,aq={9:b2,10:k2,11:E2,12:v2,13:h2,14:sq},f2={};function rq(q){var Q=f2[q]={binary:Q1(pq[q]+" "+X2),binaryOfStrings:Q1(nq[q]),nonBinary:{General_Category:Q1(X2),Script:Q1(aq[q])}};Q.nonBinary.Script_Extensions=Q.nonBinary.Script,Q.nonBinary.gc=Q.nonBinary.General_Category,Q.nonBinary.sc=Q.nonBinary.Script,Q.nonBinary.scx=Q.nonBinary.Script_Extensions}for(v1=0,R0=[9,10,11,12,13,14];v1<R0.length;v1+=1)f9=R0[v1],rq(f9);var f9,v1,R0,T=Y8.prototype,L0=function(Q,Z){this.parent=Q,this.base=Z||this};L0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var Y=Q;Y;Y=Y.parent)if(Z.base===Y.base&&Z!==Y)return!0;return!1};L0.prototype.sibling=function(){return new L0(this.parent,this.base)};var l8=function(Q){this.parser=Q,this.validFlags="gim"+(Q.options.ecmaVersion>=6?"uy":"")+(Q.options.ecmaVersion>=9?"s":"")+(Q.options.ecmaVersion>=13?"d":"")+(Q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=f2[Q.options.ecmaVersion>=14?14:Q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};l8.prototype.reset=function(Q,Z,Y){var H=Y.indexOf("v")!==-1,V=Y.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=Y,H&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=V&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=V&&this.parser.options.ecmaVersion>=9};l8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};l8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return-1;var V=Y.charCodeAt(Q);if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H)return V;var K=Y.charCodeAt(Q+1);return K>=56320&&K<=57343?(V<<10)+K-56613888:V};l8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return H;var V=Y.charCodeAt(Q),K;if(!(Z||this.switchU)||V<=55295||V>=57344||Q+1>=H||(K=Y.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};l8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};l8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};l8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};l8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};l8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.pos;for(var H=0,V=Q;H<V.length;H+=1){var K=V[H],W=this.at(Y,Z);if(W===-1||W!==K)return!1;Y=this.nextIndex(Y,Z)}return this.pos=Y,!0};T.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,Y=!1,H=!1;for(var V=0;V<Z.length;V++){var K=Z.charAt(V);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,V+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(K==="u")Y=!0;if(K==="v")H=!0}if(this.options.ecmaVersion>=15&&Y&&H)this.raise(q.start,"Invalid regular expression flag")};function tq(q){for(var Q in q)return!0;return!1}T.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&tq(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};T.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var Q=0,Z=q.backReferenceNames;Q<Z.length;Q+=1){var Y=Z[Q];if(!q.groupNames[Y])q.raise("Invalid named capture referenced")}};T.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new L0(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(Q)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(Q)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};T.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};T.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};T.regexp_eatAssertion=function(q){var Q=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=Q}if(q.eat(40)&&q.eat(63)){var Z=!1;if(this.options.ecmaVersion>=9)Z=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!Z,!0}}return q.pos=Q,!1};T.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};T.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};T.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var Y=0,H=-1;if(this.regexp_eatDecimalDigits(q)){if(Y=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))H=q.lastIntValue;if(q.eat(125)){if(H!==-1&&H<Y&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};T.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};T.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};T.regexp_eatUncapturingGroup=function(q){var Q=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var Z=this.regexp_eatModifiers(q),Y=q.eat(45);if(Z||Y){for(var H=0;H<Z.length;H++){var V=Z.charAt(H);if(Z.indexOf(V,H+1)>-1)q.raise("Duplicate regular expression modifiers")}if(Y){var K=this.regexp_eatModifiers(q);if(!Z&&!K&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var W=0;W<K.length;W++){var G=K.charAt(W);if(K.indexOf(G,W+1)>-1||Z.indexOf(G)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=Q}return!1};T.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};T.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&eq(Z))Q+=s8(Z),q.advance();return Q};function eq(q){return q===105||q===109||q===115}T.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};T.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};T.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(y2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function y2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}T.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!y2(Z))q.advance();return q.pos!==Q};T.regexp_eatExtendedPatternCharacter=function(q){var Q=q.current();if(Q!==-1&&Q!==36&&!(Q>=40&&Q<=43)&&Q!==46&&Q!==63&&Q!==91&&Q!==94&&Q!==124)return q.advance(),!0;return!1};T.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var Q=this.options.ecmaVersion>=16,Z=q.groupNames[q.lastStringValue];if(Z)if(Q)for(var Y=0,H=Z;Y<H.length;Y+=1){var V=H[Y];if(!V.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(Q)(Z||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};T.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};T.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=s8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=s8(q.lastIntValue);return!0}return!1};T.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(qQ(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function qQ(q){return A8(q,!0)||q===36||q===95}T.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,Y=q.current(Z);if(q.advance(Z),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))Y=q.lastIntValue;if(QQ(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function QQ(q){return y8(q,!0)||q===36||q===95||q===8204||q===8205}T.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};T.regexp_eatBackReference=function(q){var Q=q.pos;if(this.regexp_eatDecimalEscape(q)){var Z=q.lastIntValue;if(q.switchU){if(Z>q.maxBackReference)q.maxBackReference=Z;return!0}if(Z<=q.numCapturingParens)return!0;q.pos=Q}return!1};T.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};T.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};T.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};T.regexp_eatZero=function(q){if(q.current()===48&&!P0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};T.regexp_eatControlEscape=function(q){var Q=q.current();if(Q===116)return q.lastIntValue=9,q.advance(),!0;if(Q===110)return q.lastIntValue=10,q.advance(),!0;if(Q===118)return q.lastIntValue=11,q.advance(),!0;if(Q===102)return q.lastIntValue=12,q.advance(),!0;if(Q===114)return q.lastIntValue=13,q.advance(),!0;return!1};T.regexp_eatControlLetter=function(q){var Q=q.current();if(g2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function g2(q){return q>=65&&q<=90||q>=97&&q<=122}T.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,Y=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var H=q.lastIntValue;if(Y&&H>=55296&&H<=56319){var V=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var K=q.lastIntValue;if(K>=56320&&K<=57343)return q.lastIntValue=(H-55296)*1024+(K-56320)+65536,!0}q.pos=V,q.lastIntValue=H}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&ZQ(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Z}return!1};function ZQ(q){return q>=0&&q<=1114111}T.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var Q=q.current();if(Q!==99&&(!q.switchN||Q!==107))return q.lastIntValue=Q,q.advance(),!0;return!1};T.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var Q=q.current();if(Q>=49&&Q<=57){do q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();while((Q=q.current())>=48&&Q<=57);return!0}return!1};var _2=0,a8=1,b8=2;T.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(YQ(Q))return q.lastIntValue=-1,q.advance(),a8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var Y;if(q.eat(123)&&(Y=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&Y===b8)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return _2};function YQ(q){return q===100||q===68||q===115||q===83||q===119||q===87}T.regexp_eatUnicodePropertyValueExpression=function(q){var Q=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var Z=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,Y),a8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return _2};T.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!F1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};T.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return a8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return b8;q.raise("Invalid property name")};T.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(x2(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function x2(q){return g2(q)||q===95}T.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(HQ(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function HQ(q){return x2(q)||P0(q)}T.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};T.regexp_eatCharacterClass=function(q){if(q.eat(91)){var Q=q.eat(94),Z=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(Q&&Z===b8)q.raise("Negated character class may contain strings");return!0}return!1};T.regexp_classContents=function(q){if(q.current()===93)return a8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a8};T.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var Q=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var Z=q.lastIntValue;if(q.switchU&&(Q===-1||Z===-1))q.raise("Invalid character class");if(Q!==-1&&Z!==-1&&Q>Z)q.raise("Range out of order in character class")}}};T.regexp_eatClassAtom=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var Z=q.current();if(Z===99||l2(Z))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Q}var Y=q.current();if(Y!==93)return q.lastIntValue=Y,q.advance(),!0;return!1};T.regexp_eatClassEscape=function(q){var Q=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=Q}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};T.regexp_classSetExpression=function(q){var Q=a8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===b8)Q=b8;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==b8)Q=a8;continue}q.raise("Invalid character in character class")}if(Y!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(Y!==q.pos)return Q}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(Z=this.regexp_eatClassSetOperand(q),!Z)return Q;if(Z===b8)Q=b8}};T.regexp_eatClassSetRange=function(q){var Q=q.pos;if(this.regexp_eatClassSetCharacter(q)){var Z=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var Y=q.lastIntValue;if(Z!==-1&&Y!==-1&&Z>Y)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};T.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};T.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),Y=this.regexp_classContents(q);if(q.eat(93)){if(Z&&Y===b8)q.raise("Negated character class may contain strings");return Y}q.pos=Q}if(q.eat(92)){var H=this.regexp_eatCharacterClassEscape(q);if(H)return H;q.pos=Q}return null};T.regexp_eatClassStringDisjunction=function(q){var Q=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var Z=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return Z}else q.raise("Invalid escape");q.pos=Q}return null};T.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===b8)Q=b8;return Q};T.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?a8:b8};T.regexp_eatClassSetCharacter=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=Q,!1}var Z=q.current();if(Z<0||Z===q.lookahead()&&JQ(Z))return!1;if(KQ(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function JQ(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function KQ(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}T.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(VQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function VQ(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}T.regexp_eatClassControlLetter=function(q){var Q=q.current();if(P0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};T.regexp_eatHexEscapeSequence=function(q){var Q=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=Q}return!1};T.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(P0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function P0(q){return q>=48&&q<=57}T.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(u2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+m2(Z),q.advance();return q.pos!==Q};function u2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function m2(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}T.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var Q=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var Z=q.lastIntValue;if(Q<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=Q*64+Z*8+q.lastIntValue;else q.lastIntValue=Q*8+Z}else q.lastIntValue=Q;return!0}return!1};T.regexp_eatOctalDigit=function(q){var Q=q.current();if(l2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function l2(q){return q>=48&&q<=55}T.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var Y=0;Y<Q;++Y){var H=q.current();if(!u2(H))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+m2(H),q.advance()}return!0};var S0=function(Q){if(this.type=Q.type,this.value=Q.value,this.start=Q.start,this.end=Q.end,Q.options.locations)this.loc=new f1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},i=Y8.prototype;i.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new S0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};i.getToken=function(){return this.next(),new S0(this)};if(typeof Symbol<"u")i[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===U.eof,value:Q}}}};i.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(U.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};i.readToken=function(q){if(A8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};i.fullCharCodeAt=function(q){var Q=this.input.charCodeAt(q);if(Q<=55295||Q>=56320)return Q;var Z=this.input.charCodeAt(q+1);return Z<=56319||Z>=57344?Q:(Q<<10)+Z-56613888};i.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};i.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),Q=this.pos,Z=this.input.indexOf("*/",this.pos+=2);if(Z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Z+2,this.options.locations)for(var Y=void 0,H=Q;(Y=O2(this.input,H,this.pos))>-1;)++this.curLine,H=this.lineStart=Y;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};i.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),Y=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!j1(Y))Y=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(Q+q,this.pos),Q,this.pos,Z,this.curPosition())};i.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break q}break;default:if(q>8&&q<14||q>=5760&&y9.test(String.fromCharCode(q)))++this.pos;else break q}}};i.finishToken=function(q,Q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Z=this.type;this.type=q,this.value=Q,this.updateContext(Z)};i.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var Q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&Q===46)return this.pos+=3,this.finishToken(U.ellipsis);else return++this.pos,this.finishToken(U.dot)};i.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.slash,1)};i.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,Y=q===42?U.star:U.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,Y=U.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(U.assign,Z+1);return this.finishOp(Y,Z)};i.readToken_pipe_amp=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(this.options.ecmaVersion>=12){var Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(U.assign,3)}return this.finishOp(q===124?U.logicalOR:U.logicalAND,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(q===124?U.bitwiseOR:U.bitwiseAND,1)};i.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.bitwiseXOR,1)};i.readToken_plus_min=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(Q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||F8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(U.incDec,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(U.plusMin,1)};i.readToken_lt_gt=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1;if(Q===q){if(Z=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Z)===61)return this.finishOp(U.assign,Z+1);return this.finishOp(U.bitShift,Z)}if(Q===33&&q===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(Q===61)Z=2;return this.finishOp(U.relational,Z)};i.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(U.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&Q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(U.arrow);return this.finishOp(q===61?U.eq:U.prefix,1)};i.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var Q=this.input.charCodeAt(this.pos+1);if(Q===46){var Z=this.input.charCodeAt(this.pos+2);if(Z<48||Z>57)return this.finishOp(U.questionDot,2)}if(Q===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(U.assign,3)}return this.finishOp(U.coalesce,2)}}return this.finishOp(U.question,1)};i.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),A8(Q,!0)||Q===92)return this.finishToken(U.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+s8(Q)+"'")};i.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(U.parenL);case 41:return++this.pos,this.finishToken(U.parenR);case 59:return++this.pos,this.finishToken(U.semi);case 44:return++this.pos,this.finishToken(U.comma);case 91:return++this.pos,this.finishToken(U.bracketL);case 93:return++this.pos,this.finishToken(U.bracketR);case 123:return++this.pos,this.finishToken(U.braceL);case 125:return++this.pos,this.finishToken(U.braceR);case 58:return++this.pos,this.finishToken(U.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(U.backQuote);case 48:var Q=this.input.charCodeAt(this.pos+1);if(Q===120||Q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(Q===111||Q===79)return this.readRadixNumber(8);if(Q===98||Q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(U.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+s8(q)+"'")};i.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};i.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var Y=this.input.charAt(this.pos);if(F8.test(Y))this.raise(Z,"Unterminated regular expression");if(!q){if(Y==="[")Q=!0;else if(Y==="]"&&Q)Q=!1;else if(Y==="/"&&!Q)break;q=Y==="\\"}else q=!1;++this.pos}var H=this.input.slice(Z,this.pos);++this.pos;var V=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(V);var W=this.regexpState||(this.regexpState=new l8(this));W.reset(Z,H,K),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var G=null;try{G=new RegExp(H,K)}catch(R){}return this.finishToken(U.regexp,{pattern:H,flags:K,value:G})};i.readInt=function(q,Q,Z){var Y=this.options.ecmaVersion>=12&&Q===void 0,H=Z&&this.input.charCodeAt(this.pos)===48,V=this.pos,K=0,W=0;for(var G=0,R=Q==null?1/0:Q;G<R;++G,++this.pos){var O=this.input.charCodeAt(this.pos),$=void 0;if(Y&&O===95){if(H)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(W===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(G===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");W=O;continue}if(O>=97)$=O-97+10;else if(O>=65)$=O-65+10;else if(O>=48&&O<=57)$=O-48;else $=1/0;if($>=q)break;W=O,K=K*q+$}if(Y&&W===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===V||Q!=null&&this.pos-V!==Q)return null;return K};function XQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function c2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}i.readRadixNumber=function(q){var Q=this.pos;this.pos+=2;var Z=this.readInt(q);if(Z==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Z=c2(this.input.slice(Q,this.pos)),++this.pos;else if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,Z)};i.readNumber=function(q){var Q=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(Q,"Invalid number");var Z=this.pos-Q>=2&&this.input.charCodeAt(Q)===48;if(Z&&this.strict)this.raise(Q,"Invalid number");var Y=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&Y===110){var H=c2(this.input.slice(Q,this.pos));if(++this.pos,A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,H)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(Y===46&&!Z)++this.pos,this.readInt(10),Y=this.input.charCodeAt(this.pos);if((Y===69||Y===101)&&!Z){if(Y=this.input.charCodeAt(++this.pos),Y===43||Y===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if(A8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var V=XQ(this.input.slice(Q,this.pos),Z);return this.finishToken(U.num,V)};i.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),Q;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var Z=++this.pos;if(Q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,Q>1114111)this.invalidStringToken(Z,"Code point out of bounds")}else Q=this.readHexChar(4);return Q};i.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var Y=this.input.charCodeAt(this.pos);if(Y===q)break;if(Y===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(Y===8232||Y===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(j1(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(U.string,Q)};var i2={};i.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===i2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};i.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw i2;else this.raise(q,Q)};i.readTmplToken=function(){var q="",Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Z=this.input.charCodeAt(this.pos);if(Z===96||Z===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===U.template||this.type===U.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(U.dollarBraceL);else return++this.pos,this.finishToken(U.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(U.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(j1(Z)){switch(q+=this.input.slice(Q,this.pos),++this.pos,Z){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
30
+ `),cooked:this.value};return this.next(),Z.tail=this.type===U.backQuote,this.finishNode(Z,"TemplateElement")};u.parseTemplate=function(q){if(q===void 0)q={};var Q=q.isTagged;if(Q===void 0)Q=!1;var Z=this.startNode();this.next(),Z.expressions=[];var j=this.parseTemplateElement({isTagged:Q});Z.quasis=[j];while(!j.tail){if(this.type===U.eof)this.raise(this.pos,"Unterminated template literal");this.expect(U.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(U.braceR),Z.quasis.push(j=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};u.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===U.name||this.type===U.num||this.type===U.string||this.type===U.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===U.star)&&!F8.test(this.input.slice(this.lastTokEnd,this.start))};u.parseObj=function(q,Q){var Z=this.startNode(),j=!0,Y={};Z.properties=[],this.next();while(!this.eat(U.braceR)){if(!j){if(this.expect(U.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(U.braceR))break}else j=!1;var K=this.parseProperty(q,Q);if(!q)this.checkPropClash(K,Y,Q);Z.properties.push(K)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};u.parseProperty=function(q,Q){var Z=this.startNode(),j,Y,K,J;if(this.options.ecmaVersion>=9&&this.eat(U.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===U.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(Z,"RestElement")}if(Z.argument=this.parseMaybeAssign(!1,Q),this.type===U.comma&&Q&&Q.trailingComma<0)Q.trailingComma=this.start;return this.finishNode(Z,"SpreadElement")}if(this.options.ecmaVersion>=6){if(Z.method=!1,Z.shorthand=!1,q||Q)K=this.start,J=this.startLoc;if(!q)j=this.eat(U.star)}var X=this.containsEsc;if(this.parsePropertyName(Z),!q&&!X&&this.options.ecmaVersion>=8&&!j&&this.isAsyncProp(Z))Y=!0,j=this.options.ecmaVersion>=9&&this.eat(U.star),this.parsePropertyName(Z);else Y=!1;return this.parsePropertyValue(Z,q,j,Y,K,J,Q,X),this.finishNode(Z,"Property")};u.parseGetterSetter=function(q){var Q=q.key.name;this.parsePropertyName(q),q.value=this.parseMethod(!1),q.kind=Q;var Z=q.kind==="get"?0:1;if(q.value.params.length!==Z){var j=q.value.start;if(q.kind==="get")this.raiseRecoverable(j,"getter should have no params");else this.raiseRecoverable(j,"setter should have exactly one param")}else if(q.kind==="set"&&q.value.params[0].type==="RestElement")this.raiseRecoverable(q.value.params[0].start,"Setter cannot use rest params")};u.parsePropertyValue=function(q,Q,Z,j,Y,K,J,X){if((Z||j)&&this.type===U.colon)this.unexpected();if(this.eat(U.colon))q.value=Q?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,J),q.kind="init";else if(this.options.ecmaVersion>=6&&this.type===U.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,j),q.kind="init"}else if(!Q&&!X&&this.options.ecmaVersion>=5&&!q.computed&&q.key.type==="Identifier"&&(q.key.name==="get"||q.key.name==="set")&&(this.type!==U.comma&&this.type!==U.braceR&&this.type!==U.eq)){if(Z||j)this.unexpected();this.parseGetterSetter(q)}else if(this.options.ecmaVersion>=6&&!q.computed&&q.key.type==="Identifier"){if(Z||j)this.unexpected();if(this.checkUnreserved(q.key),q.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Y;if(Q)q.value=this.parseMaybeDefault(Y,K,this.copyNode(q.key));else if(this.type===U.eq&&J){if(J.shorthandAssign<0)J.shorthandAssign=this.start;q.value=this.parseMaybeDefault(Y,K,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};u.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(U.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(U.bracketR),q.key;else q.computed=!1;return q.key=this.type===U.num||this.type===U.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};u.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};u.parseMethod=function(q,Q,Z){var j=this.startNode(),Y=this.yieldPos,K=this.awaitPos,J=this.awaitIdentPos;if(this.initFunction(j),this.options.ecmaVersion>=6)j.generator=q;if(this.options.ecmaVersion>=8)j.async=!!Q;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(u9(Q,j.generator)|C0|(Z?$2:0)),this.expect(U.parenL),j.params=this.parseBindingList(U.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(j,!1,!0,!1),this.yieldPos=Y,this.awaitPos=K,this.awaitIdentPos=J,this.finishNode(j,"FunctionExpression")};u.parseArrowExpression=function(q,Q,Z,j){var Y=this.yieldPos,K=this.awaitPos,J=this.awaitIdentPos;if(this.enterScope(u9(Z,!1)|x9),this.initFunction(q),this.options.ecmaVersion>=8)q.async=!!Z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,q.params=this.toAssignableList(Q,!0),this.parseFunctionBody(q,!0,!1,j),this.yieldPos=Y,this.awaitPos=K,this.awaitIdentPos=J,this.finishNode(q,"ArrowFunctionExpression")};u.parseFunctionBody=function(q,Q,Z,j){var Y=Q&&this.type!==U.braceL,K=this.strict,J=!1;if(Y)q.body=this.parseMaybeAssign(j),q.expression=!0,this.checkParams(q,!1);else{var X=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!K||X){if(J=this.strictDirective(this.end),J&&X)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],J)this.strict=!0;if(this.checkParams(q,!K&&!J&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,A2);q.body=this.parseBlock(!1,void 0,J&&!K),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=W}this.exitScope()};u.isSimpleParamList=function(q){for(var Q=0,Z=q;Q<Z.length;Q+=1){var j=Z[Q];if(j.type!=="Identifier")return!1}return!0};u.checkParams=function(q,Q){var Z=Object.create(null);for(var j=0,Y=q.params;j<Y.length;j+=1){var K=Y[j];this.checkLValInnerPattern(K,m9,Q?null:Z)}};u.parseExprList=function(q,Q,Z,j){var Y=[],K=!0;while(!this.eat(q)){if(!K){if(this.expect(U.comma),Q&&this.afterTrailingComma(q))break}else K=!1;var J=void 0;if(Z&&this.type===U.comma)J=null;else if(this.type===U.ellipsis){if(J=this.parseSpread(j),j&&this.type===U.comma&&j.trailingComma<0)j.trailingComma=this.start}else J=this.parseMaybeAssign(!1,j);Y.push(J)}return Y};u.checkUnreserved=function(q){var{start:Q,end:Z,name:j}=q;if(this.inGenerator&&j==="yield")this.raiseRecoverable(Q,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&A0)&&j==="arguments")this.raiseRecoverable(Q,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(j==="arguments"||j==="await"))this.raise(Q,"Cannot use "+j+" in class static initialization block");if(this.keywords.test(j))this.raise(Q,"Unexpected keyword '"+j+"'");if(this.options.ecmaVersion<6&&this.input.slice(Q,Z).indexOf("\\")!==-1)return;var Y=this.strict?this.reservedWordsStrict:this.reservedWords;if(Y.test(j)){if(!this.inAsync&&j==="await")this.raiseRecoverable(Q,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(Q,"The keyword '"+j+"' is reserved")}};u.parseIdent=function(q){var Q=this.parseIdentNode();if(this.next(!!q),this.finishNode(Q,"Identifier"),!q){if(this.checkUnreserved(Q),Q.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=Q.start}return Q};u.parseIdentNode=function(){var q=this.startNode();if(this.type===U.name)q.name=this.value;else if(this.type.keyword){if(q.name=this.type.keyword,(q.name==="class"||q.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=U.name}else this.unexpected();return q};u.parsePrivateIdent=function(){var q=this.startNode();if(this.type===U.privateId)q.name=this.value;else this.unexpected();if(this.next(),this.finishNode(q,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(q.start,"Private field '#"+q.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(q);return q};u.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===U.semi||this.canInsertSemicolon()||this.type!==U.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(U.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};u.parseAwait=function(q){if(!this.awaitPos)this.awaitPos=this.start;var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeUnary(null,!0,!1,q),this.finishNode(Q,"AwaitExpression")};var $0=j8.prototype;$0.raise=function(q,Q){var Z=g9(this.input,q);if(Q+=" ("+Z.line+":"+Z.column+")",this.sourceFile)Q+=" in "+this.sourceFile;var j=SyntaxError(Q);throw j.pos=q,j.loc=Z,j.raisedAt=this.pos,j};$0.raiseRecoverable=$0.raise;$0.curPosition=function(){if(this.options.locations)return new B1(this.curLine,this.pos-this.lineStart)};var Z1=j8.prototype,cq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};Z1.enterScope=function(q){this.scopeStack.push(new cq(q))};Z1.exitScope=function(){this.scopeStack.pop()};Z1.treatFunctionsAsVarInScope=function(q){return q.flags&O1||!this.inModule&&q.flags&z1};Z1.declareName=function(q,Q,Z){var j=!1;if(Q===r8){var Y=this.currentScope();if(j=Y.lexical.indexOf(q)>-1||Y.functions.indexOf(q)>-1||Y.var.indexOf(q)>-1,Y.lexical.push(q),this.inModule&&Y.flags&z1)delete this.undefinedExports[q]}else if(Q===C2){var K=this.currentScope();K.lexical.push(q)}else if(Q===L2){var J=this.currentScope();if(this.treatFunctionsAsVar)j=J.lexical.indexOf(q)>-1;else j=J.lexical.indexOf(q)>-1||J.var.indexOf(q)>-1;J.functions.push(q)}else for(var X=this.scopeStack.length-1;X>=0;--X){var W=this.scopeStack[X];if(W.lexical.indexOf(q)>-1&&!(W.flags&M2&&W.lexical[0]===q)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(q)>-1){j=!0;break}if(W.var.push(q),this.inModule&&W.flags&z1)delete this.undefinedExports[q];if(W.flags&A0)break}if(j)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};Z1.checkLocalExport=function(q){if(this.scopeStack[0].lexical.indexOf(q.name)===-1&&this.scopeStack[0].var.indexOf(q.name)===-1)this.undefinedExports[q.name]=q};Z1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Z1.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(A0|y1|U1))return Q}};Z1.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(A0|y1|U1)&&!(Q.flags&x9))return Q}};var g1=function(Q,Z,j){if(this.type="",this.start=Z,this.end=0,Q.options.locations)this.loc=new f1(Q,j);if(Q.options.directSourceFile)this.sourceFile=Q.options.directSourceFile;if(Q.options.ranges)this.range=[Z,0]},_1=j8.prototype;_1.startNode=function(){return new g1(this,this.start,this.startLoc)};_1.startNodeAt=function(q,Q){return new g1(this,q,Q)};function S2(q,Q,Z,j){if(q.type=Q,q.end=Z,this.options.locations)q.loc.end=j;if(this.options.ranges)q.range[1]=Z;return q}_1.finishNode=function(q,Q){return S2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};_1.finishNodeAt=function(q,Q,Z,j){return S2.call(this,q,Q,Z,j)};_1.copyNode=function(q){var Q=new g1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var iq="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",D2="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",N2=D2+" Extended_Pictographic",b2=N2,T2=b2+" EBase EComp EMod EPres ExtPict",k2=T2,dq=k2,pq={9:D2,10:N2,11:b2,12:T2,13:k2,14:dq},oq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nq={9:"",10:"",11:"",12:"",13:"",14:oq},W2="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",E2="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",v2=E2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",h2=v2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",f2=h2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",y2=f2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",sq=y2+" "+iq,aq={9:E2,10:v2,11:h2,12:f2,13:y2,14:sq},g2={};function rq(q){var Q=g2[q]={binary:Q1(pq[q]+" "+W2),binaryOfStrings:Q1(nq[q]),nonBinary:{General_Category:Q1(W2),Script:Q1(aq[q])}};Q.nonBinary.Script_Extensions=Q.nonBinary.Script,Q.nonBinary.gc=Q.nonBinary.General_Category,Q.nonBinary.sc=Q.nonBinary.Script,Q.nonBinary.scx=Q.nonBinary.Script_Extensions}for(v1=0,R0=[9,10,11,12,13,14];v1<R0.length;v1+=1)f9=R0[v1],rq(f9);var f9,v1,R0,b=j8.prototype,w0=function(Q,Z){this.parent=Q,this.base=Z||this};w0.prototype.separatedFrom=function(Q){for(var Z=this;Z;Z=Z.parent)for(var j=Q;j;j=j.parent)if(Z.base===j.base&&Z!==j)return!0;return!1};w0.prototype.sibling=function(){return new w0(this.parent,this.base)};var l8=function(Q){this.parser=Q,this.validFlags="gim"+(Q.options.ecmaVersion>=6?"uy":"")+(Q.options.ecmaVersion>=9?"s":"")+(Q.options.ecmaVersion>=13?"d":"")+(Q.options.ecmaVersion>=15?"v":""),this.unicodeProperties=g2[Q.options.ecmaVersion>=14?14:Q.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};l8.prototype.reset=function(Q,Z,j){var Y=j.indexOf("v")!==-1,K=j.indexOf("u")!==-1;if(this.start=Q|0,this.source=Z+"",this.flags=j,Y&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=K&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=K&&this.parser.options.ecmaVersion>=9};l8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};l8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return-1;var K=j.charCodeAt(Q);if(!(Z||this.switchU)||K<=55295||K>=57344||Q+1>=Y)return K;var J=j.charCodeAt(Q+1);return J>=56320&&J<=57343?(K<<10)+J-56613888:K};l8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var j=this.source,Y=j.length;if(Q>=Y)return Y;var K=j.charCodeAt(Q),J;if(!(Z||this.switchU)||K<=55295||K>=57344||Q+1>=Y||(J=j.charCodeAt(Q+1))<56320||J>57343)return Q+1;return Q+2};l8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};l8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};l8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};l8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};l8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var j=this.pos;for(var Y=0,K=Q;Y<K.length;Y+=1){var J=K[Y],X=this.at(j,Z);if(X===-1||X!==J)return!1;j=this.nextIndex(j,Z)}return this.pos=j,!0};b.validateRegExpFlags=function(q){var{validFlags:Q,flags:Z}=q,j=!1,Y=!1;for(var K=0;K<Z.length;K++){var J=Z.charAt(K);if(Q.indexOf(J)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(J,K+1)>-1)this.raise(q.start,"Duplicate regular expression flag");if(J==="u")j=!0;if(J==="v")Y=!0}if(this.options.ecmaVersion>=15&&j&&Y)this.raise(q.start,"Invalid regular expression flag")};function tq(q){for(var Q in q)return!0;return!1}b.validateRegExpPattern=function(q){if(this.regexp_pattern(q),!q.switchN&&this.options.ecmaVersion>=9&&tq(q.groupNames))q.switchN=!0,this.regexp_pattern(q)};b.regexp_pattern=function(q){if(q.pos=0,q.lastIntValue=0,q.lastStringValue="",q.lastAssertionIsQuantifiable=!1,q.numCapturingParens=0,q.maxBackReference=0,q.groupNames=Object.create(null),q.backReferenceNames.length=0,q.branchID=null,this.regexp_disjunction(q),q.pos!==q.source.length){if(q.eat(41))q.raise("Unmatched ')'");if(q.eat(93)||q.eat(125))q.raise("Lone quantifier brackets")}if(q.maxBackReference>q.numCapturingParens)q.raise("Invalid escape");for(var Q=0,Z=q.backReferenceNames;Q<Z.length;Q+=1){var j=Z[Q];if(!q.groupNames[j])q.raise("Invalid named capture referenced")}};b.regexp_disjunction=function(q){var Q=this.options.ecmaVersion>=16;if(Q)q.branchID=new w0(q.branchID,null);this.regexp_alternative(q);while(q.eat(124)){if(Q)q.branchID=q.branchID.sibling();this.regexp_alternative(q)}if(Q)q.branchID=q.branchID.parent;if(this.regexp_eatQuantifier(q,!0))q.raise("Nothing to repeat");if(q.eat(123))q.raise("Lone quantifier brackets")};b.regexp_alternative=function(q){while(q.pos<q.source.length&&this.regexp_eatTerm(q));};b.regexp_eatTerm=function(q){if(this.regexp_eatAssertion(q)){if(q.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(q)){if(q.switchU)q.raise("Invalid quantifier")}return!0}if(q.switchU?this.regexp_eatAtom(q):this.regexp_eatExtendedAtom(q))return this.regexp_eatQuantifier(q),!0;return!1};b.regexp_eatAssertion=function(q){var Q=q.pos;if(q.lastAssertionIsQuantifiable=!1,q.eat(94)||q.eat(36))return!0;if(q.eat(92)){if(q.eat(66)||q.eat(98))return!0;q.pos=Q}if(q.eat(40)&&q.eat(63)){var Z=!1;if(this.options.ecmaVersion>=9)Z=q.eat(60);if(q.eat(61)||q.eat(33)){if(this.regexp_disjunction(q),!q.eat(41))q.raise("Unterminated group");return q.lastAssertionIsQuantifiable=!Z,!0}}return q.pos=Q,!1};b.regexp_eatQuantifier=function(q,Q){if(Q===void 0)Q=!1;if(this.regexp_eatQuantifierPrefix(q,Q))return q.eat(63),!0;return!1};b.regexp_eatQuantifierPrefix=function(q,Q){return q.eat(42)||q.eat(43)||q.eat(63)||this.regexp_eatBracedQuantifier(q,Q)};b.regexp_eatBracedQuantifier=function(q,Q){var Z=q.pos;if(q.eat(123)){var j=0,Y=-1;if(this.regexp_eatDecimalDigits(q)){if(j=q.lastIntValue,q.eat(44)&&this.regexp_eatDecimalDigits(q))Y=q.lastIntValue;if(q.eat(125)){if(Y!==-1&&Y<j&&!Q)q.raise("numbers out of order in {} quantifier");return!0}}if(q.switchU&&!Q)q.raise("Incomplete quantifier");q.pos=Z}return!1};b.regexp_eatAtom=function(q){return this.regexp_eatPatternCharacters(q)||q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)};b.regexp_eatReverseSolidusAtomEscape=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatAtomEscape(q))return!0;q.pos=Q}return!1};b.regexp_eatUncapturingGroup=function(q){var Q=q.pos;if(q.eat(40)){if(q.eat(63)){if(this.options.ecmaVersion>=16){var Z=this.regexp_eatModifiers(q),j=q.eat(45);if(Z||j){for(var Y=0;Y<Z.length;Y++){var K=Z.charAt(Y);if(Z.indexOf(K,Y+1)>-1)q.raise("Duplicate regular expression modifiers")}if(j){var J=this.regexp_eatModifiers(q);if(!Z&&!J&&q.current()===58)q.raise("Invalid regular expression modifiers");for(var X=0;X<J.length;X++){var W=J.charAt(X);if(J.indexOf(W,X+1)>-1||Z.indexOf(W)>-1)q.raise("Duplicate regular expression modifiers")}}}}if(q.eat(58)){if(this.regexp_disjunction(q),q.eat(41))return!0;q.raise("Unterminated group")}}q.pos=Q}return!1};b.regexp_eatCapturingGroup=function(q){if(q.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(q);else if(q.current()===63)q.raise("Invalid group");if(this.regexp_disjunction(q),q.eat(41))return q.numCapturingParens+=1,!0;q.raise("Unterminated group")}return!1};b.regexp_eatModifiers=function(q){var Q="",Z=0;while((Z=q.current())!==-1&&eq(Z))Q+=s8(Z),q.advance();return Q};function eq(q){return q===105||q===109||q===115}b.regexp_eatExtendedAtom=function(q){return q.eat(46)||this.regexp_eatReverseSolidusAtomEscape(q)||this.regexp_eatCharacterClass(q)||this.regexp_eatUncapturingGroup(q)||this.regexp_eatCapturingGroup(q)||this.regexp_eatInvalidBracedQuantifier(q)||this.regexp_eatExtendedPatternCharacter(q)};b.regexp_eatInvalidBracedQuantifier=function(q){if(this.regexp_eatBracedQuantifier(q,!0))q.raise("Nothing to repeat");return!1};b.regexp_eatSyntaxCharacter=function(q){var Q=q.current();if(_2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function _2(q){return q===36||q>=40&&q<=43||q===46||q===63||q>=91&&q<=94||q>=123&&q<=125}b.regexp_eatPatternCharacters=function(q){var Q=q.pos,Z=0;while((Z=q.current())!==-1&&!_2(Z))q.advance();return q.pos!==Q};b.regexp_eatExtendedPatternCharacter=function(q){var Q=q.current();if(Q!==-1&&Q!==36&&!(Q>=40&&Q<=43)&&Q!==46&&Q!==63&&Q!==91&&Q!==94&&Q!==124)return q.advance(),!0;return!1};b.regexp_groupSpecifier=function(q){if(q.eat(63)){if(!this.regexp_eatGroupName(q))q.raise("Invalid group");var Q=this.options.ecmaVersion>=16,Z=q.groupNames[q.lastStringValue];if(Z)if(Q)for(var j=0,Y=Z;j<Y.length;j+=1){var K=Y[j];if(!K.separatedFrom(q.branchID))q.raise("Duplicate capture group name")}else q.raise("Duplicate capture group name");if(Q)(Z||(q.groupNames[q.lastStringValue]=[])).push(q.branchID);else q.groupNames[q.lastStringValue]=!0}};b.regexp_eatGroupName=function(q){if(q.lastStringValue="",q.eat(60)){if(this.regexp_eatRegExpIdentifierName(q)&&q.eat(62))return!0;q.raise("Invalid capture group name")}return!1};b.regexp_eatRegExpIdentifierName=function(q){if(q.lastStringValue="",this.regexp_eatRegExpIdentifierStart(q)){q.lastStringValue+=s8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=s8(q.lastIntValue);return!0}return!1};b.regexp_eatRegExpIdentifierStart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(qQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function qQ(q){return C8(q,!0)||q===36||q===95}b.regexp_eatRegExpIdentifierPart=function(q){var Q=q.pos,Z=this.options.ecmaVersion>=11,j=q.current(Z);if(q.advance(Z),j===92&&this.regexp_eatRegExpUnicodeEscapeSequence(q,Z))j=q.lastIntValue;if(QQ(j))return q.lastIntValue=j,!0;return q.pos=Q,!1};function QQ(q){return y8(q,!0)||q===36||q===95||q===8204||q===8205}b.regexp_eatAtomEscape=function(q){if(this.regexp_eatBackReference(q)||this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)||q.switchN&&this.regexp_eatKGroupName(q))return!0;if(q.switchU){if(q.current()===99)q.raise("Invalid unicode escape");q.raise("Invalid escape")}return!1};b.regexp_eatBackReference=function(q){var Q=q.pos;if(this.regexp_eatDecimalEscape(q)){var Z=q.lastIntValue;if(q.switchU){if(Z>q.maxBackReference)q.maxBackReference=Z;return!0}if(Z<=q.numCapturingParens)return!0;q.pos=Q}return!1};b.regexp_eatKGroupName=function(q){if(q.eat(107)){if(this.regexp_eatGroupName(q))return q.backReferenceNames.push(q.lastStringValue),!0;q.raise("Invalid named reference")}return!1};b.regexp_eatCharacterEscape=function(q){return this.regexp_eatControlEscape(q)||this.regexp_eatCControlLetter(q)||this.regexp_eatZero(q)||this.regexp_eatHexEscapeSequence(q)||this.regexp_eatRegExpUnicodeEscapeSequence(q,!1)||!q.switchU&&this.regexp_eatLegacyOctalEscapeSequence(q)||this.regexp_eatIdentityEscape(q)};b.regexp_eatCControlLetter=function(q){var Q=q.pos;if(q.eat(99)){if(this.regexp_eatControlLetter(q))return!0;q.pos=Q}return!1};b.regexp_eatZero=function(q){if(q.current()===48&&!P0(q.lookahead()))return q.lastIntValue=0,q.advance(),!0;return!1};b.regexp_eatControlEscape=function(q){var Q=q.current();if(Q===116)return q.lastIntValue=9,q.advance(),!0;if(Q===110)return q.lastIntValue=10,q.advance(),!0;if(Q===118)return q.lastIntValue=11,q.advance(),!0;if(Q===102)return q.lastIntValue=12,q.advance(),!0;if(Q===114)return q.lastIntValue=13,q.advance(),!0;return!1};b.regexp_eatControlLetter=function(q){var Q=q.current();if(x2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function x2(q){return q>=65&&q<=90||q>=97&&q<=122}b.regexp_eatRegExpUnicodeEscapeSequence=function(q,Q){if(Q===void 0)Q=!1;var Z=q.pos,j=Q||q.switchU;if(q.eat(117)){if(this.regexp_eatFixedHexDigits(q,4)){var Y=q.lastIntValue;if(j&&Y>=55296&&Y<=56319){var K=q.pos;if(q.eat(92)&&q.eat(117)&&this.regexp_eatFixedHexDigits(q,4)){var J=q.lastIntValue;if(J>=56320&&J<=57343)return q.lastIntValue=(Y-55296)*1024+(J-56320)+65536,!0}q.pos=K,q.lastIntValue=Y}return!0}if(j&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&ZQ(q.lastIntValue))return!0;if(j)q.raise("Invalid unicode escape");q.pos=Z}return!1};function ZQ(q){return q>=0&&q<=1114111}b.regexp_eatIdentityEscape=function(q){if(q.switchU){if(this.regexp_eatSyntaxCharacter(q))return!0;if(q.eat(47))return q.lastIntValue=47,!0;return!1}var Q=q.current();if(Q!==99&&(!q.switchN||Q!==107))return q.lastIntValue=Q,q.advance(),!0;return!1};b.regexp_eatDecimalEscape=function(q){q.lastIntValue=0;var Q=q.current();if(Q>=49&&Q<=57){do q.lastIntValue=10*q.lastIntValue+(Q-48),q.advance();while((Q=q.current())>=48&&Q<=57);return!0}return!1};var u2=0,a8=1,b8=2;b.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(jQ(Q))return q.lastIntValue=-1,q.advance(),a8;var Z=!1;if(q.switchU&&this.options.ecmaVersion>=9&&((Z=Q===80)||Q===112)){q.lastIntValue=-1,q.advance();var j;if(q.eat(123)&&(j=this.regexp_eatUnicodePropertyValueExpression(q))&&q.eat(125)){if(Z&&j===b8)q.raise("Invalid property name");return j}q.raise("Invalid property name")}return u2};function jQ(q){return q===100||q===68||q===115||q===83||q===119||q===87}b.regexp_eatUnicodePropertyValueExpression=function(q){var Q=q.pos;if(this.regexp_eatUnicodePropertyName(q)&&q.eat(61)){var Z=q.lastStringValue;if(this.regexp_eatUnicodePropertyValue(q)){var j=q.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(q,Z,j),a8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var Y=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,Y)}return u2};b.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!F1(q.unicodeProperties.nonBinary,Q))q.raise("Invalid property name");if(!q.unicodeProperties.nonBinary[Q].test(Z))q.raise("Invalid property value")};b.regexp_validateUnicodePropertyNameOrValue=function(q,Q){if(q.unicodeProperties.binary.test(Q))return a8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return b8;q.raise("Invalid property name")};b.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(m2(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function m2(q){return x2(q)||q===95}b.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(YQ(Q=q.current()))q.lastStringValue+=s8(Q),q.advance();return q.lastStringValue!==""};function YQ(q){return m2(q)||P0(q)}b.regexp_eatLoneUnicodePropertyNameOrValue=function(q){return this.regexp_eatUnicodePropertyValue(q)};b.regexp_eatCharacterClass=function(q){if(q.eat(91)){var Q=q.eat(94),Z=this.regexp_classContents(q);if(!q.eat(93))q.raise("Unterminated character class");if(Q&&Z===b8)q.raise("Negated character class may contain strings");return!0}return!1};b.regexp_classContents=function(q){if(q.current()===93)return a8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),a8};b.regexp_nonEmptyClassRanges=function(q){while(this.regexp_eatClassAtom(q)){var Q=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassAtom(q)){var Z=q.lastIntValue;if(q.switchU&&(Q===-1||Z===-1))q.raise("Invalid character class");if(Q!==-1&&Z!==-1&&Q>Z)q.raise("Range out of order in character class")}}};b.regexp_eatClassAtom=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatClassEscape(q))return!0;if(q.switchU){var Z=q.current();if(Z===99||i2(Z))q.raise("Invalid class escape");q.raise("Invalid escape")}q.pos=Q}var j=q.current();if(j!==93)return q.lastIntValue=j,q.advance(),!0;return!1};b.regexp_eatClassEscape=function(q){var Q=q.pos;if(q.eat(98))return q.lastIntValue=8,!0;if(q.switchU&&q.eat(45))return q.lastIntValue=45,!0;if(!q.switchU&&q.eat(99)){if(this.regexp_eatClassControlLetter(q))return!0;q.pos=Q}return this.regexp_eatCharacterClassEscape(q)||this.regexp_eatCharacterEscape(q)};b.regexp_classSetExpression=function(q){var Q=a8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===b8)Q=b8;var j=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==b8)Q=a8;continue}q.raise("Invalid character in character class")}if(j!==q.pos)return Q;while(q.eatChars([45,45])){if(this.regexp_eatClassSetOperand(q))continue;q.raise("Invalid character in character class")}if(j!==q.pos)return Q}else q.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(q))continue;if(Z=this.regexp_eatClassSetOperand(q),!Z)return Q;if(Z===b8)Q=b8}};b.regexp_eatClassSetRange=function(q){var Q=q.pos;if(this.regexp_eatClassSetCharacter(q)){var Z=q.lastIntValue;if(q.eat(45)&&this.regexp_eatClassSetCharacter(q)){var j=q.lastIntValue;if(Z!==-1&&j!==-1&&Z>j)q.raise("Range out of order in character class");return!0}q.pos=Q}return!1};b.regexp_eatClassSetOperand=function(q){if(this.regexp_eatClassSetCharacter(q))return a8;return this.regexp_eatClassStringDisjunction(q)||this.regexp_eatNestedClass(q)};b.regexp_eatNestedClass=function(q){var Q=q.pos;if(q.eat(91)){var Z=q.eat(94),j=this.regexp_classContents(q);if(q.eat(93)){if(Z&&j===b8)q.raise("Negated character class may contain strings");return j}q.pos=Q}if(q.eat(92)){var Y=this.regexp_eatCharacterClassEscape(q);if(Y)return Y;q.pos=Q}return null};b.regexp_eatClassStringDisjunction=function(q){var Q=q.pos;if(q.eatChars([92,113])){if(q.eat(123)){var Z=this.regexp_classStringDisjunctionContents(q);if(q.eat(125))return Z}else q.raise("Invalid escape");q.pos=Q}return null};b.regexp_classStringDisjunctionContents=function(q){var Q=this.regexp_classString(q);while(q.eat(124))if(this.regexp_classString(q)===b8)Q=b8;return Q};b.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?a8:b8};b.regexp_eatClassSetCharacter=function(q){var Q=q.pos;if(q.eat(92)){if(this.regexp_eatCharacterEscape(q)||this.regexp_eatClassSetReservedPunctuator(q))return!0;if(q.eat(98))return q.lastIntValue=8,!0;return q.pos=Q,!1}var Z=q.current();if(Z<0||Z===q.lookahead()&&HQ(Z))return!1;if(JQ(Z))return!1;return q.advance(),q.lastIntValue=Z,!0};function HQ(q){return q===33||q>=35&&q<=38||q>=42&&q<=44||q===46||q>=58&&q<=64||q===94||q===96||q===126}function JQ(q){return q===40||q===41||q===45||q===47||q>=91&&q<=93||q>=123&&q<=125}b.regexp_eatClassSetReservedPunctuator=function(q){var Q=q.current();if(KQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function KQ(q){return q===33||q===35||q===37||q===38||q===44||q===45||q>=58&&q<=62||q===64||q===96||q===126}b.regexp_eatClassControlLetter=function(q){var Q=q.current();if(P0(Q)||Q===95)return q.lastIntValue=Q%32,q.advance(),!0;return!1};b.regexp_eatHexEscapeSequence=function(q){var Q=q.pos;if(q.eat(120)){if(this.regexp_eatFixedHexDigits(q,2))return!0;if(q.switchU)q.raise("Invalid escape");q.pos=Q}return!1};b.regexp_eatDecimalDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(P0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function P0(q){return q>=48&&q<=57}b.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(l2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+c2(Z),q.advance();return q.pos!==Q};function l2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function c2(q){if(q>=65&&q<=70)return 10+(q-65);if(q>=97&&q<=102)return 10+(q-97);return q-48}b.regexp_eatLegacyOctalEscapeSequence=function(q){if(this.regexp_eatOctalDigit(q)){var Q=q.lastIntValue;if(this.regexp_eatOctalDigit(q)){var Z=q.lastIntValue;if(Q<=3&&this.regexp_eatOctalDigit(q))q.lastIntValue=Q*64+Z*8+q.lastIntValue;else q.lastIntValue=Q*8+Z}else q.lastIntValue=Q;return!0}return!1};b.regexp_eatOctalDigit=function(q){var Q=q.current();if(i2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function i2(q){return q>=48&&q<=55}b.regexp_eatFixedHexDigits=function(q,Q){var Z=q.pos;q.lastIntValue=0;for(var j=0;j<Q;++j){var Y=q.current();if(!l2(Y))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+c2(Y),q.advance()}return!0};var S0=function(Q){if(this.type=Q.type,this.value=Q.value,this.start=Q.start,this.end=Q.end,Q.options.locations)this.loc=new f1(Q,Q.startLoc,Q.endLoc);if(Q.options.ranges)this.range=[Q.start,Q.end]},i=j8.prototype;i.next=function(q){if(!q&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new S0(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};i.getToken=function(){return this.next(),new S0(this)};if(typeof Symbol<"u")i[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===U.eof,value:Q}}}};i.nextToken=function(){var q=this.curContext();if(!q||!q.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(U.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};i.readToken=function(q){if(C8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};i.fullCharCodeAt=function(q){var Q=this.input.charCodeAt(q);if(Q<=55295||Q>=56320)return Q;var Z=this.input.charCodeAt(q+1);return Z<=56319||Z>=57344?Q:(Q<<10)+Z-56613888};i.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};i.skipBlockComment=function(){var q=this.options.onComment&&this.curPosition(),Q=this.pos,Z=this.input.indexOf("*/",this.pos+=2);if(Z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=Z+2,this.options.locations)for(var j=void 0,Y=Q;(j=R2(this.input,Y,this.pos))>-1;)++this.curLine,Y=this.lineStart=j;if(this.options.onComment)this.options.onComment(!0,this.input.slice(Q+2,Z),Q,this.pos,q,this.curPosition())};i.skipLineComment=function(q){var Q=this.pos,Z=this.options.onComment&&this.curPosition(),j=this.input.charCodeAt(this.pos+=q);while(this.pos<this.input.length&&!G1(j))j=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(Q+q,this.pos),Q,this.pos,Z,this.curPosition())};i.skipSpace=function(){q:while(this.pos<this.input.length){var q=this.input.charCodeAt(this.pos);switch(q){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break q}break;default:if(q>8&&q<14||q>=5760&&y9.test(String.fromCharCode(q)))++this.pos;else break q}}};i.finishToken=function(q,Q){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var Z=this.type;this.type=q,this.value=Q,this.updateContext(Z)};i.readToken_dot=function(){var q=this.input.charCodeAt(this.pos+1);if(q>=48&&q<=57)return this.readNumber(!0);var Q=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&q===46&&Q===46)return this.pos+=3,this.finishToken(U.ellipsis);else return++this.pos,this.finishToken(U.dot)};i.readToken_slash=function(){var q=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.slash,1)};i.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,j=q===42?U.star:U.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,j=U.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(U.assign,Z+1);return this.finishOp(j,Z)};i.readToken_pipe_amp=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(this.options.ecmaVersion>=12){var Z=this.input.charCodeAt(this.pos+2);if(Z===61)return this.finishOp(U.assign,3)}return this.finishOp(q===124?U.logicalOR:U.logicalAND,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(q===124?U.bitwiseOR:U.bitwiseAND,1)};i.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(U.assign,2);return this.finishOp(U.bitwiseXOR,1)};i.readToken_plus_min=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===q){if(Q===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||F8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(U.incDec,2)}if(Q===61)return this.finishOp(U.assign,2);return this.finishOp(U.plusMin,1)};i.readToken_lt_gt=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1;if(Q===q){if(Z=q===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+Z)===61)return this.finishOp(U.assign,Z+1);return this.finishOp(U.bitShift,Z)}if(Q===33&&q===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(Q===61)Z=2;return this.finishOp(U.relational,Z)};i.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(U.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(q===61&&Q===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(U.arrow);return this.finishOp(q===61?U.eq:U.prefix,1)};i.readToken_question=function(){var q=this.options.ecmaVersion;if(q>=11){var Q=this.input.charCodeAt(this.pos+1);if(Q===46){var Z=this.input.charCodeAt(this.pos+2);if(Z<48||Z>57)return this.finishOp(U.questionDot,2)}if(Q===63){if(q>=12){var j=this.input.charCodeAt(this.pos+2);if(j===61)return this.finishOp(U.assign,3)}return this.finishOp(U.coalesce,2)}}return this.finishOp(U.question,1)};i.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),C8(Q,!0)||Q===92)return this.finishToken(U.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+s8(Q)+"'")};i.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(U.parenL);case 41:return++this.pos,this.finishToken(U.parenR);case 59:return++this.pos,this.finishToken(U.semi);case 44:return++this.pos,this.finishToken(U.comma);case 91:return++this.pos,this.finishToken(U.bracketL);case 93:return++this.pos,this.finishToken(U.bracketR);case 123:return++this.pos,this.finishToken(U.braceL);case 125:return++this.pos,this.finishToken(U.braceR);case 58:return++this.pos,this.finishToken(U.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(U.backQuote);case 48:var Q=this.input.charCodeAt(this.pos+1);if(Q===120||Q===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(Q===111||Q===79)return this.readRadixNumber(8);if(Q===98||Q===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(q);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(q);case 124:case 38:return this.readToken_pipe_amp(q);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(q);case 60:case 62:return this.readToken_lt_gt(q);case 61:case 33:return this.readToken_eq_excl(q);case 63:return this.readToken_question();case 126:return this.finishOp(U.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+s8(q)+"'")};i.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};i.readRegexp=function(){var q,Q,Z=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(Z,"Unterminated regular expression");var j=this.input.charAt(this.pos);if(F8.test(j))this.raise(Z,"Unterminated regular expression");if(!q){if(j==="[")Q=!0;else if(j==="]"&&Q)Q=!1;else if(j==="/"&&!Q)break;q=j==="\\"}else q=!1;++this.pos}var Y=this.input.slice(Z,this.pos);++this.pos;var K=this.pos,J=this.readWord1();if(this.containsEsc)this.unexpected(K);var X=this.regexpState||(this.regexpState=new l8(this));X.reset(Z,Y,J),this.validateRegExpFlags(X),this.validateRegExpPattern(X);var W=null;try{W=new RegExp(Y,J)}catch(R){}return this.finishToken(U.regexp,{pattern:Y,flags:J,value:W})};i.readInt=function(q,Q,Z){var j=this.options.ecmaVersion>=12&&Q===void 0,Y=Z&&this.input.charCodeAt(this.pos)===48,K=this.pos,J=0,X=0;for(var W=0,R=Q==null?1/0:Q;W<R;++W,++this.pos){var O=this.input.charCodeAt(this.pos),M=void 0;if(j&&O===95){if(Y)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(X===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(W===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");X=O;continue}if(O>=97)M=O-97+10;else if(O>=65)M=O-65+10;else if(O>=48&&O<=57)M=O-48;else M=1/0;if(M>=q)break;X=O,J=J*q+M}if(j&&X===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===K||Q!=null&&this.pos-K!==Q)return null;return J};function VQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function d2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}i.readRadixNumber=function(q){var Q=this.pos;this.pos+=2;var Z=this.readInt(q);if(Z==null)this.raise(this.start+2,"Expected number in radix "+q);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)Z=d2(this.input.slice(Q,this.pos)),++this.pos;else if(C8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,Z)};i.readNumber=function(q){var Q=this.pos;if(!q&&this.readInt(10,void 0,!0)===null)this.raise(Q,"Invalid number");var Z=this.pos-Q>=2&&this.input.charCodeAt(Q)===48;if(Z&&this.strict)this.raise(Q,"Invalid number");var j=this.input.charCodeAt(this.pos);if(!Z&&!q&&this.options.ecmaVersion>=11&&j===110){var Y=d2(this.input.slice(Q,this.pos));if(++this.pos,C8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(U.num,Y)}if(Z&&/[89]/.test(this.input.slice(Q,this.pos)))Z=!1;if(j===46&&!Z)++this.pos,this.readInt(10),j=this.input.charCodeAt(this.pos);if((j===69||j===101)&&!Z){if(j=this.input.charCodeAt(++this.pos),j===43||j===45)++this.pos;if(this.readInt(10)===null)this.raise(Q,"Invalid number")}if(C8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var K=VQ(this.input.slice(Q,this.pos),Z);return this.finishToken(U.num,K)};i.readCodePoint=function(){var q=this.input.charCodeAt(this.pos),Q;if(q===123){if(this.options.ecmaVersion<6)this.unexpected();var Z=++this.pos;if(Q=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,Q>1114111)this.invalidStringToken(Z,"Code point out of bounds")}else Q=this.readHexChar(4);return Q};i.readString=function(q){var Q="",Z=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var j=this.input.charCodeAt(this.pos);if(j===q)break;if(j===92)Q+=this.input.slice(Z,this.pos),Q+=this.readEscapedChar(!1),Z=this.pos;else if(j===8232||j===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(G1(j))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(U.string,Q)};var p2={};i.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===p2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};i.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw p2;else this.raise(q,Q)};i.readTmplToken=function(){var q="",Q=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var Z=this.input.charCodeAt(this.pos);if(Z===96||Z===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===U.template||this.type===U.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(U.dollarBraceL);else return++this.pos,this.finishToken(U.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(U.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(G1(Z)){switch(q+=this.input.slice(Q,this.pos),++this.pos,Z){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:q+=`
31
31
  `;break;default:q+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Q=this.pos}else++this.pos}};i.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(U.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
32
32
  `)++this.pos;case`
33
33
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};i.readEscapedChar=function(q){var Q=this.input.charCodeAt(++this.pos);switch(++this.pos,Q){case 110:return`
34
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(q){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(Q>=48&&Q<=55){var Y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],H=parseInt(Y,8);if(H>255)Y=Y.slice(0,-1),H=parseInt(Y,8);if(this.pos+=Y.length-1,Q=this.input.charCodeAt(this.pos),(Y!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-Y.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(H)}if(j1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};i.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};i.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,Y=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var H=this.fullCharCodeAtPos();if(y8(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var V=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var K=this.readCodePoint();if(!(Q?A8:y8)(K,Y))this.invalidStringToken(V,"Invalid Unicode escape");q+=s8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};i.readWord=function(){var q=this.readWord1(),Q=U.name;if(this.keywords.test(q))Q=C0[q];return this.finishToken(Q,q)};var d2="8.17.0";Y8.acorn={Parser:Y8,version:d2,defaultOptions:B0,Position:B1,SourceLocation:f1,getLineInfo:g9,Node:g1,TokenType:o,tokTypes:U,keywordTypes:C0,TokContext:T8,tokContexts:Q8,isIdentifierChar:y8,isIdentifierStart:A8,Token:S0,isNewLine:j1,lineBreak:F8,lineBreakG:j2,nonASCIIwhitespace:y9};function WQ(q,Q){return Y8.parse(q,Q)}function GQ(q,Q,Z){return Y8.parseExpressionAt(q,Q,Z)}function zQ(q,Q){return Y8.tokenizer(q,Q)}var w8=!0,jQ=new WeakMap;function OQ(q){let Q=q.Parser.acorn||q,Z=jQ.get(Q);if(!Z){let W=function(x){return x===F.name||x===F.string||x===F.num||w.includes(x)||v.includes(x)},G=function(x){return x===F.name||w.includes(x)||v.includes(x)},R=function(x){return x===F.name||v.includes(x)},O=function(x){return x===N.abstract||x===N.declare||x===N.enum||x===N.module||x===N.namespace||x===N.interface||x===N.type},$=function(x){return x===N.keyof||x===N.readonly||x===N.unique},M=function(x){return x===F.invalidTemplate},{tokTypes:F,keywordTypes:P}=Q,w=Object.values(P),N=K(),v=Object.values(N),g=V(),f=H(),a=new RegExp(`^(?:${Object.keys(N).join("|")})$`);g.jsxTagStart.updateContext=function(){this.context.push(f.tc_expr),this.context.push(f.tc_oTag),this.exprAllowed=!1},g.jsxTagEnd.updateContext=function(x){let Z8=this.context.pop();if(Z8===f.tc_oTag&&x===F.slash||Z8===f.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===f.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...N,...g},tokContexts:{...f},keywordsRegExp:a,tokenIsLiteralPropertyName:W,tokenIsKeywordOrIdentifier:G,tokenIsIdentifier:R,tokenIsTSDeclarationStart:O,tokenIsTSTypeOperator:$,tokenIsTemplate:M}}return Z;function Y(W,G={}){return new Q.TokenType("name",G)}function H(){return{tc_oTag:new Q.TokContext("<tag",!1,!1),tc_cTag:new Q.TokContext("</tag",!1,!1),tc_expr:new Q.TokContext("<tag>...</tag>",!0,!0)}}function V(){return{at:new Q.TokenType("@"),jsxName:new Q.TokenType("jsxName"),jsxText:new Q.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new Q.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Q.TokenType("jsxTagEnd")}}function K(){return{assert:Y("assert",{startsExpr:w8}),asserts:Y("asserts",{startsExpr:w8}),global:Y("global",{startsExpr:w8}),keyof:Y("keyof",{startsExpr:w8}),readonly:Y("readonly",{startsExpr:w8}),unique:Y("unique",{startsExpr:w8}),abstract:Y("abstract",{startsExpr:w8}),declare:Y("declare",{startsExpr:w8}),enum:Y("enum",{startsExpr:w8}),module:Y("module",{startsExpr:w8}),namespace:Y("namespace",{startsExpr:w8}),interface:Y("interface",{startsExpr:w8}),type:Y("type",{startsExpr:w8})}}}var UQ=512,x1=1024,$1=1,b0=2,RQ=4,d9=8,BQ=16,r2=64,t2=128,FQ=256,MQ=512,e2=1024,_K=$1|b0|d9|t2,xK=$1|0|d9|0,uK=$1|0|RQ|0,mK=$1|0|BQ|0,lK=0|b0|0|t2,cK=0|b0|0|0,$Q=$1|b0|d9|FQ,iK=0|e2,dK=0|r2,pK=$1|0|0|r2,oK=$Q|MQ,nK=0|e2,q5=4,Q5=2,Z5=1,sK=Q5|Z5,aK=Q5|q5,rK=Z5|q5,LQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,p2=new RegExp("(?=("+LQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),u1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function CQ(q,Q){let Z=Q.key.name,Y=q[Z],H="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))H=(Q.static?"s":"i")+Q.kind;if(Y==="iget"&&H==="iset"||Y==="iset"&&H==="iget"||Y==="sget"&&H==="sset"||Y==="sset"&&H==="sget")return q[Z]="true",!1;else if(!Y)return q[Z]=H,!1;else return!0}function o2(q,Q){let{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}var E={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",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:({type:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},T0={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function AQ(q,Q,Z){let{tokTypes:Y}=Z,{tokTypes:H}=Q;return class extends q{takeDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];if(W.length)K.decorators=W,this.resetStartLocationFromNode(K,W[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let W=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let G=this.parseDecorator();W.push(G)}if(this.match(Y._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,T0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let W=this.start,G=this.startLoc,R;if(this.match(Y.parenL)){let O=this.start,$=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let M=this.startNodeAt(O,$);M.expression=R,R=this.finishNode(M,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(Y.dot)){let O=this.startNodeAt(W,G);O.object=R,O.property=this.parseIdent(!0),O.computed=!1,R=this.finishNode(O,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(Y.parenL)){let W=this.startNodeAtNode(K);return W.callee=K,W.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(W,"CallExpression")}return K}}}var wQ={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",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:"♦"},IQ=/^[\da-fA-F]+$/,PQ=/^\d+$/;function m1(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return m1(q.object)+"."+m1(q.property)}function SQ(q,Q,Z,Y){let H=q.tokTypes,V=Q.tokTypes,K=q.isNewLine,W=q.isIdentifierChar,G=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Z{jsx_readToken(){let O="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let M=this.input.charCodeAt(this.pos);switch(M){case 60:case 123:if(this.pos===this.start){if(M===60&&this.exprAllowed)return++this.pos,this.finishToken(V.jsxTagStart);return this.getTokenFromCode(M)}return O+=this.input.slice($,this.pos),this.finishToken(V.jsxText,O);case 38:O+=this.input.slice($,this.pos),O+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(M===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K(M))O+=this.input.slice($,this.pos),O+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(O){let $=this.input.charCodeAt(this.pos),M;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,M=O?`
34
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return s8(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(q){var Z=this.pos-1;this.invalidStringToken(Z,"Invalid escape sequence in template string")}default:if(Q>=48&&Q<=55){var j=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Y=parseInt(j,8);if(Y>255)j=j.slice(0,-1),Y=parseInt(j,8);if(this.pos+=j.length-1,Q=this.input.charCodeAt(this.pos),(j!=="0"||Q===56||Q===57)&&(this.strict||q))this.invalidStringToken(this.pos-1-j.length,q?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(Y)}if(G1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};i.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};i.readWord1=function(){this.containsEsc=!1;var q="",Q=!0,Z=this.pos,j=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var Y=this.fullCharCodeAtPos();if(y8(Y,j))this.pos+=Y<=65535?1:2;else if(Y===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var K=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var J=this.readCodePoint();if(!(Q?C8:y8)(J,j))this.invalidStringToken(K,"Invalid Unicode escape");q+=s8(J),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};i.readWord=function(){var q=this.readWord1(),Q=U.name;if(this.keywords.test(q))Q=L0[q];return this.finishToken(Q,q)};var o2="8.18.0";j8.acorn={Parser:j8,version:o2,defaultOptions:B0,Position:B1,SourceLocation:f1,getLineInfo:g9,Node:g1,TokenType:o,tokTypes:U,keywordTypes:L0,TokContext:N8,tokContexts:Q8,isIdentifierChar:y8,isIdentifierStart:C8,Token:S0,isNewLine:G1,lineBreak:F8,lineBreakG:U2,nonASCIIwhitespace:y9};function XQ(q,Q){return j8.parse(q,Q)}function WQ(q,Q,Z){return j8.parseExpressionAt(q,Q,Z)}function zQ(q,Q){return j8.tokenizer(q,Q)}var A8=!0,GQ=new WeakMap;function OQ(q){let Q=q.Parser.acorn||q,Z=GQ.get(Q);if(!Z){let X=function(x){return x===B.name||x===B.string||x===B.num||A.includes(x)||v.includes(x)},W=function(x){return x===B.name||A.includes(x)||v.includes(x)},R=function(x){return x===B.name||v.includes(x)},O=function(x){return x===N.abstract||x===N.declare||x===N.enum||x===N.module||x===N.namespace||x===N.interface||x===N.type},M=function(x){return x===N.keyof||x===N.readonly||x===N.unique},$=function(x){return x===B.invalidTemplate},{tokTypes:B,keywordTypes:P}=Q,A=Object.values(P),N=J(),v=Object.values(N),g=K(),f=Y(),a=new RegExp(`^(?:${Object.keys(N).join("|")})$`);g.jsxTagStart.updateContext=function(){this.context.push(f.tc_expr),this.context.push(f.tc_oTag),this.exprAllowed=!1},g.jsxTagEnd.updateContext=function(x){let Z8=this.context.pop();if(Z8===f.tc_oTag&&x===B.slash||Z8===f.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===f.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...N,...g},tokContexts:{...f},keywordsRegExp:a,tokenIsLiteralPropertyName:X,tokenIsKeywordOrIdentifier:W,tokenIsIdentifier:R,tokenIsTSDeclarationStart:O,tokenIsTSTypeOperator:M,tokenIsTemplate:$}}return Z;function j(X,W={}){return new Q.TokenType("name",W)}function Y(){return{tc_oTag:new Q.TokContext("<tag",!1,!1),tc_cTag:new Q.TokContext("</tag",!1,!1),tc_expr:new Q.TokContext("<tag>...</tag>",!0,!0)}}function K(){return{at:new Q.TokenType("@"),jsxName:new Q.TokenType("jsxName"),jsxText:new Q.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new Q.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new Q.TokenType("jsxTagEnd")}}function J(){return{assert:j("assert",{startsExpr:A8}),asserts:j("asserts",{startsExpr:A8}),global:j("global",{startsExpr:A8}),keyof:j("keyof",{startsExpr:A8}),readonly:j("readonly",{startsExpr:A8}),unique:j("unique",{startsExpr:A8}),abstract:j("abstract",{startsExpr:A8}),declare:j("declare",{startsExpr:A8}),enum:j("enum",{startsExpr:A8}),module:j("module",{startsExpr:A8}),namespace:j("namespace",{startsExpr:A8}),interface:j("interface",{startsExpr:A8}),type:j("type",{startsExpr:A8})}}}var UQ=512,x1=1024,$1=1,T0=2,RQ=4,d9=8,BQ=16,e2=64,q5=128,FQ=256,MQ=512,Q5=1024,mJ=$1|T0|d9|q5,lJ=$1|0|d9|0,cJ=$1|0|RQ|0,iJ=$1|0|BQ|0,dJ=0|T0|0|q5,pJ=0|T0|0|0,$Q=$1|T0|d9|FQ,oJ=0|Q5,nJ=0|e2,sJ=$1|0|0|e2,aJ=$Q|MQ,rJ=0|Q5,Z5=4,j5=2,Y5=1,tJ=j5|Y5,eJ=j5|Z5,qK=Y5|Z5,wQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,n2=new RegExp("(?=("+wQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),u1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function LQ(q,Q){let Z=Q.key.name,j=q[Z],Y="true";if(Q.type==="MethodDefinition"&&(Q.kind==="get"||Q.kind==="set"))Y=(Q.static?"s":"i")+Q.kind;if(j==="iget"&&Y==="iset"||j==="iset"&&Y==="iget"||j==="sget"&&Y==="sset"||j==="sset"&&Y==="sget")return q[Z]="true",!1;else if(!j)return q[Z]=Y,!1;else return!0}function s2(q,Q){let{computed:Z,key:j}=q;return!Z&&(j.type==="Identifier"&&j.name===Q||j.type==="Literal"&&j.value===Q)}var E={AbstractMethodHasImplementation:({methodName:q})=>`Method '${q}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:q})=>`Property '${q}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:({name:q})=>`Cannot find name '${q}'.`,ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:q})=>`'declare' is not allowed in ${q}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:()=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:q})=>`Duplicate modifier: '${q}'.`,EmptyHeritageClauseType:({token:q})=>`'${q}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:({modifiers:q})=>`'${q[0]}' modifier cannot be used with '${q[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:q})=>`Index signatures cannot have an accessibility modifier ('${q}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:q})=>`'${q}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:q})=>`'${q}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:q})=>`'${q}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:q})=>`'${q[0]}' modifier must precede '${q[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:q})=>`Private elements cannot have an accessibility modifier ('${q}').`,PrivateMethodsHasAccessibility:({modifier:q})=>`Private methods cannot have an accessibility modifier ('${q}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:q})=>`Single type parameter ${q} should have a trailing comma. Example usage: <${q},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",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.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",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:({type:q})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${q}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},b0={UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",TrailingDecorator:"Decorators must be attached to a class element.",SpreadElementDecorator:"Decorators can't be used with SpreadElement"};function CQ(q,Q,Z){let{tokTypes:j}=Z,{tokTypes:Y}=Q;return class extends q{takeDecorators(J){let X=this.decoratorStack[this.decoratorStack.length-1];if(X.length)J.decorators=X,this.resetStartLocationFromNode(J,X[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(J){let X=this.decoratorStack[this.decoratorStack.length-1];while(this.match(Y.at)){let W=this.parseDecorator();X.push(W)}if(this.match(j._export)){if(!J)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,b0.UnexpectedLeadingDecorator)}parseDecorator(){let J=this.startNode();this.next(),this.decoratorStack.push([]);let X=this.start,W=this.startLoc,R;if(this.match(j.parenL)){let O=this.start,M=this.startLoc;if(this.next(),R=this.parseExpression(),this.expect(j.parenR),this.options.preserveParens){let $=this.startNodeAt(O,M);$.expression=R,R=this.finishNode($,"ParenthesizedExpression")}}else{R=this.parseIdent(!1);while(this.eat(j.dot)){let O=this.startNodeAt(X,W);O.object=R,O.property=this.parseIdent(!0),O.computed=!1,R=this.finishNode(O,"MemberExpression")}}return J.expression=this.parseMaybeDecoratorArguments(R),this.decoratorStack.pop(),this.finishNode(J,"Decorator")}parseMaybeDecoratorArguments(J){if(this.eat(j.parenL)){let X=this.startNodeAtNode(J);return X.callee=J,X.arguments=this.parseExprList(j.parenR,!1),this.finishNode(X,"CallExpression")}return J}}}var AQ={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",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:"♦"},IQ=/^[\da-fA-F]+$/,PQ=/^\d+$/;function m1(q){if(!q)return q;if(q.type==="JSXIdentifier")return q.name;if(q.type==="JSXNamespacedName")return q.namespace.name+":"+q.name.name;if(q.type==="JSXMemberExpression")return m1(q.object)+"."+m1(q.property)}function SQ(q,Q,Z,j){let Y=q.tokTypes,K=Q.tokTypes,J=q.isNewLine,X=q.isIdentifierChar,W=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},j||{});return class extends Z{jsx_readToken(){let O="",M=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let $=this.input.charCodeAt(this.pos);switch($){case 60:case 123:if(this.pos===this.start){if($===60&&this.exprAllowed)return++this.pos,this.finishToken(K.jsxTagStart);return this.getTokenFromCode($)}return O+=this.input.slice(M,this.pos),this.finishToken(K.jsxText,O);case 38:O+=this.input.slice(M,this.pos),O+=this.jsx_readEntity(),M=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+($===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(J($))O+=this.input.slice(M,this.pos),O+=this.jsx_readNewLine(!0),M=this.pos;else++this.pos}}}jsx_readNewLine(O){let M=this.input.charCodeAt(this.pos),$;if(++this.pos,M===13&&this.input.charCodeAt(this.pos)===10)++this.pos,$=O?`
35
35
  `:`\r
36
- `;else M=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return M}jsx_readString(O){let $="",M=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let F=this.input.charCodeAt(this.pos);if(F===O)break;if(F===38)$+=this.input.slice(M,this.pos),$+=this.jsx_readEntity(),M=this.pos;else if(K(F))$+=this.input.slice(M,this.pos),$+=this.jsx_readNewLine(!1),M=this.pos;else++this.pos}return $+=this.input.slice(M,this.pos++),this.finishToken(H.string,$)}jsx_readEntity(){let O="",$=0,M,F=this.input[this.pos];if(F!=="&")this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;while(this.pos<this.input.length&&$++<10){if(F=this.input[this.pos++],F===";"){if(O[0]==="#"){if(O[1]==="x"){if(O=O.substr(2),IQ.test(O))M=String.fromCharCode(parseInt(O,16))}else if(O=O.substr(1),PQ.test(O))M=String.fromCharCode(parseInt(O,10))}else M=wQ[O];break}O+=F}if(!M)return this.pos=P,"&";return M}jsx_readWord(){let O,$=this.pos;do O=this.input.charCodeAt(++this.pos);while(W(O)||O===45);return this.finishToken(V.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let O=this.startNode();if(this.type===V.jsxName)O.name=this.value;else if(this.type.keyword)O.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(O,"JSXIdentifier")}jsx_parseNamespacedName(){let O=this.start,$=this.startLoc,M=this.jsx_parseIdentifier();if(!G.allowNamespaces||!this.eat(H.colon))return M;var F=this.startNodeAt(O,$);return F.namespace=M,F.name=this.jsx_parseIdentifier(),this.finishNode(F,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===V.jsxTagEnd)return"";let O=this.start,$=this.startLoc,M=this.jsx_parseNamespacedName();if(this.type===H.dot&&M.type==="JSXNamespacedName"&&!G.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let F=this.startNodeAt(O,$);F.object=M,F.property=this.jsx_parseIdentifier(),M=this.finishNode(F,"JSXMemberExpression")}return M}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let O=this.jsx_parseExpressionContainer();if(O.expression.type==="JSXEmptyExpression")this.raise(O.start,"JSX attributes must only be assigned a non-empty expression");return O;case V.jsxTagStart:case H.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let O=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(O,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let O=this.startNode();return this.next(),O.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(O,"JSXExpressionContainer")}jsx_parseAttribute(){let O=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),O.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(O,"JSXSpreadAttribute");return O.name=this.jsx_parseNamespacedName(),O.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(O,"JSXAttribute")}jsx_parseOpeningElementAt(O,$){let M=this.startNodeAt(O,$);M.attributes=[];let F=this.jsx_parseElementName();if(F)M.name=F;while(this.type!==H.slash&&this.type!==V.jsxTagEnd)M.attributes.push(this.jsx_parseAttribute());return M.selfClosing=this.eat(H.slash),this.expect(V.jsxTagEnd),this.finishNode(M,F?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(O,$){let M=this.startNodeAt(O,$),F=this.jsx_parseElementName();if(F)M.name=F;return this.expect(V.jsxTagEnd),this.finishNode(M,F?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(O,$){let M=this.startNodeAt(O,$),F=[],P=this.jsx_parseOpeningElementAt(O,$),w=null;if(!P.selfClosing){q:for(;;)switch(this.type){case V.jsxTagStart:if(O=this.start,$=this.startLoc,this.next(),this.eat(H.slash)){w=this.jsx_parseClosingElementAt(O,$);break q}F.push(this.jsx_parseElementAt(O,$));break;case V.jsxText:F.push(this.parseExprAtom());break;case H.braceL:F.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(m1(w.name)!==m1(P.name))this.raise(w.start,"Expected corresponding JSX closing tag for <"+m1(P.name)+">")}let N=P.name?"Element":"Fragment";if(M["opening"+N]=P,M["closing"+N]=w,M.children=F,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(M,"JSX"+N)}jsx_parseText(){let O=this.parseLiteral(this.value);return O.type="JSXText",O}jsx_parseElement(){let O=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(O,$)}}}function DQ(q,Q,Z){let{tokTypes:Y}=Q,{tokTypes:H}=Z;return class extends q{parseMaybeImportAttributes(K){if(this.type===H._with||this.type===Y.assert){this.next();let W=this.parseImportAttributes();if(W)K.attributes=W}}parseImportAttributes(){this.expect(H.braceL);let K=this.parseWithEntries();return this.expect(H.braceR),K}parseWithEntries(){let K=[],W=new Set;do{if(this.type===H.braceR)break;let G=this.startNode(),R;if(this.type===H.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),G.key=R,W.has(G.key.name))this.raise(this.pos,"Duplicated key in attributes");if(W.add(G.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");G.value=this.parseLiteral(this.value),K.push(this.finishNode(G,"ImportAttribute"))}while(this.eat(H.comma));return K}}}var c9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function n2(q){if(!q)throw Error("Assert fail")}function NQ(q){return q==="accessor"}function TQ(q){return q==="in"||q==="out"}var N0=1,s2=2,bQ=4,q8={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function i9(q,Q){return q8.SCOPE_FUNCTION|(q?q8.SCOPE_ASYNC:0)|(Q?q8.SCOPE_GENERATOR:0)}function kQ(q){if(q.type!=="MemberExpression")return!1;let{computed:Q,property:Z}=q;if(Q&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0))return!1;return Y5(q.object)}function Y5(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return Y5(q.object)}function a2(q){return q==="private"||q==="public"||q==="protected"}function EQ(q){return Boolean(q.startsExpr)}function vQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function hQ(q){switch(q){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 H5(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(Y){let H=Y.acorn||D0,V=OQ(H),K=H.tokTypes,W=H.keywordTypes,G=H.isIdentifierStart,R=H.lineBreak,O=H.isNewLine,$=H.tokContexts,M=H.isIdentifierChar,{tokTypes:F,tokContexts:P,keywordsRegExp:w,tokenIsLiteralPropertyName:N,tokenIsTemplate:v,tokenIsTSDeclarationStart:g,tokenIsIdentifier:f,tokenIsKeywordOrIdentifier:a,tokenIsTSTypeOperator:x}=V;function Z8(J,X,z=J.length){for(let j=X;j<z;j++){let B=J.charCodeAt(j);if(O(B))return j<z-1&&B===13&&J.charCodeAt(j+1)===10?j+2:j+1}return-1}if(Y=AQ(Y,V,H),q?.jsx)Y=SQ(H,V,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=DQ(Y,V,H);class C extends Y{constructor(J,X,z){super(J,X,z);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(j)=>{this.tsParseModifiers({modified:j,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return V}get acornTypeScript(){return V}getTokenFromCodeInType(J){if(J===62)return this.finishOp(K.relational,1);if(J===60)return this.finishOp(K.relational,1);return super.getTokenFromCode(J)}readToken(J){if(!this.inType){let X=this.curContext();if(X===P.tc_expr)return this.jsx_readToken();if(X===P.tc_oTag||X===P.tc_cTag){if(G(J))return this.jsx_readWord();if(J==62)return++this.pos,this.finishToken(F.jsxTagEnd);if((J===34||J===39)&&X==P.tc_oTag)return this.jsx_readString(J)}if(J===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(F.jsxTagStart);else return this.finishToken(K.relational,"<")}return super.readToken(J)}getTokenFromCode(J){if(this.inType)return this.getTokenFromCodeInType(J);if(J===64)return++this.pos,this.finishToken(F.at);return super.getTokenFromCode(J)}isAbstractClass(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._class}finishNode(J,X){if(J.type!==""&&J.end!==0)return J;return super.finishNode(J,X)}tryParse(J,X=this.cloneCurLookaheadState()){let z={node:null};try{return{node:J((B=null)=>{throw z.node=B,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(j){let B=this.getCurLookaheadState();if(this.setLookaheadState(X),j instanceof SyntaxError)return{node:null,error:j,thrown:!0,aborted:!1,failState:B};if(j===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:B};throw j}}setOptionalParametersError(J,X){J.optionalParametersLoc=X?.loc??this.startLoc}reScan_lt_gt(){if(this.type===K.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:J}=this;if(J===K.bitShift)return this.pos-=2,this.finishOp(K.relational,1),K.relational;return J}resetEndLocation(J,X=this.lastTokEnd,z=this.lastTokEndLoc){if(J.end=X,J.loc.end=z,this.options.ranges)J.range[1]=X}startNodeAtNode(J){return super.startNodeAt(J.start,J.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(J,X){return X.some((z)=>{if(a2(z))return J.accessibility===z;return!!J[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(J){J.forEach((X)=>{if(X?.type==="TSTypeCastExpression")this.raise(X.typeAnnotation.start,E.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(J){return J.type==="Identifier"&&J.name==="async"&&this.lastTokEnd===J.end&&!this.canInsertSemicolon()&&J.end-J.start===5&&J.start===this.potentialArrowAt}tsIsIdentifier(){return f(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(J,X,z){if(!this.tsMatchLeftRelational())return;let j=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let B=this.tsTryParseAndCatch(()=>{let L=this.startNodeAt(J,X);return L.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(L),L.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),L});if(this.maybeInArrowParameters=j,!B)return;return super.parseArrowExpression(B,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(J){let X=this.context;this.context=[X[0]];try{return J()}finally{this.context=X}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(J,X){let z=J+X.length;if(this.input.slice(J,z)===X){let j=this.input.charCodeAt(z);return!(M(j)||(j&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(F.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(J){return c9.lastIndex=J,c9.test(this.input)?c9.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(J,X){for(let z of Object.keys(J))if(J[z]!==X[z])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(J){this.pos=J.pos,this.value=J.value,this.endLoc=J.endLoc,this.lastTokEnd=J.lastTokEnd,this.lastTokStart=J.lastTokStart,this.lastTokStartLoc=J.lastTokStartLoc,this.type=J.type,this.start=J.start,this.end=J.end,this.context=J.context,this.startLoc=J.startLoc,this.lastTokEndLoc=J.lastTokEndLoc,this.curLine=J.curLine,this.lineStart=J.lineStart,this.curPosition=J.curPosition,this.containsEsc=J.containsEsc}tsLookAhead(J){let X=this.getCurLookaheadState(),z=J();return this.setLookaheadState(X),z}lookahead(J){let X=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,J!==void 0)for(let j=0;j<J;j++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(X),z}readWord(){let J=this.readWord1(),X=K.name;if(this.keywords.test(J))X=W[J];else if(new RegExp(w).test(J))X=F[J];return this.finishToken(X,J)}skipBlockComment(){let J;if(!this.isLookahead)J=this.options.onComment&&this.curPosition();let X=this.pos,z=this.input.indexOf("*/",this.pos+=2);if(z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=z+2,this.options.locations)for(let j,B=X;(j=Z8(this.input,B,this.pos))>-1;)++this.curLine,B=this.lineStart=j;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(X+2,z),X,this.pos,J,this.curPosition())}skipLineComment(J){let X=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let j=this.input.charCodeAt(this.pos+=J);while(this.pos<this.input.length&&!O(j))j=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(X+J,this.pos),X,this.pos,z,this.curPosition())}finishToken(J,X){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let z=this.type;if(this.type=J,this.value=X,!this.isLookahead)this.updateContext(z)}resetStartLocation(J,X,z){if(J.start=X,J.loc.start=z,this.options.ranges)J.range[0]=X}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return p2.lastIndex=this.end,p2.test(this.input)}addExtra(J,X,z,j=!0){if(!J)return;let B=J.extra=J.extra||{};if(j)B[X]=z;else Object.defineProperty(B,X,{enumerable:j,value:z})}isLiteralPropertyName(){return N(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(J,X){return J.name=X,this.finishNode(J,"Identifier")}resetStartLocationFromNode(J,X){this.resetStartLocation(J,X.start,X.loc.start)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}isLookaheadContextual(J){let X=this.nextTokenStart();return this.isUnparsedContextual(X,J)}ts_type_isContextual(J,X){return J===X&&!this.containsEsc}ts_isContextual(J){return this.type===J&&!this.containsEsc}ts_isContextualWithState(J,X){return J.type===X&&!J.containsEsc}isContextualWithState(J,X){return X.type===K.name&&X.value===J&&!X.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(F.readonly);if(this.ts_isContextual(F.readonly))this.next();if(!this.match(K.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(K._in)}tsInDisallowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(J){return this.type===J}matchJsx(J){return this.type===V.tokTypes[J]}ts_eatWithState(J,X,z){let j=z.type;if(J===j){for(let B=0;B<X;B++)this.next();return!0}else return!1}ts_eatContextualWithState(J,X,z){if(w.test(J)){if(this.ts_isContextualWithState(z,F[J])){for(let j=0;j<X;j++)this.next();return!0}return!1}else{if(!this.isContextualWithState(J,z))return!1;for(let j=0;j<X;j++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(J){if(w.test(J)){if(this.ts_isContextual(F[J]))return this.next(),!0;return!1}else return super.eatContextual(J)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let J=this.startNode();if(this.expectContextual("require"),this.expect(K.parenL),!this.match(K.string))this.unexpected();return J.expression=this.parseExprAtom(),this.expect(K.parenR),this.finishNode(J,"TSExternalModuleReference")}tsParseEntityName(J=!0){let X=this.parseIdent(J);while(this.eat(K.dot)){let z=this.startNodeAtNode(X);z.left=X,z.right=this.parseIdent(J),X=this.finishNode(z,"TSQualifiedName")}return X}tsParseEnumMember(){let J=this.startNode();if(J.id=this.match(K.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(K.eq))J.initializer=this.parseMaybeAssign();return this.finishNode(J,"TSEnumMember")}tsParseEnumDeclaration(J,X={}){if(X.const)J.const=!0;if(X.declare)J.declare=!0;return this.expectContextual("enum"),J.id=this.parseIdent(),this.checkLValSimple(J.id),this.expect(K.braceL),J.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(K.braceR),this.finishNode(J,"TSEnumDeclaration")}tsParseModuleBlock(){let J=this.startNode();this.enterScope(UQ),this.expect(K.braceL),J.body=[];while(this.type!==K.braceR){let X=this.parseStatement(null,!0);J.body.push(X)}return this.next(),super.exitScope(),this.finishNode(J,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(J){if(this.ts_isContextual(F.global))J.global=!0,J.id=this.parseIdent();else if(this.match(K.string))J.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(K.braceL))this.enterScope(x1),J.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsTryParseDeclare(J){if(this.isLineTerminator())return;let X=this.type,z;if(this.isContextual("let"))X=K._var,z="let";return this.tsInAmbientContext(()=>{if(X===K._function)return J.declare=!0,this.parseFunctionStatement(J,!1,!0);if(X===K._class)return J.declare=!0,this.parseClass(J,!0);if(X===F.enum)return this.tsParseEnumDeclaration(J,{declare:!0});if(X===F.global)return this.tsParseAmbientExternalModuleDeclaration(J);if(X===K._const||X===K._var){if(!this.match(K._const)||!this.isLookaheadContextual("enum"))return J.declare=!0,this.parseVarStatement(J,z||this.value,!0);return this.expect(K._const),this.tsParseEnumDeclaration(J,{const:!0,declare:!0})}if(X===F.interface){let j=this.tsParseInterfaceDeclaration(J,{declare:!0});if(j)return j}if(f(X))return this.tsParseDeclaration(J,this.value,!0)})}tsIsListTerminator(J){switch(J){case"EnumMembers":case"TypeMembers":return this.match(K.braceR);case"HeritageClauseElement":return this.match(K.braceL);case"TupleElementTypes":return this.match(K.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(J,X,z,j){let B=[],L=-1;for(;;){if(this.tsIsListTerminator(J))break;L=-1;let A=X();if(A==null)return;if(B.push(A),this.eat(K.comma)){L=this.lastTokStart;continue}if(this.tsIsListTerminator(J))break;if(z)this.expect(K.comma);return}if(j)j.value=L;return B}tsParseDelimitedList(J,X,z){return vQ(this.tsParseDelimitedListWorker(J,X,!0,z))}tsParseBracketedList(J,X,z,j,B){if(!j)if(z)this.expect(K.bracketL);else this.expect(K.relational);let L=this.tsParseDelimitedList(J,X,B);if(z)this.expect(K.bracketR);else this.expect(K.relational);return L}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(J){return!this.match(J)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(J){return this.tsDoThenParseType(()=>this.expect(J))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(J){return this.tsInType(()=>{return J(),this.tsParseType()})}tsSkipParameterStart(){if(f(this.type)||this.match(K._this))return this.next(),!0;if(this.match(K.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(K.bracketL)){this.next();try{return this.parseBindingList(K.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(K.parenR)||this.match(K.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(K.colon)||this.match(K.comma)||this.match(K.question)||this.match(K.eq))return!0;if(this.match(K.parenR)){if(this.next(),this.match(K.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(K.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(J){let X=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.inDisallowConditionalTypesContext=X}}tsParseBindingListForSignature(){return super.parseBindingList(K.parenR,!0,!0).map((J)=>{if(J.type!=="Identifier"&&J.type!=="RestElement"&&J.type!=="ObjectPattern"&&J.type!=="ArrayPattern")this.raise(J.start,E.UnsupportedSignatureParameterKind({type:J.type}));return J})}tsParseTypePredicateAsserts(){if(this.type!==F.asserts)return!1;let J=this.containsEsc;if(this.next(),!f(this.type)&&!this.match(K._this))return!1;if(J)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let J=this.startNode();return this.next(),this.finishNode(J,"TSThisType")}tsParseTypeAnnotation(J=!0,X=this.startNode()){return this.tsInType(()=>{if(J)this.expect(K.colon);X.typeAnnotation=this.tsParseType()}),this.finishNode(X,"TSTypeAnnotation")}tsParseThisTypePredicate(J){this.next();let X=this.startNodeAtNode(J);return X.parameterName=J,X.typeAnnotation=this.tsParseTypeAnnotation(!1),X.asserts=!1,this.finishNode(X,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let J=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(J);else return J}tsParseTypePredicatePrefix(){let J=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),J}tsParseTypeOrTypePredicateAnnotation(J){return this.tsInType(()=>{let X=this.startNode();this.expect(J);let z=this.startNode(),j=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(j&&this.match(K._this)){let A=this.tsParseThisTypeOrThisTypePredicate();if(A.type==="TSThisType")z.parameterName=A,z.asserts=!0,z.typeAnnotation=null,A=this.finishNode(z,"TSTypePredicate");else this.resetStartLocationFromNode(A,z),A.asserts=!0;return X.typeAnnotation=A,this.finishNode(X,"TSTypeAnnotation")}let B=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!B){if(!j)return this.tsParseTypeAnnotation(!1,X);return z.parameterName=this.parseIdent(),z.asserts=j,z.typeAnnotation=null,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")}let L=this.tsParseTypeAnnotation(!1);return z.parameterName=B,z.typeAnnotation=L,z.asserts=j,X.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(X,"TSTypeAnnotation")})}tsFillSignature(J,X){let z=J===K.arrow,j="parameters",B="typeAnnotation";if(X.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),X.parameters=this.tsParseBindingListForSignature(),z)X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))X.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J)}tsTryNextParseConstantContext(){if(this.lookahead().type!==K._const)return null;this.next();let J=this.tsParseTypeReference();if(J.typeParameters||J.typeArguments)this.raise(J.typeName.start,E.CannotFindName({name:"const"}));return J}tsParseFunctionOrConstructorType(J,X){let z=this.startNode();if(J==="TSConstructorType"){if(z.abstract=!!X,X)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,z)),this.finishNode(z,J)}tsParseUnionOrIntersectionType(J,X,z){let j=this.startNode(),B=this.eat(z),L=[];do L.push(X());while(this.eat(z));if(L.length===1&&!B)return L[0];return j.types=L,this.finishNode(j,J)}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.start,E.UnexpectedReadonly)}}tsParseTypeOperator(){let J=this.startNode(),X=this.value;if(this.next(),J.operator=X,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),X==="readonly")this.tsCheckTypeAnnotationForReadOnly(J);return this.finishNode(J,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(K._extends)){let J=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(K.question))return J}}tsParseInferType(){let J=this.startNode();this.expectContextual("infer");let X=this.startNode();return X.name=this.tsParseTypeParameterName(),X.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(X,"TSTypeParameter"),this.finishNode(J,"TSInferType")}tsParseLiteralTypeNode(){let J=this.startNode();return J.literal=(()=>{switch(this.type){case K.num:case K.string:case K._true:case K._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(J,"TSLiteralType")}tsParseImportType(){let J=this.startNode();if(this.expect(K._import),this.expect(K.parenL),!this.match(K.string))this.raise(this.start,E.UnsupportedImportTypeArgument);if(J.argument=this.parseExprAtom(),this.expect(K.parenR),this.eat(K.dot))J.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSImportType")}tsParseTypeQuery(){let J=this.startNode();if(this.expect(K._typeof),this.match(K._import))J.exprName=this.tsParseImportType();else J.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeQuery")}tsParseMappedTypeParameter(){let J=this.startNode();return J.name=this.tsParseTypeParameterName(),J.constraint=this.tsExpectThenParseType(K._in),this.finishNode(J,"TSTypeParameter")}tsParseMappedType(){let J=this.startNode();if(this.expect(K.braceL),this.match(K.plusMin))J.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))J.readonly=!0;if(this.expect(K.bracketL),J.typeParameter=this.tsParseMappedTypeParameter(),J.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(K.bracketR),this.match(K.plusMin))J.optional=this.value,this.next(),this.expect(K.question);else if(this.eat(K.question))J.optional=!0;return J.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(K.braceR),this.finishNode(J,"TSMappedType")}tsParseTypeLiteral(){let J=this.startNode();return J.members=this.tsParseObjectTypeMembers(),this.finishNode(J,"TSTypeLiteral")}tsParseTupleElementType(){let J=this.startLoc,X=this.start,z=this.eat(K.ellipsis),j=this.tsParseType(),B=this.eat(K.question);if(this.eat(K.colon)){let A=this.startNodeAtNode(j);if(A.optional=B,j.type==="TSTypeReference"&&!j.typeArguments&&j.typeName.type==="Identifier")A.label=j.typeName;else this.raise(j.start,E.InvalidTupleMemberLabel),A.label=j;A.elementType=this.tsParseType(),j=this.finishNode(A,"TSNamedTupleMember")}else if(B){let A=this.startNodeAtNode(j);A.typeAnnotation=j,j=this.finishNode(A,"TSOptionalType")}if(z){let A=this.startNodeAt(X,J);A.typeAnnotation=j,j=this.finishNode(A,"TSRestType")}return j}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let X=!1;return J.elementTypes.forEach((z)=>{let{type:j}=z;if(X&&j!=="TSRestType"&&j!=="TSOptionalType"&&!(j==="TSNamedTupleMember"&&z.optional))this.raise(z.start,E.OptionalTypeBeforeRequired);if(X||=j==="TSNamedTupleMember"&&z.optional||j==="TSOptionalType",j==="TSRestType")z=z.typeAnnotation}),this.finishNode(J,"TSTupleType")}tsParseTemplateLiteralType(){let J=this.startNode();return J.literal=this.parseTemplate({isTagged:!1}),this.finishNode(J,"TSLiteralType")}tsParseTypeReference(){let J=this.startNode();if(J.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())J.typeArguments=this.tsParseTypeArguments();return this.finishNode(J,"TSTypeReference")}tsMatchLeftRelational(){return this.match(K.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(K.relational)&&this.value===">"}tsParseParenthesizedType(){let J=this.startNode();return this.expect(K.parenL),J.typeAnnotation=this.tsParseType(),this.expect(K.parenR),this.finishNode(J,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case K.string:case K.num:case K._true:case K._false:return this.tsParseLiteralTypeNode();case K.plusMin:if(this.value==="-"){let J=this.startNode();if(this.lookahead().type!==K.num)this.unexpected();return J.literal=this.parseMaybeUnary(),this.finishNode(J,"TSLiteralType")}break;case K._this:return this.tsParseThisTypeOrThisTypePredicate();case K._typeof:return this.tsParseTypeQuery();case K._import:return this.tsParseImportType();case K.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case K.bracketL:return this.tsParseTupleType();case K.parenL:return this.tsParseParenthesizedType();case K.backQuote:case K.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:J}=this;if(f(J)||J===K._void||J===K._null){let X=J===K._void?"TSVoidKeyword":J===K._null?"TSNullKeyword":hQ(this.value);if(X!==void 0&&this.lookaheadCharCode()!==46){let z=this.startNode();return this.next(),this.finishNode(z,X)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let X=this.startNodeAtNode(J);X.elementType=J,this.expect(K.bracketR),J=this.finishNode(X,"TSArrayType")}else{let X=this.startNodeAtNode(J);X.objectType=J,X.indexType=this.tsParseType(),this.expect(K.bracketR),J=this.finishNode(X,"TSIndexedAccessType")}return J}tsParseTypeOperatorOrHigher(){return x(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),K.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),K.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(K._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){n2(this.inType);let J=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return J;let X=this.startNodeAtNode(J);return X.checkType=J,X.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(K.question),X.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(K.colon),X.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(X,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),f(this.type))return this.next(),this.match(K.colon);return!1}tsInType(J){let X=this.inType;this.inType=!0;try{return J()}finally{this.inType=X}}tsTryParseIndexSignature(J){if(!(this.match(K.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(K.bracketL);let X=this.parseIdent();X.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(X),this.expect(K.bracketR),J.parameters=[X];let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z;return this.tsParseTypeMemberSemicolon(),this.finishNode(J,"TSIndexSignature")}tsParseNoneModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(J=this.tsParseNoneModifiers.bind(this)){let X=this.startNode();return J(X),X.name=this.tsParseTypeParameterName(),X.constraint=this.tsEatThenParseType(K._extends),X.default=this.tsEatThenParseType(K.eq),this.finishNode(X,"TSTypeParameter")}tsParseTypeParameters(J){let X=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let z={value:-1};if(X.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,J),!1,!0,z),X.params.length===0)this.raise(this.start,E.EmptyTypeParameters);if(z.value!==-1)this.addExtra(X,"trailingComma",z.value);return this.finishNode(X,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(J){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(J)}tsTryParse(J){let X=this.getCurLookaheadState(),z=J();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(X);return}}tsTokenCanFollowModifier(){return(this.match(K.bracketL)||this.match(K.braceL)||this.match(K.star)||this.match(K.ellipsis)||this.match(K.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(J,X){let z=this.value;if(J.indexOf(z)!==-1&&!this.containsEsc){if(X&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:J,map:X}){for(let z of Object.keys(X))J[z]=X[z]}tsParseModifiers({modified:J,allowedModifiers:X,disallowedModifiers:z,stopOnStartOfClassStaticBlock:j,errorTemplate:B=E.InvalidModifierOnTypeMember}){let L={},A=(S,I,h,c)=>{if(I===h&&J[c])this.raise(S.column,E.InvalidModifiersOrder({orderedModifiers:[h,c]}))},D=(S,I,h,c)=>{if(J[h]&&I===c||J[c]&&I===h)this.raise(S.column,E.IncompatibleModifiers({modifiers:[h,c]}))};for(;;){let S=this.startLoc,I=this.tsParseModifier(X.concat(z??[]),j);if(!I)break;if(a2(I))if(J.accessibility)this.raise(this.start,E.DuplicateAccessibilityModifier());else A(S,I,I,"override"),A(S,I,I,"static"),A(S,I,I,"readonly"),A(S,I,I,"accessor"),L.accessibility=I,J.accessibility=I;else if(TQ(I))if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else A(S,I,"in","out"),L[I]=I,J[I]=!0;else if(NQ(I))if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else D(S,I,"accessor","readonly"),D(S,I,"accessor","static"),D(S,I,"accessor","override"),L[I]=I,J[I]=!0;else if(I==="const")if(J[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else L[I]=I,J[I]=!0;else if(Object.hasOwnProperty.call(J,I))this.raise(this.start,E.DuplicateModifier({modifier:I}));else A(S,I,"static","readonly"),A(S,I,"static","override"),A(S,I,"override","readonly"),A(S,I,"abstract","override"),D(S,I,"declare","override"),D(S,I,"static","abstract"),L[I]=I,J[I]=!0;if(z?.includes(I))this.raise(this.start,B)}return L}tsParseInOutModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:E.InvalidModifierOnTypeParameter})}parseMaybeUnary(J,X,z,j){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(J,X,z,j)}tsParseTypeAssertion(){if(Z)this.raise(this.start,E.ReservedTypeAssertion);let J=this.tryParse(()=>{let X=this.startNode(),z=this.tsTryNextParseConstantContext();return X.typeAnnotation=z||this.tsNextThenParseType(),this.expect(K.relational),X.expression=this.parseMaybeUnary(),this.finishNode(X,"TSTypeAssertion")});if(J.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return J.node}tsParseTypeArguments(){let J=this.startNode();if(J.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(K.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),J.params.length===0)this.raise(this.start,E.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(J,"TSTypeParameterInstantiation")}tsParseHeritageClause(J){let X=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let j=this.startNode();if(j.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())j.typeParameters=this.tsParseTypeArguments();return this.finishNode(j,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(X,E.EmptyHeritageClauseType({token:J}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(J){let X=this.tryParse((z)=>J()||z());if(X.aborted||!X.node)return;if(X.error)this.setLookaheadState(X.failState);return X.node}tsParseSignatureMember(J,X){return this.tsFillSignature(K.colon,X),this.tsParseTypeMemberSemicolon(),this.finishNode(X,J)}tsParsePropertyOrMethodSignature(J,X){if(this.eat(K.question))J.optional=!0;let z=J;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(X)this.raise(J.start,E.ReadonlyForMethodSignature);let j=z;if(j.kind&&this.tsMatchLeftRelational())this.raise(this.start,E.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,j),this.tsParseTypeMemberSemicolon();let B="parameters",L="typeAnnotation";if(j.kind==="get"){if(j[B].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(j[B][0]))this.raise(this.start,E.AccesorCannotDeclareThisParameter)}}else if(j.kind==="set"){if(j[B].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let A=j[B][0];if(this.isThisParam(A))this.raise(this.start,E.AccesorCannotDeclareThisParameter);if(A.type==="Identifier"&&A.optional)this.raise(this.start,E.SetAccesorCannotHaveOptionalParameter);if(A.type==="RestElement")this.raise(this.start,E.SetAccesorCannotHaveRestParameter)}if(j[L])this.raise(j[L].start,E.SetAccesorCannotHaveReturnType)}else j.kind="method";return this.finishNode(j,"TSMethodSignature")}else{let j=z;if(X)j.readonly=!0;let B=this.tsTryParseTypeAnnotation();if(B)j.typeAnnotation=B;return this.tsParseTypeMemberSemicolon(),this.finishNode(j,"TSPropertySignature")}}tsParseTypeMember(){let J=this.startNode();if(this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",J);if(this.match(K._new)){let z=this.startNode();if(this.next(),this.match(K.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",J);else return J.key=this.createIdentifier(z,"new"),this.tsParsePropertyOrMethodSignature(J,!1)}this.tsParseModifiers({modified:J,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let X=this.tsTryParseIndexSignature(J);if(X)return X;if(this.parsePropertyName(J),!J.computed&&J.key.type==="Identifier"&&(J.key.name==="get"||J.key.name==="set")&&this.tsTokenCanFollowModifier())J.kind=J.key.name,this.parsePropertyName(J);return this.tsParsePropertyOrMethodSignature(J,!!J.readonly)}tsParseList(J,X){let z=[];while(!this.tsIsListTerminator(J))z.push(X());return z}tsParseObjectTypeMembers(){this.expect(K.braceL);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),J}tsParseInterfaceDeclaration(J,X={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),X.declare)J.declare=!0;if(f(this.type))J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_INTERFACE);else J.id=null,this.raise(this.start,E.MissingInterfaceName);if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(K._extends))J.extends=this.tsParseHeritageClause("extends");let z=this.startNode();return z.body=this.tsParseInterfaceBody(),J.body=this.finishNode(z,"TSInterfaceBody"),this.finishNode(J,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(K.braceL);let J=this.inType;this.inType=!0;let X=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=J,this.expect(K.braceR),X}tsParseAbstractDeclaration(J){if(this.match(K._class))return J.abstract=!0,this.parseClass(J,!0);else if(this.ts_isContextual(F.interface)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.tsParseInterfaceDeclaration(J)}else this.unexpected(J.start)}tsIsDeclarationStart(){return g(this.type)}tsParseExpressionStatement(J,X){switch(X.name){case"declare":{let z=this.tsTryParseDeclare(J);if(z)return z.declare=!0,z;break}case"global":if(this.match(K.braceL)){this.enterScope(x1);let z=J;return z.global=!0,z.id=X,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,X.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:J}=this,X=this.isAsyncFunction(),z=this.isLet();if(f(J)){if(X&&!this.containsEsc||z)return!1;if((J===F.type||J===F.interface)&&!this.containsEsc){let L=this.lookahead();if(f(L.type)&&!this.isContextualWithState("from",L)||L.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let j=this.nextTokenStart(),B=this.isUnparsedContextual(j,"from");if(this.input.charCodeAt(j)===44||f(this.type)&&B)return!0;if(this.match(K._default)&&B){let L=this.input.charCodeAt(this.nextTokenStartSince(j+4));return L===34||L===39}return!1}tsInAmbientContext(J){let X=this.isAmbientContext;this.isAmbientContext=!0;try{return J()}finally{this.isAmbientContext=X}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(J,X=!1){if(J.id=this.parseIdent(),!X)this.checkLValSimple(J.id,q8.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),J.body=z}else this.enterScope(x1),J.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(J,"TSModuleDeclaration")}checkLValSimple(J,X=q8.BIND_NONE,z){if(J.type==="TSNonNullExpression"||J.type==="TSAsExpression")J=J.expression;return super.checkLValSimple(J,X,z)}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_TS_TYPE),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(F.interface)&&this.lookahead().type!==K.dot){let X=this.startNode();return this.next(),this.finishNode(X,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsParseDeclaration(J,X,z){switch(X){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(K._class)||f(this.type)))return this.tsParseAbstractDeclaration(J);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(J);else if(f(this.type))return this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseTypeAliasDeclaration(J);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(J,X){J.isExport=X||!1,J.id=this.parseIdent(),this.checkLValSimple(J.id,q8.BIND_LEXICAL),super.expect(K.eq);let z=this.tsParseModuleReference();if(J.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,E.ImportAliasHasImportType);return J.moduleReference=z,super.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:J}=this;if(f(J)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((J===F.type||J===F.interface)&&!this.containsEsc){let j=this.lookahead();if(f(j.type)&&!this.isContextualWithState("from",j)||j.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let X=this.nextTokenStart(),z=this.isUnparsedContextual(X,"from");if(this.input.charCodeAt(X)===44||f(this.type)&&z)return!0;if(this.match(K._default)&&z){let j=this.input.charCodeAt(this.nextTokenStartSince(X+4));return j===34||j===39}return!1}parseTemplate({isTagged:J=!1}={}){let X=this.startNode();this.next(),X.expressions=[];let z=this.parseTemplateElement({isTagged:J});X.quasis=[z];while(!z.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),X.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(K.braceR),X.quasis.push(z=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(X,"TemplateLiteral")}parseFunction(J,X,z,j,B){if(this.initFunction(J),this.ecmaVersion>=9||this.ecmaVersion>=6&&!j){if(this.type===K.star&&X&s2)this.unexpected();J.generator=this.eat(K.star)}if(this.ecmaVersion>=8)J.async=!!j;if(X&N0)J.id=X&bQ&&this.type!==K.name?null:this.parseIdent();let L=this.yieldPos,A=this.awaitPos,D=this.awaitIdentPos,S=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(J.async,J.generator)),!(X&N0))J.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(J);let I=X&N0;if(this.parseFunctionBody(J,z,!1,B,{isFunctionDeclaration:I}),this.yieldPos=L,this.awaitPos=A,this.awaitIdentPos=D,X&N0&&J.id&&!(X&s2))if(J.body)this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?q8.BIND_VAR:q8.BIND_LEXICAL:q8.BIND_FUNCTION);else this.checkLValSimple(J.id,q8.BIND_NONE);return this.maybeInArrowParameters=S,this.finishNode(J,I?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(J,X=!1,z=!1,j=!1,B){if(this.match(K.colon))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let L=B?.isFunctionDeclaration?"TSDeclareFunction":B?.isClassMethod?"TSDeclareMethod":void 0;if(L&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(J,L);if(L==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(J.start,E.DeclareFunctionHasImplementation),J.declare)return super.parseFunctionBody(J,X,z,!1),this.finishNode(J,L)}return super.parseFunctionBody(J,X,z,j),J}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let J=this.startNode(),X=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){J.meta=X;let A=this.containsEsc;if(J.property=this.parseIdent(!0),J.property.name!=="target")this.raiseRecoverable(J.property.start,"The only valid meta property for new is 'new.target'");if(A)this.raiseRecoverable(J.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(J.start,"'new.target' can only be used in functions and class static block");return this.finishNode(J,"MetaProperty")}let z=this.start,j=this.startLoc,B=this.type===K._import;if(J.callee=this.parseSubscripts(this.parseExprAtom(),z,j,!0,!1),B&&J.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:L}=J;if(L.type==="TSInstantiationExpression"&&!L.extra?.parenthesized)J.typeArguments=L.typeArguments,J.callee=L.expression;if(this.eat(K.parenL))J.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1);else J.arguments=[];return this.finishNode(J,"NewExpression")}parseExprOp(J,X,z,j,B){if(K._in.binop>j&&!this.hasPrecedingLineBreak()){let L;if(this.isContextual("as"))L="TSAsExpression";if(this.isContextual("satisfies"))L="TSSatisfiesExpression";if(L){let A=this.startNodeAt(X,z);A.expression=J;let D=this.tsTryNextParseConstantContext();if(D)A.typeAnnotation=D;else A.typeAnnotation=this.tsNextThenParseType();return this.finishNode(A,L),this.reScan_lt_gt(),this.parseExprOp(A,X,z,j,B)}}return super.parseExprOp(J,X,z,j,B)}parseImportSpecifiers(){let J=[],X=!0;if(V.tokenIsIdentifier(this.type)){if(J.push(this.parseImportDefaultSpecifier()),!this.eat(K.comma))return J}if(this.type===K.star)return J.push(this.parseImportNamespaceSpecifier()),J;this.expect(K.braceL);while(!this.eat(K.braceR)){if(!X){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else X=!1;J.push(this.parseImportSpecifier())}return J}parseImport(J){let X=this.lookahead();if(J.importKind="value",this.importOrExportOuterKind="value",f(X.type)||this.match(K.star)||this.match(K.braceL)){let z=this.lookahead(2);if(z.type!==K.comma&&!this.isContextualWithState("from",z)&&z.type!==K.eq&&this.ts_eatContextualWithState("type",1,X))this.importOrExportOuterKind="type",J.importKind="type",X=this.lookahead(),z=this.lookahead(2);if(f(X.type)&&z.type===K.eq){this.next();let j=this.tsParseImportEqualsDeclaration(J);return this.importOrExportOuterKind="value",j}}if(this.next(),this.type===K.string)J.specifiers=[],J.source=this.parseExprAtom();else J.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),J.source=this.type===K.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ImportDeclaration"),this.importOrExportOuterKind="value",J.importKind==="type"&&J.specifiers.length>1&&J.specifiers[0].type==="ImportDefaultSpecifier")this.raise(J.start,E.TypeImportCannotSpecifyDefaultAndNamed);return J}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0)}if(this.match(F.interface)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(J,X){if(this.ecmaVersion>=11)if(this.eatContextual("as"))J.exported=this.parseModuleExportName(),this.checkExport(X,J.exported,this.lastTokStart);else J.exported=null;if(this.expectContextual("from"),this.type!==K.string)this.unexpected();return J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J),this.semicolon(),this.finishNode(J,"ExportAllDeclaration")}parseDynamicImport(J){if(this.next(),J.source=this.parseMaybeAssign(),this.eat(K.comma)){let X=this.parseExpression();J.arguments=[X]}if(!this.eat(K.parenR)){let X=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(X,"Trailing comma is not allowed in import()");else this.unexpected(X)}return this.finishNode(J,"ImportExpression")}parseExport(J,X){let z=this.lookahead();if(this.ts_eatWithState(K._import,2,z)){if(this.ts_isContextual(F.type)&&this.lookaheadCharCode()!==61)J.importKind="type",this.importOrExportOuterKind="type",this.next();else J.importKind="value",this.importOrExportOuterKind="value";let j=this.tsParseImportEqualsDeclaration(J,!0);return this.importOrExportOuterKind=void 0,j}else if(this.ts_eatWithState(K.eq,2,z)){let j=J;return j.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(j,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let j=J;return this.expectContextual("namespace"),j.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(j,"TSNamespaceExportDeclaration")}else{let j=this.lookahead(2).type;if(this.ts_isContextualWithState(z,F.type)&&(j===K.braceL||j===K.star))this.next(),this.importOrExportOuterKind="type",J.exportKind="type";else this.importOrExportOuterKind="value",J.exportKind="value";if(this.next(),this.eat(K.star))return this.parseExportAllDeclaration(J,X);if(this.eat(K._default))return this.checkExport(X,"default",this.lastTokStart),J.declaration=this.parseExportDefaultDeclaration(),this.finishNode(J,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(J.declaration=this.parseExportDeclaration(J),J.declaration.type==="VariableDeclaration")this.checkVariableExport(X,J.declaration.declarations);else this.checkExport(X,J.declaration.id,J.declaration.id.start);J.specifiers=[],J.source=null}else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(X),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J)}else{for(let B of J.specifiers)if(this.checkUnreserved(B.local),this.checkLocalExport(B.local),B.local.type==="Literal")this.raise(B.local.start,"A string literal cannot be used as an exported binding without `from`.");J.source=null}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")}}checkExport(J,X,z){if(!J)return;if(typeof X!=="string")X=X.type==="Identifier"?X.name:X.value;J[X]=!0}parseMaybeDefault(J,X,z){let j=super.parseMaybeDefault(J,X,z);if(j.type==="AssignmentPattern"&&j.typeAnnotation&&j.right.start<j.typeAnnotation.start)this.raise(j.typeAnnotation.start,E.TypeAnnotationAfterAssign);return j}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.end,J.typeAnnotation.loc?.end),J.expression}toAssignableList(J,X){if(!J)J=[];for(let z=0;z<J.length;z++){let j=J[z];if(j?.type==="TSTypeCastExpression")J[z]=this.typeCastToParameter(j)}return super.toAssignableList(J,X)}reportReservedArrowTypeParam(J){if(J.params.length===1&&!J.extra?.trailingComma&&Z)this.raise(J.start,E.ReservedArrowTypeParam)}parseExprAtom(J,X,z){if(this.type===F.jsxText)return this.jsx_parseText();else if(this.type===F.jsxTagStart)return this.jsx_parseElement();else if(this.type===F.at)return this.parseDecorators(),this.parseExprAtom();else if(f(this.type)){let j=this.potentialArrowAt===this.start,B=this.start,L=this.startLoc,A=this.containsEsc,D=this.parseIdent(!1);if(this.ecmaVersion>=8&&!A&&D.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(B,L),0,!1,!0,X);if(j&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(B,L),[D],!1,X);if(this.ecmaVersion>=8&&D.name==="async"&&this.type===K.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(D=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(B,L),[D],!0,X)}}return D}else return super.parseExprAtom(J,X,z)}parseExprAtomDefault(){if(f(this.type)){let J=this.potentialArrowAt===this.start,X=this.containsEsc,z=this.parseIdent();if(!X&&z.name==="async"&&!this.canInsertSemicolon()){let{type:j}=this;if(j===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(f(j))if(this.lookaheadCharCode()===61){let B=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[B],!0)}else return z}if(J&&this.match(K.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(z),[z],!1);return z}else this.unexpected()}parseIdentNode(){let J=this.startNode();if(a(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))J.name=this.value;else return super.parseIdentNode();return J}parseVarStatement(J,X,z=!1){let{isAmbientContext:j}=this;this.next(),super.parseVar(J,!1,X,z||j),this.semicolon();let B=this.finishNode(J,"VariableDeclaration");if(!j)return B;for(let{id:L,init:A}of B.declarations){if(!A)continue;if(X!=="const"||!!L.typeAnnotation)this.raise(A.start,E.InitializerNotAllowedInAmbientContext);else if(A.type!=="StringLiteral"&&A.type!=="BooleanLiteral"&&A.type!=="NumericLiteral"&&A.type!=="BigIntLiteral"&&(A.type!=="TemplateLiteral"||A.expressions.length>0)&&!kQ(A))this.raise(A.start,E.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return B}parseStatement(J,X,z){if(this.match(F.at))this.parseDecorators(!0);if(this.match(K._const)&&this.isLookaheadContextual("enum")){let j=this.startNode();return this.expect(K._const),this.tsParseEnumDeclaration(j,{const:!0})}if(this.ts_isContextual(F.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(F.interface)){let j=this.tsParseInterfaceDeclaration(this.startNode());if(j)return j}return super.parseStatement(J,X,z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(J){if(this.eat(K.question))J.optional=!0;if(J.readonly&&this.match(K.parenL))this.raise(J.start,E.ClassMethodHasReadonly);if(J.declare&&this.match(K.parenL))this.raise(J.start,E.ClassMethodHasDeclare)}parseExpressionStatement(J,X){return(X.type==="Identifier"?this.tsParseExpressionStatement(J,X):void 0)||super.parseExpressionStatement(J,X)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(F.at))return!0;return super.shouldParseExportStatement()}parseConditional(J,X,z,j,B){if(this.eat(K.question)){let L=this.startNodeAt(X,z);return L.test=J,L.consequent=this.parseMaybeAssign(),this.expect(K.colon),L.alternate=this.parseMaybeAssign(j),this.finishNode(L,"ConditionalExpression")}return J}parseMaybeConditional(J,X){let z=this.start,j=this.startLoc,B=this.parseExprOps(J,X);if(this.checkExpressionErrors(X))return B;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(B,z,j,J,X);let L=this.tryParse(()=>this.parseConditional(B,z,j,J,X));if(!L.node){if(L.error)this.setOptionalParametersError(X,L.error);return B}if(L.error)this.setLookaheadState(L.failState);return L.node}parseParenItem(J){let X=this.start,z=this.startLoc;if(J=super.parseParenItem(J),this.eat(K.question))J.optional=!0,this.resetEndLocation(J);if(this.match(K.colon)){let j=this.startNodeAt(X,z);return j.expression=J,j.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(j,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.isAmbientContext&&this.ts_isContextual(F.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let X=this.start,z=this.startLoc,j=this.eatContextual("declare");if(j&&(this.ts_isContextual(F.declare)||!this.shouldParseExportStatement()))this.raise(this.start,E.ExpectedAmbientAfterExportDeclare);let L=f(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!L)return null;if(L.type==="TSInterfaceDeclaration"||L.type==="TSTypeAliasDeclaration"||j)J.exportKind="type";if(j)this.resetStartLocation(L,X,z),L.declare=!0;return L}parseClassId(J,X){if(!X&&this.isContextual("implements"))return;super.parseClassId(J,X);let z=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(z)J.typeParameters=z}parseClassPropertyAnnotation(J){if(!J.optional){if(this.value==="!"&&this.eat(K.prefix))J.definite=!0;else if(this.eat(K.question))J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X}parseClassField(J){if(J.key.type==="PrivateIdentifier"){if(J.abstract)this.raise(J.start,E.PrivateElementHasAbstract);if(J.accessibility)this.raise(J.start,E.PrivateElementHasAccessibility({modifier:J.accessibility}));this.parseClassPropertyAnnotation(J)}else{if(this.parseClassPropertyAnnotation(J),this.isAmbientContext&&!(J.readonly&&!J.typeAnnotation)&&this.match(K.eq))this.raise(this.start,E.DeclareClassFieldHasInitializer);if(J.abstract&&this.match(K.eq)){let{key:z}=J;this.raise(this.start,E.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!J.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(J)}parseClassMethod(J,X,z,j){let B=J.kind==="constructor",L=J.key.type==="PrivateIdentifier",A=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(L){if(A)J.typeParameters=A;if(J.accessibility)this.raise(J.start,E.PrivateMethodsHasAccessibility({modifier:J.accessibility}))}else if(A&&B)this.raise(A.start,E.ConstructorHasTypeParameters);let{declare:D=!1,kind:S}=J;if(D&&(S==="get"||S==="set"))this.raise(J.start,E.DeclareAccessor({kind:S}));if(A)J.typeParameters=A;let I=J.key;if(J.kind==="constructor"){if(X)this.raise(I.start,"Constructor can't be a generator");if(z)this.raise(I.start,"Constructor can't be an async method")}else if(J.static&&o2(J,"prototype"))this.raise(I.start,"Classes may not have a static property named prototype");let h=J.value=this.parseMethod(X,z,j,!0,J);if(J.kind==="get"&&h.params.length!==0)this.raiseRecoverable(h.start,"getter should have no params");if(J.kind==="set"&&h.params.length!==1)this.raiseRecoverable(h.start,"setter should have exactly one param");if(J.kind==="set"&&h.params[0].type==="RestElement")this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params");return this.finishNode(J,"MethodDefinition")}isClassMethod(){return this.match(K.relational)}parseClassElement(J){if(this.eat(K.semi))return null;let X=this.startNode(),z="",j=!1,B=!1,L="method",A=!1,D=["declare","private","public","protected","accessor","override","abstract","readonly","static"],S=this.tsParseModifiers({modified:X,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:E.InvalidModifierOnTypeParameterPositions});A=Boolean(S.static);let I=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(X,D))this.raise(this.start,E.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(X),X}else{let h=this.tsTryParseIndexSignature(X);if(h){if(X.abstract)this.raise(X.start,E.IndexSignatureHasAbstract);if(X.accessibility)this.raise(X.start,E.IndexSignatureHasAccessibility({modifier:X.accessibility}));if(X.declare)this.raise(X.start,E.IndexSignatureHasDeclare);if(X.override)this.raise(X.start,E.IndexSignatureHasOverride);return h}if(!this.inAbstractClass&&X.abstract)this.raise(X.start,E.NonAbstractClassHasAbstractMethod);if(X.override){if(!J)this.raise(X.start,E.OverrideNotInSubClass)}if(X.static=A,A){if(!(this.isClassElementNameStart()||this.type===K.star))z="static"}if(!z&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===K.star)&&!this.canInsertSemicolon())B=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!B)&&this.eat(K.star))j=!0;if(!z&&!B&&!j){let c=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())L=c;else z=c}if(z)X.computed=!1,X.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),X.key.name=z,this.finishNode(X.key,"Identifier");else this.parseClassElementName(X);if(this.parsePostMemberNameModifiers(X),this.isClassMethod()||this.ecmaVersion<13||this.type===K.parenL||L!=="method"||j||B){let c=!X.static&&o2(X,"constructor"),m=c&&J;if(c&&L!=="method")this.raise(X.key.start,"Constructor can't have get/set modifier");X.kind=c?"constructor":L,this.parseClassMethod(X,j,B,m)}else this.parseClassField(X);return X}};if(X.declare)this.tsInAmbientContext(I);else I();return X}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(J){if(super.parseClassSuper(J),J.superClass&&(this.tsMatchLeftRelational()||this.match(K.bitShift)))J.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))J.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(J){let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(X)J.typeParameters=X;super.parseFunctionParams(J)}parseVarId(J,X){if(super.parseVarId(J,X),J.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(K.prefix))J.definite=!0;let z=this.tsTryParseTypeAnnotation();if(z)J.id.typeAnnotation=z,this.resetEndLocation(J.id)}parseArrowExpression(J,X,z,j){if(this.match(K.colon))J.returnType=this.tsParseTypeAnnotation();let B=this.yieldPos,L=this.awaitPos,A=this.awaitIdentPos;this.enterScope(i9(z,!1)|q8.SCOPE_ARROW),this.initFunction(J);let D=this.maybeInArrowParameters;if(this.ecmaVersion>=8)J.async=!!z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,J.params=this.toAssignableList(X,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0,!1,j),this.yieldPos=B,this.awaitPos=L,this.awaitIdentPos=A,this.maybeInArrowParameters=D,this.finishNode(J,"ArrowFunctionExpression")}parseMaybeAssignOrigin(J,X,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(J);else this.exprAllowed=!1;let j=!1,B=-1,L=-1,A=-1;if(X)B=X.parenthesizedAssign,L=X.trailingComma,A=X.doubleProto,X.parenthesizedAssign=X.trailingComma=-1;else X=new u1,j=!0;let D=this.start,S=this.startLoc;if(this.type===K.parenL||f(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await";let I=this.parseMaybeConditional(J,X);if(z)I=z.call(this,I,D,S);if(this.type.isAssign){let h=this.startNodeAt(D,S);if(h.operator=this.value,this.type===K.eq)I=this.toAssignable(I,!0,X);if(!j)X.parenthesizedAssign=X.trailingComma=X.doubleProto=-1;if(X.shorthandAssign>=I.start)X.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(I);else this.checkLValSimple(I);if(h.left=I,this.next(),h.right=this.parseMaybeAssign(J),A>-1)X.doubleProto=A;return this.finishNode(h,"AssignmentExpression")}else if(j)this.checkExpressionErrors(X,!0);if(B>-1)X.parenthesizedAssign=B;if(L>-1)X.trailingComma=L;return I}parseMaybeAssign(J,X,z){let j,B,L;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(j=this.cloneCurLookaheadState(),B=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),j),!B.error)return B.node;let S=this.context,I=S[S.length-1],h=S[S.length-2];if(I===V.tokContexts.tc_oTag&&h===V.tokContexts.tc_expr)S.pop(),S.pop();else if(I===V.tokContexts.tc_oTag||I===V.tokContexts.tc_expr)S.pop()}if(!B?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(J,X,z);if(!j||this.compareLookaheadState(j,this.getCurLookaheadState()))j=this.cloneCurLookaheadState();let A,D=this.tryParse((S)=>{A=this.tsParseTypeParameters(this.tsParseConstModifier);let I=this.parseMaybeAssignOrigin(J,X,z);if(I.type!=="ArrowFunctionExpression"||I.extra?.parenthesized)S();if(A?.params.length!==0)this.resetStartLocationFromNode(I,A);return I.typeParameters=A,I},j);if(!D.error&&!D.aborted){if(A)this.reportReservedArrowTypeParam(A);return D.node}if(!B){if(n2(!0),L=this.tryParse(()=>this.parseMaybeAssignOrigin(J,X,z),j),!L.error)return L.node}if(B?.node)return this.setLookaheadState(B.failState),B.node;if(D.node){if(this.setLookaheadState(D.failState),A)this.reportReservedArrowTypeParam(A);return D.node}if(L?.node)return this.setLookaheadState(L.failState),L.node;if(B?.thrown)throw B.error;if(D.thrown)throw D.error;if(L?.thrown)throw L.error;throw B?.error||D.error||L?.error}parseAssignableListItem(J){let X=[];while(this.match(F.at))X.push(this.parseDecorator());let z=this.start,j=this.startLoc,B,L=!1,A=!1;if(J!==void 0){let I={};if(this.tsParseModifiers({modified:I,allowedModifiers:["public","private","protected","override","readonly"]}),B=I.accessibility,A=I.override,L=I.readonly,J===!1&&(B||L||A))this.raise(j.column,E.UnexpectedParameterModifier)}let D=this.parseMaybeDefault(z,j);this.parseBindingListItem(D);let S=this.parseMaybeDefault(D.start,D.loc.start,D);if(X.length)S.decorators=X;if(B||L||A){let I=this.startNodeAt(z,j);if(B)I.accessibility=B;if(L)I.readonly=L;if(A)I.override=A;if(S.type!=="Identifier"&&S.type!=="AssignmentPattern")this.raise(I.start,E.UnsupportedParameterPropertyKind);return I.parameter=S,this.finishNode(I,"TSParameterProperty")}return S}checkLValInnerPattern(J,X=q8.BIND_NONE,z){switch(J.type){case"TSParameterProperty":this.checkLValInnerPattern(J.parameter,X,z);break;default:{super.checkLValInnerPattern(J,X,z);break}}}parseBindingListItem(J){if(this.eat(K.question)){if(J.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(J.start,E.PatternIsOptional);J.optional=!0}let X=this.tsTryParseTypeAnnotation();if(X)J.typeAnnotation=X;return this.resetEndLocation(J),J}isAssignable(J,X){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,X);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let z=J.properties.length-1;return J.properties.every((j,B)=>{return j.type!=="ObjectMethod"&&(B===z||j.type!=="SpreadElement")&&this.isAssignable(j)})}case"Property":case"ObjectProperty":return this.isAssignable(J.value);case"SpreadElement":return this.isAssignable(J.argument);case"ArrayExpression":return J.elements.every((z)=>z===null||this.isAssignable(z));case"AssignmentExpression":return J.operator==="=";case"ParenthesizedExpression":return this.isAssignable(J.expression);case"MemberExpression":case"OptionalMemberExpression":return!X;default:return!1}}toAssignable(J,X=!1,z=new u1){switch(J.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(J,X,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(X);else this.raise(J.start,E.UnexpectedTypeCastInParameter);return this.toAssignable(J.expression,X,z);case"MemberExpression":break;case"AssignmentExpression":if(!X&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);return super.toAssignable(J,X,z);case"TSTypeCastExpression":return this.typeCastToParameter(J);default:return super.toAssignable(J,X,z)}return J}toAssignableParenthesizedExpression(J,X,z){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(J.expression,X,z);default:return super.toAssignable(J,X,z)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(J){let X;if(this.match(K.colon))X=J.every((z)=>this.isAssignable(z,!0));else X=!this.canInsertSemicolon();if(X){if(this.match(K.colon)){let z=this.tryParse((j)=>{let B=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))j();return B});if(z.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!z.thrown){if(z.error)this.setLookaheadState(z.failState);this.shouldParseArrowReturnType=z.node}}if(!this.match(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,X}parseParenArrowList(J,X,z,j){let B=this.startNodeAt(J,X);return B.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(B,z,!1,j)}parseParenAndDistinguishExpression(J,X){let z=this.start,j=this.startLoc,B,L=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let A=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let D=this.start,S=this.startLoc,I=[],h=!0,c=!1,m=new u1,n=this.yieldPos,H8=this.awaitPos,b;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(h?h=!1:this.expect(K.comma),L&&this.afterTrailingComma(K.parenR,!0)){c=!0;break}else if(this.type===K.ellipsis){if(b=this.start,I.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else I.push(this.parseMaybeAssign(X,m,this.parseParenItem));let r=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=A,J&&this.shouldParseArrow(I)&&this.eat(K.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=n,this.awaitPos=H8,this.parseParenArrowList(z,j,I,X);if(!I.length||c)this.unexpected(this.lastTokStart);if(b)this.unexpected(b);if(this.checkExpressionErrors(m,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=H8||this.awaitPos,I.length>1)B=this.startNodeAt(D,S),B.expressions=I,this.finishNodeAt(B,"SequenceExpression",r,_);else B=I[0]}else B=this.parseParenExpression();if(this.options.preserveParens){let A=this.startNodeAt(z,j);return A.expression=B,this.finishNode(A,"ParenthesizedExpression")}else return B}parseTaggedTemplateExpression(J,X,z,j){let B=this.startNodeAt(X,z);if(B.tag=J,B.quasi=this.parseTemplate({isTagged:!0}),j)this.raise(X,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(B,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let J=this.tryParse((X)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))X();return z});if(J.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!J.thrown){if(J.error)this.setLookaheadState(J.failState);return this.shouldParseAsyncArrowReturnType=J.node,!this.canInsertSemicolon()&&this.eat(K.arrow)}}else return!this.canInsertSemicolon()&&this.eat(K.arrow)}parseSubscriptAsyncArrow(J,X,z,j){let B=this.startNodeAt(J,X);return B.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(B,z,!0,j)}parseExprList(J,X,z,j){let B=[],L=!0;while(!this.eat(J)){if(!L){if(this.expect(K.comma),X&&this.afterTrailingComma(J))break}else L=!1;let A;if(z&&this.type===K.comma)A=null;else if(this.type===K.ellipsis){if(A=this.parseSpread(j),this.maybeInArrowParameters&&this.match(K.colon))A.typeAnnotation=this.tsParseTypeAnnotation();if(j&&this.type===K.comma&&j.trailingComma<0)j.trailingComma=this.start}else A=this.parseMaybeAssign(!1,j,this.parseParenItem);B.push(A)}return B}parseSubscript(J,X,z,j,B,L,A){let D=L;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let m=this.startNodeAt(X,z);return m.expression=J,J=this.finishNode(m,"TSNonNullExpression"),J}let S=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(j)return J;J.optional=!0,D=S=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let m,n=this.tsTryParseAndCatch(()=>{if(!j&&this.atPossibleAsyncArrow(J)){let _=this.tsTryParseGenericAsyncArrowFunction(X,z,A);if(_)return J=_,J}let H8=this.tsParseTypeArgumentsInExpression();if(!H8)return J;if(S&&!this.match(K.parenL))return m=this.curPosition(),J;if(v(this.type)||this.type===K.backQuote){let _=this.parseTaggedTemplateExpression(J,X,z,D);return _.typeArguments=H8,_}if(!j&&this.eat(K.parenL)){let _=new u1,s=this.startNodeAt(X,z);if(s.callee=J,s.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,_),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeArguments=H8,D)s.optional=S;return this.checkExpressionErrors(_,!0),J=this.finishNode(s,"CallExpression"),J}let b=this.type;if(this.tsMatchRightRelational()||b===K.bitShift||b!==K.parenL&&EQ(b)&&!this.hasPrecedingLineBreak())return;let r=this.startNodeAt(X,z);return r.expression=J,r.typeArguments=H8,this.finishNode(r,"TSInstantiationExpression")});if(m)this.unexpected(m);if(n){if(n.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,E.InvalidPropertyAccessAfterInstantiationExpression);return J=n,J}}let I=this.ecmaVersion>=11,h=I&&this.eat(K.questionDot);if(j&&h)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let c=this.eat(K.bracketL);if(c||h&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let m=this.startNodeAt(X,z);if(m.object=J,c)m.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&J.type!=="Super")m.property=this.parsePrivateIdent();else m.property=this.parseIdent(this.options.allowReserved!=="never");if(m.computed=!!c,I)m.optional=h;J=this.finishNode(m,"MemberExpression")}else if(!j&&this.eat(K.parenL)){let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let n=new u1,H8=this.yieldPos,b=this.awaitPos,r=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let _=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,n);if(B&&!h&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(n,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=H8,this.awaitPos=b,this.awaitIdentPos=r,J=this.parseSubscriptAsyncArrow(X,z,_,A)}else{this.checkExpressionErrors(n,!0),this.yieldPos=H8||this.yieldPos,this.awaitPos=b||this.awaitPos,this.awaitIdentPos=r||this.awaitIdentPos;let s=this.startNodeAt(X,z);if(s.callee=J,s.arguments=_,I)s.optional=h;J=this.finishNode(s,"CallExpression")}this.maybeInArrowParameters=m}else if(this.type===K.backQuote){if(h||D)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let m=this.startNodeAt(X,z);m.tag=J,m.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(m,"TaggedTemplateExpression")}return J}parseGetterSetter(J){J.kind=J.key.name,this.parsePropertyName(J);let X=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(!1),X)J.value.typeParameters=X;let z=J.kind==="get"?0:1,j=J.value.params[0];if(z=j&&this.isThisParam(j)?z+1:z,J.value.params.length!==z){let L=J.value.start;if(J.kind==="get")this.raiseRecoverable(L,"getter should have no params");else this.raiseRecoverable(L,"setter should have exactly one param")}else if(J.kind==="set"&&J.value.params[0].type==="RestElement")this.raiseRecoverable(J.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(J,X,z,j,B,L,A,D){if(this.tsMatchLeftRelational()){if(X)this.unexpected();J.kind="init",J.method=!0;let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(z,j),S)J.value.typeParameters=S;return}return super.parsePropertyValue(J,X,z,j,B,L,A,D)}parseProperty(J,X){if(!J){let z=[];if(this.match(F.at))while(this.match(F.at))z.push(this.parseDecorator());let j=super.parseProperty(J,X);if(j.type==="SpreadElement"){if(z.length)this.raise(j.start,T0.SpreadElementDecorator)}if(z.length)j.decorators=z,z=[];return j}return super.parseProperty(J,X)}parseCatchClauseParam(){let J=this.parseBindingAtom(),X=J.type==="Identifier";this.enterScope(X?q8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(J,X?q8.BIND_SIMPLE_CATCH:q8.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z,this.resetEndLocation(J);return this.expect(K.parenR),J}parseClass(J,X){let z=this.inAbstractClass;this.inAbstractClass=!!J.abstract;try{this.next(),this.takeDecorators(J);let j=this.strict;this.strict=!0,this.parseClassId(J,X),this.parseClassSuper(J);let B=this.enterClassBody(),L=this.startNode(),A=!1;L.body=[];let D=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(F.at)){D.push(this.parseDecorator());continue}let S=this.parseClassElement(J.superClass!==null);if(D.length)S.decorators=D,this.resetStartLocationFromNode(S,D[0]),D=[];if(S){if(L.body.push(S),S.type==="MethodDefinition"&&S.kind==="constructor"&&S.value.type==="FunctionExpression"){if(A)this.raiseRecoverable(S.start,"Duplicate constructor in the same class");if(A=!0,S.decorators&&S.decorators.length>0)this.raise(S.start,T0.DecoratorConstructor)}else if(S.key&&S.key.type==="PrivateIdentifier"&&S.value?.type!=="TSDeclareMethod"&&CQ(B,S))this.raiseRecoverable(S.key.start,`Identifier '#${S.key.name}' has already been declared`)}}if(this.strict=j,this.next(),D.length)this.raise(this.start,T0.TrailingDecorator);return J.body=this.finishNode(L,"ClassBody"),this.exitClassBody(),this.finishNode(J,X?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let J=this.tsTryParseTypeParameters(),X=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(J)X.typeParameters=J;return X}parseMethod(J,X,z,j,B){let L=this.startNode(),A=this.yieldPos,D=this.awaitPos,S=this.awaitIdentPos;if(this.initFunction(L),this.ecmaVersion>=6)L.generator=J;if(this.ecmaVersion>=8)L.async=!!X;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(X,L.generator)|q8.SCOPE_SUPER|(z?q8.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),L.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1,{isClassMethod:j}),this.yieldPos=A,this.awaitPos=D,this.awaitIdentPos=S,B&&B.abstract){if(!!L.body){let{key:h}=B;this.raise(B.start,E.AbstractMethodHasImplementation({methodName:h.type==="Identifier"&&!B.computed?h.name:`[${this.input.slice(h.start,h.end)}]`}))}}return this.finishNode(L,"FunctionExpression")}static parse(J,X){if(X.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else X.locations=!0;let z=new this(X,J);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(J,X,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let j=new this(z,J,X);if(Q)j.isAmbientContext=!0;return j.nextToken(),j.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(F.type)){let X=this.startNode();return X.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(X,!0,this.importOrExportOuterKind==="type"),this.finishNode(X,"ImportSpecifier")}else{let X=super.parseImportSpecifier();return X.importKind="value",X}}parseExportSpecifier(J){let X=this.ts_isContextual(F.type);if(!this.match(K.string)&&X){let j=this.startNode();return j.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(j,!1,this.importOrExportOuterKind==="type"),this.finishNode(j,"ExportSpecifier"),this.checkExport(J,j.exported,j.exported.start),j}else{let j=super.parseExportSpecifier(J);return j.exportKind="value",j}}parseTypeOnlyImportExportSpecifier(J,X,z){let j=X?"imported":"local",B=X?"local":"exported",L=J[j],A,D=!1,S=!0,I=L.start;if(this.isContextual("as")){let c=this.parseIdent();if(this.isContextual("as")){let m=this.parseIdent();if(a(this.type))D=!0,L=c,A=X?this.parseIdent():this.parseModuleExportName(),S=!1;else A=m,S=!1}else if(a(this.type))S=!1,A=X?this.parseIdent():this.parseModuleExportName();else D=!0,L=c}else if(a(this.type))if(D=!0,X){if(L=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(L)}else L=this.parseModuleExportName();if(D&&z)this.raise(I,X?E.TypeModifierIsUsedInTypeImports:E.TypeModifierIsUsedInTypeExports);J[j]=L,J[B]=A;let h=X?"importKind":"exportKind";if(J[h]=D?"type":"value",S&&this.eatContextual("as"))J[B]=X?this.parseIdent():this.parseModuleExportName();if(!J[B])J[B]=this.copyNode(J[j]);if(X)this.checkLValSimple(J[B],q8.BIND_LEXICAL)}raiseCommonCheck(J,X,z){switch(X){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(K.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(J,X)}return z?super.raiseRecoverable(J,X):super.raise(J,X)}raiseRecoverable(J,X){return this.raiseCommonCheck(J,X,!0)}raise(J,X){return this.raiseCommonCheck(J,X,!0)}updateContext(J){let{type:X}=this;if(X==K.braceL){var z=this.curContext();if(z==P.tc_oTag)this.context.push($.b_expr);else if(z==P.tc_expr)this.context.push($.b_tmpl);else super.updateContext(J);this.exprAllowed=!0}else if(X===K.slash&&J===F.jsxTagStart)this.context.length-=2,this.context.push(P.tc_cTag),this.exprAllowed=!1;else return super.updateContext(J)}jsx_parseOpeningElementAt(J,X){let z=this.startNodeAt(J,X),j=this.jsx_parseElementName();if(j)z.name=j;if(this.match(K.relational)||this.match(K.bitShift)){let B=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(B)z.typeArguments=B}z.attributes=[];while(this.type!==K.slash&&this.type!==F.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(K.slash),this.expect(F.jsxTagEnd),this.finishNode(z,j?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(J){if(J===x1)this.importsStack.push([]);super.enterScope(J);let X=super.currentScope();X.types=[],X.enums=[],X.constEnums=[],X.classes=[],X.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===x1)this.importsStack.pop();super.exitScope()}hasImport(J,X){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(J)>-1)return!0;if(!X&&z>1){for(let j=0;j<z-1;j++)if(this.importsStack[j].indexOf(J)>-1)return!0}return!1}maybeExportDefined(J,X){if(this.inModule&&J.flags&q8.SCOPE_TOP)delete this.undefinedExports[X]}declareName(J,X,z){if(X&q8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(J,!0))this.raise(z,`Identifier '${J}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(J);return}let j=this.currentScope();if(X&q8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(j,J),j.exportOnlyBindings.push(J);return}if(X===q8.BIND_TS_TYPE||X===q8.BIND_TS_INTERFACE){if(X===q8.BIND_TS_TYPE&&j.types.includes(J))this.raise(z,`type '${J}' has already been declared.`);j.types.push(J)}else super.declareName(J,X,z);if(X&q8.BIND_FLAGS_TS_ENUM)j.enums.push(J);if(X&q8.BIND_FLAGS_TS_CONST_ENUM)j.constEnums.push(J);if(X&q8.BIND_FLAGS_CLASS)j.classes.push(J)}checkLocalExport(J){let{name:X}=J;if(this.hasImport(X))return;let z=this.scopeStack.length;for(let j=z-1;j>=0;j--){let B=this.scopeStack[j];if(B.types.indexOf(X)>-1||B.exportOnlyBindings.indexOf(X)>-1)return}super.checkLocalExport(J)}}return C}}class J5 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new b1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function y(q,Q,Z){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new J5(Q,Z,Y!==void 0?[Y,H??Y]:void 0)}function K5(q){y(q,"css_empty_declaration",`Declaration cannot be empty
36
+ `;else $=String.fromCharCode(M);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return $}jsx_readString(O){let M="",$=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let B=this.input.charCodeAt(this.pos);if(B===O)break;if(B===38)M+=this.input.slice($,this.pos),M+=this.jsx_readEntity(),$=this.pos;else if(J(B))M+=this.input.slice($,this.pos),M+=this.jsx_readNewLine(!1),$=this.pos;else++this.pos}return M+=this.input.slice($,this.pos++),this.finishToken(Y.string,M)}jsx_readEntity(){let O="",M=0,$,B=this.input[this.pos];if(B!=="&")this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;while(this.pos<this.input.length&&M++<10){if(B=this.input[this.pos++],B===";"){if(O[0]==="#"){if(O[1]==="x"){if(O=O.substr(2),IQ.test(O))$=String.fromCharCode(parseInt(O,16))}else if(O=O.substr(1),PQ.test(O))$=String.fromCharCode(parseInt(O,10))}else $=AQ[O];break}O+=B}if(!$)return this.pos=P,"&";return $}jsx_readWord(){let O,M=this.pos;do O=this.input.charCodeAt(++this.pos);while(X(O)||O===45);return this.finishToken(K.jsxName,this.input.slice(M,this.pos))}jsx_parseIdentifier(){let O=this.startNode();if(this.type===K.jsxName)O.name=this.value;else if(this.type.keyword)O.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(O,"JSXIdentifier")}jsx_parseNamespacedName(){let O=this.start,M=this.startLoc,$=this.jsx_parseIdentifier();if(!W.allowNamespaces||!this.eat(Y.colon))return $;var B=this.startNodeAt(O,M);return B.namespace=$,B.name=this.jsx_parseIdentifier(),this.finishNode(B,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===K.jsxTagEnd)return"";let O=this.start,M=this.startLoc,$=this.jsx_parseNamespacedName();if(this.type===Y.dot&&$.type==="JSXNamespacedName"&&!W.allowNamespacedObjects)this.unexpected();while(this.eat(Y.dot)){let B=this.startNodeAt(O,M);B.object=$,B.property=this.jsx_parseIdentifier(),$=this.finishNode(B,"JSXMemberExpression")}return $}jsx_parseAttributeValue(){switch(this.type){case Y.braceL:let O=this.jsx_parseExpressionContainer();if(O.expression.type==="JSXEmptyExpression")this.raise(O.start,"JSX attributes must only be assigned a non-empty expression");return O;case K.jsxTagStart:case Y.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let O=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(O,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let O=this.startNode();return this.next(),O.expression=this.type===Y.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(Y.braceR),this.finishNode(O,"JSXExpressionContainer")}jsx_parseAttribute(){let O=this.startNode();if(this.eat(Y.braceL))return this.expect(Y.ellipsis),O.argument=this.parseMaybeAssign(),this.expect(Y.braceR),this.finishNode(O,"JSXSpreadAttribute");return O.name=this.jsx_parseNamespacedName(),O.value=this.eat(Y.eq)?this.jsx_parseAttributeValue():null,this.finishNode(O,"JSXAttribute")}jsx_parseOpeningElementAt(O,M){let $=this.startNodeAt(O,M);$.attributes=[];let B=this.jsx_parseElementName();if(B)$.name=B;while(this.type!==Y.slash&&this.type!==K.jsxTagEnd)$.attributes.push(this.jsx_parseAttribute());return $.selfClosing=this.eat(Y.slash),this.expect(K.jsxTagEnd),this.finishNode($,B?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(O,M){let $=this.startNodeAt(O,M),B=this.jsx_parseElementName();if(B)$.name=B;return this.expect(K.jsxTagEnd),this.finishNode($,B?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(O,M){let $=this.startNodeAt(O,M),B=[],P=this.jsx_parseOpeningElementAt(O,M),A=null;if(!P.selfClosing){q:for(;;)switch(this.type){case K.jsxTagStart:if(O=this.start,M=this.startLoc,this.next(),this.eat(Y.slash)){A=this.jsx_parseClosingElementAt(O,M);break q}B.push(this.jsx_parseElementAt(O,M));break;case K.jsxText:B.push(this.parseExprAtom());break;case Y.braceL:B.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(m1(A.name)!==m1(P.name))this.raise(A.start,"Expected corresponding JSX closing tag for <"+m1(P.name)+">")}let N=P.name?"Element":"Fragment";if($["opening"+N]=P,$["closing"+N]=A,$.children=B,this.type===Y.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode($,"JSX"+N)}jsx_parseText(){let O=this.parseLiteral(this.value);return O.type="JSXText",O}jsx_parseElement(){let O=this.start,M=this.startLoc;return this.next(),this.jsx_parseElementAt(O,M)}}}function DQ(q,Q,Z){let{tokTypes:j}=Q,{tokTypes:Y}=Z;return class extends q{parseMaybeImportAttributes(J){if(this.type===Y._with||this.type===j.assert){this.next();let X=this.parseImportAttributes();if(X)J.attributes=X}}parseImportAttributes(){this.expect(Y.braceL);let J=this.parseWithEntries();return this.expect(Y.braceR),J}parseWithEntries(){let J=[],X=new Set;do{if(this.type===Y.braceR)break;let W=this.startNode(),R;if(this.type===Y.string)R=this.parseLiteral(this.value);else R=this.parseIdent(!0);if(this.next(),W.key=R,X.has(W.key.name))this.raise(this.pos,"Duplicated key in attributes");if(X.add(W.key.name),this.type!==Y.string)this.raise(this.pos,"Only string is supported as an attribute value");W.value=this.parseLiteral(this.value),J.push(this.finishNode(W,"ImportAttribute"))}while(this.eat(Y.comma));return J}}}var c9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function a2(q){if(!q)throw Error("Assert fail")}function NQ(q){return q==="accessor"}function bQ(q){return q==="in"||q==="out"}var N0=1,r2=2,TQ=4,q8={SCOPE_TOP:1,SCOPE_FUNCTION:2,SCOPE_ASYNC:4,SCOPE_GENERATOR:8,SCOPE_ARROW:16,SCOPE_SIMPLE_CATCH:32,SCOPE_SUPER:64,SCOPE_DIRECT_SUPER:128,SCOPE_CLASS_STATIC_BLOCK:256,SCOPE_VAR:256,BIND_NONE:0,BIND_VAR:1,BIND_LEXICAL:2,BIND_FUNCTION:3,BIND_SIMPLE_CATCH:4,BIND_OUTSIDE:5,BIND_TS_TYPE:6,BIND_TS_INTERFACE:7,BIND_TS_NAMESPACE:1032,BIND_FLAGS_TS_EXPORT_ONLY:1024,BIND_FLAGS_TS_IMPORT:4096,BIND_FLAGS_TS_ENUM:256,BIND_FLAGS_TS_CONST_ENUM:512,BIND_FLAGS_CLASS:128};function i9(q,Q){return q8.SCOPE_FUNCTION|(q?q8.SCOPE_ASYNC:0)|(Q?q8.SCOPE_GENERATOR:0)}function kQ(q){if(q.type!=="MemberExpression")return!1;let{computed:Q,property:Z}=q;if(Q&&(Z.type!=="TemplateLiteral"||Z.expressions.length>0))return!1;return H5(q.object)}function H5(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return H5(q.object)}function t2(q){return q==="private"||q==="public"||q==="protected"}function EQ(q){return Boolean(q.startsExpr)}function vQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function hQ(q){switch(q){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 J5(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(j){let Y=j.acorn||D0,K=OQ(Y),J=Y.tokTypes,X=Y.keywordTypes,W=Y.isIdentifierStart,R=Y.lineBreak,O=Y.isNewLine,M=Y.tokContexts,$=Y.isIdentifierChar,{tokTypes:B,tokContexts:P,keywordsRegExp:A,tokenIsLiteralPropertyName:N,tokenIsTemplate:v,tokenIsTSDeclarationStart:g,tokenIsIdentifier:f,tokenIsKeywordOrIdentifier:a,tokenIsTSTypeOperator:x}=K;function Z8(H,V,z=H.length){for(let G=V;G<z;G++){let F=H.charCodeAt(G);if(O(F))return G<z-1&&F===13&&H.charCodeAt(G+1)===10?G+2:G+1}return-1}if(j=CQ(j,K,Y),q?.jsx)j=SQ(Y,K,j,typeof q.jsx==="boolean"?{}:q.jsx);j=DQ(j,K,Y);class L extends j{constructor(H,V,z){super(H,V,z);this.preValue=null,this.preToken=null,this.isLookahead=!1,this.isAmbientContext=!1,this.inAbstractClass=!1,this.inType=!1,this.inDisallowConditionalTypesContext=!1,this.maybeInArrowParameters=!1,this.shouldParseArrowReturnType=void 0,this.shouldParseAsyncArrowReturnType=void 0,this.decoratorStack=[[]],this.importsStack=[[]],this.importOrExportOuterKind=void 0,this.tsParseConstModifier=(G)=>{this.tsParseModifiers({modified:G,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return K}get acornTypeScript(){return K}getTokenFromCodeInType(H){if(H===62)return this.finishOp(J.relational,1);if(H===60)return this.finishOp(J.relational,1);return super.getTokenFromCode(H)}readToken(H){if(!this.inType){let V=this.curContext();if(V===P.tc_expr)return this.jsx_readToken();if(V===P.tc_oTag||V===P.tc_cTag){if(W(H))return this.jsx_readWord();if(H==62)return++this.pos,this.finishToken(B.jsxTagEnd);if((H===34||H===39)&&V==P.tc_oTag)return this.jsx_readString(H)}if(H===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,q?.jsx)return this.finishToken(B.jsxTagStart);else return this.finishToken(J.relational,"<")}return super.readToken(H)}getTokenFromCode(H){if(this.inType)return this.getTokenFromCodeInType(H);if(H===64)return++this.pos,this.finishToken(B.at);return super.getTokenFromCode(H)}isAbstractClass(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===J._class}finishNode(H,V){if(H.type!==""&&H.end!==0)return H;return super.finishNode(H,V)}tryParse(H,V=this.cloneCurLookaheadState()){let z={node:null};try{return{node:H((F=null)=>{throw z.node=F,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(G){let F=this.getCurLookaheadState();if(this.setLookaheadState(V),G instanceof SyntaxError)return{node:null,error:G,thrown:!0,aborted:!1,failState:F};if(G===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:F};throw G}}setOptionalParametersError(H,V){H.optionalParametersLoc=V?.loc??this.startLoc}reScan_lt_gt(){if(this.type===J.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:H}=this;if(H===J.bitShift)return this.pos-=2,this.finishOp(J.relational,1),J.relational;return H}resetEndLocation(H,V=this.lastTokEnd,z=this.lastTokEndLoc){if(H.end=V,H.loc.end=z,this.options.ranges)H.range[1]=V}startNodeAtNode(H){return super.startNodeAt(H.start,H.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(H,V){return V.some((z)=>{if(t2(z))return H.accessibility===z;return!!H[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(H){H.forEach((V)=>{if(V?.type==="TSTypeCastExpression")this.raise(V.typeAnnotation.start,E.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(H){return H.type==="Identifier"&&H.name==="async"&&this.lastTokEnd===H.end&&!this.canInsertSemicolon()&&H.end-H.start===5&&H.start===this.potentialArrowAt}tsIsIdentifier(){return f(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(J.colon)?this.tsParseTypeOrTypePredicateAnnotation(J.colon):void 0}tsTryParseGenericAsyncArrowFunction(H,V,z){if(!this.tsMatchLeftRelational())return;let G=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let F=this.tsTryParseAndCatch(()=>{let w=this.startNodeAt(H,V);return w.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(w),w.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(J.arrow),w});if(this.maybeInArrowParameters=G,!F)return;return super.parseArrowExpression(F,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==J.relational)return;return this.tsParseTypeArguments()}tsInNoContext(H){let V=this.context;this.context=[V[0]];try{return H()}finally{this.context=V}}tsTryParseTypeAnnotation(){return this.match(J.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(H,V){let z=H+V.length;if(this.input.slice(H,z)===V){let G=this.input.charCodeAt(z);return!($(G)||(G&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(B.abstract)&&this.lookahead().type===J._new}nextTokenStartSince(H){return c9.lastIndex=H,c9.test(this.input)?c9.lastIndex:H}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(H,V){for(let z of Object.keys(H))if(H[z]!==V[z])return!1;return!0}createLookaheadState(){this.value=null,this.context=[this.curContext()]}getCurLookaheadState(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}cloneCurLookaheadState(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}}setLookaheadState(H){this.pos=H.pos,this.value=H.value,this.endLoc=H.endLoc,this.lastTokEnd=H.lastTokEnd,this.lastTokStart=H.lastTokStart,this.lastTokStartLoc=H.lastTokStartLoc,this.type=H.type,this.start=H.start,this.end=H.end,this.context=H.context,this.startLoc=H.startLoc,this.lastTokEndLoc=H.lastTokEndLoc,this.curLine=H.curLine,this.lineStart=H.lineStart,this.curPosition=H.curPosition,this.containsEsc=H.containsEsc}tsLookAhead(H){let V=this.getCurLookaheadState(),z=H();return this.setLookaheadState(V),z}lookahead(H){let V=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,H!==void 0)for(let G=0;G<H;G++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(V),z}readWord(){let H=this.readWord1(),V=J.name;if(this.keywords.test(H))V=X[H];else if(new RegExp(A).test(H))V=B[H];return this.finishToken(V,H)}skipBlockComment(){let H;if(!this.isLookahead)H=this.options.onComment&&this.curPosition();let V=this.pos,z=this.input.indexOf("*/",this.pos+=2);if(z===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=z+2,this.options.locations)for(let G,F=V;(G=Z8(this.input,F,this.pos))>-1;)++this.curLine,F=this.lineStart=G;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(V+2,z),V,this.pos,H,this.curPosition())}skipLineComment(H){let V=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let G=this.input.charCodeAt(this.pos+=H);while(this.pos<this.input.length&&!O(G))G=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(V+H,this.pos),V,this.pos,z,this.curPosition())}finishToken(H,V){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let z=this.type;if(this.type=H,this.value=V,!this.isLookahead)this.updateContext(z)}resetStartLocation(H,V,z){if(H.start=V,H.loc.start=z,this.options.ranges)H.range[0]=V}isLineTerminator(){return this.eat(J.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return n2.lastIndex=this.end,n2.test(this.input)}addExtra(H,V,z,G=!0){if(!H)return;let F=H.extra=H.extra||{};if(G)F[V]=z;else Object.defineProperty(F,V,{enumerable:G,value:z})}isLiteralPropertyName(){return N(this.type)}hasPrecedingLineBreak(){return R.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(H,V){return H.name=V,this.finishNode(H,"Identifier")}resetStartLocationFromNode(H,V){this.resetStartLocation(H,V.start,V.loc.start)}isThisParam(H){return H.type==="Identifier"&&H.name==="this"}isLookaheadContextual(H){let V=this.nextTokenStart();return this.isUnparsedContextual(V,H)}ts_type_isContextual(H,V){return H===V&&!this.containsEsc}ts_isContextual(H){return this.type===H&&!this.containsEsc}ts_isContextualWithState(H,V){return H.type===V&&!H.containsEsc}isContextualWithState(H,V){return V.type===J.name&&V.value===H&&!V.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(J.plusMin))return this.ts_isContextual(B.readonly);if(this.ts_isContextual(B.readonly))this.next();if(!this.match(J.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(J._in)}tsInDisallowConditionalTypesContext(H){let V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return H()}finally{this.inDisallowConditionalTypesContext=V}}tsTryParseType(){return this.tsEatThenParseType(J.colon)}match(H){return this.type===H}matchJsx(H){return this.type===K.tokTypes[H]}ts_eatWithState(H,V,z){let G=z.type;if(H===G){for(let F=0;F<V;F++)this.next();return!0}else return!1}ts_eatContextualWithState(H,V,z){if(A.test(H)){if(this.ts_isContextualWithState(z,B[H])){for(let G=0;G<V;G++)this.next();return!0}return!1}else{if(!this.isContextualWithState(H,z))return!1;for(let G=0;G<V;G++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(J._class)||this.isAbstractClass()}eatContextual(H){if(A.test(H)){if(this.ts_isContextual(B[H]))return this.next(),!0;return!1}else return super.eatContextual(H)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let H=this.startNode();if(this.expectContextual("require"),this.expect(J.parenL),!this.match(J.string))this.unexpected();return H.expression=this.parseExprAtom(),this.expect(J.parenR),this.finishNode(H,"TSExternalModuleReference")}tsParseEntityName(H=!0){let V=this.parseIdent(H);while(this.eat(J.dot)){let z=this.startNodeAtNode(V);z.left=V,z.right=this.parseIdent(H),V=this.finishNode(z,"TSQualifiedName")}return V}tsParseEnumMember(){let H=this.startNode();if(H.id=this.match(J.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(J.eq))H.initializer=this.parseMaybeAssign();return this.finishNode(H,"TSEnumMember")}tsParseEnumDeclaration(H,V={}){if(V.const)H.const=!0;if(V.declare)H.declare=!0;return this.expectContextual("enum"),H.id=this.parseIdent(),this.checkLValSimple(H.id),this.expect(J.braceL),H.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(J.braceR),this.finishNode(H,"TSEnumDeclaration")}tsParseModuleBlock(){let H=this.startNode();this.enterScope(UQ),this.expect(J.braceL),H.body=[];while(this.type!==J.braceR){let V=this.parseStatement(null,!0);H.body.push(V)}return this.next(),super.exitScope(),this.finishNode(H,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(H){if(this.ts_isContextual(B.global))H.global=!0,H.id=this.parseIdent();else if(this.match(J.string))H.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(J.braceL))this.enterScope(x1),H.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(H,"TSModuleDeclaration")}tsTryParseDeclare(H){if(this.isLineTerminator())return;let V=this.type,z;if(this.isContextual("let"))V=J._var,z="let";return this.tsInAmbientContext(()=>{if(V===J._function)return H.declare=!0,this.parseFunctionStatement(H,!1,!0);if(V===J._class)return H.declare=!0,this.parseClass(H,!0);if(V===B.enum)return this.tsParseEnumDeclaration(H,{declare:!0});if(V===B.global)return this.tsParseAmbientExternalModuleDeclaration(H);if(V===J._const||V===J._var){if(!this.match(J._const)||!this.isLookaheadContextual("enum"))return H.declare=!0,this.parseVarStatement(H,z||this.value,!0);return this.expect(J._const),this.tsParseEnumDeclaration(H,{const:!0,declare:!0})}if(V===B.interface){let G=this.tsParseInterfaceDeclaration(H,{declare:!0});if(G)return G}if(f(V))return this.tsParseDeclaration(H,this.value,!0)})}tsIsListTerminator(H){switch(H){case"EnumMembers":case"TypeMembers":return this.match(J.braceR);case"HeritageClauseElement":return this.match(J.braceL);case"TupleElementTypes":return this.match(J.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(H,V,z,G){let F=[],w=-1;for(;;){if(this.tsIsListTerminator(H))break;w=-1;let C=V();if(C==null)return;if(F.push(C),this.eat(J.comma)){w=this.lastTokStart;continue}if(this.tsIsListTerminator(H))break;if(z)this.expect(J.comma);return}if(G)G.value=w;return F}tsParseDelimitedList(H,V,z){return vQ(this.tsParseDelimitedListWorker(H,V,!0,z))}tsParseBracketedList(H,V,z,G,F){if(!G)if(z)this.expect(J.bracketL);else this.expect(J.relational);let w=this.tsParseDelimitedList(H,V,F);if(z)this.expect(J.bracketR);else this.expect(J.relational);return w}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(H){return!this.match(H)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(H){return this.tsDoThenParseType(()=>this.expect(H))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(H){return this.tsInType(()=>{return H(),this.tsParseType()})}tsSkipParameterStart(){if(f(this.type)||this.match(J._this))return this.next(),!0;if(this.match(J.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(J.bracketL)){this.next();try{return this.parseBindingList(J.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(J.parenR)||this.match(J.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(J.colon)||this.match(J.comma)||this.match(J.question)||this.match(J.eq))return!0;if(this.match(J.parenR)){if(this.next(),this.match(J.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(J.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(H){let V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return H()}finally{this.inDisallowConditionalTypesContext=V}}tsParseBindingListForSignature(){return super.parseBindingList(J.parenR,!0,!0).map((H)=>{if(H.type!=="Identifier"&&H.type!=="RestElement"&&H.type!=="ObjectPattern"&&H.type!=="ArrayPattern")this.raise(H.start,E.UnsupportedSignatureParameterKind({type:H.type}));return H})}tsParseTypePredicateAsserts(){if(this.type!==B.asserts)return!1;let H=this.containsEsc;if(this.next(),!f(this.type)&&!this.match(J._this))return!1;if(H)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let H=this.startNode();return this.next(),this.finishNode(H,"TSThisType")}tsParseTypeAnnotation(H=!0,V=this.startNode()){return this.tsInType(()=>{if(H)this.expect(J.colon);V.typeAnnotation=this.tsParseType()}),this.finishNode(V,"TSTypeAnnotation")}tsParseThisTypePredicate(H){this.next();let V=this.startNodeAtNode(H);return V.parameterName=H,V.typeAnnotation=this.tsParseTypeAnnotation(!1),V.asserts=!1,this.finishNode(V,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let H=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(H);else return H}tsParseTypePredicatePrefix(){let H=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),H}tsParseTypeOrTypePredicateAnnotation(H){return this.tsInType(()=>{let V=this.startNode();this.expect(H);let z=this.startNode(),G=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(G&&this.match(J._this)){let C=this.tsParseThisTypeOrThisTypePredicate();if(C.type==="TSThisType")z.parameterName=C,z.asserts=!0,z.typeAnnotation=null,C=this.finishNode(z,"TSTypePredicate");else this.resetStartLocationFromNode(C,z),C.asserts=!0;return V.typeAnnotation=C,this.finishNode(V,"TSTypeAnnotation")}let F=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!F){if(!G)return this.tsParseTypeAnnotation(!1,V);return z.parameterName=this.parseIdent(),z.asserts=G,z.typeAnnotation=null,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")}let w=this.tsParseTypeAnnotation(!1);return z.parameterName=F,z.typeAnnotation=w,z.asserts=G,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")})}tsFillSignature(H,V){let z=H===J.arrow,G="parameters",F="typeAnnotation";if(V.typeParameters=this.tsTryParseTypeParameters(),this.expect(J.parenL),V.parameters=this.tsParseBindingListForSignature(),z)V.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H);else if(this.match(H))V.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(H)}tsTryNextParseConstantContext(){if(this.lookahead().type!==J._const)return null;this.next();let H=this.tsParseTypeReference();if(H.typeParameters||H.typeArguments)this.raise(H.typeName.start,E.CannotFindName({name:"const"}));return H}tsParseFunctionOrConstructorType(H,V){let z=this.startNode();if(H==="TSConstructorType"){if(z.abstract=!!V,V)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(J.arrow,z)),this.finishNode(z,H)}tsParseUnionOrIntersectionType(H,V,z){let G=this.startNode(),F=this.eat(z),w=[];do w.push(V());while(this.eat(z));if(w.length===1&&!F)return w[0];return G.types=w,this.finishNode(G,H)}tsCheckTypeAnnotationForReadOnly(H){switch(H.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(H.start,E.UnexpectedReadonly)}}tsParseTypeOperator(){let H=this.startNode(),V=this.value;if(this.next(),H.operator=V,H.typeAnnotation=this.tsParseTypeOperatorOrHigher(),V==="readonly")this.tsCheckTypeAnnotationForReadOnly(H);return this.finishNode(H,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(J._extends)){let H=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(J.question))return H}}tsParseInferType(){let H=this.startNode();this.expectContextual("infer");let V=this.startNode();return V.name=this.tsParseTypeParameterName(),V.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),H.typeParameter=this.finishNode(V,"TSTypeParameter"),this.finishNode(H,"TSInferType")}tsParseLiteralTypeNode(){let H=this.startNode();return H.literal=(()=>{switch(this.type){case J.num:case J.string:case J._true:case J._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(H,"TSLiteralType")}tsParseImportType(){let H=this.startNode();if(this.expect(J._import),this.expect(J.parenL),!this.match(J.string))this.raise(this.start,E.UnsupportedImportTypeArgument);if(H.argument=this.parseExprAtom(),this.expect(J.parenR),this.eat(J.dot))H.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSImportType")}tsParseTypeQuery(){let H=this.startNode();if(this.expect(J._typeof),this.match(J._import))H.exprName=this.tsParseImportType();else H.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeQuery")}tsParseMappedTypeParameter(){let H=this.startNode();return H.name=this.tsParseTypeParameterName(),H.constraint=this.tsExpectThenParseType(J._in),this.finishNode(H,"TSTypeParameter")}tsParseMappedType(){let H=this.startNode();if(this.expect(J.braceL),this.match(J.plusMin))H.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))H.readonly=!0;if(this.expect(J.bracketL),H.typeParameter=this.tsParseMappedTypeParameter(),H.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(J.bracketR),this.match(J.plusMin))H.optional=this.value,this.next(),this.expect(J.question);else if(this.eat(J.question))H.optional=!0;return H.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(J.braceR),this.finishNode(H,"TSMappedType")}tsParseTypeLiteral(){let H=this.startNode();return H.members=this.tsParseObjectTypeMembers(),this.finishNode(H,"TSTypeLiteral")}tsParseTupleElementType(){let H=this.startLoc,V=this.start,z=this.eat(J.ellipsis),G=this.tsParseType(),F=this.eat(J.question);if(this.eat(J.colon)){let C=this.startNodeAtNode(G);if(C.optional=F,G.type==="TSTypeReference"&&!G.typeArguments&&G.typeName.type==="Identifier")C.label=G.typeName;else this.raise(G.start,E.InvalidTupleMemberLabel),C.label=G;C.elementType=this.tsParseType(),G=this.finishNode(C,"TSNamedTupleMember")}else if(F){let C=this.startNodeAtNode(G);C.typeAnnotation=G,G=this.finishNode(C,"TSOptionalType")}if(z){let C=this.startNodeAt(V,H);C.typeAnnotation=G,G=this.finishNode(C,"TSRestType")}return G}tsParseTupleType(){let H=this.startNode();H.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let V=!1;return H.elementTypes.forEach((z)=>{let{type:G}=z;if(V&&G!=="TSRestType"&&G!=="TSOptionalType"&&!(G==="TSNamedTupleMember"&&z.optional))this.raise(z.start,E.OptionalTypeBeforeRequired);if(V||=G==="TSNamedTupleMember"&&z.optional||G==="TSOptionalType",G==="TSRestType")z=z.typeAnnotation}),this.finishNode(H,"TSTupleType")}tsParseTemplateLiteralType(){let H=this.startNode();return H.literal=this.parseTemplate({isTagged:!1}),this.finishNode(H,"TSLiteralType")}tsParseTypeReference(){let H=this.startNode();if(H.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())H.typeArguments=this.tsParseTypeArguments();return this.finishNode(H,"TSTypeReference")}tsMatchLeftRelational(){return this.match(J.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(J.relational)&&this.value===">"}tsParseParenthesizedType(){let H=this.startNode();return this.expect(J.parenL),H.typeAnnotation=this.tsParseType(),this.expect(J.parenR),this.finishNode(H,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case J.string:case J.num:case J._true:case J._false:return this.tsParseLiteralTypeNode();case J.plusMin:if(this.value==="-"){let H=this.startNode();if(this.lookahead().type!==J.num)this.unexpected();return H.literal=this.parseMaybeUnary(),this.finishNode(H,"TSLiteralType")}break;case J._this:return this.tsParseThisTypeOrThisTypePredicate();case J._typeof:return this.tsParseTypeQuery();case J._import:return this.tsParseImportType();case J.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case J.bracketL:return this.tsParseTupleType();case J.parenL:return this.tsParseParenthesizedType();case J.backQuote:case J.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:H}=this;if(f(H)||H===J._void||H===J._null){let V=H===J._void?"TSVoidKeyword":H===J._null?"TSNullKeyword":hQ(this.value);if(V!==void 0&&this.lookaheadCharCode()!==46){let z=this.startNode();return this.next(),this.finishNode(z,V)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let H=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(J.bracketL))if(this.match(J.bracketR)){let V=this.startNodeAtNode(H);V.elementType=H,this.expect(J.bracketR),H=this.finishNode(V,"TSArrayType")}else{let V=this.startNodeAtNode(H);V.objectType=H,V.indexType=this.tsParseType(),this.expect(J.bracketR),H=this.finishNode(V,"TSIndexedAccessType")}return H}tsParseTypeOperatorOrHigher(){return x(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),J.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),J.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(J._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){a2(this.inType);let H=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(J._extends))return H;let V=this.startNodeAtNode(H);return V.checkType=H,V.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(J.question),V.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(J.colon),V.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(V,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),f(this.type))return this.next(),this.match(J.colon);return!1}tsInType(H){let V=this.inType;this.inType=!0;try{return H()}finally{this.inType=V}}tsTryParseIndexSignature(H){if(!(this.match(J.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(J.bracketL);let V=this.parseIdent();V.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(V),this.expect(J.bracketR),H.parameters=[V];let z=this.tsTryParseTypeAnnotation();if(z)H.typeAnnotation=z;return this.tsParseTypeMemberSemicolon(),this.finishNode(H,"TSIndexSignature")}tsParseNoneModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:E.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(H=this.tsParseNoneModifiers.bind(this)){let V=this.startNode();return H(V),V.name=this.tsParseTypeParameterName(),V.constraint=this.tsEatThenParseType(J._extends),V.default=this.tsEatThenParseType(J.eq),this.finishNode(V,"TSTypeParameter")}tsParseTypeParameters(H){let V=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let z={value:-1};if(V.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,H),!1,!0,z),V.params.length===0)this.raise(this.start,E.EmptyTypeParameters);if(z.value!==-1)this.addExtra(V,"trailingComma",z.value);return this.finishNode(V,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(H){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(H)}tsTryParse(H){let V=this.getCurLookaheadState(),z=H();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(V);return}}tsTokenCanFollowModifier(){return(this.match(J.bracketL)||this.match(J.braceL)||this.match(J.star)||this.match(J.ellipsis)||this.match(J.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(H,V){let z=this.value;if(H.indexOf(z)!==-1&&!this.containsEsc){if(V&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:H,map:V}){for(let z of Object.keys(V))H[z]=V[z]}tsParseModifiers({modified:H,allowedModifiers:V,disallowedModifiers:z,stopOnStartOfClassStaticBlock:G,errorTemplate:F=E.InvalidModifierOnTypeMember}){let w={},C=(S,I,h,c)=>{if(I===h&&H[c])this.raise(S.column,E.InvalidModifiersOrder({orderedModifiers:[h,c]}))},D=(S,I,h,c)=>{if(H[h]&&I===c||H[c]&&I===h)this.raise(S.column,E.IncompatibleModifiers({modifiers:[h,c]}))};for(;;){let S=this.startLoc,I=this.tsParseModifier(V.concat(z??[]),G);if(!I)break;if(t2(I))if(H.accessibility)this.raise(this.start,E.DuplicateAccessibilityModifier());else C(S,I,I,"override"),C(S,I,I,"static"),C(S,I,I,"readonly"),C(S,I,I,"accessor"),w.accessibility=I,H.accessibility=I;else if(bQ(I))if(H[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else C(S,I,"in","out"),w[I]=I,H[I]=!0;else if(NQ(I))if(H[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else D(S,I,"accessor","readonly"),D(S,I,"accessor","static"),D(S,I,"accessor","override"),w[I]=I,H[I]=!0;else if(I==="const")if(H[I])this.raise(this.start,E.DuplicateModifier({modifier:I}));else w[I]=I,H[I]=!0;else if(Object.hasOwnProperty.call(H,I))this.raise(this.start,E.DuplicateModifier({modifier:I}));else C(S,I,"static","readonly"),C(S,I,"static","override"),C(S,I,"override","readonly"),C(S,I,"abstract","override"),D(S,I,"declare","override"),D(S,I,"static","abstract"),w[I]=I,H[I]=!0;if(z?.includes(I))this.raise(this.start,F)}return w}tsParseInOutModifiers(H){this.tsParseModifiers({modified:H,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:E.InvalidModifierOnTypeParameter})}parseMaybeUnary(H,V,z,G){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(H,V,z,G)}tsParseTypeAssertion(){if(Z)this.raise(this.start,E.ReservedTypeAssertion);let H=this.tryParse(()=>{let V=this.startNode(),z=this.tsTryNextParseConstantContext();return V.typeAnnotation=z||this.tsNextThenParseType(),this.expect(J.relational),V.expression=this.parseMaybeUnary(),this.finishNode(V,"TSTypeAssertion")});if(H.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return H.node}tsParseTypeArguments(){let H=this.startNode();if(H.params=this.tsInType(()=>this.tsInNoContext(()=>{return this.expect(J.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))})),H.params.length===0)this.raise(this.start,E.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(J.relational),this.finishNode(H,"TSTypeParameterInstantiation")}tsParseHeritageClause(H){let V=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let G=this.startNode();if(G.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())G.typeParameters=this.tsParseTypeArguments();return this.finishNode(G,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(V,E.EmptyHeritageClauseType({token:H}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(J.comma)&&!this.isLineTerminator())this.expect(J.semi)}tsTryParseAndCatch(H){let V=this.tryParse((z)=>H()||z());if(V.aborted||!V.node)return;if(V.error)this.setLookaheadState(V.failState);return V.node}tsParseSignatureMember(H,V){return this.tsFillSignature(J.colon,V),this.tsParseTypeMemberSemicolon(),this.finishNode(V,H)}tsParsePropertyOrMethodSignature(H,V){if(this.eat(J.question))H.optional=!0;let z=H;if(this.match(J.parenL)||this.tsMatchLeftRelational()){if(V)this.raise(H.start,E.ReadonlyForMethodSignature);let G=z;if(G.kind&&this.tsMatchLeftRelational())this.raise(this.start,E.AccesorCannotHaveTypeParameters);this.tsFillSignature(J.colon,G),this.tsParseTypeMemberSemicolon();let F="parameters",w="typeAnnotation";if(G.kind==="get"){if(G[F].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(G[F][0]))this.raise(this.start,E.AccesorCannotDeclareThisParameter)}}else if(G.kind==="set"){if(G[F].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let C=G[F][0];if(this.isThisParam(C))this.raise(this.start,E.AccesorCannotDeclareThisParameter);if(C.type==="Identifier"&&C.optional)this.raise(this.start,E.SetAccesorCannotHaveOptionalParameter);if(C.type==="RestElement")this.raise(this.start,E.SetAccesorCannotHaveRestParameter)}if(G[w])this.raise(G[w].start,E.SetAccesorCannotHaveReturnType)}else G.kind="method";return this.finishNode(G,"TSMethodSignature")}else{let G=z;if(V)G.readonly=!0;let F=this.tsTryParseTypeAnnotation();if(F)G.typeAnnotation=F;return this.tsParseTypeMemberSemicolon(),this.finishNode(G,"TSPropertySignature")}}tsParseTypeMember(){let H=this.startNode();if(this.match(J.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",H);if(this.match(J._new)){let z=this.startNode();if(this.next(),this.match(J.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",H);else return H.key=this.createIdentifier(z,"new"),this.tsParsePropertyOrMethodSignature(H,!1)}this.tsParseModifiers({modified:H,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let V=this.tsTryParseIndexSignature(H);if(V)return V;if(this.parsePropertyName(H),!H.computed&&H.key.type==="Identifier"&&(H.key.name==="get"||H.key.name==="set")&&this.tsTokenCanFollowModifier())H.kind=H.key.name,this.parsePropertyName(H);return this.tsParsePropertyOrMethodSignature(H,!!H.readonly)}tsParseList(H,V){let z=[];while(!this.tsIsListTerminator(H))z.push(V());return z}tsParseObjectTypeMembers(){this.expect(J.braceL);let H=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(J.braceR),H}tsParseInterfaceDeclaration(H,V={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),V.declare)H.declare=!0;if(f(this.type))H.id=this.parseIdent(),this.checkLValSimple(H.id,q8.BIND_TS_INTERFACE);else H.id=null,this.raise(this.start,E.MissingInterfaceName);if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(J._extends))H.extends=this.tsParseHeritageClause("extends");let z=this.startNode();return z.body=this.tsParseInterfaceBody(),H.body=this.finishNode(z,"TSInterfaceBody"),this.finishNode(H,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(J.braceL);let H=this.inType;this.inType=!0;let V=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=H,this.expect(J.braceR),V}tsParseAbstractDeclaration(H){if(this.match(J._class))return H.abstract=!0,this.parseClass(H,!0);else if(this.ts_isContextual(B.interface)){if(!this.hasFollowingLineBreak())return H.abstract=!0,this.tsParseInterfaceDeclaration(H)}else this.unexpected(H.start)}tsIsDeclarationStart(){return g(this.type)}tsParseExpressionStatement(H,V){switch(V.name){case"declare":{let z=this.tsTryParseDeclare(H);if(z)return z.declare=!0,z;break}case"global":if(this.match(J.braceL)){this.enterScope(x1);let z=H;return z.global=!0,z.id=V,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(H,V.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:H}=this,V=this.isAsyncFunction(),z=this.isLet();if(f(H)){if(V&&!this.containsEsc||z)return!1;if((H===B.type||H===B.interface)&&!this.containsEsc){let w=this.lookahead();if(f(w.type)&&!this.isContextualWithState("from",w)||w.type===J.braceL)return!1}}else if(!this.match(J._default))return!1;let G=this.nextTokenStart(),F=this.isUnparsedContextual(G,"from");if(this.input.charCodeAt(G)===44||f(this.type)&&F)return!0;if(this.match(J._default)&&F){let w=this.input.charCodeAt(this.nextTokenStartSince(G+4));return w===34||w===39}return!1}tsInAmbientContext(H){let V=this.isAmbientContext;this.isAmbientContext=!0;try{return H()}finally{this.isAmbientContext=V}}tsCheckLineTerminator(H){if(H){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(H,V=!1){if(H.id=this.parseIdent(),!V)this.checkLValSimple(H.id,q8.BIND_TS_NAMESPACE);if(this.eat(J.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),H.body=z}else this.enterScope(x1),H.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(H,"TSModuleDeclaration")}checkLValSimple(H,V=q8.BIND_NONE,z){if(H.type==="TSNonNullExpression"||H.type==="TSAsExpression")H=H.expression;return super.checkLValSimple(H,V,z)}tsParseTypeAliasDeclaration(H){return H.id=this.parseIdent(),this.checkLValSimple(H.id,q8.BIND_TS_TYPE),H.typeAnnotation=this.tsInType(()=>{if(H.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(J.eq),this.ts_isContextual(B.interface)&&this.lookahead().type!==J.dot){let V=this.startNode();return this.next(),this.finishNode(V,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(H,"TSTypeAliasDeclaration")}tsParseDeclaration(H,V,z){switch(V){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(J._class)||f(this.type)))return this.tsParseAbstractDeclaration(H);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(J.string))return this.tsParseAmbientExternalModuleDeclaration(H);else if(f(this.type))return this.tsParseModuleOrNamespaceDeclaration(H)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseModuleOrNamespaceDeclaration(H);break;case"type":if(this.tsCheckLineTerminator(z)&&f(this.type))return this.tsParseTypeAliasDeclaration(H);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(H,V){H.isExport=V||!1,H.id=this.parseIdent(),this.checkLValSimple(H.id,q8.BIND_LEXICAL),super.expect(J.eq);let z=this.tsParseModuleReference();if(H.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,E.ImportAliasHasImportType);return H.moduleReference=z,super.semicolon(),this.finishNode(H,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:H}=this;if(f(H)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((H===B.type||H===B.interface)&&!this.containsEsc){let G=this.lookahead();if(f(G.type)&&!this.isContextualWithState("from",G)||G.type===J.braceL)return!1}}else if(!this.match(J._default))return!1;let V=this.nextTokenStart(),z=this.isUnparsedContextual(V,"from");if(this.input.charCodeAt(V)===44||f(this.type)&&z)return!0;if(this.match(J._default)&&z){let G=this.input.charCodeAt(this.nextTokenStartSince(V+4));return G===34||G===39}return!1}parseTemplate({isTagged:H=!1}={}){let V=this.startNode();this.next(),V.expressions=[];let z=this.parseTemplateElement({isTagged:H});V.quasis=[z];while(!z.tail){if(this.type===J.eof)this.raise(this.pos,"Unterminated template literal");this.expect(J.dollarBraceL),V.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(J.braceR),V.quasis.push(z=this.parseTemplateElement({isTagged:H}))}return this.next(),this.finishNode(V,"TemplateLiteral")}parseFunction(H,V,z,G,F){if(this.initFunction(H),this.ecmaVersion>=9||this.ecmaVersion>=6&&!G){if(this.type===J.star&&V&r2)this.unexpected();H.generator=this.eat(J.star)}if(this.ecmaVersion>=8)H.async=!!G;if(V&N0)H.id=V&TQ&&this.type!==J.name?null:this.parseIdent();let w=this.yieldPos,C=this.awaitPos,D=this.awaitIdentPos,S=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(H.async,H.generator)),!(V&N0))H.id=this.type===J.name?this.parseIdent():null;this.parseFunctionParams(H);let I=V&N0;if(this.parseFunctionBody(H,z,!1,F,{isFunctionDeclaration:I}),this.yieldPos=w,this.awaitPos=C,this.awaitIdentPos=D,V&N0&&H.id&&!(V&r2))if(H.body)this.checkLValSimple(H.id,this.strict||H.generator||H.async?this.treatFunctionsAsVar?q8.BIND_VAR:q8.BIND_LEXICAL:q8.BIND_FUNCTION);else this.checkLValSimple(H.id,q8.BIND_NONE);return this.maybeInArrowParameters=S,this.finishNode(H,I?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(H,V=!1,z=!1,G=!1,F){if(this.match(J.colon))H.returnType=this.tsParseTypeOrTypePredicateAnnotation(J.colon);let w=F?.isFunctionDeclaration?"TSDeclareFunction":F?.isClassMethod?"TSDeclareMethod":void 0;if(w&&!this.match(J.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(H,w);if(w==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(H.start,E.DeclareFunctionHasImplementation),H.declare)return super.parseFunctionBody(H,V,z,!1),this.finishNode(H,w)}return super.parseFunctionBody(H,V,z,G),H}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let H=this.startNode(),V=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(J.dot)){H.meta=V;let C=this.containsEsc;if(H.property=this.parseIdent(!0),H.property.name!=="target")this.raiseRecoverable(H.property.start,"The only valid meta property for new is 'new.target'");if(C)this.raiseRecoverable(H.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(H.start,"'new.target' can only be used in functions and class static block");return this.finishNode(H,"MetaProperty")}let z=this.start,G=this.startLoc,F=this.type===J._import;if(H.callee=this.parseSubscripts(this.parseExprAtom(),z,G,!0,!1),F&&H.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:w}=H;if(w.type==="TSInstantiationExpression"&&!w.extra?.parenthesized)H.typeArguments=w.typeArguments,H.callee=w.expression;if(this.eat(J.parenL))H.arguments=this.parseExprList(J.parenR,this.ecmaVersion>=8,!1);else H.arguments=[];return this.finishNode(H,"NewExpression")}parseExprOp(H,V,z,G,F){if(J._in.binop>G&&!this.hasPrecedingLineBreak()){let w;if(this.isContextual("as"))w="TSAsExpression";if(this.isContextual("satisfies"))w="TSSatisfiesExpression";if(w){let C=this.startNodeAt(V,z);C.expression=H;let D=this.tsTryNextParseConstantContext();if(D)C.typeAnnotation=D;else C.typeAnnotation=this.tsNextThenParseType();return this.finishNode(C,w),this.reScan_lt_gt(),this.parseExprOp(C,V,z,G,F)}}return super.parseExprOp(H,V,z,G,F)}parseImportSpecifiers(){let H=[],V=!0;if(K.tokenIsIdentifier(this.type)){if(H.push(this.parseImportDefaultSpecifier()),!this.eat(J.comma))return H}if(this.type===J.star)return H.push(this.parseImportNamespaceSpecifier()),H;this.expect(J.braceL);while(!this.eat(J.braceR)){if(!V){if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break}else V=!1;H.push(this.parseImportSpecifier())}return H}parseImport(H){let V=this.lookahead();if(H.importKind="value",this.importOrExportOuterKind="value",f(V.type)||this.match(J.star)||this.match(J.braceL)){let z=this.lookahead(2);if(z.type!==J.comma&&!this.isContextualWithState("from",z)&&z.type!==J.eq&&this.ts_eatContextualWithState("type",1,V))this.importOrExportOuterKind="type",H.importKind="type",V=this.lookahead(),z=this.lookahead(2);if(f(V.type)&&z.type===J.eq){this.next();let G=this.tsParseImportEqualsDeclaration(H);return this.importOrExportOuterKind="value",G}}if(this.next(),this.type===J.string)H.specifiers=[],H.source=this.parseExprAtom();else H.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),H.source=this.type===J.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ImportDeclaration"),this.importOrExportOuterKind="value",H.importKind==="type"&&H.specifiers.length>1&&H.specifiers[0].type==="ImportDefaultSpecifier")this.raise(H.start,E.TypeImportCannotSpecifyDefaultAndNamed);return H}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let H=this.startNode();return this.next(),H.abstract=!0,this.parseClass(H,!0)}if(this.match(B.interface)){let H=this.tsParseInterfaceDeclaration(this.startNode());if(H)return H}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(H,V){if(this.ecmaVersion>=11)if(this.eatContextual("as"))H.exported=this.parseModuleExportName(),this.checkExport(V,H.exported,this.lastTokStart);else H.exported=null;if(this.expectContextual("from"),this.type!==J.string)this.unexpected();return H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H),this.semicolon(),this.finishNode(H,"ExportAllDeclaration")}parseDynamicImport(H){if(this.next(),H.source=this.parseMaybeAssign(),this.eat(J.comma)){let V=this.parseExpression();H.arguments=[V]}if(!this.eat(J.parenR)){let V=this.start;if(this.eat(J.comma)&&this.eat(J.parenR))this.raiseRecoverable(V,"Trailing comma is not allowed in import()");else this.unexpected(V)}return this.finishNode(H,"ImportExpression")}parseExport(H,V){let z=this.lookahead();if(this.ts_eatWithState(J._import,2,z)){if(this.ts_isContextual(B.type)&&this.lookaheadCharCode()!==61)H.importKind="type",this.importOrExportOuterKind="type",this.next();else H.importKind="value",this.importOrExportOuterKind="value";let G=this.tsParseImportEqualsDeclaration(H,!0);return this.importOrExportOuterKind=void 0,G}else if(this.ts_eatWithState(J.eq,2,z)){let G=H;return G.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(G,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let G=H;return this.expectContextual("namespace"),G.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(G,"TSNamespaceExportDeclaration")}else{let G=this.lookahead(2).type;if(this.ts_isContextualWithState(z,B.type)&&(G===J.braceL||G===J.star))this.next(),this.importOrExportOuterKind="type",H.exportKind="type";else this.importOrExportOuterKind="value",H.exportKind="value";if(this.next(),this.eat(J.star))return this.parseExportAllDeclaration(H,V);if(this.eat(J._default))return this.checkExport(V,"default",this.lastTokStart),H.declaration=this.parseExportDefaultDeclaration(),this.finishNode(H,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(H.declaration=this.parseExportDeclaration(H),H.declaration.type==="VariableDeclaration")this.checkVariableExport(V,H.declaration.declarations);else this.checkExport(V,H.declaration.id,H.declaration.id.start);H.specifiers=[],H.source=null}else{if(H.declaration=null,H.specifiers=this.parseExportSpecifiers(V),this.eatContextual("from")){if(this.type!==J.string)this.unexpected();H.source=this.parseExprAtom(),this.parseMaybeImportAttributes(H)}else{for(let F of H.specifiers)if(this.checkUnreserved(F.local),this.checkLocalExport(F.local),F.local.type==="Literal")this.raise(F.local.start,"A string literal cannot be used as an exported binding without `from`.");H.source=null}this.semicolon()}return this.finishNode(H,"ExportNamedDeclaration")}}checkExport(H,V,z){if(!H)return;if(typeof V!=="string")V=V.type==="Identifier"?V.name:V.value;H[V]=!0}parseMaybeDefault(H,V,z){let G=super.parseMaybeDefault(H,V,z);if(G.type==="AssignmentPattern"&&G.typeAnnotation&&G.right.start<G.typeAnnotation.start)this.raise(G.typeAnnotation.start,E.TypeAnnotationAfterAssign);return G}typeCastToParameter(H){return H.expression.typeAnnotation=H.typeAnnotation,this.resetEndLocation(H.expression,H.typeAnnotation.end,H.typeAnnotation.loc?.end),H.expression}toAssignableList(H,V){if(!H)H=[];for(let z=0;z<H.length;z++){let G=H[z];if(G?.type==="TSTypeCastExpression")H[z]=this.typeCastToParameter(G)}return super.toAssignableList(H,V)}reportReservedArrowTypeParam(H){if(H.params.length===1&&!H.extra?.trailingComma&&Z)this.raise(H.start,E.ReservedArrowTypeParam)}parseExprAtom(H,V,z){if(this.type===B.jsxText)return this.jsx_parseText();else if(this.type===B.jsxTagStart)return this.jsx_parseElement();else if(this.type===B.at)return this.parseDecorators(),this.parseExprAtom();else if(f(this.type)){let G=this.potentialArrowAt===this.start,F=this.start,w=this.startLoc,C=this.containsEsc,D=this.parseIdent(!1);if(this.ecmaVersion>=8&&!C&&D.name==="async"&&!this.canInsertSemicolon()&&this.eat(J._function))return this.overrideContext(M.f_expr),this.parseFunction(this.startNodeAt(F,w),0,!1,!0,V);if(G&&!this.canInsertSemicolon()){if(this.eat(J.arrow))return this.parseArrowExpression(this.startNodeAt(F,w),[D],!1,V);if(this.ecmaVersion>=8&&D.name==="async"&&this.type===J.name&&!C&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(D=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(J.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(F,w),[D],!0,V)}}return D}else return super.parseExprAtom(H,V,z)}parseExprAtomDefault(){if(f(this.type)){let H=this.potentialArrowAt===this.start,V=this.containsEsc,z=this.parseIdent();if(!V&&z.name==="async"&&!this.canInsertSemicolon()){let{type:G}=this;if(G===J._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(f(G))if(this.lookaheadCharCode()===61){let F=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(J.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[F],!0)}else return z}if(H&&this.match(J.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(z),[z],!1);return z}else this.unexpected()}parseIdentNode(){let H=this.startNode();if(a(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))H.name=this.value;else return super.parseIdentNode();return H}parseVarStatement(H,V,z=!1){let{isAmbientContext:G}=this;this.next(),super.parseVar(H,!1,V,z||G),this.semicolon();let F=this.finishNode(H,"VariableDeclaration");if(!G)return F;for(let{id:w,init:C}of F.declarations){if(!C)continue;if(V!=="const"||!!w.typeAnnotation)this.raise(C.start,E.InitializerNotAllowedInAmbientContext);else if(C.type!=="StringLiteral"&&C.type!=="BooleanLiteral"&&C.type!=="NumericLiteral"&&C.type!=="BigIntLiteral"&&(C.type!=="TemplateLiteral"||C.expressions.length>0)&&!kQ(C))this.raise(C.start,E.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return F}parseStatement(H,V,z){if(this.match(B.at))this.parseDecorators(!0);if(this.match(J._const)&&this.isLookaheadContextual("enum")){let G=this.startNode();return this.expect(J._const),this.tsParseEnumDeclaration(G,{const:!0})}if(this.ts_isContextual(B.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(B.interface)){let G=this.tsParseInterfaceDeclaration(this.startNode());if(G)return G}return super.parseStatement(H,V,z)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(H){if(this.eat(J.question))H.optional=!0;if(H.readonly&&this.match(J.parenL))this.raise(H.start,E.ClassMethodHasReadonly);if(H.declare&&this.match(J.parenL))this.raise(H.start,E.ClassMethodHasDeclare)}parseExpressionStatement(H,V){return(V.type==="Identifier"?this.tsParseExpressionStatement(H,V):void 0)||super.parseExpressionStatement(H,V)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(B.at))return!0;return super.shouldParseExportStatement()}parseConditional(H,V,z,G,F){if(this.eat(J.question)){let w=this.startNodeAt(V,z);return w.test=H,w.consequent=this.parseMaybeAssign(),this.expect(J.colon),w.alternate=this.parseMaybeAssign(G),this.finishNode(w,"ConditionalExpression")}return H}parseMaybeConditional(H,V){let z=this.start,G=this.startLoc,F=this.parseExprOps(H,V);if(this.checkExpressionErrors(V))return F;if(!this.maybeInArrowParameters||!this.match(J.question))return this.parseConditional(F,z,G,H,V);let w=this.tryParse(()=>this.parseConditional(F,z,G,H,V));if(!w.node){if(w.error)this.setOptionalParametersError(V,w.error);return F}if(w.error)this.setLookaheadState(w.failState);return w.node}parseParenItem(H){let V=this.start,z=this.startLoc;if(H=super.parseParenItem(H),this.eat(J.question))H.optional=!0,this.resetEndLocation(H);if(this.match(J.colon)){let G=this.startNodeAt(V,z);return G.expression=H,G.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(G,"TSTypeCastExpression")}return H}parseExportDeclaration(H){if(!this.isAmbientContext&&this.ts_isContextual(B.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(H));let V=this.start,z=this.startLoc,G=this.eatContextual("declare");if(G&&(this.ts_isContextual(B.declare)||!this.shouldParseExportStatement()))this.raise(this.start,E.ExpectedAmbientAfterExportDeclare);let w=f(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!w)return null;if(w.type==="TSInterfaceDeclaration"||w.type==="TSTypeAliasDeclaration"||G)H.exportKind="type";if(G)this.resetStartLocation(w,V,z),w.declare=!0;return w}parseClassId(H,V){if(!V&&this.isContextual("implements"))return;super.parseClassId(H,V);let z=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(z)H.typeParameters=z}parseClassPropertyAnnotation(H){if(!H.optional){if(this.value==="!"&&this.eat(J.prefix))H.definite=!0;else if(this.eat(J.question))H.optional=!0}let V=this.tsTryParseTypeAnnotation();if(V)H.typeAnnotation=V}parseClassField(H){if(H.key.type==="PrivateIdentifier"){if(H.abstract)this.raise(H.start,E.PrivateElementHasAbstract);if(H.accessibility)this.raise(H.start,E.PrivateElementHasAccessibility({modifier:H.accessibility}));this.parseClassPropertyAnnotation(H)}else{if(this.parseClassPropertyAnnotation(H),this.isAmbientContext&&!(H.readonly&&!H.typeAnnotation)&&this.match(J.eq))this.raise(this.start,E.DeclareClassFieldHasInitializer);if(H.abstract&&this.match(J.eq)){let{key:z}=H;this.raise(this.start,E.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!H.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(H)}parseClassMethod(H,V,z,G){let F=H.kind==="constructor",w=H.key.type==="PrivateIdentifier",C=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(w){if(C)H.typeParameters=C;if(H.accessibility)this.raise(H.start,E.PrivateMethodsHasAccessibility({modifier:H.accessibility}))}else if(C&&F)this.raise(C.start,E.ConstructorHasTypeParameters);let{declare:D=!1,kind:S}=H;if(D&&(S==="get"||S==="set"))this.raise(H.start,E.DeclareAccessor({kind:S}));if(C)H.typeParameters=C;let I=H.key;if(H.kind==="constructor"){if(V)this.raise(I.start,"Constructor can't be a generator");if(z)this.raise(I.start,"Constructor can't be an async method")}else if(H.static&&s2(H,"prototype"))this.raise(I.start,"Classes may not have a static property named prototype");let h=H.value=this.parseMethod(V,z,G,!0,H);if(H.kind==="get"&&h.params.length!==0)this.raiseRecoverable(h.start,"getter should have no params");if(H.kind==="set"&&h.params.length!==1)this.raiseRecoverable(h.start,"setter should have exactly one param");if(H.kind==="set"&&h.params[0].type==="RestElement")this.raiseRecoverable(h.params[0].start,"Setter cannot use rest params");return this.finishNode(H,"MethodDefinition")}isClassMethod(){return this.match(J.relational)}parseClassElement(H){if(this.eat(J.semi))return null;let V=this.startNode(),z="",G=!1,F=!1,w="method",C=!1,D=["declare","private","public","protected","accessor","override","abstract","readonly","static"],S=this.tsParseModifiers({modified:V,allowedModifiers:D,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:E.InvalidModifierOnTypeParameterPositions});C=Boolean(S.static);let I=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(V,D))this.raise(this.start,E.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(V),V}else{let h=this.tsTryParseIndexSignature(V);if(h){if(V.abstract)this.raise(V.start,E.IndexSignatureHasAbstract);if(V.accessibility)this.raise(V.start,E.IndexSignatureHasAccessibility({modifier:V.accessibility}));if(V.declare)this.raise(V.start,E.IndexSignatureHasDeclare);if(V.override)this.raise(V.start,E.IndexSignatureHasOverride);return h}if(!this.inAbstractClass&&V.abstract)this.raise(V.start,E.NonAbstractClassHasAbstractMethod);if(V.override){if(!H)this.raise(V.start,E.OverrideNotInSubClass)}if(V.static=C,C){if(!(this.isClassElementNameStart()||this.type===J.star))z="static"}if(!z&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===J.star)&&!this.canInsertSemicolon())F=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!F)&&this.eat(J.star))G=!0;if(!z&&!F&&!G){let c=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())w=c;else z=c}if(z)V.computed=!1,V.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),V.key.name=z,this.finishNode(V.key,"Identifier");else this.parseClassElementName(V);if(this.parsePostMemberNameModifiers(V),this.isClassMethod()||this.ecmaVersion<13||this.type===J.parenL||w!=="method"||G||F){let c=!V.static&&s2(V,"constructor"),m=c&&H;if(c&&w!=="method")this.raise(V.key.start,"Constructor can't have get/set modifier");V.kind=c?"constructor":w,this.parseClassMethod(V,G,F,m)}else this.parseClassField(V);return V}};if(V.declare)this.tsInAmbientContext(I);else I();return V}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(H){if(super.parseClassSuper(H),H.superClass&&(this.tsMatchLeftRelational()||this.match(J.bitShift)))H.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))H.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(H){let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V)H.typeParameters=V;super.parseFunctionParams(H)}parseVarId(H,V){if(super.parseVarId(H,V),H.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(J.prefix))H.definite=!0;let z=this.tsTryParseTypeAnnotation();if(z)H.id.typeAnnotation=z,this.resetEndLocation(H.id)}parseArrowExpression(H,V,z,G){if(this.match(J.colon))H.returnType=this.tsParseTypeAnnotation();let F=this.yieldPos,w=this.awaitPos,C=this.awaitIdentPos;this.enterScope(i9(z,!1)|q8.SCOPE_ARROW),this.initFunction(H);let D=this.maybeInArrowParameters;if(this.ecmaVersion>=8)H.async=!!z;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,H.params=this.toAssignableList(V,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(H,!0,!1,G),this.yieldPos=F,this.awaitPos=w,this.awaitIdentPos=C,this.maybeInArrowParameters=D,this.finishNode(H,"ArrowFunctionExpression")}parseMaybeAssignOrigin(H,V,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(H);else this.exprAllowed=!1;let G=!1,F=-1,w=-1,C=-1;if(V)F=V.parenthesizedAssign,w=V.trailingComma,C=V.doubleProto,V.parenthesizedAssign=V.trailingComma=-1;else V=new u1,G=!0;let D=this.start,S=this.startLoc;if(this.type===J.parenL||f(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=H==="await";let I=this.parseMaybeConditional(H,V);if(z)I=z.call(this,I,D,S);if(this.type.isAssign){let h=this.startNodeAt(D,S);if(h.operator=this.value,this.type===J.eq)I=this.toAssignable(I,!0,V);if(!G)V.parenthesizedAssign=V.trailingComma=V.doubleProto=-1;if(V.shorthandAssign>=I.start)V.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===J.eq)this.checkLValPattern(I);else this.checkLValSimple(I);if(h.left=I,this.next(),h.right=this.parseMaybeAssign(H),C>-1)V.doubleProto=C;return this.finishNode(h,"AssignmentExpression")}else if(G)this.checkExpressionErrors(V,!0);if(F>-1)V.parenthesizedAssign=F;if(w>-1)V.trailingComma=w;return I}parseMaybeAssign(H,V,z){let G,F,w;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(G=this.cloneCurLookaheadState(),F=this.tryParse(()=>this.parseMaybeAssignOrigin(H,V,z),G),!F.error)return F.node;let S=this.context,I=S[S.length-1],h=S[S.length-2];if(I===K.tokContexts.tc_oTag&&h===K.tokContexts.tc_expr)S.pop(),S.pop();else if(I===K.tokContexts.tc_oTag||I===K.tokContexts.tc_expr)S.pop()}if(!F?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(H,V,z);if(!G||this.compareLookaheadState(G,this.getCurLookaheadState()))G=this.cloneCurLookaheadState();let C,D=this.tryParse((S)=>{C=this.tsParseTypeParameters(this.tsParseConstModifier);let I=this.parseMaybeAssignOrigin(H,V,z);if(I.type!=="ArrowFunctionExpression"||I.extra?.parenthesized)S();if(C?.params.length!==0)this.resetStartLocationFromNode(I,C);return I.typeParameters=C,I},G);if(!D.error&&!D.aborted){if(C)this.reportReservedArrowTypeParam(C);return D.node}if(!F){if(a2(!0),w=this.tryParse(()=>this.parseMaybeAssignOrigin(H,V,z),G),!w.error)return w.node}if(F?.node)return this.setLookaheadState(F.failState),F.node;if(D.node){if(this.setLookaheadState(D.failState),C)this.reportReservedArrowTypeParam(C);return D.node}if(w?.node)return this.setLookaheadState(w.failState),w.node;if(F?.thrown)throw F.error;if(D.thrown)throw D.error;if(w?.thrown)throw w.error;throw F?.error||D.error||w?.error}parseAssignableListItem(H){let V=[];while(this.match(B.at))V.push(this.parseDecorator());let z=this.start,G=this.startLoc,F,w=!1,C=!1;if(H!==void 0){let I={};if(this.tsParseModifiers({modified:I,allowedModifiers:["public","private","protected","override","readonly"]}),F=I.accessibility,C=I.override,w=I.readonly,H===!1&&(F||w||C))this.raise(G.column,E.UnexpectedParameterModifier)}let D=this.parseMaybeDefault(z,G);this.parseBindingListItem(D);let S=this.parseMaybeDefault(D.start,D.loc.start,D);if(V.length)S.decorators=V;if(F||w||C){let I=this.startNodeAt(z,G);if(F)I.accessibility=F;if(w)I.readonly=w;if(C)I.override=C;if(S.type!=="Identifier"&&S.type!=="AssignmentPattern")this.raise(I.start,E.UnsupportedParameterPropertyKind);return I.parameter=S,this.finishNode(I,"TSParameterProperty")}return S}checkLValInnerPattern(H,V=q8.BIND_NONE,z){switch(H.type){case"TSParameterProperty":this.checkLValInnerPattern(H.parameter,V,z);break;default:{super.checkLValInnerPattern(H,V,z);break}}}parseBindingListItem(H){if(this.eat(J.question)){if(H.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(H.start,E.PatternIsOptional);H.optional=!0}let V=this.tsTryParseTypeAnnotation();if(V)H.typeAnnotation=V;return this.resetEndLocation(H),H}isAssignable(H,V){switch(H.type){case"TSTypeCastExpression":return this.isAssignable(H.expression,V);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let z=H.properties.length-1;return H.properties.every((G,F)=>{return G.type!=="ObjectMethod"&&(F===z||G.type!=="SpreadElement")&&this.isAssignable(G)})}case"Property":case"ObjectProperty":return this.isAssignable(H.value);case"SpreadElement":return this.isAssignable(H.argument);case"ArrayExpression":return H.elements.every((z)=>z===null||this.isAssignable(z));case"AssignmentExpression":return H.operator==="=";case"ParenthesizedExpression":return this.isAssignable(H.expression);case"MemberExpression":case"OptionalMemberExpression":return!V;default:return!1}}toAssignable(H,V=!1,z=new u1){switch(H.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(H,V,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(V);else this.raise(H.start,E.UnexpectedTypeCastInParameter);return this.toAssignable(H.expression,V,z);case"MemberExpression":break;case"AssignmentExpression":if(!V&&H.left.type==="TSTypeCastExpression")H.left=this.typeCastToParameter(H.left);return super.toAssignable(H,V,z);case"TSTypeCastExpression":return this.typeCastToParameter(H);default:return super.toAssignable(H,V,z)}return H}toAssignableParenthesizedExpression(H,V,z){switch(H.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(H.expression,V,z);default:return super.toAssignable(H,V,z)}}parseBindingAtom(){switch(this.type){case J._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(H){let V;if(this.match(J.colon))V=H.every((z)=>this.isAssignable(z,!0));else V=!this.canInsertSemicolon();if(V){if(this.match(J.colon)){let z=this.tryParse((G)=>{let F=this.tsParseTypeOrTypePredicateAnnotation(J.colon);if(this.canInsertSemicolon()||!this.match(J.arrow))G();return F});if(z.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!z.thrown){if(z.error)this.setLookaheadState(z.failState);this.shouldParseArrowReturnType=z.node}}if(!this.match(J.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,V}parseParenArrowList(H,V,z,G){let F=this.startNodeAt(H,V);return F.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(F,z,!1,G)}parseParenAndDistinguishExpression(H,V){let z=this.start,G=this.startLoc,F,w=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let C=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let D=this.start,S=this.startLoc,I=[],h=!0,c=!1,m=new u1,n=this.yieldPos,Y8=this.awaitPos,T;this.yieldPos=0,this.awaitPos=0;while(this.type!==J.parenR)if(h?h=!1:this.expect(J.comma),w&&this.afterTrailingComma(J.parenR,!0)){c=!0;break}else if(this.type===J.ellipsis){if(T=this.start,I.push(this.parseParenItem(this.parseRestBinding())),this.type===J.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else I.push(this.parseMaybeAssign(V,m,this.parseParenItem));let r=this.lastTokEnd,_=this.lastTokEndLoc;if(this.expect(J.parenR),this.maybeInArrowParameters=C,H&&this.shouldParseArrow(I)&&this.eat(J.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=n,this.awaitPos=Y8,this.parseParenArrowList(z,G,I,V);if(!I.length||c)this.unexpected(this.lastTokStart);if(T)this.unexpected(T);if(this.checkExpressionErrors(m,!0),this.yieldPos=n||this.yieldPos,this.awaitPos=Y8||this.awaitPos,I.length>1)F=this.startNodeAt(D,S),F.expressions=I,this.finishNodeAt(F,"SequenceExpression",r,_);else F=I[0]}else F=this.parseParenExpression();if(this.options.preserveParens){let C=this.startNodeAt(z,G);return C.expression=F,this.finishNode(C,"ParenthesizedExpression")}else return F}parseTaggedTemplateExpression(H,V,z,G){let F=this.startNodeAt(V,z);if(F.tag=H,F.quasi=this.parseTemplate({isTagged:!0}),G)this.raise(V,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(F,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(J.colon)){let H=this.tryParse((V)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(J.colon);if(this.canInsertSemicolon()||!this.match(J.arrow))V();return z});if(H.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!H.thrown){if(H.error)this.setLookaheadState(H.failState);return this.shouldParseAsyncArrowReturnType=H.node,!this.canInsertSemicolon()&&this.eat(J.arrow)}}else return!this.canInsertSemicolon()&&this.eat(J.arrow)}parseSubscriptAsyncArrow(H,V,z,G){let F=this.startNodeAt(H,V);return F.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(F,z,!0,G)}parseExprList(H,V,z,G){let F=[],w=!0;while(!this.eat(H)){if(!w){if(this.expect(J.comma),V&&this.afterTrailingComma(H))break}else w=!1;let C;if(z&&this.type===J.comma)C=null;else if(this.type===J.ellipsis){if(C=this.parseSpread(G),this.maybeInArrowParameters&&this.match(J.colon))C.typeAnnotation=this.tsParseTypeAnnotation();if(G&&this.type===J.comma&&G.trailingComma<0)G.trailingComma=this.start}else C=this.parseMaybeAssign(!1,G,this.parseParenItem);F.push(C)}return F}parseSubscript(H,V,z,G,F,w,C){let D=w;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(J.prefix)){this.exprAllowed=!1,this.next();let m=this.startNodeAt(V,z);return m.expression=H,H=this.finishNode(m,"TSNonNullExpression"),H}let S=!1;if(this.match(J.questionDot)&&this.lookaheadCharCode()===60){if(G)return H;H.optional=!0,D=S=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(J.bitShift)){let m,n=this.tsTryParseAndCatch(()=>{if(!G&&this.atPossibleAsyncArrow(H)){let _=this.tsTryParseGenericAsyncArrowFunction(V,z,C);if(_)return H=_,H}let Y8=this.tsParseTypeArgumentsInExpression();if(!Y8)return H;if(S&&!this.match(J.parenL))return m=this.curPosition(),H;if(v(this.type)||this.type===J.backQuote){let _=this.parseTaggedTemplateExpression(H,V,z,D);return _.typeArguments=Y8,_}if(!G&&this.eat(J.parenL)){let _=new u1,s=this.startNodeAt(V,z);if(s.callee=H,s.arguments=this.parseExprList(J.parenR,this.ecmaVersion>=8,!1,_),this.tsCheckForInvalidTypeCasts(s.arguments),s.typeArguments=Y8,D)s.optional=S;return this.checkExpressionErrors(_,!0),H=this.finishNode(s,"CallExpression"),H}let T=this.type;if(this.tsMatchRightRelational()||T===J.bitShift||T!==J.parenL&&EQ(T)&&!this.hasPrecedingLineBreak())return;let r=this.startNodeAt(V,z);return r.expression=H,r.typeArguments=Y8,this.finishNode(r,"TSInstantiationExpression")});if(m)this.unexpected(m);if(n){if(n.type==="TSInstantiationExpression"&&(this.match(J.dot)||this.match(J.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,E.InvalidPropertyAccessAfterInstantiationExpression);return H=n,H}}let I=this.ecmaVersion>=11,h=I&&this.eat(J.questionDot);if(G&&h)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let c=this.eat(J.bracketL);if(c||h&&this.type!==J.parenL&&this.type!==J.backQuote||this.eat(J.dot)){let m=this.startNodeAt(V,z);if(m.object=H,c)m.property=this.parseExpression(),this.expect(J.bracketR);else if(this.type===J.privateId&&H.type!=="Super")m.property=this.parsePrivateIdent();else m.property=this.parseIdent(this.options.allowReserved!=="never");if(m.computed=!!c,I)m.optional=h;H=this.finishNode(m,"MemberExpression")}else if(!G&&this.eat(J.parenL)){let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let n=new u1,Y8=this.yieldPos,T=this.awaitPos,r=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let _=this.parseExprList(J.parenR,this.ecmaVersion>=8,!1,n);if(F&&!h&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(n,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=Y8,this.awaitPos=T,this.awaitIdentPos=r,H=this.parseSubscriptAsyncArrow(V,z,_,C)}else{this.checkExpressionErrors(n,!0),this.yieldPos=Y8||this.yieldPos,this.awaitPos=T||this.awaitPos,this.awaitIdentPos=r||this.awaitIdentPos;let s=this.startNodeAt(V,z);if(s.callee=H,s.arguments=_,I)s.optional=h;H=this.finishNode(s,"CallExpression")}this.maybeInArrowParameters=m}else if(this.type===J.backQuote){if(h||D)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let m=this.startNodeAt(V,z);m.tag=H,m.quasi=this.parseTemplate({isTagged:!0}),H=this.finishNode(m,"TaggedTemplateExpression")}return H}parseGetterSetter(H){H.kind=H.key.name,this.parsePropertyName(H);let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(!1),V)H.value.typeParameters=V;let z=H.kind==="get"?0:1,G=H.value.params[0];if(z=G&&this.isThisParam(G)?z+1:z,H.value.params.length!==z){let w=H.value.start;if(H.kind==="get")this.raiseRecoverable(w,"getter should have no params");else this.raiseRecoverable(w,"setter should have exactly one param")}else if(H.kind==="set"&&H.value.params[0].type==="RestElement")this.raiseRecoverable(H.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(H,V,z,G,F,w,C,D){if(this.tsMatchLeftRelational()){if(V)this.unexpected();H.kind="init",H.method=!0;let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(H.value=this.parseMethod(z,G),S)H.value.typeParameters=S;return}return super.parsePropertyValue(H,V,z,G,F,w,C,D)}parseProperty(H,V){if(!H){let z=[];if(this.match(B.at))while(this.match(B.at))z.push(this.parseDecorator());let G=super.parseProperty(H,V);if(G.type==="SpreadElement"){if(z.length)this.raise(G.start,b0.SpreadElementDecorator)}if(z.length)G.decorators=z,z=[];return G}return super.parseProperty(H,V)}parseCatchClauseParam(){let H=this.parseBindingAtom(),V=H.type==="Identifier";this.enterScope(V?q8.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(H,V?q8.BIND_SIMPLE_CATCH:q8.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)H.typeAnnotation=z,this.resetEndLocation(H);return this.expect(J.parenR),H}parseClass(H,V){let z=this.inAbstractClass;this.inAbstractClass=!!H.abstract;try{this.next(),this.takeDecorators(H);let G=this.strict;this.strict=!0,this.parseClassId(H,V),this.parseClassSuper(H);let F=this.enterClassBody(),w=this.startNode(),C=!1;w.body=[];let D=[];this.expect(J.braceL);while(this.type!==J.braceR){if(this.match(B.at)){D.push(this.parseDecorator());continue}let S=this.parseClassElement(H.superClass!==null);if(D.length)S.decorators=D,this.resetStartLocationFromNode(S,D[0]),D=[];if(S){if(w.body.push(S),S.type==="MethodDefinition"&&S.kind==="constructor"&&S.value.type==="FunctionExpression"){if(C)this.raiseRecoverable(S.start,"Duplicate constructor in the same class");if(C=!0,S.decorators&&S.decorators.length>0)this.raise(S.start,b0.DecoratorConstructor)}else if(S.key&&S.key.type==="PrivateIdentifier"&&S.value?.type!=="TSDeclareMethod"&&LQ(F,S))this.raiseRecoverable(S.key.start,`Identifier '#${S.key.name}' has already been declared`)}}if(this.strict=G,this.next(),D.length)this.raise(this.start,b0.TrailingDecorator);return H.body=this.finishNode(w,"ClassBody"),this.exitClassBody(),this.finishNode(H,V?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let H=this.tsTryParseTypeParameters(),V=this.parseBindingList(J.parenR,!1,this.ecmaVersion>=8,!0);if(H)V.typeParameters=H;return V}parseMethod(H,V,z,G,F){let w=this.startNode(),C=this.yieldPos,D=this.awaitPos,S=this.awaitIdentPos;if(this.initFunction(w),this.ecmaVersion>=6)w.generator=H;if(this.ecmaVersion>=8)w.async=!!V;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(i9(V,w.generator)|q8.SCOPE_SUPER|(z?q8.SCOPE_DIRECT_SUPER:0)),this.expect(J.parenL),w.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(w,!1,!0,!1,{isClassMethod:G}),this.yieldPos=C,this.awaitPos=D,this.awaitIdentPos=S,F&&F.abstract){if(!!w.body){let{key:h}=F;this.raise(F.start,E.AbstractMethodHasImplementation({methodName:h.type==="Identifier"&&!F.computed?h.name:`[${this.input.slice(h.start,h.end)}]`}))}}return this.finishNode(w,"FunctionExpression")}static parse(H,V){if(V.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else V.locations=!0;let z=new this(V,H);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(H,V,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let G=new this(z,H,V);if(Q)G.isAmbientContext=!0;return G.nextToken(),G.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(B.type)){let V=this.startNode();return V.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(V,!0,this.importOrExportOuterKind==="type"),this.finishNode(V,"ImportSpecifier")}else{let V=super.parseImportSpecifier();return V.importKind="value",V}}parseExportSpecifier(H){let V=this.ts_isContextual(B.type);if(!this.match(J.string)&&V){let G=this.startNode();return G.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(G,!1,this.importOrExportOuterKind==="type"),this.finishNode(G,"ExportSpecifier"),this.checkExport(H,G.exported,G.exported.start),G}else{let G=super.parseExportSpecifier(H);return G.exportKind="value",G}}parseTypeOnlyImportExportSpecifier(H,V,z){let G=V?"imported":"local",F=V?"local":"exported",w=H[G],C,D=!1,S=!0,I=w.start;if(this.isContextual("as")){let c=this.parseIdent();if(this.isContextual("as")){let m=this.parseIdent();if(a(this.type))D=!0,w=c,C=V?this.parseIdent():this.parseModuleExportName(),S=!1;else C=m,S=!1}else if(a(this.type))S=!1,C=V?this.parseIdent():this.parseModuleExportName();else D=!0,w=c}else if(a(this.type))if(D=!0,V){if(w=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(w)}else w=this.parseModuleExportName();if(D&&z)this.raise(I,V?E.TypeModifierIsUsedInTypeImports:E.TypeModifierIsUsedInTypeExports);H[G]=w,H[F]=C;let h=V?"importKind":"exportKind";if(H[h]=D?"type":"value",S&&this.eatContextual("as"))H[F]=V?this.parseIdent():this.parseModuleExportName();if(!H[F])H[F]=this.copyNode(H[G]);if(V)this.checkLValSimple(H[F],q8.BIND_LEXICAL)}raiseCommonCheck(H,V,z){switch(V){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(J.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(H,V)}return z?super.raiseRecoverable(H,V):super.raise(H,V)}raiseRecoverable(H,V){return this.raiseCommonCheck(H,V,!0)}raise(H,V){return this.raiseCommonCheck(H,V,!0)}updateContext(H){let{type:V}=this;if(V==J.braceL){var z=this.curContext();if(z==P.tc_oTag)this.context.push(M.b_expr);else if(z==P.tc_expr)this.context.push(M.b_tmpl);else super.updateContext(H);this.exprAllowed=!0}else if(V===J.slash&&H===B.jsxTagStart)this.context.length-=2,this.context.push(P.tc_cTag),this.exprAllowed=!1;else return super.updateContext(H)}jsx_parseOpeningElementAt(H,V){let z=this.startNodeAt(H,V),G=this.jsx_parseElementName();if(G)z.name=G;if(this.match(J.relational)||this.match(J.bitShift)){let F=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(F)z.typeArguments=F}z.attributes=[];while(this.type!==J.slash&&this.type!==B.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(J.slash),this.expect(B.jsxTagEnd),this.finishNode(z,G?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(H){if(H===x1)this.importsStack.push([]);super.enterScope(H);let V=super.currentScope();V.types=[],V.enums=[],V.constEnums=[],V.classes=[],V.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===x1)this.importsStack.pop();super.exitScope()}hasImport(H,V){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(H)>-1)return!0;if(!V&&z>1){for(let G=0;G<z-1;G++)if(this.importsStack[G].indexOf(H)>-1)return!0}return!1}maybeExportDefined(H,V){if(this.inModule&&H.flags&q8.SCOPE_TOP)delete this.undefinedExports[V]}declareName(H,V,z){if(V&q8.BIND_FLAGS_TS_IMPORT){if(this.hasImport(H,!0))this.raise(z,`Identifier '${H}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(H);return}let G=this.currentScope();if(V&q8.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(G,H),G.exportOnlyBindings.push(H);return}if(V===q8.BIND_TS_TYPE||V===q8.BIND_TS_INTERFACE){if(V===q8.BIND_TS_TYPE&&G.types.includes(H))this.raise(z,`type '${H}' has already been declared.`);G.types.push(H)}else super.declareName(H,V,z);if(V&q8.BIND_FLAGS_TS_ENUM)G.enums.push(H);if(V&q8.BIND_FLAGS_TS_CONST_ENUM)G.constEnums.push(H);if(V&q8.BIND_FLAGS_CLASS)G.classes.push(H)}checkLocalExport(H){let{name:V}=H;if(this.hasImport(V))return;let z=this.scopeStack.length;for(let G=z-1;G>=0;G--){let F=this.scopeStack[G];if(F.types.indexOf(V)>-1||F.exportOnlyBindings.indexOf(V)>-1)return}super.checkLocalExport(H)}}return L}}class K5 extends Error{message="";#q;constructor(q,Q,Z){super(Q);this.stack="",this.#q=new T1(q,Q,Z),Object.assign(this,this.#q),this.name="CompileError"}toString(){return this.#q.toString()}toJSON(){return this.#q.toJSON()}}function y(q,Q,Z){let j=typeof q==="number"?q:q?.start,Y=typeof q==="number"?q:q?.end;throw new K5(Q,Z,j!==void 0?[j,Y??j]:void 0)}function V5(q){y(q,"css_empty_declaration",`Declaration cannot be empty
37
37
  https://svelte.dev/e/css_empty_declaration`)}function p9(q){y(q,"css_expected_identifier",`Expected a valid CSS identifier
38
- https://svelte.dev/e/css_expected_identifier`)}function V5(q){y(q,"css_selector_invalid",`Invalid selector
39
- https://svelte.dev/e/css_selector_invalid`)}function X5(q){y(q,"attribute_duplicate",`Attributes need to be unique
40
- https://svelte.dev/e/attribute_duplicate`)}function W5(q){y(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
38
+ https://svelte.dev/e/css_expected_identifier`)}function X5(q){y(q,"css_selector_invalid",`Invalid selector
39
+ https://svelte.dev/e/css_selector_invalid`)}function W5(q){y(q,"attribute_duplicate",`Attributes need to be unique
40
+ https://svelte.dev/e/attribute_duplicate`)}function z5(q){y(q,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
41
41
  https://svelte.dev/e/attribute_empty_shorthand`)}function o9(q,Q){y(q,"block_duplicate_clause",`${Q} cannot appear more than once within a block
42
42
  https://svelte.dev/e/block_duplicate_clause`)}function G5(q){y(q,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
43
- https://svelte.dev/e/block_invalid_continuation_placement`)}function z5(q){y(q,"block_invalid_elseif",`'elseif' should be 'else if'
44
- https://svelte.dev/e/block_invalid_elseif`)}function j5(q,Q,Z){y(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
45
- https://svelte.dev/e/block_invalid_placement`)}function O5(q){y(q,"block_unclosed",`Block was left open
43
+ https://svelte.dev/e/block_invalid_continuation_placement`)}function O5(q){y(q,"block_invalid_elseif",`'elseif' should be 'else if'
44
+ https://svelte.dev/e/block_invalid_elseif`)}function U5(q,Q,Z){y(q,"block_invalid_placement",`{#${Q} ...} block cannot be ${Z}
45
+ https://svelte.dev/e/block_invalid_placement`)}function R5(q){y(q,"block_unclosed",`Block was left open
46
46
  https://svelte.dev/e/block_unclosed`)}function n9(q){y(q,"block_unexpected_close",`Unexpected block closing tag
47
- https://svelte.dev/e/block_unexpected_close`)}function U5(q){y(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
48
- https://svelte.dev/e/const_tag_invalid_expression`)}function R5(q){y(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
49
- https://svelte.dev/e/debug_tag_invalid_arguments`)}function k0(q){y(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function B5(q){y(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
50
- https://svelte.dev/e/directive_invalid_value`)}function F5(q,Q){y(q,"directive_missing_name",`\`${Q}\` name cannot be empty
51
- https://svelte.dev/e/directive_missing_name`)}function M5(q,Q){y(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
52
- https://svelte.dev/e/element_invalid_closing_tag`)}function $5(q,Q,Z){y(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
47
+ https://svelte.dev/e/block_unexpected_close`)}function B5(q){y(q,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
48
+ https://svelte.dev/e/const_tag_invalid_expression`)}function F5(q){y(q,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
49
+ https://svelte.dev/e/debug_tag_invalid_arguments`)}function k0(q){y(q,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function M5(q){y(q,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
50
+ https://svelte.dev/e/directive_invalid_value`)}function $5(q,Q){y(q,"directive_missing_name",`\`${Q}\` name cannot be empty
51
+ https://svelte.dev/e/directive_missing_name`)}function w5(q,Q){y(q,"element_invalid_closing_tag",`\`</${Q}>\` attempted to close an element that was not open
52
+ https://svelte.dev/e/element_invalid_closing_tag`)}function L5(q,Q,Z){y(q,"element_invalid_closing_tag_autoclosed",`\`</${Q}>\` attempted to close element that was already automatically closed by \`<${Z}>\` (cannot nest \`<${Z}>\` inside \`<${Q}>\`)
53
53
  https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function E0(q,Q){y(q,"element_unclosed",`\`<${Q}>\` was left open
54
54
  https://svelte.dev/e/element_unclosed`)}function s9(q){y(q,"expected_attribute_value",`Expected attribute value
55
- https://svelte.dev/e/expected_attribute_value`)}function L5(q){y(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
55
+ https://svelte.dev/e/expected_attribute_value`)}function C5(q){y(q,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
56
56
  https://svelte.dev/e/expected_block_type`)}function a9(q){y(q,"expected_identifier",`Expected an identifier
57
- https://svelte.dev/e/expected_identifier`)}function C5(q){y(q,"expected_pattern",`Expected identifier or destructure pattern
58
- https://svelte.dev/e/expected_pattern`)}function A5(q){y(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
59
- https://svelte.dev/e/expected_tag`)}function v8(q,Q){y(q,"expected_token",`Expected token ${Q}
60
- https://svelte.dev/e/expected_token`)}function w5(q){y(q,"expected_whitespace",`Expected whitespace
61
- https://svelte.dev/e/expected_whitespace`)}function I5(q,Q){y(q,"js_parse_error",`${Q}
62
- https://svelte.dev/e/js_parse_error`)}function P5(q){y(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function r9(q){y(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function S5(q,Q){y(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
57
+ https://svelte.dev/e/expected_identifier`)}function A5(q){y(q,"expected_pattern",`Expected identifier or destructure pattern
58
+ https://svelte.dev/e/expected_pattern`)}function I5(q){y(q,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
59
+ https://svelte.dev/e/expected_tag`)}function E8(q,Q){y(q,"expected_token",`Expected token ${Q}
60
+ https://svelte.dev/e/expected_token`)}function P5(q){y(q,"expected_whitespace",`Expected whitespace
61
+ https://svelte.dev/e/expected_whitespace`)}function S5(q,Q){y(q,"js_parse_error",`${Q}
62
+ https://svelte.dev/e/js_parse_error`)}function D5(q){y(q,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function r9(q){y(q,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function N5(q,Q){y(q,"script_invalid_attribute_value",`If the \`${Q}\` attribute is supplied, it must be a boolean attribute
63
63
  https://svelte.dev/e/script_invalid_attribute_value`)}function t9(q){y(q,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
64
- https://svelte.dev/e/script_invalid_context`)}function D5(q,Q){y(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
65
- https://svelte.dev/e/script_reserved_attribute`)}function N5(q){y(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function T5(q){y(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function b5(q){y(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function e9(q){y(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function k5(q,Q){y(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
66
- https://svelte.dev/e/svelte_meta_duplicate`)}function E5(q,Q){y(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
67
- https://svelte.dev/e/svelte_meta_invalid_content`)}function v5(q,Q){y(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
68
- https://svelte.dev/e/svelte_meta_invalid_placement`)}function h5(q,Q){y(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
69
- https://svelte.dev/e/svelte_meta_invalid_tag`)}function f5(q){y(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
70
- https://svelte.dev/e/svelte_options_deprecated_tag`)}function y5(q){y(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function v0(q,Q){y(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
71
- https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function h0(q){y(q,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function Y1(q){y(q,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
72
- https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function g5(q){y(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function q6(q){y(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
73
- https://svelte.dev/e/svelte_options_invalid_tagname`)}function _5(q){y(q,"svelte_options_reserved_tagname",`Tag name is reserved
74
- https://svelte.dev/e/svelte_options_reserved_tagname`)}function x5(q,Q){y(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
75
- https://svelte.dev/e/svelte_options_unknown_attribute`)}function u5(q){y(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
76
- https://svelte.dev/e/tag_invalid_name`)}function m5(q,Q,Z){y(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
77
- https://svelte.dev/e/tag_invalid_placement`)}function L8(q){y(q,"unexpected_eof",`Unexpected end of input
78
- https://svelte.dev/e/unexpected_eof`)}function l5(q,Q){y(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
79
- https://svelte.dev/e/unexpected_reserved_word`)}function c5(q){y(q,"unterminated_string_constant",`Unterminated string constant
80
- https://svelte.dev/e/unterminated_string_constant`)}function i5(q){y(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
81
- https://svelte.dev/e/void_element_invalid_content`)}var f0=Y8,Q6=f0.extend(H5());function d5(q,Q,Z,Y){let H=Z?Q6:f0,{onComment:V,add_comments:K}=Y6(q,Q),W=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...G){let R=W.call(this,...G);return this.undefinedExports={},R};try{let G=H.parse(q,{onComment:V,sourceType:"module",ecmaVersion:16,locations:!0});return K(G),G}catch(G){return Z6(G)}finally{if(Y)H.prototype.parseStatement=W}}function H1(q,Q,Z){let Y=q.ts?Q6:f0,{onComment:H,add_comments:V}=Y6(Q,q.root.comments,Z);try{let K=Y.parseExpressionAt(Q,Z,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return V(K),K}catch(K){Z6(K)}}function p5(q,Q,Z){let Y=q.ts?Q6:f0,{onComment:H,add_comments:V}=Y6(Q,q.root.comments,Z);try{let K=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let W=K.parseStatement(null,!0,Object.create(null));return V(W),W}catch(K){if(K.pos===Q.length)L8(Q.length);Z6(K)}}var fQ=/ \(\d+:\d+\)$/;function Z6(q){I5(q.pos,q.message.replace(fQ,""))}function L1(q){return n8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function Y6(q,Q,Z=0){return{onComment:(Y,H,V,K,W,G)=>{if(Y&&/\n/.test(H)){let R=V;while(R>0&&q[R-1]!==`
82
- `)R-=1;let O=R;while(/[ \t]/.test(q[O]))O+=1;let $=q.slice(R,O);H=H.replace(new RegExp(`^${$}`,"gm"),"")}Q.push({type:Y?"Block":"Line",value:H,start:V,end:K,loc:{start:W,end:G}})},add_comments(Y){if(Q.length===0)return;if(Q=Q.filter((H)=>H.start>=Z).map(({type:H,value:V,start:K,end:W})=>({type:H,value:V,start:K,end:W})),n8(Y,null,{_(H,{next:V,path:K}){let W;while(Q[0]&&Q[0].start<H.start)W=Q.shift(),(H.leadingComments||=[]).push(W);if(V(),Q[0]){let G=K.at(-1);if(G===void 0||H.end!==G.end){let R=q.slice(H.end,Q[0].start);if((G?.type==="BlockStatement"||G?.type==="Program")&&G.body.indexOf(H)===G.body.length-1||G?.type==="ArrayExpression"&&G.elements.indexOf(H)===G.elements.length-1||G?.type==="ObjectExpression"&&G.properties.indexOf(H)===G.properties.length-1){let $=H.end;while(Q.length){let M=Q[0];if(G&&M.start>=G.end)break;(H.trailingComments||=[]).push(M),Q.shift(),$=M.end}}else if(H.end<=Q[0].start&&/^[,) \t]*$/.test(R))H.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Q.splice(0))}}}function H6(q){if(q<0)return 1/0;return q}function gQ(q,Q,Z){let Y;if(Z==="`")Y=q;else Y=q.slice(0,H6(q.indexOf(`
83
- `,Q)));return J6(Y,Q,Z)}function _Q(q,Q){let Z=J6(q,Q,"/"),Y=J6(q,Q,`
84
- `);return Z<Y?Z:1/0}function J6(q,Q,Z){let Y=Q;while(!0){let H=q.indexOf(Z,Y);if(H===-1)return 1/0;if(xQ(q,H-1)%2===0)return H;Y=H+1}}function xQ(q,Q){let Z=Q,Y=0;while(q[Z]==="\\")Y++,Z--;return Y}function g0(q,Q,Z){let Y=y0[Z],H=1,V=Q;while(H>0&&V<q.length){let K=q[V];switch(K){case"'":case'"':case"`":V=gQ(q,V+1,K)+1;continue;case"/":{let W=q[V+1];if(!W){V++;continue}if(W==="/"){V=H6(q.indexOf(`
85
- `,V+1))+1;continue}if(W==="*"){V=H6(q.indexOf("*/",V+1))+2;continue}let G=_Q(q,V+1)+1;if(G===1/0)V++;else V=G;continue}default:{let W=q[V];if(W===Z)H++;else if(W===Y)H--;if(H===0)return V;V++}}}return}var y0={"{":"}","(":")","[":"]"},uQ=new Set(Object.values(y0));function l1(q,Q,Z=y0){let Y=Z===y0?uQ:new Set(Object.values(Z)),H=[],V=Q;while(V<q.template.length){let K=q.template[V++];if(K==="'"||K==='"'||K==="`"){V=mQ(q,V,K);continue}if(K in Z)H.push(K);else if(Y.has(K)){let W=H.pop(),G=Z[W];if(K!==G)v8(V-1,G);if(H.length===0)return V}}L8(q.template.length)}function mQ(q,Q,Z){let Y=!1,H=Q;while(H<q.template.length){let V=q.template[H++];if(Y){Y=!1;continue}if(V===Z)return H;if(V==="\\")Y=!0;if(Z==="`"&&V==="$"&&q.template[H]==="{")H=l1(q,H)}c5(Q)}function K6(q,Q){let Z=g0(q.template,q.index,Q??"{");if(Z){let Y=q.index;return q.index=Z,{type:"Identifier",start:Y,end:Z,name:""}}}function j8(q,Q,Z){try{let Y=H1(q,q.template,q.index),H=Y.end,V=q.root.comments.at(-1);if(V&&V.end>H)H=V.end;return q.index=H,L1(Y)}catch(Y){if(q.loose&&!Z){let H=K6(q,Q);if(H)return H}throw Y}}function V6(q=[]){return{type:"ArrayExpression",elements:q}}function lQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var BV=lQ("void",c1(0));function c1(q){return{type:"Literal",value:q}}var cQ=c1(!0),FV=c1(!1),MV=c1(null);function o5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function W6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function G6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var iQ=/<\/script\s*>/,dQ=/<\/script\s*>/y,pQ=["server","client","worker","test","default"],oQ=["context","generics","lang","module"];function n5(q,Q,Z){let Y=q.index,H=q.read_until(iQ);if(q.index>=q.template.length)E0(q.template.length,"script");let V=q.template.slice(0,Y).replace(G0," ")+H;q.read(dQ);let K=d5(V,q.root.comments,q.ts,!0);if(K.start=Y,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=z8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=z8(q.index);let W="default";for(let G of Z){if(pQ.includes(G.name))D5(G,G.name);if(!oQ.includes(G.name))q2(G);if(G.name==="module"){if(G.value!==!0)S5(G,G.name);W="module"}if(G.name==="context"){if(G.value===!0||!o5(G))t9(G);if(G.value[0].data!=="module")t9(G);W="module"}}return{type:"Script",start:Q,end:q.index,context:W,content:K,attributes:Z}}var nQ=/[~^$*|]?=/y,sQ=/[\s\]]/,aQ=/[a-zA-Z]+/y,r5=/(\+|~|>|\|\|)/y,s5=/\d+(\.\d+)?%/y,a5=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,rQ=/[\s:]/,tQ=/-?\d/y,eQ=/[a-zA-Z0-9_-]/,qZ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,QZ=/\*\//,ZZ=/-->/;function j6(q,Q,Z){let Y=q.index,H=YZ(q,(K)=>K.match("</style")||K.index>=K.template.length),V=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:H,content:{start:Y,end:V,styles:q.template.slice(Y,V),comment:null}}}function YZ(q,Q){let Z=[];while(C1(q),!Q(q))if(q.match("@"))Z.push(t5(q));else Z.push(e5(q));return Z}function t5(q){let Q=q.index;q.eat("@",!0);let Z=t8(q),Y=O6(q),H=null;if(q.match("{"))H=q4(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:Y,block:H}}function e5(q){let Q=q.index;return{type:"Rule",prelude:z6(q),block:q4(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function z6(q,Q=!1){let Z=[];C1(q);let Y=q.index;while(q.index<q.template.length){Z.push(HZ(q,Q));let H=q.index;if(C1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Z};else q.eat(",",!0),C1(q)}L8(q.template.length)}function HZ(q,Q=!1){let Z=q.index,Y=[];function H(K,W){return{type:"RelativeSelector",combinator:K,selectors:[],start:W,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let V=H(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))V.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}else if(q.eat("#"))V.selectors.push({type:"IdSelector",name:t8(q),start:K,end:q.index});else if(q.eat("."))V.selectors.push({type:"ClassSelector",name:t8(q),start:K,end:q.index});else if(q.eat("::")){if(V.selectors.push({type:"PseudoElementSelector",name:t8(q),start:K,end:q.index}),q.eat("("))z6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t8(q),O=null;if(q.eat("("))O=z6(q,!0),q.eat(")",!0);V.selectors.push({type:"PseudoClassSelector",name:R,args:O,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t8(q);q.allow_whitespace();let O=null,$=q.read(nQ);if($)q.allow_whitespace(),O=XZ(q);q.allow_whitespace();let M=q.read(aQ);q.allow_whitespace(),q.eat("]",!0),V.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:R,matcher:$,value:O,flags:M})}else if(Q&&q.match_regex(a5))V.selectors.push({type:"Nth",value:q.read(a5),start:K,end:q.index});else if(q.match_regex(s5))V.selectors.push({type:"Percentage",value:q.read(s5),start:K,end:q.index});else if(!q.match_regex(r5)){let R=t8(q);if(q.eat("|"))R=t8(q);V.selectors.push({type:"TypeSelector",name:R,start:K,end:q.index})}let W=q.index;if(C1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=W,V.end=W,Y.push(V),{type:"ComplexSelector",start:Z,end:W,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=W;let G=JZ(q);if(G){if(V.selectors.length>0)V.end=W,Y.push(V);if(V=H(G,G.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))V5(q.index)}}L8(q.template.length)}function JZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,Y=q.read(r5);if(Y){let H=q.index;return q.allow_whitespace(),{type:"Combinator",name:Y,start:Z,end:H}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function q4(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(C1(q),q.match("}"))break;else Z.push(KZ(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function KZ(q){if(q.match("@"))return t5(q);let Q=q.index;O6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?e5(q):VZ(q)}function VZ(q){let Q=q.index,Z=q.read_until(rQ);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=O6(q);if(!H&&!Z.startsWith("--"))K5({start:Q,end:Y});let V=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:V,property:Z,value:H}}function O6(q){let Q="",Z=!1,Y=!1,H=null;while(q.index<q.template.length){let V=q.template[q.index];if(Z){Q+="\\"+V,Z=!1,q.index++;continue}else if(V==="\\"){Z=!0,q.index++;continue}else if(V===H)H=null;else if(V===")")Y=!1;else if(H===null&&(V==='"'||V==="'"))H=V;else if(V==="("&&Q.slice(-3)==="url")Y=!0;else if((V===";"||V==="{"||V==="}")&&!Y&&!H)return Q.trim();else if(V==="/"&&!Y&&!H&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}Q+=V,q.index++}L8(q.template.length)}function XZ(q){let Q="",Z=!1,Y=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let H=q.template[q.index];if(Z)Q+="\\"+H,Z=!1;else if(H==="\\")Z=!0;else if(Y?H===Y:sQ.test(H)){if(Y)q.eat(Y,!0);return Q.trim()}else Q+=H;q.index++}L8(q.template.length)}function t8(q){let Q=q.index,Z="";if(q.match_regex(tQ))p9(Q);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let H=q.match_regex(qZ);if(H)Z+=String.fromCodePoint(parseInt(H.slice(1),16)),q.index+=H.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(Y.codePointAt(0)>=160||eQ.test(Y))Z+=Y,q.index++;else break}if(Z==="")p9(Q);return Z}function C1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(QZ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(ZZ),q.eat("-->",!0);q.allow_whitespace()}}var U6={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var WZ=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function GZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function Z4(q){let Z=Object.keys(U6).map((H)=>GZ(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var zZ=Z4(!1),jZ=Z4(!0);function i1(q,Q){let Z=Q?jZ:zZ;return q.replace(Z,(Y,H)=>{let V;if(H[0]!=="#")V=U6[H];else if(H[1]==="x")V=parseInt(H.substring(2),16);else V=parseInt(H.substring(1),10);if(!V)return Y;return String.fromCodePoint(OZ(V))})}var Q4=0;function OZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return WZ[q-128];if(q<55296)return q;if(q<=57343)return Q4;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return Q4}function G8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var UZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function Y4(q){return UZ.includes(q.type)}function _0(q,Q,Z,Y,H){return{type:"Attribute",start:Z,end:Y,name:q,name_loc:Q,value:H,metadata:{delegated:!1,needs_clsx:!1}}}class K8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#Q(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return V6([...this.#Q()])}has_blockers(){return this.#Q().size>0}has_more_blockers_than(q){for(let Q of this.#Q())if(!q.#Q().has(Q))return!0;return!1}is_async(){return this.has_await||this.#Q().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let Q of q.references)this.references.add(Q);for(let Q of q.dependencies)this.dependencies.add(Q)}}var H4={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function J4(q,Q){let Z=H4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var xV={...H4,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function K4(q,Q="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${Q} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${Q} ${q[q.length-1]}`}var RZ=/(\/>|[\s"'=<>`])/y,R6=/<\/textarea(\s[^>]*)?>/iy,BZ=/-->/,V4=/(\s|\/|>)/,W4=/[\s=/>"']/,G4=/["']/y,FZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,MZ=/^![a-zA-Z]+$/,$Z=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function LZ(q){if(MZ.test(q))return!0;if($Z.test(q))return!0;return d7.test(q)}var X4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,z4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),x0=new Map([...z4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function B6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let F=q.read_until(BZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:F});return}if(q.eat("/")){let F=q.read_until(V4);if(q.allow_whitespace(),q.eat(">",!0),w9(F))i5(Q);while(Z.name!==F){if(q.loose){if(Y4(Z)){let P=Z.attributes.at(-1);if(P?.type==="Attribute"&&P.name===`<${F}`){q.index=P.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==F){let P=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:P},`</${F}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===F)$5(Q,F,q.last_auto_closed_tag.reason);else M5(Q,F);Z.end=Q,q.pop(),Z=q.current()}if(Z.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let Y=F6(q,V4);if(Y.name.startsWith("svelte:")&&!x0.has(Y.name)){let F={start:Q+1,end:Q+1+Y.name.length};h5(F,K4(Array.from(x0.keys())))}if(!LZ(Y.name)&&!X4.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let F={start:Q+1,end:Q+1+Y.name.length};u5(F)}}if(z4.has(Y.name)){if(Y.name in q.meta_tags)k5(Q,Y.name);if(Z.type!=="Root")v5(Q,Y.name);q.meta_tags[Y.name]=!0}let H=x0.has(Y.name)?x0.get(Y.name):X4.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&CZ(q.stack)?"TitleElement":Y.name==="slot"&&!AZ(q.stack)?"SlotElement":"RegularElement",V=H==="RegularElement"?{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:G8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&J4(Z.name,Y.name)){let F=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:F},`<${Y.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:Y.name,depth:q.stack.length}}let K=[],W=q.current(),G=(Y.name==="script"||Y.name==="style")&&W.type==="Root",R=G?wZ:IZ,O;while(O=R(q)){if(O.type==="Attribute"||O.type==="BindDirective"||O.type==="StyleDirective"||O.type==="ClassDirective"){let F=O.type==="BindDirective"?"Attribute":O.type;if(K.includes(F+O.name))X5(O);else if(O.name!=="this")K.push(F+O.name)}V.attributes.push(O),q.allow_whitespace()}if(V.type==="Component")V.metadata.expression=new K8;if(V.type==="SvelteComponent"){let F=V.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(F===-1)b5(Q);let P=V.attributes.splice(F,1)[0];if(!W6(P))T5(P.start);V.expression=G6(P),V.metadata.expression=new K8}if(V.type==="SvelteElement"){let F=V.attributes.findIndex((w)=>w.type==="Attribute"&&w.name==="this");if(F===-1)e9(Q);let P=V.attributes.splice(F,1)[0];if(P.value===!0)e9(P);if(!W6(P)){Q2(P);let w=P.value[0];V.tag=w.type==="Text"?{type:"Literal",value:w.data,raw:`'${w.raw}'`,start:w.start,end:w.end}:w.expression}else V.tag=G6(P);V.metadata.expression=new K8}if(G){q.eat(">",!0);let F=null;for(let P=W.fragment.nodes.length-1;P>=0;P--){let w=W.fragment.nodes[P];if(P===W.fragment.nodes.length-1&&w.end!==Q)break;if(w.type==="Comment"){F=w;break}else if(w.type!=="Text"||w.data.trim())break}if(Y.name==="script"){let P=n5(q,Q,V.attributes);if(F)P.content.leadingComments=[{type:"Line",value:F.data}];if(P.context==="module"){if(W.module)r9(Q);W.module=P}else{if(W.instance)r9(Q);W.instance=P}}else{let P=j6(q,Q,V.attributes);if(P.content.comment=F,W.css)N5(Q);W.css=P}return}q.append(V);let $=q.eat("/")||w9(Y.name),M=q.eat(">",!0,!1);if(!M){let F=V.attributes.at(-1);if(F?.type==="Attribute"&&F.name==="<")q.index=F.start,V.attributes.pop();else{let P=q.template[q.index-1],w=q.template[q.index-2],N=q.template[q.index];if(w==="{"&&P==="/")q.index-=2;else if(P==="{"&&(N==="#"||N==="@"||N===":"))q.index-=1;else q.allow_whitespace()}}if($||!M)V.end=q.index;else if(Y.name==="textarea")V.fragment.nodes=j4(q,()=>{return R6.lastIndex=q.index,R6.test(q.template)},"inside <textarea>"),q.read(R6),V.end=q.index;else if(Y.name==="script"||Y.name==="style"){let F=q.index,P=`</${Y.name}>`,w=q.template.indexOf(P,q.index),N=q.template.slice(q.index,w===-1?q.template.length:w);q.index=w===-1?q.template.length:w;let v=q.index,g={start:F,end:v,type:"Text",data:N,raw:N};V.fragment.nodes.push(g),q.eat(`</${Y.name}>`,!0),V.end=q.index}else q.stack.push(V),q.fragments.push(V.fragment)}function CZ(q){let Q=q.length;while(Q--){let{type:Z}=q[Q];if(Z==="SvelteHead")return!0;if(Z==="RegularElement"||Z==="Component")return!1}return!1}function AZ(q){let Q=q.length;while(Q--)if(q[Q].type==="RegularElement"&&q[Q].attributes.some((Z)=>Z.type==="Attribute"&&Z.name==="shadowrootmode"))return!0;return!1}function wZ(q){let Q=q.index,Z=F6(q,W4);if(!Z.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(FZ);if(!H)s9(q.index);q.index+=H.length;let V=H[0]==='"'||H[0]==="'";if(V)H=H.slice(1,-1);Y=[{start:q.index-H.length-(V?1:0),end:V?q.index-1:q.index,type:"Text",raw:H,data:i1(H,!0)}]}if(q.match_regex(G4))v8(q.index,"=");return _0(Z.name,Z.loc,Q,q.index,Y)}function IZ(q){let Q=null;while(Q=PZ(q))q.root.comments.push(Q),q.allow_whitespace();let Z=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let G=j8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:G,metadata:{expression:new K8}}}if(q.eat("...")){let G=j8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:G,metadata:{expression:new K8}}}else{let G=q.read_identifier();if(G.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else W5(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:G.start,end:G.end,expression:G,metadata:{expression:new K8}};return _0(G.name,G.loc,Z,q.index,R)}}let Y=F6(q,W4);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let V=Y.name.indexOf(":"),K=V!==-1&&SZ(Y.name.slice(0,V)),W=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let G=q.index;q.index++,W=[{start:G,end:G+1,type:"Text",raw:"/",data:"/"}],H=q.index}else W=DZ(q),H=q.index;else if(q.match_regex(G4))v8(q.index,"=");if(K){let[G,...R]=Y.name.slice(V+1).split("|");if(G==="")F5({start:Z,end:Z+V+1},Y.name);if(K==="StyleDirective")return{start:Z,end:H,type:K,name:G,name_loc:Y.loc,modifiers:R,value:W,metadata:{expression:new K8}};let O=W===!0?void 0:Array.isArray(W)?W[0]:W,$=null;if(O)if(W.length>1||O.type==="Text")B5(O.start);else $=O.expression;let M={start:Z,end:H,type:K,name:G,name_loc:Y.loc,expression:$,metadata:{expression:new K8}};if(M.modifiers=R,M.type==="TransitionDirective"){let F=Y.name.slice(0,V);M.intro=F==="in"||F==="transition",M.outro=F==="out"||F==="transition"}if((M.type==="BindDirective"||M.type==="ClassDirective")&&!M.expression)M.expression={start:Z+V+1,end:H,type:"Identifier",name:M.name};return M}return _0(Y.name,Y.loc,Z,H,W)}function PZ(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),Y=q.index;return{type:"Line",start:Q,end:Y,value:Z,loc:{start:z8(Q),end:z8(Y)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let Y=q.index;return{type:"Block",start:Q,end:Y,value:Z,loc:{start:z8(Q),end:z8(Y)}}}return null}function SZ(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function DZ(q){let Q=q.eat("'")?"'":q.eat('"')?'"':null;if(Q&&q.eat(Q))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let Z;try{Z=j4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(RZ)},"in attribute value")}catch(Y){if(Y.code==="js_parse_error"){let H=Y.position?.[0];if(H!==void 0&&q.template.slice(H-1,H+1)==="/>")q.index=H,v8(H,Q||"}")}throw Y}if(Z.length===0&&!Q)s9(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function j4(q,Q,Z){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},H=[];function V(K){if(K>Y.start)Y.raw=q.template.slice(Y.start,K),Y.data=i1(Y.raw,!0),Y.end=K,H.push(Y)}while(q.index<q.template.length){let K=q.index;if(Q())return V(q.index),H;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let O=q.read_until(/[^a-z]/);j5(R,O,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let O=q.read_until(/[^a-z]/);m5(R,O,Z)}V(q.index-1),q.allow_whitespace();let W=j8(q);q.allow_whitespace(),q.eat("}",!0);let G={type:"ExpressionTag",start:K,end:q.index,expression:W,metadata:{expression:new K8}};H.push(G),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else L8(q.template.length)}function F6(q,Q){let Z=q.index,Y=q.read_until(Q),H=q.index;return{type:"Identifier",name:Y,start:Z,end:H,loc:{start:z8(Z),end:z8(H)}}}function _8(q){let{index:Q,index:Z}=q,Y=q.read_identifier();if(Y.name!==""){let R=O4(q);return{...Y,typeAnnotation:R}}let H=q.template[Z];if(H!=="{"&&H!=="[")C5(Z);Z=l1(q,Q),q.index=Z;let V=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(G0," "),W=K.indexOf(" ");K=K.slice(0,W)+K.slice(W+1);let G=L1(H1(q,`${K}(${V} = 1)`,Q-1));if(G=G.left,G.typeAnnotation=O4(q),G.typeAnnotation)G.end=G.typeAnnotation.end;return G}function O4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",Y=q.index-Z.length,H=q.template.slice(0,Y).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),V=L1(H1(q,H,Y));if(V.type==="AssignmentExpression"){let K=V.right.start;while(H[K]!=="=")K-=1;V=L1(H1(q,H.slice(0,K),Y))}if(V.type==="SequenceExpression")V=V.expressions[0];return q.index=V.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:V.typeAnnotation}}var M6=/\s*}/y,NZ=/(?:let|const)\b/y,TZ=/(?:var|interface|enum)\b/y,bZ=/type\b/y,kZ={"<":">"};function L6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return vZ(q);if(q.eat(":"))return hZ(q);if(q.eat("@"))return fZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),$6(q)}let Z=EZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new K8}});return}let Y=j8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:Y,metadata:{expression:new K8}})}function EZ(q){let Q=q.index,Z=q.match_regex(TZ);if(Z)k0({start:Q,end:Q+Z.length});if(!q.match_regex(NZ)&&!q.match_regex(bZ))return null;let Y=q.root.comments.length,H;try{H=p5(q,q.template,Q)}catch(V){if(!q.loose)throw V;let K=g0(q.template,Q,"{");if(K===void 0)throw V;q.index=K,H={type:"VariableDeclaration",kind:q.template.startsWith("const",Q)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:Q,end:K}}if(H.type!=="VariableDeclaration")if(H.type==="ExpressionStatement")return q.root.comments.length=Y,null;else k0({start:H.start??Q,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")k0(H);return q.index=H.end,q.allow_whitespace(),q.eat("}",!0),H}function vZ(q){let Q=q.index-2;while(q.template[Q]!=="{")Q-=1;if(q.eat("if")){q.require_whitespace();let Z=q.append({type:"IfBlock",elseif:!1,start:Q,end:-1,test:j8(q),consequent:G8(),alternate:null,metadata:{expression:new K8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(Z),q.fragments.push(Z.consequent);return}if(q.eat("each")){q.require_whitespace();let Z=q.template,Y=q.template.length,H;while(!H)try{H=j8(q,void 0,!0)}catch(O){Y=O.position[0]-2;while(Y>Q&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Q){if(q.loose){if(H=K6(q),H)break}throw O}q.template=Z.slice(0,Y)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(H.type==="SequenceExpression")H=H.expressions[0];let O=null,$=H.end;if(H=n8(H,null,{TSAsExpression(M,F){if(M.end===H.end)return O=M,$=M.expression.end,M.expression;F.next()}}),H.end=$,O){let M=O.typeAnnotation.start-2;while(q.template.slice(M,M+2)!=="as")M-=1;q.index=M}}let V=null,K,W;if(q.eat("as"))q.require_whitespace(),V=_8(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)a9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),W=j8(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let O=q.index;V=_8(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:O-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:H,body:G8(),context:V,index:K,key:W,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=j8(q);q.allow_whitespace();let Y=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new K8}});if(q.eat("then")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),Y.value=_8(q),q.allow_whitespace();Y.then=G8(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),Y.error=_8(q),q.allow_whitespace();Y.catch=G8(),q.fragments.push(Y.catch)}else Y.pending=G8(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let V=q.index;Y.value=_8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let V=q.index;Y.error=_8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:V-7},Y.catch=Y.pending,Y.pending=null}else q.eat("}",!0);q.stack.push(Y);return}if(q.eat("key")){q.require_whitespace();let Z=j8(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:G8(),metadata:{expression:new K8}});q.stack.push(Y),q.fragments.push(Y.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)a9(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let O=q.index,$=l1(q,O,kZ);H=q.template.slice(O+1,$-1),q.index=$}q.allow_whitespace();let V=q.eat("(",!0,!1);if(V){let O=1;while(q.index<q.template.length&&(!q.match(")")||O!==1)){if(q.match("("))O++;if(q.match(")"))O--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,Y).replace(/\S/g," "),W=q.template.slice(Y,q.index),G=V?H1(q,K+`${W} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:H,parameters:G.params,body:G8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}L5(q.index)}function hZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))v8(Q,"{:else} or {:else if}");if(q.eat("if"))z5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=G8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let Y=j8(q);q.allow_whitespace(),q.eat("}",!0);let H=Q-1;while(q.template[H]!=="{")H-=1;let V=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:G8(),alternate:null,metadata:{expression:new K8}});q.stack.push(V),q.fragments.pop(),q.fragments.push(V.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))v8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=G8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)o9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=G8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)o9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=G8(),q.fragments.pop(),q.fragments.push(Z.catch);return}v8(Q,"{:then ...} or {:catch ...}")}G5(Q)}function $6(q){let Q=q.index-1,Z=q.current(),Y;switch(Z.type){case"IfBlock":if(Y=q.eat("if",!0,!1),!Y){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0);while(Z.elseif)Z.end=q.index,q.stack.pop(),Z=q.current();Z.end=q.index,q.pop();return;case"EachBlock":Y=q.eat("each",!0,!1);break;case"KeyBlock":Y=q.eat("key",!0,!1);break;case"AwaitBlock":Y=q.eat("await",!0,!1);break;case"SnippetBlock":Y=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)Y=!1;else n9(Q);break;default:n9(Q)}if(!Y){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function fZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=j8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8}});return}if(q.eat("debug")){let Z;if(q.read(M6))Z=[];else{let Y=j8(q);Z=Y.type==="SequenceExpression"?Y.expressions:[Y],Z.forEach((H)=>{if(H.type!=="Identifier")R5(H.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:Q,end:q.index,identifiers:Z});return}if(q.eat("const")){q.require_whitespace();let Z=_8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=j8(q);if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))U5(H);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:Q,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:Z,init:H,start:Z.start,end:H.end}],start:Q+2,end:q.index-1},metadata:{expression:new K8}});return}if(q.eat("render")){q.require_whitespace();let Z=j8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))P5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new K8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}A5(q.index)}function C6(q){let Q=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let Z=q.template.slice(Q,q.index);q.append({type:"Text",start:Q,end:q.index,raw:Z,data:i1(Z,!1)})}function d1(q){if(q.match("<"))return B6;if(q.match("{"))return L6;return C6}function A6(q){let Q={start:q.start,end:q.end,attributes:q.attributes};if(!q)return Q;for(let Z of q.attributes){if(Z.type!=="Attribute")y5(Z);let{name:Y}=Z;switch(Y){case"runes":{Q.runes=u0(Z);break}case"tag":{f5(Z);break}case"customElement":{let H={},{value:V}=Z,K=V===!0||Array.isArray(V)?V:[V];if(K===!0)h0(Z);else if(K[0].type==="Text"){let M=m0(Z);R4(Z,M),H.tag=M,Q.customElement=H;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;h0(Z)}let W=[];for(let M of K[0].expression.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier")h0(Z);W.push([M.key.name,M.value])}let G=W.find(([M])=>M==="tag");if(G){let M=G[1]?.value;R4(G,M),H.tag=M}let R=W.find(([M])=>M==="props")?.[1];if(R){if(R.type!=="ObjectExpression")Y1(Z);H.props={};for(let M of R.properties){if(M.type!=="Property"||M.computed||M.key.type!=="Identifier"||M.value.type!=="ObjectExpression")Y1(Z);H.props[M.key.name]={};for(let F of M.value.properties){if(F.type!=="Property"||F.computed||F.key.type!=="Identifier"||F.value.type!=="Literal")Y1(Z);if(F.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(F.value.value)===-1)Y1(Z);H.props[M.key.name].type=F.value.value}else if(F.key.name==="reflect"){if(typeof F.value.value!=="boolean")Y1(Z);H.props[M.key.name].reflect=F.value.value}else if(F.key.name==="attribute"){if(typeof F.value.value!=="string")Y1(Z);H.props[M.key.name].attribute=F.value.value}else Y1(Z)}}}let O=W.find(([M])=>M==="shadow")?.[1];if(O)if(O.type==="Literal"&&(O.value==="open"||O.value==="none"))H.shadow=O.value;else if(O.type==="ObjectExpression")H.shadow=O;else g5(Z);let $=W.find(([M])=>M==="extend")?.[1];if($)H.extend=$;Q.customElement=H;break}case"namespace":{let H=m0(Z);if(H===g7)Q.namespace="svg";else if(H===_7)Q.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Q.namespace=H;else v0(Z,'"html", "mathml" or "svg"');break}case"css":{let H=m0(Z);if(H==="injected")Q.css=H;else v0(Z,'"injected"');break}case"immutable":{Q.immutable=u0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=u0(Z);break}case"accessors":{Q.accessors=u0(Z);break}default:x5(Z,Y)}}return Q}function m0(q){let{value:Q}=q;if(Q===!0)return!0;let Z=Array.isArray(Q)?Q[0]:Q;if(!Z)return!0;if(Q.length>1)return null;if(Z.type==="Text")return Z.data;if(Z.expression.type!=="Literal")return null;return Z.expression.value}function u0(q){let Q=m0(q);if(typeof Q!=="boolean")v0(q,"true or false");return Q}var U4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",yZ=new RegExp(`^[a-z]${U4}*-${U4}*$`,"u"),gZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function R4(q,Q){if(typeof Q!=="string")q6(q);if(Q){if(!yZ.test(Q))q6(q);else if(gZ.includes(Q))_5(q)}}function B4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],Y=Q[Q.length-1];E5({start:Z.start,end:Y.end},q.name)}}function F4(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var M4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class w6{template;loose;index=0;static forCss(q){let Q=Object.create(w6.prototype);return Q.template=q,Q.index=0,Q.loose=!1,Q}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,Q){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=Q,this.template=q.trimEnd();let Z;do Z=M4.exec(q);while(Z&&Z[0][1]!=="s");M4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:G8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=d1;while(this.index<this.template.length)Y=Y(this)||d1;if(this.stack.length>1){let V=this.current();if(this.loose)V.end=this.template.length;else if(V.type==="RegularElement")V.end=V.start+1,E0(V,V.name);else V.end=V.start+1,O5(V)}if(Y!==d1)L8(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((V)=>V.type==="SvelteOptions");if(H!==-1){let V=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=A6(V),B4(V),Object.defineProperty(this.root.options,"__raw__",{value:V,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,Q=!1,Z=!0){if(this.match(q))return this.index+=q.length,!0;if(Q&&(!this.loose||Z))v8(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let Q=q.exec(this.template);if(!Q||Q.index!==this.index)return null;return Q[0]}allow_whitespace(){while(this.index<this.template.length&&F4(this.template.charCodeAt(this.index)))this.index++}read(q){let Q=this.match_regex(q);if(Q)this.index+=Q.length;return Q}read_identifier(){let q=this.index,Q=q,Z="",Y=this.template.codePointAt(this.index);if(A8(Y,!0)){let H=this.index;Q+=Y<=65535?1:2;while(Q<this.template.length){let V=this.template.codePointAt(Q);if(!y8(V,!0))break;Q+=V<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,i7(Z))l5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:z8(q),end:z8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";L8(this.template.length)}let Q=this.index,Z=q.exec(this.template.slice(Q));if(Z)return this.index=Q+Z.index,this.template.slice(Q,this.index);return this.index=this.template.length,this.template.slice(Q)}require_whitespace(){if(!F4(this.template.charCodeAt(this.index)))w5(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((Q)=>Q.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function $4(q,Q=!1){return p7(q),new w6(q,Q).root}function _Z(q){return q.charCodeAt(0)===65279?q.slice(1):q}function I6(q){delete q.metadata}function P6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;I6(q);for(let Q in q){if(Q==="type")continue;let Z=q[Q];if(!Z||typeof Z!=="object")continue;if(Array.isArray(Z))for(let Y of Z)P6(Y);else P6(Z)}}function L4(q,Q,Z){if(Z){for(let Y of Q.options?.attributes??[])if(I6(Y),Y.value)for(let H of Array.isArray(Y.value)?Y.value:[Y.value])I6(H);return P6(Q),Q}return H2(q,Q)}function S6(q){if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map(S6);let Q={};for(let Z in q)Q[Z]=S6(q[Z]);return Q}function C4(q,{loose:Q}={}){let Z=_Z(q);n7({warning:()=>!1,filename:void 0});let Y=$4(Z,Q),H=L4(Z,Y,!0),V=S6(H),K=L4(Z,V,!1);return{modern:H,legacy:K}}function A4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var xZ=null,w4=/^@component/,uZ=/\r/g,mZ=/^\{\s*\}$/;class O8{ctx=e0();static mapToArray(q){return Array.from(q,([Q,Z])=>Z)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((Q)=>Q.data??Q.raw??"").join("").trim()}resolveScriptLanguage(q){let Q=[q.instance,q.module].filter((Y)=>Y!==void 0),Z=!1;for(let Y of Q){let H=Y.attributes?.find((K)=>K.name==="lang");if(!H){Z=!0;continue}if(O8.getStaticAttributeValue(H)?.toLowerCase()==="ts")return"ts"}return Z?"js":void 0}resolveScriptGenericsAttribute(q){let Q=q.instance?.attributes?.find((K)=>K.name==="generics");if(!Q)return;let Z=V8(this.ctx,Q),Y=q.instance?.attributes?.find((K)=>K.name==="lang");if((Y?O8.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){p8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let V=O8.getStaticAttributeValue(Q);if(!V)return;return{value:V,source:Z}}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,Q=q){this.ctx.propLocalToPublicName.set(Q,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(u8(q))return q.name;if(K1(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let Q=q,Z=Q.object&&"name"in Q.object?Q.object.name:void 0,Y=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!Y)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(Y);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(Y);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((H)=>H.id&&typeof H.id==="object"&&("type"in H.id)&&H.id.type==="Identifier"&&("name"in H.id)&&H.id.name===q))return q1(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return q1(this.ctx,this,Q);return}addModuleExport(q,Q){if(I8(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let Z=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...Z,...Q})}else this.ctx.moduleExports.set(q,Q)}aliasType(q){if(q==="*")return"any";return q.trim()}findVariableTypeAndDescription(q){let Q=this.getPropByLocalOrPublic(q);if(Q?.type)return{type:Q.type,description:Q.description};if(!this.ctx.variableInfoCacheBuilt)this.ctx.variableInfoCache=v7(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),Y=this.ctx.explicitVariableTypesByName.get(q);if(Y)return{type:Y,description:Z?.description};return Z??null}accumulateGeneric(q,Q){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${Q}`];else this.ctx.generics=[q,Q]}cleanup(){this.ctx=e0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return O8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(O8.SCRIPT_BLOCK_REGEX,(Q,Z,Y,H)=>{O8.TS_DIRECTIVE_REGEX.lastIndex=0;let V=Y.replace(O8.TS_DIRECTIVE_REGEX,"");return Z+V+H})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=O8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:Y,legacy:H}=C4(Z);if(S7(this,this.ctx,Y),this.ctx.parsed=H,this.ctx.scriptLanguage==="ts")W0(this.ctx.parsed.module),W0(this.ctx.parsed.instance),W0(this.ctx.parsed.html);this.ctx.syntaxMode=P7(this.ctx);let V=this.ctx.parsed.css,K=V?.start!==void 0&&V?.end!==void 0?Z.slice(0,V.start)+" ".repeat(V.end-V.start)+Z.slice(V.end):Z;if(F7(this.ctx,this,K),this.ctx.parsed?.module)d8(this.ctx.parsed?.module,{enter:(C)=>{if(C.type==="ExportNamedDeclaration"){if(C.declaration==null)return;if(!C.declaration||typeof C.declaration!=="object"||!("type"in C.declaration))return;let J,X,z=!1,j,B,L,A=!1,D,S,I;if(C.declaration.type==="FunctionDeclaration"){let _=C.declaration;if(!_.id?.name)return;J=_.id.name,X="function",j=void 0,B="() => any",A=!0,z=!0}else if(C.declaration.type==="VariableDeclaration"){let _=C.declaration,s=_.declarations[0];if(!s||typeof s!=="object"||!("id"in s))return;let{id:U8,init:p}=s;if(!U8||typeof U8!=="object"||!("name"in U8))return;let t=U8.name;J=t,X=A4(_.kind);let l=p==null?{isFunction:!1}:V1(this,this.ctx,p);({value:j,type:B,isFunction:A,defaultValue:D}=l),S=B,I=l,L=this.getExplicitPropType(t)}else return;let h=q1(this.ctx,this,C),{type:c,typeSource:m,description:n,params:H8,returnType:b,isFunction:r}=N1({explicitType:L,typeSeed:B,inferredTypeForSource:S,jsdocType:h?.type,jsdocDescription:h?.description,jsdocParams:h?.params,jsdocReturnType:h?.returnType,resolvedType:I?.resolvedType,resolvedDescription:I?.resolvedDescription,resolvedParams:I?.resolvedParams,resolvedReturnType:I?.resolvedReturnType,initializerIsFunction:A,isFunctionDeclaration:z,typedefs:this.ctx.typedefs});this.addModuleExport(J,{name:J,kind:X,description:n,deprecated:h?.deprecated,tags:h?.tags,type:c,typeSource:m,value:j,defaultValue:D,params:H8,returnType:b,isFunction:r,isFunctionDeclaration:z,isRequired:!1,constant:X==="const",reactive:!1,source:V8(this.ctx,C)})}}});let W,G=new Set,R=new Set,O=[],$={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};L7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let M=C7(this.ctx);if(d8($,{enter:(C,J,X)=>{A7(this,this.ctx,M,C);let z=this.ctx.scopeDeclarations.get(C);if(z)this.ctx.activeScopes.push(z);if(C.type==="AssignmentExpression")F9(this.ctx,C.left);if(C.type==="UpdateExpression")F9(this.ctx,C.argument);if(C.type==="CallExpression"){let j=C,B=j.callee&&typeof j.callee==="object"&&"name"in j.callee?j.callee.name:void 0;if(B==="createEventDispatcher"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)W=J.id.name}if(B==="$host"){if(J&&typeof J==="object"&&"id"in J&&J.id&&typeof J.id==="object"&&"name"in J.id)G.add(J.id.name)}if(B==="setContext")r6(this.ctx,this,C,J??void 0);if(B)O.push({name:B,arguments:j.arguments,source:V8(this.ctx,j)});if(u6(j.callee)&&u8(j.callee.property)&&j.callee.property.name==="dispatchEvent"&&(m8(j.callee.object,"$host")||u8(j.callee.object)&&G.has(j.callee.object.name))){let L=t6(this.ctx,j);if(L)R.add(L)}}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Spread"){let j=C;if(j.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(j.expression?.name??""))M7(this.ctx,J)}if(C.type==="FunctionDeclaration"){let j=C;if(j.id?.name)this.ctx.funcDecls.set(j.id.name,j)}if(C.type==="VariableDeclaration"){if(this.ctx.vars.add(C),J&&typeof J==="object"&&"type"in J&&J.type==="Program"&&C.declarations.some((j)=>m8(e8(j.init),"$props")))D7(this,this.ctx,C)}if(C.type==="ExportNamedDeclaration"){if(C.declaration==null&&C.specifiers.length===0)return;let j;if(C.declaration==null&&C.specifiers[0]?.type==="ExportSpecifier"){let l=C.specifiers[0],M8=l.local&&typeof l.local==="object"&&"name"in l.local?l.local.name:void 0,e=l.exported&&typeof l.exported==="object"&&"name"in l.exported?l.exported.name:void 0;if(!M8||!e)return;let C8;for(let c8 of Array.from(this.ctx.vars))if(c8.declarations.some((i8)=>i8.id&&typeof i8.id==="object"&&("type"in i8.id)&&i8.id.type==="Identifier"&&i8.id.name===M8)){C8=c8;break}C.declaration=C8,j=e}if(C.declaration==null)return;if(!C.declaration||typeof C.declaration!=="object"||!("type"in C.declaration))return;let B,L=!1,A,D,S,I=!1,h=!1,c,m,n,H8;if(C.declaration.type==="FunctionDeclaration"){let l=C.declaration;if(!l.id?.name)return;j??=l.id.name,c=l.id.name,B="function",A=void 0,D="() => any",I=!0,L=!0,h=!1}else if(C.declaration.type==="VariableDeclaration"){let l=C.declaration,M8=l.declarations[0];if(!M8||typeof M8!=="object"||!("id"in M8))return;let{id:e,init:C8}=M8;if(e&&typeof e==="object"&&"name"in e){let i8=e.name;c=i8,j??=i8,S=this.getExplicitPropType(i8)}else return;B=A4(l.kind),h=B==="let"&&C8==null;let c8=C8==null?{isFunction:!1}:V1(this,this.ctx,C8);({value:A,type:D,isFunction:I,defaultValue:m}=c8),n=D,H8=c8}else return;let b=q1(this.ctx,this,C),{type:r,typeSource:_,description:s,params:U8,returnType:p,isFunction:t}=N1({explicitType:S,typeSeed:D,inferredTypeForSource:n,jsdocType:b?.type,jsdocDescription:b?.description,jsdocParams:b?.params,jsdocReturnType:b?.returnType,resolvedType:H8?.resolvedType,resolvedDescription:H8?.resolvedDescription,resolvedParams:H8?.resolvedParams,resolvedReturnType:H8?.resolvedReturnType,initializerIsFunction:I,isFunctionDeclaration:L,typedefs:this.ctx.typedefs});w1(this,this.ctx,j,{name:j,...c!==void 0&&c!==j?{localName:c}:{},kind:B,description:s,binding:b?.binding,deprecated:b?.deprecated,tags:b?.tags,type:r,typeSource:_,value:A,defaultValue:m,params:U8,returnType:p,isFunction:t,isFunctionDeclaration:L,isRequired:h,constant:B==="const",reactive:this.ctx.reactive_vars.has(j),source:V8(this.ctx,C)})}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Comment"){let B=C?.data?.trim()??"";if(w4.test(B))this.ctx.componentComment=B.replace(w4,"").replace(uZ,""),this.ctx.componentCommentSource=V8(this.ctx,C)}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="Slot"){let j=C,B=j.attributes?.find((D)=>D.name==="name")?.value?.[0]?.data,L=(j.attributes||[]).filter((D)=>D.name!=="name").reduce((D,S)=>{let I={value:void 0,replace:!1},h=S.value;if(h===void 0)return D;if(h[0]){let c=h[0],{type:m,expression:n,raw:H8,start:b,end:r}=c;if(m==="Text"&&H8!==void 0)I.value=JSON.stringify(H8);else if(m==="AttributeShorthand"&&n&&typeof n==="object"&&"name"in n)I.value=n.name,I.replace=!0;if(n&&typeof n==="object"&&"type"in n){if(n.type==="Literal"&&"value"in n){let _=n.value;I.value=typeof _==="string"?JSON.stringify(_):String(_)}else if(n.type==="MemberExpression")I.value=e1(this.ctx,this,n);else if(n.type!=="Identifier"){if(b!==void 0&&r!==void 0){if(n.type==="ObjectExpression"||n.type==="TemplateLiteral")I.value=J8(this.ctx,b+1,r-1)}}}}if(S.name)D[S.name]=I;return D},{}),A=j.children?.map(({start:D,end:S})=>{if(D===void 0||S===void 0)return"";return J8(this.ctx,D,S)??""}).join("").trim();S1(this.ctx,{slot_name:B,slot_props:L,slot_fallback:A,source:V8(this.ctx,C)})}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="RenderTag"){let j=C,B=z7(this.ctx,j.expression);if(B){let L;if(B.arguments.length===0)L={};else if(B.arguments.length===1&&typeof B.arguments[0]==="object"&&B.arguments[0]&&"type"in B.arguments[0]&&B.arguments[0].type==="ObjectExpression")L=G7(this.ctx,this,B.arguments[0]);else if(B.arguments.length===1)p8(this.ctx,"syntax-skipped",B.publicName,`{@render ${B.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,V8(this.ctx,C));let A=B.publicName==="children"?void 0:B.publicName,D=A===void 0?xZ:A;if(L!==void 0)S1(this.ctx,{slot_name:A,slot_props:L,source:V8(this.ctx,C)});if(L!==void 0||this.ctx.slots.has(D))this.ctx.snippetPropLocals.add(B.trackingName)}}if(C&&typeof C==="object"&&"type"in C&&String(C.type)==="EventHandler"){let j=C;if(j.expression==null&&j.name){if(J!=null&&typeof J==="object"&&"name"in J){let B=typeof J.name==="string"?J.name:void 0,L="type"in J?String(J.type):void 0;if(B&&L){let A=L==="InlineComponent"?{type:"InlineComponent",name:B}:{type:"Element",name:B};this.ctx.forwardedEvents.set(j.name,A);let D=this.ctx.events.get(j.name),S=this.ctx.eventDescriptions.get(j.name),I=D?.deprecated;if(!D)this.ctx.events.set(j.name,{type:"forwarded",name:j.name,element:A,description:S,deprecated:I,source:V8(this.ctx,C)});else if(D.type==="forwarded"&&S&&!D.description)this.ctx.events.set(j.name,{...D,description:S,deprecated:D.deprecated??I,source:D.source||V8(this.ctx,C)})}}}}if(J&&typeof J==="object"&&"type"in J&&(String(J.type)==="Element"||String(J.type)==="InlineComponent")&&C&&typeof C==="object"&&"type"in C&&String(C.type)==="Binding"){let j=C;if(j.expression?.name){let B=K0(this.ctx,j.expression.name);if(B)this.ctx.reactive_vars.add(B)}if(String(J.type)==="Element"&&j.name==="this"&&j.expression?.name&&"name"in J&&typeof J.name==="string"){let B=K0(this.ctx,j.expression.name);if(!B)return;let L=J.name;if(this.ctx.bindings.has(B)){let A=this.ctx.bindings.get(B);if(A&&!A.elements.includes(L))this.ctx.bindings.set(B,{...A,elements:[...A.elements,L]})}else this.ctx.bindings.set(B,{elements:[L]})}}},leave:(C)=>{if(this.ctx.scopeDeclarations.has(C))this.ctx.activeScopes.pop();w7(M,C)}}),W!==void 0){for(let C of O)if(C.name===W){let J=C.arguments[0],X=J&&typeof J==="object"&&"value"in J?J.value:void 0,z=C.arguments[1],j=z&&typeof z==="object"&&"value"in z?z.value:void 0;if(X!=null)I1(this.ctx,{name:String(X),detail:j==null?"":Y9(j),has_argument:Boolean(z),source:C.source})}}let F=new Set(R);if(W!==void 0){for(let C of O)if(C.name===W){let J=C.arguments[0],X=J&&typeof J==="object"&&"value"in J?J.value:void 0;if(X!=null)F.add(String(X))}}this.ctx.forwardedEvents.forEach((C,J)=>{let X=this.ctx.events.get(J);if(X&&X.type==="dispatched"&&!F.has(J)){let z=this.ctx.eventDescriptions.get(J),j={type:"forwarded",name:J,element:C,description:z,deprecated:X.deprecated,tags:X.tags,source:X.source};if(X.detail!==void 0&&X.detail!=="undefined")j.detail=X.detail;this.ctx.events.set(J,j)}}),N7(this.ctx,F);let P=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(C)=>this.resolvePublicPropName(C))):new Set,w=O8.mapToArray(this.ctx.props).filter((C)=>!P.has(C.name)).map((C)=>{if(this.ctx.bindings.has(C.name)){let J=this.ctx.bindings.get(C.name)?.elements.sort().map((X)=>c6(X)).join(" | ");return{...C,type:`null | ${J}`,typeSource:"inferred",reactive:C.reactive||this.ctx.reactive_vars.has(C.name)}}return{...C,reactive:C.reactive||this.ctx.reactive_vars.has(C.name)}});this.ctx.activeScopes.length=0;let N=O8.mapToArray(this.ctx.slots).map((C)=>{if(!C.slot_props)return C;if(typeof C.slot_props==="string")return mZ.test(C.slot_props)?{...C,slot_props:"Record<string, never>"}:C;let J=C.slot_props,X=[];for(let j of Object.keys(J)){if(J[j].replace&&J[j].value!==void 0)J[j].value=this.getPropTypeByLocalOrPublic(J[j].value);if(J[j].value===void 0)J[j].value="any";X.push(`${j}: ${J[j].value}`)}let z=X.length===0?"Record<string, never>":X.length===1?`{ ${X[0]} }`:`{
86
- ${X.join(`;
64
+ https://svelte.dev/e/script_invalid_context`)}function b5(q,Q){y(q,"script_reserved_attribute",`The \`${Q}\` attribute is reserved and cannot be used
65
+ https://svelte.dev/e/script_reserved_attribute`)}function T5(q){y(q,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function k5(q){y(q,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function E5(q){y(q,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function e9(q){y(q,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function v5(q,Q){y(q,"svelte_meta_duplicate",`A component can only have one \`<${Q}>\` element
66
+ https://svelte.dev/e/svelte_meta_duplicate`)}function h5(q,Q){y(q,"svelte_meta_invalid_content",`<${Q}> cannot have children
67
+ https://svelte.dev/e/svelte_meta_invalid_content`)}function f5(q,Q){y(q,"svelte_meta_invalid_placement",`\`<${Q}>\` tags cannot be inside elements or blocks
68
+ https://svelte.dev/e/svelte_meta_invalid_placement`)}function y5(q,Q){y(q,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${Q}
69
+ https://svelte.dev/e/svelte_meta_invalid_tag`)}function g5(q){y(q,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
70
+ https://svelte.dev/e/svelte_options_deprecated_tag`)}function _5(q){y(q,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function v0(q,Q){y(q,"svelte_options_invalid_attribute_value",`Value must be ${Q}, if specified
71
+ https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function h0(q){y(q,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function j1(q){y(q,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
72
+ https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function x5(q){y(q,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function q6(q){y(q,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
73
+ https://svelte.dev/e/svelte_options_invalid_tagname`)}function u5(q){y(q,"svelte_options_reserved_tagname",`Tag name is reserved
74
+ https://svelte.dev/e/svelte_options_reserved_tagname`)}function m5(q,Q){y(q,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${Q}'
75
+ https://svelte.dev/e/svelte_options_unknown_attribute`)}function l5(q){y(q,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
76
+ https://svelte.dev/e/tag_invalid_name`)}function c5(q,Q,Z){y(q,"tag_invalid_placement",`{@${Q} ...} tag cannot be ${Z}
77
+ https://svelte.dev/e/tag_invalid_placement`)}function w8(q){y(q,"unexpected_eof",`Unexpected end of input
78
+ https://svelte.dev/e/unexpected_eof`)}function i5(q,Q){y(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
79
+ https://svelte.dev/e/unexpected_reserved_word`)}function d5(q){y(q,"unterminated_string_constant",`Unterminated string constant
80
+ https://svelte.dev/e/unterminated_string_constant`)}function p5(q){y(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
81
+ https://svelte.dev/e/void_element_invalid_content`)}var f0=j8,Q6=f0.extend(J5());function o5(q,Q,Z,j){let Y=Z?Q6:f0,{onComment:K,add_comments:J}=j6(q,Q),X=Y.prototype.parseStatement;if(j)Y.prototype.parseStatement=function(...W){let R=X.call(this,...W);return this.undefinedExports={},R};try{let W=Y.parse(q,{onComment:K,sourceType:"module",ecmaVersion:16,locations:!0});return J(W),W}catch(W){return Z6(W)}finally{if(j)Y.prototype.parseStatement=X}}function Y1(q,Q,Z){let j=q.ts?Q6:f0,{onComment:Y,add_comments:K}=j6(Q,q.root.comments,Z);try{let J=j.parseExpressionAt(Q,Z,{onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return K(J),J}catch(J){Z6(J)}}function n5(q,Q,Z){let j=q.ts?Q6:f0,{onComment:Y,add_comments:K}=j6(Q,q.root.comments,Z);try{let J=new j({onComment:Y,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);J.nextToken();let X=J.parseStatement(null,!0,Object.create(null));return K(X),X}catch(J){if(J.pos===Q.length)w8(Q.length);Z6(J)}}var fQ=/ \(\d+:\d+\)$/;function Z6(q){S5(q.pos,q.message.replace(fQ,""))}function w1(q){return n8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function j6(q,Q,Z=0){return{onComment:(j,Y,K,J,X,W)=>{if(j&&/\n/.test(Y)){let R=K;while(R>0&&q[R-1]!==`
82
+ `)R-=1;let O=R;while(/[ \t]/.test(q[O]))O+=1;let M=q.slice(R,O);Y=Y.replace(new RegExp(`^${M}`,"gm"),"")}Q.push({type:j?"Block":"Line",value:Y,start:K,end:J,loc:{start:X,end:W}})},add_comments(j){if(Q.length===0)return;if(Q=Q.filter((Y)=>Y.start>=Z).map(({type:Y,value:K,start:J,end:X})=>({type:Y,value:K,start:J,end:X})),n8(j,null,{_(Y,{next:K,path:J}){let X;while(Q[0]&&Q[0].start<Y.start)X=Q.shift(),(Y.leadingComments||=[]).push(X);if(K(),Q[0]){let W=J.at(-1);if(W===void 0||Y.end!==W.end){let R=q.slice(Y.end,Q[0].start);if((W?.type==="BlockStatement"||W?.type==="Program")&&W.body.indexOf(Y)===W.body.length-1||W?.type==="ArrayExpression"&&W.elements.indexOf(Y)===W.elements.length-1||W?.type==="ObjectExpression"&&W.properties.indexOf(Y)===W.properties.length-1){let M=Y.end;while(Q.length){let $=Q[0];if(W&&$.start>=W.end)break;(Y.trailingComments||=[]).push($),Q.shift(),M=$.end}}else if(Y.end<=Q[0].start&&/^[,) \t]*$/.test(R))Y.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=j.end||j.type==="Program"))(j.trailingComments||=[]).push(...Q.splice(0))}}}function Y6(q){if(q<0)return 1/0;return q}function gQ(q,Q,Z){let j;if(Z==="`")j=q;else j=q.slice(0,Y6(q.indexOf(`
83
+ `,Q)));return H6(j,Q,Z)}function _Q(q,Q){let Z=H6(q,Q,"/"),j=H6(q,Q,`
84
+ `);return Z<j?Z:1/0}function H6(q,Q,Z){let j=Q;while(!0){let Y=q.indexOf(Z,j);if(Y===-1)return 1/0;if(xQ(q,Y-1)%2===0)return Y;j=Y+1}}function xQ(q,Q){let Z=Q,j=0;while(q[Z]==="\\")j++,Z--;return j}function g0(q,Q,Z){let j=y0[Z],Y=1,K=Q;while(Y>0&&K<q.length){let J=q[K];switch(J){case"'":case'"':case"`":K=gQ(q,K+1,J)+1;continue;case"/":{let X=q[K+1];if(!X){K++;continue}if(X==="/"){K=Y6(q.indexOf(`
85
+ `,K+1))+1;continue}if(X==="*"){K=Y6(q.indexOf("*/",K+1))+2;continue}let W=_Q(q,K+1)+1;if(W===1/0)K++;else K=W;continue}default:{let X=q[K];if(X===Z)Y++;else if(X===j)Y--;if(Y===0)return K;K++}}}return}var y0={"{":"}","(":")","[":"]"},uQ=new Set(Object.values(y0));function l1(q,Q,Z=y0){let j=Z===y0?uQ:new Set(Object.values(Z)),Y=[],K=Q;while(K<q.template.length){let J=q.template[K++];if(J==="'"||J==='"'||J==="`"){K=mQ(q,K,J);continue}if(J in Z)Y.push(J);else if(j.has(J)){let X=Y.pop(),W=Z[X];if(J!==W)E8(K-1,W);if(Y.length===0)return K}}w8(q.template.length)}function mQ(q,Q,Z){let j=!1,Y=Q;while(Y<q.template.length){let K=q.template[Y++];if(j){j=!1;continue}if(K===Z)return Y;if(K==="\\")j=!0;if(Z==="`"&&K==="$"&&q.template[Y]==="{")Y=l1(q,Y)}d5(Q)}function J6(q,Q){let Z=g0(q.template,q.index,Q??"{");if(Z){let j=q.index;return q.index=Z,{type:"Identifier",start:j,end:Z,name:""}}}function G8(q,Q,Z){try{let j=Y1(q,q.template,q.index),Y=j.end,K=q.root.comments.at(-1);if(K&&K.end>Y)Y=K.end;return q.index=Y,w1(j)}catch(j){if(q.loose&&!Z){let Y=J6(q,Q);if(Y)return Y}throw j}}function K6(q=[]){return{type:"ArrayExpression",elements:q}}function lQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var $K=lQ("void",c1(0));function c1(q){return{type:"Literal",value:q}}var cQ=c1(!0),wK=c1(!1),LK=c1(null);function s5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function X6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function W6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var iQ=/<\/script\s*>/,dQ=/<\/script\s*>/y,pQ=["server","client","worker","test","default"],oQ=["context","generics","lang","module"];function a5(q,Q,Z){let j=q.index,Y=q.read_until(iQ);if(q.index>=q.template.length)E0(q.template.length,"script");let K=q.template.slice(0,j).replace(W0," ")+Y;q.read(dQ);let J=o5(K,q.root.comments,q.ts,!0);if(J.start=j,J.loc)({line:J.loc.start.line,column:J.loc.start.column}=z8(Q)),{line:J.loc.end.line,column:J.loc.end.column}=z8(q.index);let X="default";for(let W of Z){if(pQ.includes(W.name))b5(W,W.name);if(!oQ.includes(W.name))Z2(W);if(W.name==="module"){if(W.value!==!0)N5(W,W.name);X="module"}if(W.name==="context"){if(W.value===!0||!s5(W))t9(W);if(W.value[0].data!=="module")t9(W);X="module"}}return{type:"Script",start:Q,end:q.index,context:X,content:J,attributes:Z}}var nQ=/[~^$*|]?=/y,sQ=/[\s\]]/,aQ=/[a-zA-Z]+/y,e5=/(\+|~|>|\|\|)/y,r5=/\d+(\.\d+)?%/y,t5=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,rQ=/[\s:]/,tQ=/-?\d/y,eQ=/[a-zA-Z0-9_-]/,qZ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,QZ=/\*\//,ZZ=/-->/;function G6(q,Q,Z){let j=q.index,Y=jZ(q,(J)=>J.match("</style")||J.index>=J.template.length),K=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:Y,content:{start:j,end:K,styles:q.template.slice(j,K),comment:null}}}function jZ(q,Q){let Z=[];while(L1(q),!Q(q))if(q.match("@"))Z.push(q4(q));else Z.push(Q4(q));return Z}function q4(q){let Q=q.index;q.eat("@",!0);let Z=t8(q),j=O6(q),Y=null;if(q.match("{"))Y=Z4(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:j,block:Y}}function Q4(q){let Q=q.index;return{type:"Rule",prelude:z6(q),block:Z4(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function z6(q,Q=!1){let Z=[];L1(q);let j=q.index;while(q.index<q.template.length){Z.push(YZ(q,Q));let Y=q.index;if(L1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:j,end:Y,children:Z};else q.eat(",",!0),L1(q)}w8(q.template.length)}function YZ(q,Q=!1){let Z=q.index,j=[];function Y(J,X){return{type:"RelativeSelector",combinator:J,selectors:[],start:X,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let K=Y(null,q.index);while(q.index<q.template.length){let J=q.index;if(q.eat("&"))K.selectors.push({type:"NestingSelector",name:"&",start:J,end:q.index});else if(q.eat("*")){let R="*";if(q.eat("|"))R=t8(q);K.selectors.push({type:"TypeSelector",name:R,start:J,end:q.index})}else if(q.eat("#"))K.selectors.push({type:"IdSelector",name:t8(q),start:J,end:q.index});else if(q.eat("."))K.selectors.push({type:"ClassSelector",name:t8(q),start:J,end:q.index});else if(q.eat("::")){if(K.selectors.push({type:"PseudoElementSelector",name:t8(q),start:J,end:q.index}),q.eat("("))z6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let R=t8(q),O=null;if(q.eat("("))O=z6(q,!0),q.eat(")",!0);K.selectors.push({type:"PseudoClassSelector",name:R,args:O,start:J,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let R=t8(q);q.allow_whitespace();let O=null,M=q.read(nQ);if(M)q.allow_whitespace(),O=VZ(q);q.allow_whitespace();let $=q.read(aQ);q.allow_whitespace(),q.eat("]",!0),K.selectors.push({type:"AttributeSelector",start:J,end:q.index,name:R,matcher:M,value:O,flags:$})}else if(Q&&q.match_regex(t5))K.selectors.push({type:"Nth",value:q.read(t5),start:J,end:q.index});else if(q.match_regex(r5))K.selectors.push({type:"Percentage",value:q.read(r5),start:J,end:q.index});else if(!q.match_regex(e5)){let R=t8(q);if(q.eat("|"))R=t8(q);K.selectors.push({type:"TypeSelector",name:R,start:J,end:q.index})}let X=q.index;if(L1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=X,K.end=X,j.push(K),{type:"ComplexSelector",start:Z,end:X,children:j,metadata:{rule:null,is_global:!1,used:!1}};q.index=X;let W=HZ(q);if(W){if(K.selectors.length>0)K.end=X,j.push(K);if(K=Y(W,W.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))X5(q.index)}}w8(q.template.length)}function HZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,j=q.read(e5);if(j){let Y=q.index;return q.allow_whitespace(),{type:"Combinator",name:j,start:Z,end:Y}}if(q.index!==Q)return{type:"Combinator",name:" ",start:Q,end:q.index};return null}function Z4(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(L1(q),q.match("}"))break;else Z.push(JZ(q));return q.eat("}",!0),{type:"Block",start:Q,end:q.index,children:Z}}function JZ(q){if(q.match("@"))return q4(q);let Q=q.index;O6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?Q4(q):KZ(q)}function KZ(q){let Q=q.index,Z=q.read_until(rQ);q.allow_whitespace(),q.eat(":");let j=q.index;q.allow_whitespace();let Y=O6(q);if(!Y&&!Z.startsWith("--"))V5({start:Q,end:j});let K=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:K,property:Z,value:Y}}function O6(q){let Q="",Z=!1,j=!1,Y=null;while(q.index<q.template.length){let K=q.template[q.index];if(Z){Q+="\\"+K,Z=!1,q.index++;continue}else if(K==="\\"){Z=!0,q.index++;continue}else if(K===Y)Y=null;else if(K===")")j=!1;else if(Y===null&&(K==='"'||K==="'"))Y=K;else if(K==="("&&Q.slice(-3)==="url")j=!0;else if((K===";"||K==="{"||K==="}")&&!j&&!Y)return Q.trim();else if(K==="/"&&!j&&!Y&&q.template[q.index+1]==="*"){q.index+=2;while(q.index<q.template.length){if(q.template[q.index]==="*"&&q.template[q.index+1]==="/"){q.index+=2;break}q.index++}continue}Q+=K,q.index++}w8(q.template.length)}function VZ(q){let Q="",Z=!1,j=q.eat('"')?'"':q.eat("'")?"'":null;while(q.index<q.template.length){let Y=q.template[q.index];if(Z)Q+="\\"+Y,Z=!1;else if(Y==="\\")Z=!0;else if(j?Y===j:sQ.test(Y)){if(j)q.eat(j,!0);return Q.trim()}else Q+=Y;q.index++}w8(q.template.length)}function t8(q){let Q=q.index,Z="";if(q.match_regex(tQ))p9(Q);while(q.index<q.template.length){let j=q.template[q.index];if(j==="\\"){let Y=q.match_regex(qZ);if(Y)Z+=String.fromCodePoint(parseInt(Y.slice(1),16)),q.index+=Y.length;else Z+="\\"+q.template[q.index+1],q.index+=2}else if(j.codePointAt(0)>=160||eQ.test(j))Z+=j,q.index++;else break}if(Z==="")p9(Q);return Z}function L1(q){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.eat("/*"))q.read_until(QZ),q.eat("*/",!0);if(q.eat("<!--"))q.read_until(ZZ),q.eat("-->",!0);q.allow_whitespace()}}var U6={"CounterClockwiseContourIntegral;":8755,"ClockwiseContourIntegral;":8754,"DoubleLongLeftRightArrow;":10234,"NotNestedGreaterGreater;":10914,"DiacriticalDoubleAcute;":733,"NotSquareSupersetEqual;":8931,"CloseCurlyDoubleQuote;":8221,"DoubleContourIntegral;":8751,"FilledVerySmallSquare;":9642,"NegativeVeryThinSpace;":8203,"NotPrecedesSlantEqual;":8928,"NotRightTriangleEqual;":8941,"NotSucceedsSlantEqual;":8929,"CapitalDifferentialD;":8517,"DoubleLeftRightArrow;":8660,"DoubleLongRightArrow;":10233,"EmptyVerySmallSquare;":9643,"NestedGreaterGreater;":8811,"NotDoubleVerticalBar;":8742,"NotGreaterSlantEqual;":10878,"NotLeftTriangleEqual;":8940,"NotSquareSubsetEqual;":8930,"OpenCurlyDoubleQuote;":8220,"ReverseUpEquilibrium;":10607,"DoubleLongLeftArrow;":10232,"DownLeftRightVector;":10576,"LeftArrowRightArrow;":8646,"NegativeMediumSpace;":8203,"NotGreaterFullEqual;":8807,"NotRightTriangleBar;":10704,"RightArrowLeftArrow;":8644,"SquareSupersetEqual;":8850,"leftrightsquigarrow;":8621,"DownRightTeeVector;":10591,"DownRightVectorBar;":10583,"LongLeftRightArrow;":10231,"Longleftrightarrow;":10234,"NegativeThickSpace;":8203,"NotLeftTriangleBar;":10703,"PrecedesSlantEqual;":8828,"ReverseEquilibrium;":8651,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVectorBar;":10581,"RightTriangleEqual;":8885,"SquareIntersection;":8851,"SucceedsSlantEqual;":8829,"blacktriangleright;":9656,"longleftrightarrow;":10231,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownLeftTeeVector;":10590,"DownLeftVectorBar;":10582,"FilledSmallSquare;":9724,"GreaterSlantEqual;":10878,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVectorBar;":10585,"LeftTriangleEqual;":8884,"NegativeThinSpace;":8203,"NotGreaterGreater;":8811,"NotLessSlantEqual;":10877,"NotNestedLessLess;":10913,"NotReverseElement;":8716,"NotSquareSuperset;":8848,"NotTildeFullEqual;":8775,"RightAngleBracket;":10217,"RightUpDownVector;":10575,"SquareSubsetEqual;":8849,"VerticalSeparator;":10072,"blacktriangledown;":9662,"blacktriangleleft;":9666,"leftrightharpoons;":8651,"rightleftharpoons;":8652,"twoheadrightarrow;":8608,"DiacriticalAcute;":180,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"DoubleRightArrow;":8658,"DownArrowUpArrow;":8693,"EmptySmallSquare;":9723,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"LeftAngleBracket;":10216,"LeftUpDownVector;":10577,"LessEqualGreater;":8922,"NonBreakingSpace;":160,"NotPrecedesEqual;":10927,"NotRightTriangle;":8939,"NotSucceedsEqual;":10928,"NotSucceedsTilde;":8831,"NotSupersetEqual;":8841,"RightTriangleBar;":10704,"RightUpTeeVector;":10588,"RightUpVectorBar;":10580,"UnderParenthesis;":9181,"UpArrowDownArrow;":8645,"circlearrowright;":8635,"downharpoonright;":8642,"ntrianglerighteq;":8941,"rightharpoondown;":8641,"rightrightarrows;":8649,"twoheadleftarrow;":8606,"vartriangleright;":8883,"CloseCurlyQuote;":8217,"ContourIntegral;":8750,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DownRightVector;":8641,"LeftRightVector;":10574,"LeftTriangleBar;":10703,"LeftUpTeeVector;":10592,"LeftUpVectorBar;":10584,"LowerRightArrow;":8600,"NotGreaterEqual;":8817,"NotGreaterTilde;":8821,"NotHumpDownHump;":8782,"NotLeftTriangle;":8938,"NotSquareSubset;":8847,"OverParenthesis;":9180,"RightDownVector;":8642,"ShortRightArrow;":8594,"UpperRightArrow;":8599,"bigtriangledown;":9661,"circlearrowleft;":8634,"curvearrowright;":8631,"downharpoonleft;":8643,"leftharpoondown;":8637,"leftrightarrows;":8646,"nLeftrightarrow;":8654,"nleftrightarrow;":8622,"ntrianglelefteq;":8940,"rightleftarrows;":8644,"rightsquigarrow;":8605,"rightthreetimes;":8908,"straightepsilon;":1013,"trianglerighteq;":8885,"vartriangleleft;":8882,"DiacriticalDot;":729,"DoubleRightTee;":8872,"DownLeftVector;":8637,"GreaterGreater;":10914,"HorizontalLine;":9472,"InvisibleComma;":8291,"InvisibleTimes;":8290,"LeftDownVector;":8643,"LeftRightArrow;":8596,"Leftrightarrow;":8660,"LessSlantEqual;":10877,"LongRightArrow;":10230,"Longrightarrow;":10233,"LowerLeftArrow;":8601,"NestedLessLess;":8810,"NotGreaterLess;":8825,"NotLessGreater;":8824,"NotSubsetEqual;":8840,"NotVerticalBar;":8740,"OpenCurlyQuote;":8216,"ReverseElement;":8715,"RightTeeVector;":10587,"RightVectorBar;":10579,"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"SquareSuperset;":8848,"TildeFullEqual;":8773,"UpperLeftArrow;":8598,"ZeroWidthSpace;":8203,"curvearrowleft;":8630,"doublebarwedge;":8966,"downdownarrows;":8650,"hookrightarrow;":8618,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftthreetimes;":8907,"longrightarrow;":10230,"looparrowright;":8620,"nshortparallel;":8742,"ntriangleright;":8939,"rightarrowtail;":8611,"rightharpoonup;":8640,"trianglelefteq;":8884,"upharpoonright;":8638,"ApplyFunction;":8289,"DifferentialD;":8518,"DoubleLeftTee;":10980,"DoubleUpArrow;":8657,"LeftTeeVector;":10586,"LeftVectorBar;":10578,"LessFullEqual;":8806,"LongLeftArrow;":10229,"Longleftarrow;":10232,"NotEqualTilde;":8770,"NotTildeEqual;":8772,"NotTildeTilde;":8777,"Poincareplane;":8460,"PrecedesEqual;":10927,"PrecedesTilde;":8830,"RightArrowBar;":8677,"RightTeeArrow;":8614,"RightTriangle;":8883,"RightUpVector;":8638,"SucceedsEqual;":10928,"SucceedsTilde;":8831,"SupersetEqual;":8839,"UpEquilibrium;":10606,"VerticalTilde;":8768,"VeryThinSpace;":8202,"bigtriangleup;":9651,"blacktriangle;":9652,"divideontimes;":8903,"fallingdotseq;":8786,"hookleftarrow;":8617,"leftarrowtail;":8610,"leftharpoonup;":8636,"longleftarrow;":10229,"looparrowleft;":8619,"measuredangle;":8737,"ntriangleleft;":8938,"shortparallel;":8741,"smallsetminus;":8726,"triangleright;":9657,"upharpoonleft;":8639,"varsubsetneqq;":10955,"varsupsetneqq;":10956,"DownArrowBar;":10515,"DownTeeArrow;":8615,"ExponentialE;":8519,"GreaterEqual;":8805,"GreaterTilde;":8819,"HilbertSpace;":8459,"HumpDownHump;":8782,"Intersection;":8898,"LeftArrowBar;":8676,"LeftTeeArrow;":8612,"LeftTriangle;":8882,"LeftUpVector;":8639,"NotCongruent;":8802,"NotHumpEqual;":8783,"NotLessEqual;":8816,"NotLessTilde;":8820,"Proportional;":8733,"RightCeiling;":8969,"RoundImplies;":10608,"ShortUpArrow;":8593,"SquareSubset;":8847,"UnderBracket;":9141,"VerticalLine;":124,"blacklozenge;":10731,"exponentiale;":8519,"risingdotseq;":8787,"triangledown;":9663,"triangleleft;":9667,"varsubsetneq;":8842,"varsupsetneq;":8843,"CircleMinus;":8854,"CircleTimes;":8855,"Equilibrium;":8652,"GreaterLess;":8823,"LeftCeiling;":8968,"LessGreater;":8822,"MediumSpace;":8287,"NotLessLess;":8810,"NotPrecedes;":8832,"NotSucceeds;":8833,"NotSuperset;":8835,"OverBracket;":9140,"RightVector;":8640,"Rrightarrow;":8667,"RuleDelayed;":10740,"SmallCircle;":8728,"SquareUnion;":8852,"SubsetEqual;":8838,"UpDownArrow;":8597,"Updownarrow;":8661,"VerticalBar;":8739,"backepsilon;":1014,"blacksquare;":9642,"circledcirc;":8858,"circleddash;":8861,"curlyeqprec;":8926,"curlyeqsucc;":8927,"diamondsuit;":9830,"eqslantless;":10901,"expectation;":8496,"nRightarrow;":8655,"nrightarrow;":8603,"preccurlyeq;":8828,"precnapprox;":10937,"quaternions;":8461,"straightphi;":981,"succcurlyeq;":8829,"succnapprox;":10938,"thickapprox;":8776,"updownarrow;":8597,"Bernoullis;":8492,"CirclePlus;":8853,"EqualTilde;":8770,"Fouriertrf;":8497,"ImaginaryI;":8520,"Laplacetrf;":8466,"LeftVector;":8636,"Lleftarrow;":8666,"NotElement;":8713,"NotGreater;":8815,"Proportion;":8759,"RightArrow;":8594,"RightFloor;":8971,"Rightarrow;":8658,"ThickSpace;":8287,"TildeEqual;":8771,"TildeTilde;":8776,"UnderBrace;":9183,"UpArrowBar;":10514,"UpTeeArrow;":8613,"circledast;":8859,"complement;":8705,"curlywedge;":8911,"eqslantgtr;":10902,"gtreqqless;":10892,"lessapprox;":10885,"lesseqqgtr;":10891,"lmoustache;":9136,"longmapsto;":10236,"mapstodown;":8615,"mapstoleft;":8612,"nLeftarrow;":8653,"nleftarrow;":8602,"nsubseteqq;":10949,"nsupseteqq;":10950,"precapprox;":10935,"rightarrow;":8594,"rmoustache;":9137,"sqsubseteq;":8849,"sqsupseteq;":8850,"subsetneqq;":10955,"succapprox;":10936,"supsetneqq;":10956,"upuparrows;":8648,"varepsilon;":1013,"varnothing;":8709,"Backslash;":8726,"CenterDot;":183,"CircleDot;":8857,"Congruent;":8801,"Coproduct;":8720,"DoubleDot;":168,"DownArrow;":8595,"DownBreve;":785,"Downarrow;":8659,"HumpEqual;":8783,"LeftArrow;":8592,"LeftFloor;":8970,"Leftarrow;":8656,"LessTilde;":8818,"Mellintrf;":8499,"MinusPlus;":8723,"NotCupCap;":8813,"NotExists;":8708,"NotSubset;":8834,"OverBrace;":9182,"PlusMinus;":177,"Therefore;":8756,"ThinSpace;":8201,"TripleDot;":8411,"UnionPlus;":8846,"backprime;":8245,"backsimeq;":8909,"bigotimes;":10754,"centerdot;":183,"checkmark;":10003,"complexes;":8450,"dotsquare;":8865,"downarrow;":8595,"gtrapprox;":10886,"gtreqless;":8923,"gvertneqq;":8809,"heartsuit;":9829,"leftarrow;":8592,"lesseqgtr;":8922,"lvertneqq;":8808,"ngeqslant;":10878,"nleqslant;":10877,"nparallel;":8742,"nshortmid;":8740,"nsubseteq;":8840,"nsupseteq;":8841,"pitchfork;":8916,"rationals;":8474,"spadesuit;":9824,"subseteqq;":10949,"subsetneq;":8842,"supseteqq;":10950,"supsetneq;":8843,"therefore;":8756,"triangleq;":8796,"varpropto;":8733,"DDotrahd;":10513,"DotEqual;":8784,"Integral;":8747,"LessLess;":10913,"NotEqual;":8800,"NotTilde;":8769,"PartialD;":8706,"Precedes;":8826,"RightTee;":8866,"Succeeds;":8827,"SuchThat;":8715,"Superset;":8835,"Uarrocir;":10569,"UnderBar;":95,"andslope;":10840,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrtvbd;":10653,"approxeq;":8778,"awconint;":8755,"backcong;":8780,"barwedge;":8965,"bbrktbrk;":9142,"bigoplus;":10753,"bigsqcup;":10758,"biguplus;":10756,"bigwedge;":8896,"boxminus;":8863,"boxtimes;":8864,"bsolhsub;":10184,"capbrcup;":10825,"circledR;":174,"circledS;":9416,"cirfnint;":10768,"clubsuit;":9827,"cupbrcap;":10824,"curlyvee;":8910,"cwconint;":8754,"doteqdot;":8785,"dotminus;":8760,"drbkarow;":10512,"dzigrarr;":10239,"elinters;":9191,"emptyset;":8709,"eqvparsl;":10725,"fpartint;":10765,"geqslant;":10878,"gesdotol;":10884,"gnapprox;":10890,"hksearow;":10533,"hkswarow;":10534,"imagline;":8464,"imagpart;":8465,"infintie;":10717,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"laemptyv;":10676,"ldrushar;":10571,"leqslant;":10877,"lesdotor;":10883,"llcorner;":8990,"lnapprox;":10889,"lrcorner;":8991,"lurdshar;":10570,"mapstoup;":8613,"multimap;":8888,"naturals;":8469,"ncongdot;":10861,"notindot;":8949,"otimesas;":10806,"parallel;":8741,"plusacir;":10787,"pointint;":10773,"precneqq;":10933,"precnsim;":8936,"profalar;":9006,"profline;":8978,"profsurf;":8979,"raemptyv;":10675,"realpart;":8476,"rppolint;":10770,"rtriltri;":10702,"scpolint;":10771,"setminus;":8726,"shortmid;":8739,"smeparsl;":10724,"sqsubset;":8847,"sqsupset;":8848,"subseteq;":8838,"succneqq;":10934,"succnsim;":8937,"supseteq;":8839,"thetasym;":977,"thicksim;":8764,"timesbar;":10801,"triangle;":9653,"triminus;":10810,"trpezium;":9186,"ulcorner;":8988,"urcorner;":8989,"varkappa;":1008,"varsigma;":962,"vartheta;":977,"Because;":8757,"Cayleys;":8493,"Cconint;":8752,"Cedilla;":184,"Diamond;":8900,"DownTee;":8868,"Element;":8712,"Epsilon;":917,"Implies;":8658,"LeftTee;":8867,"NewLine;":10,"NoBreak;":8288,"NotLess;":8814,"Omicron;":927,"OverBar;":8254,"Product;":8719,"UpArrow;":8593,"Uparrow;":8657,"Upsilon;":933,"alefsym;":8501,"angrtvb;":8894,"angzarr;":9084,"asympeq;":8781,"backsim;":8765,"because;":8757,"bemptyv;":10672,"between;":8812,"bigcirc;":9711,"bigodot;":10752,"bigstar;":9733,"bnequiv;":8801,"boxplus;":8862,"ccupssm;":10832,"cemptyv;":10674,"cirscir;":10690,"coloneq;":8788,"congdot;":10861,"cudarrl;":10552,"cudarrr;":10549,"cularrp;":10557,"curarrm;":10556,"dbkarow;":10511,"ddagger;":8225,"ddotseq;":10871,"demptyv;":10673,"diamond;":8900,"digamma;":989,"dotplus;":8724,"dwangle;":10662,"epsilon;":949,"eqcolon;":8789,"equivDD;":10872,"gesdoto;":10882,"gtquest;":10876,"gtrless;":8823,"harrcir;":10568,"intprod;":10812,"isindot;":8949,"larrbfs;":10527,"larrsim;":10611,"lbrksld;":10639,"lbrkslu;":10637,"ldrdhar;":10599,"lesdoto;":10881,"lessdot;":8918,"lessgtr;":8822,"lesssim;":8818,"lotimes;":10804,"lozenge;":9674,"ltquest;":10875,"luruhar;":10598,"maltese;":10016,"minusdu;":10794,"napprox;":8777,"natural;":9838,"nearrow;":8599,"nexists;":8708,"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npolint;":10772,"npreceq;":10927,"nsqsube;":8930,"nsqsupe;":8931,"nsubset;":8834,"nsucceq;":10928,"nsupset;":8835,"nvinfin;":10718,"nvltrie;":8884,"nvrtrie;":8885,"nwarrow;":8598,"olcross;":10683,"omicron;":959,"orderof;":8500,"orslope;":10839,"pertenk;":8241,"planckh;":8462,"pluscir;":10786,"plussim;":10790,"plustwo;":10791,"precsim;":8830,"quatint;":10774,"questeq;":8799,"rarrbfs;":10528,"rarrsim;":10612,"rbrksld;":10638,"rbrkslu;":10640,"rdldhar;":10601,"realine;":8475,"rotimes;":10805,"ruluhar;":10600,"searrow;":8600,"simplus;":10788,"simrarr;":10610,"subedot;":10947,"submult;":10945,"subplus;":10943,"subrarr;":10617,"succsim;":8831,"supdsub;":10968,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supplus;":10944,"swarrow;":8601,"topfork;":10970,"triplus;":10809,"tritime;":10811,"uparrow;":8593,"upsilon;":965,"uwangle;":10663,"vzigzag;":10650,"zigrarr;":8669,"Aacute;":193,"Abreve;":258,"Agrave;":192,"Assign;":8788,"Atilde;":195,"Barwed;":8966,"Bumpeq;":8782,"Cacute;":262,"Ccaron;":268,"Ccedil;":199,"Colone;":10868,"Conint;":8751,"CupCap;":8781,"Dagger;":8225,"Dcaron;":270,"DotDot;":8412,"Dstrok;":272,"Eacute;":201,"Ecaron;":282,"Egrave;":200,"Exists;":8707,"ForAll;":8704,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"HARDcy;":1066,"Hstrok;":294,"Iacute;":205,"Igrave;":204,"Itilde;":296,"Jsercy;":1032,"Kcedil;":310,"Lacute;":313,"Lambda;":923,"Lcaron;":317,"Lcedil;":315,"Lmidot;":319,"Lstrok;":321,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ntilde;":209,"Oacute;":211,"Odblac;":336,"Ograve;":210,"Oslash;":216,"Otilde;":213,"Otimes;":10807,"Racute;":340,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"SHCHcy;":1065,"SOFTcy;":1068,"Sacute;":346,"Scaron;":352,"Scedil;":350,"Square;":9633,"Subset;":8912,"Supset;":8913,"Tcaron;":356,"Tcedil;":354,"Tstrok;":358,"Uacute;":218,"Ubreve;":364,"Udblac;":368,"Ugrave;":217,"Utilde;":360,"Vdashl;":10982,"Verbar;":8214,"Vvdash;":8874,"Yacute;":221,"Zacute;":377,"Zcaron;":381,"aacute;":225,"abreve;":259,"agrave;":224,"andand;":10837,"angmsd;":8737,"angsph;":8738,"apacir;":10863,"approx;":8776,"atilde;":227,"barvee;":8893,"barwed;":8965,"becaus;":8757,"bernou;":8492,"bigcap;":8898,"bigcup;":8899,"bigvee;":8897,"bkarow;":10509,"bottom;":8869,"bowtie;":8904,"boxbox;":10697,"bprime;":8245,"brvbar;":166,"bullet;":8226,"bumpeq;":8783,"cacute;":263,"capand;":10820,"capcap;":10827,"capcup;":10823,"capdot;":10816,"ccaron;":269,"ccedil;":231,"circeq;":8791,"cirmid;":10991,"colone;":8788,"commat;":64,"compfn;":8728,"conint;":8750,"coprod;":8720,"copysr;":8471,"cularr;":8630,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"curarr;":8631,"curren;":164,"cylcty;":9005,"dagger;":8224,"daleth;":8504,"dcaron;":271,"dfisht;":10623,"divide;":247,"divonx;":8903,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"drcorn;":8991,"drcrop;":8972,"dstrok;":273,"eacute;":233,"easter;":10862,"ecaron;":283,"ecolon;":8789,"egrave;":232,"egsdot;":10904,"elsdot;":10903,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"eparsl;":10723,"eqcirc;":8790,"equals;":61,"equest;":8799,"female;":9792,"ffilig;":64259,"ffllig;":64260,"forall;":8704,"frac12;":189,"frac13;":8531,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"gacute;":501,"gammad;":989,"gbreve;":287,"gesdot;":10880,"gesles;":10900,"gtlPar;":10645,"gtrarr;":10616,"gtrdot;":8919,"gtrsim;":8819,"hairsp;":8202,"hamilt;":8459,"hardcy;":1098,"hearts;":9829,"hellip;":8230,"hercon;":8889,"homtht;":8763,"horbar;":8213,"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,"iacute;":237,"igrave;":236,"iiiint;":10764,"iinfin;":10716,"incare;":8453,"inodot;":305,"intcal;":8890,"iquest;":191,"isinsv;":8947,"itilde;":297,"jsercy;":1112,"kappav;":1008,"kcedil;":311,"kgreen;":312,"lAtail;":10523,"lacute;":314,"lagran;":8466,"lambda;":955,"langle;":10216,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrtl;":8610,"latail;":10521,"lbrace;":123,"lbrack;":91,"lcaron;":318,"lcedil;":316,"ldquor;":8222,"lesdot;":10879,"lesges;":10899,"lfisht;":10620,"lfloor;":8970,"lharul;":10602,"llhard;":10603,"lmidot;":320,"lmoust;":9136,"loplus;":10797,"lowast;":8727,"lowbar;":95,"lparlt;":10643,"lrhard;":10605,"lsaquo;":8249,"lsquor;":8218,"lstrok;":322,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltrPar;":10646,"mapsto;":8614,"marker;":9646,"mcomma;":10793,"midast;":42,"midcir;":10992,"middot;":183,"minusb;":8863,"minusd;":8760,"mnplus;":8723,"models;":8871,"mstpos;":8766,"nVDash;":8879,"nVdash;":8878,"nacute;":324,"nbumpe;":8783,"ncaron;":328,"ncedil;":326,"nearhk;":10532,"nequiv;":8802,"nesear;":10536,"nexist;":8708,"nltrie;":8940,"notinE;":8953,"nparsl;":11005,"nprcue;":8928,"nrarrc;":10547,"nrarrw;":8605,"nrtrie;":8941,"nsccue;":8929,"nsimeq;":8772,"ntilde;":241,"numero;":8470,"nvDash;":8877,"nvHarr;":10500,"nvdash;":8876,"nvlArr;":10498,"nvrArr;":10499,"nwarhk;":10531,"nwnear;":10535,"oacute;":243,"odblac;":337,"odsold;":10684,"ograve;":242,"ominus;":8854,"origof;":8886,"oslash;":248,"otilde;":245,"otimes;":8855,"parsim;":10995,"percnt;":37,"period;":46,"permil;":8240,"phmmat;":8499,"planck;":8463,"plankv;":8463,"plusdo;":8724,"plusdu;":10789,"plusmn;":177,"preceq;":10927,"primes;":8473,"prnsim;":8936,"propto;":8733,"prurel;":8880,"puncsp;":8200,"qprime;":8279,"rAtail;":10524,"racute;":341,"rangle;":10217,"rarrap;":10613,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrtl;":8611,"ratail;":10522,"rbrace;":125,"rbrack;":93,"rcaron;":345,"rcedil;":343,"rdquor;":8221,"rfisht;":10621,"rfloor;":8971,"rharul;":10604,"rmoust;":9137,"roplus;":10798,"rpargt;":10644,"rsaquo;":8250,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"sacute;":347,"scaron;":353,"scedil;":351,"scnsim;":8937,"searhk;":10533,"seswar;":10537,"sfrown;":8994,"shchcy;":1097,"sigmaf;":962,"sigmav;":962,"simdot;":10858,"smashp;":10803,"softcy;":1100,"solbar;":9023,"spades;":9824,"sqcaps;":8851,"sqcups;":8852,"sqsube;":8849,"sqsupe;":8850,"square;":9633,"squarf;":9642,"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"subdot;":10941,"subset;":8834,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succeq;":10928,"supdot;":10942,"supset;":8835,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swarhk;":10534,"swnwar;":10538,"target;":8982,"tcaron;":357,"tcedil;":355,"telrec;":8981,"there4;":8756,"thetav;":977,"thinsp;":8201,"thksim;":8764,"timesb;":8864,"timesd;":10800,"topbot;":9014,"topcir;":10993,"tprime;":8244,"tridot;":9708,"tstrok;":359,"uacute;":250,"ubreve;":365,"udblac;":369,"ufisht;":10622,"ugrave;":249,"ulcorn;":8988,"ulcrop;":8975,"urcorn;":8989,"urcrop;":8974,"utilde;":361,"vangrt;":10652,"varphi;":981,"varrho;":1009,"veebar;":8891,"vellip;":8942,"verbar;":124,"vsubnE;":10955,"vsubne;":8842,"vsupnE;":10956,"vsupne;":8843,"wedbar;":10847,"wedgeq;":8793,"weierp;":8472,"wreath;":8768,"xoplus;":10753,"xotime;":10754,"xsqcup;":10758,"xuplus;":10756,"xwedge;":8896,"yacute;":253,"zacute;":378,"zcaron;":382,"zeetrf;":8488,"AElig;":198,Aacute:193,"Acirc;":194,Agrave:192,"Alpha;":913,"Amacr;":256,"Aogon;":260,"Aring;":197,Atilde:195,"Breve;":728,Ccedil:199,"Ccirc;":264,"Colon;":8759,"Cross;":10799,"Dashv;":10980,"Delta;":916,Eacute:201,"Ecirc;":202,Egrave:200,"Emacr;":274,"Eogon;":280,"Equal;":10869,"Gamma;":915,"Gcirc;":284,"Hacek;":711,"Hcirc;":292,"IJlig;":306,Iacute:205,"Icirc;":206,Igrave:204,"Imacr;":298,"Iogon;":302,"Iukcy;":1030,"Jcirc;":308,"Jukcy;":1028,"Kappa;":922,Ntilde:209,"OElig;":338,Oacute:211,"Ocirc;":212,Ograve:210,"Omacr;":332,"Omega;":937,Oslash:216,Otilde:213,"Prime;":8243,"RBarr;":10512,"Scirc;":348,"Sigma;":931,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"Theta;":920,"Tilde;":8764,Uacute:218,"Ubrcy;":1038,"Ucirc;":219,Ugrave:217,"Umacr;":362,"Union;":8899,"Uogon;":370,"UpTee;":8869,"Uring;":366,"VDash;":8875,"Vdash;":8873,"Wcirc;":372,"Wedge;":8896,Yacute:221,"Ycirc;":374,aacute:225,"acirc;":226,"acute;":180,"aelig;":230,agrave:224,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,"angle;":8736,"angrt;":8735,"angst;":197,"aogon;":261,"aring;":229,"asymp;":8776,atilde:227,"awint;":10769,"bcong;":8780,"bdquo;":8222,"bepsi;":1014,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"breve;":728,brvbar:166,"bsemi;":8271,"bsime;":8909,"bsolb;":10693,"bumpE;":10926,"bumpe;":8783,"caret;":8257,"caron;":711,"ccaps;":10829,ccedil:231,"ccirc;":265,"ccups;":10828,"cedil;":184,"check;":10003,"clubs;":9827,"colon;":58,"comma;":44,"crarr;":8629,"cross;":10007,"csube;":10961,"csupe;":10962,"ctdot;":8943,"cuepr;":8926,"cuesc;":8927,"cupor;":10821,curren:164,"cuvee;":8910,"cuwed;":8911,"cwint;":8753,"dashv;":8867,"dblac;":733,"ddarr;":8650,"delta;":948,"dharl;":8643,"dharr;":8642,"diams;":9830,"disin;":8946,divide:247,"doteq;":8784,"dtdot;":8945,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"eDDot;":10871,eacute:233,"ecirc;":234,"efDot;":8786,egrave:232,"emacr;":275,"empty;":8709,"eogon;":281,"eplus;":10865,"epsiv;":1013,"eqsim;":8770,"equiv;":8801,"erDot;":8787,"erarr;":10609,"esdot;":8784,"exist;":8707,"fflig;":64256,"filig;":64257,"fjlig;":102,"fllig;":64258,"fltns;":9649,"forkv;":10969,frac12:189,frac14:188,frac34:190,"frasl;":8260,"frown;":8994,"gamma;":947,"gcirc;":285,"gescc;":10921,"gimel;":8503,"gneqq;":8809,"gnsim;":8935,"grave;":96,"gsime;":10894,"gsiml;":10896,"gtcir;":10874,"gtdot;":8919,"harrw;":8621,"hcirc;":293,"hoarr;":8703,iacute:237,"icirc;":238,"iexcl;":161,igrave:236,"iiint;":8749,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imath;":305,"imped;":437,"infin;":8734,"iogon;":303,"iprod;":10812,iquest:191,"isinE;":8953,"isins;":8948,"isinv;":8712,"iukcy;":1110,"jcirc;":309,"jmath;":567,"jukcy;":1108,"kappa;":954,"lAarr;":8666,"lBarr;":10510,"langd;":10641,"laquo;":171,"larrb;":8676,"lates;":10925,"lbarr;":10508,"lbbrk;":10098,"lbrke;":10635,"lceil;":8968,"ldquo;":8220,"lescc;":10920,"lhard;":8637,"lharu;":8636,"lhblk;":9604,"llarr;":8647,"lltri;":9722,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"lopar;":10629,"lrarr;":8646,"lrhar;":8651,"lrtri;":8895,"lsime;":10893,"lsimg;":10895,"lsquo;":8216,"ltcir;":10873,"ltdot;":8918,"ltrie;":8884,"ltrif;":9666,"mDDot;":8762,"mdash;":8212,"micro;":181,middot:183,"minus;":8722,"mumap;":8888,"nabla;":8711,"napid;":8779,"napos;":329,"natur;":9838,"nbump;":8782,"ncong;":8775,"ndash;":8211,"neArr;":8663,"nearr;":8599,"nedot;":8784,"nesim;":8770,"ngeqq;":8807,"ngsim;":8821,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"nlArr;":8653,"nlarr;":8602,"nleqq;":8806,"nless;":8814,"nlsim;":8820,"nltri;":8938,"notin;":8713,"notni;":8716,"npart;":8706,"nprec;":8832,"nrArr;":8655,"nrarr;":8603,"nrtri;":8939,"nsime;":8772,"nsmid;":8740,"nspar;":8742,"nsubE;":10949,"nsube;":8840,"nsucc;":8833,"nsupE;":10950,"nsupe;":8841,ntilde:241,"numsp;":8199,"nvsim;":8764,"nwArr;":8662,"nwarr;":8598,oacute:243,"ocirc;":244,"odash;":8861,"oelig;":339,"ofcir;":10687,ograve:242,"ohbar;":10677,"olarr;":8634,"olcir;":10686,"oline;":8254,"omacr;":333,"omega;":969,"operp;":10681,"oplus;":8853,"orarr;":8635,"order;":8500,oslash:248,otilde:245,"ovbar;":9021,"parsl;":11005,"phone;":9742,"plusb;":8862,"pluse;":10866,plusmn:177,"pound;":163,"prcue;":8828,"prime;":8242,"prnap;":10937,"prsim;":8830,"quest;":63,"rAarr;":8667,"rBarr;":10511,"radic;":8730,"rangd;":10642,"range;":10661,"raquo;":187,"rarrb;":8677,"rarrc;":10547,"rarrw;":8605,"ratio;":8758,"rbarr;":10509,"rbbrk;":10099,"rbrke;":10636,"rceil;":8969,"rdquo;":8221,"reals;":8477,"rhard;":8641,"rharu;":8640,"rlarr;":8644,"rlhar;":8652,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"rrarr;":8649,"rsquo;":8217,"rtrie;":8885,"rtrif;":9656,"sbquo;":8218,"sccue;":8829,"scirc;":349,"scnap;":10938,"scsim;":8831,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searr;":8600,"setmn;":8726,"sharp;":9839,"sigma;":963,"simeq;":8771,"simgE;":10912,"simlE;":10911,"simne;":8774,"slarr;":8592,"smile;":8995,"smtes;":10924,"sqcap;":8851,"sqcup;":8852,"sqsub;":8847,"sqsup;":8848,"srarr;":8594,"starf;":9733,"strns;":175,"subnE;":10955,"subne;":8842,"supnE;":10956,"supne;":8843,"swArr;":8665,"swarr;":8601,"szlig;":223,"theta;":952,"thkap;":8776,"thorn;":254,"tilde;":732,"times;":215,"trade;":8482,"trisb;":10701,"tshcy;":1115,"twixt;":8812,uacute:250,"ubrcy;":1118,"ucirc;":251,"udarr;":8645,"udhar;":10606,ugrave:249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ultri;":9720,"umacr;":363,"uogon;":371,"uplus;":8846,"upsih;":978,"uring;":367,"urtri;":9721,"utdot;":8944,"utrif;":9652,"uuarr;":8648,"vBarv;":10985,"vDash;":8872,"varpi;":982,"vdash;":8866,"veeeq;":8794,"vltri;":8882,"vnsub;":8834,"vnsup;":8835,"vprop;":8733,"vrtri;":8883,"wcirc;":373,"wedge;":8743,"xcirc;":9711,"xdtri;":9661,"xhArr;":10234,"xharr;":10231,"xlArr;":10232,"xlarr;":10229,"xodot;":10752,"xrArr;":10233,"xrarr;":10230,"xutri;":9651,yacute:253,"ycirc;":375,AElig:198,Acirc:194,"Aopf;":120120,Aring:197,"Ascr;":119964,"Auml;":196,"Barv;":10983,"Beta;":914,"Bopf;":120121,"Bscr;":8492,"CHcy;":1063,"COPY;":169,"Cdot;":266,"Copf;":8450,"Cscr;":119966,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Darr;":8609,"Dopf;":120123,"Dscr;":119967,Ecirc:202,"Edot;":278,"Eopf;":120124,"Escr;":8496,"Esim;":10867,"Euml;":203,"Fopf;":120125,"Fscr;":8497,"GJcy;":1027,"Gdot;":288,"Gopf;":120126,"Gscr;":119970,"Hopf;":8461,"Hscr;":8459,"IEcy;":1045,"IOcy;":1025,Icirc:206,"Idot;":304,"Iopf;":120128,"Iota;":921,"Iscr;":8464,"Iuml;":207,"Jopf;":120129,"Jscr;":119973,"KHcy;":1061,"KJcy;":1036,"Kopf;":120130,"Kscr;":119974,"LJcy;":1033,"Lang;":10218,"Larr;":8606,"Lopf;":120131,"Lscr;":8466,"Mopf;":120132,"Mscr;":8499,"NJcy;":1034,"Nopf;":8469,"Nscr;":119977,Ocirc:212,"Oopf;":120134,"Oscr;":119978,"Ouml;":214,"Popf;":8473,"Pscr;":119979,"QUOT;":34,"Qopf;":8474,"Qscr;":119980,"Rang;":10219,"Rarr;":8608,"Ropf;":8477,"Rscr;":8475,"SHcy;":1064,"Sopf;":120138,"Sqrt;":8730,"Sscr;":119982,"Star;":8902,THORN:222,"TScy;":1062,"Topf;":120139,"Tscr;":119983,"Uarr;":8607,Ucirc:219,"Uopf;":120140,"Upsi;":978,"Uscr;":119984,"Uuml;":220,"Vbar;":10987,"Vert;":8214,"Vopf;":120141,"Vscr;":119985,"Wopf;":120142,"Wscr;":119986,"Xopf;":120143,"Xscr;":119987,"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,"Yopf;":120144,"Yscr;":119988,"Yuml;":376,"ZHcy;":1046,"Zdot;":379,"Zeta;":918,"Zopf;":8484,"Zscr;":119989,acirc:226,acute:180,aelig:230,"andd;":10844,"andv;":10842,"ange;":10660,"aopf;":120146,"apid;":8779,"apos;":39,aring:229,"ascr;":119990,"auml;":228,"bNot;":10989,"bbrk;":9141,"beta;":946,"beth;":8502,"bnot;":8976,"bopf;":120147,"boxH;":9552,"boxV;":9553,"boxh;":9472,"boxv;":9474,"bscr;":119991,"bsim;":8765,"bsol;":92,"bull;":8226,"bump;":8782,"caps;":8745,"cdot;":267,cedil:184,"cent;":162,"chcy;":1095,"cirE;":10691,"circ;":710,"cire;":8791,"comp;":8705,"cong;":8773,"copf;":120148,"copy;":169,"cscr;":119992,"csub;":10959,"csup;":10960,"cups;":8746,"dArr;":8659,"dHar;":10597,"darr;":8595,"dash;":8208,"diam;":8900,"djcy;":1106,"dopf;":120149,"dscr;":119993,"dscy;":1109,"dsol;":10742,"dtri;":9663,"dzcy;":1119,"eDot;":8785,"ecir;":8790,ecirc:234,"edot;":279,"emsp;":8195,"ensp;":8194,"eopf;":120150,"epar;":8917,"epsi;":949,"escr;":8495,"esim;":8770,"euml;":235,"euro;":8364,"excl;":33,"flat;":9837,"fnof;":402,"fopf;":120151,"fork;":8916,"fscr;":119995,"gdot;":289,"geqq;":8807,"gesl;":8923,"gjcy;":1107,"gnap;":10890,"gneq;":10888,"gopf;":120152,"gscr;":8458,"gsim;":8819,"gtcc;":10919,"gvnE;":8809,"hArr;":8660,"half;":189,"harr;":8596,"hbar;":8463,"hopf;":120153,"hscr;":119997,icirc:238,"iecy;":1077,iexcl:161,"imof;":8887,"iocy;":1105,"iopf;":120154,"iota;":953,"iscr;":119998,"isin;":8712,"iuml;":239,"jopf;":120155,"jscr;":119999,"khcy;":1093,"kjcy;":1116,"kopf;":120156,"kscr;":120000,"lArr;":8656,"lHar;":10594,"lang;":10216,laquo:171,"larr;":8592,"late;":10925,"lcub;":123,"ldca;":10550,"ldsh;":8626,"leqq;":8806,"lesg;":8922,"ljcy;":1113,"lnap;":10889,"lneq;":10887,"lopf;":120157,"lozf;":10731,"lpar;":40,"lscr;":120001,"lsim;":8818,"lsqb;":91,"ltcc;":10918,"ltri;":9667,"lvnE;":8808,"macr;":175,"male;":9794,"malt;":10016,micro:181,"mlcp;":10971,"mldr;":8230,"mopf;":120158,"mscr;":120002,"nGtv;":8811,"nLtv;":8810,"nang;":8736,"napE;":10864,"nbsp;":160,"ncap;":10819,"ncup;":10818,"ngeq;":8817,"nges;":10878,"ngtr;":8815,"nisd;":8954,"njcy;":1114,"nldr;":8229,"nleq;":8816,"nles;":10877,"nmid;":8740,"nopf;":120159,"npar;":8742,"npre;":10927,"nsce;":10928,"nscr;":120003,"nsim;":8769,"nsub;":8836,"nsup;":8837,"ntgl;":8825,"ntlg;":8824,"nvap;":8781,"nvge;":8805,"nvgt;":62,"nvle;":8804,"nvlt;":60,"oast;":8859,"ocir;":8858,ocirc:244,"odiv;":10808,"odot;":8857,"ogon;":731,"oint;":8750,"omid;":10678,"oopf;":120160,"opar;":10679,"ordf;":170,"ordm;":186,"oror;":10838,"oscr;":8500,"osol;":8856,"ouml;":246,"para;":182,"part;":8706,"perp;":8869,"phiv;":981,"plus;":43,"popf;":120161,pound:163,"prap;":10935,"prec;":8826,"prnE;":10933,"prod;":8719,"prop;":8733,"pscr;":120005,"qint;":10764,"qopf;":120162,"qscr;":120006,"quot;":34,"rArr;":8658,"rHar;":10596,"race;":8765,"rang;":10217,raquo:187,"rarr;":8594,"rcub;":125,"rdca;":10551,"rdsh;":8627,"real;":8476,"rect;":9645,"rhov;":1009,"ring;":730,"ropf;":120163,"rpar;":41,"rscr;":120007,"rsqb;":93,"rtri;":9657,"scap;":10936,"scnE;":10934,"sdot;":8901,"sect;":167,"semi;":59,"sext;":10038,"shcy;":1096,"sime;":8771,"simg;":10910,"siml;":10909,"smid;":8739,"smte;":10924,"solb;":10692,"sopf;":120164,"spar;":8741,"squf;":9642,"sscr;":120008,"star;":9734,"subE;":10949,"sube;":8838,"succ;":8827,"sung;":9834,"sup1;":185,"sup2;":178,"sup3;":179,"supE;":10950,"supe;":8839,szlig:223,"tbrk;":9140,"tdot;":8411,thorn:254,times:215,"tint;":8749,"toea;":10536,"topf;":120165,"tosa;":10537,"trie;":8796,"tscr;":120009,"tscy;":1094,"uArr;":8657,"uHar;":10595,"uarr;":8593,ucirc:251,"uopf;":120166,"upsi;":965,"uscr;":120010,"utri;":9653,"uuml;":252,"vArr;":8661,"vBar;":10984,"varr;":8597,"vert;":124,"vopf;":120167,"vscr;":120011,"wopf;":120168,"wscr;":120012,"xcap;":8898,"xcup;":8899,"xmap;":10236,"xnis;":8955,"xopf;":120169,"xscr;":120013,"xvee;":8897,"yacy;":1103,"yicy;":1111,"yopf;":120170,"yscr;":120014,"yucy;":1102,"yuml;":255,"zdot;":380,"zeta;":950,"zhcy;":1078,"zopf;":120171,"zscr;":120015,"zwnj;":8204,"AMP;":38,"Acy;":1040,"Afr;":120068,"And;":10835,Auml:196,"Bcy;":1041,"Bfr;":120069,COPY:169,"Cap;":8914,"Cfr;":8493,"Chi;":935,"Cup;":8915,"Dcy;":1044,"Del;":8711,"Dfr;":120071,"Dot;":168,"ENG;":330,"ETH;":208,"Ecy;":1069,"Efr;":120072,"Eta;":919,Euml:203,"Fcy;":1060,"Ffr;":120073,"Gcy;":1043,"Gfr;":120074,"Hat;":94,"Hfr;":8460,"Icy;":1048,"Ifr;":8465,"Int;":8748,Iuml:207,"Jcy;":1049,"Jfr;":120077,"Kcy;":1050,"Kfr;":120078,"Lcy;":1051,"Lfr;":120079,"Lsh;":8624,"Map;":10501,"Mcy;":1052,"Mfr;":120080,"Ncy;":1053,"Nfr;":120081,"Not;":10988,"Ocy;":1054,"Ofr;":120082,Ouml:214,"Pcy;":1055,"Pfr;":120083,"Phi;":934,"Psi;":936,QUOT:34,"Qfr;":120084,"REG;":174,"Rcy;":1056,"Rfr;":8476,"Rho;":929,"Rsh;":8625,"Scy;":1057,"Sfr;":120086,"Sub;":8912,"Sum;":8721,"Sup;":8913,"Tab;":9,"Tau;":932,"Tcy;":1058,"Tfr;":120087,"Ucy;":1059,"Ufr;":120088,Uuml:220,"Vcy;":1042,"Vee;":8897,"Vfr;":120089,"Wfr;":120090,"Xfr;":120091,"Ycy;":1067,"Yfr;":120092,"Zcy;":1047,"Zfr;":8488,"acE;":8766,"acd;":8767,"acy;":1072,"afr;":120094,"amp;":38,"and;":8743,"ang;":8736,"apE;":10864,"ape;":8778,"ast;":42,auml:228,"bcy;":1073,"bfr;":120095,"bne;":61,"bot;":8869,"cap;":8745,cent:162,"cfr;":120096,"chi;":967,"cir;":9675,copy:169,"cup;":8746,"dcy;":1076,"deg;":176,"dfr;":120097,"die;":168,"div;":247,"dot;":729,"ecy;":1101,"efr;":120098,"egs;":10902,"ell;":8467,"els;":10901,"eng;":331,"eta;":951,"eth;":240,euml:235,"fcy;":1092,"ffr;":120099,"gEl;":10892,"gap;":10886,"gcy;":1075,"gel;":8923,"geq;":8805,"ges;":10878,"gfr;":120100,"ggg;":8921,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gne;":10888,"hfr;":120101,"icy;":1080,"iff;":8660,"ifr;":120102,"int;":8747,iuml:239,"jcy;":1081,"jfr;":120103,"kcy;":1082,"kfr;":120104,"lEg;":10891,"lap;":10885,"lat;":10923,"lcy;":1083,"leg;":8922,"leq;":8804,"les;":10877,"lfr;":120105,"lgE;":10897,"lnE;":8808,"lne;":10887,"loz;":9674,"lrm;":8206,"lsh;":8624,macr:175,"map;":8614,"mcy;":1084,"mfr;":120106,"mho;":8487,"mid;":8739,"nGg;":8921,"nGt;":8811,"nLl;":8920,"nLt;":8810,"nap;":8777,nbsp:160,"ncy;":1085,"nfr;":120107,"ngE;":8807,"nge;":8817,"ngt;":8815,"nis;":8956,"niv;":8715,"nlE;":8806,"nle;":8816,"nlt;":8814,"not;":172,"npr;":8832,"nsc;":8833,"num;":35,"ocy;":1086,"ofr;":120108,"ogt;":10689,"ohm;":937,"olt;":10688,"ord;":10845,ordf:170,ordm:186,"orv;":10843,ouml:246,"par;":8741,para:182,"pcy;":1087,"pfr;":120109,"phi;":966,"piv;":982,"prE;":10931,"pre;":10927,"psi;":968,"qfr;":120110,quot:34,"rcy;":1088,"reg;":174,"rfr;":120111,"rho;":961,"rlm;":8207,"rsh;":8625,"scE;":10932,"sce;":10928,"scy;":1089,sect:167,"sfr;":120112,"shy;":173,"sim;":8764,"smt;":10922,"sol;":47,"squ;":9633,"sub;":8834,"sum;":8721,sup1:185,sup2:178,sup3:179,"sup;":8835,"tau;":964,"tcy;":1090,"tfr;":120113,"top;":8868,"ucy;":1091,"ufr;":120114,"uml;":168,uuml:252,"vcy;":1074,"vee;":8744,"vfr;":120115,"wfr;":120116,"xfr;":120117,"ycy;":1099,"yen;":165,"yfr;":120118,yuml:255,"zcy;":1079,"zfr;":120119,"zwj;":8205,AMP:38,"DD;":8517,ETH:208,"GT;":62,"Gg;":8921,"Gt;":8811,"Im;":8465,"LT;":60,"Ll;":8920,"Lt;":8810,"Mu;":924,"Nu;":925,"Or;":10836,"Pi;":928,"Pr;":10939,REG:174,"Re;":8476,"Sc;":10940,"Xi;":926,"ac;":8766,"af;":8289,amp:38,"ap;":8776,"dd;":8518,deg:176,"ee;":8519,"eg;":10906,"el;":10905,eth:240,"gE;":8807,"ge;":8805,"gg;":8811,"gl;":8823,"gt;":62,"ic;":8291,"ii;":8520,"in;":8712,"it;":8290,"lE;":8806,"le;":8804,"lg;":8822,"ll;":8810,"lt;":60,"mp;":8723,"mu;":956,"ne;":8800,"ni;":8715,not:172,"nu;":957,"oS;":9416,"or;":8744,"pi;":960,"pm;":177,"pr;":8826,reg:174,"rx;":8478,"sc;":8827,shy:173,uml:168,"wp;":8472,"wr;":8768,"xi;":958,yen:165,GT:62,LT:60,gt:62,lt:60};var XZ=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376];function WZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function Y4(q){let Z=Object.keys(U6).map((Y)=>WZ(Y,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var zZ=Y4(!1),GZ=Y4(!0);function i1(q,Q){let Z=Q?GZ:zZ;return q.replace(Z,(j,Y)=>{let K;if(Y[0]!=="#")K=U6[Y];else if(Y[1]==="x")K=parseInt(Y.substring(2),16);else K=parseInt(Y.substring(1),10);if(!K)return j;return String.fromCodePoint(OZ(K))})}var j4=0;function OZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return XZ[q-128];if(q<55296)return q;if(q<=57343)return j4;if(q<=65535)return q;if(q>=65536&&q<=131071)return q;if(q>=131072&&q<=196607)return q;if(q>=917504&&q<=917631||q>=917760&&q<=917999)return q;return j4}function W8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var UZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function H4(q){return UZ.includes(q.type)}function _0(q,Q,Z,j,Y){return{type:"Attribute",start:Z,end:j,name:q,name_loc:Q,value:Y,metadata:{delegated:!1,needs_clsx:!1}}}class J8{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#q=null;#Q(){if(!this.#q){this.#q=new Set;for(let q of this.references)if(q.blocker)this.#q.add(q.blocker)}return this.#q}blockers(){return K6([...this.#Q()])}has_blockers(){return this.#Q().size>0}has_more_blockers_than(q){for(let Q of this.#Q())if(!q.#Q().has(Q))return!0;return!1}is_async(){return this.has_await||this.#Q().size>0}merge(q){this.has_state||=q.has_state,this.has_call||=q.has_call,this.has_await||=q.has_await,this.has_member_expression||=q.has_member_expression,this.has_assignment||=q.has_assignment,this.#q=null;for(let Q of q.references)this.references.add(Q);for(let Q of q.dependencies)this.dependencies.add(Q)}}var J4={li:{direct:["li"]},dt:{descendant:["dt","dd"],reset_by:["dl"]},dd:{descendant:["dt","dd"],reset_by:["dl"]},p:{descendant:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]},rt:{descendant:["rt","rp"]},rp:{descendant:["rt","rp"]},optgroup:{descendant:["optgroup"]},option:{descendant:["option","optgroup"]},thead:{direct:["tbody","tfoot"]},tbody:{direct:["tbody","tfoot"]},tfoot:{direct:["tbody"]},tr:{direct:["tr","tbody"]},td:{direct:["td","th","tr"]},th:{direct:["td","th","tr"]}};function K4(q,Q){let Z=J4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var lK={...J4,form:{descendant:["form"]},a:{descendant:["a"]},button:{descendant:["button"]},h1:{descendant:["h1","h2","h3","h4","h5","h6"]},h2:{descendant:["h1","h2","h3","h4","h5","h6"]},h3:{descendant:["h1","h2","h3","h4","h5","h6"]},h4:{descendant:["h1","h2","h3","h4","h5","h6"]},h5:{descendant:["h1","h2","h3","h4","h5","h6"]},h6:{descendant:["h1","h2","h3","h4","h5","h6"]},tr:{only:["th","td","style","script","template"]},tbody:{only:["tr","style","script","template"]},thead:{only:["tr","style","script","template"]},tfoot:{only:["tr","style","script","template"]},colgroup:{only:["col","template"]},table:{only:["caption","colgroup","tbody","thead","tfoot","style","script","template"]},head:{only:["base","basefont","bgsound","link","meta","title","noscript","noframes","style","script","template"]},html:{only:["head","body","frameset"]},frameset:{only:["frame"]},"#document":{only:["html"]}};function V4(q,Q="or"){if(q.length===1)return q[0];if(q.length===2)return`${q[0]} ${Q} ${q[1]}`;return`${q.slice(0,-1).join(", ")} ${Q} ${q[q.length-1]}`}var RZ=/(\/>|[\s"'=<>`])/y,R6=/<\/textarea(\s[^>]*)?>/iy,BZ=/-->/,X4=/(\s|\/|>)/,z4=/[\s=/>"']/,G4=/["']/y,FZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,MZ=/^![a-zA-Z]+$/,$Z=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function wZ(q){if(MZ.test(q))return!0;if($Z.test(q))return!0;return o7.test(q)}var W4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,O4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),x0=new Map([...O4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function B6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let B=q.read_until(BZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:B});return}if(q.eat("/")){let B=q.read_until(X4);if(q.allow_whitespace(),q.eat(">",!0),A9(B))p5(Q);while(Z.name!==B){if(q.loose){if(H4(Z)){let P=Z.attributes.at(-1);if(P?.type==="Attribute"&&P.name===`<${B}`){q.index=P.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==B){let P=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:P},`</${B}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===B)L5(Q,B,q.last_auto_closed_tag.reason);else w5(Q,B);Z.end=Q,q.pop(),Z=q.current()}if(Z.end=q.index,q.pop(),q.last_auto_closed_tag&&q.stack.length<q.last_auto_closed_tag.depth)q.last_auto_closed_tag=void 0;return}let j=F6(q,X4);if(j.name.startsWith("svelte:")&&!x0.has(j.name)){let B={start:Q+1,end:Q+1+j.name.length};y5(B,V4(Array.from(x0.keys())))}if(!wZ(j.name)&&!W4.test(j.name)){if(!q.loose||!j.name.endsWith(".")){let B={start:Q+1,end:Q+1+j.name.length};l5(B)}}if(O4.has(j.name)){if(j.name in q.meta_tags)v5(Q,j.name);if(Z.type!=="Root")f5(Q,j.name);q.meta_tags[j.name]=!0}let Y=x0.has(j.name)?x0.get(j.name):W4.test(j.name)||q.loose&&j.name.endsWith(".")?"Component":j.name==="title"&&LZ(q.stack)?"TitleElement":j.name==="slot"&&!CZ(q.stack)?"SlotElement":"RegularElement",K=Y==="RegularElement"?{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:W8(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:Y,start:Q,end:-1,name:j.name,name_loc:j.loc,attributes:[],fragment:W8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&K4(Z.name,j.name)){let B=Z.fragment.nodes[0]?.start??Q;N9({start:Z.start,end:B},`<${j.name}>`,`</${Z.name}>`),Z.end=Q,q.pop(),q.last_auto_closed_tag={tag:Z.name,reason:j.name,depth:q.stack.length}}let J=[],X=q.current(),W=(j.name==="script"||j.name==="style")&&X.type==="Root",R=W?AZ:IZ,O;while(O=R(q)){if(O.type==="Attribute"||O.type==="BindDirective"||O.type==="StyleDirective"||O.type==="ClassDirective"){let B=O.type==="BindDirective"?"Attribute":O.type;if(J.includes(B+O.name))W5(O);else if(O.name!=="this")J.push(B+O.name)}K.attributes.push(O),q.allow_whitespace()}if(K.type==="Component")K.metadata.expression=new J8;if(K.type==="SvelteComponent"){let B=K.attributes.findIndex((A)=>A.type==="Attribute"&&A.name==="this");if(B===-1)E5(Q);let P=K.attributes.splice(B,1)[0];if(!X6(P))k5(P.start);K.expression=W6(P),K.metadata.expression=new J8}if(K.type==="SvelteElement"){let B=K.attributes.findIndex((A)=>A.type==="Attribute"&&A.name==="this");if(B===-1)e9(Q);let P=K.attributes.splice(B,1)[0];if(P.value===!0)e9(P);if(!X6(P)){j2(P);let A=P.value[0];K.tag=A.type==="Text"?{type:"Literal",value:A.data,raw:`'${A.raw}'`,start:A.start,end:A.end}:A.expression}else K.tag=W6(P);K.metadata.expression=new J8}if(W){q.eat(">",!0);let B=null;for(let P=X.fragment.nodes.length-1;P>=0;P--){let A=X.fragment.nodes[P];if(P===X.fragment.nodes.length-1&&A.end!==Q)break;if(A.type==="Comment"){B=A;break}else if(A.type!=="Text"||A.data.trim())break}if(j.name==="script"){let P=a5(q,Q,K.attributes);if(B)P.content.leadingComments=[{type:"Line",value:B.data}];if(P.context==="module"){if(X.module)r9(Q);X.module=P}else{if(X.instance)r9(Q);X.instance=P}}else{let P=G6(q,Q,K.attributes);if(P.content.comment=B,X.css)T5(Q);X.css=P}return}q.append(K);let M=q.eat("/")||A9(j.name),$=q.eat(">",!0,!1);if(!$){let B=K.attributes.at(-1);if(B?.type==="Attribute"&&B.name==="<")q.index=B.start,K.attributes.pop();else{let P=q.template[q.index-1],A=q.template[q.index-2],N=q.template[q.index];if(A==="{"&&P==="/")q.index-=2;else if(P==="{"&&(N==="#"||N==="@"||N===":"))q.index-=1;else q.allow_whitespace()}}if(M||!$)K.end=q.index;else if(j.name==="textarea")K.fragment.nodes=U4(q,()=>{return R6.lastIndex=q.index,R6.test(q.template)},"inside <textarea>"),q.read(R6),K.end=q.index;else if(j.name==="script"||j.name==="style"){let B=q.index,P=`</${j.name}>`,A=q.template.indexOf(P,q.index),N=q.template.slice(q.index,A===-1?q.template.length:A);q.index=A===-1?q.template.length:A;let v=q.index,g={start:B,end:v,type:"Text",data:N,raw:N};K.fragment.nodes.push(g),q.eat(`</${j.name}>`,!0),K.end=q.index}else q.stack.push(K),q.fragments.push(K.fragment)}function LZ(q){let Q=q.length;while(Q--){let{type:Z}=q[Q];if(Z==="SvelteHead")return!0;if(Z==="RegularElement"||Z==="Component")return!1}return!1}function CZ(q){let Q=q.length;while(Q--)if(q[Q].type==="RegularElement"&&q[Q].attributes.some((Z)=>Z.type==="Attribute"&&Z.name==="shadowrootmode"))return!0;return!1}function AZ(q){let Q=q.index,Z=F6(q,z4);if(!Z.name)return null;let j=!0;if(q.eat("=")){q.allow_whitespace();let Y=q.match_regex(FZ);if(!Y)s9(q.index);q.index+=Y.length;let K=Y[0]==='"'||Y[0]==="'";if(K)Y=Y.slice(1,-1);j=[{start:q.index-Y.length-(K?1:0),end:K?q.index-1:q.index,type:"Text",raw:Y,data:i1(Y,!0)}]}if(q.match_regex(G4))E8(q.index,"=");return _0(Z.name,Z.loc,Q,q.index,j)}function IZ(q){let Q=null;while(Q=PZ(q))q.root.comments.push(Q),q.allow_whitespace();let Z=q.index;if(q.eat("{")){if(q.allow_whitespace(),q.eat("@attach")){q.require_whitespace();let W=G8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:W,metadata:{expression:new J8}}}if(q.eat("...")){let W=G8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:W,metadata:{expression:new J8}}}else{let W=q.read_identifier();if(W.name==="")if(q.loose&&(q.match("#")||q.match("/")||q.match("@")||q.match(":")))return null;else if(q.loose&&q.match("}"));else z5(Z);q.allow_whitespace(),q.eat("}",!0);let R={type:"ExpressionTag",start:W.start,end:W.end,expression:W,metadata:{expression:new J8}};return _0(W.name,W.loc,Z,q.index,R)}}let j=F6(q,z4);if(!j.name)return null;let Y=q.index;q.allow_whitespace();let K=j.name.indexOf(":"),J=K!==-1&&SZ(j.name.slice(0,K)),X=!0;if(q.eat("="))if(q.allow_whitespace(),q.template[q.index]==="/"&&q.template[q.index+1]===">"){let W=q.index;q.index++,X=[{start:W,end:W+1,type:"Text",raw:"/",data:"/"}],Y=q.index}else X=DZ(q),Y=q.index;else if(q.match_regex(G4))E8(q.index,"=");if(J){let[W,...R]=j.name.slice(K+1).split("|");if(W==="")$5({start:Z,end:Z+K+1},j.name);if(J==="StyleDirective")return{start:Z,end:Y,type:J,name:W,name_loc:j.loc,modifiers:R,value:X,metadata:{expression:new J8}};let O=X===!0?void 0:Array.isArray(X)?X[0]:X,M=null;if(O)if(X.length>1||O.type==="Text")M5(O.start);else M=O.expression;let $={start:Z,end:Y,type:J,name:W,name_loc:j.loc,expression:M,metadata:{expression:new J8}};if($.modifiers=R,$.type==="TransitionDirective"){let B=j.name.slice(0,K);$.intro=B==="in"||B==="transition",$.outro=B==="out"||B==="transition"}if(($.type==="BindDirective"||$.type==="ClassDirective")&&!$.expression)$.expression={start:Z+K+1,end:Y,type:"Identifier",name:$.name};return $}return _0(j.name,j.loc,Z,Y,X)}function PZ(q){let Q=q.index;if(q.eat("//")){let Z=q.read_until(/\n/),j=q.index;return{type:"Line",start:Q,end:j,value:Z,loc:{start:z8(Q),end:z8(j)}}}if(q.eat("/*")){let Z=q.read_until(/\*\//);q.eat("*/");let j=q.index;return{type:"Block",start:Q,end:j,value:Z,loc:{start:z8(Q),end:z8(j)}}}return null}function SZ(q){if(q==="use")return"UseDirective";if(q==="animate")return"AnimateDirective";if(q==="bind")return"BindDirective";if(q==="class")return"ClassDirective";if(q==="style")return"StyleDirective";if(q==="on")return"OnDirective";if(q==="let")return"LetDirective";if(q==="in"||q==="out"||q==="transition")return"TransitionDirective";return!1}function DZ(q){let Q=q.eat("'")?"'":q.eat('"')?'"':null;if(Q&&q.eat(Q))return[{start:q.index-1,end:q.index-1,type:"Text",raw:"",data:""}];let Z;try{Z=U4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(RZ)},"in attribute value")}catch(j){if(j.code==="js_parse_error"){let Y=j.position?.[0];if(Y!==void 0&&q.template.slice(Y-1,Y+1)==="/>")q.index=Y,E8(Y,Q||"}")}throw j}if(Z.length===0&&!Q)s9(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function U4(q,Q,Z){let j={start:q.index,end:-1,type:"Text",raw:"",data:""},Y=[];function K(J){if(J>j.start)j.raw=q.template.slice(j.start,J),j.data=i1(j.raw,!0),j.end=J,Y.push(j)}while(q.index<q.template.length){let J=q.index;if(Q())return K(q.index),Y;else if(q.eat("{")){if(q.match("#")){let R=q.index-1;q.eat("#");let O=q.read_until(/[^a-z]/);U5(R,O,Z)}else if(q.match("@")){let R=q.index-1;q.eat("@");let O=q.read_until(/[^a-z]/);c5(R,O,Z)}K(q.index-1),q.allow_whitespace();let X=G8(q);q.allow_whitespace(),q.eat("}",!0);let W={type:"ExpressionTag",start:J,end:q.index,expression:X,metadata:{expression:new J8}};Y.push(W),j={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return Y;else w8(q.template.length)}function F6(q,Q){let Z=q.index,j=q.read_until(Q),Y=q.index;return{type:"Identifier",name:j,start:Z,end:Y,loc:{start:z8(Z),end:z8(Y)}}}function _8(q){let{index:Q,index:Z}=q,j=q.read_identifier();if(j.name!==""){let R=R4(q);return{...j,typeAnnotation:R}}let Y=q.template[Z];if(Y!=="{"&&Y!=="[")A5(Z);Z=l1(q,Q),q.index=Z;let K=q.template.slice(Q,Z),J=q.template.slice(0,Q).replace(W0," "),X=J.indexOf(" ");J=J.slice(0,X)+J.slice(X+1);let W=w1(Y1(q,`${J}(${K} = 1)`,Q-1));if(W=W.left,W.typeAnnotation=R4(q),W.typeAnnotation)W.end=W.typeAnnotation.end;return W}function R4(q){let Q=q.index;if(q.allow_whitespace(),!q.eat(":")){q.index=Q;return}let Z="_ as ",j=q.index-Z.length,Y=q.template.slice(0,j).replace(/[^\n]/g," ")+Z+q.template.slice(q.index).replace(/\?\s*:/g,":"),K=w1(Y1(q,Y,j));if(K.type==="AssignmentExpression"){let J=K.right.start;while(Y[J]!=="=")J-=1;K=w1(Y1(q,Y.slice(0,J),j))}if(K.type==="SequenceExpression")K=K.expressions[0];return q.index=K.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:K.typeAnnotation}}var M6=/\s*}/y,NZ=/(?:let|const)\b/y,bZ=/(?:var|interface|enum)\b/y,TZ=/type\b/y,kZ={"<":">"};function w6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return vZ(q);if(q.eat(":"))return hZ(q);if(q.eat("@"))return fZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),$6(q)}let Z=EZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new J8}});return}let j=G8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:j,metadata:{expression:new J8}})}function EZ(q){let Q=q.index,Z=q.match_regex(bZ);if(Z)k0({start:Q,end:Q+Z.length});if(!q.match_regex(NZ)&&!q.match_regex(TZ))return null;let j=q.root.comments.length,Y;try{Y=n5(q,q.template,Q)}catch(K){if(!q.loose)throw K;let J=g0(q.template,Q,"{");if(J===void 0)throw K;q.index=J,Y={type:"VariableDeclaration",kind:q.template.startsWith("const",Q)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:q.index,end:q.index},init:null,start:q.index,end:q.index}],start:Q,end:J}}if(Y.type!=="VariableDeclaration")if(Y.type==="ExpressionStatement")return q.root.comments.length=j,null;else k0({start:Y.start??Q,end:Y.end??q.index});if(Y.kind!=="let"&&Y.kind!=="const")k0(Y);return q.index=Y.end,q.allow_whitespace(),q.eat("}",!0),Y}function vZ(q){let Q=q.index-2;while(q.template[Q]!=="{")Q-=1;if(q.eat("if")){q.require_whitespace();let Z=q.append({type:"IfBlock",elseif:!1,start:Q,end:-1,test:G8(q),consequent:W8(),alternate:null,metadata:{expression:new J8}});q.allow_whitespace(),q.eat("}",!0),q.stack.push(Z),q.fragments.push(Z.consequent);return}if(q.eat("each")){q.require_whitespace();let Z=q.template,j=q.template.length,Y;while(!Y)try{Y=G8(q,void 0,!0)}catch(O){j=O.position[0]-2;while(j>Q&&q.template.slice(j,j+2)!=="as")j-=1;if(j<=Q){if(q.loose){if(Y=J6(q),Y)break}throw O}q.template=Z.slice(0,j)}if(q.template=Z,q.allow_whitespace(),!q.match("as")){if(Y.type==="SequenceExpression")Y=Y.expressions[0];let O=null,M=Y.end;if(Y=n8(Y,null,{TSAsExpression($,B){if($.end===Y.end)return O=$,M=$.expression.end,$.expression;B.next()}}),Y.end=M,O){let $=O.typeAnnotation.start-2;while(q.template.slice($,$+2)!=="as")$-=1;q.index=$}}let K=null,J,X;if(q.eat("as"))q.require_whitespace(),K=_8(q);else q.index=Y.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),J=q.read_identifier().name,!J)a9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),X=G8(q,"("),q.allow_whitespace(),q.eat(")",!0),q.allow_whitespace();if(!q.eat("}",!0,!1))if(q.template.slice(q.index-4,q.index)===" as "){let O=q.index;K=_8(q),q.eat("}",!0),Y={type:"Identifier",name:"",start:Y.start,end:O-4}}else q.eat("}",!0);let R=q.append({type:"EachBlock",start:Q,end:-1,expression:Y,body:W8(),context:K,index:J,key:X,metadata:null});q.stack.push(R),q.fragments.push(R.body);return}if(q.eat("await")){q.require_whitespace();let Z=G8(q);q.allow_whitespace();let j=q.append({type:"AwaitBlock",start:Q,end:-1,expression:Z,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new J8}});if(q.eat("then")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),j.value=_8(q),q.allow_whitespace();j.then=W8(),q.fragments.push(j.then)}else if(q.eat("catch")){if(q.match_regex(M6))q.allow_whitespace();else q.require_whitespace(),j.error=_8(q),q.allow_whitespace();j.catch=W8(),q.fragments.push(j.catch)}else j.pending=W8(),q.fragments.push(j.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let K=q.index;j.value=_8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:K-6},j.then=j.pending,j.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let K=q.index;j.error=_8(q),q.eat("}",!0),j.expression={type:"Identifier",name:"",start:Z.start,end:K-7},j.catch=j.pending,j.pending=null}else q.eat("}",!0);q.stack.push(j);return}if(q.eat("key")){q.require_whitespace();let Z=G8(q);q.allow_whitespace(),q.eat("}",!0);let j=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:W8(),metadata:{expression:new J8}});q.stack.push(j),q.fragments.push(j.fragment);return}if(q.eat("snippet")){q.require_whitespace();let Z=q.read_identifier();if(Z.name===""&&!q.loose)a9(q.index);q.allow_whitespace();let j=q.index,Y;if(q.ts&&q.match("<")){let O=q.index,M=l1(q,O,kZ);Y=q.template.slice(O+1,M-1),q.index=M}q.allow_whitespace();let K=q.eat("(",!0,!1);if(K){let O=1;while(q.index<q.template.length&&(!q.match(")")||O!==1)){if(q.match("("))O++;if(q.match(")"))O--;q.index+=1}q.eat(")",!0)}let J=q.template.slice(0,j).replace(/\S/g," "),X=q.template.slice(j,q.index),W=K?Y1(q,J+`${X} => {}`,j):{params:[]};q.allow_whitespace(),q.eat("}",!0);let R=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:Y,parameters:W.params,body:W8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(R),q.fragments.push(R.body);return}C5(q.index)}function hZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))E8(Q,"{:else} or {:else if}");if(q.eat("if"))O5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=W8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let j=G8(q);q.allow_whitespace(),q.eat("}",!0);let Y=Q-1;while(q.template[Y]!=="{")Y-=1;let K=q.append({start:Y,end:-1,type:"IfBlock",elseif:!0,test:j,consequent:W8(),alternate:null,metadata:{expression:new J8}});q.stack.push(K),q.fragments.pop(),q.fragments.push(K.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))E8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=W8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)o9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=W8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)o9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=_8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=W8(),q.fragments.pop(),q.fragments.push(Z.catch);return}E8(Q,"{:then ...} or {:catch ...}")}G5(Q)}function $6(q){let Q=q.index-1,Z=q.current(),j;switch(Z.type){case"IfBlock":if(j=q.eat("if",!0,!1),!j){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0);while(Z.elseif)Z.end=q.index,q.stack.pop(),Z=q.current();Z.end=q.index,q.pop();return;case"EachBlock":j=q.eat("each",!0,!1);break;case"KeyBlock":j=q.eat("key",!0,!1);break;case"AwaitBlock":j=q.eat("await",!0,!1);break;case"SnippetBlock":j=q.eat("snippet",!0,!1);break;case"RegularElement":if(q.loose)j=!1;else n9(Q);break;default:n9(Q)}if(!j){Z.end=Q-1,q.pop(),$6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function fZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=G8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new J8}});return}if(q.eat("debug")){let Z;if(q.read(M6))Z=[];else{let j=G8(q);Z=j.type==="SequenceExpression"?j.expressions:[j],Z.forEach((Y)=>{if(Y.type!=="Identifier")F5(Y.start)}),q.allow_whitespace(),q.eat("}",!0)}q.append({type:"DebugTag",start:Q,end:q.index,identifiers:Z});return}if(q.eat("const")){q.require_whitespace();let Z=_8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let j=q.index,Y=G8(q),K=q.index;if(Y.type==="SequenceExpression"&&!q.template.substring(j,Y.start).includes("("))B5(Y);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ConstTag",start:Q,end:q.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:Z,init:Y,start:Z.start,end:K}],start:Q+2,end:q.index-1},metadata:{expression:new J8}});return}if(q.eat("render")){q.require_whitespace();let Z=G8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))D5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new J8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}I5(q.index)}function L6(q){let Q=q.index;while(q.index<q.template.length&&!q.match("<")&&!q.match("{"))q.index++;let Z=q.template.slice(Q,q.index);q.append({type:"Text",start:Q,end:q.index,raw:Z,data:i1(Z,!1)})}function d1(q){if(q.match("<"))return B6;if(q.match("{"))return w6;return L6}function C6(q){let Q={start:q.start,end:q.end,attributes:q.attributes};if(!q)return Q;for(let Z of q.attributes){if(Z.type!=="Attribute")_5(Z);let{name:j}=Z;switch(j){case"runes":{Q.runes=u0(Z);break}case"tag":{g5(Z);break}case"customElement":{let Y={},{value:K}=Z,J=K===!0||Array.isArray(K)?K:[K];if(J===!0)h0(Z);else if(J[0].type==="Text"){let $=m0(Z);F4(Z,$),Y.tag=$,Q.customElement=Y;break}else if(J[0].expression.type!=="ObjectExpression"){if(J[0].expression.type==="Literal"&&J[0].expression.value===null)break;h0(Z)}let X=[];for(let $ of J[0].expression.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier")h0(Z);X.push([$.key.name,$.value])}let W=X.find(([$])=>$==="tag");if(W){let $=W[1]?.value;F4(W,$),Y.tag=$}let R=X.find(([$])=>$==="props")?.[1];if(R){if(R.type!=="ObjectExpression")j1(Z);Y.props={};for(let $ of R.properties){if($.type!=="Property"||$.computed||$.key.type!=="Identifier"||$.value.type!=="ObjectExpression")j1(Z);Y.props[$.key.name]={};for(let B of $.value.properties){if(B.type!=="Property"||B.computed||B.key.type!=="Identifier"||B.value.type!=="Literal")j1(Z);if(B.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(B.value.value)===-1)j1(Z);Y.props[$.key.name].type=B.value.value}else if(B.key.name==="reflect"){if(typeof B.value.value!=="boolean")j1(Z);Y.props[$.key.name].reflect=B.value.value}else if(B.key.name==="attribute"){if(typeof B.value.value!=="string")j1(Z);Y.props[$.key.name].attribute=B.value.value}else j1(Z)}}}let O=X.find(([$])=>$==="shadow")?.[1];if(O)if(O.type==="Literal"&&(O.value==="open"||O.value==="none"))Y.shadow=O.value;else if(O.type==="ObjectExpression")Y.shadow=O;else x5(Z);let M=X.find(([$])=>$==="extend")?.[1];if(M)Y.extend=M;Q.customElement=Y;break}case"namespace":{let Y=m0(Z);if(Y===x7)Q.namespace="svg";else if(Y===u7)Q.namespace="mathml";else if(Y==="html"||Y==="mathml"||Y==="svg")Q.namespace=Y;else v0(Z,'"html", "mathml" or "svg"');break}case"css":{let Y=m0(Z);if(Y==="injected")Q.css=Y;else v0(Z,'"injected"');break}case"immutable":{Q.immutable=u0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=u0(Z);break}case"accessors":{Q.accessors=u0(Z);break}default:m5(Z,j)}}return Q}function m0(q){let{value:Q}=q;if(Q===!0)return!0;let Z=Array.isArray(Q)?Q[0]:Q;if(!Z)return!0;if(Q.length>1)return null;if(Z.type==="Text")return Z.data;if(Z.expression.type!=="Literal")return null;return Z.expression.value}function u0(q){let Q=m0(q);if(typeof Q!=="boolean")v0(q,"true or false");return Q}var B4="[a-z0-9_.·À-ÖØ-öø-ͽͿ-῿‌-‍‿-⁀⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",yZ=new RegExp(`^[a-z]${B4}*-${B4}*$`,"u"),gZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function F4(q,Q){if(typeof Q!=="string")q6(q);if(Q){if(!yZ.test(Q))q6(q);else if(gZ.includes(Q))u5(q)}}function M4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],j=Q[Q.length-1];h5({start:Z.start,end:j.end},q.name)}}function $4(q){if(q===32||q<=13&&q>=9)return!0;if(q<160)return!1;return q===160||q===5760||q>=8192&&q<=8202||q===8232||q===8233||q===8239||q===8287||q===12288||q===65279}var w4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class A6{template;loose;index=0;static forCss(q){let Q=Object.create(A6.prototype);return Q.template=q,Q.index=0,Q.loose=!1,Q}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(q,Q){if(typeof q!=="string")throw TypeError("Template must be a string");this.loose=Q,this.template=q.trimEnd();let Z;do Z=w4.exec(q);while(Z&&Z[0][1]!=="s");w4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:W8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let j=d1;while(this.index<this.template.length)j=j(this)||d1;if(this.stack.length>1){let K=this.current();if(this.loose)K.end=this.template.length;else if(K.type==="RegularElement")K.end=K.start+1,E0(K,K.name);else K.end=K.start+1,R5(K)}if(j!==d1)w8(this.index);this.root.start=0,this.root.end=q.length;let Y=this.root.fragment.nodes.findIndex((K)=>K.type==="SvelteOptions");if(Y!==-1){let K=this.root.fragment.nodes[Y];this.root.fragment.nodes.splice(Y,1),this.root.options=C6(K),M4(K),Object.defineProperty(this.root.options,"__raw__",{value:K,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(q,Q=!1,Z=!0){if(this.match(q))return this.index+=q.length,!0;if(Q&&(!this.loose||Z))E8(this.index,q);return!1}match(q){if(q.length===1)return this.template[this.index]===q;return this.template.startsWith(q,this.index)}match_regex(q){q.lastIndex=this.index;let Q=q.exec(this.template);if(!Q||Q.index!==this.index)return null;return Q[0]}allow_whitespace(){while(this.index<this.template.length&&$4(this.template.charCodeAt(this.index)))this.index++}read(q){let Q=this.match_regex(q);if(Q)this.index+=Q.length;return Q}read_identifier(){let q=this.index,Q=q,Z="",j=this.template.codePointAt(this.index);if(C8(j,!0)){let Y=this.index;Q+=j<=65535?1:2;while(Q<this.template.length){let K=this.template.codePointAt(Q);if(!y8(K,!0))break;Q+=K<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,p7(Z))i5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:z8(q),end:z8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";w8(this.template.length)}let Q=this.index,Z=q.exec(this.template.slice(Q));if(Z)return this.index=Q+Z.index,this.template.slice(Q,this.index);return this.index=this.template.length,this.template.slice(Q)}require_whitespace(){if(!$4(this.template.charCodeAt(this.index)))P5(this.index);this.allow_whitespace()}pop(){let q=this.fragments.pop();if(q?.metadata.transparent&&q.nodes.some((Q)=>Q.type==="DeclarationTag"))q.metadata.transparent=!1;return this.stack.pop()}append(q){return this.fragments.at(-1)?.nodes.push(q),q}}function L4(q,Q=!1){return n7(q),new A6(q,Q).root}function _Z(q){return q.charCodeAt(0)===65279?q.slice(1):q}function I6(q){delete q.metadata}function P6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;I6(q);for(let Q in q){if(Q==="type")continue;let Z=q[Q];if(!Z||typeof Z!=="object")continue;if(Array.isArray(Z))for(let j of Z)P6(j);else P6(Z)}}function C4(q,Q,Z){if(Z){for(let j of Q.options?.attributes??[])if(I6(j),j.value)for(let Y of Array.isArray(j.value)?j.value:[j.value])I6(Y);return P6(Q),Q}return J2(q,Q)}function S6(q){if(q===null||typeof q!=="object")return q;if(Array.isArray(q))return q.map(S6);let Q={};for(let Z in q)Q[Z]=S6(q[Z]);return Q}function A4(q,{loose:Q}={}){let Z=_Z(q);a7({warning:()=>!1,filename:void 0});let j=L4(Z,Q),Y=C4(Z,j,!0),K=S6(Y),J=C4(Z,K,!1);return{modern:Y,legacy:J}}function I4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var xZ=null,P4=/^@component/,uZ=/\r/g,mZ=/^\{\s*\}$/;class O8{ctx=e0();static mapToArray(q){return Array.from(q,([Q,Z])=>Z)}static getStaticAttributeValue(q){if(!Array.isArray(q.value))return;return q.value.map((Q)=>Q.data??Q.raw??"").join("").trim()}resolveScriptLanguage(q){let Q=[q.instance,q.module].filter((j)=>j!==void 0),Z=!1;for(let j of Q){let Y=j.attributes?.find((J)=>J.name==="lang");if(!Y){Z=!0;continue}if(O8.getStaticAttributeValue(Y)?.toLowerCase()==="ts")return"ts"}return Z?"js":void 0}resolveScriptGenericsAttribute(q){let Q=q.instance?.attributes?.find((J)=>J.name==="generics");if(!Q)return;let Z=K8(this.ctx,Q),j=q.instance?.attributes?.find((J)=>J.name==="lang");if((j?O8.getStaticAttributeValue(j)?.toLowerCase():void 0)!=="ts"){p8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let K=O8.getStaticAttributeValue(Q);if(!K)return;return{value:K,source:Z}}resolvePublicPropName(q){return this.ctx.propLocalToPublicName.get(q)??q}trackPropLocalName(q,Q=q){this.ctx.propLocalToPublicName.set(Q,q)}getPropByLocalOrPublic(q){return this.ctx.props.get(this.resolvePublicPropName(q))}getPropTypeByLocalOrPublic(q){return this.getPropByLocalOrPublic(q)?.type}getExplicitPropType(q){return this.ctx.explicitPropTypesByName.get(q)}getPropertyName(q){if(!q||typeof q!=="object"||!("type"in q))return;if(u8(q))return q.name;if(J1(q))return q.value==null?void 0:String(q.value);return}isNumericConstant(q){if(!q||typeof q!=="object"||!("type"in q))return!1;if(q.type!=="MemberExpression")return!1;let Q=q,Z=Q.object&&"name"in Q.object?Q.object.name:void 0,j=Q.property&&"name"in Q.property?Q.property.name:void 0;if(!Z||!j)return!1;if(Z==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(j);if(Z==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(j);return!1}resolveLocalVarJSDoc(q){for(let Z of this.ctx.vars)if(Z.declarations.some((Y)=>Y.id&&typeof Y.id==="object"&&("type"in Y.id)&&Y.id.type==="Identifier"&&("name"in Y.id)&&Y.id.name===q))return q1(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return q1(this.ctx,this,Q);return}addModuleExport(q,Q){if(I8(q)===void 0)return;if(this.ctx.moduleExports.has(q)){let Z=this.ctx.moduleExports.get(q);this.ctx.moduleExports.set(q,{...Z,...Q})}else this.ctx.moduleExports.set(q,Q)}aliasType(q){if(q==="*")return"any";return q.trim()}findVariableTypeAndDescription(q){let Q=this.getPropByLocalOrPublic(q);if(Q?.type)return{type:Q.type,description:Q.description};if(!this.ctx.variableInfoCacheBuilt)this.ctx.variableInfoCache=f7(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let Z=this.ctx.variableInfoCache.get(q),j=this.ctx.explicitVariableTypesByName.get(q);if(j)return{type:j,description:Z?.description};return Z??null}accumulateGeneric(q,Q){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${q}`,`${this.ctx.generics[1]}, ${Q}`];else this.ctx.generics=[q,Q]}cleanup(){this.ctx=e0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return O8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(O8.SCRIPT_BLOCK_REGEX,(Q,Z,j,Y)=>{O8.TS_DIRECTIVE_REGEX.lastIndex=0;let K=j.replace(O8.TS_DIRECTIVE_REGEX,"");return Z+K+Y})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=O8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:j,legacy:Y}=A4(Z);if(N7(this,this.ctx,j),this.ctx.parsed=Y,this.ctx.scriptLanguage==="ts")X0(this.ctx.parsed.module),X0(this.ctx.parsed.instance),X0(this.ctx.parsed.html);this.ctx.syntaxMode=D7(this.ctx);let K=this.ctx.parsed.css,J=K?.start!==void 0&&K?.end!==void 0?Z.slice(0,K.start)+" ".repeat(K.end-K.start)+Z.slice(K.end):Z;if($7(this.ctx,this,J),this.ctx.parsed?.module)d8(this.ctx.parsed?.module,{enter:(L)=>{if(L.type==="ExportNamedDeclaration"){if(L.declaration==null)return;if(!L.declaration||typeof L.declaration!=="object"||!("type"in L.declaration))return;let H,V,z=!1,G,F,w,C=!1,D,S,I;if(L.declaration.type==="FunctionDeclaration"){let _=L.declaration;if(!_.id?.name)return;H=_.id.name,V="function",G=void 0,F="() => any",C=!0,z=!0}else if(L.declaration.type==="VariableDeclaration"){let _=L.declaration,s=_.declarations[0];if(!s||typeof s!=="object"||!("id"in s))return;let{id:U8,init:p}=s;if(!U8||typeof U8!=="object"||!("name"in U8))return;let t=U8.name;H=t,V=I4(_.kind);let l=p==null?{isFunction:!1}:K1(this,this.ctx,p);({value:G,type:F,isFunction:C,defaultValue:D}=l),S=F,I=l,w=this.getExplicitPropType(t)}else return;let h=q1(this.ctx,this,L),{type:c,typeSource:m,description:n,params:Y8,returnType:T,isFunction:r}=N1({explicitType:w,typeSeed:F,inferredTypeForSource:S,jsdocType:h?.type,jsdocDescription:h?.description,jsdocParams:h?.params,jsdocReturnType:h?.returnType,resolvedType:I?.resolvedType,resolvedDescription:I?.resolvedDescription,resolvedParams:I?.resolvedParams,resolvedReturnType:I?.resolvedReturnType,initializerIsFunction:C,isFunctionDeclaration:z,typedefs:this.ctx.typedefs});this.addModuleExport(H,{name:H,kind:V,description:n,deprecated:h?.deprecated,tags:h?.tags,type:c,typeSource:m,value:G,defaultValue:D,params:Y8,returnType:T,isFunction:r,isFunctionDeclaration:z,isRequired:!1,constant:V==="const",reactive:!1,source:K8(this.ctx,L)})}}});let X,W=new Set,R=new Set,O=[],M={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};C7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let $=A7(this.ctx);if(d8(M,{enter:(L,H,V)=>{I7(this,this.ctx,$,L);let z=this.ctx.scopeDeclarations.get(L);if(z)this.ctx.activeScopes.push(z);if(L.type==="AssignmentExpression")F9(this.ctx,L.left);if(L.type==="UpdateExpression")F9(this.ctx,L.argument);if(L.type==="CallExpression"){let G=L,F=G.callee&&typeof G.callee==="object"&&"name"in G.callee?G.callee.name:void 0;if(F==="createEventDispatcher"){if(H&&typeof H==="object"&&"id"in H&&H.id&&typeof H.id==="object"&&"name"in H.id)X=H.id.name}if(F==="$host"){if(H&&typeof H==="object"&&"id"in H&&H.id&&typeof H.id==="object"&&"name"in H.id)W.add(H.id.name)}if(F==="setContext")t6(this.ctx,this,L,H??void 0);if(F)O.push({name:F,arguments:G.arguments,source:K8(this.ctx,G)});if(m6(G.callee)&&u8(G.callee.property)&&G.callee.property.name==="dispatchEvent"&&(m8(G.callee.object,"$host")||u8(G.callee.object)&&W.has(G.callee.object.name))){let w=e6(this.ctx,G);if(w)R.add(w)}}if(L&&typeof L==="object"&&"type"in L&&String(L.type)==="Spread"){let G=L;if(G.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(G.expression?.name??""))w7(this.ctx,H)}if(L.type==="FunctionDeclaration"){let G=L;if(G.id?.name)this.ctx.funcDecls.set(G.id.name,G)}if(L.type==="VariableDeclaration"){if(this.ctx.vars.add(L),H&&typeof H==="object"&&"type"in H&&H.type==="Program"&&L.declarations.some((G)=>m8(e8(G.init),"$props")))b7(this,this.ctx,L)}if(L.type==="ExportNamedDeclaration"){if(L.declaration==null&&L.specifiers.length===0)return;let G;if(L.declaration==null&&L.specifiers[0]?.type==="ExportSpecifier"){let l=L.specifiers[0],M8=l.local&&typeof l.local==="object"&&"name"in l.local?l.local.name:void 0,e=l.exported&&typeof l.exported==="object"&&"name"in l.exported?l.exported.name:void 0;if(!M8||!e)return;let L8;for(let c8 of Array.from(this.ctx.vars))if(c8.declarations.some((i8)=>i8.id&&typeof i8.id==="object"&&("type"in i8.id)&&i8.id.type==="Identifier"&&i8.id.name===M8)){L8=c8;break}L.declaration=L8,G=e}if(L.declaration==null)return;if(!L.declaration||typeof L.declaration!=="object"||!("type"in L.declaration))return;let F,w=!1,C,D,S,I=!1,h=!1,c,m,n,Y8;if(L.declaration.type==="FunctionDeclaration"){let l=L.declaration;if(!l.id?.name)return;G??=l.id.name,c=l.id.name,F="function",C=void 0,D="() => any",I=!0,w=!0,h=!1}else if(L.declaration.type==="VariableDeclaration"){let l=L.declaration,M8=l.declarations[0];if(!M8||typeof M8!=="object"||!("id"in M8))return;let{id:e,init:L8}=M8;if(e&&typeof e==="object"&&"name"in e){let i8=e.name;c=i8,G??=i8,S=this.getExplicitPropType(i8)}else return;F=I4(l.kind),h=F==="let"&&L8==null;let c8=L8==null?{isFunction:!1}:K1(this,this.ctx,L8);({value:C,type:D,isFunction:I,defaultValue:m}=c8),n=D,Y8=c8}else return;let T=q1(this.ctx,this,L),{type:r,typeSource:_,description:s,params:U8,returnType:p,isFunction:t}=N1({explicitType:S,typeSeed:D,inferredTypeForSource:n,jsdocType:T?.type,jsdocDescription:T?.description,jsdocParams:T?.params,jsdocReturnType:T?.returnType,resolvedType:Y8?.resolvedType,resolvedDescription:Y8?.resolvedDescription,resolvedParams:Y8?.resolvedParams,resolvedReturnType:Y8?.resolvedReturnType,initializerIsFunction:I,isFunctionDeclaration:w,typedefs:this.ctx.typedefs});A1(this,this.ctx,G,{name:G,...c!==void 0&&c!==G?{localName:c}:{},kind:F,description:s,binding:T?.binding,deprecated:T?.deprecated,tags:T?.tags,type:r,typeSource:_,value:C,defaultValue:m,params:U8,returnType:p,isFunction:t,isFunctionDeclaration:w,isRequired:h,constant:F==="const",reactive:this.ctx.reactive_vars.has(G),source:K8(this.ctx,L)})}if(L&&typeof L==="object"&&"type"in L&&String(L.type)==="Comment"){let F=L?.data?.trim()??"";if(P4.test(F))this.ctx.componentComment=F.replace(P4,"").replace(uZ,""),this.ctx.componentCommentSource=K8(this.ctx,L)}if(L&&typeof L==="object"&&"type"in L&&String(L.type)==="Slot"){let G=L,F=G.attributes?.find((D)=>D.name==="name")?.value?.[0]?.data,w=(G.attributes||[]).filter((D)=>D.name!=="name").reduce((D,S)=>{let I={value:void 0,replace:!1},h=S.value;if(h===void 0)return D;if(h[0]){let c=h[0],{type:m,expression:n,raw:Y8,start:T,end:r}=c;if(m==="Text"&&Y8!==void 0)I.value=JSON.stringify(Y8);else if(m==="AttributeShorthand"&&n&&typeof n==="object"&&"name"in n)I.value=n.name,I.replace=!0;if(n&&typeof n==="object"&&"type"in n){if(n.type==="Literal"&&"value"in n){let _=n.value;I.value=typeof _==="string"?JSON.stringify(_):String(_)}else if(n.type==="MemberExpression")I.value=e1(this.ctx,this,n);else if(n.type!=="Identifier"){if(T!==void 0&&r!==void 0){if(n.type==="ObjectExpression"||n.type==="TemplateLiteral")I.value=H8(this.ctx,T+1,r-1)}}}}if(S.name)D[S.name]=I;return D},{}),C=G.children?.map(({start:D,end:S})=>{if(D===void 0||S===void 0)return"";return H8(this.ctx,D,S)??""}).join("").trim();S1(this.ctx,{slot_name:F,slot_props:w,slot_fallback:C,source:K8(this.ctx,L)})}if(L&&typeof L==="object"&&"type"in L&&String(L.type)==="RenderTag"){let G=L,F=O7(this.ctx,G.expression);if(F){let w;if(F.arguments.length===0)w={};else if(F.arguments.length===1&&typeof F.arguments[0]==="object"&&F.arguments[0]&&"type"in F.arguments[0]&&F.arguments[0].type==="ObjectExpression")w=G7(this.ctx,this,F.arguments[0]);else if(F.arguments.length===1)p8(this.ctx,"syntax-skipped",F.publicName,`{@render ${F.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,K8(this.ctx,L));let C=F.publicName==="children"?void 0:F.publicName,D=C===void 0?xZ:C;if(w!==void 0)S1(this.ctx,{slot_name:C,slot_props:w,source:K8(this.ctx,L)});if(w!==void 0||this.ctx.slots.has(D))this.ctx.snippetPropLocals.add(F.trackingName)}}if(L&&typeof L==="object"&&"type"in L&&String(L.type)==="EventHandler"){let G=L;if(G.expression==null&&G.name){if(H!=null&&typeof H==="object"&&"name"in H){let F=typeof H.name==="string"?H.name:void 0,w="type"in H?String(H.type):void 0;if(F&&w){let C=w==="InlineComponent"?{type:"InlineComponent",name:F}:{type:"Element",name:F};this.ctx.forwardedEvents.set(G.name,C);let D=this.ctx.events.get(G.name),S=this.ctx.eventDescriptions.get(G.name),I=D?.deprecated;if(!D)this.ctx.events.set(G.name,{type:"forwarded",name:G.name,element:C,description:S,deprecated:I,source:K8(this.ctx,L)});else if(D.type==="forwarded"&&S&&!D.description)this.ctx.events.set(G.name,{...D,description:S,deprecated:D.deprecated??I,source:D.source||K8(this.ctx,L)})}}}}if(H&&typeof H==="object"&&"type"in H&&(String(H.type)==="Element"||String(H.type)==="InlineComponent")&&L&&typeof L==="object"&&"type"in L&&String(L.type)==="Binding"){let G=L;if(G.expression?.name){let F=J0(this.ctx,G.expression.name);if(F)this.ctx.reactive_vars.add(F)}if(String(H.type)==="Element"&&G.name==="this"&&G.expression?.name&&"name"in H&&typeof H.name==="string"){let F=J0(this.ctx,G.expression.name);if(!F)return;let w=H.name;if(this.ctx.bindings.has(F)){let C=this.ctx.bindings.get(F);if(C&&!C.elements.includes(w))this.ctx.bindings.set(F,{...C,elements:[...C.elements,w]})}else this.ctx.bindings.set(F,{elements:[w]})}}},leave:(L)=>{if(this.ctx.scopeDeclarations.has(L))this.ctx.activeScopes.pop();P7($,L)}}),X!==void 0){for(let L of O)if(L.name===X){let H=L.arguments[0],V=H&&typeof H==="object"&&"value"in H?H.value:void 0,z=L.arguments[1],G=z&&typeof z==="object"&&"value"in z?z.value:void 0;if(V!=null)I1(this.ctx,{name:String(V),detail:G==null?"":j9(G),has_argument:Boolean(z),source:L.source})}}let B=new Set(R);if(X!==void 0){for(let L of O)if(L.name===X){let H=L.arguments[0],V=H&&typeof H==="object"&&"value"in H?H.value:void 0;if(V!=null)B.add(String(V))}}this.ctx.forwardedEvents.forEach((L,H)=>{let V=this.ctx.events.get(H);if(V&&V.type==="dispatched"&&!B.has(H)){let z=this.ctx.eventDescriptions.get(H),G={type:"forwarded",name:H,element:L,description:z,deprecated:V.deprecated,tags:V.tags,source:V.source};if(V.detail!==void 0&&V.detail!=="undefined")G.detail=V.detail;this.ctx.events.set(H,G)}}),T7(this.ctx,B);let P=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(L)=>this.resolvePublicPropName(L))):new Set,A=O8.mapToArray(this.ctx.props).filter((L)=>!P.has(L.name)).map((L)=>{if(this.ctx.bindings.has(L.name)){let H=this.ctx.bindings.get(L.name)?.elements.sort().map((V)=>i6(V)).join(" | ");return{...L,type:`null | ${H}`,typeSource:"inferred",reactive:L.reactive||this.ctx.reactive_vars.has(L.name)}}return{...L,reactive:L.reactive||this.ctx.reactive_vars.has(L.name)}});this.ctx.activeScopes.length=0;let N=O8.mapToArray(this.ctx.slots).map((L)=>{if(!L.slot_props)return L;if(typeof L.slot_props==="string")return mZ.test(L.slot_props)?{...L,slot_props:"Record<string, never>"}:L;let H=L.slot_props,V=[];for(let G of Object.keys(H)){if(H[G].replace&&H[G].value!==void 0)H[G].value=this.getPropTypeByLocalOrPublic(H[G].value);if(H[G].value===void 0)H[G].value="any";V.push(`${G}: ${H[G].value}`)}let z=V.length===0?"Record<string, never>":V.length===1?`{ ${V[0]} }`:`{
86
+ ${V.join(`;
87
87
  `)};
88
- }`;return{...C,slot_props:z}}).sort((C,J)=>{let X=C.name??"",z=J.name??"";if(X<z)return-1;if(X>z)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let C=[...w.map((J)=>J.type??""),...N.map((J)=>J.slot_props??"")].join(`
89
- `);for(let{name:J,constraint:X}of this.ctx.deferredSlotBlockGenerics){let z=J.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${z}\\b`).test(C))continue;this.accumulateGeneric(J,X)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)p8(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=J7(this.ctx.scriptGenericsAttribute.value)}let v=O8.mapToArray(this.ctx.moduleExports),g=O8.mapToArray(this.ctx.events).map((C)=>{switch(C.type){case"forwarded":return{...C,element:C.element.name};case"dispatched":return C;default:return C}}).sort((C,J)=>{let X=C.name.localeCompare(J.name);if(X!==0)return X;let z=C.type.localeCompare(J.type);if(z!==0)return z;if(C.type==="forwarded"&&J.type==="forwarded"){let j=C.element.localeCompare(J.element);if(j!==0)return j}return(C.detail??"").localeCompare(J.detail??"")}),f=O8.mapToArray(this.ctx.typedefs),a=O8.mapToArray(this.ctx.contexts);for(let C of w)if(C.typeSource==="unknown")p8(this.ctx,"prop-unknown-type",C.name,`Prop "${C.name}" type could not be inferred; falling back to "${C.type??"any"}".`,C.source);for(let C of this.ctx.jsDocEventNames){if(F.has(C))continue;if(this.ctx.forwardedEvents.has(C))continue;if(this.ctx.props.has(`on${C}`))continue;p8(this.ctx,"event-no-source",C,`@event "${C}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(C))}let x={source:q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:w,moduleExports:v,slots:N,events:g,typedefs:f,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:a,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},Z8=Y7(this.ctx);if(Z8)x[t1]=Z8;return x}}var P4="sveld",S4="0.36.0";var D4="5.56.3";var N4=D4;var b4=1,T4=new WeakMap;function p1(q,Q={}){let Z=T4.get(q),Y=Z?.get(Q.entryExports);if(Y)return Y;let H=Array.from(q,([,K])=>{let{diagnostics:W,...G}=K;return G}).sort((K,W)=>K.moduleName.localeCompare(W.moduleName)),V={schemaVersion:b4,generator:{name:P4,version:S4,svelteVersion:N4},total:H.length,components:H};if(Q.entryExports&&Q.entryExports.length>0)V.totalExports=Q.entryExports.length,V.exports=Q.entryExports;if(!Z)Z=new Map,T4.set(q,Z);return Z.set(Q.entryExports,V),V}var k4=/^[}\])>]/,lZ=new Set(["{","(","["]),cZ=new Set(["}",")","]"]);var iZ=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,E4=/[ \t]+$/,dZ=/\s+$/,pZ=/[{([]$/,oZ=/\s/;function nZ(q){return iZ.test(q.slice(-200))}function sZ(q){let Q="",Z=null,Y=!1;for(let H=0;H<q.length;H++){let V=q[H],K=q[H-1];if(Z){if(Q+=V,Z==="double"&&V==='"'&&K!=="\\"||Z==="single"&&V==="'"&&K!=="\\"||Z==="template"&&V==="`"&&K!=="\\")Z=null;Y=!1;continue}if(V==='"'||V==="'"||V==="`"){Z=V==='"'?"double":V==="'"?"single":"template",Q+=V,Y=!1;continue}if(oZ.test(V)){if(!Y&&Q.length>0)Q+=" ",Y=!0;continue}Q+=V,Y=!1}return Q.trimEnd()}function aZ(q,Q){let Z=0,Y="normal";for(let H=Q;H<q.length;H++){let V=q[H],K=q[H-1];if(Y==="blockComment"){if(K==="*"&&V==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(V===(Y==="double"?'"':"'")&&K!=="\\")Y="normal";continue}if(Y==="template"){if(V==="`"&&K!=="\\")Y="normal";continue}if(V==="/"&&q[H+1]==="*")Y="blockComment";else if(V==='"')Y="double";else if(V==="'")Y="single";else if(V==="`")Y="template";else if(V==="{")Z++;else if(V==="}"){if(Z--,Z===0)return H}}return-1}function v4(q){let Q="",Z="normal";for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z==="blockComment"){if(Q+=H,V==="*"&&H==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q+=H,H===(Z==="double"?'"':"'")&&V!=="\\")Z="normal";continue}if(Z==="template"){if(Q+=H,H==="`"&&V!=="\\")Z="normal";continue}if(H==="/"&&q[Y+1]==="*"){Z="blockComment",Q+=H;continue}if(H==='"'){Z="double",Q+=H;continue}if(H==="'"){Z="single",Q+=H;continue}if(H==="`"){Z="template",Q+=H;continue}if(H==="{"){let K=aZ(q,Y);if(K===-1){Q+=H;continue}let W=q.slice(Y+1,K);if(W.trim()===""){Q+="{}",Y=K;continue}if(!W.includes("/*")&&q[Y+1]!==`
90
- `&&!nZ(Q)){let G=v4(W).trim();if(!G.includes(`
91
- `)){let R=G.endsWith(";")?G.slice(0,-1):G,O=`{ ${sZ(R)} }`;if(O.length<=120){Q+=O,Y=K;continue}}}if(Q+=H,q[Y+1]!==`
92
- `)Q+=`
93
- `;continue}if(H==="}"){if(Q=Q.replace(E4,""),!Q.endsWith(`
94
- `))Q+=`
95
- `;Q+=H;continue}if(H===";"){if(Q=Q.replace(dZ,""),Q+=";",q[Y+1]!==`
96
- `)Q+=`
97
- `;continue}Q+=H}return Q}function rZ(q){let Q="",Z=null;for(let Y=0;Y<q.length;Y++){let H=q[Y],V=q[Y-1];if(Z){if(Q+=H,Z==="double"&&H==='"'&&V!=="\\"||Z==="single"&&H==="'"&&V!=="\\"||Z==="template"&&H==="`"&&V!=="\\")Z=null;continue}if(H==='"'||H==="'"||H==="`"){Z=H==='"'?"double":H==="'"?"single":"template",Q+=H;continue}if(H===" "&&Q.endsWith(" "))continue;Q+=H}return Q}function tZ(q){let Q=q.split(`
98
- `),Z=[],Y=0,H=!1,V=0;for(let K of Q){let W=K.trim();if(W===""){Z.push("");continue}if(H){if(Z.push(`${" ".repeat(V)} ${W}`),W.includes("*/"))H=!1;continue}if(W.startsWith("/**")&&!W.includes("*/")){Z.push(" ".repeat(Y)+W),H=!0,V=Y;continue}let G=rZ(W),R=k4.test(G),O=Math.max(0,Y-(R?1:0));if(Z.push(" ".repeat(O)+G),G.startsWith("/**")&&G.includes("*/"))continue;let $=null;for(let M=0;M<G.length;M++){let F=G[M],P=G[M-1];if($){if($==="double"&&F==='"'&&P!=="\\"||$==="single"&&F==="'"&&P!=="\\"||$==="template"&&F==="`"&&P!=="\\")$=null;continue}if(F==='"')$="double";else if(F==="'")$="single";else if(F==="`")$="template";else if(lZ.has(F))Y++;else if(cZ.has(F))Y=Math.max(0,Y-1);else if(F==="<")Y++;else if(F===">"&&P!=="=")Y=Math.max(0,Y-1)}}return Z.join(`
99
- `)}function eZ(q){let Q=q.split(`
100
- `).map((Y)=>Y.replace(E4,"")),Z=[];for(let Y of Q){let H=Y==="",V=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&pZ.test(Z[Z.length-1]);if(H){if(Z.length===0||V||K)continue;Z.push(Y);continue}if(k4.test(Y)&&V)Z.pop();Z.push(Y)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
- `)}function h4(q){let Q=v4(q),Z=tZ(Q);return`${eZ(Z)}
102
- `}var J1="any",h8="",qY="Record<string, any>",N6="Record<string, never>",QY=/(-|\s+|:)/,ZY=/("|')/,YY=/CustomEvent/,HY=/^[A-Z]/,JY=/\n/,f4=/=>/,KY=/(?:^|\n)@default\b/,T6=/\n/g,VY=/\s+/g,XY=/(^|[^.\w])Snippet(?:\s*<|\b)/,WY=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,GY=/[.*+?^${}()|[\]\\]/g,zY=/^const\s+/;function b6(q){return q.replace(zY,"")}function jY(q){if(!q)return;return q.replace(T6,`
88
+ }`;return{...L,slot_props:z}}).sort((L,H)=>{let V=L.name??"",z=H.name??"";if(V<z)return-1;if(V>z)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let L=[...A.map((H)=>H.type??""),...N.map((H)=>H.slot_props??"")].join(`
89
+ `);for(let{name:H,constraint:V}of this.ctx.deferredSlotBlockGenerics){let z=H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${z}\\b`).test(L))continue;this.accumulateGeneric(H,V)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)p8(this.ctx,"syntax-skipped","generics",'Both the "generics" script attribute and @generics/@template JSDoc tags declare component generics; the script attribute takes precedence and the JSDoc declaration was ignored.',this.ctx.scriptGenericsAttribute.source);this.ctx.generics=J7(this.ctx.scriptGenericsAttribute.value)}let v=O8.mapToArray(this.ctx.moduleExports),g=O8.mapToArray(this.ctx.events).map((L)=>{switch(L.type){case"forwarded":return{...L,element:L.element.name};case"dispatched":return L;default:return L}}).sort((L,H)=>{let V=L.name.localeCompare(H.name);if(V!==0)return V;let z=L.type.localeCompare(H.type);if(z!==0)return z;if(L.type==="forwarded"&&H.type==="forwarded"){let G=L.element.localeCompare(H.element);if(G!==0)return G}return(L.detail??"").localeCompare(H.detail??"")}),f=O8.mapToArray(this.ctx.typedefs),a=O8.mapToArray(this.ctx.contexts);for(let L of A)if(L.typeSource==="unknown")p8(this.ctx,"prop-unknown-type",L.name,`Prop "${L.name}" type could not be inferred; falling back to "${L.type??"any"}".`,L.source);for(let L of this.ctx.jsDocEventNames){if(B.has(L))continue;if(this.ctx.forwardedEvents.has(L))continue;if(this.ctx.props.has(`on${L}`))continue;p8(this.ctx,"event-no-source",L,`@event "${L}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(L))}let x={source:q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:A,moduleExports:v,slots:N,events:g,typedefs:f,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:a,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},Z8=Y7(this.ctx);if(Z8)x[t1]=Z8;return x}}var D4="sveld",N4="0.36.1";var D6="5.56.8";var T4=1,b4=new WeakMap;function p1(q,Q={}){let Z=b4.get(q),j=Z?.get(Q.entryExports);if(j)return j;let Y=Array.from(q,([,J])=>{let{diagnostics:X,...W}=J;return W}).sort((J,X)=>J.moduleName.localeCompare(X.moduleName)),K={schemaVersion:T4,generator:{name:D4,version:N4,svelteVersion:D6},total:Y.length,components:Y};if(Q.entryExports&&Q.entryExports.length>0)K.totalExports=Q.entryExports.length,K.exports=Q.entryExports;if(!Z)Z=new Map,b4.set(q,Z);return Z.set(Q.entryExports,K),K}var E4=/^[}\])>]/,cZ=new Set(["{","(","["]),iZ=new Set(["}",")","]"]);var dZ=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,v4=/[ \t]+$/,pZ=/\s+$/,oZ=/[{([]$/,nZ=/\s/;function sZ(q){return dZ.test(q.slice(-200))}var aZ=200;function rZ(q,Q){let Z="";for(let j=q.length-1;j>=0&&Z.length<Q;j--)Z=q[j]+Z;return Z.length>Q?Z.slice(-Q):Z}function k4(q,Q){while(q.length>0&&Q.test(q[q.length-1]))q.pop()}function tZ(q){let Q="",Z=null,j=!1;for(let Y=0;Y<q.length;Y++){let K=q[Y],J=q[Y-1];if(Z){if(Q+=K,Z==="double"&&K==='"'&&J!=="\\"||Z==="single"&&K==="'"&&J!=="\\"||Z==="template"&&K==="`"&&J!=="\\")Z=null;j=!1;continue}if(K==='"'||K==="'"||K==="`"){Z=K==='"'?"double":K==="'"?"single":"template",Q+=K,j=!1;continue}if(nZ.test(K)){if(!j&&Q.length>0)Q+=" ",j=!0;continue}Q+=K,j=!1}return Q.trimEnd()}function eZ(q,Q){let Z=0,j="normal";for(let Y=Q;Y<q.length;Y++){let K=q[Y],J=q[Y-1];if(j==="blockComment"){if(J==="*"&&K==="/")j="normal";continue}if(j==="double"||j==="single"){if(K===(j==="double"?'"':"'")&&J!=="\\")j="normal";continue}if(j==="template"){if(K==="`"&&J!=="\\")j="normal";continue}if(K==="/"&&q[Y+1]==="*")j="blockComment";else if(K==='"')j="double";else if(K==="'")j="single";else if(K==="`")j="template";else if(K==="{")Z++;else if(K==="}"){if(Z--,Z===0)return Y}}return-1}function h4(q){let Q=[],Z="normal";for(let j=0;j<q.length;j++){let Y=q[j],K=q[j-1];if(Z==="blockComment"){if(Q.push(Y),K==="*"&&Y==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q.push(Y),Y===(Z==="double"?'"':"'")&&K!=="\\")Z="normal";continue}if(Z==="template"){if(Q.push(Y),Y==="`"&&K!=="\\")Z="normal";continue}if(Y==="/"&&q[j+1]==="*"){Z="blockComment",Q.push(Y);continue}if(Y==='"'){Z="double",Q.push(Y);continue}if(Y==="'"){Z="single",Q.push(Y);continue}if(Y==="`"){Z="template",Q.push(Y);continue}if(Y==="{"){let J=eZ(q,j);if(J===-1){Q.push(Y);continue}let X=q.slice(j+1,J);if(X.trim()===""){Q.push("{}"),j=J;continue}if(!X.includes("/*")&&q[j+1]!==`
90
+ `&&!sZ(rZ(Q,aZ))){let W=h4(X).trim();if(!W.includes(`
91
+ `)){let R=W.endsWith(";")?W.slice(0,-1):W,O=`{ ${tZ(R)} }`;if(O.length<=120){Q.push(O),j=J;continue}}}if(Q.push(Y),q[j+1]!==`
92
+ `)Q.push(`
93
+ `);continue}if(Y==="}"){if(k4(Q,v4),Q[Q.length-1]!==`
94
+ `)Q.push(`
95
+ `);Q.push(Y);continue}if(Y===";"){if(k4(Q,pZ),Q.push(";"),q[j+1]!==`
96
+ `)Q.push(`
97
+ `);continue}Q.push(Y)}return Q.join("")}function qj(q){let Q="",Z=null;for(let j=0;j<q.length;j++){let Y=q[j],K=q[j-1];if(Z){if(Q+=Y,Z==="double"&&Y==='"'&&K!=="\\"||Z==="single"&&Y==="'"&&K!=="\\"||Z==="template"&&Y==="`"&&K!=="\\")Z=null;continue}if(Y==='"'||Y==="'"||Y==="`"){Z=Y==='"'?"double":Y==="'"?"single":"template",Q+=Y;continue}if(Y===" "&&Q.endsWith(" "))continue;Q+=Y}return Q}function Qj(q){let Q=q.split(`
98
+ `),Z=[],j=0,Y=!1,K=0;for(let J of Q){let X=J.trim();if(X===""){Z.push("");continue}if(Y){if(Z.push(`${" ".repeat(K)} ${X}`),X.includes("*/"))Y=!1;continue}if(X.startsWith("/**")&&!X.includes("*/")){Z.push(" ".repeat(j)+X),Y=!0,K=j;continue}let W=qj(X),R=E4.test(W),O=Math.max(0,j-(R?1:0));if(Z.push(" ".repeat(O)+W),W.startsWith("/**")&&W.includes("*/"))continue;let M=null;for(let $=0;$<W.length;$++){let B=W[$],P=W[$-1];if(M){if(M==="double"&&B==='"'&&P!=="\\"||M==="single"&&B==="'"&&P!=="\\"||M==="template"&&B==="`"&&P!=="\\")M=null;continue}if(B==='"')M="double";else if(B==="'")M="single";else if(B==="`")M="template";else if(cZ.has(B))j++;else if(iZ.has(B))j=Math.max(0,j-1);else if(B==="<")j++;else if(B===">"&&P!=="=")j=Math.max(0,j-1)}}return Z.join(`
99
+ `)}function Zj(q){let Q=q.split(`
100
+ `).map((j)=>j.replace(v4,"")),Z=[];for(let j of Q){let Y=j==="",K=Z.length>0&&Z[Z.length-1]==="",J=Z.length>0&&oZ.test(Z[Z.length-1]);if(Y){if(Z.length===0||K||J)continue;Z.push(j);continue}if(E4.test(j)&&K)Z.pop();Z.push(j)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
101
+ `)}function f4(q){let Q=h4(q),Z=Qj(Q);return`${Zj(Z)}
102
+ `}var H1="any",v8="",jj="Record<string, any>",b6="Record<string, never>",Yj=/(-|\s+|:)/,Hj=/("|')/,Jj=/CustomEvent/,Kj=/^[A-Z]/,Vj=/\n/,y4=/=>/,Xj=/(?:^|\n)@default\b/,T6=/\n/g,Wj=/\s+/g,zj=/(^|[^.\w])Snippet(?:\s*<|\b)/,Gj=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,Oj=/[.*+?^${}()|[\]\\]/g,Uj=/^const\s+/;function k6(q){return q.replace(Uj,"")}function Rj(q){if(!q)return;return q.replace(T6,`
103
103
  * `)}function l0(q){if(!q)return"";return`/** ${q} */`}function c0(q){if(!q)return"";return`/**
104
104
  * ${q.replace(T6,`
105
105
  * `)}
106
- */`}function y4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function OY(q){let Q=y4(q);if(Q===void 0)return;return`* ${Q.replace(T6,`
106
+ */`}function g4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function Bj(q){let Q=g4(q);if(Q===void 0)return;return`* ${Q.replace(T6,`
107
107
  * `)}
108
- `}function UY(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
108
+ `}function Fj(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
109
109
  `))return[`@${q} ${Q}`];return[`@${q}`,...Q.split(`
110
- `)]}function g4(q){let Q=[];for(let{name:Z,body:Y}of q??[])Q.push(...UY(Z,Y));return Q}function o1(q,Q,Z){let Y=y4(Z),H=g4(Q),V=H.length>0;if(!q&&!V&&!Y)return"";if(!V&&!Y)return q?.includes(`
111
- `)?c0(q):l0(q);let K=[];if(q)K.push(...q.split(`
112
- `));if(K.push(...H),Y)K.push(...Y.split(`
110
+ `)]}function _4(q){let Q=[];for(let{name:Z,body:j}of q??[])Q.push(...Fj(Z,j));return Q}function o1(q,Q,Z){let j=g4(Z),Y=_4(Q),K=Y.length>0;if(!q&&!K&&!j)return"";if(!K&&!j)return q?.includes(`
111
+ `)?c0(q):l0(q);let J=[];if(q)J.push(...q.split(`
112
+ `));if(J.push(...Y),j)J.push(...j.split(`
113
113
  `));return`/**
114
- * ${K.join(`
114
+ * ${J.join(`
115
115
  * `)}
116
- */`}function RY(q){let Q=g4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
- `).join("")}function i0(q){if(q===void 0)return J1;return`${q}
118
- `}function d0(q){if(q.typedefs.length===0)return h8;return q.typedefs.map((Q)=>{return`${Q.description?`${c0(Q.description)}
116
+ */`}function Mj(q){let Q=_4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
117
+ `).join("")}function i0(q){if(q===void 0)return H1;return`${q}
118
+ `}function d0(q){if(q.typedefs.length===0)return v8;return q.typedefs.map((Q)=>{return`${Q.description?`${c0(Q.description)}
119
119
  `:""}export ${Q.ts}`}).join(`
120
120
 
121
- `)}function _4(q,Q){let Z=Q.replace(GY,"\\$&");return new RegExp(`\\b${Z}\\b`).test(q)}function BY(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(X1(q[1]??"")[Z]??Q).trim()}))}function FY(q,Q){let Z=BY(q).filter(({name:Y})=>_4(Q,Y));if(Z.length===0)return{declSuffix:h8,refSuffix:h8};return{declSuffix:`<${Z.map(({constraint:Y})=>b6(Y)).join(", ")}>`,refSuffix:`<${Z.map(({name:Y})=>Y).join(", ")}>`}}function x4(q){if(!q.contexts||q.contexts.length===0)return h8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,Y)=>({name:Z.trim(),constraint:(X1(q.generics?.[1]??"")[Y]??Z).trim()}));return q.contexts.map((Z)=>{let Y=Z.properties.map((W)=>{let G=W.description?`${l0(W.description)}
122
- `:"",R=W.optional?"?":"";return`${G}${W.name}${R}: ${W.type};`}).join(`
123
- `),H=Z.description?`${c0(Z.description)}
124
- `:"",V=Q.filter(({name:W})=>Z.properties.some((G)=>_4(G.type,W))).map(({constraint:W})=>W),K=V.length>0?`<${V.map(b6).join(", ")}>`:"";if(Z.properties.length===0)return`${H}export type ${Z.typeName} = Record<string, never>;`;return`${H}export type ${Z.typeName}${K} = {
125
- ${Y}
121
+ `)}function x4(q,Q){let Z=Q.replace(Oj,"\\$&");return new RegExp(`\\b${Z}\\b`).test(q)}function $j(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(V1(q[1]??"")[Z]??Q).trim()}))}function wj(q,Q){let Z=$j(q).filter(({name:j})=>x4(Q,j));if(Z.length===0)return{declSuffix:v8,refSuffix:v8};return{declSuffix:`<${Z.map(({constraint:j})=>k6(j)).join(", ")}>`,refSuffix:`<${Z.map(({name:j})=>j).join(", ")}>`}}function u4(q){if(!q.contexts||q.contexts.length===0)return v8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,j)=>({name:Z.trim(),constraint:(V1(q.generics?.[1]??"")[j]??Z).trim()}));return q.contexts.map((Z)=>{let j=Z.properties.map((X)=>{let W=X.description?`${l0(X.description)}
122
+ `:"",R=X.optional?"?":"";return`${W}${X.name}${R}: ${X.type};`}).join(`
123
+ `),Y=Z.description?`${c0(Z.description)}
124
+ `:"",K=Q.filter(({name:X})=>Z.properties.some((W)=>x4(W.type,X))).map(({constraint:X})=>X),J=K.length>0?`<${K.map(k6).join(", ")}>`:"";if(Z.properties.length===0)return`${Y}export type ${Z.typeName} = Record<string, never>;`;return`${Y}export type ${Z.typeName}${J} = {
125
+ ${j}
126
126
  };`}).join(`
127
127
 
128
- `)}function n1(q){if(QY.test(q))return ZY.test(q)?q:`"${q}"`;return q}function u4(q,Q){if(!q)return;return`* ${Q||q}
129
- `}function k6(q,Q,Z){return[u4(jY(q)),OY(Q),RY(Z)].filter(Boolean).join("")}function E6(q){return q.length>0?`/**
130
- ${q}*/`:h8}function MY(q){let Q=new Set([...q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>w.name),...Array.from(q.canonicalPropNames??[])]),Z=q.props.filter((w)=>!w.isFunctionDeclaration&&w.kind!=="const").map((w)=>{let N=w.value;if(typeof w.value==="string")N=w.value.replace(VY," ");if(w.value===void 0)N="undefined";let v=KY.test(w.description??""),g=[k6(w.description,w.deprecated,w.tags),u4(w.constant,"@constant"),w.isFunction||v?null:`* @default ${N}
131
- `].filter(Boolean).join(""),f=w.constant&&!w.isFunction?w.value:w.type;return`
132
- ${E6(g)}
133
- ${w.name}${w.isRequired?"":"?"}: ${f};`}),Y=q.canonicalPropsType?Z.filter((w,N)=>{let v=q.props.filter((g)=>!g.isFunctionDeclaration&&g.kind!=="const")[N];return v?!(q.canonicalPropNames?.has(v.name)??!1):!0}):Z,H=(q.slots||[]).filter((w)=>!w.default&&w.name!=null&&!Q.has(w.name)).map((w)=>{let N=w.name,v=n1(N),g=o1(w.description,w.tags,w.deprecated),f=g?`${g}
134
- `:"",x=w.slot_props&&w.slot_props!=="Record<string, never>"?`(this: void, ...args: [${w.slot_props}]) => void`:"(this: void) => void";return`
135
- ${f}${v}?: ${x};`}),V=(q.slots||[]).find((w)=>w.default||w.name===null),K=V&&!Q.has("children")?(()=>{let w=o1(V.description,V.tags,V.deprecated),N=w?`${w}
136
- `:"",g=V.slot_props&&V.slot_props!=="Record<string, never>"?`(this: void, ...args: [${V.slot_props}]) => void`:"(this: void) => void";return`
137
- ${N}children?: ${g};`})():"",W=q.events?IY({events:q.events},Q):[],G=[...H,K,...W].filter(Boolean),R=[...Y,...G].join(`
138
- `),O=`${q.moduleName}Props`,$=h8,M=q.generics?`<${X1(q.generics[1]).map((w)=>b6(w.trim())).join(", ")}>`:"",F=q.generics?`<${q.generics[0]}>`:"",P=q.canonicalPropsType?`
139
- type $Props${M} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
128
+ `)}function n1(q){if(Yj.test(q))return Hj.test(q)?q:`"${q}"`;return q}function m4(q,Q){if(!q)return;return`* ${Q||q}
129
+ `}function E6(q,Q,Z){return[m4(Rj(q)),Bj(Q),Mj(Z)].filter(Boolean).join("")}function v6(q){return q.length>0?`/**
130
+ ${q}*/`:v8}function Lj(q){let Q=new Set([...q.props.filter((A)=>!A.isFunctionDeclaration&&A.kind!=="const").map((A)=>A.name),...Array.from(q.canonicalPropNames??[])]),Z=q.props.filter((A)=>!A.isFunctionDeclaration&&A.kind!=="const").map((A)=>{let N=A.value;if(typeof A.value==="string")N=A.value.replace(Wj," ");if(A.value===void 0)N="undefined";let v=Xj.test(A.description??""),g=[E6(A.description,A.deprecated,A.tags),m4(A.constant,"@constant"),A.isFunction||v?null:`* @default ${N}
131
+ `].filter(Boolean).join(""),f=A.constant&&!A.isFunction?A.value:A.type;return`
132
+ ${v6(g)}
133
+ ${A.name}${A.isRequired?"":"?"}: ${f};`}),j=q.canonicalPropsType?Z.filter((A,N)=>{let v=q.props.filter((g)=>!g.isFunctionDeclaration&&g.kind!=="const")[N];return v?!(q.canonicalPropNames?.has(v.name)??!1):!0}):Z,Y=(q.slots||[]).filter((A)=>!A.default&&A.name!=null&&!Q.has(A.name)).map((A)=>{let N=A.name,v=n1(N),g=o1(A.description,A.tags,A.deprecated),f=g?`${g}
134
+ `:"",x=A.slot_props&&A.slot_props!=="Record<string, never>"?`(this: void, ...args: [${A.slot_props}]) => void`:"(this: void) => void";return`
135
+ ${f}${v}?: ${x};`}),K=(q.slots||[]).find((A)=>A.default||A.name===null),J=K&&!Q.has("children")?(()=>{let A=o1(K.description,K.tags,K.deprecated),N=A?`${A}
136
+ `:"",g=K.slot_props&&K.slot_props!=="Record<string, never>"?`(this: void, ...args: [${K.slot_props}]) => void`:"(this: void) => void";return`
137
+ ${N}children?: ${g};`})():"",X=q.events?Dj({events:q.events},Q):[],W=[...Y,J,...X].filter(Boolean),R=[...j,...W].join(`
138
+ `),O=`${q.moduleName}Props`,M=v8,$=q.generics?`<${V1(q.generics[1]).map((A)=>k6(A.trim())).join(", ")}>`:"",B=q.generics?`<${q.generics[0]}>`:"",P=q.canonicalPropsType?`
139
+ type $Props${$} = ${q.canonicalPropsType}${R.trim()===""?"":` & {${R}
140
140
  }`};
141
141
  `:`
142
- type $Props${M} = {
142
+ type $Props${$} = {
143
143
  ${R}
144
144
  };
145
- `;if(q.rest_props?.type==="Element"){let w;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)w=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else w="HTMLAttributes<HTMLElement>";else w=q.rest_props.name.split("|").map((g)=>{return`SvelteHTMLElements["${g.trim()}"]`}).join(" & ");let N="[key: `data-${string}`]: unknown;",v=q.rest_props.description?q.rest_props.description.includes(`
145
+ `;if(q.rest_props?.type==="Element"){let A;if(q.rest_props.name==="svelte:element")if(q.rest_props.thisValue)A=`SvelteHTMLElements["${q.rest_props.thisValue}"]`;else A="HTMLAttributes<HTMLElement>";else A=q.rest_props.name.split("|").map((g)=>{return`SvelteHTMLElements["${g.trim()}"]`}).join(" & ");let N="[key: `data-${string}`]: unknown;",v=q.rest_props.description?q.rest_props.description.includes(`
146
146
  `)?`${c0(q.rest_props.description)}
147
147
  `:`${l0(q.rest_props.description)}
148
- `:"";if(q.extends===void 0)$=`
149
- ${v}${w?`type $RestProps = ${w};
148
+ `:"";if(q.extends===void 0)M=`
149
+ ${v}${A?`type $RestProps = ${A};
150
150
  `:""}
151
- ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
151
+ ${q.canonicalPropsType?`type $Props${$} = (${q.canonicalPropsType}) & {${R}
152
152
 
153
153
  ${N}
154
- };`:`type $Props${M} = {
154
+ };`:`type $Props${$} = {
155
155
  ${R}
156
156
 
157
157
  ${N}
158
158
  };`}
159
159
 
160
- export type ${O}${M} = Omit<$RestProps, keyof $Props${F}> & $Props${F};
161
- `;else $=`
162
- ${v}${w?`type $RestProps = ${w};
160
+ export type ${O}${$} = Omit<$RestProps, keyof $Props${B}> & $Props${B};
161
+ `;else M=`
162
+ ${v}${A?`type $RestProps = ${A};
163
163
  `:""}
164
- ${q.canonicalPropsType?`type $Props${M} = (${q.canonicalPropsType}) & {${R}
164
+ ${q.canonicalPropsType?`type $Props${$} = (${q.canonicalPropsType}) & {${R}
165
165
 
166
166
  ${N}
167
- };`:`type $Props${M} = {
167
+ };`:`type $Props${$} = {
168
168
  ${R}
169
169
 
170
170
  ${N}
171
171
  };`}
172
172
 
173
- export type ${O}${M} = Omit<$RestProps, keyof ($Props${F} & ${q.extends.interface})> & $Props${F} & ${q.extends.interface};
174
- `}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)$=`
175
- export type ${O}${M} = ${N6};
176
- `;else if(q.canonicalPropsType)$=`
173
+ export type ${O}${$} = Omit<$RestProps, keyof ($Props${B} & ${q.extends.interface})> & $Props${B} & ${q.extends.interface};
174
+ `}else if(R.trim()===""&&q.extends===void 0&&!q.canonicalPropsType)M=`
175
+ export type ${O}${$} = ${b6};
176
+ `;else if(q.canonicalPropsType)M=`
177
177
  ${P}
178
- export type ${O}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${F};
179
- `;else $=`
180
- export type ${O}${M} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
178
+ export type ${O}${$} = ${q.extends===void 0?"":`${q.extends.interface} & `}$Props${B};
179
+ `;else M=`
180
+ export type ${O}${$} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
181
181
  ${R}
182
182
  };
183
- `;return{props_name:O,prop_def:$}}function $Y(q){if(q.slots.length===0)return N6;let Q=q.slots.map(({name:Z,slot_props:Y,...H})=>{let V=H.default||Z===null?"default":n1(Z??""),K=o1(H.description,H.tags,H.deprecated);return`${K?`${K}
184
- `:""}${n1(V)}: ${i0(Y)};`}).join(`
183
+ `;return{props_name:O,prop_def:M}}function Cj(q){if(q.slots.length===0)return b6;let Q=q.slots.map(({name:Z,slot_props:j,...Y})=>{let K=Y.default||Z===null?"default":n1(Z??""),J=o1(Y.description,Y.tags,Y.deprecated);return`${J?`${J}
184
+ `:""}${n1(K)}: ${i0(j)};`}).join(`
185
185
  `);return q.slots.length===1?`{${Q}}`:`{
186
186
  ${Q}
187
- }`}var LY=()=>"WindowEventMap",CY=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function D6(q=J1){if(YY.test(q))return q;return`CustomEvent<${q}>`}function AY(q){return CY.has(q)}function m4(q){switch(q.type){case"dispatched":return D6(q.detail);case"forwarded":{let Q=q.element,Y=!(Q&&HY.test(Q))||AY(q.name),H=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),V=q.detail==="null"&&!Y;if(H||V)return D6(q.detail);else if(Y)return`${LY()}["${q.name}"]`;else return D6()}default:return q}}function wY(q){if(q.events.length===0)return qY;let Q=q.events.map((Z)=>{let Y="",H=o1(Z.description,Z.tags,Z.deprecated);if(H)Y=`${H}
188
- `;return`${Y}${n1(Z.name)}: ${m4(Z)};
187
+ }`}var Aj=()=>"WindowEventMap",Ij=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu","wheel","keydown","keyup","keypress","submit","change","input","focus","blur","focusin","focusout","reset","select","touchstart","touchend","touchmove","touchcancel","drag","dragstart","dragend","dragover","dragenter","dragleave","drop","pointerdown","pointerup","pointermove","pointerover","pointerout","pointerenter","pointerleave","pointercancel","gotpointercapture","lostpointercapture","play","pause","ended","volumechange","timeupdate","loadeddata","loadedmetadata","canplay","canplaythrough","seeking","seeked","playing","waiting","stalled","suspend","abort","error","emptied","ratechange","durationchange","loadstart","progress","loadend","animationstart","animationend","animationiteration","animationcancel","transitionstart","transitionend","transitionrun","transitioncancel","scroll","resize","load","unload","beforeunload","cut","copy","paste","compositionstart","compositionupdate","compositionend"]);function N6(q=H1){if(Jj.test(q))return q;return`CustomEvent<${q}>`}function Pj(q){return Ij.has(q)}function l4(q){switch(q.type){case"dispatched":return N6(q.detail);case"forwarded":{let Q=q.element,j=!(Q&&Kj.test(Q))||Pj(q.name),Y=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&j),K=q.detail==="null"&&!j;if(Y||K)return N6(q.detail);else if(j)return`${Aj()}["${q.name}"]`;else return N6()}default:return q}}function Sj(q){if(q.events.length===0)return jj;let Q=q.events.map((Z)=>{let j="",Y=o1(Z.description,Z.tags,Z.deprecated);if(Y)j=`${Y}
188
+ `;return`${j}${n1(Z.name)}: ${l4(Z)};
189
189
  `}).join("");return q.events.length===1?`{${Q}}`:`{
190
- ${Q}}`}function IY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y))return;let H="",V=o1(Z.description,Z.tags,Z.deprecated);if(V)H=`${V}
190
+ ${Q}}`}function Dj(q,Q){return q.events.map((Z)=>{let j=`on${Z.name}`;if(Q.has(j))return;let Y="",K=o1(Z.description,Z.tags,Z.deprecated);if(K)Y=`${K}
191
191
  `;return`
192
- ${H}${n1(Y)}?: (event: ${m4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function PY(q){let Q=q.type==="() => any";if(q.type&&f4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((V)=>{let K=V.optional?"?":"";return`${V.name}${K}: ${V.type}`}).join(", "),H=q.returnType||J1;return`(${Y}) => ${H}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||J1}function l4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=k6(Q.description,Q.deprecated,Q.tags),Y=PY(Q);return`
193
- ${E6(Z)}
194
- ${Q.name}: ${Y};`}).join(`
195
- `)}function SY(q){let Q=`${q.moduleName}Exports`,Z=l4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${N6};`};let{declSuffix:Y,refSuffix:H}=FY(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${H}`,exports_def:`export type ${Q}${Y} = {${Z}
196
- };`}}function DY(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?h8:Q.join(" | ")}function NY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===h8?'""':q.bindings;return`declare const ${Q}: Component<
192
+ ${Y}${n1(j)}?: (event: ${l4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function Nj(q){let Q=q.type==="() => any";if(q.type&&y4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let j=q.params.map((K)=>{let J=K.optional?"?":"";return`${K.name}${J}: ${K.type}`}).join(", "),Y=q.returnType||H1;return`(${j}) => ${Y}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||H1}function c4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=E6(Q.description,Q.deprecated,Q.tags),j=Nj(Q);return`
193
+ ${v6(Z)}
194
+ ${Q.name}: ${j};`}).join(`
195
+ `)}function bj(q){let Q=`${q.moduleName}Exports`,Z=c4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${b6};`};let{declSuffix:j,refSuffix:Y}=wj(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${Y}`,exports_def:`export type ${Q}${j} = {${Z}
196
+ };`}}function Tj(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?v8:Q.join(" | ")}function kj(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===v8?'""':q.bindings;return`declare const ${Q}: Component<
197
197
  ${q.propsRef},
198
198
  ${q.exportsRef},
199
199
  ${Z}
200
200
  >;
201
- export default ${Q};`}function TY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,Y=q.bindings===h8?'""':q.bindings;return`interface ${Z} {
201
+ export default ${Q};`}function Ej(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,j=q.bindings===v8?'""':q.bindings;return`interface ${Z} {
202
202
  new ${q.generic}(
203
203
  options: ComponentConstructorOptions<${q.propsRef}>
204
204
  ): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
@@ -211,58 +211,58 @@ ${Q}}`}function IY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y
211
211
  $set?(props: Partial<${q.propsRef}>): void;
212
212
  } & ${q.exportsRef};
213
213
  element?: typeof HTMLElement;
214
- z_$$bindings?: ${Y};
214
+ z_$$bindings?: ${j};
215
215
  }
216
216
  declare const ${Q}: ${Z};
217
- export default ${Q};`}function bY(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function kY(q){if(!q.componentComment)return"";if(!JY.test(q.componentComment))return l0(q.componentComment.trim());return`/*${q.componentComment.split(`
217
+ export default ${Q};`}function vj(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function hj(q){if(!q.componentComment)return"";if(!Vj.test(q.componentComment))return l0(q.componentComment.trim());return`/*${q.componentComment.split(`
218
218
  `).map((Q)=>`* ${Q}`).join(`
219
219
  `)}
220
- */`}function EY(q){return q.moduleExports.map((Q)=>{let Z=k6(Q.description,Q.deprecated,Q.tags),Y,H=Q.type&&f4.test(Q.type),V=Q.type==="() => any";if(Q.kind==="const"&&!H)Y=`export declare const ${Q.name}: ${Q.type||J1};
221
- `;else if(Q.params&&Q.params.length>0){let W=Q.params.map((R)=>{let O=R.optional?"?":"";return`${R.name}${O}: ${R.type}`}).join(", "),G=Q.returnType||J1;Y=`export declare function ${Q.name}(${W}): ${G};`}else if(Q.returnType)Y=`export declare function ${Q.name}(): ${Q.returnType};`;else if(H&&Q.type&&!V){let[K,W,...G]=Q.type.split("=>"),R=G.map((O)=>` => ${O.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(H&&Q.type){let[K,W,...G]=Q.type.split("=>"),R=G.map((O)=>` => ${O.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${W.trim()}${R};`}else if(Q.kind==="const")Y=`export declare const ${Q.name}: ${Q.type||J1};
222
- `;else Y=`export type ${Q.name} = ${Q.type||J1};`;return`
223
- ${E6(Z)}
224
- ${Y}`}).join(`
225
- `)}var vY=120;function hY(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,Y=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&Y.every((H)=>!H.includes(`
226
- `))){let H=`${Z}${Y.join(", ")}> {}`;if(H.length<=vY)return H}return`${Z}
220
+ */`}function fj(q){return q.moduleExports.map((Q)=>{let Z=E6(Q.description,Q.deprecated,Q.tags),j,Y=Q.type&&y4.test(Q.type),K=Q.type==="() => any";if(Q.kind==="const"&&!Y)j=`export declare const ${Q.name}: ${Q.type||H1};
221
+ `;else if(Q.params&&Q.params.length>0){let X=Q.params.map((R)=>{let O=R.optional?"?":"";return`${R.name}${O}: ${R.type}`}).join(", "),W=Q.returnType||H1;j=`export declare function ${Q.name}(${X}): ${W};`}else if(Q.returnType)j=`export declare function ${Q.name}(): ${Q.returnType};`;else if(Y&&Q.type&&!K){let[J,X,...W]=Q.type.split("=>"),R=W.map((O)=>` => ${O.trim()}`).join("");j=`export declare function ${Q.name}${J.trimEnd()}: ${X.trim()}${R};`}else if(Y&&Q.type){let[J,X,...W]=Q.type.split("=>"),R=W.map((O)=>` => ${O.trim()}`).join("");j=`export declare function ${Q.name}${J.trimEnd()}: ${X.trim()}${R};`}else if(Q.kind==="const")j=`export declare const ${Q.name}: ${Q.type||H1};
222
+ `;else j=`export type ${Q.name} = ${Q.type||H1};`;return`
223
+ ${v6(Z)}
224
+ ${j}`}).join(`
225
+ `)}var yj=120;function gj(q){let Z=`export default class ${q.moduleName==="default"?"":q.moduleName}${q.generic} extends SvelteComponentTyped<`,j=[q.genericProps,q.events,q.slots];if(q.accessors.trim()===""&&j.every((Y)=>!Y.includes(`
226
+ `))){let Y=`${Z}${j.join(", ")}> {}`;if(Y.length<=yj)return Y}return`${Z}
227
227
  ${q.genericProps},
228
228
  ${q.events},
229
229
  ${q.slots}
230
230
  > {
231
231
  ${q.accessors}
232
- }`}function fY(q,Q){let Z=t0(q),{moduleName:Y,typedefs:H,generics:V,props:K,moduleExports:W,slots:G,events:R,rest_props:O,extends:$,componentComment:M,contexts:F,syntaxMode:P}=q,w=Q?.format==="component",N=V!==null,{props_name:v,prop_def:g}=MY({moduleName:Y,props:K,rest_props:O,extends:$,generics:V,slots:G,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:w&&P==="legacy"?R:void 0}),f=V?`<${V[1]}>`:"",a=V?`${v}<${V[0]}>`:v,x=EY({moduleExports:W}),Z8=d0({typedefs:H}),C=x4({contexts:F,generics:V}),J=(Z?.typeImportStatements??[]).join(`
233
- `),X=(Z?.localTypeDeclarations??[]).join(`
232
+ }`}function _j(q,Q){let Z=t0(q),{moduleName:j,typedefs:Y,generics:K,props:J,moduleExports:X,slots:W,events:R,rest_props:O,extends:M,componentComment:$,contexts:B,syntaxMode:P}=q,A=Q?.format==="component",N=K!==null,{props_name:v,prop_def:g}=Lj({moduleName:j,props:J,rest_props:O,extends:M,generics:K,slots:W,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:A&&P==="legacy"?R:void 0}),f=K?`<${K[1]}>`:"",a=K?`${v}<${K[0]}>`:v,x=fj({moduleExports:X}),Z8=d0({typedefs:Y}),L=u4({contexts:B,generics:K}),H=(Z?.typeImportStatements??[]).join(`
233
+ `),V=(Z?.localTypeDeclarations??[]).join(`
234
234
 
235
- `),{exports_ref:z,exports_def:j}=w?SY({props:K,moduleName:Y,generics:V}):{exports_ref:h8,exports_def:h8},B=w?DY({props:K}):h8,L=!WY.test(J)&&XY.test(`${g}
235
+ `),{exports_ref:z,exports_def:G}=A?bj({props:J,moduleName:j,generics:K}):{exports_ref:v8,exports_def:v8},F=A?Tj({props:J}):v8,w=!Gj.test(H)&&zj.test(`${g}
236
236
  ${x}
237
237
  ${Z8}
238
- ${C}
239
- ${X}
240
- ${j}`),A=O?.type==="Element"&&(O.name!=="svelte:element"||O.name==="svelte:element"&&O.thisValue),D=O?.type==="Element"&&O.name==="svelte:element"&&!O.thisValue,I=[w?N?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${L?", Snippet":""} } from "svelte";`:`import type { Component${L?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${L?", type Snippet":""} } from "svelte";`,A?'import type { SvelteHTMLElements } from "svelte/elements";':"",D?'import type { HTMLAttributes } from "svelte/elements";':"",J,bY({extends:$})].filter(Boolean).join(`
241
- `),h=w?N?TY({moduleName:Y,generic:f,propsRef:a,exportsRef:z,bindings:B}):NY({moduleName:Y,propsRef:a,exportsRef:z,bindings:B}):hY({moduleName:Y,generic:f,genericProps:a,events:wY({events:R}),slots:$Y({slots:G}),accessors:l4({props:K})}),c=[x,Z8,X,C,g,j,[kY({componentComment:M}),h].filter(Boolean).join(`
238
+ ${L}
239
+ ${V}
240
+ ${G}`),C=O?.type==="Element"&&(O.name!=="svelte:element"||O.name==="svelte:element"&&O.thisValue),D=O?.type==="Element"&&O.name==="svelte:element"&&!O.thisValue,I=[A?N?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${w?", Snippet":""} } from "svelte";`:`import type { Component${w?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${w?", type Snippet":""} } from "svelte";`,C?'import type { SvelteHTMLElements } from "svelte/elements";':"",D?'import type { HTMLAttributes } from "svelte/elements";':"",H,vj({extends:M})].filter(Boolean).join(`
241
+ `),h=A?N?Ej({moduleName:j,generic:f,propsRef:a,exportsRef:z,bindings:F}):kj({moduleName:j,propsRef:a,exportsRef:z,bindings:F}):gj({moduleName:j,generic:f,genericProps:a,events:Sj({events:R}),slots:Cj({slots:W}),accessors:c4({props:J})}),c=[x,Z8,V,L,g,G,[hj({componentComment:$}),h].filter(Boolean).join(`
242
242
  `)].map((m)=>m.trim()).filter(Boolean).join(`
243
243
 
244
- `);return h4([I,c].filter(Boolean).join(`
244
+ `);return f4([I,c].filter(Boolean).join(`
245
245
 
246
- `))}var v6=/`/g,p0=/\s+/g,x8="--",c4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
246
+ `))}var h6=/`/g,p0=/\s+/g,x8="--",i4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
247
247
  | :- | :- | :- | :- | :- | :- | :- | :- |
248
- `,i4=`| Slot name | Default | Props | Fallback | Description |
248
+ `,d4=`| Slot name | Default | Props | Fallback | Description |
249
249
  | :- | :- | :- | :- | :- |
250
- `,d4=`| Event name | Type | Detail | Description |
250
+ `,p4=`| Event name | Type | Detail | Description |
251
251
  | :- | :- | :- | :- |
252
- `,p4=`| Name | Kind | Type | Description |
252
+ `,o4=`| Name | Kind | Type | Description |
253
253
  | :- | :- | :- | :- |
254
- `,o0=/\|/g,yY=/</g,gY=/>/g,A1=/\n/g;function R1(q){if(q===void 0)return x8;return`<code>${q.replace(o0,"&#124;")}</code>`}function s1(q){return q.replace(yY,"&lt;").replace(gY,"&gt;")}function o4(q){if(q===void 0)return x8;return`<code>${q.replace(v6,"\\`").replace(o0,"&#124;")}</code>`}function n0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${s1(Q).replace(A1," ").replace(o0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function s0(q){if(q===void 0||q.trim().length===0)return x8;return s1(q).replace(A1,"<br />")}function n4(q){if(q===void 0||q==="{}")return x8;return R1(i0(q).replace(A1," "))}function s4(q){if(q===void 0)return x8;return R1(s1(q).replace(A1,"<br />"))}function a4(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(s1(q));for(let{name:Y,body:H}of Q??[]){let V=H?.trim();Z.push(V?`@${Y} ${s1(V)}`:`@${Y}`)}if(Z.length===0)return x8;return Z.join(`
255
- `).replace(o0,"&#124;").replace(A1,"<br />")}function r4(q){if(q===void 0)return x8;return R1(q.replace(A1," "))}function f6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)_Y(q,Z);let Y=p1(Q);for(let H of Y.components)xY(q,H)}function _Y(q,Q){q.append("h2","Exports"),q.append("raw",p4);for(let Z of Q){let Y=(Z.type??Z.value)?.replace(p0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${R1(Y)} | ${s0(Z.description)} |
254
+ `,o0=/\|/g,xj=/</g,uj=/>/g,C1=/\n/g;function R1(q){if(q===void 0)return x8;return`<code>${q.replace(o0,"&#124;")}</code>`}function s1(q){return q.replace(xj,"&lt;").replace(uj,"&gt;")}function n4(q){if(q===void 0)return x8;return`<code>${q.replace(h6,"\\`").replace(o0,"&#124;")}</code>`}function n0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${s1(Q).replace(C1," ").replace(o0,"&#124;")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function s0(q){if(q===void 0||q.trim().length===0)return x8;return s1(q).replace(C1,"<br />")}function s4(q){if(q===void 0||q==="{}")return x8;return R1(i0(q).replace(C1," "))}function a4(q){if(q===void 0)return x8;return R1(s1(q).replace(C1,"<br />"))}function r4(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(s1(q));for(let{name:j,body:Y}of Q??[]){let K=Y?.trim();Z.push(K?`@${j} ${s1(K)}`:`@${j}`)}if(Z.length===0)return x8;return Z.join(`
255
+ `).replace(o0,"&#124;").replace(C1,"<br />")}function t4(q){if(q===void 0)return x8;return R1(q.replace(C1," "))}function y6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)mj(q,Z);let j=p1(Q);for(let Y of j.components)lj(q,Y)}function mj(q,Q){q.append("h2","Exports"),q.append("raw",o4);for(let Z of Q){let j=(Z.type??Z.value)?.replace(p0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${R1(j)} | ${s0(Z.description)} |
256
256
  `)}q.append("raw",`
257
- `),q.append("divider")}function h6(q,Q,Z,Y){if(Q.length>0)Z(),q.append("raw",`
258
- `);else q.append("p",Y??"None.")}function xY(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${R1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
257
+ `),q.append("divider")}function f6(q,Q,Z,j){if(Q.length>0)Z(),q.append("raw",`
258
+ `);else q.append("p",j??"None.")}function lj(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${R1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
259
259
  ${d0({typedefs:Q.typedefs})}
260
260
  \`\`\`
261
261
 
262
- `);q.append("h3","Props"),h6(q,Q.props,()=>{q.append("raw",c4);let Z=[...Q.props].sort((Y)=>{if(Y.reactive)return-1;if(Y.constant)return 1;return 0});for(let Y of Z)q.append("raw",`| ${n0(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${R1(Y.type)} | ${o4(Y.value)} | ${s0(Y.description)} |
263
- `)}),q.append("h3","Slots"),h6(q,Q.slots,()=>{q.append("raw",i4);for(let Z of Q.slots)q.append("raw",`| ${n0(Z.default?x8:Z.name??x8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${n4(Z.slot_props)} | ${s4(Z.fallback)} | ${a4(Z.description,Z.tags)} |
264
- `)}),q.append("h3","Events"),h6(q,Q.events,()=>{q.append("raw",d4);for(let Z of Q.events)q.append("raw",`| ${n0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?r4(Z.detail):x8} | ${s0(Z.description)} |
265
- `)})}var uY=new Set(["string","number","boolean"]);function mY(q){return q.map((Q)=>({kind:"field",name:Q.name,...Q.type?{type:{text:Q.type}}:{},...Q.value===void 0?{}:{default:Q.value},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function lY(q){let Q=new Map;for(let Y of q){if(!Y.type||!uY.has(Y.type.trim()))continue;let H=Y.name.toLowerCase(),V=Q.get(H);if(V)V.push(Y);else Q.set(H,[Y])}let Z=[];for(let[Y,H]of Q){if(H.length!==1)continue;let V=H[0];Z.push({name:Y,fieldName:V.name,type:{text:V.type},...V.value===void 0?{}:{default:V.value},...V.description?{description:V.description}:{}})}return Z}function cY(q){return q.filter((Q)=>Q.type==="dispatched").map((Q)=>({name:Q.name,type:{text:`CustomEvent<${Q.detail??"unknown"}>`},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function iY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function dY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:mY(q.props),attributes:lY(q.props),events:cY(q.events),slots:iY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function pY(q,Q){let Z=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:Q}}];if(q.customElementTag)Z.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:Q}});return Z}function oY(q,Q={}){let Z=p1(q),Y=Q.resolveModulePath??((V)=>V.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((V)=>{let K=Y(V);return{kind:"javascript-module",path:K,declarations:[dY(V)],exports:pY(V,K)}})}}class y6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
262
+ `);q.append("h3","Props"),f6(q,Q.props,()=>{q.append("raw",i4);let Z=[...Q.props].sort((j)=>{if(j.reactive)return-1;if(j.constant)return 1;return 0});for(let j of Z)q.append("raw",`| ${n0(j.name,j.deprecated)} | ${j.isRequired?"Yes":"No"} | ${`<code>${j.kind}</code>`} | ${j.reactive?"Yes":"No"} | ${j.binding??"--"} | ${R1(j.type)} | ${n4(j.value)} | ${s0(j.description)} |
263
+ `)}),q.append("h3","Slots"),f6(q,Q.slots,()=>{q.append("raw",d4);for(let Z of Q.slots)q.append("raw",`| ${n0(Z.default?x8:Z.name??x8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${s4(Z.slot_props)} | ${a4(Z.fallback)} | ${r4(Z.description,Z.tags)} |
264
+ `)}),q.append("h3","Events"),f6(q,Q.events,()=>{q.append("raw",p4);for(let Z of Q.events)q.append("raw",`| ${n0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?t4(Z.detail):x8} | ${s0(Z.description)} |
265
+ `)})}var cj=new Set(["string","number","boolean"]);function ij(q){return q.map((Q)=>({kind:"field",name:Q.name,...Q.type?{type:{text:Q.type}}:{},...Q.value===void 0?{}:{default:Q.value},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function dj(q){let Q=new Map;for(let j of q){if(!j.type||!cj.has(j.type.trim()))continue;let Y=j.name.toLowerCase(),K=Q.get(Y);if(K)K.push(j);else Q.set(Y,[j])}let Z=[];for(let[j,Y]of Q){if(Y.length!==1)continue;let K=Y[0];Z.push({name:j,fieldName:K.name,type:{text:K.type},...K.value===void 0?{}:{default:K.value},...K.description?{description:K.description}:{}})}return Z}function pj(q){return q.filter((Q)=>Q.type==="dispatched").map((Q)=>({name:Q.name,type:{text:`CustomEvent<${Q.detail??"unknown"}>`},...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function oj(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function nj(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:ij(q.props),attributes:dj(q.props),events:pj(q.events),slots:oj(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function sj(q,Q){let Z=[{kind:"js",name:q.moduleName,declaration:{name:q.moduleName,module:Q}}];if(q.customElementTag)Z.push({kind:"custom-element-definition",name:q.customElementTag,declaration:{name:q.moduleName,module:Q}});return Z}function aj(q,Q={}){let Z=p1(q),j=Q.resolveModulePath??((K)=>K.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((K)=>{let J=j(K);return{kind:"javascript-module",path:J,declarations:[nj(K)],exports:sj(K,J)}})}}class g6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
266
266
 
267
- `),this}append(q,Q){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Z=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(Z)} ${Q}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:Q??""});break}case"quote":this.sourceParts.push(`> ${Q}`);break;case"p":this.sourceParts.push(Q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(Q??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:Q,raw:Z})=>{return`${" ".repeat(Q)}- [${Z}](#${Z.toLowerCase().replace(v6,"").replace(p0,"-")})`}).join(`
268
- `))}}class g6 extends y6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function nY(q,Q){let Z=new g6({onAppend:(Y,H)=>{Q?.onAppend?.call(null,Y,H,q)}});return f6(Z,q),Z.end()}export{fY as writeTsDefinition,nY as writeMarkdownCore,f6 as renderComponentsToMarkdown,d0 as getTypeDefs,x4 as getContextDefs,i0 as formatTsProps,oY as buildCustomElementsManifest,p1 as buildComponentApiDocument,Z3 as asNormalizedPath,O8 as ComponentParser,b4 as COMPONENT_API_SCHEMA_VERSION,g6 as BrowserWriterMarkdown};
267
+ `),this}append(q,Q){switch(q){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let Z=Number(q.slice(-1));if(this.sourceParts.push(`${"#".repeat(Z)} ${Q}`),this.hasToC&&q==="h2")this.toc.push({indent:0,raw:Q??""});break}case"quote":this.sourceParts.push(`> ${Q}`);break;case"p":this.sourceParts.push(Q??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(Q??"");break}if(q!=="raw")this.appendLineBreaks();return this}tableOfContents(){return this.sourceParts.push("<!-- __TOC__ -->"),this.hasToC=!0,this.appendLineBreaks(),this}end(){return this.sourceParts.join("").replace("<!-- __TOC__ -->",this.toc.map(({indent:Q,raw:Z})=>{return`${" ".repeat(Q)}- [${Z}](#${Z.toLowerCase().replace(h6,"").replace(p0,"-")})`}).join(`
268
+ `))}}class _6 extends g6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function rj(q,Q){let Z=new _6({onAppend:(j,Y)=>{Q?.onAppend?.call(null,j,Y,q)}});return y6(Z,q),Z.end()}export{_j as writeTsDefinition,rj as writeMarkdownCore,y6 as renderComponentsToMarkdown,d0 as getTypeDefs,u4 as getContextDefs,i0 as formatTsProps,aj as buildCustomElementsManifest,p1 as buildComponentApiDocument,j3 as asNormalizedPath,O8 as ComponentParser,T4 as COMPONENT_API_SCHEMA_VERSION,_6 as BrowserWriterMarkdown};