sveld 0.36.7 → 0.36.8
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 +72 -72
- package/lib/{chunk-hytk5gv8.js → chunk-27bcwe2d.js} +73 -73
- package/lib/{chunk-wn9w3zst.js → chunk-8xb689xy.js} +1 -1
- package/lib/{chunk-5x7ma2jx.js → chunk-fs34jqzg.js} +19 -19
- package/lib/{chunk-bjwm35xb.js → chunk-wd7r13a5.js} +1 -1
- package/lib/{chunk-c5sqd852.js → chunk-xzpr4ksw.js} +1 -1
- package/lib/cli-entry.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/browser.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
var
|
|
1
|
+
var n4=Object.defineProperty;var a4=(q)=>q;function r4(q,Q){this[q]=a4.bind(null,Q)}var t4=(q,Q)=>{for(var Z in Q)n4(q,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:r4.bind(Q,Z)})};function e4(q){return q}class r1{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 n0 extends r1{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 j=this.should_skip,K=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,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_skip,B=this.should_remove;if(this.should_skip=j,this.should_remove=K,this.replacement=X,W)return q;if(B)return null}let H;for(H in q){let j=q[H];if(j&&typeof j==="object"){if(Array.isArray(j)){let K=j;for(let X=0;X<K.length;X+=1){let W=K[X];if(E6(W)){if(!this.visit(W,q,H,X))X--}}}else if(E6(j))this.visit(j,q,H,null)}}if(this.leave){let j=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 X=this.should_remove;if(this.replacement=j,this.should_remove=K,X)return null}}return q}}function E6(q){return q!==null&&typeof q==="object"&&"type"in q&&typeof q.type==="string"}function E8(q,{enter:Q,leave:Z}){return new n0(Q,Z).visit(q,null)}function v8(q){return typeof q==="object"&&q!==null}function v6(q){return v8(q)&&q.type==="VariableDeclaration"&&Array.isArray(q.declarations)}function H1(q){return v8(q)&&q.type==="Literal"}function _8(q){return v8(q)&&q.type==="Identifier"&&typeof q.name==="string"}function h6(q){return v8(q)&&q.type==="MemberExpression"}function t1(q){return v8(q)&&q.type==="ObjectExpression"&&Array.isArray(q.properties)}function q3(q){return v8(q)&&q.type==="CallExpression"}function x8(q,Q){if(!q3(q))return!1;return!!q.callee&&v8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}function s8(q){if(v8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"expression"in q)return s8(q.expression);return q}function y6(q){if(v8(q)&&(q.type==="TSAsExpression"||q.type==="TSSatisfiesExpression")&&"typeAnnotation"in q)return q.typeAnnotation;return}function Q3(q){return v8(q)&&q.type==="NewExpression"}function a0(q,Q){if(!Q3(q))return!1;return!!q.callee&&v8(q.callee)&&q.callee.type==="Identifier"&&q.callee.name===Q}var f6={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 Z3(q){return q in f6}function g6(q){if(Z3(q))return f6[q];return"HTMLElement"}var e1=Symbol("sveld.parsedComponentTypeScriptMetadata");function r0(q){return q[e1]}var Y3=/\w/;function H3(q,Q){let Z=q.trim();if(!Z.startsWith("{")||!Z.endsWith("}"))return;let Y=Z.slice(1,-1),H=[],j=0,K="";for(let X of Y)if(X==="{"||X==="<"||X==="("||X==="[")j++,K+=X;else if(X==="}"||X===">"||X===")"||X==="]")j--,K+=X;else if((X===";"||X===",")&&j===0)H.push(K.trim()),K="";else K+=X;if(K.trim())H.push(K.trim());for(let X of H){if(!X.startsWith(Q))continue;let W=X.slice(Q.length);if(W.length>0&&Y3.test(W[0]))continue;let B=W.trimStart();if(B.startsWith("?"))B=B.slice(1).trimStart();if(B.startsWith(":"))return B.slice(1).trim()}return}function q0(q,Q,Z){let Y=Z;if(Y.computed||Y.object?.type!=="Identifier"||Y.property?.type!=="Identifier")return;let H=Y.object.name,j=Y.property.name;if(!H||!j)return;if(q.wholePropsLocals.has(H))return Q.getPropTypeByLocalOrPublic(j);let K=Q.getPropTypeByLocalOrPublic(H)??Q.findVariableTypeAndDescription(H)?.type;if(!K)return;return H3(K,j)}function t0(){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,valueImportBindingsByLocalName:new Map,pendingCallDefaultCandidates:[],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 l8(q,Q,Z,Y,H){q.diagnosticRecords.push({component:q.componentFilePath,kind:Q,name:Z,message:Y,...H?{source:H}:{}})}var e0=/[\r\n]+/g;function J3(q){if(q.sourceLineStartOffsetsCache)return q.sourceLineStartOffsetsCache;let Q=[0];if(q.source){let Z=q.source.indexOf(`
|
|
2
2
|
`);while(Z!==-1)Q.push(Z+1),Z=q.source.indexOf(`
|
|
3
|
-
`,Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function _6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=H3(q),Y=0,H=Z.length-1;while(Y<=H){let j=Math.floor((Y+H)/2),K=Z[j],X=Z[j+1]??Number.POSITIVE_INFINITY;if(Q<K)H=j-1;else if(Q>=X)Y=j+1;else return{line:j+1,column:Q-K}}return}function Q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let Y=_6(q,Q),H=_6(q,Z);if(!Y||!H)return;return{start:Y,end:H}}function K8(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){if(!Q||Q.length===0)return;let Z=[...Q];while(Z.length>1){let W=Z[Z.length-1];if(W.tag!==void 0||!W.raw.trim().endsWith("*/"))break;Z.pop()}let Y=Z[0],H=Y.raw.indexOf(`@${Y.tag??""}`),j=Y.start+Math.max(H,0),K=Z[Z.length-1],X=K.start+K.raw.length;return Q0(q,j,X)}function e(q,Q,Z){return q.source?.slice(Q,Z)}function Z0(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 e(q,Z,Y)?.replace(e0," ")}function C8(q){return q===void 0||q===""?void 0:q}function L1(q,Q,Z,Y){if(C8(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 n8(q,Q,Z,Y=0){let H,j,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:H,type:j,isFunction:K};let X=u6(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")H=e(Q,W.start,W.end)?.replace(e0," ");if(j=H,K=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let B=Z;if(B.left&&typeof B.left==="object"&&"type"in B.left&&B.left.type==="Literal"&&"value"in B.left&&typeof B.left.value==="string")j="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")j=d6(Z),H=x6(Q,Z)}else if(Z.type==="UnaryExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);if(W.argument){if(typeof W.argument==="object"&&"type"in W.argument&&W.argument.type==="UnaryExpression")j=n8(q,Q,W.argument).type;else if(typeof W.argument==="object"&&"value"in W.argument)j=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")H=e(Q,W.start,W.end);if(W.callee&&typeof W.callee==="object"&&"type"in W.callee&&W.callee.type==="Identifier"){let B=W.callee.name;if(B==="Date")j="Date";else if(B==="Map")j="Map<any, any>";else if(B==="Set")j="Set<any>";else if(B==="WeakMap")j="WeakMap<object, any>";else if(B==="WeakSet")j="WeakSet<object>";else if(B==="Array")j="any[]";else if(B==="RegExp"||B==="Regexp")j="RegExp";else if(B==="Error")j="Error";else j=B}}else if(Z.type==="CallExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);let B=W.callee,U=B&&typeof B==="object"&&"type"in B&&B.type==="Identifier"?B.name:void 0;if((U==="$derived"||U==="$state")&&W.arguments.length===1&&Y<5)return{...n8(q,Q,W.arguments[0],Y+1),value:H,defaultValue:X};if(U){let $=K3(q,Q,U);if($)return{value:H,type:void 0,isFunction:!1,defaultValue:X,resolvedType:$};if(Q.funcDecls.has(U)||j3(Q,U))return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U}};let w=Q.valueImportBindingsByLocalName.get(U);if(w)return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U,importSource:w.source,importedName:w.importedName}}}return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U??J3(Q,B)}}}else if(Z.type==="Identifier"){let W=Z;if(Y<5){let B=m6(Q,W.name);if(B){let U=n8(q,Q,B,Y+1),$=q.resolveLocalVarJSDoc(W.name);return{...U,resolvedType:$?.type??U.resolvedType,resolvedDescription:$?.description??U.resolvedDescription,resolvedParams:$?.params??U.resolvedParams,resolvedReturnType:$?.returnType??U.resolvedReturnType}}if(Q.funcDecls.has(W.name)){let U=q.resolveLocalVarJSDoc(W.name),$=Q.funcDecls.get(W.name);return{value:$?x6(Q,$):void 0,type:void 0,isFunction:!0,defaultValue:$?u6(q,Q,$):void 0,resolvedType:U?.type??z3(U,$),resolvedDescription:U?.description,resolvedParams:U?.params,resolvedReturnType:U?.returnType}}}if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(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")H=e(Q,W.start,W.end);if(q.isNumericConstant(Z))j="number"}else if(Z.type==="TemplateLiteral"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);j="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(H=Z.raw,"value"in Z)j=Z.value==null?void 0:typeof Z.value}return{value:H,type:j,isFunction:K,defaultValue:X}}function m6(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 l6(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){if(Q&&typeof Q==="object"&&"start"in Q&&"end"in Q&&typeof Q.start==="number"&&typeof Q.end==="number")return e(q,Q.start,Q.end)??"call";return"call"}function K3(q,Q,Z){let Y=q.resolveLocalVarJSDoc(Z);if(Y?.returnType)return Y.returnType;let H=Q.funcDecls.get(Z)??c6(Q,Z);if(!H)return;let j=W3(Q,H);if(j)return j;let K=V3(Q,Z);if(K)return K;let X=i6(H);return X==="any"?void 0:X}function j3(q,Q){return c6(q,Q)!==void 0}function c6(q,Q){let Z=m6(q,Q);if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")return Z;return}function V3(q,Q){for(let Z of q.vars)for(let Y of Z.declarations){let H=Y.id;if(!H||typeof H!=="object"||!("type"in H)||H.type!=="Identifier"||!("name"in H)||H.name!==Q)continue;let j=H.typeAnnotation;if(j?.type!=="TSTypeAnnotation")return;let K=j.typeAnnotation;if(!K||typeof K.start!=="number"||typeof K.end!=="number")return;return X3(e(q,K.start,K.end))}return}function X3(q){if(!q)return;let Q=q.lastIndexOf("=>");if(Q===-1)return;return q.slice(Q+2).trim()||void 0}function W3(q,Q){let Z=Q.returnType;if(Z?.type!=="TSTypeAnnotation")return;let Y=Z.typeAnnotation;if(!Y||typeof Y.start!=="number"||typeof Y.end!=="number")return;return e(q,Y.start,Y.end)}function z3(q,Q){let Z=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((j)=>`${j.name}${j.optional?"?":""}: ${j.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return d6(Q);return"(...args: any[]) => any"}function d6(q){return`(${U3(q)}) => ${i6(q)}`}function U3(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 i6(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=G3(Q),Z.length===0)return"any"}else Z=[Q];let Y=null;for(let H of Z){let j=O3(H);if(!j)return"any";if(Y===null)Y=j;else if(Y!==j)return"any"}return Y??"any"}function G3(q){let Q=[];return E8(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 O3(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 p6(q){if(x8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function B3(q,Q){let Z=Q.params;if(!Array.isArray(Z)||Z.length===0)return"";let Y=Z[0],H=Z[Z.length-1];if(typeof Y.start!=="number"||typeof H.end!=="number")return"";return e(q,Y.start,H.end)??""}function x6(q,Q){if(Q.generator)return;let Z=Q.body;if(!Z||typeof Z!=="object"||!("type"in Z))return;let Y=B3(q,Q),H=Q.async?"async ":"",j=(X,W)=>X&&typeof X==="object"&&("type"in X)&&X.type==="ObjectExpression"?`(${W})`:W;if(Z.type!=="BlockStatement"){let X=Z0(q,Z);return X===void 0?void 0:`${H}(${Y}) => ${j(Z,X)}`}let K=Z.body;if(K.length===0)return`${H}(${Y}) => {}`;if(K.length===1){let X=K[0];if(X&&typeof X==="object"&&"type"in X&&X.type==="ReturnStatement"){let W=X.argument;if(W){let B=Z0(q,W);if(B!==void 0)return`${H}(${Y}) => ${j(W,B)}`}}}return}function u6(q,Q,Z){let Y=Z0(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"||Z.type==="FunctionDeclaration")H="function";let j={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let K=Q9(q,Z);if(K.ok)j.value=K.value}return j}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 j=Q9(q,H);if(!j.ok)return{ok:!1};Y.push(j.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 j=q.getPropertyName(H.key);if(!j)return{ok:!1};let K=Q9(q,H.value);if(!K.ok)return{ok:!1};Y[j]=K.value}return{ok:!0,value:Y}}return{ok:!1}}var F3=/[-_.:/\s]+/;function Z9(q){return`${q.split(F3).map((Y)=>Y.charAt(0).toUpperCase()+Y.slice(1)).join("")}Context`}function R3(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z))return null;if(Z.type==="ObjectExpression"){let H=[];if(!t1(Z))return null;let j=Z;for(let K of j.properties){if(K.type!=="Property")continue;let X=Q.getPropertyName(K.key);if(!X)continue;let W="any",B;if(_8(K.value)){let U=K.value.name,$=Q.findVariableTypeAndDescription(U);if($)W=$.type,B=$.description;else l8(q,"context-any-type",X,`Context "${Y}" property "${X}" has no type annotation; defaulted to "any".`,K8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))W=`(${K.value.params?.map((w)=>{if(_8(w))return`${w.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(H1(K.value))W=K.value.value==null?"null":typeof K.value.value;H.push({name:X,type:W,description:B,optional:!1})}return{key:Y,typeName:Z9(Y),properties:H,description:void 0}}else if(_8(Z)){let H=Z.name,j=Q.findVariableTypeAndDescription(H);if(j)return{key:Y,typeName:Z9(Y),properties:[{name:H,type:j.type,description:j.description,optional:!1}]};return l8(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,K8(q,Z)),{key:Y,typeName:Z9(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function o6(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 s6(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 o6(Y);if(Y.type==="Identifier"){if(Z>=5)return null;let H=l6(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let j=H;if((j.type==="CallExpression"||j.type==="NewExpression")&&o6(j)==="")return Y.name;return s6(q,j,Z+1)}return null}return null}function n6(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let H=Z,j=H.arguments[0];if(!j)return;let K=s6(q,j);if(!K){let B=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${B}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let X=H.arguments[1];if(!X)return;let W=R3(q,Q,X,K);if(W&&!q.contexts.has(K))q.contexts.set(K,W)}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:j,tags:K,source:X}){if(Q===void 0)return;let W=!Y&&!Z?"null":C8(Z),B=H,U=q.events.get(Q);if(U?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:B||U.description,deprecated:j??U.deprecated,tags:K??U.tags,source:X||U.source});else if(U){let $=U.tags??K;q.events.set(Q,{...U,detail:U.detail===void 0?W:U.detail,description:U.description||B,deprecated:U.deprecated??j,tags:$,source:X||U.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:B,deprecated:j,tags:K,source:X})}function a6(q,Q){let Z=Q.arguments[0],Y=a0(Z,"CustomEvent");if(!Y&&!a0(Z,"Event"))return;let H=Z.arguments[0],j=H1(H)?H.value:void 0;if(j==null)return;let K=Y?Z.arguments[1]:void 0,X=!1,W;if(t1(K)){let B=K.properties.find((U)=>U.type==="Property"&&_8(U.key)&&U.key.name==="detail");if(B?.type==="Property")X=!0,W=H1(B.value)?B.value.value:void 0}return I1(q,{name:String(j),detail:W==null?"":Y9(W),has_argument:X,source:K8(q,Q)}),String(j)}function H9(q,Q,Z=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:j,description:K,optional:X,default:W})=>{let B=X?"?":"",U=K||"";if(W&&U)U=`${U} @default ${W}`;else if(W)U=`@default ${W}`;if(U){if(Z)return`/** ${U} */
|
|
3
|
+
`,Z+1)}return q.sourceLineStartOffsetsCache=Q,Q}function _6(q,Q){if(!q.source||Q<0||Q>q.source.length)return;let Z=J3(q),Y=0,H=Z.length-1;while(Y<=H){let j=Math.floor((Y+H)/2),K=Z[j],X=Z[j+1]??Number.POSITIVE_INFINITY;if(Q<K)H=j-1;else if(Q>=X)Y=j+1;else return{line:j+1,column:Q-K}}return}function Q0(q,Q,Z){if(Q===void 0||Z===void 0||Z<Q)return;let Y=_6(q,Q),H=_6(q,Z);if(!Y||!H)return;return{start:Y,end:H}}function K8(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){if(!Q||Q.length===0)return;let Z=[...Q];while(Z.length>1){let W=Z[Z.length-1];if(W.tag!==void 0||!W.raw.trim().endsWith("*/"))break;Z.pop()}let Y=Z[0],H=Y.raw.indexOf(`@${Y.tag??""}`),j=Y.start+Math.max(H,0),K=Z[Z.length-1],X=K.start+K.raw.length;return Q0(q,j,X)}function e(q,Q,Z){return q.source?.slice(Q,Z)}function Z0(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 e(q,Z,Y)?.replace(e0," ")}function C8(q){return q===void 0||q===""?void 0:q}function L1(q,Q,Z,Y){if(C8(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 n8(q,Q,Z,Y=0){let H,j,K=!1;if(!Z||typeof Z!=="object"||!("type"in Z))return{value:H,type:j,isFunction:K};let X=u6(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")H=e(Q,W.start,W.end)?.replace(e0," ");if(j=H,K=Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression",Z.type==="BinaryExpression"){let B=Z;if(B.left&&typeof B.left==="object"&&"type"in B.left&&B.left.type==="Literal"&&"value"in B.left&&typeof B.left.value==="string")j="string"}if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")j=d6(Z),H=x6(Q,Z)}else if(Z.type==="UnaryExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);if(W.argument){if(typeof W.argument==="object"&&"type"in W.argument&&W.argument.type==="UnaryExpression")j=n8(q,Q,W.argument).type;else if(typeof W.argument==="object"&&"value"in W.argument)j=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")H=e(Q,W.start,W.end);if(W.callee&&typeof W.callee==="object"&&"type"in W.callee&&W.callee.type==="Identifier"){let B=W.callee.name;if(B==="Date")j="Date";else if(B==="Map")j="Map<any, any>";else if(B==="Set")j="Set<any>";else if(B==="WeakMap")j="WeakMap<object, any>";else if(B==="WeakSet")j="WeakSet<object>";else if(B==="Array")j="any[]";else if(B==="RegExp"||B==="Regexp")j="RegExp";else if(B==="Error")j="Error";else j=B}}else if(Z.type==="CallExpression"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);let B=W.callee,U=B&&typeof B==="object"&&"type"in B&&B.type==="Identifier"?B.name:void 0;if((U==="$derived"||U==="$state")&&W.arguments.length===1&&Y<5)return{...n8(q,Q,W.arguments[0],Y+1),value:H,defaultValue:X};if(U){let $=j3(q,Q,U);if($)return{value:H,type:void 0,isFunction:!1,defaultValue:X,resolvedType:$};if(Q.funcDecls.has(U)||V3(Q,U))return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U}};let w=Q.valueImportBindingsByLocalName.get(U);if(w)return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U,importSource:w.source,importedName:w.importedName}}}return{value:H,type:void 0,isFunction:!1,defaultValue:X,pendingCallDefault:{calleeName:U??K3(Q,B)}}}else if(Z.type==="Identifier"){let W=Z;if(Y<5){let B=m6(Q,W.name);if(B){let U=n8(q,Q,B,Y+1),$=q.resolveLocalVarJSDoc(W.name);return{...U,resolvedType:$?.type??U.resolvedType,resolvedDescription:$?.description??U.resolvedDescription,resolvedParams:$?.params??U.resolvedParams,resolvedReturnType:$?.returnType??U.resolvedReturnType}}if(Q.funcDecls.has(W.name)){let U=q.resolveLocalVarJSDoc(W.name),$=Q.funcDecls.get(W.name);return{value:$?x6(Q,$):void 0,type:void 0,isFunction:!0,defaultValue:$?u6(q,Q,$):void 0,resolvedType:U?.type??U3(U,$),resolvedDescription:U?.description,resolvedParams:U?.params,resolvedReturnType:U?.returnType}}}if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(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")H=e(Q,W.start,W.end);if(q.isNumericConstant(Z))j="number"}else if(Z.type==="TemplateLiteral"){let W=Z;if("start"in W&&"end"in W&&typeof W.start==="number"&&typeof W.end==="number")H=e(Q,W.start,W.end);j="string"}else if("raw"in Z&&typeof Z.raw==="string"){if(H=Z.raw,"value"in Z)j=Z.value==null?void 0:typeof Z.value}return{value:H,type:j,isFunction:K,defaultValue:X}}function m6(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 l6(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 K3(q,Q){if(Q&&typeof Q==="object"&&"start"in Q&&"end"in Q&&typeof Q.start==="number"&&typeof Q.end==="number")return e(q,Q.start,Q.end)??"call";return"call"}function j3(q,Q,Z){let Y=q.resolveLocalVarJSDoc(Z);if(Y?.returnType)return Y.returnType;let H=Q.funcDecls.get(Z)??c6(Q,Z);if(!H)return;let j=z3(Q,H);if(j)return j;let K=X3(Q,Z);if(K)return K;let X=i6(H);return X==="any"?void 0:X}function V3(q,Q){return c6(q,Q)!==void 0}function c6(q,Q){let Z=m6(q,Q);if(!Z||typeof Z!=="object"||!("type"in Z))return;if(Z.type==="ArrowFunctionExpression"||Z.type==="FunctionExpression")return Z;return}function X3(q,Q){for(let Z of q.vars)for(let Y of Z.declarations){let H=Y.id;if(!H||typeof H!=="object"||!("type"in H)||H.type!=="Identifier"||!("name"in H)||H.name!==Q)continue;let j=H.typeAnnotation;if(j?.type!=="TSTypeAnnotation")return;let K=j.typeAnnotation;if(!K||typeof K.start!=="number"||typeof K.end!=="number")return;return W3(e(q,K.start,K.end))}return}function W3(q){if(!q)return;let Q=q.lastIndexOf("=>");if(Q===-1)return;return q.slice(Q+2).trim()||void 0}function z3(q,Q){let Z=Q.returnType;if(Z?.type!=="TSTypeAnnotation")return;let Y=Z.typeAnnotation;if(!Y||typeof Y.start!=="number"||typeof Y.end!=="number")return;return e(q,Y.start,Y.end)}function U3(q,Q){let Z=q?.returnType??"any",Y=q?.params;if(Y&&Y.length>0)return`(${Y.map((j)=>`${j.name}${j.optional?"?":""}: ${j.type}`).join(", ")}) => ${Z}`;if(q?.returnType)return`() => ${Z}`;if(Q)return d6(Q);return"(...args: any[]) => any"}function d6(q){return`(${G3(q)}) => ${i6(q)}`}function G3(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 i6(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=O3(Q),Z.length===0)return"any"}else Z=[Q];let Y=null;for(let H of Z){let j=B3(H);if(!j)return"any";if(Y===null)Y=j;else if(Y!==j)return"any"}return Y??"any"}function O3(q){let Q=[];return E8(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 p6(q){if(x8(q,"$bindable"))return{init:q.arguments[0],bindable:!0};return{init:q,bindable:!1}}function F3(q,Q){let Z=Q.params;if(!Array.isArray(Z)||Z.length===0)return"";let Y=Z[0],H=Z[Z.length-1];if(typeof Y.start!=="number"||typeof H.end!=="number")return"";return e(q,Y.start,H.end)??""}function x6(q,Q){if(Q.generator)return;let Z=Q.body;if(!Z||typeof Z!=="object"||!("type"in Z))return;let Y=F3(q,Q),H=Q.async?"async ":"",j=(X,W)=>X&&typeof X==="object"&&("type"in X)&&X.type==="ObjectExpression"?`(${W})`:W;if(Z.type!=="BlockStatement"){let X=Z0(q,Z);return X===void 0?void 0:`${H}(${Y}) => ${j(Z,X)}`}let K=Z.body;if(K.length===0)return`${H}(${Y}) => {}`;if(K.length===1){let X=K[0];if(X&&typeof X==="object"&&"type"in X&&X.type==="ReturnStatement"){let W=X.argument;if(W){let B=Z0(q,W);if(B!==void 0)return`${H}(${Y}) => ${j(W,B)}`}}}return}function u6(q,Q,Z){let Y=Z0(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"||Z.type==="FunctionDeclaration")H="function";let j={raw:Y,kind:H};if(H==="literal"||H==="array"||H==="object"){let K=Q9(q,Z);if(K.ok)j.value=K.value}return j}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 j=Q9(q,H);if(!j.ok)return{ok:!1};Y.push(j.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 j=q.getPropertyName(H.key);if(!j)return{ok:!1};let K=Q9(q,H.value);if(!K.ok)return{ok:!1};Y[j]=K.value}return{ok:!0,value:Y}}return{ok:!1}}var R3=/[-_.:/\s]+/;function Z9(q){return`${q.split(R3).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(!t1(Z))return null;let j=Z;for(let K of j.properties){if(K.type!=="Property")continue;let X=Q.getPropertyName(K.key);if(!X)continue;let W="any",B;if(_8(K.value)){let U=K.value.name,$=Q.findVariableTypeAndDescription(U);if($)W=$.type,B=$.description;else l8(q,"context-any-type",X,`Context "${Y}" property "${X}" has no type annotation; defaulted to "any".`,K8(q,K))}else if(K.value&&typeof K.value==="object"&&"type"in K.value&&(K.value.type==="ArrowFunctionExpression"||K.value.type==="FunctionExpression"))W=`(${K.value.params?.map((w)=>{if(_8(w))return`${w.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(H1(K.value))W=K.value.value==null?"null":typeof K.value.value;H.push({name:X,type:W,description:B,optional:!1})}return{key:Y,typeName:Z9(Y),properties:H,description:void 0}}else if(_8(Z)){let H=Z.name,j=Q.findVariableTypeAndDescription(H);if(j)return{key:Y,typeName:Z9(Y),properties:[{name:H,type:j.type,description:j.description,optional:!1}]};return l8(q,"context-any-type",H,`Context "${Y}" variable "${H}" has no type annotation; defaulted to "any".`,K8(q,Z)),{key:Y,typeName:Z9(Y),properties:[{name:H,type:"any",description:void 0,optional:!1}]}}return null}function o6(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 s6(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 o6(Y);if(Y.type==="Identifier"){if(Z>=5)return null;let H=l6(q,Y.name);if(H&&typeof H==="object"&&"type"in H){let j=H;if((j.type==="CallExpression"||j.type==="NewExpression")&&o6(j)==="")return Y.name;return s6(q,j,Z+1)}return null}return null}function n6(q,Q,Z,Y){if(!Z||typeof Z!=="object"||!("type"in Z)||Z.type!=="CallExpression")return;let H=Z,j=H.arguments[0];if(!j)return;let K=s6(q,j);if(!K){let B=q.componentFilePath?` in ${q.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${B}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let X=H.arguments[1];if(!X)return;let W=$3(q,Q,X,K);if(W&&!q.contexts.has(K))q.contexts.set(K,W)}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:j,tags:K,source:X}){if(Q===void 0)return;let W=!Y&&!Z?"null":C8(Z),B=H,U=q.events.get(Q);if(U?.type==="forwarded")q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:B||U.description,deprecated:j??U.deprecated,tags:K??U.tags,source:X||U.source});else if(U){let $=U.tags??K;q.events.set(Q,{...U,detail:U.detail===void 0?W:U.detail,description:U.description||B,deprecated:U.deprecated??j,tags:$,source:X||U.source})}else q.events.set(Q,{type:"dispatched",name:Q,detail:W,description:B,deprecated:j,tags:K,source:X})}function a6(q,Q){let Z=Q.arguments[0],Y=a0(Z,"CustomEvent");if(!Y&&!a0(Z,"Event"))return;let H=Z.arguments[0],j=H1(H)?H.value:void 0;if(j==null)return;let K=Y?Z.arguments[1]:void 0,X=!1,W;if(t1(K)){let B=K.properties.find((U)=>U.type==="Property"&&_8(U.key)&&U.key.name==="detail");if(B?.type==="Property")X=!0,W=H1(B.value)?B.value.value:void 0}return I1(q,{name:String(j),detail:W==null?"":Y9(W),has_argument:X,source:K8(q,Q)}),String(j)}function H9(q,Q,Z=!1){if(q.length===0)return"null";let Y=q.map(({name:H,type:j,description:K,optional:X,default:W})=>{let B=X?"?":"",U=K||"";if(W&&U)U=`${U} @default ${W}`;else if(W)U=`@default ${W}`;if(U){if(Z)return`/** ${U} */
|
|
4
4
|
${H}${B}: ${j};`;return`/** ${U} */ ${H}${B}: ${j};`}return`${H}${B}: ${j};`}).join(Z?`
|
|
5
5
|
`:" ");return Z?`{
|
|
6
6
|
${Y}
|
|
7
|
-
}`:`{ ${Y} }`}var
|
|
8
|
-
`);let j=H.named.map(({imported:W,local:B})=>{if(!W||W===B)return B;return`${W} as ${B}`}),K=H.default[0],X=j.length>0?`{ ${j.join(", ")} }`:"";if(K&&X)return`import type ${K}, ${X} from "${Y}";`;if(K)return`import type ${K} from "${Y}";`;return`import type ${X} from "${Y}";`})}function Q7(q){let Q=q.pendingCallDefaultCandidates.length>0?q.pendingCallDefaultCandidates.slice():void 0;if(q.typedRunesPropsDeclarations.length!==1)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let[Z]=q.typedRunesPropsDeclarations;if(!Z.canonicalType)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let Y=Array.from(Z.referencedLocalTypes).map((H)=>q.localTypeDeclarationsByName.get(H)).filter((H)=>H!==void 0).sort((H,j)=>H.start-j.start).map((H)=>H.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:Y,typeImportStatements:
|
|
9
|
-
`)}function
|
|
10
|
-
`).slice(1,-1),endIndex:K}}function
|
|
11
|
-
`);Q.content=H,Q.tag=Y;let W=
|
|
7
|
+
}`:`{ ${Y} }`}var M3=/[A-Za-z_$][\w$]*/g;function w3(q,Q){if(!Q)return!1;let Z=new Set(Q[0].split(",").map((Y)=>Y.trim()));for(let[Y]of q.matchAll(M3))if(Z.has(Y))return!0;return!1}function J9(q,Q){if(Q===void 0)return;return q.runesPropsDeclarationMetadataByDeclaratorStart.get(Q)}function r6(q,Q,Z){return J9(q,Q)?.props.get(Z)}function t6(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 e6(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 e6(q.left);return}function Y0(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return e(q,Z+1,Y)?.trim()}function q7(q,Q){let Z=Q?.start,Y=Q?.end;if(Z===void 0||Y===void 0)return;return e(q,Z,Y)?.trim()}function L8(q,Q,Z,Y,H=new Set){if(!Q?.type)return;switch(Q.type){case"TSInterfaceDeclaration":L8(q,{type:"TSTypeLiteral",members:Q.body?.body},Z,Y,H);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":L8(q,Q.typeAnnotation,Z,Y,H);return;case"TSIntersectionType":case"TSUnionType":for(let j of Q.types??[])L8(q,j,Z,Y,H);return;case"TSTypeLiteral":for(let j of Q.members??[]){if(j?.type!=="TSPropertySignature")continue;L8(q,j.typeAnnotation?.typeAnnotation,Z,Y,H)}return;case"TSTypeReference":{let j=e6(Q.typeName);if(j){if(q.typeImportBindingsByLocalName.has(j))Z.add(j);let K=q.localTypeDeclarationsByName.get(j);if(K&&!H.has(j))Y.add(j),H.add(j),L8(q,K.node,Z,Y,H),H.delete(j)}if("typeParameters"in Q&&Q.typeParameters&&typeof Q.typeParameters==="object"){let K=Q.typeParameters;for(let X of K.params??[])L8(q,X,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 j of Object.values(Q)){if(!j||typeof j!=="object")continue;if(Array.isArray(j)){for(let K of j){if(!K||typeof K!=="object"||!("type"in K))continue;L8(q,K,Z,Y,H)}continue}if("type"in j)L8(q,j,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 j=Z.get(H.source)??{default:[],named:[],namespace:[]};if(H.specifierType==="default")j.default.push(H.localName);else if(H.specifierType==="namespace")j.namespace.push(H.localName);else j.named.push({imported:H.importedName,local:H.localName});Z.set(H.source,j)}return Array.from(Z.entries()).sort(([Y],[H])=>Y.localeCompare(H)).map(([Y,H])=>{if(H.namespace.length>0)return H.namespace.map((W)=>`import type * as ${W} from "${Y}";`).join(`
|
|
8
|
+
`);let j=H.named.map(({imported:W,local:B})=>{if(!W||W===B)return B;return`${W} as ${B}`}),K=H.default[0],X=j.length>0?`{ ${j.join(", ")} }`:"";if(K&&X)return`import type ${K}, ${X} from "${Y}";`;if(K)return`import type ${K} from "${Y}";`;return`import type ${X} from "${Y}";`})}function Q7(q){let Q=q.pendingCallDefaultCandidates.length>0?q.pendingCallDefaultCandidates.slice():void 0;if(q.typedRunesPropsDeclarations.length!==1)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let[Z]=q.typedRunesPropsDeclarations;if(!Z.canonicalType)return Q?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],pendingCallDefaultCandidates:Q}:void 0;let Y=Array.from(Z.referencedLocalTypes).map((H)=>q.localTypeDeclarationsByName.get(H)).filter((H)=>H!==void 0).sort((H,j)=>H.start-j.start).map((H)=>H.code);return{canonicalPropsType:Z.canonicalType,canonicalPropNames:Array.from(Z.props.keys()).sort(),localTypeDeclarations:Y,typeImportStatements:A3(q,Z.referencedImportedTypes),referencesComponentGenerics:w3(Z.canonicalType,q.generics),...Q?{pendingCallDefaultCandidates:Q}:{}}}var C3=/^[A-Za-z_$][\w$]*/,L3=/[A-Za-z_$][\w$]*/g,Z7=/^(?:const|in|out)\s+/;function S1(q){let Q=[],Z=0,Y=0;for(let H=0;H<q.length;H++){let j=q[H];if(j==="<"||j==="("||j==="["||j==="{")Z++;else if(j===">"||j===")"||j==="]"||j==="}")Z=Math.max(Z-1,0);else if(j===","&&Z===0)Q.push(q.slice(Y,H)),Y=H+1}return Q.push(q.slice(Y)),Q}function Y7(q){let Q=S1(q).map((Y)=>Y.trim()).filter((Y)=>Y.length>0);if(Q.length===0)return null;return[Q.map((Y)=>{let H=Y;while(Z7.test(H))H=H.replace(Z7,"");return H.match(C3)?.[0]??Y}).join(", "),Q.join(", ")]}function H7(q,Q,Z){let Y=q.scriptGenericsAttribute?.value;if(!Y)return;for(let[H]of Y.matchAll(L3)){if(q.typeImportBindingsByLocalName.has(H))Q.add(H);if(Z.has(H))continue;let j=q.localTypeDeclarationsByName.get(H);if(!j)continue;Z.add(H),L8(q,j.node,Q,Z)}}var I3=/\n/,S3=/\r$/,G1=/^\s+/,P3=/\s/,D3=/^@[^\s/]+(?=\s|$)/,k3=/^@(\S+)\s*/;function N3(q){let Q=[],Z=0;for(let Y of q.split(I3))Q.push({text:Y.replace(S3,""),start:Z}),Z+=Y.length+1;return Q}function b3(q,Q){let Z=q.replace(G1,""),Y=!1;if(Q)Z=Z.slice(3),Y=!0;else if(Z.startsWith("*")&&!Z.startsWith("*/"))Z=Z.slice(1),Y=!0;let H=Z.match(G1)?.[0]??"";Z=Z.slice(H.length);let j=Z.trimEnd(),K=j.endsWith("*/")?j.slice(0,-2):Z;return{indent:Y?H.slice(1):H,separator:H,content:K}}function T3(q){let Q=[],Z=N3(q),Y=null,H=0;for(let j of Z){if(Y===null){let B=j.text.replace(G1,"");if(!B.startsWith("/**")||B.startsWith("/***"))continue;Y=[],H=j.start+(j.text.length-B.length)}let{indent:K,separator:X,content:W}=b3(j.text,Y.length===0);if(Y.push({raw:j.text,start:j.start,number:Y.length,indent:K,separator:X,content:W}),j.text.trimEnd().endsWith("*/"))Q.push({start:H,lines:Y}),Y=null}return Q}function E3(q){let Q=q;if(Q.length>0&&Q[0].content==="")Q=Q.slice(1);if(Q.length>0&&Q[Q.length-1].content==="")Q=Q.slice(0,-1);return Q}function v3(q){let Q=[[]],Z=!1;for(let Y of q){if(D3.test(Y.content)&&!Z)Q.push([Y]);else Q[Q.length-1].push(Y);if(Y.content.split("```").length%2===0)Z=!Z}return Q}function J7(q){return q.map((Q)=>Q.indent+Q.content).join(`
|
|
9
|
+
`)}function h3(q,Q){let Z=Q;while(Z<q.length-1&&q[Z].content.trim()==="")Z++;if(q[Z].content[0]!=="{")return null;let Y=0,H=[],j=Z;for(;j<q.length;j++){let W=q[j].content,B=0;for(let U of W){if(U==="{")Y++;else if(U==="}")Y--;if(B++,Y===0)break}if(H.push(B),Y===0)break}if(Y!==0)return null;let K=j;return{type:H.map((W,B)=>{let U=Z+B,$=q[U].content.slice(0,W);return q[U].content=q[U].content.slice(W).replace(G1,""),B===0?$:q[U].indent+$}).join(`
|
|
10
|
+
`).slice(1,-1),endIndex:K}}function y3(q){let Q=q.content.match(G1)?.[0]??"",Z=q.content.slice(Q.length),Y=0,H=0;for(let B of Z){if(Y===0&&P3.test(B))break;if(B==="[")Y++;if(B==="]")Y--;H++}let j=Y===0?Z.slice(0,H):"";if(!j)return null;let K=j,X=!1,W;if(j.startsWith("[")&&j.endsWith("]")){X=!0;let U=j.slice(1,-1).split("=");if(K=U[0].trim(),U.length>1)W=U.slice(1).join("=").trim();if(!K)return null}if(K.length>1&&(K[0]==='"'||K[0]==="'")&&K[K.length-1]===K[0])K=K.slice(1,-1);return q.content=Z.slice(H).replace(G1,""),{name:K,optional:X,default:W}}function f3(q){let Q=q[0],Z=Q.content.match(k3),Y=Z?Z[1]:"",H=Z?Q.content.slice(Z[0].length):Q.content,j=H.trimEnd(),K=q.slice(1).map((R)=>R.separator+R.content),X=(j?[j,...K]:K).join(`
|
|
11
|
+
`);Q.content=H,Q.tag=Y;let W=h3(q,0),B=W?.type??"",U=0;if(W){U=W.endIndex;while(U<q.length-1&&q[U].content.trim()==="")U++}let $=y3(q[U]),w=J7(q.slice(W?W.endIndex:0));return{tag:Y,name:$?.name??"",type:B,optional:$?.optional??!1,default:$?.default,description:w,raw:X,lines:q}}function g3(q,Q){let Z=E3(q);Z.forEach((j,K)=>{j.number=K});let Y=v3(Z),H=Y.slice(1).map(f3);return{description:J7(Y[0]),tags:H,start:Q,lines:Z}}function P1(q){return T3(q).map(({start:Q,lines:Z})=>g3(Z,Q))}var _3=null;function x3(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=q0(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=e(q,Z.start,Z.end);return Y}function K7(q,Q,Z){let Y={};for(let H of Z.properties){if(H.type!=="Property"||H.computed)continue;let j=Q.getPropertyName(H.key);if(!j)continue;Y[j]=x3(q,Q,H.value)}return Y}function u3(q,Q){if(!Q||typeof Q!=="object"||!("type"in Q))return null;if(Q.type==="Identifier"){let j=Q,K=q.propLocalToPublicName.get(j.name);if(!K)return null;return{publicName:K,trackingName:j.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 j7(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=u3(q,Y.callee);if(!H)return null;return{...H,arguments:Y.arguments}}function D1(q,{slot_name:Q,slot_props:Z,slot_fallback:Y,slot_description:H,slot_deprecated:j,slot_tags:K,source:X}){let W=Q===void 0||Q==="",B=W?_3:Q??"",U=C8(Y),$=Z===void 0||Z===""?void 0:Z,w=H?.trim()||void 0;if(q.slots.has(B)){let R=q.slots.get(B);if(R)q.slots.set(B,{...R,default:R.default??W,fallback:U,slot_props:R.slot_props===void 0?$:R.slot_props,description:R.description||w,deprecated:R.deprecated??j,tags:R.tags||K,source:X||R.source})}else q.slots.set(B,{name:B,default:W,fallback:U,slot_props:Z,description:w,deprecated:j,tags:K,source:X})}var m3=/\s*=\s*/;function V7(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=S1(Y).map((j)=>j.trim().replace(m3," = ")).join(", ");return`${Z}<${H}>`}var K9=/^\s*$/,l3=/;$/,c3=/^-\s*/;function J1(q){if(q===void 0)return;let Q=q.replace(c3,"").trim();return Q===""?"":Q}function k1(q){if(!q||q.length===0)return;return q[0].content}var X7=new Set(["since","example"]);function d3(q){let Q=q.trim();return Q===""?!0:Q}function W7(q,Q){return d3(`${q??""}${Q?` ${Q}`:""}`)}function i3(q){let Q=q.trim().replace(l3,"").trimEnd();if(!Q.startsWith("{")||!Q.endsWith("}"))return!1;let Z=0,Y=null;for(let H=0;H<Q.length;H++){let j=Q[H];if(Y!==null){if(j==="\\"){H++;continue}if(j===Y)Y=null;continue}if(j==='"'||j==="'"||j==="`"){Y=j;continue}if(j==="{"||j==="["||j==="(")Z++;else if(j==="}"||j==="]"||j===")"){if(Z--,Z===0&&H<Q.length-1)return!1}}return Z===0}function p3(q){let Q=q;if(!Q.startsWith("/*"))Q=`/*${Q}`;if(!Q.endsWith("*/"))Q+="*/";return Q}function j9(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=[],j,K,X,W=[],B=[];for(let U of Q)if(U.tag==="type")Y=U;else if(U.tag==="param")H.push(U);else if(U.tag==="returns"||U.tag==="return")j=U;else if(U.tag==="deprecated")X??=W7(U.name,U.description);else if(X7.has(U.tag))B.push(U);else if(U.tag==="bindable"){if(U.type)continue;let $=`${U.name}${U.description?` ${U.description}`:""}`.trim();if($==="readonly"||$==="writable")K??=$}else if(!Z.has(U.tag))W.push(U);return{type:Y,param:H,returns:j,binding:K,deprecated:X,additional:W,passthrough:B,description:q[0]?.description}}function o3(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 s3(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 j=q.source.slice(H.end,Z);if(K9.test(j))return H}return}function a8(q,Q,Z){if(!Z?.leadingComments)return;let Y=s3(q,Z.leadingComments,Z.start);if(!Y)return;return n3(Q,[Y])}function z7(q,Q,Z){if(!Z?.leadingComments)return;return a8(q,Q,Z)}function n3(q,Q){if(!Q)return;let Z=o3(Q);if(!Z)return;let Y=P1(p3(Z.value)),{type:H,param:j,returns:K,binding:X,deprecated:W,additional:B,passthrough:U,description:$}=j9(Y),w,R,I,D;if(H)w=q.aliasType(H.type);if(j.length>0)R=j.filter((x)=>!x.name.includes(".")).map((x)=>({name:x.name,type:q.aliasType(x.type),description:J1(x.description),optional:x.optional||!1}));if(K)I=q.aliasType(K.type);let L=C8($?.trim());if(L||B.length>0){let x=[];if(L)x.push(L);for(let h of B){let n=`@${h.tag}${h.name?` ${h.name}`:""}${h.description?` ${h.description}`:""}`;x.push(n)}D=x.join(`
|
|
12
12
|
`)}let b=U.length>0?U.map((x)=>({name:x.tag,body:x.raw})):void 0;return{type:w,params:R,returnType:I,description:D,binding:X,deprecated:W,tags:b}}function U7(q,Q,Z=q.source){if(!Z)return;for(let{tags:Y,description:H,lines:j}of P1(Z)){let K,X,W,B,U,$,w=[],R=[],I,D,L,b=[],x,h,n=[],g,t=!1,a=!0,J=[],V,z=new Map,O=new Set,F=new Set;for(let k of Y)if(k.lines.length>0)O.add(k.lines[0].number);for(let k of j)if(!k.tag&&k.content&&k.content.trim()!=="}")z.set(k.number,k.content);let M=(k)=>{if(!k||k.length===0)return;let y=k[0].number,u=[],l=[],s=!1;for(let _=y-1;_>=0;_--){if(O.has(_))break;let p=z.get(_);if(p)u.unshift(p),l.unshift(_),s=!0;else if(s){let c=j[_];if(!(!c||!c.tag&&(!c.content||c.content.trim()==="")))break}}if(u.length===0)return;for(let _ of l)F.add(_);return u.join(`
|
|
13
13
|
`).trim()},A=()=>{if(K!==void 0){let k=X&&X!=="object"&&X!=="Object"?X:void 0,y;if(k)y=k;else if(R.length>0)y=H9(R,K,!0);else y=X||"";if($!==void 0){let u;for(let _ of Y){let p=_.lines[0]?.number;if(typeof p!=="number")continue;if(p<=$)continue;if(_.tag==="property"||_.tag==="type")continue;u=p;break}let l=[],s=Array.from(z.keys()).sort((_,p)=>_-p);for(let _ of s){if(_<=$)continue;if(u!==void 0&&_>=u)continue;if(F.has(_))continue;let c=z.get(_)?.trim();if(c)l.push(c),F.add(_)}if(l.length>0){let _=l.join(`
|
|
14
14
|
`);W=W?`${W}
|
|
15
|
-
${_}`:_}}I1(q,{name:K,detail:y,has_argument:!1,description:W,deprecated:B,tags:w.length>0?w:void 0,source:U}),q.eventDescriptions.set(K,W),q.jsDocEventNames.add(K),q.jsDocEventSources.set(K,U),R.length=0,K=void 0,X=void 0,W=void 0,B=void 0,U=void 0,$=void 0,w=[]}},P=()=>{if(I!==void 0){let k,y;if(b.length>0)k=H9(b,void 0,!0),y=`type ${I} = ${k};`;else if(D)k=D,y=d3(k)?`interface ${I} ${k}`:`type ${I} = ${k};`;else k="{}",y=`type ${I} = ${k};`;q.typedefs.set(I,{type:k,name:I,description:C8(L),ts:y}),b.length=0,I=void 0,D=void 0,L=void 0}},S=()=>{if(x!==void 0){let u=`(${n.map(({name:s,type:_,optional:p})=>{return`${s}${p?"?":""}: ${_}`}).join(", ")}) => ${g||"void"}`,l=`type ${x} = ${u};`;q.typedefs.set(x,{type:u,name:x,description:C8(h),ts:l}),n.length=0,g=void 0,x=void 0,h=void 0}},C=Y.some((k)=>k.tag==="slot"||k.tag==="snippet"),N=Y.some((k)=>k.tag==="extends"||k.tag==="extendProps");for(let{tag:k,type:y,name:u,description:l,optional:s,default:_,raw:p,lines:c}of Y){let J8=Q.aliasType(y),w8=M(c);switch(k){case"extends":case"extendProps":if(q.extends={interface:u,import:J8},a)a=!1;break;case"restProps":{let Q8=u?l?`${u} ${l}`:u:l,Y8=J1(Q8)||w8;if(!Y8&&a&&!t&&H)Y8=H,t=!0;if(q.rest_props={type:"Element",name:J8,description:Y8||void 0},a)a=!1;break}case"slot":case"snippet":{let A8=J1(k1(c));if(!A8&&a&&!t&&H)A8=H,t=!0;if(!A8&&J.length===0)A8=w8;if(a)a=!1;D1(q,{slot_name:u,slot_props:J8,slot_description:A8||void 0,slot_deprecated:V,slot_tags:J.length>0?[...J]:void 0,source:q9(q,c)}),J.length=0,V=void 0;break}case"event":{if(A(),K=u,X=J8,$=c.length>0?c[0].number:void 0,W=J1(k1(c))||w8,!W&&a&&!t&&H)W=H,t=!0;if(U=q9(q,c),a)a=!1;break}case"type":if(K!==void 0)X=J8;break;case"param":if(x!==void 0)n.push({name:u,type:J8,optional:s||!1});break;case"returns":case"return":if(x!==void 0)g=J8;break;case"property":{let Q8={name:u,type:J8,description:J1(k1(c)),optional:s||!1,default:_};if(K!==void 0)R.push(Q8);else if(I!==void 0)b.push(Q8);break}case"typedef":{if(P(),I=V7(u),D=J8,L=J1(k1(c))||w8,!L&&a&&!t&&H)L=H,t=!0;if(a)a=!1;break}case"callback":{if(S(),x=V7(u),h=J1(k1(c))||w8,!h&&a&&!t&&H)h=H,t=!0;if(a)a=!1;break}case"generics":if(q.generics=[u,J8],a)a=!1;break;case"template":{let Q8=u;if(J8)Q8=`${u} extends ${J8}`;if(_)Q8+=` = ${_}`;if(C&&!N){q.deferredSlotBlockGenerics.push({name:u,constraint:Q8});break}if(Q.accumulateGeneric(u,Q8),a)a=!1;break}case"deprecated":{let Q8=W7(u,l);if(K===void 0)V??=Q8;else B??=Q8;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let Q8={name:k,body:p};if(K!==void 0&&X7.has(k))w.push(Q8);else J.push(Q8)}break}}A(),P(),S()}}function n3({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((X)=>`${X.name}${X.optional?"?":""}: ${X.type}`).join(", ")}) => ${Y}`:`() => ${Y}`;let H=q.jsdocDescription??q.resolvedDescription;if(H===void 0&&Q!==void 0)H=q.typedefs?.get(Q)?.description;let j=n3({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:j,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 G7(q,Q){if(q.rest_props!==void 0)return;let Z=a3(Q);if(Z)q.rest_props=Z}function G8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function H0(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 j8(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":j8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)j8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")j8(Z.value,Q);else if(Z.type==="RestElement")j8(Z.argument,Q);break;case"RestElement":j8(q.argument,Q);break}return Q}function X9(q,Q){let Z=j8(Q);if(!Z)return;for(let Y of Z){let H=H0(q,Y);if(H)q.reactive_vars.add(H)}}function J0(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 O7(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 j=q.getPropertyName(H.key);if(!j)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:j})}return Y}function V9(q,Q,Z,Y,H){if(!v6(Q))return;let j=H?.allowRunesProps??!1,K=H?.forceProp??!1,X=Q;for(let W of X.declarations){if(j&&x8(s8(W.init),"$props")){for(let $ of t3(q,X,W))G8($.kind==="prop"?Z:Y,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let B=X.kind==="var"?Y:Z,U=K?"prop":"local";for(let $ of j8(W.id))G8(B,$,U==="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")G8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let Y of j8(Z))G8(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":V9(q,H,Z,Y);break;case"FunctionDeclaration":if(H.id?.name)G8(Z,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)G8(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 j of H.specifiers??[])if(j.local?.name)G8(Q.componentScope,j.local.name,{kind:"local"});break;case"VariableDeclaration":V9(q,H,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)G8(Q.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)G8(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")V9(q,H.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)G8(Q.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function B7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Qq(q,Q,Q.parsed?.instance)}function F7(q){return{varScopeStack:[q.componentScope]}}function R7(q,Q,Z,Y){if(!J0(Y))return;let H=r3(Q,Y),j=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,j);break;case"CatchClause":if("param"in Y)for(let X of j8(Y.param))G8(H,X,{kind:"local"});break;case"EachBlock":{let X=Y;for(let W of j8(X.context))G8(H,W,{kind:"local"});if(typeof X.index==="string")G8(H,X.index,{kind:"local"});else if(X.index&&"name"in X.index)G8(H,X.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let X of j8(Y.value))G8(H,X,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let X of j8(Y.error))G8(H,X,{kind:"local"});break}if(O7(Y))Z.varScopeStack.push(H)}function $7(q,Q){if(O7(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??[])j8(Y,Q);break}case"BlockStatement":K0(q.body,Q);break;case"CatchClause":j8(q.param,Q);break;case"EachBlock":{let Z=q;if(j8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":j8(q.value,Q);break;case"CatchBlock":j8(q.error,Q);break}return Q}function K0(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??[])j8(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)K0([Y],Q);break}}}}function W9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],Y=!1;return E8(q,{enter(H,j){if(Y){this.skip();return}if(J0(H))Z.push(Jq(H));if(j&&H.type==="Identifier"&&Zq.has(H.name)&&!j.type.startsWith("TS")&&Yq(H,j)&&!Hq(H.name,Z))Y=!0,this.skip()},leave(H){if(J0(H))Z.pop()}}),Y}function M7(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 w7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;K0(M7(Q.module),Z);let Y=new Set;return K0(M7(Q.instance),Y),W9(Q.module,[Z])||W9(Q.instance,[Z,Y])||W9(Q.html,[Z,Y])?"runes":"legacy"}var Kq=/[A-Za-z_$][\w$]*/g;function jq(q,Q,Z){let Y=new Map,H=Q.typeParameters?.params,j=Z.typeArguments?.params;if(!H?.length||!j?.length)return Y;for(let K=0;K<H.length;K++){let X=H[K]?.name,W=j[K];if(!X||W?.start===void 0||W?.end===void 0)continue;let B=e(q,W.start,W.end)?.trim();if(B)Y.set(X,B)}return Y}function Vq(q,Q){if(Q.size===0)return q;return q.replace(Kq,(Z)=>Q.get(Z)??Z)}function b1(q,Q,Z,Y,H=new Set){let j=new Map;if(!Z?.type)return j;let K=(X)=>{for(let W of X){if(W?.type!=="TSPropertySignature"||W.computed)continue;if(!W.key)continue;let B=q.getPropertyName(W.key);if(!B)continue;let U=W.typeAnnotation?.start,$=W.typeAnnotation?.end;if(U===void 0||$===void 0)continue;let w=e(Q,U+1,$)?.trim();if(!w)continue;j.set(B,{type:w,optional:W.optional===!0,source:K8(Q,W)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let X=b1(q,Q,Z.typeAnnotation,Y,H);for(let[W,B]of X)j.set(W,B);break}case"TSTypeReference":{let X=t6(Z.typeName);if(!X||H.has(X))break;let W=Y.get(X);if(!W)break;H.add(X);let B=b1(q,Q,W,Y,H);H.delete(X);let U=jq(Q,W,Z);for(let[$,w]of B)j.set($,U.size===0?w:{...w,type:Vq(w.type,U)});break}case"TSIntersectionType":for(let X of Z.types??[]){let W=b1(q,Q,X,Y,H);for(let[B,U]of W)j.set(B,U)}break;case"TSParenthesizedType":{let X=b1(q,Q,Z.typeAnnotation,Y,H);for(let[W,B]of X)j.set(W,B);break}}return j}function A7(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 j of H){if(!j?.type)continue;if(j.type==="ImportDeclaration"&&j.source?.value)for(let K of j.specifiers??[]){let X=K.local?.name;if(!X)continue;if(!(j.importKind==="type"||K.importKind==="type"))continue;let B,U;if(K.type==="ImportSpecifier")B="named",U=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")B="default";else if(K.type==="ImportNamespaceSpecifier")B="namespace";if(!B)continue;Q.typeImportBindingsByLocalName.set(X,{importedName:U,localName:X,source:String(j.source.value),specifierType:B})}if((j.type==="TSInterfaceDeclaration"||j.type==="TSTypeAliasDeclaration")&&j.id?.name&&j.start!==void 0&&j.end!==void 0)Q.localTypeDeclarationsByName.set(j.id.name,{code:e(Q,j.start,j.end)?.trim()??"",node:j,start:j.start});if(j.type==="ExportNamedDeclaration"&&j.declaration?.type==="VariableDeclaration")for(let K of j.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let X=Y0(Q,K.id.typeAnnotation);if(X)Q.explicitPropTypesByName.set(K.id.name,X)}else if(j.type==="VariableDeclaration")for(let K of j.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let X=Y0(Q,K.id.typeAnnotation);if(X)Q.explicitVariableTypesByName.set(K.id.name,X)}}for(let j of H){if(!j||typeof j!=="object"||!("declarations"in j))continue;for(let K of j.declarations??[]){if(!x8(s8(K.init),"$props"))continue;let X=K.id?.typeAnnotation?void 0:y6(K.init),W=K.id?.typeAnnotation?.typeAnnotation??X,B=K.id?.typeAnnotation?Y0(Q,K.id.typeAnnotation):q7(Q,X),U=b1(q,Q,W,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([R,I])=>[R,I.node]))),$=new Set,w=new Set;if(L8(Q,W,$,w),H7(Q,$,w),K.start!==void 0){let R={canonicalType:B,props:U,referencedImportedTypes:$,referencedLocalTypes:w};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,R),B)Q.typedRunesPropsDeclarations.push(R)}}}}function C7(q,Q,Z){for(let Y of Z.declarations){if(!x8(s8(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[X,W]of K.props)L1(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(Y.id.type!=="ObjectPattern")continue;let H=a8(Q,q,Z),j=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 X=q.getPropertyName(K.key);if(!X)continue;let W,B;if(K.value.type==="Identifier")W=K.value.name;else{let z=K.value;W=z.left.name,B=z.right}if(!W)continue;if(q.trackPropLocalName(X,W),X==="children")Q.snippetPropLocals.add(W);let U=z7(Q,q,K)??(j===1?H:void 0),$=r6(Q,Y.start,X),{init:w,bindable:R}=p6(B),I=w==null?{isFunction:!1}:n8(q,Q,w),{value:D,type:L,isFunction:b,defaultValue:x}=I,h=$?.type===void 0&&U?.type===void 0?I.resolvedType:void 0;if(I.pendingCallDefault)Q.pendingCallDefaultCandidates.push({propName:X,location:"props",...I.pendingCallDefault});let{type:n,typeSource:g,description:t,params:a,returnType:J,isFunction:V}=N1({explicitType:$?.type,typeSeed:L,inferredTypeForSource:L,jsdocType:U?.type,jsdocDescription:U?.description,jsdocParams:U?.params,jsdocReturnType:U?.returnType,resolvedType:h,resolvedDescription:I.resolvedDescription,resolvedParams:I.resolvedParams,resolvedReturnType:I.resolvedReturnType,initializerIsFunction:b,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(R)Q.reactive_vars.add(X);L1(q,Q,X,{name:X,...W===X?{}:{localName:W},kind:"let",description:t,binding:U?.binding,deprecated:U?.deprecated,tags:U?.tags,...R?{bindable:!0}:{},type:n,typeSource:g,value:D,defaultValue:x,params:a,returnType:J,isFunction:V,isFunctionDeclaration:!1,isRequired:w==null&&$?.optional!==!0,constant:!1,reactive:R,source:K8(Q,K)})}}}function L7(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}`,j=q.props.get(H);if(!j)continue;let K=j.type!==void 0||j.params!==void 0||j.returnType!==void 0,X=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...j,description:j.description??Y.description,type:K?j.type:X,typeSource:K?j.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var I7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function j0(q){if(!q||typeof q!=="object")return;E8(q,{enter(Q){if(!I7.has(Q.type))return;let Z=Q.expression;while(Z&&I7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}function V0(q,Q){let Z=Q.source?.value;if(typeof Z!=="string"||Q.importKind==="type")return;for(let Y of Q.specifiers??[]){if(Y.type!=="ImportSpecifier"||Y.importKind==="type")continue;let H=Y.local?.name;if(!H)continue;let j=Y.imported?.name??(typeof Y.imported?.value==="string"?Y.imported.value:H);q.valueImportBindingsByLocalName.set(H,{localName:H,importedName:j,source:Z})}}function z9(q,Q){if(!Q)return;E8(Q,{enter(Z){if(Z.type==="ImportDeclaration")V0(q,Z);if(Z.type==="FunctionDeclaration"){let Y=Z;if(Y.id?.name)q.funcDecls.set(Y.id.name,Y)}}})}function P7(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 D7(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=P7(q,Z,H);continue}else if(H==="`"){Z=D7(q,Z);continue}Z++}return Z}function Xq(q,Q){let Z=[],Y=q.length,H=0;while(H<Y){let j=q[H];if(j==='"'||j==="'"){H=P7(q,H,j);continue}if(j==="`"){H=D7(q,H);continue}if(j==="/"&&q[H+1]==="/"){let K=H+2;while(K<Y&&q[K]!==`
|
|
16
|
-
`)K++;H=K;continue}if(j==="/"&&q[H+1]==="*"){let K=H,X=H+2;while(X<Y&&!(q[X]==="*"&&q[X+1]==="/"))X++;let W=Math.min(X+2,Y),B=q.slice(K,W);Z.push({end:W+Q,isJsDoc:B.startsWith("/**")&&B.length>4,text:B}),H=W;continue}H++}return Z}function S7(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
|
|
17
|
-
`).map((W,B)=>{let U=H+W.length+1,$={start:H,end:U,line:B};return H=U,$}),K=0;function X(W,B){if(typeof W==="string")W=q.indexOf(W,B??0);if(W===-1)return;let U=j[K],$=W>=U.end?1:-1;while(U){if(
|
|
18
|
-
`);let Q=_7(W0,{offsetLine:1});W8=(Z)=>{let Y=Q(Z);if(!Y)throw Error("An impossible situation occurred");return Y}}var $9,M9=[],l7=new Map;function c7(q){
|
|
15
|
+
${_}`:_}}I1(q,{name:K,detail:y,has_argument:!1,description:W,deprecated:B,tags:w.length>0?w:void 0,source:U}),q.eventDescriptions.set(K,W),q.jsDocEventNames.add(K),q.jsDocEventSources.set(K,U),R.length=0,K=void 0,X=void 0,W=void 0,B=void 0,U=void 0,$=void 0,w=[]}},P=()=>{if(I!==void 0){let k,y;if(b.length>0)k=H9(b,void 0,!0),y=`type ${I} = ${k};`;else if(D)k=D,y=i3(k)?`interface ${I} ${k}`:`type ${I} = ${k};`;else k="{}",y=`type ${I} = ${k};`;q.typedefs.set(I,{type:k,name:I,description:C8(L),ts:y}),b.length=0,I=void 0,D=void 0,L=void 0}},S=()=>{if(x!==void 0){let u=`(${n.map(({name:s,type:_,optional:p})=>{return`${s}${p?"?":""}: ${_}`}).join(", ")}) => ${g||"void"}`,l=`type ${x} = ${u};`;q.typedefs.set(x,{type:u,name:x,description:C8(h),ts:l}),n.length=0,g=void 0,x=void 0,h=void 0}},C=Y.some((k)=>k.tag==="slot"||k.tag==="snippet"),N=Y.some((k)=>k.tag==="extends"||k.tag==="extendProps");for(let{tag:k,type:y,name:u,description:l,optional:s,default:_,raw:p,lines:c}of Y){let J8=Q.aliasType(y),w8=M(c);switch(k){case"extends":case"extendProps":if(q.extends={interface:u,import:J8},a)a=!1;break;case"restProps":{let Q8=u?l?`${u} ${l}`:u:l,Y8=J1(Q8)||w8;if(!Y8&&a&&!t&&H)Y8=H,t=!0;if(q.rest_props={type:"Element",name:J8,description:Y8||void 0},a)a=!1;break}case"slot":case"snippet":{let A8=J1(k1(c));if(!A8&&a&&!t&&H)A8=H,t=!0;if(!A8&&J.length===0)A8=w8;if(a)a=!1;D1(q,{slot_name:u,slot_props:J8,slot_description:A8||void 0,slot_deprecated:V,slot_tags:J.length>0?[...J]:void 0,source:q9(q,c)}),J.length=0,V=void 0;break}case"event":{if(A(),K=u,X=J8,$=c.length>0?c[0].number:void 0,W=J1(k1(c))||w8,!W&&a&&!t&&H)W=H,t=!0;if(U=q9(q,c),a)a=!1;break}case"type":if(K!==void 0)X=J8;break;case"param":if(x!==void 0)n.push({name:u,type:J8,optional:s||!1});break;case"returns":case"return":if(x!==void 0)g=J8;break;case"property":{let Q8={name:u,type:J8,description:J1(k1(c)),optional:s||!1,default:_};if(K!==void 0)R.push(Q8);else if(I!==void 0)b.push(Q8);break}case"typedef":{if(P(),I=V7(u),D=J8,L=J1(k1(c))||w8,!L&&a&&!t&&H)L=H,t=!0;if(a)a=!1;break}case"callback":{if(S(),x=V7(u),h=J1(k1(c))||w8,!h&&a&&!t&&H)h=H,t=!0;if(a)a=!1;break}case"generics":if(q.generics=[u,J8],a)a=!1;break;case"template":{let Q8=u;if(J8)Q8=`${u} extends ${J8}`;if(_)Q8+=` = ${_}`;if(C&&!N){q.deferredSlotBlockGenerics.push({name:u,constraint:Q8});break}if(Q.accumulateGeneric(u,Q8),a)a=!1;break}case"deprecated":{let Q8=W7(u,l);if(K===void 0)V??=Q8;else B??=Q8;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let Q8={name:k,body:p};if(K!==void 0&&X7.has(k))w.push(Q8);else J.push(Q8)}break}}A(),P(),S()}}function a3({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((X)=>`${X.name}${X.optional?"?":""}: ${X.type}`).join(", ")}) => ${Y}`:`() => ${Y}`;let H=q.jsdocDescription??q.resolvedDescription;if(H===void 0&&Q!==void 0)H=q.typedefs?.get(Q)?.description;let j=a3({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:j,description:H,params:Z,returnType:Y,isFunction:K}}function r3(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 G7(q,Q){if(q.rest_props!==void 0)return;let Z=r3(Q);if(Z)q.rest_props=Z}function G8(q,Q,Z){if(!Q||q.has(Q))return;q.set(Q,Z)}function H0(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 j8(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":j8(q.left,Q);break;case"ArrayPattern":for(let Z of q.elements)j8(Z??void 0,Q);break;case"ObjectPattern":for(let Z of q.properties)if(Z.type==="Property")j8(Z.value,Q);else if(Z.type==="RestElement")j8(Z.argument,Q);break;case"RestElement":j8(q.argument,Q);break}return Q}function X9(q,Q){let Z=j8(Q);if(!Z)return;for(let Y of Z){let H=H0(q,Y);if(H)q.reactive_vars.add(H)}}function J0(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 O7(q){if(!q||typeof q!=="object"||!("type"in q))return!1;let Q=String(q.type);return Q==="FunctionDeclaration"||Q==="FunctionExpression"||Q==="ArrowFunctionExpression"}function t3(q,Q){let Z=q.scopeDeclarations.get(Q);if(!Z)Z=new Map,q.scopeDeclarations.set(Q,Z);return Z}function e3(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 j=q.getPropertyName(H.key);if(!j)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:j})}return Y}function V9(q,Q,Z,Y,H){if(!v6(Q))return;let j=H?.allowRunesProps??!1,K=H?.forceProp??!1,X=Q;for(let W of X.declarations){if(j&&x8(s8(W.init),"$props")){for(let $ of e3(q,X,W))G8($.kind==="prop"?Z:Y,$.name,$.kind==="prop"?{kind:"prop",publicPropName:$.publicPropName}:{kind:"local"});continue}let B=X.kind==="var"?Y:Z,U=K?"prop":"local";for(let $ of j8(W.id))G8(B,$,U==="prop"?{kind:"prop",publicPropName:$}:{kind:"local"})}}function qq(q,Q){if("id"in q&&q.id&&typeof q.id==="object"&&"name"in q.id&&typeof q.id.name==="string")G8(Q,q.id.name,{kind:"local"});for(let Z of q.params)for(let Y of j8(Z))G8(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":V9(q,H,Z,Y);break;case"FunctionDeclaration":if(H.id?.name)G8(Z,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)G8(Z,H.id.name,{kind:"local"});break}}}function Zq(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 j of H.specifiers??[])if(j.local?.name)G8(Q.componentScope,j.local.name,{kind:"local"});break;case"VariableDeclaration":V9(q,H,Q.componentScope,Q.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(H.id?.name)G8(Q.componentScope,H.id.name,{kind:"local"});break;case"ClassDeclaration":if(H.id?.name)G8(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")V9(q,H.declaration,Q.componentScope,Q.componentScope,{forceProp:!0});else if(H.declaration.type==="FunctionDeclaration"&&H.declaration.id?.name)G8(Q.componentScope,H.declaration.id.name,{kind:"prop",publicPropName:H.declaration.id.name});break}}}function B7(q,Q){Q.componentScope.clear(),Q.scopeDeclarations=new WeakMap,Q.activeScopes.length=0,Zq(q,Q,Q.parsed?.instance)}function F7(q){return{varScopeStack:[q.componentScope]}}function R7(q,Q,Z,Y){if(!J0(Y))return;let H=t3(Q,Y),j=Z.varScopeStack[Z.varScopeStack.length-1]??Q.componentScope;switch(String(Y.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":qq(Y,H);break;case"BlockStatement":Qq(q,Y.body,H,j);break;case"CatchClause":if("param"in Y)for(let X of j8(Y.param))G8(H,X,{kind:"local"});break;case"EachBlock":{let X=Y;for(let W of j8(X.context))G8(H,W,{kind:"local"});if(typeof X.index==="string")G8(H,X.index,{kind:"local"});else if(X.index&&"name"in X.index)G8(H,X.index.name,{kind:"local"});break}case"ThenBlock":if("value"in Y)for(let X of j8(Y.value))G8(H,X,{kind:"local"});break;case"CatchBlock":if("error"in Y)for(let X of j8(Y.error))G8(H,X,{kind:"local"});break}if(O7(Y))Z.varScopeStack.push(H)}function $7(q,Q){if(O7(Q))q.varScopeStack.pop()}var Yq=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function Hq(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 Jq(q,Q){for(let Z=Q.length-1;Z>=0;Z-=1)if(Q[Z]?.has(q))return!0;return!1}function Kq(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??[])j8(Y,Q);break}case"BlockStatement":K0(q.body,Q);break;case"CatchClause":j8(q.param,Q);break;case"EachBlock":{let Z=q;if(j8(Z.context,Q),typeof Z.index==="string")Q.add(Z.index);else if(Z.index?.name)Q.add(Z.index.name);break}case"ThenBlock":j8(q.value,Q);break;case"CatchBlock":j8(q.error,Q);break}return Q}function K0(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??[])j8(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)K0([Y],Q);break}}}}function W9(q,Q){if(!q||typeof q!=="object")return!1;let Z=[...Q],Y=!1;return E8(q,{enter(H,j){if(Y){this.skip();return}if(J0(H))Z.push(Kq(H));if(j&&H.type==="Identifier"&&Yq.has(H.name)&&!j.type.startsWith("TS")&&Hq(H,j)&&!Jq(H.name,Z))Y=!0,this.skip()},leave(H){if(J0(H))Z.pop()}}),Y}function M7(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 w7(q){if(q.runesOptionOverride!==void 0)return q.runesOptionOverride?"runes":"legacy";let Q=q.parsed;if(!Q)return"legacy";let Z=new Set;K0(M7(Q.module),Z);let Y=new Set;return K0(M7(Q.instance),Y),W9(Q.module,[Z])||W9(Q.instance,[Z,Y])||W9(Q.html,[Z,Y])?"runes":"legacy"}var jq=/[A-Za-z_$][\w$]*/g;function Vq(q,Q,Z){let Y=new Map,H=Q.typeParameters?.params,j=Z.typeArguments?.params;if(!H?.length||!j?.length)return Y;for(let K=0;K<H.length;K++){let X=H[K]?.name,W=j[K];if(!X||W?.start===void 0||W?.end===void 0)continue;let B=e(q,W.start,W.end)?.trim();if(B)Y.set(X,B)}return Y}function Xq(q,Q){if(Q.size===0)return q;return q.replace(jq,(Z)=>Q.get(Z)??Z)}function b1(q,Q,Z,Y,H=new Set){let j=new Map;if(!Z?.type)return j;let K=(X)=>{for(let W of X){if(W?.type!=="TSPropertySignature"||W.computed)continue;if(!W.key)continue;let B=q.getPropertyName(W.key);if(!B)continue;let U=W.typeAnnotation?.start,$=W.typeAnnotation?.end;if(U===void 0||$===void 0)continue;let w=e(Q,U+1,$)?.trim();if(!w)continue;j.set(B,{type:w,optional:W.optional===!0,source:K8(Q,W)})}};switch(Z.type){case"TSTypeLiteral":K(Z.members??[]);break;case"TSInterfaceDeclaration":K(Z.body?.body??[]);break;case"TSTypeAliasDeclaration":{let X=b1(q,Q,Z.typeAnnotation,Y,H);for(let[W,B]of X)j.set(W,B);break}case"TSTypeReference":{let X=t6(Z.typeName);if(!X||H.has(X))break;let W=Y.get(X);if(!W)break;H.add(X);let B=b1(q,Q,W,Y,H);H.delete(X);let U=Vq(Q,W,Z);for(let[$,w]of B)j.set($,U.size===0?w:{...w,type:Xq(w.type,U)});break}case"TSIntersectionType":for(let X of Z.types??[]){let W=b1(q,Q,X,Y,H);for(let[B,U]of W)j.set(B,U)}break;case"TSParenthesizedType":{let X=b1(q,Q,Z.typeAnnotation,Y,H);for(let[W,B]of X)j.set(W,B);break}}return j}function A7(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 j of H){if(!j?.type)continue;if(j.type==="ImportDeclaration"&&j.source?.value)for(let K of j.specifiers??[]){let X=K.local?.name;if(!X)continue;if(!(j.importKind==="type"||K.importKind==="type"))continue;let B,U;if(K.type==="ImportSpecifier")B="named",U=K.imported?.type==="Identifier"?K.imported.name:typeof K.imported?.value==="string"?K.imported.value:void 0;else if(K.type==="ImportDefaultSpecifier")B="default";else if(K.type==="ImportNamespaceSpecifier")B="namespace";if(!B)continue;Q.typeImportBindingsByLocalName.set(X,{importedName:U,localName:X,source:String(j.source.value),specifierType:B})}if((j.type==="TSInterfaceDeclaration"||j.type==="TSTypeAliasDeclaration")&&j.id?.name&&j.start!==void 0&&j.end!==void 0)Q.localTypeDeclarationsByName.set(j.id.name,{code:e(Q,j.start,j.end)?.trim()??"",node:j,start:j.start});if(j.type==="ExportNamedDeclaration"&&j.declaration?.type==="VariableDeclaration")for(let K of j.declaration.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let X=Y0(Q,K.id.typeAnnotation);if(X)Q.explicitPropTypesByName.set(K.id.name,X)}else if(j.type==="VariableDeclaration")for(let K of j.declarations??[]){if(K.id?.type!=="Identifier"||!K.id.name)continue;let X=Y0(Q,K.id.typeAnnotation);if(X)Q.explicitVariableTypesByName.set(K.id.name,X)}}for(let j of H){if(!j||typeof j!=="object"||!("declarations"in j))continue;for(let K of j.declarations??[]){if(!x8(s8(K.init),"$props"))continue;let X=K.id?.typeAnnotation?void 0:y6(K.init),W=K.id?.typeAnnotation?.typeAnnotation??X,B=K.id?.typeAnnotation?Y0(Q,K.id.typeAnnotation):q7(Q,X),U=b1(q,Q,W,new Map(Array.from(Q.localTypeDeclarationsByName.entries(),([R,I])=>[R,I.node]))),$=new Set,w=new Set;if(L8(Q,W,$,w),H7(Q,$,w),K.start!==void 0){let R={canonicalType:B,props:U,referencedImportedTypes:$,referencedLocalTypes:w};if(Q.runesPropsDeclarationMetadataByDeclaratorStart.set(K.start,R),B)Q.typedRunesPropsDeclarations.push(R)}}}}function C7(q,Q,Z){for(let Y of Z.declarations){if(!x8(s8(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[X,W]of K.props)L1(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(Y.id.type!=="ObjectPattern")continue;let H=a8(Q,q,Z),j=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 X=q.getPropertyName(K.key);if(!X)continue;let W,B;if(K.value.type==="Identifier")W=K.value.name;else{let z=K.value;W=z.left.name,B=z.right}if(!W)continue;if(q.trackPropLocalName(X,W),X==="children")Q.snippetPropLocals.add(W);let U=z7(Q,q,K)??(j===1?H:void 0),$=r6(Q,Y.start,X),{init:w,bindable:R}=p6(B),I=w==null?{isFunction:!1}:n8(q,Q,w),{value:D,type:L,isFunction:b,defaultValue:x}=I,h=$?.type===void 0&&U?.type===void 0?I.resolvedType:void 0;if(I.pendingCallDefault)Q.pendingCallDefaultCandidates.push({propName:X,location:"props",...I.pendingCallDefault});let{type:n,typeSource:g,description:t,params:a,returnType:J,isFunction:V}=N1({explicitType:$?.type,typeSeed:L,inferredTypeForSource:L,jsdocType:U?.type,jsdocDescription:U?.description,jsdocParams:U?.params,jsdocReturnType:U?.returnType,resolvedType:h,resolvedDescription:I.resolvedDescription,resolvedParams:I.resolvedParams,resolvedReturnType:I.resolvedReturnType,initializerIsFunction:b,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(R)Q.reactive_vars.add(X);L1(q,Q,X,{name:X,...W===X?{}:{localName:W},kind:"let",description:t,binding:U?.binding,deprecated:U?.deprecated,tags:U?.tags,...R?{bindable:!0}:{},type:n,typeSource:g,value:D,defaultValue:x,params:a,returnType:J,isFunction:V,isFunctionDeclaration:!1,isRequired:w==null&&$?.optional!==!0,constant:!1,reactive:R,source:K8(Q,K)})}}}function L7(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}`,j=q.props.get(H);if(!j)continue;let K=j.type!==void 0||j.params!==void 0||j.returnType!==void 0,X=Y.detail===void 0||Y.detail==="undefined"||Y.detail==="null"?"() => void":`(detail: ${Y.detail}) => void`;q.props.set(H,{...j,description:j.description??Y.description,type:K?j.type:X,typeSource:K?j.typeSource:"inferred",isFunction:!0}),q.events.delete(Z)}}var I7=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function j0(q){if(!q||typeof q!=="object")return;E8(q,{enter(Q){if(!I7.has(Q.type))return;let Z=Q.expression;while(Z&&I7.has(Z.type))Z=Z.expression;if(Z)this.replace(Z)}})}function V0(q,Q){let Z=Q.source?.value;if(typeof Z!=="string"||Q.importKind==="type")return;for(let Y of Q.specifiers??[]){if(Y.type!=="ImportSpecifier"||Y.importKind==="type")continue;let H=Y.local?.name;if(!H)continue;let j=Y.imported?.name??(typeof Y.imported?.value==="string"?Y.imported.value:H);q.valueImportBindingsByLocalName.set(H,{localName:H,importedName:j,source:Z})}}function z9(q,Q){if(!Q)return;E8(Q,{enter(Z){if(Z.type==="ImportDeclaration")V0(q,Z);if(Z.type==="FunctionDeclaration"){let Y=Z;if(Y.id?.name)q.funcDecls.set(Y.id.name,Y)}}})}function P7(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 D7(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=P7(q,Z,H);continue}else if(H==="`"){Z=D7(q,Z);continue}Z++}return Z}function Wq(q,Q){let Z=[],Y=q.length,H=0;while(H<Y){let j=q[H];if(j==='"'||j==="'"){H=P7(q,H,j);continue}if(j==="`"){H=D7(q,H);continue}if(j==="/"&&q[H+1]==="/"){let K=H+2;while(K<Y&&q[K]!==`
|
|
16
|
+
`)K++;H=K;continue}if(j==="/"&&q[H+1]==="*"){let K=H,X=H+2;while(X<Y&&!(q[X]==="*"&&q[X+1]==="/"))X++;let W=Math.min(X+2,Y),B=q.slice(K,W);Z.push({end:W+Q,isJsDoc:B.startsWith("/**")&&B.length>4,text:B}),H=W;continue}H++}return Z}function S7(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)S7(Y.declaration,Y.start,Q);else S7(Y,Y.start,Q)}return Q}function Uq(q,Q,Z){let Y;for(let H of q){if(H.end>Q)break;if(!H.isJsDoc)continue;if(!K9.test(Z.slice(H.end,Q)))continue;Y=H}return Y}function k7(q,Q){let Z=new Map;if(!q.source)return Z;let Y=[q.parsed?.module,q.parsed?.instance],H=[],j=[];for(let K of Y){let X=K?.content;if(!X?.body||X.start===void 0||X.end===void 0)continue;H.push(...Wq(q.source.slice(X.start,X.end),X.start)),j.push(...zq(X.body))}H.sort((K,X)=>K.end-X.end);for(let K of j){let X=Uq(H,K.start,q.source);if(!X)continue;let W=P1(X.text),{type:B,description:U}=j9(W);if(!B)continue;Z.set(K.name,{type:Q.aliasType(B.type),description:U||B.description})}return Z}function c8(q,Q,Z){let Y=Z._,H=!1;function j(X,{next:W,state:B}){W(B)}function K(X,W,B){if(H)return;if(!X.type)return;let U,$={},w={path:W,state:B,next:(I=B)=>{W.push(X);for(let D in X){if(D==="type")continue;let L=X[D];if(L&&typeof L==="object")if(Array.isArray(L)){let b={},x=L.length,h=!1;for(let n=0;n<x;n++){let g=L[n];if(g&&typeof g==="object"){let t=K(g,W,I);if(t)b[n]=t,h=!0}}if(h)$[D]=L.map((n,g)=>b[g]??n)}else{let b=K(L,W,I);if(b)$[D]=b}}if(W.pop(),Object.keys($).length>0)return N7(X,$)},stop:()=>{H=!0},visit:(I,D=B)=>{W.push(X);let L=K(I,W,D)??I;return W.pop(),L}},R=Z[X.type]??j;if(Y){let I;if(U=Y(X,{...w,next:(D=B)=>{return B=D,I=R(X,{...w,state:D}),I}}),!U&&I)U=I}else U=R(X,w);if(!U){if(Object.keys($).length>0)U=N7(X,$)}if(U)return U}return K(q,[],Q)??q}function N7(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 b7=/^[ \t\r\n]+/;var T7=/[ \t\r\n]+$/,U9=/[^ \t\r\n]/;var X0=/[^\n]/g;var $J=Symbol("uninitialized"),MJ=Symbol("filename"),wJ=Symbol("hmr");var E7="http://www.w3.org/2000/svg",v7="http://www.w3.org/1998/Math/MathML",h7=["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 B9(q,Q){if(Q.length===0)return null;let Y=new g7(Q).get(q);return Y&&Y[0][0]>0.7?Y[0][1]:null}var G9=2,O9=3;function Gq(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-Oq(q,Q)/Math.max(q.length,Q.length)}function Oq(q,Q){let Z=[],Y=0;for(let H=0;H<=Q.length;H++)for(let j=0;j<=q.length;j++){let K;if(H&&j)if(q.charAt(j-1)===Q.charAt(H-1))K=Y;else K=Math.min(Z[j],Z[j-1],Y)+1;else K=H+j;Y=Z[j],Z[j]=K}return Z.pop()}var Bq=/[^\w, ]+/;function Fq(q,Q=2){let Z="-"+q.toLowerCase().replace(Bq,"")+"-",Y=Q-Z.length,H=[];if(Y>0)for(let j=0;j<Y;++j)q+="-";for(let j=0;j<Z.length-Q+1;++j)H.push(Z.slice(j,j+Q));return H}function y7(q,Q=2){let Z={},Y=Fq(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 f7(q,Q){return Q[0]-q[0]}class g7{exact_set={};match_dict={};items={};constructor(q){for(let Q=G9;Q<O9+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=G9;for(Z;Z<O9+1;++Z)this._add(q,Z)}_add(q,Q){let Z=q.toLowerCase(),Y=this.items[Q]||[],H=Y.length;Y.push(0);let j=y7(Z,Q),K=0,X,W;for(X in j)if(W=j[X],K+=Math.pow(W,2),X in this.match_dict)this.match_dict[X].push([H,W]);else this.match_dict[X]=[[H,W]];let B=Math.sqrt(K);Y[H]=[B,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=O9;Y>=G9;--Y){let H=this.__get(q,Y);if(H.length>0)return H}return null}__get(q,Q){let Z=q.toLowerCase(),Y={},H=y7(Z,Q),j=this.items[Q],K=0,X,W,B,U,$;for(X in H)if(W=H[X],K+=Math.pow(W,2),X in this.match_dict)for(B=0;B<this.match_dict[X].length;++B)if(U=this.match_dict[X][B][0],$=this.match_dict[X][B][1],U in Y)Y[U]+=W*$;else Y[U]=W*$;let w=Math.sqrt(K),R=[],I;for(let b in Y)I=Y[b],R.push([I/(w*j[b][0]),j[b][1]]);R.sort(f7);let D=[],L=Math.min(50,R.length);for(let b=0;b<L;++b)D.push([Gq(R[b][1],Z),R[b][1]]);R=D,R.sort(f7),D=[];for(let b=0;b<R.length;++b)if(R[b][0]===R[0][0])D.push([R[b][0],this.exact_set[R[b][1]]]);return D}}function Rq(q,Q){return q.start<=Q&&Q<q.end}function _7(q,Q={}){let{offsetLine:Z=0,offsetColumn:Y=0}=Q,H=0,j=q.split(`
|
|
17
|
+
`).map((W,B)=>{let U=H+W.length+1,$={start:H,end:U,line:B};return H=U,$}),K=0;function X(W,B){if(typeof W==="string")W=q.indexOf(W,B??0);if(W===-1)return;let U=j[K],$=W>=U.end?1:-1;while(U){if(Rq(U,W))return{line:Z+U.line,column:Y+W-U.start,character:W};K+=$,U=j[K]}}return X}var $q=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function F9(q){return $q.includes(q)||q.toLowerCase()==="!doctype"}var Mq=["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 x7(q){return Mq.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 IJ=[...wq,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Aq=["$state","$state.raw","$derived","$derived.by"],SJ=[...Aq,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var u7=/^[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 R9=[],U0,z0="(unknown)",Cq="<unknown>",W0,G0=[],Lq,Iq=!1,W8;function m7(q){W0=q,G0=W0.split(`
|
|
18
|
+
`);let Q=_7(W0,{offsetLine:1});W8=(Z)=>{let Y=Q(Z);if(!Y)throw Error("An impossible situation occurred");return Y}}var $9,M9=[],l7=new Map;function c7(q){Lq=!1,Iq=!1,Cq=z0,W0="",G0=[],U0=(q.filename??z0).replace(/\\/g,"/"),$9=q.warning??(()=>!0),R9=[]}var Sq=/^\t+/;function w9(q){return q.replace(Sq,(Q)=>Q.split("\t").join(" "))}function Pq(q,Q){let Z=G0,Y=Math.max(0,q-2),H=Math.min(q+3,Z.length),j=String(H+1).length;return Z.slice(Y,H).map((K,X)=>{let W=Y+X===q,B=String(X+Y+1).padStart(j," ");if(W){let U=" ".repeat(j+2+w9(K.slice(0,Q)).length)+"^";return`${B}: ${w9(K)}
|
|
19
19
|
${U}`}return`${B}: ${w9(K)}`}).join(`
|
|
20
|
-
`)}class T1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,U0!==z0)this.filename=U0;if(Z){if(this.position=Z,this.start=W8(Z[0]),this.end=W8(Z[1]),this.start&&this.end)this.frame=
|
|
20
|
+
`)}class T1{name="CompileDiagnostic";constructor(q,Q,Z){if(this.code=q,this.message=Q,U0!==z0)this.filename=U0;if(Z){if(this.position=Z,this.start=W8(Z[0]),this.end=W8(Z[1]),this.start&&this.end)this.frame=Pq(this.start.line-1,this.end.column)}}toString(){let q=`${this.code}: ${this.message}`;if(this.filename){if(q+=`
|
|
21
21
|
${this.filename}`,this.start)q+=`:${this.start.line}:${this.start.column}`}if(this.frame)q+=`
|
|
22
22
|
${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 i7 extends T1{name="CompileWarning";constructor(q,Q,Z){super(q,Q,Z)}}function E1(q,Q,Z){let Y=M9;if(q)Y=l7.get(q)??M9;if(Y&&Y.at(-1)?.has(Q))return;let H=new i7(Q,Z,q&&q.start!==void 0?[q.start,q.end??q.start]:void 0);if(!$9(H))return;R9.push(H)}var p7=["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 o7(q,Q,Z){E1(q,"legacy_code",`\`${Q}\` is no longer valid — please use \`${Z}\` instead
|
|
23
23
|
https://svelte.dev/e/legacy_code`)}function s7(q,Q,Z){E1(q,"unknown_code",`${Z?`\`${Q}\` is not a recognised code (did you mean \`${Z}\`?)`:`\`${Q}\` is not a recognised code`}
|
|
24
24
|
https://svelte.dev/e/unknown_code`)}function A9(q,Q,Z){E1(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.
|
|
25
|
-
https://svelte.dev/e/element_implicitly_closed`)}function n7(q){E1(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 a7(q){E1(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 Pq=/^\s*svelte-ignore\s/,r7={"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"},v1=p7.concat(h7);function t7(q,Q,Z){let Y=Pq.exec(Q);if(!Y)return[];let H=Y[0].length;q+=H;let j=[];if(Z)for(let K of Q.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let X=K[1];if(v1.includes(X))j.push(X);else{let W=r7[X]??X.replace(/-/g,"_"),B=q+K.index,U=B+X.length;if(v1.includes(W))o7({start:B,end:U},X,W);else{let $=B9(X,v1);s7({start:B,end:U},X,$)}}if(!K[2])break}else for(let K of Q.slice(H).matchAll(/[\w$-]+/gm)){let X=K[0];if(j.push(X),!v1.includes(X)){let W=r7[X]??X.replace(/-/g,"_");if(v1.includes(W))j.push(W)}}return j}function K1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!U9.test(Q.data))q.shift();else Q.data=Q.data.replace(b7,"");if(Z?.type==="Text")if(!U9.test(Z.data))q.pop();else Z.data=Z.data.replace(T7,"")}function e7(q,Q){return c8(Q,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:j,module:K,options:X}=Y;if(X?.__raw__){let U=Y.fragment.nodes.findIndex(($)=>X.end<=$.start);if(U===-1)U=Y.fragment.nodes.length;Y.fragment.nodes.splice(U,0,X.__raw__)}let W=null,B=null;if(Y.fragment.nodes.length>0){let U=Y.fragment.nodes.at(0),$=Y.fragment.nodes.at(-1);W=U.start,B=$.end;while(/\s/.test(q[W]))W+=1;while(/\s/.test(q[B-1]))B-=1}if(j)delete j.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:W,end:B,children:Y.fragment.nodes.map((U)=>H(U))},instance:j,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 j={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((W)=>H(W))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((W)=>H(W))??[],skip:!0},X={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((W)=>H(W))??[],skip:!0};if(Y.pending){let W=Y.pending.nodes.at(0),B=Y.pending.nodes.at(-1);j.start=W?.start??q.indexOf("}",Y.expression.end)+1,j.end=B?.end??j.start,j.skip=!1}if(Y.then){let W=Y.then.nodes.at(0),B=Y.then.nodes.at(-1);K.start=j.end??W?.start??q.indexOf("}",Y.expression.end)+1,K.end=B?.end??q.lastIndexOf("}",j.end??Y.expression.end)+1,K.skip=!1}if(Y.catch){let W=Y.catch.nodes.at(0),B=Y.catch.nodes.at(-1);X.start=K.end??j.end??W?.start??q.indexOf("}",Y.expression.end)+1,X.end=B?.end??q.lastIndexOf("}",K.end??j.end??Y.expression.end)+1,X.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:j,then:K,catch:X}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:t7(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let j=[];for(let K of Y.children){if(K.combinator)j.push(K.combinator);j.push(...K.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:j}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:j}={...H.declaration.declarations[0]};return delete j.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:j,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((j)=>H(j))}},EachBlock(Y,{visit:H}){let j=void 0;if(Y.fallback){let K=Y.fallback.nodes.at(0),X=q.lastIndexOf("{",Y.end-1),W=K?.start??X;K1(Y.fallback.nodes),j={type:"ElseBlock",start:W,end:X,children:Y.fallback.nodes.map((B)=>H(B))}}return K1(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:j}},ExpressionTag(Y,{path:H}){let j=H.at(-1);if(j?.type==="Attribute"){if(q[j.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 j=void 0;if(Y.alternate){let X=Y.alternate.nodes;if(X.length===1&&X[0].type==="IfBlock"&&X[0].elseif)X=X[0].consequent.nodes;let W=q.lastIndexOf("{",Y.end-1),B=X.at(0)?.start??W;K1(Y.alternate.nodes),j={type:"ElseBlock",start:B,end:W,children:Y.alternate.nodes.map((U)=>H(U))}}let K=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return K1(Y.consequent.nodes),{type:"IfBlock",start:K,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((X)=>H(X)),else:j,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return K1(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((j)=>H(j)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},Attribute(Y,{visit:H,next:j,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let X=[H(Y.value)];return K.pop(),{...Y,value:X}}else return j()},StyleDirective(Y,{visit:H,next:j,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let X=[H(Y.value)];return K.pop(),{...Y,value:X}}else return j()},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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteElement(Y,{visit:H}){let j=Y.tag;if(j.type==="Literal"&&typeof j.value==="string"&&q[Y.tag.start-1]!=="{")j=j.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:j,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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},Text(Y,{path:H}){let j=H.at(-1);if(j?.type==="RegularElement"&&j.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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var P0={};r4(P0,{version:()=>u2,tokenizer:()=>WQ,tokTypes:()=>G,tokContexts:()=>q8,parseExpressionAt:()=>XQ,parse:()=>VQ,nonASCIIwhitespace:()=>N9,lineBreakG:()=>j2,lineBreak:()=>B8,keywordTypes:()=>w0,isNewLine:()=>V1,isIdentifierStart:()=>$8,isIdentifierChar:()=>h8,getLineInfo:()=>b9,defaultOptions:()=>B0,TokenType:()=>o,Token:()=>S0,TokContext:()=>P8,SourceLocation:()=>f1,Position:()=>O1,Parser:()=>Z8,Node:()=>_1});var Dq=[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],H2=[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],kq="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",J2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",L9={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"},I9="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",Nq={5:I9,"5module":I9+" export import",6:I9+" const class extends export import super"},K2=/^in(stanceof)?$/,bq=new RegExp("["+J2+"]"),Tq=new RegExp("["+J2+kq+"]");function S9(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 $8(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&&bq.test(String.fromCharCode(q));if(Q===!1)return!1;return S9(q,H2)}function h8(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&&Tq.test(String.fromCharCode(q));if(Q===!1)return!1;return S9(q,H2)||S9(q,Dq)}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 I8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var S8={beforeExpr:!0},F8={startsExpr:!0},w0={};function i(q,Q){if(Q===void 0)Q={};return Q.keyword=q,w0[q]=new o(q,Q)}var G={num:new o("num",F8),regexp:new o("regexp",F8),string:new o("string",F8),name:new o("name",F8),privateId:new o("privateId",F8),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(",",S8),semi:new o(";",S8),colon:new o(":",S8),dot:new o("."),question:new o("?",S8),questionDot:new o("?."),arrow:new o("=>",S8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",S8),backQuote:new o("`",F8),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:I8("||",1),logicalAND:I8("&&",2),bitwiseOR:I8("|",3),bitwiseXOR:I8("^",4),bitwiseAND:I8("&",5),equality:I8("==/!=/===/!==",6),relational:I8("</>/<=/>=",7),bitShift:I8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I8("%",10),star:I8("*",10),slash:I8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:I8("??",1),_break:i("break"),_case:i("case",S8),_catch:i("catch"),_continue:i("continue"),_debugger:i("debugger"),_default:i("default",S8),_do:i("do",{isLoop:!0,beforeExpr:!0}),_else:i("else",S8),_finally:i("finally"),_for:i("for",{isLoop:!0}),_function:i("function",F8),_if:i("if"),_return:i("return",S8),_switch:i("switch"),_throw:i("throw",S8),_try:i("try"),_var:i("var"),_const:i("const"),_while:i("while",{isLoop:!0}),_with:i("with"),_new:i("new",{beforeExpr:!0,startsExpr:!0}),_this:i("this",F8),_super:i("super",F8),_class:i("class",F8),_extends:i("extends",S8),_export:i("export"),_import:i("import",F8),_null:i("null",F8),_true:i("true",F8),_false:i("false",F8),_in:i("in",{beforeExpr:!0,binop:7}),_instanceof:i("instanceof",{beforeExpr:!0,binop:7}),_typeof:i("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:i("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:i("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},B8=/\r\n?|\n|\u2028|\u2029/,j2=new RegExp(B8.source,"g");function V1(q){return q===10||q===13||q===8232||q===8233}function V2(q,Q,Z){if(Z===void 0)Z=q.length;for(var Y=Q;Y<Z;Y++){var H=q.charCodeAt(Y);if(V1(H))return Y<Z-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var N9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,V8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,X2=Object.prototype,Eq=X2.hasOwnProperty,vq=X2.toString,B1=Object.hasOwn||function(q,Q){return Eq.call(q,Q)},q2=Array.isArray||function(q){return vq.call(q)==="[object Array]"},Q2=Object.create(null);function r8(q){return Q2[q]||(Q2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function d8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var hq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,O1=function(Q,Z){this.line=Q,this.column=Z};O1.prototype.offset=function(Q){return new O1(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 b9(q,Q){for(var Z=1,Y=0;;){var H=V2(q,Y,Q);if(H<0)return new O1(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,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z2=!1;function yq(q){var Q={};for(var Z in B0)Q[Z]=q&&B1(q,Z)?q[Z]:B0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!Z2&&typeof console==="object"&&console.warn)Z2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
26
|
-
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(q2(Q.onToken)){var Y=Q.onToken;Q.onToken=function(H){return Y.push(H)}}if(q2(Q.onComment))Q.onComment=
|
|
27
|
-
`,Y-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(B8).length}else this.lineStart=0;if(this.type=G.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"?X1:j1),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}};Z8.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&X1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&W2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&T9)>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&(W1|g1))return!1;if(Z&X1)return(Z&T9)>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&j1)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&U2)>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&(W1|g1)||Z&X1&&!(Z&E9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&G2)return!1;if(!this.inModule&&Q&j1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W1)>0};Z8.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};Z8.parse=function(Q,Z){return new this(Z,Q).parse()};Z8.parseExpressionAt=function(Q,Z,Y){var H=new this(Y,Q,Z);return H.nextToken(),H.parseExpression()};Z8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Z8.prototype,k8);var O8=Z8.prototype,gq=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;O8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){V8.lastIndex=q,q+=V8.exec(this.input)[0].length;var Q=gq.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){V8.lastIndex=q+Q[0].length;var Z=V8.exec(this.input),Y=Z.index+Z[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||B8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Q[0].length,V8.lastIndex=q,q+=V8.exec(this.input)[0].length,this.input[q]===";")q++}};O8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};O8.isContextual=function(q){return this.type===G.name&&this.value===q&&!this.containsEsc};O8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};O8.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}};O8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};O8.canInsertSemicolon=function(){return this.type===G.eof||this.type===G.braceR||B8.test(this.input.slice(this.lastTokEnd,this.start))};O8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};O8.semicolon=function(){if(!this.eat(G.semi)&&!this.insertSemicolon())this.unexpected()};O8.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}};O8.expect=function(q){this.eat(q)||this.unexpected()};O8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var L0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O8.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")};O8.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")};O8.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")};O8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var E=Z8.prototype;E.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==G.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 j=H[Y];this.raiseRecoverable(this.undefinedExports[j].start,"Export '"+j+"' 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 y9={kind:"loop"},_q={kind:"switch"};E.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;V8.lastIndex=this.pos;var Q=V8.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($8(Y)){var H=Z;do Z+=Y<=65535?1:2;while(h8(Y=this.fullCharCodeAt(Z)));if(Y===92)return!0;var j=this.input.slice(H,Z);if(!K2.test(j))return!0}return!1};E.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;V8.lastIndex=this.pos;var q=V8.exec(this.input),Q=this.pos+q[0].length,Z;return!B8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(h8(Z=this.fullCharCodeAt(Q+8))||Z===92))};E.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;V8.lastIndex=this.pos;var Z=V8.exec(this.input),Y=this.pos+Z[0].length;if(B8.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,j;if(this.input.slice(Y,H)!=="using"||H===this.input.length||h8(j=this.fullCharCodeAt(H))||j===92)return!1;V8.lastIndex=H;var K=V8.exec(this.input);if(Y=H+K[0].length,K&&B8.test(this.input.slice(H,Y)))return!1}var X=this.fullCharCodeAt(Y);if(!$8(X)&&X!==92)return!1;var W=Y;do Y+=X<=65535?1:2;while(h8(X=this.fullCharCodeAt(Y)));if(X===92)return!0;var B=this.input.slice(W,Y);if(K2.test(B))return!1;if(Q&&!q&&B==="of"){V8.lastIndex=Y;var U=V8.exec(this.input);if(Y=Y+U[0].length,this.input.charCodeAt(Y)!==61||(X=this.input.charCodeAt(Y+1))===61||X===62)return!1}return!0};E.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};E.isUsing=function(q){return this.isUsingKeyword(!1,q)};E.parseStatement=function(q,Q,Z){var Y=this.type,H=this.startNode(),j;if(this.isLet(q))Y=G._var,j="let";switch(Y){case G._break:case G._continue:return this.parseBreakContinueStatement(H,Y.keyword);case G._debugger:return this.parseDebuggerStatement(H);case G._do:return this.parseDoStatement(H);case G._for:return this.parseForStatement(H);case G._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case G._class:if(q)this.unexpected();return this.parseClass(H,!0);case G._if:return this.parseIfStatement(H);case G._return:return this.parseReturnStatement(H);case G._switch:return this.parseSwitchStatement(H);case G._throw:return this.parseThrowStatement(H);case G._try:return this.parseTryStatement(H);case G._const:case G._var:if(j=j||this.value,q&&j!=="var")this.unexpected();return this.parseVarStatement(H,j);case G._while:return this.parseWhileStatement(H);case G._with:return this.parseWithStatement(H);case G.braceL:return this.parseBlock(!0,H);case G.semi:return this.parseEmptyStatement(H);case G._export:case G._import:if(this.options.ecmaVersion>10&&Y===G._import){V8.lastIndex=this.pos;var K=V8.exec(this.input),X=this.pos+K[0].length,W=this.input.charCodeAt(X);if(W===40||W===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===G._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 B=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(B){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(B==="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,B),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var U=this.value,$=this.parseExpression();if(Y===G.name&&$.type==="Identifier"&&this.eat(G.colon))return this.parseLabeledStatement(H,U,$,q);else return this.parseExpressionStatement(H,$)}};E.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(G.semi)||this.insertSemicolon())q.label=null;else if(this.type!==G.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")};E.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};E.parseDoStatement=function(q){if(this.next(),this.labels.push(y9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(G._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(G.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};E.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(y9),this.enterScope(0),this.expect(G.parenL),this.type===G.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===G._var||this.type===G._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 j=this.isContextual("let"),K=!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 B=this.containsEsc,U=new L0,$=this.start,w=Q>-1?this.parseExprSubscripts(U,"await"):this.parseExpression(!0,U);if(this.type===G._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===G._in)this.unexpected(Q);q.await=!0}else if(K&&this.options.ecmaVersion>=8){if(w.start===$&&!B&&w.type==="Identifier"&&w.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(j&&K)this.raise(w.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(w,!1,U),this.checkLValPattern(w),this.parseForIn(q,w)}else this.checkExpressionErrors(U,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,w)};E.parseForAfterInit=function(q,Q,Z){if((this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===G._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)};E.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,y1|(Z?0:P9),!1,Q)};E.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(G._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};E.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(G.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};E.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(G.braceL),this.labels.push(_q),this.enterScope(G2);var Q;for(var Z=!1;this.type!==G.braceR;)if(this.type===G._case||this.type===G._default){var Y=this.type===G._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(G.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")};E.parseThrowStatement=function(q){if(this.next(),B8.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 xq=[];E.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?z2:0),this.checkLValPattern(q,Q?B2:p8),this.expect(G.parenR),q};E.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===G._catch){var Q=this.startNode();if(this.next(),this.eat(G.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(G._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};E.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};E.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(y9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};E.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")};E.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};E.parseLabeledStatement=function(q,Q,Z,Y){for(var H=0,j=this.labels;H<j.length;H+=1){var K=j[H];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var X=this.type.isLoop?"loop":this.type===G._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var B=this.labels[W];if(B.statementStart===q.start)B.statementStart=this.start,B.kind=X;else break}return this.labels.push({name:Q,kind:X,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")};E.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};E.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(G.braceL),q)this.enterScope(0);while(this.type!==G.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")};E.parseFor=function(q,Q){return q.init=Q,this.expect(G.semi),q.test=this.type===G.semi?null:this.parseExpression(),this.expect(G.semi),q.update=this.type===G.parenR?null:this.parseExpression(),this.expect(G.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};E.parseForIn=function(q,Q){var Z=this.type===G._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(G.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};E.parseVar=function(q,Q,Z,Y){q.declarations=[],q.kind=Z;for(;;){var H=this.startNode();if(this.parseVarId(H,Z),this.eat(G.eq))H.init=this.parseMaybeAssign(Q);else if(!Y&&Z==="const"&&!(this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==G._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Q&&(this.type===G._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(G.comma))break}return q};E.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?h9:p8,!1)};var y1=1,P9=2,R2=4;E.parseFunction=function(q,Q,Z,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===G.star&&Q&P9)this.unexpected();q.generator=this.eat(G.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Q&y1){if(q.id=Q&R2&&this.type!==G.name?null:this.parseIdent(),q.id&&!(Q&P9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?h9:p8:O2)}var j=this.yieldPos,K=this.awaitPos,X=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(v9(q.async,q.generator)),!(Q&y1))q.id=this.type===G.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,H),this.yieldPos=j,this.awaitPos=K,this.awaitIdentPos=X,this.finishNode(q,Q&y1?"FunctionDeclaration":"FunctionExpression")};E.parseFunctionParams=function(q){this.expect(G.parenL),q.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};E.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(),j=!1;H.body=[],this.expect(G.braceL);while(this.type!==G.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(H.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(j)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");j=!0}else if(K.key&&K.key.type==="PrivateIdentifier"&&uq(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")};E.parseClassElement=function(q){if(this.eat(G.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),Y="",H=!1,j=!1,K="method",X=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(G.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===G.star)X=!0;else Y="static"}if(Z.static=X,!Y&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===G.star)&&!this.canInsertSemicolon())j=!0;else Y="async";if(!Y&&(Q>=9||!j)&&this.eat(G.star))H=!0;if(!Y&&!j&&!H){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=W;else Y=W}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===G.parenL||K!=="method"||H||j){var B=!Z.static&&R0(Z,"constructor"),U=B&&q;if(B&&K!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=B?"constructor":K,this.parseClassMethod(Z,H,j,U)}else this.parseClassField(Z);return Z};E.isClassElementNameStart=function(){return this.type===G.name||this.type===G.privateId||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword};E.parseClassElementName=function(q){if(this.type===G.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)};E.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&&R0(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var j=q.value=this.parseMethod(Q,Z,Y);if(q.kind==="get"&&j.params.length!==0)this.raiseRecoverable(j.start,"getter should have no params");if(q.kind==="set"&&j.params.length!==1)this.raiseRecoverable(j.start,"setter should have exactly one param");if(q.kind==="set"&&j.params[0].type==="RestElement")this.raiseRecoverable(j.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};E.parseClassField=function(q){if(R0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&R0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(G.eq))this.enterScope(g1|A0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};E.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(W1|A0);while(this.type!==G.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};E.parseClassId=function(q,Q){if(this.type===G.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,p8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};E.parseClassSuper=function(q){q.superClass=this.eat(G._extends)?this.parseExprSubscripts(null,!1):null};E.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};E.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 j=0;j<Z.length;++j){var K=Z[j];if(!B1(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 uq(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 R0(q,Q){var{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}E.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!==G.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};E.parseExport=function(q,Q){if(this.next(),this.eat(G.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(G._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!==G.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")};E.parseExportDeclaration=function(q){return this.parseStatement(null)};E.parseExportDefaultDeclaration=function(){var q;if(this.type===G._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,y1|R2,!1,q)}else if(this.type===G._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};E.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(B1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};E.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 j=H[Y];this.checkPatternExport(q,j)}else if(Z==="ArrayPattern")for(var K=0,X=Q.elements;K<X.length;K+=1){var W=X[K];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)};E.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)}};E.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};E.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")};E.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(G.braceL);while(!this.eat(G.braceR)){if(!Z){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};E.parseImport=function(q){if(this.next(),this.type===G.string)q.specifiers=xq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===G.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};E.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,p8),this.finishNode(q,"ImportSpecifier")};E.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,p8),this.finishNode(q,"ImportDefaultSpecifier")};E.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,p8),this.finishNode(q,"ImportNamespaceSpecifier")};E.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===G.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(G.comma))return q}if(this.type===G.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(G.braceL);while(!this.eat(G.braceR)){if(!Q){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};E.parseWithClause=function(){var q=[];if(!this.eat(G._with))return q;this.expect(G.braceL);var Q={},Z=!0;while(!this.eat(G.braceR)){if(!Z){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Z=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(B1(Q,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Q[H]=!0,q.push(Y)}return q};E.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===G.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(G.colon),this.type!==G.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};E.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===G.string){var q=this.parseLiteral(this.value);if(hq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};E.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)};E.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 N8=Z8.prototype;N8.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 j=H[Y];if(this.toAssignable(j,Q),j.type==="RestElement"&&(j.argument.type==="ArrayPattern"||j.argument.type==="ObjectPattern"))this.raise(j.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};N8.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 j=q[Z-1];if(this.options.ecmaVersion===6&&Q&&j&&j.type==="RestElement"&&j.argument.type!=="Identifier")this.unexpected(j.argument.start)}return q};N8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};N8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==G.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};N8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case G.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(G.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case G.braceL:return this.parseObj(!0)}return this.parseIdent()};N8.parseBindingList=function(q,Q,Z,Y){var H=[],j=!0;while(!this.eat(q)){if(j)j=!1;else this.expect(G.comma);if(Q&&this.type===G.comma)H.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===G.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),H.push(K),this.type===G.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};N8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};N8.parseBindingListItem=function(q){return q};N8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(G.eq))return Z;var Y=this.startNodeAt(q,Q);return Y.left=Z,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};N8.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===p8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(B1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==F2)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")}};N8.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 j=H[Y];this.checkLValInnerPattern(j,Q,Z)}break;case"ArrayPattern":for(var K=0,X=q.elements;K<X.length;K+=1){var W=X[K];if(W)this.checkLValInnerPattern(W,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};N8.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 P8=function(Q,Z,Y,H,j){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!Y,this.override=H,this.generator=!!j},q8={b_stat:new P8("{",!1),b_expr:new P8("{",!0),b_tmpl:new P8("${",!1),p_stat:new P8("(",!1),p_expr:new P8("(",!0),q_tmpl:new P8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new P8("function",!1),f_expr:new P8("function",!0),f_expr_gen:new P8("function",!0,!1,null,!0),f_gen:new P8("function",!1,!1,null,!0)},F1=Z8.prototype;F1.initialContext=function(){return[q8.b_stat]};F1.curContext=function(){return this.context[this.context.length-1]};F1.braceIsBlock=function(q){var Q=this.curContext();if(Q===q8.f_expr||Q===q8.f_stat)return!0;if(q===G.colon&&(Q===q8.b_stat||Q===q8.b_expr))return!Q.isExpr;if(q===G._return||q===G.name&&this.exprAllowed)return B8.test(this.input.slice(this.lastTokEnd,this.start));if(q===G._else||q===G.semi||q===G.eof||q===G.parenR||q===G.arrow)return!0;if(q===G.braceL)return Q===q8.b_stat;if(q===G._var||q===G._const||q===G.name)return!1;return!this.exprAllowed};F1.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};F1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===G.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};F1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};G.parenR.updateContext=G.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};G.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?q8.b_stat:q8.b_expr),this.exprAllowed=!0};G.dollarBraceL.updateContext=function(){this.context.push(q8.b_tmpl),this.exprAllowed=!0};G.parenL.updateContext=function(q){var Q=q===G._if||q===G._for||q===G._with||q===G._while;this.context.push(Q?q8.p_stat:q8.p_expr),this.exprAllowed=!0};G.incDec.updateContext=function(){};G._function.updateContext=G._class.updateContext=function(q){if(q.beforeExpr&&q!==G._else&&!(q===G.semi&&this.curContext()!==q8.p_stat)&&!(q===G._return&&B8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===G.colon||q===G.braceL)&&this.curContext()===q8.b_stat))this.context.push(q8.f_expr);else this.context.push(q8.f_stat);this.exprAllowed=!1};G.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};G.backQuote.updateContext=function(){if(this.curContext()===q8.q_tmpl)this.context.pop();else this.context.push(q8.q_tmpl);this.exprAllowed=!1};G.star.updateContext=function(q){if(q===G._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};G.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==G.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var m=Z8.prototype;m.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 j=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&j==="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 X;if(j==="init")X=this.strict&&K.init||K.get||K.set;else X=K.init||K[j];if(X)this.raiseRecoverable(Y.start,"Redefinition of property")}else K=Q[H]={init:!1,get:!1,set:!1};K[j]=!0};m.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Z,j=Z.parseMaybeAssign(q,Q);if(Z.type===G.comma){var K=Z.startNodeAt(Y,H);K.expressions=[j];while(Z.eat(G.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return j})};m.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,j=-1,K=-1;if(Q)H=Q.parenthesizedAssign,j=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new L0,Y=!0;var X=this.start,W=this.startLoc;if(this.type===G.parenL||this.type===G.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var B=this.parseMaybeConditional(q,Q);if(Z)B=Z.call(this,B,X,W);if(this.type.isAssign){var U=this.startNodeAt(X,W);if(U.operator=this.value,this.type===G.eq)B=this.toAssignable(B,!1,Q);if(!Y)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=B.start)Q.shorthandAssign=-1;if(this.type===G.eq)this.checkLValPattern(B);else this.checkLValSimple(B);if(U.left=B,this.next(),U.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(U,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Q,!0);if(H>-1)Q.parenthesizedAssign=H;if(j>-1)Q.trailingComma=j;return B};m.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(G.question)){var j=this.startNodeAt(Z,Y);return j.test=H,j.consequent=this.parseMaybeAssign(),this.expect(G.colon),j.alternate=this.parseMaybeAssign(q),this.finishNode(j,"ConditionalExpression")}return H};m.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)};m.parseExprOp=function(q,Q,Z,Y,H){var j=this.type.binop;if(j!=null&&(!H||this.type!==G._in)){if(j>Y){var K=this.type===G.logicalOR||this.type===G.logicalAND,X=this.type===G.coalesce;if(X)j=G.logicalAND.binop;var W=this.value;this.next();var B=this.start,U=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),B,U,j,H),w=this.buildBinary(Q,Z,q,$,W,K||X);if(K&&this.type===G.coalesce||X&&(this.type===G.logicalOR||this.type===G.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(w,Q,Z,Y,H)}}return q};m.buildBinary=function(q,Q,Z,Y,H,j){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,j?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(q,Q,Z,Y){var H=this.start,j=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(Y),Q=!0;else if(this.type.prefix){var X=this.startNode(),W=this.type===G.incDec;if(X.operator=this.value,X.prefix=!0,this.next(),X.argument=this.parseMaybeUnary(null,!0,W,Y),this.checkExpressionErrors(q,!0),W)this.checkLValSimple(X.argument);else if(this.strict&&X.operator==="delete"&&$2(X.argument))this.raiseRecoverable(X.start,"Deleting local variable in strict mode");else if(X.operator==="delete"&&D9(X.argument))this.raiseRecoverable(X.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(X,W?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===G.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(K=this.parsePrivateIdent(),this.type!==G._in)this.unexpected()}else{if(K=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var B=this.startNodeAt(H,j);B.operator=this.value,B.prefix=!1,B.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(B,"UpdateExpression")}}if(!Z&&!(K.type==="ArrowFunctionExpression"&&K.start===H)&&this.eat(G.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(H,j,K,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return K};function $2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&$2(q.expression)}function D9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&D9(q.expression)||q.type==="ParenthesizedExpression"&&D9(q.expression)}m.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 j=this.parseSubscripts(H,Z,Y,!1,Q);if(q&&j.type==="MemberExpression"){if(q.parenthesizedAssign>=j.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=j.start)q.parenthesizedBind=-1;if(q.trailingComma>=j.start)q.trailingComma=-1}return j};m.parseSubscripts=function(q,Q,Z,Y,H){var j=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 X=this.parseSubscript(q,Q,Z,Y,j,K,H);if(X.optional)K=!0;if(X===q||X.type==="ArrowFunctionExpression"){if(K){var W=this.startNodeAt(Q,Z);W.expression=X,X=this.finishNode(W,"ChainExpression")}return X}q=X}};m.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(G.arrow)};m.parseSubscriptAsyncArrow=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,Y)};m.parseSubscript=function(q,Q,Z,Y,H,j,K){var X=this.options.ecmaVersion>=11,W=X&&this.eat(G.questionDot);if(Y&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var B=this.eat(G.bracketL);if(B||W&&this.type!==G.parenL&&this.type!==G.backQuote||this.eat(G.dot)){var U=this.startNodeAt(Q,Z);if(U.object=q,B)U.property=this.parseExpression(),this.expect(G.bracketR);else if(this.type===G.privateId&&q.type!=="Super")U.property=this.parsePrivateIdent();else U.property=this.parseIdent(this.options.allowReserved!=="never");if(U.computed=!!B,X)U.optional=W;q=this.finishNode(U,"MemberExpression")}else if(!Y&&this.eat(G.parenL)){var $=new L0,w=this.yieldPos,R=this.awaitPos,I=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1,$);if(H&&!W&&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=w,this.awaitPos=R,this.awaitIdentPos=I,this.parseSubscriptAsyncArrow(Q,Z,D,K)}this.checkExpressionErrors($,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=R||this.awaitPos,this.awaitIdentPos=I||this.awaitIdentPos;var L=this.startNodeAt(Q,Z);if(L.callee=q,L.arguments=D,X)L.optional=W;q=this.finishNode(L,"CallExpression")}else if(this.type===G.backQuote){if(W||j)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(Q,Z);b.tag=q,b.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(b,"TaggedTemplateExpression")}return q};m.parseExprAtom=function(q,Q,Z){if(this.type===G.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case G._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===G.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==G.dot&&this.type!==G.bracketL&&this.type!==G.parenL)this.unexpected();return this.finishNode(Y,"Super");case G._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case G.name:var j=this.start,K=this.startLoc,X=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!X&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(G._function))return this.overrideContext(q8.f_expr),this.parseFunction(this.startNodeAt(j,K),0,!1,!0,Q);if(H&&!this.canInsertSemicolon()){if(this.eat(G.arrow))return this.parseArrowExpression(this.startNodeAt(j,K),[W],!1,Q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===G.name&&!X&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(G.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(j,K),[W],!0,Q)}}return W;case G.regexp:var B=this.value;return Y=this.parseLiteral(B.value),Y.regex={pattern:B.pattern,flags:B.flags},Y;case G.num:case G.string:return this.parseLiteral(this.value);case G._null:case G._true:case G._false:return Y=this.startNode(),Y.value=this.type===G._null?null:this.type===G._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case G.parenL:var U=this.start,$=this.parseParenAndDistinguishExpression(H,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=U;if(q.parenthesizedBind<0)q.parenthesizedBind=U}return $;case G.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(G.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case G.braceL:return this.overrideContext(q8.b_expr),this.parseObj(!1,q);case G._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case G._class:return this.parseClass(this.startNode(),!1);case G._new:return this.parseNew();case G.backQuote:return this.parseTemplate();case G._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};m.parseExprAtomDefault=function(){this.unexpected()};m.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===G.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===G.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()};m.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(G.parenR))if(this.expect(G.comma),!this.afterTrailingComma(G.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(G.parenR)){if(this.expect(G.comma),!this.afterTrailingComma(G.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(G.parenR)){var Q=this.start;if(this.eat(G.comma)&&this.eat(G.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};m.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")};m.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")};m.parseParenExpression=function(){this.expect(G.parenL);var q=this.parseExpression();return this.expect(G.parenR),q};m.shouldParseArrow=function(q){return!this.canInsertSemicolon()};m.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,Y=this.startLoc,H,j=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,X=this.startLoc,W=[],B=!0,U=!1,$=new L0,w=this.yieldPos,R=this.awaitPos,I;this.yieldPos=0,this.awaitPos=0;while(this.type!==G.parenR)if(B?B=!1:this.expect(G.comma),j&&this.afterTrailingComma(G.parenR,!0)){U=!0;break}else if(this.type===G.ellipsis){if(I=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===G.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var D=this.lastTokEnd,L=this.lastTokEndLoc;if(this.expect(G.parenR),q&&this.shouldParseArrow(W)&&this.eat(G.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=w,this.awaitPos=R,this.parseParenArrowList(Z,Y,W,Q);if(!W.length||U)this.unexpected(this.lastTokStart);if(I)this.unexpected(I);if(this.checkExpressionErrors($,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=R||this.awaitPos,W.length>1)H=this.startNodeAt(K,X),H.expressions=W,this.finishNodeAt(H,"SequenceExpression",D,L);else H=W[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(Z,Y);return b.expression=H,this.finishNode(b,"ParenthesizedExpression")}else return H};m.parseParenItem=function(q){return q};m.parseParenArrowList=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,Y)};var mq=[];m.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===G.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(G.parenL))q.arguments=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=mq;return this.finishNode(q,"NewExpression")};m.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===G.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
|
|
25
|
+
https://svelte.dev/e/element_implicitly_closed`)}function n7(q){E1(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 a7(q){E1(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/,r7={"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"},v1=p7.concat(h7);function t7(q,Q,Z){let Y=Dq.exec(Q);if(!Y)return[];let H=Y[0].length;q+=H;let j=[];if(Z)for(let K of Q.slice(H).matchAll(/([\w$-]+)(,)?/gm)){let X=K[1];if(v1.includes(X))j.push(X);else{let W=r7[X]??X.replace(/-/g,"_"),B=q+K.index,U=B+X.length;if(v1.includes(W))o7({start:B,end:U},X,W);else{let $=B9(X,v1);s7({start:B,end:U},X,$)}}if(!K[2])break}else for(let K of Q.slice(H).matchAll(/[\w$-]+/gm)){let X=K[0];if(j.push(X),!v1.includes(X)){let W=r7[X]??X.replace(/-/g,"_");if(v1.includes(W))j.push(W)}}return j}function K1(q){let Q=q.at(0),Z=q.at(-1);if(Q?.type==="Text")if(!U9.test(Q.data))q.shift();else Q.data=Q.data.replace(b7,"");if(Z?.type==="Text")if(!U9.test(Z.data))q.pop();else Z.data=Z.data.replace(T7,"")}function e7(q,Q){return c8(Q,null,{_(Y,{next:H}){delete Y.metadata,H()},Root(Y,{visit:H}){let{instance:j,module:K,options:X}=Y;if(X?.__raw__){let U=Y.fragment.nodes.findIndex(($)=>X.end<=$.start);if(U===-1)U=Y.fragment.nodes.length;Y.fragment.nodes.splice(U,0,X.__raw__)}let W=null,B=null;if(Y.fragment.nodes.length>0){let U=Y.fragment.nodes.at(0),$=Y.fragment.nodes.at(-1);W=U.start,B=$.end;while(/\s/.test(q[W]))W+=1;while(/\s/.test(q[B-1]))B-=1}if(j)delete j.attributes;if(K)delete K.attributes;return{html:{type:"Fragment",start:W,end:B,children:Y.fragment.nodes.map((U)=>H(U))},instance:j,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 j={type:"PendingBlock",start:null,end:null,children:Y.pending?.nodes.map((W)=>H(W))??[],skip:!0},K={type:"ThenBlock",start:null,end:null,children:Y.then?.nodes.map((W)=>H(W))??[],skip:!0},X={type:"CatchBlock",start:null,end:null,children:Y.catch?.nodes.map((W)=>H(W))??[],skip:!0};if(Y.pending){let W=Y.pending.nodes.at(0),B=Y.pending.nodes.at(-1);j.start=W?.start??q.indexOf("}",Y.expression.end)+1,j.end=B?.end??j.start,j.skip=!1}if(Y.then){let W=Y.then.nodes.at(0),B=Y.then.nodes.at(-1);K.start=j.end??W?.start??q.indexOf("}",Y.expression.end)+1,K.end=B?.end??q.lastIndexOf("}",j.end??Y.expression.end)+1,K.skip=!1}if(Y.catch){let W=Y.catch.nodes.at(0),B=Y.catch.nodes.at(-1);X.start=K.end??j.end??W?.start??q.indexOf("}",Y.expression.end)+1,X.end=B?.end??q.lastIndexOf("}",K.end??j.end??Y.expression.end)+1,X.skip=!1}return{type:"AwaitBlock",start:Y.start,end:Y.end,expression:Y.expression,value:Y.value,error:Y.error,pending:j,then:K,catch:X}},BindDirective(Y){return{...Y,type:"Binding"}},ClassDirective(Y){return{...Y,type:"Class"}},Comment(Y){return{...Y,ignores:t7(Y.start,Y.data,!1)}},ComplexSelector(Y,{next:H}){H();let j=[];for(let K of Y.children){if(K.combinator)j.push(K.combinator);j.push(...K.selectors)}return{type:"Selector",start:Y.start,end:Y.end,children:j}},Component(Y,{visit:H}){return{type:"InlineComponent",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},ConstTag(Y){if(Y.expression!==void 0)return Y;let H=Y,{id:j}={...H.declaration.declarations[0]};return delete j.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:j,right:H.declaration.declarations[0].init}}},DeclarationTag(Y){return Y},KeyBlock(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"KeyBlock",start:Y.start,end:Y.end,expression:Y.expression,children:Y.fragment.nodes.map((j)=>H(j))}},EachBlock(Y,{visit:H}){let j=void 0;if(Y.fallback){let K=Y.fallback.nodes.at(0),X=q.lastIndexOf("{",Y.end-1),W=K?.start??X;K1(Y.fallback.nodes),j={type:"ElseBlock",start:W,end:X,children:Y.fallback.nodes.map((B)=>H(B))}}return K1(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:j}},ExpressionTag(Y,{path:H}){let j=H.at(-1);if(j?.type==="Attribute"){if(q[j.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 j=void 0;if(Y.alternate){let X=Y.alternate.nodes;if(X.length===1&&X[0].type==="IfBlock"&&X[0].elseif)X=X[0].consequent.nodes;let W=q.lastIndexOf("{",Y.end-1),B=X.at(0)?.start??W;K1(Y.alternate.nodes),j={type:"ElseBlock",start:B,end:W,children:Y.alternate.nodes.map((U)=>H(U))}}let K=Y.elseif?Y.consequent.nodes[0]?.start??q.lastIndexOf("{",Y.end-1):Y.start;return K1(Y.consequent.nodes),{type:"IfBlock",start:K,end:Y.end,expression:Y.test,children:Y.consequent.nodes.map((X)=>H(X)),else:j,elseif:Y.elseif?!0:void 0}},OnDirective(Y){return{...Y,type:"EventHandler"}},SnippetBlock(Y,{visit:H}){return K1(Y.body.nodes),{type:"SnippetBlock",start:Y.start,end:Y.end,expression:Y.expression,parameters:Y.parameters,children:Y.body.nodes.map((j)=>H(j)),typeParams:Y.typeParams}},SvelteBoundary(Y,{visit:H}){return K1(Y.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},RegularElement(Y,{visit:H}){return{type:"Element",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SlotElement(Y,{visit:H}){return{type:"Slot",start:Y.start,end:Y.end,name:Y.name,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},Attribute(Y,{visit:H,next:j,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let X=[H(Y.value)];return K.pop(),{...Y,value:X}}else return j()},StyleDirective(Y,{visit:H,next:j,path:K}){if(Y.value!==!0&&!Array.isArray(Y.value)){K.push(Y);let X=[H(Y.value)];return K.pop(),{...Y,value:X}}else return j()},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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteComponent(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:component",start:Y.start,end:Y.end,expression:Y.expression,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteDocument(Y,{visit:H}){return{type:"Document",name:"svelte:document",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteElement(Y,{visit:H}){let j=Y.tag;if(j.type==="Literal"&&typeof j.value==="string"&&q[Y.tag.start-1]!=="{")j=j.value;return{type:"Element",name:"svelte:element",start:Y.start,end:Y.end,tag:j,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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteHead(Y,{visit:H}){return{type:"Head",name:"svelte:head",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteOptions(Y,{visit:H}){return{type:"Options",name:"svelte:options",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j))}},SvelteSelf(Y,{visit:H}){return{type:"InlineComponent",name:"svelte:self",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},SvelteWindow(Y,{visit:H}){return{type:"Window",name:"svelte:window",start:Y.start,end:Y.end,attributes:Y.attributes.map((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},Text(Y,{path:H}){let j=H.at(-1);if(j?.type==="RegularElement"&&j.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((j)=>H(j)),children:Y.fragment.nodes.map((j)=>H(j))}},TransitionDirective(Y){return{...Y,type:"Transition"}},UseDirective(Y){return{...Y,type:"Action"}},LetDirective(Y){return{...Y,type:"Let"}}})}var P0={};t4(P0,{version:()=>u2,tokenizer:()=>zQ,tokTypes:()=>G,tokContexts:()=>q8,parseExpressionAt:()=>WQ,parse:()=>XQ,nonASCIIwhitespace:()=>N9,lineBreakG:()=>j2,lineBreak:()=>B8,keywordTypes:()=>w0,isNewLine:()=>V1,isIdentifierStart:()=>$8,isIdentifierChar:()=>h8,getLineInfo:()=>b9,defaultOptions:()=>B0,TokenType:()=>o,Token:()=>S0,TokContext:()=>P8,SourceLocation:()=>f1,Position:()=>O1,Parser:()=>Z8,Node:()=>_1});var kq=[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],H2=[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],Nq="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",J2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",L9={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"},I9="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:I9,"5module":I9+" export import",6:I9+" const class extends export import super"},K2=/^in(stanceof)?$/,Tq=new RegExp("["+J2+"]"),Eq=new RegExp("["+J2+Nq+"]");function S9(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 $8(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&&Tq.test(String.fromCharCode(q));if(Q===!1)return!1;return S9(q,H2)}function h8(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 S9(q,H2)||S9(q,kq)}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 I8(q,Q){return new o(q,{beforeExpr:!0,binop:Q})}var S8={beforeExpr:!0},F8={startsExpr:!0},w0={};function i(q,Q){if(Q===void 0)Q={};return Q.keyword=q,w0[q]=new o(q,Q)}var G={num:new o("num",F8),regexp:new o("regexp",F8),string:new o("string",F8),name:new o("name",F8),privateId:new o("privateId",F8),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(",",S8),semi:new o(";",S8),colon:new o(":",S8),dot:new o("."),question:new o("?",S8),questionDot:new o("?."),arrow:new o("=>",S8),template:new o("template"),invalidTemplate:new o("invalidTemplate"),ellipsis:new o("...",S8),backQuote:new o("`",F8),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:I8("||",1),logicalAND:I8("&&",2),bitwiseOR:I8("|",3),bitwiseXOR:I8("^",4),bitwiseAND:I8("&",5),equality:I8("==/!=/===/!==",6),relational:I8("</>/<=/>=",7),bitShift:I8("<</>>/>>>",8),plusMin:new o("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:I8("%",10),star:I8("*",10),slash:I8("/",10),starstar:new o("**",{beforeExpr:!0}),coalesce:I8("??",1),_break:i("break"),_case:i("case",S8),_catch:i("catch"),_continue:i("continue"),_debugger:i("debugger"),_default:i("default",S8),_do:i("do",{isLoop:!0,beforeExpr:!0}),_else:i("else",S8),_finally:i("finally"),_for:i("for",{isLoop:!0}),_function:i("function",F8),_if:i("if"),_return:i("return",S8),_switch:i("switch"),_throw:i("throw",S8),_try:i("try"),_var:i("var"),_const:i("const"),_while:i("while",{isLoop:!0}),_with:i("with"),_new:i("new",{beforeExpr:!0,startsExpr:!0}),_this:i("this",F8),_super:i("super",F8),_class:i("class",F8),_extends:i("extends",S8),_export:i("export"),_import:i("import",F8),_null:i("null",F8),_true:i("true",F8),_false:i("false",F8),_in:i("in",{beforeExpr:!0,binop:7}),_instanceof:i("instanceof",{beforeExpr:!0,binop:7}),_typeof:i("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:i("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:i("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},B8=/\r\n?|\n|\u2028|\u2029/,j2=new RegExp(B8.source,"g");function V1(q){return q===10||q===13||q===8232||q===8233}function V2(q,Q,Z){if(Z===void 0)Z=q.length;for(var Y=Q;Y<Z;Y++){var H=q.charCodeAt(Y);if(V1(H))return Y<Z-1&&H===13&&q.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var N9=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,V8=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,X2=Object.prototype,vq=X2.hasOwnProperty,hq=X2.toString,B1=Object.hasOwn||function(q,Q){return vq.call(q,Q)},q2=Array.isArray||function(q){return hq.call(q)==="[object Array]"},Q2=Object.create(null);function r8(q){return Q2[q]||(Q2[q]=new RegExp("^(?:"+q.replace(/ /g,"|")+")$"))}function d8(q){if(q<=65535)return String.fromCharCode(q);return q-=65536,String.fromCharCode((q>>10)+55296,(q&1023)+56320)}var yq=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,O1=function(Q,Z){this.line=Q,this.column=Z};O1.prototype.offset=function(Q){return new O1(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 b9(q,Q){for(var Z=1,Y=0;;){var H=V2(q,Y,Q);if(H<0)return new O1(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,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z2=!1;function fq(q){var Q={};for(var Z in B0)Q[Z]=q&&B1(q,Z)?q[Z]:B0[Z];if(Q.ecmaVersion==="latest")Q.ecmaVersion=1e8;else if(Q.ecmaVersion==null){if(!Z2&&typeof console==="object"&&console.warn)Z2=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
26
|
+
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(q2(Q.onToken)){var Y=Q.onToken;Q.onToken=function(H){return Y.push(H)}}if(q2(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,j,K,X){var W={type:Z?"Block":"Line",value:Y,start:H,end:j};if(q.locations)W.loc=new f1(this,K,X);if(q.ranges)W.range=[H,j];Q.push(W)}}var j1=1,X1=2,T9=4,W2=8,E9=16,z2=32,A0=64,U2=128,W1=256,g1=512,G2=1024,C0=j1|X1|W1;function v9(q,Q){return X1|(q?T9:0)|(Q?W2:0)}var F0=0,h9=1,p8=2,O2=3,B2=4,F2=5,Z8=function(Q,Z,Y){this.options=Q=fq(Q),this.sourceFile=Q.sourceFile,this.keywords=r8(bq[Q.ecmaVersion>=6?6:Q.sourceType==="module"?"5module":5]);var H="";if(Q.allowReserved!==!0){if(H=L9[Q.ecmaVersion>=6?6:Q.ecmaVersion===5?5:3],Q.sourceType==="module")H+=" await"}this.reservedWords=r8(H);var j=(H?H+" ":"")+L9.strict;if(this.reservedWordsStrict=r8(j),this.reservedWordsStrictBind=r8(j+" "+L9.strictBind),this.input=String(Z),this.containsEsc=!1,this.pos=Y||0,this.curLine=1,Q.startLocation)this.lineStart=this.pos-Q.startLocation.column,this.curLine=Q.startLocation.line;else if(Y){if(this.lineStart=this.input.lastIndexOf(`
|
|
27
|
+
`,Y-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(B8).length}else this.lineStart=0;if(this.type=G.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"?X1:j1),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}};Z8.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&X1)>0};k8.inGenerator.get=function(){return(this.currentVarScope().flags&W2)>0};k8.inAsync.get=function(){return(this.currentVarScope().flags&T9)>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&(W1|g1))return!1;if(Z&X1)return(Z&T9)>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&j1)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&U2)>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&(W1|g1)||Z&X1&&!(Z&E9))return!0}return!1};k8.allowUsing.get=function(){var q=this.currentScope(),Q=q.flags;if(Q&G2)return!1;if(!this.inModule&&Q&j1)return!1;return!0};k8.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W1)>0};Z8.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};Z8.parse=function(Q,Z){return new this(Z,Q).parse()};Z8.parseExpressionAt=function(Q,Z,Y){var H=new this(Y,Q,Z);return H.nextToken(),H.parseExpression()};Z8.tokenizer=function(Q,Z){return new this(Z,Q)};Object.defineProperties(Z8.prototype,k8);var O8=Z8.prototype,_q=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;O8.strictDirective=function(q){if(this.options.ecmaVersion<5)return!1;for(;;){V8.lastIndex=q,q+=V8.exec(this.input)[0].length;var Q=_q.exec(this.input.slice(q));if(!Q)return!1;if((Q[1]||Q[2])==="use strict"){V8.lastIndex=q+Q[0].length;var Z=V8.exec(this.input),Y=Z.index+Z[0].length,H=this.input.charAt(Y);return H===";"||H==="}"||B8.test(Z[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(H)||H==="!"&&this.input.charAt(Y+1)==="=")}if(q+=Q[0].length,V8.lastIndex=q,q+=V8.exec(this.input)[0].length,this.input[q]===";")q++}};O8.eat=function(q){if(this.type===q)return this.next(),!0;else return!1};O8.isContextual=function(q){return this.type===G.name&&this.value===q&&!this.containsEsc};O8.eatContextual=function(q){if(!this.isContextual(q))return!1;return this.next(),!0};O8.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}};O8.expectContextual=function(q){if(!this.eatContextual(q))this.unexpected()};O8.canInsertSemicolon=function(){return this.type===G.eof||this.type===G.braceR||B8.test(this.input.slice(this.lastTokEnd,this.start))};O8.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};O8.semicolon=function(){if(!this.eat(G.semi)&&!this.insertSemicolon())this.unexpected()};O8.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}};O8.expect=function(q){this.eat(q)||this.unexpected()};O8.unexpected=function(q){this.raise(q!=null?q:this.start,"Unexpected token")};var L0=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};O8.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")};O8.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")};O8.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")};O8.isSimpleAssignTarget=function(q){if(q.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(q.expression);return q.type==="Identifier"||q.type==="MemberExpression"};var E=Z8.prototype;E.parseTopLevel=function(q){var Q=Object.create(null);if(!q.body)q.body=[];while(this.type!==G.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 j=H[Y];this.raiseRecoverable(this.undefinedExports[j].start,"Export '"+j+"' 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 y9={kind:"loop"},xq={kind:"switch"};E.isLet=function(q){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;V8.lastIndex=this.pos;var Q=V8.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($8(Y)){var H=Z;do Z+=Y<=65535?1:2;while(h8(Y=this.fullCharCodeAt(Z)));if(Y===92)return!0;var j=this.input.slice(H,Z);if(!K2.test(j))return!0}return!1};E.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;V8.lastIndex=this.pos;var q=V8.exec(this.input),Q=this.pos+q[0].length,Z;return!B8.test(this.input.slice(this.pos,Q))&&this.input.slice(Q,Q+8)==="function"&&(Q+8===this.input.length||!(h8(Z=this.fullCharCodeAt(Q+8))||Z===92))};E.isUsingKeyword=function(q,Q){if(this.options.ecmaVersion<17||!this.isContextual(q?"await":"using"))return!1;V8.lastIndex=this.pos;var Z=V8.exec(this.input),Y=this.pos+Z[0].length;if(B8.test(this.input.slice(this.pos,Y)))return!1;if(q){var H=Y+5,j;if(this.input.slice(Y,H)!=="using"||H===this.input.length||h8(j=this.fullCharCodeAt(H))||j===92)return!1;V8.lastIndex=H;var K=V8.exec(this.input);if(Y=H+K[0].length,K&&B8.test(this.input.slice(H,Y)))return!1}var X=this.fullCharCodeAt(Y);if(!$8(X)&&X!==92)return!1;var W=Y;do Y+=X<=65535?1:2;while(h8(X=this.fullCharCodeAt(Y)));if(X===92)return!0;var B=this.input.slice(W,Y);if(K2.test(B))return!1;if(Q&&!q&&B==="of"){V8.lastIndex=Y;var U=V8.exec(this.input);if(Y=Y+U[0].length,this.input.charCodeAt(Y)!==61||(X=this.input.charCodeAt(Y+1))===61||X===62)return!1}return!0};E.isAwaitUsing=function(q){return this.isUsingKeyword(!0,q)};E.isUsing=function(q){return this.isUsingKeyword(!1,q)};E.parseStatement=function(q,Q,Z){var Y=this.type,H=this.startNode(),j;if(this.isLet(q))Y=G._var,j="let";switch(Y){case G._break:case G._continue:return this.parseBreakContinueStatement(H,Y.keyword);case G._debugger:return this.parseDebuggerStatement(H);case G._do:return this.parseDoStatement(H);case G._for:return this.parseForStatement(H);case G._function:if(q&&(this.strict||q!=="if"&&q!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(H,!1,!q);case G._class:if(q)this.unexpected();return this.parseClass(H,!0);case G._if:return this.parseIfStatement(H);case G._return:return this.parseReturnStatement(H);case G._switch:return this.parseSwitchStatement(H);case G._throw:return this.parseThrowStatement(H);case G._try:return this.parseTryStatement(H);case G._const:case G._var:if(j=j||this.value,q&&j!=="var")this.unexpected();return this.parseVarStatement(H,j);case G._while:return this.parseWhileStatement(H);case G._with:return this.parseWithStatement(H);case G.braceL:return this.parseBlock(!0,H);case G.semi:return this.parseEmptyStatement(H);case G._export:case G._import:if(this.options.ecmaVersion>10&&Y===G._import){V8.lastIndex=this.pos;var K=V8.exec(this.input),X=this.pos+K[0].length,W=this.input.charCodeAt(X);if(W===40||W===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===G._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 B=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(B){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(B==="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,B),this.semicolon(),this.finishNode(H,"VariableDeclaration")}var U=this.value,$=this.parseExpression();if(Y===G.name&&$.type==="Identifier"&&this.eat(G.colon))return this.parseLabeledStatement(H,U,$,q);else return this.parseExpressionStatement(H,$)}};E.parseBreakContinueStatement=function(q,Q){var Z=Q==="break";if(this.next(),this.eat(G.semi)||this.insertSemicolon())q.label=null;else if(this.type!==G.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")};E.parseDebuggerStatement=function(q){return this.next(),this.semicolon(),this.finishNode(q,"DebuggerStatement")};E.parseDoStatement=function(q){if(this.next(),this.labels.push(y9),q.body=this.parseStatement("do"),this.labels.pop(),this.expect(G._while),q.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(G.semi);else this.semicolon();return this.finishNode(q,"DoWhileStatement")};E.parseForStatement=function(q){this.next();var Q=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(y9),this.enterScope(0),this.expect(G.parenL),this.type===G.semi){if(Q>-1)this.unexpected(Q);return this.parseFor(q,null)}var Z=this.isLet();if(this.type===G._var||this.type===G._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 j=this.isContextual("let"),K=!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 B=this.containsEsc,U=new L0,$=this.start,w=Q>-1?this.parseExprSubscripts(U,"await"):this.parseExpression(!0,U);if(this.type===G._in||(K=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(Q>-1){if(this.type===G._in)this.unexpected(Q);q.await=!0}else if(K&&this.options.ecmaVersion>=8){if(w.start===$&&!B&&w.type==="Identifier"&&w.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)q.await=!1}if(j&&K)this.raise(w.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(w,!1,U),this.checkLValPattern(w),this.parseForIn(q,w)}else this.checkExpressionErrors(U,!0);if(Q>-1)this.unexpected(Q);return this.parseFor(q,w)};E.parseForAfterInit=function(q,Q,Z){if((this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&Q.declarations.length===1){if(this.type===G._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)};E.parseFunctionStatement=function(q,Q,Z){return this.next(),this.parseFunction(q,y1|(Z?0:P9),!1,Q)};E.parseIfStatement=function(q){return this.next(),q.test=this.parseParenExpression(),q.consequent=this.parseStatement("if"),q.alternate=this.eat(G._else)?this.parseStatement("if"):null,this.finishNode(q,"IfStatement")};E.parseReturnStatement=function(q){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(G.semi)||this.insertSemicolon())q.argument=null;else q.argument=this.parseExpression(),this.semicolon();return this.finishNode(q,"ReturnStatement")};E.parseSwitchStatement=function(q){this.next(),q.discriminant=this.parseParenExpression(),q.cases=[],this.expect(G.braceL),this.labels.push(xq),this.enterScope(G2);var Q;for(var Z=!1;this.type!==G.braceR;)if(this.type===G._case||this.type===G._default){var Y=this.type===G._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(G.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")};E.parseThrowStatement=function(q){if(this.next(),B8.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=[];E.parseCatchClauseParam=function(){var q=this.parseBindingAtom(),Q=q.type==="Identifier";return this.enterScope(Q?z2:0),this.checkLValPattern(q,Q?B2:p8),this.expect(G.parenR),q};E.parseTryStatement=function(q){if(this.next(),q.block=this.parseBlock(),q.handler=null,this.type===G._catch){var Q=this.startNode();if(this.next(),this.eat(G.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(G._finally)?this.parseBlock():null,!q.handler&&!q.finalizer)this.raise(q.start,"Missing catch or finally clause");return this.finishNode(q,"TryStatement")};E.parseVarStatement=function(q,Q,Z){return this.next(),this.parseVar(q,!1,Q,Z),this.semicolon(),this.finishNode(q,"VariableDeclaration")};E.parseWhileStatement=function(q){return this.next(),q.test=this.parseParenExpression(),this.labels.push(y9),q.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(q,"WhileStatement")};E.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")};E.parseEmptyStatement=function(q){return this.next(),this.finishNode(q,"EmptyStatement")};E.parseLabeledStatement=function(q,Q,Z,Y){for(var H=0,j=this.labels;H<j.length;H+=1){var K=j[H];if(K.name===Q)this.raise(Z.start,"Label '"+Q+"' is already declared")}var X=this.type.isLoop?"loop":this.type===G._switch?"switch":null;for(var W=this.labels.length-1;W>=0;W--){var B=this.labels[W];if(B.statementStart===q.start)B.statementStart=this.start,B.kind=X;else break}return this.labels.push({name:Q,kind:X,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")};E.parseExpressionStatement=function(q,Q){return q.expression=Q,this.semicolon(),this.finishNode(q,"ExpressionStatement")};E.parseBlock=function(q,Q,Z){if(q===void 0)q=!0;if(Q===void 0)Q=this.startNode();if(Q.body=[],this.expect(G.braceL),q)this.enterScope(0);while(this.type!==G.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")};E.parseFor=function(q,Q){return q.init=Q,this.expect(G.semi),q.test=this.type===G.semi?null:this.parseExpression(),this.expect(G.semi),q.update=this.type===G.parenR?null:this.parseExpression(),this.expect(G.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,"ForStatement")};E.parseForIn=function(q,Q){var Z=this.type===G._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(G.parenR),q.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(q,Z?"ForInStatement":"ForOfStatement")};E.parseVar=function(q,Q,Z,Y){q.declarations=[],q.kind=Z;for(;;){var H=this.startNode();if(this.parseVarId(H,Z),this.eat(G.eq))H.init=this.parseMaybeAssign(Q);else if(!Y&&Z==="const"&&!(this.type===G._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!Y&&(Z==="using"||Z==="await using")&&this.options.ecmaVersion>=17&&this.type!==G._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+Z+" declaration");else if(!Y&&H.id.type!=="Identifier"&&!(Q&&(this.type===G._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(G.comma))break}return q};E.parseVarId=function(q,Q){q.id=Q==="using"||Q==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(q.id,Q==="var"?h9:p8,!1)};var y1=1,P9=2,R2=4;E.parseFunction=function(q,Q,Z,Y,H){if(this.initFunction(q),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y){if(this.type===G.star&&Q&P9)this.unexpected();q.generator=this.eat(G.star)}if(this.options.ecmaVersion>=8)q.async=!!Y;if(Q&y1){if(q.id=Q&R2&&this.type!==G.name?null:this.parseIdent(),q.id&&!(Q&P9))this.checkLValSimple(q.id,this.strict||q.generator||q.async?this.treatFunctionsAsVar?h9:p8:O2)}var j=this.yieldPos,K=this.awaitPos,X=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(v9(q.async,q.generator)),!(Q&y1))q.id=this.type===G.name?this.parseIdent():null;return this.parseFunctionParams(q),this.parseFunctionBody(q,Z,!1,H),this.yieldPos=j,this.awaitPos=K,this.awaitIdentPos=X,this.finishNode(q,Q&y1?"FunctionDeclaration":"FunctionExpression")};E.parseFunctionParams=function(q){this.expect(G.parenL),q.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};E.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(),j=!1;H.body=[],this.expect(G.braceL);while(this.type!==G.braceR){var K=this.parseClassElement(q.superClass!==null);if(K){if(H.body.push(K),K.type==="MethodDefinition"&&K.kind==="constructor"){if(j)this.raiseRecoverable(K.start,"Duplicate constructor in the same class");j=!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")};E.parseClassElement=function(q){if(this.eat(G.semi))return null;var Q=this.options.ecmaVersion,Z=this.startNode(),Y="",H=!1,j=!1,K="method",X=!1;if(this.eatContextual("static")){if(Q>=13&&this.eat(G.braceL))return this.parseClassStaticBlock(Z),Z;if(this.isClassElementNameStart()||this.type===G.star)X=!0;else Y="static"}if(Z.static=X,!Y&&Q>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===G.star)&&!this.canInsertSemicolon())j=!0;else Y="async";if(!Y&&(Q>=9||!j)&&this.eat(G.star))H=!0;if(!Y&&!j&&!H){var W=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())K=W;else Y=W}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===G.parenL||K!=="method"||H||j){var B=!Z.static&&R0(Z,"constructor"),U=B&&q;if(B&&K!=="method")this.raise(Z.key.start,"Constructor can't have get/set modifier");Z.kind=B?"constructor":K,this.parseClassMethod(Z,H,j,U)}else this.parseClassField(Z);return Z};E.isClassElementNameStart=function(){return this.type===G.name||this.type===G.privateId||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword};E.parseClassElementName=function(q){if(this.type===G.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)};E.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&&R0(q,"prototype"))this.raise(H.start,"Classes may not have a static property named prototype");var j=q.value=this.parseMethod(Q,Z,Y);if(q.kind==="get"&&j.params.length!==0)this.raiseRecoverable(j.start,"getter should have no params");if(q.kind==="set"&&j.params.length!==1)this.raiseRecoverable(j.start,"setter should have exactly one param");if(q.kind==="set"&&j.params[0].type==="RestElement")this.raiseRecoverable(j.params[0].start,"Setter cannot use rest params");return this.finishNode(q,"MethodDefinition")};E.parseClassField=function(q){if(R0(q,"constructor"))this.raise(q.key.start,"Classes can't have a field named 'constructor'");else if(q.static&&R0(q,"prototype"))this.raise(q.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(G.eq))this.enterScope(g1|A0),q.value=this.parseMaybeAssign(),this.exitScope();else q.value=null;return this.semicolon(),this.finishNode(q,"PropertyDefinition")};E.parseClassStaticBlock=function(q){q.body=[];var Q=this.labels;this.labels=[],this.enterScope(W1|A0);while(this.type!==G.braceR){var Z=this.parseStatement(null);q.body.push(Z)}return this.next(),this.exitScope(),this.labels=Q,this.finishNode(q,"StaticBlock")};E.parseClassId=function(q,Q){if(this.type===G.name){if(q.id=this.parseIdent(),Q)this.checkLValSimple(q.id,p8,!1)}else{if(Q===!0)this.unexpected();q.id=null}};E.parseClassSuper=function(q){q.superClass=this.eat(G._extends)?this.parseExprSubscripts(null,!1):null};E.enterClassBody=function(){var q={declared:Object.create(null),used:[]};return this.privateNameStack.push(q),q.declared};E.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 j=0;j<Z.length;++j){var K=Z[j];if(!B1(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 R0(q,Q){var{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}E.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!==G.string)this.unexpected();if(q.source=this.parseExprAtom(),this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ExportAllDeclaration")};E.parseExport=function(q,Q){if(this.next(),this.eat(G.star))return this.parseExportAllDeclaration(q,Q);if(this.eat(G._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!==G.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")};E.parseExportDeclaration=function(q){return this.parseStatement(null)};E.parseExportDefaultDeclaration=function(){var q;if(this.type===G._function||(q=this.isAsyncFunction())){var Q=this.startNode();if(this.next(),q)this.next();return this.parseFunction(Q,y1|R2,!1,q)}else if(this.type===G._class){var Z=this.startNode();return this.parseClass(Z,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}};E.checkExport=function(q,Q,Z){if(!q)return;if(typeof Q!=="string")Q=Q.type==="Identifier"?Q.name:Q.value;if(B1(q,Q))this.raiseRecoverable(Z,"Duplicate export '"+Q+"'");q[Q]=!0};E.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 j=H[Y];this.checkPatternExport(q,j)}else if(Z==="ArrayPattern")for(var K=0,X=Q.elements;K<X.length;K+=1){var W=X[K];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)};E.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)}};E.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};E.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")};E.parseExportSpecifiers=function(q){var Q=[],Z=!0;this.expect(G.braceL);while(!this.eat(G.braceR)){if(!Z){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Z=!1;Q.push(this.parseExportSpecifier(q))}return Q};E.parseImport=function(q){if(this.next(),this.type===G.string)q.specifiers=uq,q.source=this.parseExprAtom();else q.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),q.source=this.type===G.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)q.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(q,"ImportDeclaration")};E.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,p8),this.finishNode(q,"ImportSpecifier")};E.parseImportDefaultSpecifier=function(){var q=this.startNode();return q.local=this.parseIdent(),this.checkLValSimple(q.local,p8),this.finishNode(q,"ImportDefaultSpecifier")};E.parseImportNamespaceSpecifier=function(){var q=this.startNode();return this.next(),this.expectContextual("as"),q.local=this.parseIdent(),this.checkLValSimple(q.local,p8),this.finishNode(q,"ImportNamespaceSpecifier")};E.parseImportSpecifiers=function(){var q=[],Q=!0;if(this.type===G.name){if(q.push(this.parseImportDefaultSpecifier()),!this.eat(G.comma))return q}if(this.type===G.star)return q.push(this.parseImportNamespaceSpecifier()),q;this.expect(G.braceL);while(!this.eat(G.braceR)){if(!Q){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Q=!1;q.push(this.parseImportSpecifier())}return q};E.parseWithClause=function(){var q=[];if(!this.eat(G._with))return q;this.expect(G.braceL);var Q={},Z=!0;while(!this.eat(G.braceR)){if(!Z){if(this.expect(G.comma),this.afterTrailingComma(G.braceR))break}else Z=!1;var Y=this.parseImportAttribute(),H=Y.key.type==="Identifier"?Y.key.name:Y.key.value;if(B1(Q,H))this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+H+"'");Q[H]=!0,q.push(Y)}return q};E.parseImportAttribute=function(){var q=this.startNode();if(q.key=this.type===G.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(G.colon),this.type!==G.string)this.unexpected();return q.value=this.parseExprAtom(),this.finishNode(q,"ImportAttribute")};E.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===G.string){var q=this.parseLiteral(this.value);if(yq.test(q.value))this.raise(q.start,"An export name cannot include a lone surrogate.");return q}return this.parseIdent(!0)};E.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)};E.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 N8=Z8.prototype;N8.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 j=H[Y];if(this.toAssignable(j,Q),j.type==="RestElement"&&(j.argument.type==="ArrayPattern"||j.argument.type==="ObjectPattern"))this.raise(j.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};N8.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 j=q[Z-1];if(this.options.ecmaVersion===6&&Q&&j&&j.type==="RestElement"&&j.argument.type!=="Identifier")this.unexpected(j.argument.start)}return q};N8.parseSpread=function(q){var Q=this.startNode();return this.next(),Q.argument=this.parseMaybeAssign(!1,q),this.finishNode(Q,"SpreadElement")};N8.parseRestBinding=function(){var q=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==G.name)this.unexpected();return q.argument=this.parseBindingAtom(),this.finishNode(q,"RestElement")};N8.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case G.bracketL:var q=this.startNode();return this.next(),q.elements=this.parseBindingList(G.bracketR,!0,!0),this.finishNode(q,"ArrayPattern");case G.braceL:return this.parseObj(!0)}return this.parseIdent()};N8.parseBindingList=function(q,Q,Z,Y){var H=[],j=!0;while(!this.eat(q)){if(j)j=!1;else this.expect(G.comma);if(Q&&this.type===G.comma)H.push(null);else if(Z&&this.afterTrailingComma(q))break;else if(this.type===G.ellipsis){var K=this.parseRestBinding();if(this.parseBindingListItem(K),H.push(K),this.type===G.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};N8.parseAssignableListItem=function(q){var Q=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(Q),Q};N8.parseBindingListItem=function(q){return q};N8.parseMaybeDefault=function(q,Q,Z){if(Z=Z||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(G.eq))return Z;var Y=this.startNodeAt(q,Q);return Y.left=Z,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")};N8.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===p8&&q.name==="let")this.raiseRecoverable(q.start,"let is disallowed as a lexically bound name");if(Z){if(B1(Z,q.name))this.raiseRecoverable(q.start,"Argument name clash");Z[q.name]=!0}if(Q!==F2)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")}};N8.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 j=H[Y];this.checkLValInnerPattern(j,Q,Z)}break;case"ArrayPattern":for(var K=0,X=q.elements;K<X.length;K+=1){var W=X[K];if(W)this.checkLValInnerPattern(W,Q,Z)}break;default:this.checkLValSimple(q,Q,Z)}};N8.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 P8=function(Q,Z,Y,H,j){this.token=Q,this.isExpr=!!Z,this.preserveSpace=!!Y,this.override=H,this.generator=!!j},q8={b_stat:new P8("{",!1),b_expr:new P8("{",!0),b_tmpl:new P8("${",!1),p_stat:new P8("(",!1),p_expr:new P8("(",!0),q_tmpl:new P8("`",!0,!0,function(q){return q.tryReadTemplateToken()}),f_stat:new P8("function",!1),f_expr:new P8("function",!0),f_expr_gen:new P8("function",!0,!1,null,!0),f_gen:new P8("function",!1,!1,null,!0)},F1=Z8.prototype;F1.initialContext=function(){return[q8.b_stat]};F1.curContext=function(){return this.context[this.context.length-1]};F1.braceIsBlock=function(q){var Q=this.curContext();if(Q===q8.f_expr||Q===q8.f_stat)return!0;if(q===G.colon&&(Q===q8.b_stat||Q===q8.b_expr))return!Q.isExpr;if(q===G._return||q===G.name&&this.exprAllowed)return B8.test(this.input.slice(this.lastTokEnd,this.start));if(q===G._else||q===G.semi||q===G.eof||q===G.parenR||q===G.arrow)return!0;if(q===G.braceL)return Q===q8.b_stat;if(q===G._var||q===G._const||q===G.name)return!1;return!this.exprAllowed};F1.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};F1.updateContext=function(q){var Q,Z=this.type;if(Z.keyword&&q===G.dot)this.exprAllowed=!1;else if(Q=Z.updateContext)Q.call(this,q);else this.exprAllowed=Z.beforeExpr};F1.overrideContext=function(q){if(this.curContext()!==q)this.context[this.context.length-1]=q};G.parenR.updateContext=G.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};G.braceL.updateContext=function(q){this.context.push(this.braceIsBlock(q)?q8.b_stat:q8.b_expr),this.exprAllowed=!0};G.dollarBraceL.updateContext=function(){this.context.push(q8.b_tmpl),this.exprAllowed=!0};G.parenL.updateContext=function(q){var Q=q===G._if||q===G._for||q===G._with||q===G._while;this.context.push(Q?q8.p_stat:q8.p_expr),this.exprAllowed=!0};G.incDec.updateContext=function(){};G._function.updateContext=G._class.updateContext=function(q){if(q.beforeExpr&&q!==G._else&&!(q===G.semi&&this.curContext()!==q8.p_stat)&&!(q===G._return&&B8.test(this.input.slice(this.lastTokEnd,this.start)))&&!((q===G.colon||q===G.braceL)&&this.curContext()===q8.b_stat))this.context.push(q8.f_expr);else this.context.push(q8.f_stat);this.exprAllowed=!1};G.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};G.backQuote.updateContext=function(){if(this.curContext()===q8.q_tmpl)this.context.pop();else this.context.push(q8.q_tmpl);this.exprAllowed=!1};G.star.updateContext=function(q){if(q===G._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};G.name.updateContext=function(q){var Q=!1;if(this.options.ecmaVersion>=6&&q!==G.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())Q=!0}this.exprAllowed=Q};var m=Z8.prototype;m.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 j=q.kind;if(this.options.ecmaVersion>=6){if(H==="__proto__"&&j==="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 X;if(j==="init")X=this.strict&&K.init||K.get||K.set;else X=K.init||K[j];if(X)this.raiseRecoverable(Y.start,"Redefinition of property")}else K=Q[H]={init:!1,get:!1,set:!1};K[j]=!0};m.parseExpression=function(q,Q){var Z=this;return this.catchStackOverflow(function(){var{start:Y,startLoc:H}=Z,j=Z.parseMaybeAssign(q,Q);if(Z.type===G.comma){var K=Z.startNodeAt(Y,H);K.expressions=[j];while(Z.eat(G.comma))K.expressions.push(Z.parseMaybeAssign(q,Q));return Z.finishNode(K,"SequenceExpression")}return j})};m.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,j=-1,K=-1;if(Q)H=Q.parenthesizedAssign,j=Q.trailingComma,K=Q.doubleProto,Q.parenthesizedAssign=Q.trailingComma=-1;else Q=new L0,Y=!0;var X=this.start,W=this.startLoc;if(this.type===G.parenL||this.type===G.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=q==="await";var B=this.parseMaybeConditional(q,Q);if(Z)B=Z.call(this,B,X,W);if(this.type.isAssign){var U=this.startNodeAt(X,W);if(U.operator=this.value,this.type===G.eq)B=this.toAssignable(B,!1,Q);if(!Y)Q.parenthesizedAssign=Q.trailingComma=Q.doubleProto=-1;if(Q.shorthandAssign>=B.start)Q.shorthandAssign=-1;if(this.type===G.eq)this.checkLValPattern(B);else this.checkLValSimple(B);if(U.left=B,this.next(),U.right=this.parseMaybeAssign(q),K>-1)Q.doubleProto=K;return this.finishNode(U,"AssignmentExpression")}else if(Y)this.checkExpressionErrors(Q,!0);if(H>-1)Q.parenthesizedAssign=H;if(j>-1)Q.trailingComma=j;return B};m.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(G.question)){var j=this.startNodeAt(Z,Y);return j.test=H,j.consequent=this.parseMaybeAssign(),this.expect(G.colon),j.alternate=this.parseMaybeAssign(q),this.finishNode(j,"ConditionalExpression")}return H};m.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)};m.parseExprOp=function(q,Q,Z,Y,H){var j=this.type.binop;if(j!=null&&(!H||this.type!==G._in)){if(j>Y){var K=this.type===G.logicalOR||this.type===G.logicalAND,X=this.type===G.coalesce;if(X)j=G.logicalAND.binop;var W=this.value;this.next();var B=this.start,U=this.startLoc,$=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,H),B,U,j,H),w=this.buildBinary(Q,Z,q,$,W,K||X);if(K&&this.type===G.coalesce||X&&(this.type===G.logicalOR||this.type===G.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(w,Q,Z,Y,H)}}return q};m.buildBinary=function(q,Q,Z,Y,H,j){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,j?"LogicalExpression":"BinaryExpression")};m.parseMaybeUnary=function(q,Q,Z,Y){var H=this.start,j=this.startLoc,K;if(this.isContextual("await")&&this.canAwait)K=this.parseAwait(Y),Q=!0;else if(this.type.prefix){var X=this.startNode(),W=this.type===G.incDec;if(X.operator=this.value,X.prefix=!0,this.next(),X.argument=this.parseMaybeUnary(null,!0,W,Y),this.checkExpressionErrors(q,!0),W)this.checkLValSimple(X.argument);else if(this.strict&&X.operator==="delete"&&$2(X.argument))this.raiseRecoverable(X.start,"Deleting local variable in strict mode");else if(X.operator==="delete"&&D9(X.argument))this.raiseRecoverable(X.start,"Private fields can not be deleted");else Q=!0;K=this.finishNode(X,W?"UpdateExpression":"UnaryExpression")}else if(!Q&&this.type===G.privateId){if((Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(K=this.parsePrivateIdent(),this.type!==G._in)this.unexpected()}else{if(K=this.parseExprSubscripts(q,Y),this.checkExpressionErrors(q))return K;while(this.type.postfix&&!this.canInsertSemicolon()){var B=this.startNodeAt(H,j);B.operator=this.value,B.prefix=!1,B.argument=K,this.checkLValSimple(K),this.next(),K=this.finishNode(B,"UpdateExpression")}}if(!Z&&!(K.type==="ArrowFunctionExpression"&&K.start===H)&&this.eat(G.starstar))if(Q)this.unexpected(this.lastTokStart);else return this.buildBinary(H,j,K,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return K};function $2(q){return q.type==="Identifier"||q.type==="ParenthesizedExpression"&&$2(q.expression)}function D9(q){return q.type==="MemberExpression"&&q.property.type==="PrivateIdentifier"||q.type==="ChainExpression"&&D9(q.expression)||q.type==="ParenthesizedExpression"&&D9(q.expression)}m.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 j=this.parseSubscripts(H,Z,Y,!1,Q);if(q&&j.type==="MemberExpression"){if(q.parenthesizedAssign>=j.start)q.parenthesizedAssign=-1;if(q.parenthesizedBind>=j.start)q.parenthesizedBind=-1;if(q.trailingComma>=j.start)q.trailingComma=-1}return j};m.parseSubscripts=function(q,Q,Z,Y,H){var j=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 X=this.parseSubscript(q,Q,Z,Y,j,K,H);if(X.optional)K=!0;if(X===q||X.type==="ArrowFunctionExpression"){if(K){var W=this.startNodeAt(Q,Z);W.expression=X,X=this.finishNode(W,"ChainExpression")}return X}q=X}};m.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(G.arrow)};m.parseSubscriptAsyncArrow=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!0,Y)};m.parseSubscript=function(q,Q,Z,Y,H,j,K){var X=this.options.ecmaVersion>=11,W=X&&this.eat(G.questionDot);if(Y&&W)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var B=this.eat(G.bracketL);if(B||W&&this.type!==G.parenL&&this.type!==G.backQuote||this.eat(G.dot)){var U=this.startNodeAt(Q,Z);if(U.object=q,B)U.property=this.parseExpression(),this.expect(G.bracketR);else if(this.type===G.privateId&&q.type!=="Super")U.property=this.parsePrivateIdent();else U.property=this.parseIdent(this.options.allowReserved!=="never");if(U.computed=!!B,X)U.optional=W;q=this.finishNode(U,"MemberExpression")}else if(!Y&&this.eat(G.parenL)){var $=new L0,w=this.yieldPos,R=this.awaitPos,I=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1,$);if(H&&!W&&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=w,this.awaitPos=R,this.awaitIdentPos=I,this.parseSubscriptAsyncArrow(Q,Z,D,K)}this.checkExpressionErrors($,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=R||this.awaitPos,this.awaitIdentPos=I||this.awaitIdentPos;var L=this.startNodeAt(Q,Z);if(L.callee=q,L.arguments=D,X)L.optional=W;q=this.finishNode(L,"CallExpression")}else if(this.type===G.backQuote){if(W||j)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(Q,Z);b.tag=q,b.quasi=this.parseTemplate({isTagged:!0}),q=this.finishNode(b,"TaggedTemplateExpression")}return q};m.parseExprAtom=function(q,Q,Z){if(this.type===G.slash)this.readRegexp();var Y,H=this.potentialArrowAt===this.start;switch(this.type){case G._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(Y=this.startNode(),this.next(),this.type===G.parenL&&!this.allowDirectSuper)this.raise(Y.start,"super() call outside constructor of a subclass");if(this.type!==G.dot&&this.type!==G.bracketL&&this.type!==G.parenL)this.unexpected();return this.finishNode(Y,"Super");case G._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case G.name:var j=this.start,K=this.startLoc,X=this.containsEsc,W=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!X&&W.name==="async"&&!this.canInsertSemicolon()&&this.eat(G._function))return this.overrideContext(q8.f_expr),this.parseFunction(this.startNodeAt(j,K),0,!1,!0,Q);if(H&&!this.canInsertSemicolon()){if(this.eat(G.arrow))return this.parseArrowExpression(this.startNodeAt(j,K),[W],!1,Q);if(this.options.ecmaVersion>=8&&W.name==="async"&&this.type===G.name&&!X&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(W=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(G.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(j,K),[W],!0,Q)}}return W;case G.regexp:var B=this.value;return Y=this.parseLiteral(B.value),Y.regex={pattern:B.pattern,flags:B.flags},Y;case G.num:case G.string:return this.parseLiteral(this.value);case G._null:case G._true:case G._false:return Y=this.startNode(),Y.value=this.type===G._null?null:this.type===G._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case G.parenL:var U=this.start,$=this.parseParenAndDistinguishExpression(H,Q);if(q){if(q.parenthesizedAssign<0&&!this.isSimpleAssignTarget($))q.parenthesizedAssign=U;if(q.parenthesizedBind<0)q.parenthesizedBind=U}return $;case G.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(G.bracketR,!0,!0,q),this.finishNode(Y,"ArrayExpression");case G.braceL:return this.overrideContext(q8.b_expr),this.parseObj(!1,q);case G._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case G._class:return this.parseClass(this.startNode(),!1);case G._new:return this.parseNew();case G.backQuote:return this.parseTemplate();case G._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(Z);else return this.unexpected();default:return this.parseExprAtomDefault()}};m.parseExprAtomDefault=function(){this.unexpected()};m.parseExprImport=function(q){var Q=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===G.parenL&&!q)return this.parseDynamicImport(Q);else if(this.type===G.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()};m.parseDynamicImport=function(q){if(this.next(),q.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(G.parenR))if(this.expect(G.comma),!this.afterTrailingComma(G.parenR)){if(q.options=this.parseMaybeAssign(),!this.eat(G.parenR)){if(this.expect(G.comma),!this.afterTrailingComma(G.parenR))this.unexpected()}}else q.options=null;else q.options=null;else if(!this.eat(G.parenR)){var Q=this.start;if(this.eat(G.comma)&&this.eat(G.parenR))this.raiseRecoverable(Q,"Trailing comma is not allowed in import()");else this.unexpected(Q)}return this.finishNode(q,"ImportExpression")};m.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")};m.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")};m.parseParenExpression=function(){this.expect(G.parenL);var q=this.parseExpression();return this.expect(G.parenR),q};m.shouldParseArrow=function(q){return!this.canInsertSemicolon()};m.parseParenAndDistinguishExpression=function(q,Q){var Z=this.start,Y=this.startLoc,H,j=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var K=this.start,X=this.startLoc,W=[],B=!0,U=!1,$=new L0,w=this.yieldPos,R=this.awaitPos,I;this.yieldPos=0,this.awaitPos=0;while(this.type!==G.parenR)if(B?B=!1:this.expect(G.comma),j&&this.afterTrailingComma(G.parenR,!0)){U=!0;break}else if(this.type===G.ellipsis){if(I=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===G.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,$,this.parseParenItem));var D=this.lastTokEnd,L=this.lastTokEndLoc;if(this.expect(G.parenR),q&&this.shouldParseArrow(W)&&this.eat(G.arrow))return this.checkPatternErrors($,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=w,this.awaitPos=R,this.parseParenArrowList(Z,Y,W,Q);if(!W.length||U)this.unexpected(this.lastTokStart);if(I)this.unexpected(I);if(this.checkExpressionErrors($,!0),this.yieldPos=w||this.yieldPos,this.awaitPos=R||this.awaitPos,W.length>1)H=this.startNodeAt(K,X),H.expressions=W,this.finishNodeAt(H,"SequenceExpression",D,L);else H=W[0]}else H=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(Z,Y);return b.expression=H,this.finishNode(b,"ParenthesizedExpression")}else return H};m.parseParenItem=function(q){return q};m.parseParenArrowList=function(q,Q,Z,Y){return this.parseArrowExpression(this.startNodeAt(q,Q),Z,!1,Y)};var lq=[];m.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===G.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(G.parenL))q.arguments=this.parseExprList(G.parenR,this.options.ecmaVersion>=8,!1);else q.arguments=lq;return this.finishNode(q,"NewExpression")};m.parseTemplateElement=function(q){var Q=q.isTagged,Z=this.startNode();if(this.type===G.invalidTemplate){if(!Q)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");Z.value={raw:this.value.replace(/\r\n?/g,`
|
|
28
28
|
`),cooked:null}}else Z.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
29
|
-
`),cooked:this.value};return this.next(),Z.tail=this.type===G.backQuote,this.finishNode(Z,"TemplateElement")};m.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===G.eof)this.raise(this.pos,"Unterminated template literal");this.expect(G.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(G.braceR),Z.quasis.push(Y=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};m.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===G.name||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===G.star)&&!B8.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(q,Q){var Z=this.startNode(),Y=!0,H={};Z.properties=[],this.next();while(!this.eat(G.braceR)){if(!Y){if(this.expect(G.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(G.braceR))break}else Y=!1;var j=this.parseProperty(q,Q);if(!q)this.checkPropClash(j,H,Q);Z.properties.push(j)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(q,Q){var Z=this.startNode(),Y,H,j,K;if(this.options.ecmaVersion>=9&&this.eat(G.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===G.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===G.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)j=this.start,K=this.startLoc;if(!q)Y=this.eat(G.star)}var X=this.containsEsc;if(this.parsePropertyName(Z),!q&&!X&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Z))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(G.star),this.parsePropertyName(Z);else H=!1;return this.parsePropertyValue(Z,q,Y,H,j,K,Q,X),this.finishNode(Z,"Property")};m.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")};m.parsePropertyValue=function(q,Q,Z,Y,H,j,K,X){if((Z||Y)&&this.type===G.colon)this.unexpected();if(this.eat(G.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===G.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,Y),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!==G.comma&&this.type!==G.braceR&&this.type!==G.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,j,this.copyNode(q.key));else if(this.type===G.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,j,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};m.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(G.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(G.bracketR),q.key;else q.computed=!1;return q.key=this.type===G.num||this.type===G.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};m.parseMethod=function(q,Q,Z){var Y=this.startNode(),H=this.yieldPos,j=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(v9(Q,Y.generator)|A0|(Z?U2:0)),this.expect(G.parenL),Y.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=j,this.awaitIdentPos=K,this.finishNode(Y,"FunctionExpression")};m.parseArrowExpression=function(q,Q,Z,Y){var H=this.yieldPos,j=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(v9(Z,!1)|E9),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=j,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};m.parseFunctionBody=function(q,Q,Z,Y){var H=Q&&this.type!==G.braceL,j=this.strict,K=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var X=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!j||X){if(K=this.strictDirective(this.end),K&&X)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!j&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,F2);q.body=this.parseBlock(!1,void 0,K&&!j),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=W}this.exitScope()};m.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};m.checkParams=function(q,Q){var Z=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var j=H[Y];this.checkLValInnerPattern(j,h9,Q?null:Z)}};m.parseExprList=function(q,Q,Z,Y){var H=[],j=!0;while(!this.eat(q)){if(!j){if(this.expect(G.comma),Q&&this.afterTrailingComma(q))break}else j=!1;var K=void 0;if(Z&&this.type===G.comma)K=null;else if(this.type===G.ellipsis){if(K=this.parseSpread(Y),Y&&this.type===G.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y);H.push(K)}return H};m.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&C0)&&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")}};m.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};m.parseIdentNode=function(){var q=this.startNode();if(this.type===G.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=G.name}else this.unexpected();return q};m.parsePrivateIdent=function(){var q=this.startNode();if(this.type===G.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};m.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===G.semi||this.canInsertSemicolon()||this.type!==G.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(G.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};m.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=Z8.prototype;$0.raise=function(q,Q){var Z=b9(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 O1(this.curLine,this.pos-this.lineStart)};var t8=Z8.prototype,lq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};t8.enterScope=function(q){this.scopeStack.push(new lq(q))};t8.exitScope=function(){this.scopeStack.pop()};t8.treatFunctionsAsVarInScope=function(q){return q.flags&X1||!this.inModule&&q.flags&j1};t8.declareName=function(q,Q,Z){var Y=!1;if(Q===p8){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&j1)delete this.undefinedExports[q]}else if(Q===B2){var j=this.currentScope();j.lexical.push(q)}else if(Q===O2){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 X=this.scopeStack.length-1;X>=0;--X){var W=this.scopeStack[X];if(W.lexical.indexOf(q)>-1&&!(W.flags&z2&&W.lexical[0]===q)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(q)>-1){Y=!0;break}if(W.var.push(q),this.inModule&&W.flags&j1)delete this.undefinedExports[q];if(W.flags&C0)break}if(Y)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};t8.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};t8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};t8.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(C0|g1|W1))return Q}};t8.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(C0|g1|W1)&&!(Q.flags&E9))return Q}};var _1=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]},x1=Z8.prototype;x1.startNode=function(){return new _1(this,this.start,this.startLoc)};x1.startNodeAt=function(q,Q){return new _1(this,q,Q)};function M2(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}x1.finishNode=function(q,Q){return M2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};x1.finishNodeAt=function(q,Q,Z,Y){return M2.call(this,q,Q,Z,Y)};x1.copyNode=function(q){var Q=new _1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var cq="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",w2="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",A2=w2+" Extended_Pictographic",C2=A2,L2=C2+" EBase EComp EMod EPres ExtPict",I2=L2,dq=I2,iq={9:w2,10:A2,11:C2,12:L2,13:I2,14:dq},pq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",oq={9:"",10:"",11:"",12:"",13:"",14:pq},Y2="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",S2="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",P2=S2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",D2=P2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",k2=D2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",N2=k2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",sq=N2+" "+cq,nq={9:S2,10:P2,11:D2,12:k2,13:N2,14:sq},b2={};function aq(q){var Q=b2[q]={binary:r8(iq[q]+" "+Y2),binaryOfStrings:r8(oq[q]),nonBinary:{General_Category:r8(Y2),Script:r8(nq[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(h1=0,O0=[9,10,11,12,13,14];h1<O0.length;h1+=1)k9=O0[h1],aq(k9);var k9,h1,O0,T=Z8.prototype,M0=function(Q,Z){this.parent=Q,this.base=Z||this};M0.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};M0.prototype.sibling=function(){return new M0(this.parent,this.base)};var u8=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=b2[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};u8.prototype.reset=function(Q,Z,Y){var H=Y.indexOf("v")!==-1,j=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=j&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=j&&this.parser.options.ecmaVersion>=9};u8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};u8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return-1;var j=Y.charCodeAt(Q);if(!(Z||this.switchU)||j<=55295||j>=57344||Q+1>=H)return j;var K=Y.charCodeAt(Q+1);return K>=56320&&K<=57343?(j<<10)+K-56613888:j};u8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return H;var j=Y.charCodeAt(Q),K;if(!(Z||this.switchU)||j<=55295||j>=57344||Q+1>=H||(K=Y.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};u8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};u8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};u8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};u8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};u8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.pos;for(var H=0,j=Q;H<j.length;H+=1){var K=j[H],X=this.at(Y,Z);if(X===-1||X!==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 j=0;j<Z.length;j++){var K=Z.charAt(j);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,j+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 rq(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&&rq(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 M0(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 j=Z.charAt(H);if(Z.indexOf(j,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 X=0;X<K.length;X++){var W=K.charAt(X);if(K.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};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&&tq(Z))Q+=d8(Z),q.advance();return Q};function tq(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(T2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function T2(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&&!T2(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 j=H[Y];if(!j.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+=d8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=d8(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(eq(Y))return q.lastIntValue=Y,!0;return q.pos=Q,!1};function eq(q){return $8(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 h8(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&&!I0(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(E2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function E2(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 j=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=j,q.lastIntValue=H}return!0}if(Y&&q.eat(123)&&this.regexp_eatHexDigits(q)&&q.eat(125)&&QQ(q.lastIntValue))return!0;if(Y)q.raise("Invalid unicode escape");q.pos=Z}return!1};function QQ(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 v2=0,i8=1,D8=2;T.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(ZQ(Q))return q.lastIntValue=-1,q.advance(),i8;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===D8)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return v2};function ZQ(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),i8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return v2};T.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!B1(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 i8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return D8;q.raise("Invalid property name")};T.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(h2(Q=q.current()))q.lastStringValue+=d8(Q),q.advance();return q.lastStringValue!==""};function h2(q){return E2(q)||q===95}T.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(YQ(Q=q.current()))q.lastStringValue+=d8(Q),q.advance();return q.lastStringValue!==""};function YQ(q){return h2(q)||I0(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===D8)q.raise("Negated character class may contain strings");return!0}return!1};T.regexp_classContents=function(q){if(q.current()===93)return i8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),i8};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||g2(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=i8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===D8)Q=D8;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==D8)Q=i8;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===D8)Q=D8}};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 i8;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===D8)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)===D8)Q=D8;return Q};T.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?i8:D8};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()&&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}T.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}T.regexp_eatClassControlLetter=function(q){var Q=q.current();if(I0(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(I0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function I0(q){return q>=48&&q<=57}T.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(y2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+f2(Z),q.advance();return q.pos!==Q};function y2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function f2(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(g2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function g2(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(!y2(H))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+f2(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]},d=Z8.prototype;d.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()};d.getToken=function(){return this.next(),new S0(this)};if(typeof Symbol<"u")d[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===G.eof,value:Q}}}};d.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(G.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};d.readToken=function(q){if($8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};d.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};d.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};d.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=V2(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())};d.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&&!V1(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())};d.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&&N9.test(String.fromCharCode(q)))++this.pos;else break q}}};d.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)};d.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(G.ellipsis);else return++this.pos,this.finishToken(G.dot)};d.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(G.assign,2);return this.finishOp(G.slash,1)};d.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,Y=q===42?G.star:G.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,Y=G.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(G.assign,Z+1);return this.finishOp(Y,Z)};d.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(G.assign,3)}return this.finishOp(q===124?G.logicalOR:G.logicalAND,2)}if(Q===61)return this.finishOp(G.assign,2);return this.finishOp(q===124?G.bitwiseOR:G.bitwiseAND,1)};d.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(G.assign,2);return this.finishOp(G.bitwiseXOR,1)};d.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||B8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(G.incDec,2)}if(Q===61)return this.finishOp(G.assign,2);return this.finishOp(G.plusMin,1)};d.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(G.assign,Z+1);return this.finishOp(G.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(G.relational,Z)};d.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(G.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(G.arrow);return this.finishOp(q===61?G.eq:G.prefix,1)};d.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(G.questionDot,2)}if(Q===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(G.assign,3)}return this.finishOp(G.coalesce,2)}}return this.finishOp(G.question,1)};d.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),$8(Q,!0)||Q===92)return this.finishToken(G.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+d8(Q)+"'")};d.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(G.parenL);case 41:return++this.pos,this.finishToken(G.parenR);case 59:return++this.pos,this.finishToken(G.semi);case 44:return++this.pos,this.finishToken(G.comma);case 91:return++this.pos,this.finishToken(G.bracketL);case 93:return++this.pos,this.finishToken(G.bracketR);case 123:return++this.pos,this.finishToken(G.braceL);case 125:return++this.pos,this.finishToken(G.braceR);case 58:return++this.pos,this.finishToken(G.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(G.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(G.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+d8(q)+"'")};d.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};d.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(B8.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 j=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(j);var X=this.regexpState||(this.regexpState=new u8(this));X.reset(Z,H,K),this.validateRegExpFlags(X),this.validateRegExpPattern(X);var W=null;try{W=new RegExp(H,K)}catch(B){}return this.finishToken(G.regexp,{pattern:H,flags:K,value:W})};d.readInt=function(q,Q,Z){var Y=this.options.ecmaVersion>=12&&Q===void 0,H=Z&&this.input.charCodeAt(this.pos)===48,j=this.pos,K=0,X=0;for(var W=0,B=Q==null?1/0:Q;W<B;++W,++this.pos){var U=this.input.charCodeAt(this.pos),$=void 0;if(Y&&U===95){if(H)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=U;continue}if(U>=97)$=U-97+10;else if(U>=65)$=U-65+10;else if(U>=48&&U<=57)$=U-48;else $=1/0;if($>=q)break;X=U,K=K*q+$}if(Y&&X===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===j||Q!=null&&this.pos-j!==Q)return null;return K};function jQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function _2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}d.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=_2(this.input.slice(Q,this.pos)),++this.pos;else if($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(G.num,Z)};d.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=_2(this.input.slice(Q,this.pos));if(++this.pos,$8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(G.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($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var j=jQ(this.input.slice(Q,this.pos),Z);return this.finishToken(G.num,j)};d.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};d.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(V1(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(G.string,Q)};var x2={};d.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===x2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};d.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw x2;else this.raise(q,Q)};d.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===G.template||this.type===G.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(G.dollarBraceL);else return++this.pos,this.finishToken(G.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(G.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(V1(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+=`
|
|
29
|
+
`),cooked:this.value};return this.next(),Z.tail=this.type===G.backQuote,this.finishNode(Z,"TemplateElement")};m.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===G.eof)this.raise(this.pos,"Unterminated template literal");this.expect(G.dollarBraceL),Z.expressions.push(this.parseExpression()),this.expect(G.braceR),Z.quasis.push(Y=this.parseTemplateElement({isTagged:Q}))}return this.next(),this.finishNode(Z,"TemplateLiteral")};m.isAsyncProp=function(q){return!q.computed&&q.key.type==="Identifier"&&q.key.name==="async"&&(this.type===G.name||this.type===G.num||this.type===G.string||this.type===G.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===G.star)&&!B8.test(this.input.slice(this.lastTokEnd,this.start))};m.parseObj=function(q,Q){var Z=this.startNode(),Y=!0,H={};Z.properties=[],this.next();while(!this.eat(G.braceR)){if(!Y){if(this.expect(G.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(G.braceR))break}else Y=!1;var j=this.parseProperty(q,Q);if(!q)this.checkPropClash(j,H,Q);Z.properties.push(j)}return this.finishNode(Z,q?"ObjectPattern":"ObjectExpression")};m.parseProperty=function(q,Q){var Z=this.startNode(),Y,H,j,K;if(this.options.ecmaVersion>=9&&this.eat(G.ellipsis)){if(q){if(Z.argument=this.parseIdent(!1),this.type===G.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===G.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)j=this.start,K=this.startLoc;if(!q)Y=this.eat(G.star)}var X=this.containsEsc;if(this.parsePropertyName(Z),!q&&!X&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(Z))H=!0,Y=this.options.ecmaVersion>=9&&this.eat(G.star),this.parsePropertyName(Z);else H=!1;return this.parsePropertyValue(Z,q,Y,H,j,K,Q,X),this.finishNode(Z,"Property")};m.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")};m.parsePropertyValue=function(q,Q,Z,Y,H,j,K,X){if((Z||Y)&&this.type===G.colon)this.unexpected();if(this.eat(G.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===G.parenL){if(Q)this.unexpected();q.method=!0,q.value=this.parseMethod(Z,Y),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!==G.comma&&this.type!==G.braceR&&this.type!==G.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,j,this.copyNode(q.key));else if(this.type===G.eq&&K){if(K.shorthandAssign<0)K.shorthandAssign=this.start;q.value=this.parseMaybeDefault(H,j,this.copyNode(q.key))}else q.value=this.copyNode(q.key);q.kind="init",q.shorthand=!0}else this.unexpected()};m.parsePropertyName=function(q){if(this.options.ecmaVersion>=6)if(this.eat(G.bracketL))return q.computed=!0,q.key=this.parseMaybeAssign(),this.expect(G.bracketR),q.key;else q.computed=!1;return q.key=this.type===G.num||this.type===G.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};m.initFunction=function(q){if(q.id=null,this.options.ecmaVersion>=6)q.generator=q.expression=!1;if(this.options.ecmaVersion>=8)q.async=!1};m.parseMethod=function(q,Q,Z){var Y=this.startNode(),H=this.yieldPos,j=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(v9(Q,Y.generator)|A0|(Z?U2:0)),this.expect(G.parenL),Y.params=this.parseBindingList(G.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=H,this.awaitPos=j,this.awaitIdentPos=K,this.finishNode(Y,"FunctionExpression")};m.parseArrowExpression=function(q,Q,Z,Y){var H=this.yieldPos,j=this.awaitPos,K=this.awaitIdentPos;if(this.enterScope(v9(Z,!1)|E9),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=j,this.awaitIdentPos=K,this.finishNode(q,"ArrowFunctionExpression")};m.parseFunctionBody=function(q,Q,Z,Y){var H=Q&&this.type!==G.braceL,j=this.strict,K=!1;if(H)q.body=this.parseMaybeAssign(Y),q.expression=!0,this.checkParams(q,!1);else{var X=this.options.ecmaVersion>=7&&!this.isSimpleParamList(q.params);if(!j||X){if(K=this.strictDirective(this.end),K&&X)this.raiseRecoverable(q.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var W=this.labels;if(this.labels=[],K)this.strict=!0;if(this.checkParams(q,!j&&!K&&!Q&&!Z&&this.isSimpleParamList(q.params)),this.strict&&q.id)this.checkLValSimple(q.id,F2);q.body=this.parseBlock(!1,void 0,K&&!j),q.expression=!1,this.adaptDirectivePrologue(q.body.body),this.labels=W}this.exitScope()};m.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};m.checkParams=function(q,Q){var Z=Object.create(null);for(var Y=0,H=q.params;Y<H.length;Y+=1){var j=H[Y];this.checkLValInnerPattern(j,h9,Q?null:Z)}};m.parseExprList=function(q,Q,Z,Y){var H=[],j=!0;while(!this.eat(q)){if(!j){if(this.expect(G.comma),Q&&this.afterTrailingComma(q))break}else j=!1;var K=void 0;if(Z&&this.type===G.comma)K=null;else if(this.type===G.ellipsis){if(K=this.parseSpread(Y),Y&&this.type===G.comma&&Y.trailingComma<0)Y.trailingComma=this.start}else K=this.parseMaybeAssign(!1,Y);H.push(K)}return H};m.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&C0)&&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")}};m.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};m.parseIdentNode=function(){var q=this.startNode();if(this.type===G.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=G.name}else this.unexpected();return q};m.parsePrivateIdent=function(){var q=this.startNode();if(this.type===G.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};m.parseYield=function(q){if(!this.yieldPos)this.yieldPos=this.start;var Q=this.startNode();if(this.next(),this.type===G.semi||this.canInsertSemicolon()||this.type!==G.star&&!this.type.startsExpr)Q.delegate=!1,Q.argument=null;else Q.delegate=this.eat(G.star),Q.argument=this.parseMaybeAssign(q);return this.finishNode(Q,"YieldExpression")};m.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=Z8.prototype;$0.raise=function(q,Q){var Z=b9(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 O1(this.curLine,this.pos-this.lineStart)};var t8=Z8.prototype,cq=function(Q){this.flags=Q,this.var=[],this.lexical=[],this.functions=[]};t8.enterScope=function(q){this.scopeStack.push(new cq(q))};t8.exitScope=function(){this.scopeStack.pop()};t8.treatFunctionsAsVarInScope=function(q){return q.flags&X1||!this.inModule&&q.flags&j1};t8.declareName=function(q,Q,Z){var Y=!1;if(Q===p8){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&j1)delete this.undefinedExports[q]}else if(Q===B2){var j=this.currentScope();j.lexical.push(q)}else if(Q===O2){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 X=this.scopeStack.length-1;X>=0;--X){var W=this.scopeStack[X];if(W.lexical.indexOf(q)>-1&&!(W.flags&z2&&W.lexical[0]===q)||!this.treatFunctionsAsVarInScope(W)&&W.functions.indexOf(q)>-1){Y=!0;break}if(W.var.push(q),this.inModule&&W.flags&j1)delete this.undefinedExports[q];if(W.flags&C0)break}if(Y)this.raiseRecoverable(Z,"Identifier '"+q+"' has already been declared")};t8.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};t8.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};t8.currentVarScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(C0|g1|W1))return Q}};t8.currentThisScope=function(){for(var q=this.scopeStack.length-1;;q--){var Q=this.scopeStack[q];if(Q.flags&(C0|g1|W1)&&!(Q.flags&E9))return Q}};var _1=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]},x1=Z8.prototype;x1.startNode=function(){return new _1(this,this.start,this.startLoc)};x1.startNodeAt=function(q,Q){return new _1(this,q,Q)};function M2(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}x1.finishNode=function(q,Q){return M2.call(this,q,Q,this.lastTokEnd,this.lastTokEndLoc)};x1.finishNodeAt=function(q,Q,Z,Y){return M2.call(this,q,Q,Z,Y)};x1.copyNode=function(q){var Q=new _1(this,q.start,this.startLoc);for(var Z in q)Q[Z]=q[Z];return Q};var dq="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",w2="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",A2=w2+" Extended_Pictographic",C2=A2,L2=C2+" EBase EComp EMod EPres ExtPict",I2=L2,iq=I2,pq={9:w2,10:A2,11:C2,12:L2,13:I2,14:iq},oq="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",sq={9:"",10:"",11:"",12:"",13:"",14:oq},Y2="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",S2="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",P2=S2+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",D2=P2+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",k2=D2+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",N2=k2+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",nq=N2+" "+dq,aq={9:S2,10:P2,11:D2,12:k2,13:N2,14:nq},b2={};function rq(q){var Q=b2[q]={binary:r8(pq[q]+" "+Y2),binaryOfStrings:r8(sq[q]),nonBinary:{General_Category:r8(Y2),Script:r8(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(h1=0,O0=[9,10,11,12,13,14];h1<O0.length;h1+=1)k9=O0[h1],rq(k9);var k9,h1,O0,T=Z8.prototype,M0=function(Q,Z){this.parent=Q,this.base=Z||this};M0.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};M0.prototype.sibling=function(){return new M0(this.parent,this.base)};var u8=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=b2[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};u8.prototype.reset=function(Q,Z,Y){var H=Y.indexOf("v")!==-1,j=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=j&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=j&&this.parser.options.ecmaVersion>=9};u8.prototype.raise=function(Q){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+Q)};u8.prototype.at=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return-1;var j=Y.charCodeAt(Q);if(!(Z||this.switchU)||j<=55295||j>=57344||Q+1>=H)return j;var K=Y.charCodeAt(Q+1);return K>=56320&&K<=57343?(j<<10)+K-56613888:j};u8.prototype.nextIndex=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.source,H=Y.length;if(Q>=H)return H;var j=Y.charCodeAt(Q),K;if(!(Z||this.switchU)||j<=55295||j>=57344||Q+1>=H||(K=Y.charCodeAt(Q+1))<56320||K>57343)return Q+1;return Q+2};u8.prototype.current=function(Q){if(Q===void 0)Q=!1;return this.at(this.pos,Q)};u8.prototype.lookahead=function(Q){if(Q===void 0)Q=!1;return this.at(this.nextIndex(this.pos,Q),Q)};u8.prototype.advance=function(Q){if(Q===void 0)Q=!1;this.pos=this.nextIndex(this.pos,Q)};u8.prototype.eat=function(Q,Z){if(Z===void 0)Z=!1;if(this.current(Z)===Q)return this.advance(Z),!0;return!1};u8.prototype.eatChars=function(Q,Z){if(Z===void 0)Z=!1;var Y=this.pos;for(var H=0,j=Q;H<j.length;H+=1){var K=j[H],X=this.at(Y,Z);if(X===-1||X!==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 j=0;j<Z.length;j++){var K=Z.charAt(j);if(Q.indexOf(K)===-1)this.raise(q.start,"Invalid regular expression flag");if(Z.indexOf(K,j+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 M0(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 j=Z.charAt(H);if(Z.indexOf(j,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 X=0;X<K.length;X++){var W=K.charAt(X);if(K.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};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+=d8(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(T2(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function T2(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&&!T2(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 j=H[Y];if(!j.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+=d8(q.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(q))q.lastStringValue+=d8(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 $8(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 h8(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&&!I0(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(E2(Q))return q.lastIntValue=Q%32,q.advance(),!0;return!1};function E2(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 j=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=j,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 v2=0,i8=1,D8=2;T.regexp_eatCharacterClassEscape=function(q){var Q=q.current();if(YQ(Q))return q.lastIntValue=-1,q.advance(),i8;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===D8)q.raise("Invalid property name");return Y}q.raise("Invalid property name")}return v2};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),i8}}if(q.pos=Q,this.regexp_eatLoneUnicodePropertyNameOrValue(q)){var H=q.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(q,H)}return v2};T.regexp_validateUnicodePropertyNameAndValue=function(q,Q,Z){if(!B1(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 i8;if(q.switchV&&q.unicodeProperties.binaryOfStrings.test(Q))return D8;q.raise("Invalid property name")};T.regexp_eatUnicodePropertyName=function(q){var Q=0;q.lastStringValue="";while(h2(Q=q.current()))q.lastStringValue+=d8(Q),q.advance();return q.lastStringValue!==""};function h2(q){return E2(q)||q===95}T.regexp_eatUnicodePropertyValue=function(q){var Q=0;q.lastStringValue="";while(HQ(Q=q.current()))q.lastStringValue+=d8(Q),q.advance();return q.lastStringValue!==""};function HQ(q){return h2(q)||I0(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===D8)q.raise("Negated character class may contain strings");return!0}return!1};T.regexp_classContents=function(q){if(q.current()===93)return i8;if(q.switchV)return this.regexp_classSetExpression(q);return this.regexp_nonEmptyClassRanges(q),i8};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||g2(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=i8,Z;if(this.regexp_eatClassSetRange(q));else if(Z=this.regexp_eatClassSetOperand(q)){if(Z===D8)Q=D8;var Y=q.pos;while(q.eatChars([38,38])){if(q.current()!==38&&(Z=this.regexp_eatClassSetOperand(q))){if(Z!==D8)Q=i8;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===D8)Q=D8}};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 i8;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===D8)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)===D8)Q=D8;return Q};T.regexp_classString=function(q){var Q=0;while(this.regexp_eatClassSetCharacter(q))Q++;return Q===1?i8:D8};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(jQ(Q))return q.lastIntValue=Q,q.advance(),!0;return!1};function jQ(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(I0(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(I0(Z=q.current()))q.lastIntValue=10*q.lastIntValue+(Z-48),q.advance();return q.pos!==Q};function I0(q){return q>=48&&q<=57}T.regexp_eatHexDigits=function(q){var Q=q.pos,Z=0;q.lastIntValue=0;while(y2(Z=q.current()))q.lastIntValue=16*q.lastIntValue+f2(Z),q.advance();return q.pos!==Q};function y2(q){return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function f2(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(g2(Q))return q.lastIntValue=Q-48,q.advance(),!0;return q.lastIntValue=0,!1};function g2(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(!y2(H))return q.pos=Z,!1;q.lastIntValue=16*q.lastIntValue+f2(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]},d=Z8.prototype;d.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()};d.getToken=function(){return this.next(),new S0(this)};if(typeof Symbol<"u")d[Symbol.iterator]=function(){var q=this;return{next:function(){var Q=q.getToken();return{done:Q.type===G.eof,value:Q}}}};d.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(G.eof);if(q.override)return q.override(this);else this.readToken(this.fullCharCodeAtPos())};d.readToken=function(q){if($8(q,this.options.ecmaVersion>=6)||q===92)return this.readWord();return this.getTokenFromCode(q)};d.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};d.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};d.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=V2(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())};d.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&&!V1(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())};d.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&&N9.test(String.fromCharCode(q)))++this.pos;else break q}}};d.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)};d.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(G.ellipsis);else return++this.pos,this.finishToken(G.dot)};d.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(G.assign,2);return this.finishOp(G.slash,1)};d.readToken_mult_modulo_exp=function(q){var Q=this.input.charCodeAt(this.pos+1),Z=1,Y=q===42?G.star:G.modulo;if(this.options.ecmaVersion>=7&&q===42&&Q===42)++Z,Y=G.starstar,Q=this.input.charCodeAt(this.pos+2);if(Q===61)return this.finishOp(G.assign,Z+1);return this.finishOp(Y,Z)};d.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(G.assign,3)}return this.finishOp(q===124?G.logicalOR:G.logicalAND,2)}if(Q===61)return this.finishOp(G.assign,2);return this.finishOp(q===124?G.bitwiseOR:G.bitwiseAND,1)};d.readToken_caret=function(){var q=this.input.charCodeAt(this.pos+1);if(q===61)return this.finishOp(G.assign,2);return this.finishOp(G.bitwiseXOR,1)};d.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||B8.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(G.incDec,2)}if(Q===61)return this.finishOp(G.assign,2);return this.finishOp(G.plusMin,1)};d.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(G.assign,Z+1);return this.finishOp(G.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(G.relational,Z)};d.readToken_eq_excl=function(q){var Q=this.input.charCodeAt(this.pos+1);if(Q===61)return this.finishOp(G.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(G.arrow);return this.finishOp(q===61?G.eq:G.prefix,1)};d.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(G.questionDot,2)}if(Q===63){if(q>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(G.assign,3)}return this.finishOp(G.coalesce,2)}}return this.finishOp(G.question,1)};d.readToken_numberSign=function(){var q=this.options.ecmaVersion,Q=35;if(q>=13){if(++this.pos,Q=this.fullCharCodeAtPos(),$8(Q,!0)||Q===92)return this.finishToken(G.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+d8(Q)+"'")};d.getTokenFromCode=function(q){switch(q){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(G.parenL);case 41:return++this.pos,this.finishToken(G.parenR);case 59:return++this.pos,this.finishToken(G.semi);case 44:return++this.pos,this.finishToken(G.comma);case 91:return++this.pos,this.finishToken(G.bracketL);case 93:return++this.pos,this.finishToken(G.bracketR);case 123:return++this.pos,this.finishToken(G.braceL);case 125:return++this.pos,this.finishToken(G.braceR);case 58:return++this.pos,this.finishToken(G.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(G.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(G.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+d8(q)+"'")};d.finishOp=function(q,Q){var Z=this.input.slice(this.pos,this.pos+Q);return this.pos+=Q,this.finishToken(q,Z)};d.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(B8.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 j=this.pos,K=this.readWord1();if(this.containsEsc)this.unexpected(j);var X=this.regexpState||(this.regexpState=new u8(this));X.reset(Z,H,K),this.validateRegExpFlags(X),this.validateRegExpPattern(X);var W=null;try{W=new RegExp(H,K)}catch(B){}return this.finishToken(G.regexp,{pattern:H,flags:K,value:W})};d.readInt=function(q,Q,Z){var Y=this.options.ecmaVersion>=12&&Q===void 0,H=Z&&this.input.charCodeAt(this.pos)===48,j=this.pos,K=0,X=0;for(var W=0,B=Q==null?1/0:Q;W<B;++W,++this.pos){var U=this.input.charCodeAt(this.pos),$=void 0;if(Y&&U===95){if(H)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=U;continue}if(U>=97)$=U-97+10;else if(U>=65)$=U-65+10;else if(U>=48&&U<=57)$=U-48;else $=1/0;if($>=q)break;X=U,K=K*q+$}if(Y&&X===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===j||Q!=null&&this.pos-j!==Q)return null;return K};function VQ(q,Q){if(Q)return parseInt(q,8);return parseFloat(q.replace(/_/g,""))}function _2(q){if(typeof BigInt!=="function")return null;return BigInt(q.replace(/_/g,""))}d.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=_2(this.input.slice(Q,this.pos)),++this.pos;else if($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(G.num,Z)};d.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=_2(this.input.slice(Q,this.pos));if(++this.pos,$8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(G.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($8(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var j=VQ(this.input.slice(Q,this.pos),Z);return this.finishToken(G.num,j)};d.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};d.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(V1(Y))this.raise(this.start,"Unterminated string constant");++this.pos}}return Q+=this.input.slice(Z,this.pos++),this.finishToken(G.string,Q)};var x2={};d.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(q){if(q===x2)this.readInvalidTemplateToken();else throw q}this.inTemplateElement=!1};d.invalidStringToken=function(q,Q){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw x2;else this.raise(q,Q)};d.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===G.template||this.type===G.invalidTemplate))if(Z===36)return this.pos+=2,this.finishToken(G.dollarBraceL);else return++this.pos,this.finishToken(G.backQuote);return q+=this.input.slice(Q,this.pos),this.finishToken(G.template,q)}if(Z===92)q+=this.input.slice(Q,this.pos),q+=this.readEscapedChar(!0),Q=this.pos;else if(V1(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
30
|
`;break;default:q+=String.fromCharCode(Z);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;Q=this.pos}else++this.pos}};d.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(G.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
31
31
|
`)++this.pos;case`
|
|
32
32
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};d.readEscapedChar=function(q){var Q=this.input.charCodeAt(++this.pos);switch(++this.pos,Q){case 110:return`
|
|
33
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return d8(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(V1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};d.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};d.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(h8(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var j=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?$8:h8)(K,Y))this.invalidStringToken(j,"Invalid Unicode escape");q+=d8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};d.readWord=function(){var q=this.readWord1(),Q=G.name;if(this.keywords.test(q))Q=w0[q];return this.finishToken(Q,q)};var u2="8.18.0";Z8.acorn={Parser:Z8,version:u2,defaultOptions:B0,Position:O1,SourceLocation:f1,getLineInfo:b9,Node:_1,TokenType:o,tokTypes:G,keywordTypes:w0,TokContext:P8,tokContexts:q8,isIdentifierChar:h8,isIdentifierStart:$8,Token:S0,isNewLine:V1,lineBreak:B8,lineBreakG:j2,nonASCIIwhitespace:N9};function VQ(q,Q){return Z8.parse(q,Q)}function XQ(q,Q,Z){return Z8.parseExpressionAt(q,Q,Z)}function WQ(q,Q){return Z8.tokenizer(q,Q)}var M8=!0,zQ=new WeakMap;function UQ(q){let Q=q.Parser.acorn||q,Z=zQ.get(Q);if(!Z){let X=function(g){return g===R.name||g===R.string||g===R.num||D.includes(g)||b.includes(g)},W=function(g){return g===R.name||D.includes(g)||b.includes(g)},B=function(g){return g===R.name||b.includes(g)},U=function(g){return g===L.abstract||g===L.declare||g===L.enum||g===L.module||g===L.namespace||g===L.interface||g===L.type},$=function(g){return g===L.keyof||g===L.readonly||g===L.unique},w=function(g){return g===R.invalidTemplate},{tokTypes:R,keywordTypes:I}=Q,D=Object.values(I),L=K(),b=Object.values(L),x=j(),h=H(),n=new RegExp(`^(?:${Object.keys(L).join("|")})$`);x.jsxTagStart.updateContext=function(){this.context.push(h.tc_expr),this.context.push(h.tc_oTag),this.exprAllowed=!1},x.jsxTagEnd.updateContext=function(g){let t=this.context.pop();if(t===h.tc_oTag&&g===R.slash||t===h.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...L,...x},tokContexts:{...h},keywordsRegExp:n,tokenIsLiteralPropertyName:X,tokenIsKeywordOrIdentifier:W,tokenIsIdentifier:B,tokenIsTSDeclarationStart:U,tokenIsTSTypeOperator:$,tokenIsTemplate:w}}return Z;function Y(X,W={}){return new Q.TokenType("name",W)}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 j(){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:M8}),asserts:Y("asserts",{startsExpr:M8}),global:Y("global",{startsExpr:M8}),keyof:Y("keyof",{startsExpr:M8}),readonly:Y("readonly",{startsExpr:M8}),unique:Y("unique",{startsExpr:M8}),abstract:Y("abstract",{startsExpr:M8}),declare:Y("declare",{startsExpr:M8}),enum:Y("enum",{startsExpr:M8}),module:Y("module",{startsExpr:M8}),namespace:Y("namespace",{startsExpr:M8}),interface:Y("interface",{startsExpr:M8}),type:Y("type",{startsExpr:M8})}}}var GQ=512,u1=1024,R1=1,N0=2,OQ=4,_9=8,BQ=16,p2=64,o2=128,FQ=256,RQ=512,s2=1024,_J=R1|N0|_9|o2,xJ=R1|0|_9|0,uJ=R1|0|OQ|0,mJ=R1|0|BQ|0,lJ=0|N0|0|o2,cJ=0|N0|0|0,$Q=R1|N0|_9|FQ,dJ=0|s2,iJ=0|p2,pJ=R1|0|0|p2,oJ=$Q|RQ,sJ=0|s2,n2=4,a2=2,r2=1,nJ=a2|r2,aJ=a2|n2,rJ=r2|n2,MQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,m2=new RegExp("(?=("+MQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),m1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function wQ(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 l2(q,Q){let{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}var v={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."},k0={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 X=this.decoratorStack[this.decoratorStack.length-1];if(X.length)K.decorators=X,this.resetStartLocationFromNode(K,X[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let X=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let W=this.parseDecorator();X.push(W)}if(this.match(Y._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,k0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let X=this.start,W=this.startLoc,B;if(this.match(Y.parenL)){let U=this.start,$=this.startLoc;if(this.next(),B=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let w=this.startNodeAt(U,$);w.expression=B,B=this.finishNode(w,"ParenthesizedExpression")}}else{B=this.parseIdent(!1);while(this.eat(Y.dot)){let U=this.startNodeAt(X,W);U.object=B,U.property=this.parseIdent(!0),U.computed=!1,B=this.finishNode(U,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(B),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(Y.parenL)){let X=this.startNodeAtNode(K);return X.callee=K,X.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(X,"CallExpression")}return K}}}var CQ={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:"♦"},LQ=/^[\da-fA-F]+$/,IQ=/^\d+$/;function l1(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 l1(q.object)+"."+l1(q.property)}function SQ(q,Q,Z,Y){let H=q.tokTypes,j=Q.tokTypes,K=q.isNewLine,X=q.isIdentifierChar,W=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Z{jsx_readToken(){let U="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let w=this.input.charCodeAt(this.pos);switch(w){case 60:case 123:if(this.pos===this.start){if(w===60&&this.exprAllowed)return++this.pos,this.finishToken(j.jsxTagStart);return this.getTokenFromCode(w)}return U+=this.input.slice($,this.pos),this.finishToken(j.jsxText,U);case 38:U+=this.input.slice($,this.pos),U+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(w===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K(w))U+=this.input.slice($,this.pos),U+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(U){let $=this.input.charCodeAt(this.pos),w;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,w=U?`
|
|
33
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return d8(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(V1(Q)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(Q)}};d.readHexChar=function(q){var Q=this.pos,Z=this.readInt(16,q);if(Z===null)this.invalidStringToken(Q,"Bad character escape sequence");return Z};d.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(h8(H,Y))this.pos+=H<=65535?1:2;else if(H===92){this.containsEsc=!0,q+=this.input.slice(Z,this.pos);var j=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?$8:h8)(K,Y))this.invalidStringToken(j,"Invalid Unicode escape");q+=d8(K),Z=this.pos}else break;Q=!1}return q+this.input.slice(Z,this.pos)};d.readWord=function(){var q=this.readWord1(),Q=G.name;if(this.keywords.test(q))Q=w0[q];return this.finishToken(Q,q)};var u2="8.18.0";Z8.acorn={Parser:Z8,version:u2,defaultOptions:B0,Position:O1,SourceLocation:f1,getLineInfo:b9,Node:_1,TokenType:o,tokTypes:G,keywordTypes:w0,TokContext:P8,tokContexts:q8,isIdentifierChar:h8,isIdentifierStart:$8,Token:S0,isNewLine:V1,lineBreak:B8,lineBreakG:j2,nonASCIIwhitespace:N9};function XQ(q,Q){return Z8.parse(q,Q)}function WQ(q,Q,Z){return Z8.parseExpressionAt(q,Q,Z)}function zQ(q,Q){return Z8.tokenizer(q,Q)}var M8=!0,UQ=new WeakMap;function GQ(q){let Q=q.Parser.acorn||q,Z=UQ.get(Q);if(!Z){let X=function(g){return g===R.name||g===R.string||g===R.num||D.includes(g)||b.includes(g)},W=function(g){return g===R.name||D.includes(g)||b.includes(g)},B=function(g){return g===R.name||b.includes(g)},U=function(g){return g===L.abstract||g===L.declare||g===L.enum||g===L.module||g===L.namespace||g===L.interface||g===L.type},$=function(g){return g===L.keyof||g===L.readonly||g===L.unique},w=function(g){return g===R.invalidTemplate},{tokTypes:R,keywordTypes:I}=Q,D=Object.values(I),L=K(),b=Object.values(L),x=j(),h=H(),n=new RegExp(`^(?:${Object.keys(L).join("|")})$`);x.jsxTagStart.updateContext=function(){this.context.push(h.tc_expr),this.context.push(h.tc_oTag),this.exprAllowed=!1},x.jsxTagEnd.updateContext=function(g){let t=this.context.pop();if(t===h.tc_oTag&&g===R.slash||t===h.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===h.tc_expr;else this.exprAllowed=!0},Z={tokTypes:{...L,...x},tokContexts:{...h},keywordsRegExp:n,tokenIsLiteralPropertyName:X,tokenIsKeywordOrIdentifier:W,tokenIsIdentifier:B,tokenIsTSDeclarationStart:U,tokenIsTSTypeOperator:$,tokenIsTemplate:w}}return Z;function Y(X,W={}){return new Q.TokenType("name",W)}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 j(){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:M8}),asserts:Y("asserts",{startsExpr:M8}),global:Y("global",{startsExpr:M8}),keyof:Y("keyof",{startsExpr:M8}),readonly:Y("readonly",{startsExpr:M8}),unique:Y("unique",{startsExpr:M8}),abstract:Y("abstract",{startsExpr:M8}),declare:Y("declare",{startsExpr:M8}),enum:Y("enum",{startsExpr:M8}),module:Y("module",{startsExpr:M8}),namespace:Y("namespace",{startsExpr:M8}),interface:Y("interface",{startsExpr:M8}),type:Y("type",{startsExpr:M8})}}}var OQ=512,u1=1024,R1=1,N0=2,BQ=4,_9=8,FQ=16,p2=64,o2=128,RQ=256,$Q=512,s2=1024,uJ=R1|N0|_9|o2,mJ=R1|0|_9|0,lJ=R1|0|BQ|0,cJ=R1|0|FQ|0,dJ=0|N0|0|o2,iJ=0|N0|0|0,MQ=R1|N0|_9|RQ,pJ=0|s2,oJ=0|p2,sJ=R1|0|0|p2,nJ=MQ|$Q,aJ=0|s2,n2=4,a2=2,r2=1,rJ=a2|r2,tJ=a2|n2,eJ=r2|n2,wQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,m2=new RegExp("(?=("+wQ.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),m1=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function AQ(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 l2(q,Q){let{computed:Z,key:Y}=q;return!Z&&(Y.type==="Identifier"&&Y.name===Q||Y.type==="Literal"&&Y.value===Q)}var v={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."},k0={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:Y}=Z,{tokTypes:H}=Q;return class extends q{takeDecorators(K){let X=this.decoratorStack[this.decoratorStack.length-1];if(X.length)K.decorators=X,this.resetStartLocationFromNode(K,X[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(K){let X=this.decoratorStack[this.decoratorStack.length-1];while(this.match(H.at)){let W=this.parseDecorator();X.push(W)}if(this.match(Y._export)){if(!K)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,k0.UnexpectedLeadingDecorator)}parseDecorator(){let K=this.startNode();this.next(),this.decoratorStack.push([]);let X=this.start,W=this.startLoc,B;if(this.match(Y.parenL)){let U=this.start,$=this.startLoc;if(this.next(),B=this.parseExpression(),this.expect(Y.parenR),this.options.preserveParens){let w=this.startNodeAt(U,$);w.expression=B,B=this.finishNode(w,"ParenthesizedExpression")}}else{B=this.parseIdent(!1);while(this.eat(Y.dot)){let U=this.startNodeAt(X,W);U.object=B,U.property=this.parseIdent(!0),U.computed=!1,B=this.finishNode(U,"MemberExpression")}}return K.expression=this.parseMaybeDecoratorArguments(B),this.decoratorStack.pop(),this.finishNode(K,"Decorator")}parseMaybeDecoratorArguments(K){if(this.eat(Y.parenL)){let X=this.startNodeAtNode(K);return X.callee=K,X.arguments=this.parseExprList(Y.parenR,!1),this.finishNode(X,"CallExpression")}return K}}}var LQ={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]+$/,SQ=/^\d+$/;function l1(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 l1(q.object)+"."+l1(q.property)}function PQ(q,Q,Z,Y){let H=q.tokTypes,j=Q.tokTypes,K=q.isNewLine,X=q.isIdentifierChar,W=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},Y||{});return class extends Z{jsx_readToken(){let U="",$=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let w=this.input.charCodeAt(this.pos);switch(w){case 60:case 123:if(this.pos===this.start){if(w===60&&this.exprAllowed)return++this.pos,this.finishToken(j.jsxTagStart);return this.getTokenFromCode(w)}return U+=this.input.slice($,this.pos),this.finishToken(j.jsxText,U);case 38:U+=this.input.slice($,this.pos),U+=this.jsx_readEntity(),$=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(w===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(K(w))U+=this.input.slice($,this.pos),U+=this.jsx_readNewLine(!0),$=this.pos;else++this.pos}}}jsx_readNewLine(U){let $=this.input.charCodeAt(this.pos),w;if(++this.pos,$===13&&this.input.charCodeAt(this.pos)===10)++this.pos,w=U?`
|
|
34
34
|
`:`\r
|
|
35
|
-
`;else w=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return w}jsx_readString(U){let $="",w=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let R=this.input.charCodeAt(this.pos);if(R===U)break;if(R===38)$+=this.input.slice(w,this.pos),$+=this.jsx_readEntity(),w=this.pos;else if(K(R))$+=this.input.slice(w,this.pos),$+=this.jsx_readNewLine(!1),w=this.pos;else++this.pos}return $+=this.input.slice(w,this.pos++),this.finishToken(H.string,$)}jsx_readEntity(){let U="",$=0,w,R=this.input[this.pos];if(R!=="&")this.raise(this.pos,"Entity must start with an ampersand");let I=++this.pos;while(this.pos<this.input.length&&$++<10){if(R=this.input[this.pos++],R===";"){if(U[0]==="#"){if(U[1]==="x"){if(U=U.substr(2),LQ.test(U))w=String.fromCharCode(parseInt(U,16))}else if(U=U.substr(1),IQ.test(U))w=String.fromCharCode(parseInt(U,10))}else w=CQ[U];break}U+=R}if(!w)return this.pos=I,"&";return w}jsx_readWord(){let U,$=this.pos;do U=this.input.charCodeAt(++this.pos);while(X(U)||U===45);return this.finishToken(j.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let U=this.startNode();if(this.type===j.jsxName)U.name=this.value;else if(this.type.keyword)U.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(U,"JSXIdentifier")}jsx_parseNamespacedName(){let U=this.start,$=this.startLoc,w=this.jsx_parseIdentifier();if(!W.allowNamespaces||!this.eat(H.colon))return w;var R=this.startNodeAt(U,$);return R.namespace=w,R.name=this.jsx_parseIdentifier(),this.finishNode(R,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===j.jsxTagEnd)return"";let U=this.start,$=this.startLoc,w=this.jsx_parseNamespacedName();if(this.type===H.dot&&w.type==="JSXNamespacedName"&&!W.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let R=this.startNodeAt(U,$);R.object=w,R.property=this.jsx_parseIdentifier(),w=this.finishNode(R,"JSXMemberExpression")}return w}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let U=this.jsx_parseExpressionContainer();if(U.expression.type==="JSXEmptyExpression")this.raise(U.start,"JSX attributes must only be assigned a non-empty expression");return U;case j.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 U=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(U,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let U=this.startNode();return this.next(),U.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(U,"JSXExpressionContainer")}jsx_parseAttribute(){let U=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),U.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(U,"JSXSpreadAttribute");return U.name=this.jsx_parseNamespacedName(),U.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(U,"JSXAttribute")}jsx_parseOpeningElementAt(U,$){let w=this.startNodeAt(U,$);w.attributes=[];let R=this.jsx_parseElementName();if(R)w.name=R;while(this.type!==H.slash&&this.type!==j.jsxTagEnd)w.attributes.push(this.jsx_parseAttribute());return w.selfClosing=this.eat(H.slash),this.expect(j.jsxTagEnd),this.finishNode(w,R?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(U,$){let w=this.startNodeAt(U,$),R=this.jsx_parseElementName();if(R)w.name=R;return this.expect(j.jsxTagEnd),this.finishNode(w,R?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(U,$){let w=this.startNodeAt(U,$),R=[],I=this.jsx_parseOpeningElementAt(U,$),D=null;if(!I.selfClosing){q:for(;;)switch(this.type){case j.jsxTagStart:if(U=this.start,$=this.startLoc,this.next(),this.eat(H.slash)){D=this.jsx_parseClosingElementAt(U,$);break q}R.push(this.jsx_parseElementAt(U,$));break;case j.jsxText:R.push(this.parseExprAtom());break;case H.braceL:R.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(l1(D.name)!==l1(I.name))this.raise(D.start,"Expected corresponding JSX closing tag for <"+l1(I.name)+">")}let L=I.name?"Element":"Fragment";if(w["opening"+L]=I,w["closing"+L]=D,w.children=R,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(w,"JSX"+L)}jsx_parseText(){let U=this.parseLiteral(this.value);return U.type="JSXText",U}jsx_parseElement(){let U=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(U,$)}}}function PQ(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 X=this.parseImportAttributes();if(X)K.attributes=X}}parseImportAttributes(){this.expect(H.braceL);let K=this.parseWithEntries();return this.expect(H.braceR),K}parseWithEntries(){let K=[],X=new Set;do{if(this.type===H.braceR)break;let W=this.startNode(),B;if(this.type===H.string)B=this.parseLiteral(this.value);else B=this.parseIdent(!0);if(this.next(),W.key=B,X.has(W.key.name))this.raise(this.pos,"Duplicated key in attributes");if(X.add(W.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");W.value=this.parseLiteral(this.value),K.push(this.finishNode(W,"ImportAttribute"))}while(this.eat(H.comma));return K}}}var f9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function c2(q){if(!q)throw Error("Assert fail")}function DQ(q){return q==="accessor"}function kQ(q){return q==="in"||q==="out"}var D0=1,d2=2,NQ=4,r={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 g9(q,Q){return r.SCOPE_FUNCTION|(q?r.SCOPE_ASYNC:0)|(Q?r.SCOPE_GENERATOR:0)}function bQ(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 t2(q.object)}function t2(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return t2(q.object)}function i2(q){return q==="private"||q==="public"||q==="protected"}function TQ(q){return Boolean(q.startsExpr)}function EQ(q){if(q==null)throw Error(`Unexpected ${q} value.`);return q}function vQ(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 e2(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(Y){let H=Y.acorn||P0,j=UQ(H),K=H.tokTypes,X=H.keywordTypes,W=H.isIdentifierStart,B=H.lineBreak,U=H.isNewLine,$=H.tokContexts,w=H.isIdentifierChar,{tokTypes:R,tokContexts:I,keywordsRegExp:D,tokenIsLiteralPropertyName:L,tokenIsTemplate:b,tokenIsTSDeclarationStart:x,tokenIsIdentifier:h,tokenIsKeywordOrIdentifier:n,tokenIsTSTypeOperator:g}=j;function t(J,V,z=J.length){for(let O=V;O<z;O++){let F=J.charCodeAt(O);if(U(F))return O<z-1&&F===13&&J.charCodeAt(O+1)===10?O+2:O+1}return-1}if(Y=AQ(Y,j,H),q?.jsx)Y=SQ(H,j,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=PQ(Y,j,H);class a extends Y{constructor(J,V,z){super(J,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=(O)=>{this.tsParseModifiers({modified:O,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:v.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return j}get acornTypeScript(){return j}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 V=this.curContext();if(V===I.tc_expr)return this.jsx_readToken();if(V===I.tc_oTag||V===I.tc_cTag){if(W(J))return this.jsx_readWord();if(J==62)return++this.pos,this.finishToken(R.jsxTagEnd);if((J===34||J===39)&&V==I.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(R.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(R.at);return super.getTokenFromCode(J)}isAbstractClass(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===K._class}finishNode(J,V){if(J.type!==""&&J.end!==0)return J;return super.finishNode(J,V)}tryParse(J,V=this.cloneCurLookaheadState()){let z={node:null};try{return{node:J((F=null)=>{throw z.node=F,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(O){let F=this.getCurLookaheadState();if(this.setLookaheadState(V),O instanceof SyntaxError)return{node:null,error:O,thrown:!0,aborted:!1,failState:F};if(O===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:F};throw O}}setOptionalParametersError(J,V){J.optionalParametersLoc=V?.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,V=this.lastTokEnd,z=this.lastTokEndLoc){if(J.end=V,J.loc.end=z,this.options.ranges)J.range[1]=V}startNodeAtNode(J){return super.startNodeAt(J.start,J.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(J,V){return V.some((z)=>{if(i2(z))return J.accessibility===z;return!!J[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(J){J.forEach((V)=>{if(V?.type==="TSTypeCastExpression")this.raise(V.typeAnnotation.start,v.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 h(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(J,V,z){if(!this.tsMatchLeftRelational())return;let O=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let F=this.tsTryParseAndCatch(()=>{let M=this.startNodeAt(J,V);return M.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(M),M.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),M});if(this.maybeInArrowParameters=O,!F)return;return super.parseArrowExpression(F,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(J){let V=this.context;this.context=[V[0]];try{return J()}finally{this.context=V}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(J,V){let z=J+V.length;if(this.input.slice(J,z)===V){let O=this.input.charCodeAt(z);return!(w(O)||(O&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(J){return f9.lastIndex=J,f9.test(this.input)?f9.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(J,V){for(let z of Object.keys(J))if(J[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(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 V=this.getCurLookaheadState(),z=J();return this.setLookaheadState(V),z}lookahead(J){let V=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,J!==void 0)for(let O=0;O<J;O++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(V),z}readWord(){let J=this.readWord1(),V=K.name;if(this.keywords.test(J))V=X[J];else if(new RegExp(D).test(J))V=R[J];return this.finishToken(V,J)}skipBlockComment(){let J;if(!this.isLookahead)J=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 O,F=V;(O=t(this.input,F,this.pos))>-1;)++this.curLine,F=this.lineStart=O;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(V+2,z),V,this.pos,J,this.curPosition())}skipLineComment(J){let V=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let O=this.input.charCodeAt(this.pos+=J);while(this.pos<this.input.length&&!U(O))O=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(V+J,this.pos),V,this.pos,z,this.curPosition())}finishToken(J,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=J,this.value=V,!this.isLookahead)this.updateContext(z)}resetStartLocation(J,V,z){if(J.start=V,J.loc.start=z,this.options.ranges)J.range[0]=V}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return m2.lastIndex=this.end,m2.test(this.input)}addExtra(J,V,z,O=!0){if(!J)return;let F=J.extra=J.extra||{};if(O)F[V]=z;else Object.defineProperty(F,V,{enumerable:O,value:z})}isLiteralPropertyName(){return L(this.type)}hasPrecedingLineBreak(){return B.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(J,V){return J.name=V,this.finishNode(J,"Identifier")}resetStartLocationFromNode(J,V){this.resetStartLocation(J,V.start,V.loc.start)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}isLookaheadContextual(J){let V=this.nextTokenStart();return this.isUnparsedContextual(V,J)}ts_type_isContextual(J,V){return J===V&&!this.containsEsc}ts_isContextual(J){return this.type===J&&!this.containsEsc}ts_isContextualWithState(J,V){return J.type===V&&!J.containsEsc}isContextualWithState(J,V){return V.type===K.name&&V.value===J&&!V.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(R.readonly);if(this.ts_isContextual(R.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 V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.inDisallowConditionalTypesContext=V}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(J){return this.type===J}matchJsx(J){return this.type===j.tokTypes[J]}ts_eatWithState(J,V,z){let O=z.type;if(J===O){for(let F=0;F<V;F++)this.next();return!0}else return!1}ts_eatContextualWithState(J,V,z){if(D.test(J)){if(this.ts_isContextualWithState(z,R[J])){for(let O=0;O<V;O++)this.next();return!0}return!1}else{if(!this.isContextualWithState(J,z))return!1;for(let O=0;O<V;O++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(J){if(D.test(J)){if(this.ts_isContextual(R[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 V=this.parseIdent(J);while(this.eat(K.dot)){let z=this.startNodeAtNode(V);z.left=V,z.right=this.parseIdent(J),V=this.finishNode(z,"TSQualifiedName")}return V}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,V={}){if(V.const)J.const=!0;if(V.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(GQ),this.expect(K.braceL),J.body=[];while(this.type!==K.braceR){let V=this.parseStatement(null,!0);J.body.push(V)}return this.next(),super.exitScope(),this.finishNode(J,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(J){if(this.ts_isContextual(R.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(u1),J.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsTryParseDeclare(J){if(this.isLineTerminator())return;let V=this.type,z;if(this.isContextual("let"))V=K._var,z="let";return this.tsInAmbientContext(()=>{if(V===K._function)return J.declare=!0,this.parseFunctionStatement(J,!1,!0);if(V===K._class)return J.declare=!0,this.parseClass(J,!0);if(V===R.enum)return this.tsParseEnumDeclaration(J,{declare:!0});if(V===R.global)return this.tsParseAmbientExternalModuleDeclaration(J);if(V===K._const||V===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(V===R.interface){let O=this.tsParseInterfaceDeclaration(J,{declare:!0});if(O)return O}if(h(V))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,V,z,O){let F=[],M=-1;for(;;){if(this.tsIsListTerminator(J))break;M=-1;let A=V();if(A==null)return;if(F.push(A),this.eat(K.comma)){M=this.lastTokStart;continue}if(this.tsIsListTerminator(J))break;if(z)this.expect(K.comma);return}if(O)O.value=M;return F}tsParseDelimitedList(J,V,z){return EQ(this.tsParseDelimitedListWorker(J,V,!0,z))}tsParseBracketedList(J,V,z,O,F){if(!O)if(z)this.expect(K.bracketL);else this.expect(K.relational);let M=this.tsParseDelimitedList(J,V,F);if(z)this.expect(K.bracketR);else this.expect(K.relational);return M}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(h(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 V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.inDisallowConditionalTypesContext=V}}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,v.UnsupportedSignatureParameterKind({type:J.type}));return J})}tsParseTypePredicateAsserts(){if(this.type!==R.asserts)return!1;let J=this.containsEsc;if(this.next(),!h(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,V=this.startNode()){return this.tsInType(()=>{if(J)this.expect(K.colon);V.typeAnnotation=this.tsParseType()}),this.finishNode(V,"TSTypeAnnotation")}tsParseThisTypePredicate(J){this.next();let V=this.startNodeAtNode(J);return V.parameterName=J,V.typeAnnotation=this.tsParseTypeAnnotation(!1),V.asserts=!1,this.finishNode(V,"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 V=this.startNode();this.expect(J);let z=this.startNode(),O=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(O&&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 V.typeAnnotation=A,this.finishNode(V,"TSTypeAnnotation")}let F=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!F){if(!O)return this.tsParseTypeAnnotation(!1,V);return z.parameterName=this.parseIdent(),z.asserts=O,z.typeAnnotation=null,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")}let M=this.tsParseTypeAnnotation(!1);return z.parameterName=F,z.typeAnnotation=M,z.asserts=O,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")})}tsFillSignature(J,V){let z=J===K.arrow,O="parameters",F="typeAnnotation";if(V.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),V.parameters=this.tsParseBindingListForSignature(),z)V.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))V.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,v.CannotFindName({name:"const"}));return J}tsParseFunctionOrConstructorType(J,V){let z=this.startNode();if(J==="TSConstructorType"){if(z.abstract=!!V,V)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,z)),this.finishNode(z,J)}tsParseUnionOrIntersectionType(J,V,z){let O=this.startNode(),F=this.eat(z),M=[];do M.push(V());while(this.eat(z));if(M.length===1&&!F)return M[0];return O.types=M,this.finishNode(O,J)}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.start,v.UnexpectedReadonly)}}tsParseTypeOperator(){let J=this.startNode(),V=this.value;if(this.next(),J.operator=V,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),V==="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 V=this.startNode();return V.name=this.tsParseTypeParameterName(),V.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(V,"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,v.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,V=this.start,z=this.eat(K.ellipsis),O=this.tsParseType(),F=this.eat(K.question);if(this.eat(K.colon)){let A=this.startNodeAtNode(O);if(A.optional=F,O.type==="TSTypeReference"&&!O.typeArguments&&O.typeName.type==="Identifier")A.label=O.typeName;else this.raise(O.start,v.InvalidTupleMemberLabel),A.label=O;A.elementType=this.tsParseType(),O=this.finishNode(A,"TSNamedTupleMember")}else if(F){let A=this.startNodeAtNode(O);A.typeAnnotation=O,O=this.finishNode(A,"TSOptionalType")}if(z){let A=this.startNodeAt(V,J);A.typeAnnotation=O,O=this.finishNode(A,"TSRestType")}return O}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let V=!1;return J.elementTypes.forEach((z)=>{let{type:O}=z;if(V&&O!=="TSRestType"&&O!=="TSOptionalType"&&!(O==="TSNamedTupleMember"&&z.optional))this.raise(z.start,v.OptionalTypeBeforeRequired);if(V||=O==="TSNamedTupleMember"&&z.optional||O==="TSOptionalType",O==="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(h(J)||J===K._void||J===K._null){let V=J===K._void?"TSVoidKeyword":J===K._null?"TSNullKeyword":vQ(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 J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let V=this.startNodeAtNode(J);V.elementType=J,this.expect(K.bracketR),J=this.finishNode(V,"TSArrayType")}else{let V=this.startNodeAtNode(J);V.objectType=J,V.indexType=this.tsParseType(),this.expect(K.bracketR),J=this.finishNode(V,"TSIndexedAccessType")}return J}tsParseTypeOperatorOrHigher(){return g(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(){c2(this.inType);let J=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return J;let V=this.startNodeAtNode(J);return V.checkType=J,V.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(K.question),V.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(K.colon),V.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(V,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),h(this.type))return this.next(),this.match(K.colon);return!1}tsInType(J){let V=this.inType;this.inType=!0;try{return J()}finally{this.inType=V}}tsTryParseIndexSignature(J){if(!(this.match(K.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(K.bracketL);let V=this.parseIdent();V.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(V),this.expect(K.bracketR),J.parameters=[V];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:v.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(J=this.tsParseNoneModifiers.bind(this)){let V=this.startNode();return J(V),V.name=this.tsParseTypeParameterName(),V.constraint=this.tsEatThenParseType(K._extends),V.default=this.tsEatThenParseType(K.eq),this.finishNode(V,"TSTypeParameter")}tsParseTypeParameters(J){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,J),!1,!0,z),V.params.length===0)this.raise(this.start,v.EmptyTypeParameters);if(z.value!==-1)this.addExtra(V,"trailingComma",z.value);return this.finishNode(V,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(J){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(J)}tsTryParse(J){let V=this.getCurLookaheadState(),z=J();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(V);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,V){let z=this.value;if(J.indexOf(z)!==-1&&!this.containsEsc){if(V&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:J,map:V}){for(let z of Object.keys(V))J[z]=V[z]}tsParseModifiers({modified:J,allowedModifiers:V,disallowedModifiers:z,stopOnStartOfClassStaticBlock:O,errorTemplate:F=v.InvalidModifierOnTypeMember}){let M={},A=(S,C,N,k)=>{if(C===N&&J[k])this.raise(S.column,v.InvalidModifiersOrder({orderedModifiers:[N,k]}))},P=(S,C,N,k)=>{if(J[N]&&C===k||J[k]&&C===N)this.raise(S.column,v.IncompatibleModifiers({modifiers:[N,k]}))};for(;;){let S=this.startLoc,C=this.tsParseModifier(V.concat(z??[]),O);if(!C)break;if(i2(C))if(J.accessibility)this.raise(this.start,v.DuplicateAccessibilityModifier());else A(S,C,C,"override"),A(S,C,C,"static"),A(S,C,C,"readonly"),A(S,C,C,"accessor"),M.accessibility=C,J.accessibility=C;else if(kQ(C))if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else A(S,C,"in","out"),M[C]=C,J[C]=!0;else if(DQ(C))if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else P(S,C,"accessor","readonly"),P(S,C,"accessor","static"),P(S,C,"accessor","override"),M[C]=C,J[C]=!0;else if(C==="const")if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else M[C]=C,J[C]=!0;else if(Object.hasOwnProperty.call(J,C))this.raise(this.start,v.DuplicateModifier({modifier:C}));else A(S,C,"static","readonly"),A(S,C,"static","override"),A(S,C,"override","readonly"),A(S,C,"abstract","override"),P(S,C,"declare","override"),P(S,C,"static","abstract"),M[C]=C,J[C]=!0;if(z?.includes(C))this.raise(this.start,F)}return M}tsParseInOutModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:v.InvalidModifierOnTypeParameter})}parseMaybeUnary(J,V,z,O){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(J,V,z,O)}tsParseTypeAssertion(){if(Z)this.raise(this.start,v.ReservedTypeAssertion);let J=this.tryParse(()=>{let V=this.startNode(),z=this.tsTryNextParseConstantContext();return V.typeAnnotation=z||this.tsNextThenParseType(),this.expect(K.relational),V.expression=this.parseMaybeUnary(),this.finishNode(V,"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,v.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(J,"TSTypeParameterInstantiation")}tsParseHeritageClause(J){let V=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let O=this.startNode();if(O.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())O.typeParameters=this.tsParseTypeArguments();return this.finishNode(O,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(V,v.EmptyHeritageClauseType({token:J}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(J){let V=this.tryParse((z)=>J()||z());if(V.aborted||!V.node)return;if(V.error)this.setLookaheadState(V.failState);return V.node}tsParseSignatureMember(J,V){return this.tsFillSignature(K.colon,V),this.tsParseTypeMemberSemicolon(),this.finishNode(V,J)}tsParsePropertyOrMethodSignature(J,V){if(this.eat(K.question))J.optional=!0;let z=J;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(V)this.raise(J.start,v.ReadonlyForMethodSignature);let O=z;if(O.kind&&this.tsMatchLeftRelational())this.raise(this.start,v.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,O),this.tsParseTypeMemberSemicolon();let F="parameters",M="typeAnnotation";if(O.kind==="get"){if(O[F].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(O[F][0]))this.raise(this.start,v.AccesorCannotDeclareThisParameter)}}else if(O.kind==="set"){if(O[F].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let A=O[F][0];if(this.isThisParam(A))this.raise(this.start,v.AccesorCannotDeclareThisParameter);if(A.type==="Identifier"&&A.optional)this.raise(this.start,v.SetAccesorCannotHaveOptionalParameter);if(A.type==="RestElement")this.raise(this.start,v.SetAccesorCannotHaveRestParameter)}if(O[M])this.raise(O[M].start,v.SetAccesorCannotHaveReturnType)}else O.kind="method";return this.finishNode(O,"TSMethodSignature")}else{let O=z;if(V)O.readonly=!0;let F=this.tsTryParseTypeAnnotation();if(F)O.typeAnnotation=F;return this.tsParseTypeMemberSemicolon(),this.finishNode(O,"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 V=this.tsTryParseIndexSignature(J);if(V)return V;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,V){let z=[];while(!this.tsIsListTerminator(J))z.push(V());return z}tsParseObjectTypeMembers(){this.expect(K.braceL);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),J}tsParseInterfaceDeclaration(J,V={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),V.declare)J.declare=!0;if(h(this.type))J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_TS_INTERFACE);else J.id=null,this.raise(this.start,v.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 V=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=J,this.expect(K.braceR),V}tsParseAbstractDeclaration(J){if(this.match(K._class))return J.abstract=!0,this.parseClass(J,!0);else if(this.ts_isContextual(R.interface)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.tsParseInterfaceDeclaration(J)}else this.unexpected(J.start)}tsIsDeclarationStart(){return x(this.type)}tsParseExpressionStatement(J,V){switch(V.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(u1);let z=J;return z.global=!0,z.id=V,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,V.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:J}=this,V=this.isAsyncFunction(),z=this.isLet();if(h(J)){if(V&&!this.containsEsc||z)return!1;if((J===R.type||J===R.interface)&&!this.containsEsc){let M=this.lookahead();if(h(M.type)&&!this.isContextualWithState("from",M)||M.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let O=this.nextTokenStart(),F=this.isUnparsedContextual(O,"from");if(this.input.charCodeAt(O)===44||h(this.type)&&F)return!0;if(this.match(K._default)&&F){let M=this.input.charCodeAt(this.nextTokenStartSince(O+4));return M===34||M===39}return!1}tsInAmbientContext(J){let V=this.isAmbientContext;this.isAmbientContext=!0;try{return J()}finally{this.isAmbientContext=V}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(J,V=!1){if(J.id=this.parseIdent(),!V)this.checkLValSimple(J.id,r.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),J.body=z}else this.enterScope(u1),J.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(J,"TSModuleDeclaration")}checkLValSimple(J,V=r.BIND_NONE,z){if(J.type==="TSNonNullExpression"||J.type==="TSAsExpression")J=J.expression;return super.checkLValSimple(J,V,z)}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_TS_TYPE),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(R.interface)&&this.lookahead().type!==K.dot){let V=this.startNode();return this.next(),this.finishNode(V,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsParseDeclaration(J,V,z){switch(V){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(K._class)||h(this.type)))return this.tsParseAbstractDeclaration(J);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(J);else if(h(this.type))return this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&h(this.type))return this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(z)&&h(this.type))return this.tsParseTypeAliasDeclaration(J);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(J,V){J.isExport=V||!1,J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_LEXICAL),super.expect(K.eq);let z=this.tsParseModuleReference();if(J.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,v.ImportAliasHasImportType);return J.moduleReference=z,super.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:J}=this;if(h(J)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((J===R.type||J===R.interface)&&!this.containsEsc){let O=this.lookahead();if(h(O.type)&&!this.isContextualWithState("from",O)||O.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let V=this.nextTokenStart(),z=this.isUnparsedContextual(V,"from");if(this.input.charCodeAt(V)===44||h(this.type)&&z)return!0;if(this.match(K._default)&&z){let O=this.input.charCodeAt(this.nextTokenStartSince(V+4));return O===34||O===39}return!1}parseTemplate({isTagged:J=!1}={}){let V=this.startNode();this.next(),V.expressions=[];let z=this.parseTemplateElement({isTagged:J});V.quasis=[z];while(!z.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),V.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(K.braceR),V.quasis.push(z=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(V,"TemplateLiteral")}parseFunction(J,V,z,O,F){if(this.initFunction(J),this.ecmaVersion>=9||this.ecmaVersion>=6&&!O){if(this.type===K.star&&V&d2)this.unexpected();J.generator=this.eat(K.star)}if(this.ecmaVersion>=8)J.async=!!O;if(V&D0)J.id=V&NQ&&this.type!==K.name?null:this.parseIdent();let M=this.yieldPos,A=this.awaitPos,P=this.awaitIdentPos,S=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(g9(J.async,J.generator)),!(V&D0))J.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(J);let C=V&D0;if(this.parseFunctionBody(J,z,!1,F,{isFunctionDeclaration:C}),this.yieldPos=M,this.awaitPos=A,this.awaitIdentPos=P,V&D0&&J.id&&!(V&d2))if(J.body)this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?r.BIND_VAR:r.BIND_LEXICAL:r.BIND_FUNCTION);else this.checkLValSimple(J.id,r.BIND_NONE);return this.maybeInArrowParameters=S,this.finishNode(J,C?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(J,V=!1,z=!1,O=!1,F){if(this.match(K.colon))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let M=F?.isFunctionDeclaration?"TSDeclareFunction":F?.isClassMethod?"TSDeclareMethod":void 0;if(M&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(J,M);if(M==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(J.start,v.DeclareFunctionHasImplementation),J.declare)return super.parseFunctionBody(J,V,z,!1),this.finishNode(J,M)}return super.parseFunctionBody(J,V,z,O),J}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let J=this.startNode(),V=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){J.meta=V;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,O=this.startLoc,F=this.type===K._import;if(J.callee=this.parseSubscripts(this.parseExprAtom(),z,O,!0,!1),F&&J.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:M}=J;if(M.type==="TSInstantiationExpression"&&!M.extra?.parenthesized)J.typeArguments=M.typeArguments,J.callee=M.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,V,z,O,F){if(K._in.binop>O&&!this.hasPrecedingLineBreak()){let M;if(this.isContextual("as"))M="TSAsExpression";if(this.isContextual("satisfies"))M="TSSatisfiesExpression";if(M){let A=this.startNodeAt(V,z);A.expression=J;let P=this.tsTryNextParseConstantContext();if(P)A.typeAnnotation=P;else A.typeAnnotation=this.tsNextThenParseType();return this.finishNode(A,M),this.reScan_lt_gt(),this.parseExprOp(A,V,z,O,F)}}return super.parseExprOp(J,V,z,O,F)}parseImportSpecifiers(){let J=[],V=!0;if(j.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(!V){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else V=!1;J.push(this.parseImportSpecifier())}return J}parseImport(J){let V=this.lookahead();if(J.importKind="value",this.importOrExportOuterKind="value",h(V.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,V))this.importOrExportOuterKind="type",J.importKind="type",V=this.lookahead(),z=this.lookahead(2);if(h(V.type)&&z.type===K.eq){this.next();let O=this.tsParseImportEqualsDeclaration(J);return this.importOrExportOuterKind="value",O}}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,v.TypeImportCannotSpecifyDefaultAndNamed);return J}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0)}if(this.match(R.interface)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(J,V){if(this.ecmaVersion>=11)if(this.eatContextual("as"))J.exported=this.parseModuleExportName(),this.checkExport(V,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 V=this.parseExpression();J.arguments=[V]}if(!this.eat(K.parenR)){let V=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(V,"Trailing comma is not allowed in import()");else this.unexpected(V)}return this.finishNode(J,"ImportExpression")}parseExport(J,V){let z=this.lookahead();if(this.ts_eatWithState(K._import,2,z)){if(this.ts_isContextual(R.type)&&this.lookaheadCharCode()!==61)J.importKind="type",this.importOrExportOuterKind="type",this.next();else J.importKind="value",this.importOrExportOuterKind="value";let O=this.tsParseImportEqualsDeclaration(J,!0);return this.importOrExportOuterKind=void 0,O}else if(this.ts_eatWithState(K.eq,2,z)){let O=J;return O.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(O,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let O=J;return this.expectContextual("namespace"),O.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(O,"TSNamespaceExportDeclaration")}else{let O=this.lookahead(2).type;if(this.ts_isContextualWithState(z,R.type)&&(O===K.braceL||O===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,V);if(this.eat(K._default))return this.checkExport(V,"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(V,J.declaration.declarations);else this.checkExport(V,J.declaration.id,J.declaration.id.start);J.specifiers=[],J.source=null}else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(V),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J)}else{for(let F of J.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`.");J.source=null}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")}}checkExport(J,V,z){if(!J)return;if(typeof V!=="string")V=V.type==="Identifier"?V.name:V.value;J[V]=!0}parseMaybeDefault(J,V,z){let O=super.parseMaybeDefault(J,V,z);if(O.type==="AssignmentPattern"&&O.typeAnnotation&&O.right.start<O.typeAnnotation.start)this.raise(O.typeAnnotation.start,v.TypeAnnotationAfterAssign);return O}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.end,J.typeAnnotation.loc?.end),J.expression}toAssignableList(J,V){if(!J)J=[];for(let z=0;z<J.length;z++){let O=J[z];if(O?.type==="TSTypeCastExpression")J[z]=this.typeCastToParameter(O)}return super.toAssignableList(J,V)}reportReservedArrowTypeParam(J){if(J.params.length===1&&!J.extra?.trailingComma&&Z)this.raise(J.start,v.ReservedArrowTypeParam)}parseExprAtom(J,V,z){if(this.type===R.jsxText)return this.jsx_parseText();else if(this.type===R.jsxTagStart)return this.jsx_parseElement();else if(this.type===R.at)return this.parseDecorators(),this.parseExprAtom();else if(h(this.type)){let O=this.potentialArrowAt===this.start,F=this.start,M=this.startLoc,A=this.containsEsc,P=this.parseIdent(!1);if(this.ecmaVersion>=8&&!A&&P.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(F,M),0,!1,!0,V);if(O&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(F,M),[P],!1,V);if(this.ecmaVersion>=8&&P.name==="async"&&this.type===K.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(P=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(F,M),[P],!0,V)}}return P}else return super.parseExprAtom(J,V,z)}parseExprAtomDefault(){if(h(this.type)){let J=this.potentialArrowAt===this.start,V=this.containsEsc,z=this.parseIdent();if(!V&&z.name==="async"&&!this.canInsertSemicolon()){let{type:O}=this;if(O===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(h(O))if(this.lookaheadCharCode()===61){let F=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[F],!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(n(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,V,z=!1){let{isAmbientContext:O}=this;this.next(),super.parseVar(J,!1,V,z||O),this.semicolon();let F=this.finishNode(J,"VariableDeclaration");if(!O)return F;for(let{id:M,init:A}of F.declarations){if(!A)continue;if(V!=="const"||!!M.typeAnnotation)this.raise(A.start,v.InitializerNotAllowedInAmbientContext);else if(A.type!=="StringLiteral"&&A.type!=="BooleanLiteral"&&A.type!=="NumericLiteral"&&A.type!=="BigIntLiteral"&&(A.type!=="TemplateLiteral"||A.expressions.length>0)&&!bQ(A))this.raise(A.start,v.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return F}parseStatement(J,V,z){if(this.match(R.at))this.parseDecorators(!0);if(this.match(K._const)&&this.isLookaheadContextual("enum")){let O=this.startNode();return this.expect(K._const),this.tsParseEnumDeclaration(O,{const:!0})}if(this.ts_isContextual(R.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(R.interface)){let O=this.tsParseInterfaceDeclaration(this.startNode());if(O)return O}return super.parseStatement(J,V,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,v.ClassMethodHasReadonly);if(J.declare&&this.match(K.parenL))this.raise(J.start,v.ClassMethodHasDeclare)}parseExpressionStatement(J,V){return(V.type==="Identifier"?this.tsParseExpressionStatement(J,V):void 0)||super.parseExpressionStatement(J,V)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(R.at))return!0;return super.shouldParseExportStatement()}parseConditional(J,V,z,O,F){if(this.eat(K.question)){let M=this.startNodeAt(V,z);return M.test=J,M.consequent=this.parseMaybeAssign(),this.expect(K.colon),M.alternate=this.parseMaybeAssign(O),this.finishNode(M,"ConditionalExpression")}return J}parseMaybeConditional(J,V){let z=this.start,O=this.startLoc,F=this.parseExprOps(J,V);if(this.checkExpressionErrors(V))return F;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(F,z,O,J,V);let M=this.tryParse(()=>this.parseConditional(F,z,O,J,V));if(!M.node){if(M.error)this.setOptionalParametersError(V,M.error);return F}if(M.error)this.setLookaheadState(M.failState);return M.node}parseParenItem(J){let V=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 O=this.startNodeAt(V,z);return O.expression=J,O.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(O,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.isAmbientContext&&this.ts_isContextual(R.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let V=this.start,z=this.startLoc,O=this.eatContextual("declare");if(O&&(this.ts_isContextual(R.declare)||!this.shouldParseExportStatement()))this.raise(this.start,v.ExpectedAmbientAfterExportDeclare);let M=h(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!M)return null;if(M.type==="TSInterfaceDeclaration"||M.type==="TSTypeAliasDeclaration"||O)J.exportKind="type";if(O)this.resetStartLocation(M,V,z),M.declare=!0;return M}parseClassId(J,V){if(!V&&this.isContextual("implements"))return;super.parseClassId(J,V);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 V=this.tsTryParseTypeAnnotation();if(V)J.typeAnnotation=V}parseClassField(J){if(J.key.type==="PrivateIdentifier"){if(J.abstract)this.raise(J.start,v.PrivateElementHasAbstract);if(J.accessibility)this.raise(J.start,v.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,v.DeclareClassFieldHasInitializer);if(J.abstract&&this.match(K.eq)){let{key:z}=J;this.raise(this.start,v.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!J.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(J)}parseClassMethod(J,V,z,O){let F=J.kind==="constructor",M=J.key.type==="PrivateIdentifier",A=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(M){if(A)J.typeParameters=A;if(J.accessibility)this.raise(J.start,v.PrivateMethodsHasAccessibility({modifier:J.accessibility}))}else if(A&&F)this.raise(A.start,v.ConstructorHasTypeParameters);let{declare:P=!1,kind:S}=J;if(P&&(S==="get"||S==="set"))this.raise(J.start,v.DeclareAccessor({kind:S}));if(A)J.typeParameters=A;let C=J.key;if(J.kind==="constructor"){if(V)this.raise(C.start,"Constructor can't be a generator");if(z)this.raise(C.start,"Constructor can't be an async method")}else if(J.static&&l2(J,"prototype"))this.raise(C.start,"Classes may not have a static property named prototype");let N=J.value=this.parseMethod(V,z,O,!0,J);if(J.kind==="get"&&N.params.length!==0)this.raiseRecoverable(N.start,"getter should have no params");if(J.kind==="set"&&N.params.length!==1)this.raiseRecoverable(N.start,"setter should have exactly one param");if(J.kind==="set"&&N.params[0].type==="RestElement")this.raiseRecoverable(N.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 V=this.startNode(),z="",O=!1,F=!1,M="method",A=!1,P=["declare","private","public","protected","accessor","override","abstract","readonly","static"],S=this.tsParseModifiers({modified:V,allowedModifiers:P,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:v.InvalidModifierOnTypeParameterPositions});A=Boolean(S.static);let C=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(V,P))this.raise(this.start,v.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(V),V}else{let N=this.tsTryParseIndexSignature(V);if(N){if(V.abstract)this.raise(V.start,v.IndexSignatureHasAbstract);if(V.accessibility)this.raise(V.start,v.IndexSignatureHasAccessibility({modifier:V.accessibility}));if(V.declare)this.raise(V.start,v.IndexSignatureHasDeclare);if(V.override)this.raise(V.start,v.IndexSignatureHasOverride);return N}if(!this.inAbstractClass&&V.abstract)this.raise(V.start,v.NonAbstractClassHasAbstractMethod);if(V.override){if(!J)this.raise(V.start,v.OverrideNotInSubClass)}if(V.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())F=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!F)&&this.eat(K.star))O=!0;if(!z&&!F&&!O){let k=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())M=k;else z=k}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===K.parenL||M!=="method"||O||F){let k=!V.static&&l2(V,"constructor"),y=k&&J;if(k&&M!=="method")this.raise(V.key.start,"Constructor can't have get/set modifier");V.kind=k?"constructor":M,this.parseClassMethod(V,O,F,y)}else this.parseClassField(V);return V}};if(V.declare)this.tsInAmbientContext(C);else C();return V}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 V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V)J.typeParameters=V;super.parseFunctionParams(J)}parseVarId(J,V){if(super.parseVarId(J,V),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,V,z,O){if(this.match(K.colon))J.returnType=this.tsParseTypeAnnotation();let F=this.yieldPos,M=this.awaitPos,A=this.awaitIdentPos;this.enterScope(g9(z,!1)|r.SCOPE_ARROW),this.initFunction(J);let P=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(V,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0,!1,O),this.yieldPos=F,this.awaitPos=M,this.awaitIdentPos=A,this.maybeInArrowParameters=P,this.finishNode(J,"ArrowFunctionExpression")}parseMaybeAssignOrigin(J,V,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(J);else this.exprAllowed=!1;let O=!1,F=-1,M=-1,A=-1;if(V)F=V.parenthesizedAssign,M=V.trailingComma,A=V.doubleProto,V.parenthesizedAssign=V.trailingComma=-1;else V=new m1,O=!0;let P=this.start,S=this.startLoc;if(this.type===K.parenL||h(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await";let C=this.parseMaybeConditional(J,V);if(z)C=z.call(this,C,P,S);if(this.type.isAssign){let N=this.startNodeAt(P,S);if(N.operator=this.value,this.type===K.eq)C=this.toAssignable(C,!0,V);if(!O)V.parenthesizedAssign=V.trailingComma=V.doubleProto=-1;if(V.shorthandAssign>=C.start)V.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(C);else this.checkLValSimple(C);if(N.left=C,this.next(),N.right=this.parseMaybeAssign(J),A>-1)V.doubleProto=A;return this.finishNode(N,"AssignmentExpression")}else if(O)this.checkExpressionErrors(V,!0);if(F>-1)V.parenthesizedAssign=F;if(M>-1)V.trailingComma=M;return C}parseMaybeAssign(J,V,z){let O,F,M;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(O=this.cloneCurLookaheadState(),F=this.tryParse(()=>this.parseMaybeAssignOrigin(J,V,z),O),!F.error)return F.node;let S=this.context,C=S[S.length-1],N=S[S.length-2];if(C===j.tokContexts.tc_oTag&&N===j.tokContexts.tc_expr)S.pop(),S.pop();else if(C===j.tokContexts.tc_oTag||C===j.tokContexts.tc_expr)S.pop()}if(!F?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(J,V,z);if(!O||this.compareLookaheadState(O,this.getCurLookaheadState()))O=this.cloneCurLookaheadState();let A,P=this.tryParse((S)=>{A=this.tsParseTypeParameters(this.tsParseConstModifier);let C=this.parseMaybeAssignOrigin(J,V,z);if(C.type!=="ArrowFunctionExpression"||C.extra?.parenthesized)S();if(A?.params.length!==0)this.resetStartLocationFromNode(C,A);return C.typeParameters=A,C},O);if(!P.error&&!P.aborted){if(A)this.reportReservedArrowTypeParam(A);return P.node}if(!F){if(c2(!0),M=this.tryParse(()=>this.parseMaybeAssignOrigin(J,V,z),O),!M.error)return M.node}if(F?.node)return this.setLookaheadState(F.failState),F.node;if(P.node){if(this.setLookaheadState(P.failState),A)this.reportReservedArrowTypeParam(A);return P.node}if(M?.node)return this.setLookaheadState(M.failState),M.node;if(F?.thrown)throw F.error;if(P.thrown)throw P.error;if(M?.thrown)throw M.error;throw F?.error||P.error||M?.error}parseAssignableListItem(J){let V=[];while(this.match(R.at))V.push(this.parseDecorator());let z=this.start,O=this.startLoc,F,M=!1,A=!1;if(J!==void 0){let C={};if(this.tsParseModifiers({modified:C,allowedModifiers:["public","private","protected","override","readonly"]}),F=C.accessibility,A=C.override,M=C.readonly,J===!1&&(F||M||A))this.raise(O.column,v.UnexpectedParameterModifier)}let P=this.parseMaybeDefault(z,O);this.parseBindingListItem(P);let S=this.parseMaybeDefault(P.start,P.loc.start,P);if(V.length)S.decorators=V;if(F||M||A){let C=this.startNodeAt(z,O);if(F)C.accessibility=F;if(M)C.readonly=M;if(A)C.override=A;if(S.type!=="Identifier"&&S.type!=="AssignmentPattern")this.raise(C.start,v.UnsupportedParameterPropertyKind);return C.parameter=S,this.finishNode(C,"TSParameterProperty")}return S}checkLValInnerPattern(J,V=r.BIND_NONE,z){switch(J.type){case"TSParameterProperty":this.checkLValInnerPattern(J.parameter,V,z);break;default:{super.checkLValInnerPattern(J,V,z);break}}}parseBindingListItem(J){if(this.eat(K.question)){if(J.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(J.start,v.PatternIsOptional);J.optional=!0}let V=this.tsTryParseTypeAnnotation();if(V)J.typeAnnotation=V;return this.resetEndLocation(J),J}isAssignable(J,V){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,V);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((O,F)=>{return O.type!=="ObjectMethod"&&(F===z||O.type!=="SpreadElement")&&this.isAssignable(O)})}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!V;default:return!1}}toAssignable(J,V=!1,z=new m1){switch(J.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(J,V,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(V);else this.raise(J.start,v.UnexpectedTypeCastInParameter);return this.toAssignable(J.expression,V,z);case"MemberExpression":break;case"AssignmentExpression":if(!V&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);return super.toAssignable(J,V,z);case"TSTypeCastExpression":return this.typeCastToParameter(J);default:return super.toAssignable(J,V,z)}return J}toAssignableParenthesizedExpression(J,V,z){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(J.expression,V,z);default:return super.toAssignable(J,V,z)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(J){let V;if(this.match(K.colon))V=J.every((z)=>this.isAssignable(z,!0));else V=!this.canInsertSemicolon();if(V){if(this.match(K.colon)){let z=this.tryParse((O)=>{let F=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))O();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(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,V}parseParenArrowList(J,V,z,O){let F=this.startNodeAt(J,V);return F.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(F,z,!1,O)}parseParenAndDistinguishExpression(J,V){let z=this.start,O=this.startLoc,F,M=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let A=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let P=this.start,S=this.startLoc,C=[],N=!0,k=!1,y=new m1,u=this.yieldPos,l=this.awaitPos,s;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(N?N=!1:this.expect(K.comma),M&&this.afterTrailingComma(K.parenR,!0)){k=!0;break}else if(this.type===K.ellipsis){if(s=this.start,C.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else C.push(this.parseMaybeAssign(V,y,this.parseParenItem));let _=this.lastTokEnd,p=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=A,J&&this.shouldParseArrow(C)&&this.eat(K.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=l,this.parseParenArrowList(z,O,C,V);if(!C.length||k)this.unexpected(this.lastTokStart);if(s)this.unexpected(s);if(this.checkExpressionErrors(y,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=l||this.awaitPos,C.length>1)F=this.startNodeAt(P,S),F.expressions=C,this.finishNodeAt(F,"SequenceExpression",_,p);else F=C[0]}else F=this.parseParenExpression();if(this.options.preserveParens){let A=this.startNodeAt(z,O);return A.expression=F,this.finishNode(A,"ParenthesizedExpression")}else return F}parseTaggedTemplateExpression(J,V,z,O){let F=this.startNodeAt(V,z);if(F.tag=J,F.quasi=this.parseTemplate({isTagged:!0}),O)this.raise(V,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(F,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let J=this.tryParse((V)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))V();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,V,z,O){let F=this.startNodeAt(J,V);return F.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(F,z,!0,O)}parseExprList(J,V,z,O){let F=[],M=!0;while(!this.eat(J)){if(!M){if(this.expect(K.comma),V&&this.afterTrailingComma(J))break}else M=!1;let A;if(z&&this.type===K.comma)A=null;else if(this.type===K.ellipsis){if(A=this.parseSpread(O),this.maybeInArrowParameters&&this.match(K.colon))A.typeAnnotation=this.tsParseTypeAnnotation();if(O&&this.type===K.comma&&O.trailingComma<0)O.trailingComma=this.start}else A=this.parseMaybeAssign(!1,O,this.parseParenItem);F.push(A)}return F}parseSubscript(J,V,z,O,F,M,A){let P=M;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let y=this.startNodeAt(V,z);return y.expression=J,J=this.finishNode(y,"TSNonNullExpression"),J}let S=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(O)return J;J.optional=!0,P=S=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let y,u=this.tsTryParseAndCatch(()=>{if(!O&&this.atPossibleAsyncArrow(J)){let p=this.tsTryParseGenericAsyncArrowFunction(V,z,A);if(p)return J=p,J}let l=this.tsParseTypeArgumentsInExpression();if(!l)return J;if(S&&!this.match(K.parenL))return y=this.curPosition(),J;if(b(this.type)||this.type===K.backQuote){let p=this.parseTaggedTemplateExpression(J,V,z,P);return p.typeArguments=l,p}if(!O&&this.eat(K.parenL)){let p=new m1,c=this.startNodeAt(V,z);if(c.callee=J,c.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,p),this.tsCheckForInvalidTypeCasts(c.arguments),c.typeArguments=l,P)c.optional=S;return this.checkExpressionErrors(p,!0),J=this.finishNode(c,"CallExpression"),J}let s=this.type;if(this.tsMatchRightRelational()||s===K.bitShift||s!==K.parenL&&TQ(s)&&!this.hasPrecedingLineBreak())return;let _=this.startNodeAt(V,z);return _.expression=J,_.typeArguments=l,this.finishNode(_,"TSInstantiationExpression")});if(y)this.unexpected(y);if(u){if(u.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,v.InvalidPropertyAccessAfterInstantiationExpression);return J=u,J}}let C=this.ecmaVersion>=11,N=C&&this.eat(K.questionDot);if(O&&N)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let k=this.eat(K.bracketL);if(k||N&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let y=this.startNodeAt(V,z);if(y.object=J,k)y.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&J.type!=="Super")y.property=this.parsePrivateIdent();else y.property=this.parseIdent(this.options.allowReserved!=="never");if(y.computed=!!k,C)y.optional=N;J=this.finishNode(y,"MemberExpression")}else if(!O&&this.eat(K.parenL)){let y=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let u=new m1,l=this.yieldPos,s=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let p=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,u);if(F&&!N&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=l,this.awaitPos=s,this.awaitIdentPos=_,J=this.parseSubscriptAsyncArrow(V,z,p,A)}else{this.checkExpressionErrors(u,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=s||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;let c=this.startNodeAt(V,z);if(c.callee=J,c.arguments=p,C)c.optional=N;J=this.finishNode(c,"CallExpression")}this.maybeInArrowParameters=y}else if(this.type===K.backQuote){if(N||P)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let y=this.startNodeAt(V,z);y.tag=J,y.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(y,"TaggedTemplateExpression")}return J}parseGetterSetter(J){J.kind=J.key.name,this.parsePropertyName(J);let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(!1),V)J.value.typeParameters=V;let z=J.kind==="get"?0:1,O=J.value.params[0];if(z=O&&this.isThisParam(O)?z+1:z,J.value.params.length!==z){let M=J.value.start;if(J.kind==="get")this.raiseRecoverable(M,"getter should have no params");else this.raiseRecoverable(M,"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,V,z,O,F,M,A,P){if(this.tsMatchLeftRelational()){if(V)this.unexpected();J.kind="init",J.method=!0;let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(z,O),S)J.value.typeParameters=S;return}return super.parsePropertyValue(J,V,z,O,F,M,A,P)}parseProperty(J,V){if(!J){let z=[];if(this.match(R.at))while(this.match(R.at))z.push(this.parseDecorator());let O=super.parseProperty(J,V);if(O.type==="SpreadElement"){if(z.length)this.raise(O.start,k0.SpreadElementDecorator)}if(z.length)O.decorators=z,z=[];return O}return super.parseProperty(J,V)}parseCatchClauseParam(){let J=this.parseBindingAtom(),V=J.type==="Identifier";this.enterScope(V?r.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(J,V?r.BIND_SIMPLE_CATCH:r.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z,this.resetEndLocation(J);return this.expect(K.parenR),J}parseClass(J,V){let z=this.inAbstractClass;this.inAbstractClass=!!J.abstract;try{this.next(),this.takeDecorators(J);let O=this.strict;this.strict=!0,this.parseClassId(J,V),this.parseClassSuper(J);let F=this.enterClassBody(),M=this.startNode(),A=!1;M.body=[];let P=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(R.at)){P.push(this.parseDecorator());continue}let S=this.parseClassElement(J.superClass!==null);if(P.length)S.decorators=P,this.resetStartLocationFromNode(S,P[0]),P=[];if(S){if(M.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,k0.DecoratorConstructor)}else if(S.key&&S.key.type==="PrivateIdentifier"&&S.value?.type!=="TSDeclareMethod"&&wQ(F,S))this.raiseRecoverable(S.key.start,`Identifier '#${S.key.name}' has already been declared`)}}if(this.strict=O,this.next(),P.length)this.raise(this.start,k0.TrailingDecorator);return J.body=this.finishNode(M,"ClassBody"),this.exitClassBody(),this.finishNode(J,V?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let J=this.tsTryParseTypeParameters(),V=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(J)V.typeParameters=J;return V}parseMethod(J,V,z,O,F){let M=this.startNode(),A=this.yieldPos,P=this.awaitPos,S=this.awaitIdentPos;if(this.initFunction(M),this.ecmaVersion>=6)M.generator=J;if(this.ecmaVersion>=8)M.async=!!V;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(g9(V,M.generator)|r.SCOPE_SUPER|(z?r.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),M.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(M,!1,!0,!1,{isClassMethod:O}),this.yieldPos=A,this.awaitPos=P,this.awaitIdentPos=S,F&&F.abstract){if(!!M.body){let{key:N}=F;this.raise(F.start,v.AbstractMethodHasImplementation({methodName:N.type==="Identifier"&&!F.computed?N.name:`[${this.input.slice(N.start,N.end)}]`}))}}return this.finishNode(M,"FunctionExpression")}static parse(J,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,J);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(J,V,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let O=new this(z,J,V);if(Q)O.isAmbientContext=!0;return O.nextToken(),O.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(R.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(J){let V=this.ts_isContextual(R.type);if(!this.match(K.string)&&V){let O=this.startNode();return O.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(O,!1,this.importOrExportOuterKind==="type"),this.finishNode(O,"ExportSpecifier"),this.checkExport(J,O.exported,O.exported.start),O}else{let O=super.parseExportSpecifier(J);return O.exportKind="value",O}}parseTypeOnlyImportExportSpecifier(J,V,z){let O=V?"imported":"local",F=V?"local":"exported",M=J[O],A,P=!1,S=!0,C=M.start;if(this.isContextual("as")){let k=this.parseIdent();if(this.isContextual("as")){let y=this.parseIdent();if(n(this.type))P=!0,M=k,A=V?this.parseIdent():this.parseModuleExportName(),S=!1;else A=y,S=!1}else if(n(this.type))S=!1,A=V?this.parseIdent():this.parseModuleExportName();else P=!0,M=k}else if(n(this.type))if(P=!0,V){if(M=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(M)}else M=this.parseModuleExportName();if(P&&z)this.raise(C,V?v.TypeModifierIsUsedInTypeImports:v.TypeModifierIsUsedInTypeExports);J[O]=M,J[F]=A;let N=V?"importKind":"exportKind";if(J[N]=P?"type":"value",S&&this.eatContextual("as"))J[F]=V?this.parseIdent():this.parseModuleExportName();if(!J[F])J[F]=this.copyNode(J[O]);if(V)this.checkLValSimple(J[F],r.BIND_LEXICAL)}raiseCommonCheck(J,V,z){switch(V){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,V)}return z?super.raiseRecoverable(J,V):super.raise(J,V)}raiseRecoverable(J,V){return this.raiseCommonCheck(J,V,!0)}raise(J,V){return this.raiseCommonCheck(J,V,!0)}updateContext(J){let{type:V}=this;if(V==K.braceL){var z=this.curContext();if(z==I.tc_oTag)this.context.push($.b_expr);else if(z==I.tc_expr)this.context.push($.b_tmpl);else super.updateContext(J);this.exprAllowed=!0}else if(V===K.slash&&J===R.jsxTagStart)this.context.length-=2,this.context.push(I.tc_cTag),this.exprAllowed=!1;else return super.updateContext(J)}jsx_parseOpeningElementAt(J,V){let z=this.startNodeAt(J,V),O=this.jsx_parseElementName();if(O)z.name=O;if(this.match(K.relational)||this.match(K.bitShift)){let F=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(F)z.typeArguments=F}z.attributes=[];while(this.type!==K.slash&&this.type!==R.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(K.slash),this.expect(R.jsxTagEnd),this.finishNode(z,O?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(J){if(J===u1)this.importsStack.push([]);super.enterScope(J);let V=super.currentScope();V.types=[],V.enums=[],V.constEnums=[],V.classes=[],V.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===u1)this.importsStack.pop();super.exitScope()}hasImport(J,V){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(J)>-1)return!0;if(!V&&z>1){for(let O=0;O<z-1;O++)if(this.importsStack[O].indexOf(J)>-1)return!0}return!1}maybeExportDefined(J,V){if(this.inModule&&J.flags&r.SCOPE_TOP)delete this.undefinedExports[V]}declareName(J,V,z){if(V&r.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 O=this.currentScope();if(V&r.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(O,J),O.exportOnlyBindings.push(J);return}if(V===r.BIND_TS_TYPE||V===r.BIND_TS_INTERFACE){if(V===r.BIND_TS_TYPE&&O.types.includes(J))this.raise(z,`type '${J}' has already been declared.`);O.types.push(J)}else super.declareName(J,V,z);if(V&r.BIND_FLAGS_TS_ENUM)O.enums.push(J);if(V&r.BIND_FLAGS_TS_CONST_ENUM)O.constEnums.push(J);if(V&r.BIND_FLAGS_CLASS)O.classes.push(J)}checkLocalExport(J){let{name:V}=J;if(this.hasImport(V))return;let z=this.scopeStack.length;for(let O=z-1;O>=0;O--){let F=this.scopeStack[O];if(F.types.indexOf(V)>-1||F.exportOnlyBindings.indexOf(V)>-1)return}super.checkLocalExport(J)}}return a}}class q5 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 f(q,Q,Z){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new q5(Q,Z,Y!==void 0?[Y,H??Y]:void 0)}function Q5(q){f(q,"css_empty_declaration",`Declaration cannot be empty
|
|
35
|
+
`;else w=String.fromCharCode($);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return w}jsx_readString(U){let $="",w=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let R=this.input.charCodeAt(this.pos);if(R===U)break;if(R===38)$+=this.input.slice(w,this.pos),$+=this.jsx_readEntity(),w=this.pos;else if(K(R))$+=this.input.slice(w,this.pos),$+=this.jsx_readNewLine(!1),w=this.pos;else++this.pos}return $+=this.input.slice(w,this.pos++),this.finishToken(H.string,$)}jsx_readEntity(){let U="",$=0,w,R=this.input[this.pos];if(R!=="&")this.raise(this.pos,"Entity must start with an ampersand");let I=++this.pos;while(this.pos<this.input.length&&$++<10){if(R=this.input[this.pos++],R===";"){if(U[0]==="#"){if(U[1]==="x"){if(U=U.substr(2),IQ.test(U))w=String.fromCharCode(parseInt(U,16))}else if(U=U.substr(1),SQ.test(U))w=String.fromCharCode(parseInt(U,10))}else w=LQ[U];break}U+=R}if(!w)return this.pos=I,"&";return w}jsx_readWord(){let U,$=this.pos;do U=this.input.charCodeAt(++this.pos);while(X(U)||U===45);return this.finishToken(j.jsxName,this.input.slice($,this.pos))}jsx_parseIdentifier(){let U=this.startNode();if(this.type===j.jsxName)U.name=this.value;else if(this.type.keyword)U.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(U,"JSXIdentifier")}jsx_parseNamespacedName(){let U=this.start,$=this.startLoc,w=this.jsx_parseIdentifier();if(!W.allowNamespaces||!this.eat(H.colon))return w;var R=this.startNodeAt(U,$);return R.namespace=w,R.name=this.jsx_parseIdentifier(),this.finishNode(R,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===j.jsxTagEnd)return"";let U=this.start,$=this.startLoc,w=this.jsx_parseNamespacedName();if(this.type===H.dot&&w.type==="JSXNamespacedName"&&!W.allowNamespacedObjects)this.unexpected();while(this.eat(H.dot)){let R=this.startNodeAt(U,$);R.object=w,R.property=this.jsx_parseIdentifier(),w=this.finishNode(R,"JSXMemberExpression")}return w}jsx_parseAttributeValue(){switch(this.type){case H.braceL:let U=this.jsx_parseExpressionContainer();if(U.expression.type==="JSXEmptyExpression")this.raise(U.start,"JSX attributes must only be assigned a non-empty expression");return U;case j.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 U=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(U,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let U=this.startNode();return this.next(),U.expression=this.type===H.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(H.braceR),this.finishNode(U,"JSXExpressionContainer")}jsx_parseAttribute(){let U=this.startNode();if(this.eat(H.braceL))return this.expect(H.ellipsis),U.argument=this.parseMaybeAssign(),this.expect(H.braceR),this.finishNode(U,"JSXSpreadAttribute");return U.name=this.jsx_parseNamespacedName(),U.value=this.eat(H.eq)?this.jsx_parseAttributeValue():null,this.finishNode(U,"JSXAttribute")}jsx_parseOpeningElementAt(U,$){let w=this.startNodeAt(U,$);w.attributes=[];let R=this.jsx_parseElementName();if(R)w.name=R;while(this.type!==H.slash&&this.type!==j.jsxTagEnd)w.attributes.push(this.jsx_parseAttribute());return w.selfClosing=this.eat(H.slash),this.expect(j.jsxTagEnd),this.finishNode(w,R?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(U,$){let w=this.startNodeAt(U,$),R=this.jsx_parseElementName();if(R)w.name=R;return this.expect(j.jsxTagEnd),this.finishNode(w,R?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(U,$){let w=this.startNodeAt(U,$),R=[],I=this.jsx_parseOpeningElementAt(U,$),D=null;if(!I.selfClosing){q:for(;;)switch(this.type){case j.jsxTagStart:if(U=this.start,$=this.startLoc,this.next(),this.eat(H.slash)){D=this.jsx_parseClosingElementAt(U,$);break q}R.push(this.jsx_parseElementAt(U,$));break;case j.jsxText:R.push(this.parseExprAtom());break;case H.braceL:R.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(l1(D.name)!==l1(I.name))this.raise(D.start,"Expected corresponding JSX closing tag for <"+l1(I.name)+">")}let L=I.name?"Element":"Fragment";if(w["opening"+L]=I,w["closing"+L]=D,w.children=R,this.type===H.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(w,"JSX"+L)}jsx_parseText(){let U=this.parseLiteral(this.value);return U.type="JSXText",U}jsx_parseElement(){let U=this.start,$=this.startLoc;return this.next(),this.jsx_parseElementAt(U,$)}}}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 X=this.parseImportAttributes();if(X)K.attributes=X}}parseImportAttributes(){this.expect(H.braceL);let K=this.parseWithEntries();return this.expect(H.braceR),K}parseWithEntries(){let K=[],X=new Set;do{if(this.type===H.braceR)break;let W=this.startNode(),B;if(this.type===H.string)B=this.parseLiteral(this.value);else B=this.parseIdent(!0);if(this.next(),W.key=B,X.has(W.key.name))this.raise(this.pos,"Duplicated key in attributes");if(X.add(W.key.name),this.type!==H.string)this.raise(this.pos,"Only string is supported as an attribute value");W.value=this.parseLiteral(this.value),K.push(this.finishNode(W,"ImportAttribute"))}while(this.eat(H.comma));return K}}}var f9=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function c2(q){if(!q)throw Error("Assert fail")}function kQ(q){return q==="accessor"}function NQ(q){return q==="in"||q==="out"}var D0=1,d2=2,bQ=4,r={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 g9(q,Q){return r.SCOPE_FUNCTION|(q?r.SCOPE_ASYNC:0)|(Q?r.SCOPE_GENERATOR:0)}function TQ(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 t2(q.object)}function t2(q){if(q.type==="Identifier")return!0;if(q.type!=="MemberExpression")return!1;if(q.computed)return!1;return t2(q.object)}function i2(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 e2(q){let{dts:Q=!1}=q||{},Z=!!q?.jsx;return function(Y){let H=Y.acorn||P0,j=GQ(H),K=H.tokTypes,X=H.keywordTypes,W=H.isIdentifierStart,B=H.lineBreak,U=H.isNewLine,$=H.tokContexts,w=H.isIdentifierChar,{tokTypes:R,tokContexts:I,keywordsRegExp:D,tokenIsLiteralPropertyName:L,tokenIsTemplate:b,tokenIsTSDeclarationStart:x,tokenIsIdentifier:h,tokenIsKeywordOrIdentifier:n,tokenIsTSTypeOperator:g}=j;function t(J,V,z=J.length){for(let O=V;O<z;O++){let F=J.charCodeAt(O);if(U(F))return O<z-1&&F===13&&J.charCodeAt(O+1)===10?O+2:O+1}return-1}if(Y=CQ(Y,j,H),q?.jsx)Y=PQ(H,j,Y,typeof q.jsx==="boolean"?{}:q.jsx);Y=DQ(Y,j,H);class a extends Y{constructor(J,V,z){super(J,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=(O)=>{this.tsParseModifiers({modified:O,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:v.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return j}get acornTypeScript(){return j}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 V=this.curContext();if(V===I.tc_expr)return this.jsx_readToken();if(V===I.tc_oTag||V===I.tc_cTag){if(W(J))return this.jsx_readWord();if(J==62)return++this.pos,this.finishToken(R.jsxTagEnd);if((J===34||J===39)&&V==I.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(R.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(R.at);return super.getTokenFromCode(J)}isAbstractClass(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===K._class}finishNode(J,V){if(J.type!==""&&J.end!==0)return J;return super.finishNode(J,V)}tryParse(J,V=this.cloneCurLookaheadState()){let z={node:null};try{return{node:J((F=null)=>{throw z.node=F,z}),error:null,thrown:!1,aborted:!1,failState:null}}catch(O){let F=this.getCurLookaheadState();if(this.setLookaheadState(V),O instanceof SyntaxError)return{node:null,error:O,thrown:!0,aborted:!1,failState:F};if(O===z)return{node:z.node,error:null,thrown:!1,aborted:!0,failState:F};throw O}}setOptionalParametersError(J,V){J.optionalParametersLoc=V?.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,V=this.lastTokEnd,z=this.lastTokEndLoc){if(J.end=V,J.loc.end=z,this.options.ranges)J.range[1]=V}startNodeAtNode(J){return super.startNodeAt(J.start,J.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(J,V){return V.some((z)=>{if(i2(z))return J.accessibility===z;return!!J[z]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(J){J.forEach((V)=>{if(V?.type==="TSTypeCastExpression")this.raise(V.typeAnnotation.start,v.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 h(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(K.colon)?this.tsParseTypeOrTypePredicateAnnotation(K.colon):void 0}tsTryParseGenericAsyncArrowFunction(J,V,z){if(!this.tsMatchLeftRelational())return;let O=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let F=this.tsTryParseAndCatch(()=>{let M=this.startNodeAt(J,V);return M.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(M),M.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(K.arrow),M});if(this.maybeInArrowParameters=O,!F)return;return super.parseArrowExpression(F,null,!0,z)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==K.relational)return;return this.tsParseTypeArguments()}tsInNoContext(J){let V=this.context;this.context=[V[0]];try{return J()}finally{this.context=V}}tsTryParseTypeAnnotation(){return this.match(K.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(J,V){let z=J+V.length;if(this.input.slice(J,z)===V){let O=this.input.charCodeAt(z);return!(w(O)||(O&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===K._new}nextTokenStartSince(J){return f9.lastIndex=J,f9.test(this.input)?f9.lastIndex:J}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(J,V){for(let z of Object.keys(J))if(J[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(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 V=this.getCurLookaheadState(),z=J();return this.setLookaheadState(V),z}lookahead(J){let V=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,J!==void 0)for(let O=0;O<J;O++)this.nextToken();else this.nextToken();this.isLookahead=!1;let z=this.getCurLookaheadState();return this.setLookaheadState(V),z}readWord(){let J=this.readWord1(),V=K.name;if(this.keywords.test(J))V=X[J];else if(new RegExp(D).test(J))V=R[J];return this.finishToken(V,J)}skipBlockComment(){let J;if(!this.isLookahead)J=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 O,F=V;(O=t(this.input,F,this.pos))>-1;)++this.curLine,F=this.lineStart=O;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(V+2,z),V,this.pos,J,this.curPosition())}skipLineComment(J){let V=this.pos,z;if(!this.isLookahead)z=this.options.onComment&&this.curPosition();let O=this.input.charCodeAt(this.pos+=J);while(this.pos<this.input.length&&!U(O))O=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(V+J,this.pos),V,this.pos,z,this.curPosition())}finishToken(J,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=J,this.value=V,!this.isLookahead)this.updateContext(z)}resetStartLocation(J,V,z){if(J.start=V,J.loc.start=z,this.options.ranges)J.range[0]=V}isLineTerminator(){return this.eat(K.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return m2.lastIndex=this.end,m2.test(this.input)}addExtra(J,V,z,O=!0){if(!J)return;let F=J.extra=J.extra||{};if(O)F[V]=z;else Object.defineProperty(F,V,{enumerable:O,value:z})}isLiteralPropertyName(){return L(this.type)}hasPrecedingLineBreak(){return B.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(J,V){return J.name=V,this.finishNode(J,"Identifier")}resetStartLocationFromNode(J,V){this.resetStartLocation(J,V.start,V.loc.start)}isThisParam(J){return J.type==="Identifier"&&J.name==="this"}isLookaheadContextual(J){let V=this.nextTokenStart();return this.isUnparsedContextual(V,J)}ts_type_isContextual(J,V){return J===V&&!this.containsEsc}ts_isContextual(J){return this.type===J&&!this.containsEsc}ts_isContextualWithState(J,V){return J.type===V&&!J.containsEsc}isContextualWithState(J,V){return V.type===K.name&&V.value===J&&!V.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(K.plusMin))return this.ts_isContextual(R.readonly);if(this.ts_isContextual(R.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 V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return J()}finally{this.inDisallowConditionalTypesContext=V}}tsTryParseType(){return this.tsEatThenParseType(K.colon)}match(J){return this.type===J}matchJsx(J){return this.type===j.tokTypes[J]}ts_eatWithState(J,V,z){let O=z.type;if(J===O){for(let F=0;F<V;F++)this.next();return!0}else return!1}ts_eatContextualWithState(J,V,z){if(D.test(J)){if(this.ts_isContextualWithState(z,R[J])){for(let O=0;O<V;O++)this.next();return!0}return!1}else{if(!this.isContextualWithState(J,z))return!1;for(let O=0;O<V;O++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(K._class)||this.isAbstractClass()}eatContextual(J){if(D.test(J)){if(this.ts_isContextual(R[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 V=this.parseIdent(J);while(this.eat(K.dot)){let z=this.startNodeAtNode(V);z.left=V,z.right=this.parseIdent(J),V=this.finishNode(z,"TSQualifiedName")}return V}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,V={}){if(V.const)J.const=!0;if(V.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(OQ),this.expect(K.braceL),J.body=[];while(this.type!==K.braceR){let V=this.parseStatement(null,!0);J.body.push(V)}return this.next(),super.exitScope(),this.finishNode(J,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(J){if(this.ts_isContextual(R.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(u1),J.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(J,"TSModuleDeclaration")}tsTryParseDeclare(J){if(this.isLineTerminator())return;let V=this.type,z;if(this.isContextual("let"))V=K._var,z="let";return this.tsInAmbientContext(()=>{if(V===K._function)return J.declare=!0,this.parseFunctionStatement(J,!1,!0);if(V===K._class)return J.declare=!0,this.parseClass(J,!0);if(V===R.enum)return this.tsParseEnumDeclaration(J,{declare:!0});if(V===R.global)return this.tsParseAmbientExternalModuleDeclaration(J);if(V===K._const||V===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(V===R.interface){let O=this.tsParseInterfaceDeclaration(J,{declare:!0});if(O)return O}if(h(V))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,V,z,O){let F=[],M=-1;for(;;){if(this.tsIsListTerminator(J))break;M=-1;let A=V();if(A==null)return;if(F.push(A),this.eat(K.comma)){M=this.lastTokStart;continue}if(this.tsIsListTerminator(J))break;if(z)this.expect(K.comma);return}if(O)O.value=M;return F}tsParseDelimitedList(J,V,z){return vQ(this.tsParseDelimitedListWorker(J,V,!0,z))}tsParseBracketedList(J,V,z,O,F){if(!O)if(z)this.expect(K.bracketL);else this.expect(K.relational);let M=this.tsParseDelimitedList(J,V,F);if(z)this.expect(K.bracketR);else this.expect(K.relational);return M}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(h(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 V=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return J()}finally{this.inDisallowConditionalTypesContext=V}}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,v.UnsupportedSignatureParameterKind({type:J.type}));return J})}tsParseTypePredicateAsserts(){if(this.type!==R.asserts)return!1;let J=this.containsEsc;if(this.next(),!h(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,V=this.startNode()){return this.tsInType(()=>{if(J)this.expect(K.colon);V.typeAnnotation=this.tsParseType()}),this.finishNode(V,"TSTypeAnnotation")}tsParseThisTypePredicate(J){this.next();let V=this.startNodeAtNode(J);return V.parameterName=J,V.typeAnnotation=this.tsParseTypeAnnotation(!1),V.asserts=!1,this.finishNode(V,"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 V=this.startNode();this.expect(J);let z=this.startNode(),O=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(O&&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 V.typeAnnotation=A,this.finishNode(V,"TSTypeAnnotation")}let F=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!F){if(!O)return this.tsParseTypeAnnotation(!1,V);return z.parameterName=this.parseIdent(),z.asserts=O,z.typeAnnotation=null,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")}let M=this.tsParseTypeAnnotation(!1);return z.parameterName=F,z.typeAnnotation=M,z.asserts=O,V.typeAnnotation=this.finishNode(z,"TSTypePredicate"),this.finishNode(V,"TSTypeAnnotation")})}tsFillSignature(J,V){let z=J===K.arrow,O="parameters",F="typeAnnotation";if(V.typeParameters=this.tsTryParseTypeParameters(),this.expect(K.parenL),V.parameters=this.tsParseBindingListForSignature(),z)V.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(J);else if(this.match(J))V.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,v.CannotFindName({name:"const"}));return J}tsParseFunctionOrConstructorType(J,V){let z=this.startNode();if(J==="TSConstructorType"){if(z.abstract=!!V,V)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(K.arrow,z)),this.finishNode(z,J)}tsParseUnionOrIntersectionType(J,V,z){let O=this.startNode(),F=this.eat(z),M=[];do M.push(V());while(this.eat(z));if(M.length===1&&!F)return M[0];return O.types=M,this.finishNode(O,J)}tsCheckTypeAnnotationForReadOnly(J){switch(J.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.start,v.UnexpectedReadonly)}}tsParseTypeOperator(){let J=this.startNode(),V=this.value;if(this.next(),J.operator=V,J.typeAnnotation=this.tsParseTypeOperatorOrHigher(),V==="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 V=this.startNode();return V.name=this.tsParseTypeParameterName(),V.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),J.typeParameter=this.finishNode(V,"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,v.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,V=this.start,z=this.eat(K.ellipsis),O=this.tsParseType(),F=this.eat(K.question);if(this.eat(K.colon)){let A=this.startNodeAtNode(O);if(A.optional=F,O.type==="TSTypeReference"&&!O.typeArguments&&O.typeName.type==="Identifier")A.label=O.typeName;else this.raise(O.start,v.InvalidTupleMemberLabel),A.label=O;A.elementType=this.tsParseType(),O=this.finishNode(A,"TSNamedTupleMember")}else if(F){let A=this.startNodeAtNode(O);A.typeAnnotation=O,O=this.finishNode(A,"TSOptionalType")}if(z){let A=this.startNodeAt(V,J);A.typeAnnotation=O,O=this.finishNode(A,"TSRestType")}return O}tsParseTupleType(){let J=this.startNode();J.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let V=!1;return J.elementTypes.forEach((z)=>{let{type:O}=z;if(V&&O!=="TSRestType"&&O!=="TSOptionalType"&&!(O==="TSNamedTupleMember"&&z.optional))this.raise(z.start,v.OptionalTypeBeforeRequired);if(V||=O==="TSNamedTupleMember"&&z.optional||O==="TSOptionalType",O==="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(h(J)||J===K._void||J===K._null){let V=J===K._void?"TSVoidKeyword":J===K._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 J=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(K.bracketL))if(this.match(K.bracketR)){let V=this.startNodeAtNode(J);V.elementType=J,this.expect(K.bracketR),J=this.finishNode(V,"TSArrayType")}else{let V=this.startNodeAtNode(J);V.objectType=J,V.indexType=this.tsParseType(),this.expect(K.bracketR),J=this.finishNode(V,"TSIndexedAccessType")}return J}tsParseTypeOperatorOrHigher(){return g(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(){c2(this.inType);let J=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(K._extends))return J;let V=this.startNodeAtNode(J);return V.checkType=J,V.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(K.question),V.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(K.colon),V.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(V,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),h(this.type))return this.next(),this.match(K.colon);return!1}tsInType(J){let V=this.inType;this.inType=!0;try{return J()}finally{this.inType=V}}tsTryParseIndexSignature(J){if(!(this.match(K.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(K.bracketL);let V=this.parseIdent();V.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(V),this.expect(K.bracketR),J.parameters=[V];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:v.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(J=this.tsParseNoneModifiers.bind(this)){let V=this.startNode();return J(V),V.name=this.tsParseTypeParameterName(),V.constraint=this.tsEatThenParseType(K._extends),V.default=this.tsEatThenParseType(K.eq),this.finishNode(V,"TSTypeParameter")}tsParseTypeParameters(J){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,J),!1,!0,z),V.params.length===0)this.raise(this.start,v.EmptyTypeParameters);if(z.value!==-1)this.addExtra(V,"trailingComma",z.value);return this.finishNode(V,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(J){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(J)}tsTryParse(J){let V=this.getCurLookaheadState(),z=J();if(z!==void 0&&z!==!1)return z;else{this.setLookaheadState(V);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,V){let z=this.value;if(J.indexOf(z)!==-1&&!this.containsEsc){if(V&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return z}return}tsParseModifiersByMap({modified:J,map:V}){for(let z of Object.keys(V))J[z]=V[z]}tsParseModifiers({modified:J,allowedModifiers:V,disallowedModifiers:z,stopOnStartOfClassStaticBlock:O,errorTemplate:F=v.InvalidModifierOnTypeMember}){let M={},A=(S,C,N,k)=>{if(C===N&&J[k])this.raise(S.column,v.InvalidModifiersOrder({orderedModifiers:[N,k]}))},P=(S,C,N,k)=>{if(J[N]&&C===k||J[k]&&C===N)this.raise(S.column,v.IncompatibleModifiers({modifiers:[N,k]}))};for(;;){let S=this.startLoc,C=this.tsParseModifier(V.concat(z??[]),O);if(!C)break;if(i2(C))if(J.accessibility)this.raise(this.start,v.DuplicateAccessibilityModifier());else A(S,C,C,"override"),A(S,C,C,"static"),A(S,C,C,"readonly"),A(S,C,C,"accessor"),M.accessibility=C,J.accessibility=C;else if(NQ(C))if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else A(S,C,"in","out"),M[C]=C,J[C]=!0;else if(kQ(C))if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else P(S,C,"accessor","readonly"),P(S,C,"accessor","static"),P(S,C,"accessor","override"),M[C]=C,J[C]=!0;else if(C==="const")if(J[C])this.raise(this.start,v.DuplicateModifier({modifier:C}));else M[C]=C,J[C]=!0;else if(Object.hasOwnProperty.call(J,C))this.raise(this.start,v.DuplicateModifier({modifier:C}));else A(S,C,"static","readonly"),A(S,C,"static","override"),A(S,C,"override","readonly"),A(S,C,"abstract","override"),P(S,C,"declare","override"),P(S,C,"static","abstract"),M[C]=C,J[C]=!0;if(z?.includes(C))this.raise(this.start,F)}return M}tsParseInOutModifiers(J){this.tsParseModifiers({modified:J,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:v.InvalidModifierOnTypeParameter})}parseMaybeUnary(J,V,z,O){if(!q?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(J,V,z,O)}tsParseTypeAssertion(){if(Z)this.raise(this.start,v.ReservedTypeAssertion);let J=this.tryParse(()=>{let V=this.startNode(),z=this.tsTryNextParseConstantContext();return V.typeAnnotation=z||this.tsNextThenParseType(),this.expect(K.relational),V.expression=this.parseMaybeUnary(),this.finishNode(V,"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,v.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(K.relational),this.finishNode(J,"TSTypeParameterInstantiation")}tsParseHeritageClause(J){let V=this.start,z=this.tsParseDelimitedList("HeritageClauseElement",()=>{let O=this.startNode();if(O.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())O.typeParameters=this.tsParseTypeArguments();return this.finishNode(O,"TSExpressionWithTypeArguments")});if(!z.length)this.raise(V,v.EmptyHeritageClauseType({token:J}));return z}tsParseTypeMemberSemicolon(){if(!this.eat(K.comma)&&!this.isLineTerminator())this.expect(K.semi)}tsTryParseAndCatch(J){let V=this.tryParse((z)=>J()||z());if(V.aborted||!V.node)return;if(V.error)this.setLookaheadState(V.failState);return V.node}tsParseSignatureMember(J,V){return this.tsFillSignature(K.colon,V),this.tsParseTypeMemberSemicolon(),this.finishNode(V,J)}tsParsePropertyOrMethodSignature(J,V){if(this.eat(K.question))J.optional=!0;let z=J;if(this.match(K.parenL)||this.tsMatchLeftRelational()){if(V)this.raise(J.start,v.ReadonlyForMethodSignature);let O=z;if(O.kind&&this.tsMatchLeftRelational())this.raise(this.start,v.AccesorCannotHaveTypeParameters);this.tsFillSignature(K.colon,O),this.tsParseTypeMemberSemicolon();let F="parameters",M="typeAnnotation";if(O.kind==="get"){if(O[F].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(O[F][0]))this.raise(this.start,v.AccesorCannotDeclareThisParameter)}}else if(O.kind==="set"){if(O[F].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let A=O[F][0];if(this.isThisParam(A))this.raise(this.start,v.AccesorCannotDeclareThisParameter);if(A.type==="Identifier"&&A.optional)this.raise(this.start,v.SetAccesorCannotHaveOptionalParameter);if(A.type==="RestElement")this.raise(this.start,v.SetAccesorCannotHaveRestParameter)}if(O[M])this.raise(O[M].start,v.SetAccesorCannotHaveReturnType)}else O.kind="method";return this.finishNode(O,"TSMethodSignature")}else{let O=z;if(V)O.readonly=!0;let F=this.tsTryParseTypeAnnotation();if(F)O.typeAnnotation=F;return this.tsParseTypeMemberSemicolon(),this.finishNode(O,"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 V=this.tsTryParseIndexSignature(J);if(V)return V;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,V){let z=[];while(!this.tsIsListTerminator(J))z.push(V());return z}tsParseObjectTypeMembers(){this.expect(K.braceL);let J=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(K.braceR),J}tsParseInterfaceDeclaration(J,V={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),V.declare)J.declare=!0;if(h(this.type))J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_TS_INTERFACE);else J.id=null,this.raise(this.start,v.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 V=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=J,this.expect(K.braceR),V}tsParseAbstractDeclaration(J){if(this.match(K._class))return J.abstract=!0,this.parseClass(J,!0);else if(this.ts_isContextual(R.interface)){if(!this.hasFollowingLineBreak())return J.abstract=!0,this.tsParseInterfaceDeclaration(J)}else this.unexpected(J.start)}tsIsDeclarationStart(){return x(this.type)}tsParseExpressionStatement(J,V){switch(V.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(u1);let z=J;return z.global=!0,z.id=V,z.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(z,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(J,V.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:J}=this,V=this.isAsyncFunction(),z=this.isLet();if(h(J)){if(V&&!this.containsEsc||z)return!1;if((J===R.type||J===R.interface)&&!this.containsEsc){let M=this.lookahead();if(h(M.type)&&!this.isContextualWithState("from",M)||M.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let O=this.nextTokenStart(),F=this.isUnparsedContextual(O,"from");if(this.input.charCodeAt(O)===44||h(this.type)&&F)return!0;if(this.match(K._default)&&F){let M=this.input.charCodeAt(this.nextTokenStartSince(O+4));return M===34||M===39}return!1}tsInAmbientContext(J){let V=this.isAmbientContext;this.isAmbientContext=!0;try{return J()}finally{this.isAmbientContext=V}}tsCheckLineTerminator(J){if(J){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(J,V=!1){if(J.id=this.parseIdent(),!V)this.checkLValSimple(J.id,r.BIND_TS_NAMESPACE);if(this.eat(K.dot)){let z=this.startNode();this.tsParseModuleOrNamespaceDeclaration(z,!0),J.body=z}else this.enterScope(u1),J.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(J,"TSModuleDeclaration")}checkLValSimple(J,V=r.BIND_NONE,z){if(J.type==="TSNonNullExpression"||J.type==="TSAsExpression")J=J.expression;return super.checkLValSimple(J,V,z)}tsParseTypeAliasDeclaration(J){return J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_TS_TYPE),J.typeAnnotation=this.tsInType(()=>{if(J.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(K.eq),this.ts_isContextual(R.interface)&&this.lookahead().type!==K.dot){let V=this.startNode();return this.next(),this.finishNode(V,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(J,"TSTypeAliasDeclaration")}tsParseDeclaration(J,V,z){switch(V){case"abstract":if(this.tsCheckLineTerminator(z)&&(this.match(K._class)||h(this.type)))return this.tsParseAbstractDeclaration(J);break;case"module":if(this.tsCheckLineTerminator(z)){if(this.match(K.string))return this.tsParseAmbientExternalModuleDeclaration(J);else if(h(this.type))return this.tsParseModuleOrNamespaceDeclaration(J)}break;case"namespace":if(this.tsCheckLineTerminator(z)&&h(this.type))return this.tsParseModuleOrNamespaceDeclaration(J);break;case"type":if(this.tsCheckLineTerminator(z)&&h(this.type))return this.tsParseTypeAliasDeclaration(J);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(J,V){J.isExport=V||!1,J.id=this.parseIdent(),this.checkLValSimple(J.id,r.BIND_LEXICAL),super.expect(K.eq);let z=this.tsParseModuleReference();if(J.importKind==="type"&&z.type!=="TSExternalModuleReference")this.raise(z.start,v.ImportAliasHasImportType);return J.moduleReference=z,super.semicolon(),this.finishNode(J,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:J}=this;if(h(J)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((J===R.type||J===R.interface)&&!this.containsEsc){let O=this.lookahead();if(h(O.type)&&!this.isContextualWithState("from",O)||O.type===K.braceL)return!1}}else if(!this.match(K._default))return!1;let V=this.nextTokenStart(),z=this.isUnparsedContextual(V,"from");if(this.input.charCodeAt(V)===44||h(this.type)&&z)return!0;if(this.match(K._default)&&z){let O=this.input.charCodeAt(this.nextTokenStartSince(V+4));return O===34||O===39}return!1}parseTemplate({isTagged:J=!1}={}){let V=this.startNode();this.next(),V.expressions=[];let z=this.parseTemplateElement({isTagged:J});V.quasis=[z];while(!z.tail){if(this.type===K.eof)this.raise(this.pos,"Unterminated template literal");this.expect(K.dollarBraceL),V.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(K.braceR),V.quasis.push(z=this.parseTemplateElement({isTagged:J}))}return this.next(),this.finishNode(V,"TemplateLiteral")}parseFunction(J,V,z,O,F){if(this.initFunction(J),this.ecmaVersion>=9||this.ecmaVersion>=6&&!O){if(this.type===K.star&&V&d2)this.unexpected();J.generator=this.eat(K.star)}if(this.ecmaVersion>=8)J.async=!!O;if(V&D0)J.id=V&bQ&&this.type!==K.name?null:this.parseIdent();let M=this.yieldPos,A=this.awaitPos,P=this.awaitIdentPos,S=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(g9(J.async,J.generator)),!(V&D0))J.id=this.type===K.name?this.parseIdent():null;this.parseFunctionParams(J);let C=V&D0;if(this.parseFunctionBody(J,z,!1,F,{isFunctionDeclaration:C}),this.yieldPos=M,this.awaitPos=A,this.awaitIdentPos=P,V&D0&&J.id&&!(V&d2))if(J.body)this.checkLValSimple(J.id,this.strict||J.generator||J.async?this.treatFunctionsAsVar?r.BIND_VAR:r.BIND_LEXICAL:r.BIND_FUNCTION);else this.checkLValSimple(J.id,r.BIND_NONE);return this.maybeInArrowParameters=S,this.finishNode(J,C?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(J,V=!1,z=!1,O=!1,F){if(this.match(K.colon))J.returnType=this.tsParseTypeOrTypePredicateAnnotation(K.colon);let M=F?.isFunctionDeclaration?"TSDeclareFunction":F?.isClassMethod?"TSDeclareMethod":void 0;if(M&&!this.match(K.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(J,M);if(M==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(J.start,v.DeclareFunctionHasImplementation),J.declare)return super.parseFunctionBody(J,V,z,!1),this.finishNode(J,M)}return super.parseFunctionBody(J,V,z,O),J}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let J=this.startNode(),V=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(K.dot)){J.meta=V;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,O=this.startLoc,F=this.type===K._import;if(J.callee=this.parseSubscripts(this.parseExprAtom(),z,O,!0,!1),F&&J.callee.type==="ImportExpression")this.raise(z,"Cannot use new with import()");let{callee:M}=J;if(M.type==="TSInstantiationExpression"&&!M.extra?.parenthesized)J.typeArguments=M.typeArguments,J.callee=M.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,V,z,O,F){if(K._in.binop>O&&!this.hasPrecedingLineBreak()){let M;if(this.isContextual("as"))M="TSAsExpression";if(this.isContextual("satisfies"))M="TSSatisfiesExpression";if(M){let A=this.startNodeAt(V,z);A.expression=J;let P=this.tsTryNextParseConstantContext();if(P)A.typeAnnotation=P;else A.typeAnnotation=this.tsNextThenParseType();return this.finishNode(A,M),this.reScan_lt_gt(),this.parseExprOp(A,V,z,O,F)}}return super.parseExprOp(J,V,z,O,F)}parseImportSpecifiers(){let J=[],V=!0;if(j.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(!V){if(this.expect(K.comma),this.afterTrailingComma(K.braceR))break}else V=!1;J.push(this.parseImportSpecifier())}return J}parseImport(J){let V=this.lookahead();if(J.importKind="value",this.importOrExportOuterKind="value",h(V.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,V))this.importOrExportOuterKind="type",J.importKind="type",V=this.lookahead(),z=this.lookahead(2);if(h(V.type)&&z.type===K.eq){this.next();let O=this.tsParseImportEqualsDeclaration(J);return this.importOrExportOuterKind="value",O}}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,v.TypeImportCannotSpecifyDefaultAndNamed);return J}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let J=this.startNode();return this.next(),J.abstract=!0,this.parseClass(J,!0)}if(this.match(R.interface)){let J=this.tsParseInterfaceDeclaration(this.startNode());if(J)return J}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(J,V){if(this.ecmaVersion>=11)if(this.eatContextual("as"))J.exported=this.parseModuleExportName(),this.checkExport(V,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 V=this.parseExpression();J.arguments=[V]}if(!this.eat(K.parenR)){let V=this.start;if(this.eat(K.comma)&&this.eat(K.parenR))this.raiseRecoverable(V,"Trailing comma is not allowed in import()");else this.unexpected(V)}return this.finishNode(J,"ImportExpression")}parseExport(J,V){let z=this.lookahead();if(this.ts_eatWithState(K._import,2,z)){if(this.ts_isContextual(R.type)&&this.lookaheadCharCode()!==61)J.importKind="type",this.importOrExportOuterKind="type",this.next();else J.importKind="value",this.importOrExportOuterKind="value";let O=this.tsParseImportEqualsDeclaration(J,!0);return this.importOrExportOuterKind=void 0,O}else if(this.ts_eatWithState(K.eq,2,z)){let O=J;return O.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(O,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,z)){let O=J;return this.expectContextual("namespace"),O.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(O,"TSNamespaceExportDeclaration")}else{let O=this.lookahead(2).type;if(this.ts_isContextualWithState(z,R.type)&&(O===K.braceL||O===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,V);if(this.eat(K._default))return this.checkExport(V,"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(V,J.declaration.declarations);else this.checkExport(V,J.declaration.id,J.declaration.id.start);J.specifiers=[],J.source=null}else{if(J.declaration=null,J.specifiers=this.parseExportSpecifiers(V),this.eatContextual("from")){if(this.type!==K.string)this.unexpected();J.source=this.parseExprAtom(),this.parseMaybeImportAttributes(J)}else{for(let F of J.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`.");J.source=null}this.semicolon()}return this.finishNode(J,"ExportNamedDeclaration")}}checkExport(J,V,z){if(!J)return;if(typeof V!=="string")V=V.type==="Identifier"?V.name:V.value;J[V]=!0}parseMaybeDefault(J,V,z){let O=super.parseMaybeDefault(J,V,z);if(O.type==="AssignmentPattern"&&O.typeAnnotation&&O.right.start<O.typeAnnotation.start)this.raise(O.typeAnnotation.start,v.TypeAnnotationAfterAssign);return O}typeCastToParameter(J){return J.expression.typeAnnotation=J.typeAnnotation,this.resetEndLocation(J.expression,J.typeAnnotation.end,J.typeAnnotation.loc?.end),J.expression}toAssignableList(J,V){if(!J)J=[];for(let z=0;z<J.length;z++){let O=J[z];if(O?.type==="TSTypeCastExpression")J[z]=this.typeCastToParameter(O)}return super.toAssignableList(J,V)}reportReservedArrowTypeParam(J){if(J.params.length===1&&!J.extra?.trailingComma&&Z)this.raise(J.start,v.ReservedArrowTypeParam)}parseExprAtom(J,V,z){if(this.type===R.jsxText)return this.jsx_parseText();else if(this.type===R.jsxTagStart)return this.jsx_parseElement();else if(this.type===R.at)return this.parseDecorators(),this.parseExprAtom();else if(h(this.type)){let O=this.potentialArrowAt===this.start,F=this.start,M=this.startLoc,A=this.containsEsc,P=this.parseIdent(!1);if(this.ecmaVersion>=8&&!A&&P.name==="async"&&!this.canInsertSemicolon()&&this.eat(K._function))return this.overrideContext($.f_expr),this.parseFunction(this.startNodeAt(F,M),0,!1,!0,V);if(O&&!this.canInsertSemicolon()){if(this.eat(K.arrow))return this.parseArrowExpression(this.startNodeAt(F,M),[P],!1,V);if(this.ecmaVersion>=8&&P.name==="async"&&this.type===K.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(P=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(F,M),[P],!0,V)}}return P}else return super.parseExprAtom(J,V,z)}parseExprAtomDefault(){if(h(this.type)){let J=this.potentialArrowAt===this.start,V=this.containsEsc,z=this.parseIdent();if(!V&&z.name==="async"&&!this.canInsertSemicolon()){let{type:O}=this;if(O===K._function)return this.next(),this.parseFunction(this.startNodeAtNode(z),void 0,!0,!0);else if(h(O))if(this.lookaheadCharCode()===61){let F=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(K.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(z),[F],!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(n(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,V,z=!1){let{isAmbientContext:O}=this;this.next(),super.parseVar(J,!1,V,z||O),this.semicolon();let F=this.finishNode(J,"VariableDeclaration");if(!O)return F;for(let{id:M,init:A}of F.declarations){if(!A)continue;if(V!=="const"||!!M.typeAnnotation)this.raise(A.start,v.InitializerNotAllowedInAmbientContext);else if(A.type!=="StringLiteral"&&A.type!=="BooleanLiteral"&&A.type!=="NumericLiteral"&&A.type!=="BigIntLiteral"&&(A.type!=="TemplateLiteral"||A.expressions.length>0)&&!TQ(A))this.raise(A.start,v.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return F}parseStatement(J,V,z){if(this.match(R.at))this.parseDecorators(!0);if(this.match(K._const)&&this.isLookaheadContextual("enum")){let O=this.startNode();return this.expect(K._const),this.tsParseEnumDeclaration(O,{const:!0})}if(this.ts_isContextual(R.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(R.interface)){let O=this.tsParseInterfaceDeclaration(this.startNode());if(O)return O}return super.parseStatement(J,V,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,v.ClassMethodHasReadonly);if(J.declare&&this.match(K.parenL))this.raise(J.start,v.ClassMethodHasDeclare)}parseExpressionStatement(J,V){return(V.type==="Identifier"?this.tsParseExpressionStatement(J,V):void 0)||super.parseExpressionStatement(J,V)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(R.at))return!0;return super.shouldParseExportStatement()}parseConditional(J,V,z,O,F){if(this.eat(K.question)){let M=this.startNodeAt(V,z);return M.test=J,M.consequent=this.parseMaybeAssign(),this.expect(K.colon),M.alternate=this.parseMaybeAssign(O),this.finishNode(M,"ConditionalExpression")}return J}parseMaybeConditional(J,V){let z=this.start,O=this.startLoc,F=this.parseExprOps(J,V);if(this.checkExpressionErrors(V))return F;if(!this.maybeInArrowParameters||!this.match(K.question))return this.parseConditional(F,z,O,J,V);let M=this.tryParse(()=>this.parseConditional(F,z,O,J,V));if(!M.node){if(M.error)this.setOptionalParametersError(V,M.error);return F}if(M.error)this.setLookaheadState(M.failState);return M.node}parseParenItem(J){let V=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 O=this.startNodeAt(V,z);return O.expression=J,O.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(O,"TSTypeCastExpression")}return J}parseExportDeclaration(J){if(!this.isAmbientContext&&this.ts_isContextual(R.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(J));let V=this.start,z=this.startLoc,O=this.eatContextual("declare");if(O&&(this.ts_isContextual(R.declare)||!this.shouldParseExportStatement()))this.raise(this.start,v.ExpectedAmbientAfterExportDeclare);let M=h(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!M)return null;if(M.type==="TSInterfaceDeclaration"||M.type==="TSTypeAliasDeclaration"||O)J.exportKind="type";if(O)this.resetStartLocation(M,V,z),M.declare=!0;return M}parseClassId(J,V){if(!V&&this.isContextual("implements"))return;super.parseClassId(J,V);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 V=this.tsTryParseTypeAnnotation();if(V)J.typeAnnotation=V}parseClassField(J){if(J.key.type==="PrivateIdentifier"){if(J.abstract)this.raise(J.start,v.PrivateElementHasAbstract);if(J.accessibility)this.raise(J.start,v.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,v.DeclareClassFieldHasInitializer);if(J.abstract&&this.match(K.eq)){let{key:z}=J;this.raise(this.start,v.AbstractPropertyHasInitializer({propertyName:z.type==="Identifier"&&!J.computed?z.name:`[${this.input.slice(z.start,z.end)}]`}))}}return super.parseClassField(J)}parseClassMethod(J,V,z,O){let F=J.kind==="constructor",M=J.key.type==="PrivateIdentifier",A=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(M){if(A)J.typeParameters=A;if(J.accessibility)this.raise(J.start,v.PrivateMethodsHasAccessibility({modifier:J.accessibility}))}else if(A&&F)this.raise(A.start,v.ConstructorHasTypeParameters);let{declare:P=!1,kind:S}=J;if(P&&(S==="get"||S==="set"))this.raise(J.start,v.DeclareAccessor({kind:S}));if(A)J.typeParameters=A;let C=J.key;if(J.kind==="constructor"){if(V)this.raise(C.start,"Constructor can't be a generator");if(z)this.raise(C.start,"Constructor can't be an async method")}else if(J.static&&l2(J,"prototype"))this.raise(C.start,"Classes may not have a static property named prototype");let N=J.value=this.parseMethod(V,z,O,!0,J);if(J.kind==="get"&&N.params.length!==0)this.raiseRecoverable(N.start,"getter should have no params");if(J.kind==="set"&&N.params.length!==1)this.raiseRecoverable(N.start,"setter should have exactly one param");if(J.kind==="set"&&N.params[0].type==="RestElement")this.raiseRecoverable(N.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 V=this.startNode(),z="",O=!1,F=!1,M="method",A=!1,P=["declare","private","public","protected","accessor","override","abstract","readonly","static"],S=this.tsParseModifiers({modified:V,allowedModifiers:P,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:v.InvalidModifierOnTypeParameterPositions});A=Boolean(S.static);let C=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(V,P))this.raise(this.start,v.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(V),V}else{let N=this.tsTryParseIndexSignature(V);if(N){if(V.abstract)this.raise(V.start,v.IndexSignatureHasAbstract);if(V.accessibility)this.raise(V.start,v.IndexSignatureHasAccessibility({modifier:V.accessibility}));if(V.declare)this.raise(V.start,v.IndexSignatureHasDeclare);if(V.override)this.raise(V.start,v.IndexSignatureHasOverride);return N}if(!this.inAbstractClass&&V.abstract)this.raise(V.start,v.NonAbstractClassHasAbstractMethod);if(V.override){if(!J)this.raise(V.start,v.OverrideNotInSubClass)}if(V.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())F=!0;else z="async";if(!z&&(this.ecmaVersion>=9||!F)&&this.eat(K.star))O=!0;if(!z&&!F&&!O){let k=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())M=k;else z=k}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===K.parenL||M!=="method"||O||F){let k=!V.static&&l2(V,"constructor"),y=k&&J;if(k&&M!=="method")this.raise(V.key.start,"Constructor can't have get/set modifier");V.kind=k?"constructor":M,this.parseClassMethod(V,O,F,y)}else this.parseClassField(V);return V}};if(V.declare)this.tsInAmbientContext(C);else C();return V}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 V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(V)J.typeParameters=V;super.parseFunctionParams(J)}parseVarId(J,V){if(super.parseVarId(J,V),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,V,z,O){if(this.match(K.colon))J.returnType=this.tsParseTypeAnnotation();let F=this.yieldPos,M=this.awaitPos,A=this.awaitIdentPos;this.enterScope(g9(z,!1)|r.SCOPE_ARROW),this.initFunction(J);let P=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(V,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(J,!0,!1,O),this.yieldPos=F,this.awaitPos=M,this.awaitIdentPos=A,this.maybeInArrowParameters=P,this.finishNode(J,"ArrowFunctionExpression")}parseMaybeAssignOrigin(J,V,z){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(J);else this.exprAllowed=!1;let O=!1,F=-1,M=-1,A=-1;if(V)F=V.parenthesizedAssign,M=V.trailingComma,A=V.doubleProto,V.parenthesizedAssign=V.trailingComma=-1;else V=new m1,O=!0;let P=this.start,S=this.startLoc;if(this.type===K.parenL||h(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=J==="await";let C=this.parseMaybeConditional(J,V);if(z)C=z.call(this,C,P,S);if(this.type.isAssign){let N=this.startNodeAt(P,S);if(N.operator=this.value,this.type===K.eq)C=this.toAssignable(C,!0,V);if(!O)V.parenthesizedAssign=V.trailingComma=V.doubleProto=-1;if(V.shorthandAssign>=C.start)V.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===K.eq)this.checkLValPattern(C);else this.checkLValSimple(C);if(N.left=C,this.next(),N.right=this.parseMaybeAssign(J),A>-1)V.doubleProto=A;return this.finishNode(N,"AssignmentExpression")}else if(O)this.checkExpressionErrors(V,!0);if(F>-1)V.parenthesizedAssign=F;if(M>-1)V.trailingComma=M;return C}parseMaybeAssign(J,V,z){let O,F,M;if(q?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(O=this.cloneCurLookaheadState(),F=this.tryParse(()=>this.parseMaybeAssignOrigin(J,V,z),O),!F.error)return F.node;let S=this.context,C=S[S.length-1],N=S[S.length-2];if(C===j.tokContexts.tc_oTag&&N===j.tokContexts.tc_expr)S.pop(),S.pop();else if(C===j.tokContexts.tc_oTag||C===j.tokContexts.tc_expr)S.pop()}if(!F?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(J,V,z);if(!O||this.compareLookaheadState(O,this.getCurLookaheadState()))O=this.cloneCurLookaheadState();let A,P=this.tryParse((S)=>{A=this.tsParseTypeParameters(this.tsParseConstModifier);let C=this.parseMaybeAssignOrigin(J,V,z);if(C.type!=="ArrowFunctionExpression"||C.extra?.parenthesized)S();if(A?.params.length!==0)this.resetStartLocationFromNode(C,A);return C.typeParameters=A,C},O);if(!P.error&&!P.aborted){if(A)this.reportReservedArrowTypeParam(A);return P.node}if(!F){if(c2(!0),M=this.tryParse(()=>this.parseMaybeAssignOrigin(J,V,z),O),!M.error)return M.node}if(F?.node)return this.setLookaheadState(F.failState),F.node;if(P.node){if(this.setLookaheadState(P.failState),A)this.reportReservedArrowTypeParam(A);return P.node}if(M?.node)return this.setLookaheadState(M.failState),M.node;if(F?.thrown)throw F.error;if(P.thrown)throw P.error;if(M?.thrown)throw M.error;throw F?.error||P.error||M?.error}parseAssignableListItem(J){let V=[];while(this.match(R.at))V.push(this.parseDecorator());let z=this.start,O=this.startLoc,F,M=!1,A=!1;if(J!==void 0){let C={};if(this.tsParseModifiers({modified:C,allowedModifiers:["public","private","protected","override","readonly"]}),F=C.accessibility,A=C.override,M=C.readonly,J===!1&&(F||M||A))this.raise(O.column,v.UnexpectedParameterModifier)}let P=this.parseMaybeDefault(z,O);this.parseBindingListItem(P);let S=this.parseMaybeDefault(P.start,P.loc.start,P);if(V.length)S.decorators=V;if(F||M||A){let C=this.startNodeAt(z,O);if(F)C.accessibility=F;if(M)C.readonly=M;if(A)C.override=A;if(S.type!=="Identifier"&&S.type!=="AssignmentPattern")this.raise(C.start,v.UnsupportedParameterPropertyKind);return C.parameter=S,this.finishNode(C,"TSParameterProperty")}return S}checkLValInnerPattern(J,V=r.BIND_NONE,z){switch(J.type){case"TSParameterProperty":this.checkLValInnerPattern(J.parameter,V,z);break;default:{super.checkLValInnerPattern(J,V,z);break}}}parseBindingListItem(J){if(this.eat(K.question)){if(J.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(J.start,v.PatternIsOptional);J.optional=!0}let V=this.tsTryParseTypeAnnotation();if(V)J.typeAnnotation=V;return this.resetEndLocation(J),J}isAssignable(J,V){switch(J.type){case"TSTypeCastExpression":return this.isAssignable(J.expression,V);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((O,F)=>{return O.type!=="ObjectMethod"&&(F===z||O.type!=="SpreadElement")&&this.isAssignable(O)})}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!V;default:return!1}}toAssignable(J,V=!1,z=new m1){switch(J.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(J,V,z);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(V);else this.raise(J.start,v.UnexpectedTypeCastInParameter);return this.toAssignable(J.expression,V,z);case"MemberExpression":break;case"AssignmentExpression":if(!V&&J.left.type==="TSTypeCastExpression")J.left=this.typeCastToParameter(J.left);return super.toAssignable(J,V,z);case"TSTypeCastExpression":return this.typeCastToParameter(J);default:return super.toAssignable(J,V,z)}return J}toAssignableParenthesizedExpression(J,V,z){switch(J.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(J.expression,V,z);default:return super.toAssignable(J,V,z)}}parseBindingAtom(){switch(this.type){case K._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(J){let V;if(this.match(K.colon))V=J.every((z)=>this.isAssignable(z,!0));else V=!this.canInsertSemicolon();if(V){if(this.match(K.colon)){let z=this.tryParse((O)=>{let F=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))O();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(K.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,V}parseParenArrowList(J,V,z,O){let F=this.startNodeAt(J,V);return F.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(F,z,!1,O)}parseParenAndDistinguishExpression(J,V){let z=this.start,O=this.startLoc,F,M=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let A=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let P=this.start,S=this.startLoc,C=[],N=!0,k=!1,y=new m1,u=this.yieldPos,l=this.awaitPos,s;this.yieldPos=0,this.awaitPos=0;while(this.type!==K.parenR)if(N?N=!1:this.expect(K.comma),M&&this.afterTrailingComma(K.parenR,!0)){k=!0;break}else if(this.type===K.ellipsis){if(s=this.start,C.push(this.parseParenItem(this.parseRestBinding())),this.type===K.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else C.push(this.parseMaybeAssign(V,y,this.parseParenItem));let _=this.lastTokEnd,p=this.lastTokEndLoc;if(this.expect(K.parenR),this.maybeInArrowParameters=A,J&&this.shouldParseArrow(C)&&this.eat(K.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=l,this.parseParenArrowList(z,O,C,V);if(!C.length||k)this.unexpected(this.lastTokStart);if(s)this.unexpected(s);if(this.checkExpressionErrors(y,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=l||this.awaitPos,C.length>1)F=this.startNodeAt(P,S),F.expressions=C,this.finishNodeAt(F,"SequenceExpression",_,p);else F=C[0]}else F=this.parseParenExpression();if(this.options.preserveParens){let A=this.startNodeAt(z,O);return A.expression=F,this.finishNode(A,"ParenthesizedExpression")}else return F}parseTaggedTemplateExpression(J,V,z,O){let F=this.startNodeAt(V,z);if(F.tag=J,F.quasi=this.parseTemplate({isTagged:!0}),O)this.raise(V,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(F,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(K.colon)){let J=this.tryParse((V)=>{let z=this.tsParseTypeOrTypePredicateAnnotation(K.colon);if(this.canInsertSemicolon()||!this.match(K.arrow))V();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,V,z,O){let F=this.startNodeAt(J,V);return F.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(F,z,!0,O)}parseExprList(J,V,z,O){let F=[],M=!0;while(!this.eat(J)){if(!M){if(this.expect(K.comma),V&&this.afterTrailingComma(J))break}else M=!1;let A;if(z&&this.type===K.comma)A=null;else if(this.type===K.ellipsis){if(A=this.parseSpread(O),this.maybeInArrowParameters&&this.match(K.colon))A.typeAnnotation=this.tsParseTypeAnnotation();if(O&&this.type===K.comma&&O.trailingComma<0)O.trailingComma=this.start}else A=this.parseMaybeAssign(!1,O,this.parseParenItem);F.push(A)}return F}parseSubscript(J,V,z,O,F,M,A){let P=M;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(K.prefix)){this.exprAllowed=!1,this.next();let y=this.startNodeAt(V,z);return y.expression=J,J=this.finishNode(y,"TSNonNullExpression"),J}let S=!1;if(this.match(K.questionDot)&&this.lookaheadCharCode()===60){if(O)return J;J.optional=!0,P=S=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(K.bitShift)){let y,u=this.tsTryParseAndCatch(()=>{if(!O&&this.atPossibleAsyncArrow(J)){let p=this.tsTryParseGenericAsyncArrowFunction(V,z,A);if(p)return J=p,J}let l=this.tsParseTypeArgumentsInExpression();if(!l)return J;if(S&&!this.match(K.parenL))return y=this.curPosition(),J;if(b(this.type)||this.type===K.backQuote){let p=this.parseTaggedTemplateExpression(J,V,z,P);return p.typeArguments=l,p}if(!O&&this.eat(K.parenL)){let p=new m1,c=this.startNodeAt(V,z);if(c.callee=J,c.arguments=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,p),this.tsCheckForInvalidTypeCasts(c.arguments),c.typeArguments=l,P)c.optional=S;return this.checkExpressionErrors(p,!0),J=this.finishNode(c,"CallExpression"),J}let s=this.type;if(this.tsMatchRightRelational()||s===K.bitShift||s!==K.parenL&&EQ(s)&&!this.hasPrecedingLineBreak())return;let _=this.startNodeAt(V,z);return _.expression=J,_.typeArguments=l,this.finishNode(_,"TSInstantiationExpression")});if(y)this.unexpected(y);if(u){if(u.type==="TSInstantiationExpression"&&(this.match(K.dot)||this.match(K.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,v.InvalidPropertyAccessAfterInstantiationExpression);return J=u,J}}let C=this.ecmaVersion>=11,N=C&&this.eat(K.questionDot);if(O&&N)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let k=this.eat(K.bracketL);if(k||N&&this.type!==K.parenL&&this.type!==K.backQuote||this.eat(K.dot)){let y=this.startNodeAt(V,z);if(y.object=J,k)y.property=this.parseExpression(),this.expect(K.bracketR);else if(this.type===K.privateId&&J.type!=="Super")y.property=this.parsePrivateIdent();else y.property=this.parseIdent(this.options.allowReserved!=="never");if(y.computed=!!k,C)y.optional=N;J=this.finishNode(y,"MemberExpression")}else if(!O&&this.eat(K.parenL)){let y=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let u=new m1,l=this.yieldPos,s=this.awaitPos,_=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let p=this.parseExprList(K.parenR,this.ecmaVersion>=8,!1,u);if(F&&!N&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=l,this.awaitPos=s,this.awaitIdentPos=_,J=this.parseSubscriptAsyncArrow(V,z,p,A)}else{this.checkExpressionErrors(u,!0),this.yieldPos=l||this.yieldPos,this.awaitPos=s||this.awaitPos,this.awaitIdentPos=_||this.awaitIdentPos;let c=this.startNodeAt(V,z);if(c.callee=J,c.arguments=p,C)c.optional=N;J=this.finishNode(c,"CallExpression")}this.maybeInArrowParameters=y}else if(this.type===K.backQuote){if(N||P)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let y=this.startNodeAt(V,z);y.tag=J,y.quasi=this.parseTemplate({isTagged:!0}),J=this.finishNode(y,"TaggedTemplateExpression")}return J}parseGetterSetter(J){J.kind=J.key.name,this.parsePropertyName(J);let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(!1),V)J.value.typeParameters=V;let z=J.kind==="get"?0:1,O=J.value.params[0];if(z=O&&this.isThisParam(O)?z+1:z,J.value.params.length!==z){let M=J.value.start;if(J.kind==="get")this.raiseRecoverable(M,"getter should have no params");else this.raiseRecoverable(M,"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,V,z,O,F,M,A,P){if(this.tsMatchLeftRelational()){if(V)this.unexpected();J.kind="init",J.method=!0;let S=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(J.value=this.parseMethod(z,O),S)J.value.typeParameters=S;return}return super.parsePropertyValue(J,V,z,O,F,M,A,P)}parseProperty(J,V){if(!J){let z=[];if(this.match(R.at))while(this.match(R.at))z.push(this.parseDecorator());let O=super.parseProperty(J,V);if(O.type==="SpreadElement"){if(z.length)this.raise(O.start,k0.SpreadElementDecorator)}if(z.length)O.decorators=z,z=[];return O}return super.parseProperty(J,V)}parseCatchClauseParam(){let J=this.parseBindingAtom(),V=J.type==="Identifier";this.enterScope(V?r.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(J,V?r.BIND_SIMPLE_CATCH:r.BIND_LEXICAL);let z=this.tsTryParseTypeAnnotation();if(z)J.typeAnnotation=z,this.resetEndLocation(J);return this.expect(K.parenR),J}parseClass(J,V){let z=this.inAbstractClass;this.inAbstractClass=!!J.abstract;try{this.next(),this.takeDecorators(J);let O=this.strict;this.strict=!0,this.parseClassId(J,V),this.parseClassSuper(J);let F=this.enterClassBody(),M=this.startNode(),A=!1;M.body=[];let P=[];this.expect(K.braceL);while(this.type!==K.braceR){if(this.match(R.at)){P.push(this.parseDecorator());continue}let S=this.parseClassElement(J.superClass!==null);if(P.length)S.decorators=P,this.resetStartLocationFromNode(S,P[0]),P=[];if(S){if(M.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,k0.DecoratorConstructor)}else if(S.key&&S.key.type==="PrivateIdentifier"&&S.value?.type!=="TSDeclareMethod"&&AQ(F,S))this.raiseRecoverable(S.key.start,`Identifier '#${S.key.name}' has already been declared`)}}if(this.strict=O,this.next(),P.length)this.raise(this.start,k0.TrailingDecorator);return J.body=this.finishNode(M,"ClassBody"),this.exitClassBody(),this.finishNode(J,V?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=z}}parseClassFunctionParams(){let J=this.tsTryParseTypeParameters(),V=this.parseBindingList(K.parenR,!1,this.ecmaVersion>=8,!0);if(J)V.typeParameters=J;return V}parseMethod(J,V,z,O,F){let M=this.startNode(),A=this.yieldPos,P=this.awaitPos,S=this.awaitIdentPos;if(this.initFunction(M),this.ecmaVersion>=6)M.generator=J;if(this.ecmaVersion>=8)M.async=!!V;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(g9(V,M.generator)|r.SCOPE_SUPER|(z?r.SCOPE_DIRECT_SUPER:0)),this.expect(K.parenL),M.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(M,!1,!0,!1,{isClassMethod:O}),this.yieldPos=A,this.awaitPos=P,this.awaitIdentPos=S,F&&F.abstract){if(!!M.body){let{key:N}=F;this.raise(F.start,v.AbstractMethodHasImplementation({methodName:N.type==="Identifier"&&!F.computed?N.name:`[${this.input.slice(N.start,N.end)}]`}))}}return this.finishNode(M,"FunctionExpression")}static parse(J,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,J);if(Q)z.isAmbientContext=!0;return z.parse()}static parseExpressionAt(J,V,z){if(z.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else z.locations=!0;let O=new this(z,J,V);if(Q)O.isAmbientContext=!0;return O.nextToken(),O.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(R.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(J){let V=this.ts_isContextual(R.type);if(!this.match(K.string)&&V){let O=this.startNode();return O.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(O,!1,this.importOrExportOuterKind==="type"),this.finishNode(O,"ExportSpecifier"),this.checkExport(J,O.exported,O.exported.start),O}else{let O=super.parseExportSpecifier(J);return O.exportKind="value",O}}parseTypeOnlyImportExportSpecifier(J,V,z){let O=V?"imported":"local",F=V?"local":"exported",M=J[O],A,P=!1,S=!0,C=M.start;if(this.isContextual("as")){let k=this.parseIdent();if(this.isContextual("as")){let y=this.parseIdent();if(n(this.type))P=!0,M=k,A=V?this.parseIdent():this.parseModuleExportName(),S=!1;else A=y,S=!1}else if(n(this.type))S=!1,A=V?this.parseIdent():this.parseModuleExportName();else P=!0,M=k}else if(n(this.type))if(P=!0,V){if(M=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(M)}else M=this.parseModuleExportName();if(P&&z)this.raise(C,V?v.TypeModifierIsUsedInTypeImports:v.TypeModifierIsUsedInTypeExports);J[O]=M,J[F]=A;let N=V?"importKind":"exportKind";if(J[N]=P?"type":"value",S&&this.eatContextual("as"))J[F]=V?this.parseIdent():this.parseModuleExportName();if(!J[F])J[F]=this.copyNode(J[O]);if(V)this.checkLValSimple(J[F],r.BIND_LEXICAL)}raiseCommonCheck(J,V,z){switch(V){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,V)}return z?super.raiseRecoverable(J,V):super.raise(J,V)}raiseRecoverable(J,V){return this.raiseCommonCheck(J,V,!0)}raise(J,V){return this.raiseCommonCheck(J,V,!0)}updateContext(J){let{type:V}=this;if(V==K.braceL){var z=this.curContext();if(z==I.tc_oTag)this.context.push($.b_expr);else if(z==I.tc_expr)this.context.push($.b_tmpl);else super.updateContext(J);this.exprAllowed=!0}else if(V===K.slash&&J===R.jsxTagStart)this.context.length-=2,this.context.push(I.tc_cTag),this.exprAllowed=!1;else return super.updateContext(J)}jsx_parseOpeningElementAt(J,V){let z=this.startNodeAt(J,V),O=this.jsx_parseElementName();if(O)z.name=O;if(this.match(K.relational)||this.match(K.bitShift)){let F=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(F)z.typeArguments=F}z.attributes=[];while(this.type!==K.slash&&this.type!==R.jsxTagEnd)z.attributes.push(this.jsx_parseAttribute());return z.selfClosing=this.eat(K.slash),this.expect(R.jsxTagEnd),this.finishNode(z,O?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(J){if(J===u1)this.importsStack.push([]);super.enterScope(J);let V=super.currentScope();V.types=[],V.enums=[],V.constEnums=[],V.classes=[],V.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===u1)this.importsStack.pop();super.exitScope()}hasImport(J,V){let z=this.importsStack.length;if(this.importsStack[z-1].indexOf(J)>-1)return!0;if(!V&&z>1){for(let O=0;O<z-1;O++)if(this.importsStack[O].indexOf(J)>-1)return!0}return!1}maybeExportDefined(J,V){if(this.inModule&&J.flags&r.SCOPE_TOP)delete this.undefinedExports[V]}declareName(J,V,z){if(V&r.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 O=this.currentScope();if(V&r.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(O,J),O.exportOnlyBindings.push(J);return}if(V===r.BIND_TS_TYPE||V===r.BIND_TS_INTERFACE){if(V===r.BIND_TS_TYPE&&O.types.includes(J))this.raise(z,`type '${J}' has already been declared.`);O.types.push(J)}else super.declareName(J,V,z);if(V&r.BIND_FLAGS_TS_ENUM)O.enums.push(J);if(V&r.BIND_FLAGS_TS_CONST_ENUM)O.constEnums.push(J);if(V&r.BIND_FLAGS_CLASS)O.classes.push(J)}checkLocalExport(J){let{name:V}=J;if(this.hasImport(V))return;let z=this.scopeStack.length;for(let O=z-1;O>=0;O--){let F=this.scopeStack[O];if(F.types.indexOf(V)>-1||F.exportOnlyBindings.indexOf(V)>-1)return}super.checkLocalExport(J)}}return a}}class q5 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 f(q,Q,Z){let Y=typeof q==="number"?q:q?.start,H=typeof q==="number"?q:q?.end;throw new q5(Q,Z,Y!==void 0?[Y,H??Y]:void 0)}function Q5(q){f(q,"css_empty_declaration",`Declaration cannot be empty
|
|
36
36
|
https://svelte.dev/e/css_empty_declaration`)}function x9(q){f(q,"css_expected_identifier",`Expected a valid CSS identifier
|
|
37
37
|
https://svelte.dev/e/css_expected_identifier`)}function Z5(q){f(q,"css_selector_invalid",`Invalid selector
|
|
38
38
|
https://svelte.dev/e/css_selector_invalid`)}function Y5(q){f(q,"attribute_duplicate",`Attributes need to be unique
|
|
@@ -77,63 +77,63 @@ https://svelte.dev/e/tag_invalid_placement`)}function R8(q){f(q,"unexpected_eof"
|
|
|
77
77
|
https://svelte.dev/e/unexpected_eof`)}function g5(q,Q){f(q,"unexpected_reserved_word",`'${Q}' is a reserved word in JavaScript and cannot be used here
|
|
78
78
|
https://svelte.dev/e/unexpected_reserved_word`)}function _5(q){f(q,"unterminated_string_constant",`Unterminated string constant
|
|
79
79
|
https://svelte.dev/e/unterminated_string_constant`)}function x5(q){f(q,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
80
|
-
https://svelte.dev/e/void_element_invalid_content`)}var h0=Z8,s9=h0.extend(e2());function u5(q,Q,Z,Y){let H=Z?s9:h0,{onComment:j,add_comments:K}=a9(q,Q),X=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...W){let B=X.call(this,...W);return this.undefinedExports={},B};try{let W=H.parse(q,{onComment:j,sourceType:"module",ecmaVersion:16,locations:!0});return K(W),W}catch(W){return n9(W)}finally{if(Y)H.prototype.parseStatement=X}}function q1(q,Q,Z){let Y=q.ts?s9:h0,{onComment:H,add_comments:j}=a9(Q,q.root.comments,Z);try{let K=Y.parseExpressionAt(Q,Z,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return j(K),K}catch(K){n9(K)}}function m5(q,Q,Z){let Y=q.ts?s9:h0,{onComment:H,add_comments:j}=a9(Q,q.root.comments,Z);try{let K=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let X=K.parseStatement(null,!0,Object.create(null));return j(X),X}catch(K){if(K.pos===Q.length)R8(Q.length);n9(K)}}var
|
|
81
|
-
`)B-=1;let U=B;while(/[ \t]/.test(q[U]))U+=1;let $=q.slice(B,U);H=H.replace(new RegExp(`^${$}`,"gm"),"")}Q.push({type:Y?"Block":"Line",value:H,start:j,end:K,loc:{start:X,end:W}})},add_comments(Y){if(Q.length===0)return;if(Q=Q.filter((H)=>H.start>=Z).map(({type:H,value:j,start:K,end:X})=>({type:H,value:j,start:K,end:X})),c8(Y,null,{_(H,{next:j,path:K}){let X;while(Q[0]&&Q[0].start<H.start)X=Q.shift(),(H.leadingComments||=[]).push(X);if(j(),Q[0]){let W=K.at(-1);if(W===void 0||H.end!==W.end){let B=q.slice(H.end,Q[0].start);if((W?.type==="BlockStatement"||W?.type==="Program")&&W.body.indexOf(H)===W.body.length-1||W?.type==="ArrayExpression"&&W.elements.indexOf(H)===W.elements.length-1||W?.type==="ObjectExpression"&&W.properties.indexOf(H)===W.properties.length-1){let $=H.end;while(Q.length){let w=Q[0];if(W&&w.start>=W.end)break;(H.trailingComments||=[]).push(w),Q.shift(),$=w.end}}else if(H.end<=Q[0].start&&/^[,) \t]*$/.test(B))H.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Q.splice(0))}}}function r9(q){if(q<0)return 1/0;return q}function
|
|
82
|
-
`,Q)));return t9(Y,Q,Z)}function
|
|
83
|
-
`);return Z<Y?Z:1/0}function t9(q,Q,Z){let Y=Q;while(!0){let H=q.indexOf(Z,Y);if(H===-1)return 1/0;if(
|
|
84
|
-
`,j+1))+1;continue}if(X==="*"){j=r9(q.indexOf("*/",j+1))+2;continue}let W=gQ(q,j+1)+1;if(W===1/0)j++;else j=W;continue}default:{let X=q[j];if(X===Z)H++;else if(X===Y)H--;if(H===0)return j;j++}}}return}var y0={"{":"}","(":")","[":"]"},xQ=new Set(Object.values(y0));function c1(q,Q,Z=y0){let Y=Z===y0?xQ:new Set(Object.values(Z)),H=[],j=Q;while(j<q.template.length){let K=q.template[j++];if(K==="'"||K==='"'||K==="`"){j=uQ(q,j,K);continue}if(K in Z)H.push(K);else if(Y.has(K)){let X=H.pop(),W=Z[X];if(K!==W)b8(j-1,W);if(H.length===0)return j}}R8(q.template.length)}function uQ(q,Q,Z){let Y=!1,H=Q;while(H<q.template.length){let j=q.template[H++];if(Y){Y=!1;continue}if(j===Z)return H;if(j==="\\")Y=!0;if(Z==="`"&&j==="$"&&q.template[H]==="{")H=c1(q,H)}_5(Q)}function e9(q,Q){let Z=f0(q.template,q.index,Q??"{");if(Z){let Y=q.index;return q.index=Z,{type:"Identifier",start:Y,end:Z,name:""}}}function z8(q,Q,Z){try{let Y=q1(q,q.template,q.index),H=Y.end,j=q.root.comments.at(-1);if(j&&j.end>H)H=j.end;return q.index=H,$1(Y)}catch(Y){if(q.loose&&!Z){let H=e9(q,Q);if(H)return H}throw Y}}function q6(q=[]){return{type:"ArrayExpression",elements:q}}function mQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var FK=mQ("void",d1(0));function d1(q){return{type:"Literal",value:q}}var lQ=d1(!0),RK=d1(!1),$K=d1(null);function l5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function Z6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function Y6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var cQ=/<\/script\s*>/,dQ=/<\/script\s*>/y,iQ=["server","client","worker","test","default"],pQ=["context","generics","lang","module"];function c5(q,Q,Z){let Y=q.index,H=q.read_until(cQ);if(q.index>=q.template.length)T0(q.template.length,"script");let j=q.template.slice(0,Y).replace(X0," ")+H;q.read(dQ);let K=u5(j,q.root.comments,q.ts,!0);if(K.start=Y,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=W8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=W8(q.index);let X="default";for(let W of Z){if(iQ.includes(W.name))C5(W,W.name);if(!pQ.includes(W.name))n7(W);if(W.name==="module"){if(W.value!==!0)A5(W,W.name);X="module"}if(W.name==="context"){if(W.value===!0||!l5(W))i9(W);if(W.value[0].data!=="module")i9(W);X="module"}}return{type:"Script",start:Q,end:q.index,context:X,content:K,attributes:Z}}var oQ=/[~^$*|]?=/y,sQ=/[\s\]]/,nQ=/[a-zA-Z]+/y,p5=/(\+|~|>|\|\|)/y,d5=/\d+(\.\d+)?%/y,i5=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,aQ=/[\s:]/,rQ=/-?\d/y,tQ=/[a-zA-Z0-9_-]/,eQ=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,qZ=/\*\//,QZ=/-->/;function J6(q,Q,Z){let Y=q.index,H=ZZ(q,(K)=>K.match("</style")||K.index>=K.template.length),j=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:j,styles:q.template.slice(Y,j),comment:null}}}function ZZ(q,Q){let Z=[];while(M1(q),!Q(q))if(q.match("@"))Z.push(o5(q));else Z.push(s5(q));return Z}function o5(q){let Q=q.index;q.eat("@",!0);let Z=o8(q),Y=K6(q),H=null;if(q.match("{"))H=n5(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:Y,block:H}}function s5(q){let Q=q.index;return{type:"Rule",prelude:H6(q),block:n5(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function H6(q,Q=!1){let Z=[];M1(q);let Y=q.index;while(q.index<q.template.length){Z.push(YZ(q,Q));let H=q.index;if(M1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Z};else q.eat(",",!0),M1(q)}R8(q.template.length)}function YZ(q,Q=!1){let Z=q.index,Y=[];function H(K,X){return{type:"RelativeSelector",combinator:K,selectors:[],start:X,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let j=H(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))j.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let B="*";if(q.eat("|"))B=o8(q);j.selectors.push({type:"TypeSelector",name:B,start:K,end:q.index})}else if(q.eat("#"))j.selectors.push({type:"IdSelector",name:o8(q),start:K,end:q.index});else if(q.eat("."))j.selectors.push({type:"ClassSelector",name:o8(q),start:K,end:q.index});else if(q.eat("::")){if(j.selectors.push({type:"PseudoElementSelector",name:o8(q),start:K,end:q.index}),q.eat("("))H6(q,!0),q.eat(")",!0)}else if(q.eat(":")){let B=o8(q),U=null;if(q.eat("("))U=H6(q,!0),q.eat(")",!0);j.selectors.push({type:"PseudoClassSelector",name:B,args:U,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let B=o8(q);q.allow_whitespace();let U=null,$=q.read(oQ);if($)q.allow_whitespace(),U=jZ(q);q.allow_whitespace();let w=q.read(nQ);q.allow_whitespace(),q.eat("]",!0),j.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:B,matcher:$,value:U,flags:w})}else if(Q&&q.match_regex(i5))j.selectors.push({type:"Nth",value:q.read(i5),start:K,end:q.index});else if(q.match_regex(d5))j.selectors.push({type:"Percentage",value:q.read(d5),start:K,end:q.index});else if(!q.match_regex(p5)){let B=o8(q);if(q.eat("|"))B=o8(q);j.selectors.push({type:"TypeSelector",name:B,start:K,end:q.index})}let X=q.index;if(M1(q),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=X,j.end=X,Y.push(j),{type:"ComplexSelector",start:Z,end:X,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=X;let W=HZ(q);if(W){if(j.selectors.length>0)j.end=X,Y.push(j);if(j=H(W,W.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))Z5(q.index)}}R8(q.template.length)}function HZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,Y=q.read(p5);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 n5(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(M1(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 o5(q);let Q=q.index;K6(q);let Z=q.template[q.index];return q.index=Q,Z==="{"?s5(q):KZ(q)}function KZ(q){let Q=q.index,Z=q.read_until(aQ);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=K6(q);if(!H&&!Z.startsWith("--"))Q5({start:Q,end:Y});let j=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:j,property:Z,value:H}}function K6(q){let Q="",Z=!1,Y=!1,H=null;while(q.index<q.template.length){let j=q.template[q.index];if(Z){Q+="\\"+j,Z=!1,q.index++;continue}else if(j==="\\"){Z=!0,q.index++;continue}else if(j===H)H=null;else if(j===")")Y=!1;else if(H===null&&(j==='"'||j==="'"))H=j;else if(j==="("&&Q.slice(-3)==="url")Y=!0;else if((j===";"||j==="{"||j==="}")&&!Y&&!H)return Q.trim();else if(j==="/"&&!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+=j,q.index++}R8(q.template.length)}function jZ(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++}R8(q.template.length)}function o8(q){let Q=q.index,Z="";if(q.match_regex(rQ))x9(Q);while(q.index<q.template.length){let Y=q.template[q.index];if(Y==="\\"){let H=q.match_regex(eQ);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||tQ.test(Y))Z+=Y,q.index++;else break}if(Z==="")x9(Q);return Z}function M1(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(QZ),q.eat("-->",!0);q.allow_whitespace()}}var j6={"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 VZ=[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 XZ(q,Q){if(Q&&!q.endsWith(";"))return`${q}\\b(?!=)`;return q}function r5(q){let Z=Object.keys(j6).map((H)=>XZ(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var WZ=r5(!1),zZ=r5(!0);function i1(q,Q){let Z=Q?zZ:WZ;return q.replace(Z,(Y,H)=>{let j;if(H[0]!=="#")j=j6[H];else if(H[1]==="x")j=parseInt(H.substring(2),16);else j=parseInt(H.substring(1),10);if(!j)return Y;return String.fromCodePoint(UZ(j))})}var a5=0;function UZ(q){if(q===10)return 32;if(q<128)return q;if(q<=159)return VZ[q-128];if(q<55296)return q;if(q<=57343)return a5;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 a5}function X8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var GZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function t5(q){return GZ.includes(q.type)}function g0(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 H8{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 q6([...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 e5={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 q4(q,Q){let Z=e5[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var xK={...e5,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 Q4(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 OZ=/(\/>|[\s"'=<>`])/y,V6=/<\/textarea(\s[^>]*)?>/iy,BZ=/-->/,Z4=/(\s|\/|>)/,H4=/[\s=/>"']/,J4=/["']/y,FZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,RZ=/^![a-zA-Z]+$/,$Z=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function MZ(q){if(RZ.test(q))return!0;if($Z.test(q))return!0;return u7.test(q)}var Y4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,K4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),_0=new Map([...K4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function X6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let R=q.read_until(BZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:R});return}if(q.eat("/")){let R=q.read_until(Z4);if(q.allow_whitespace(),q.eat(">",!0),F9(R))x5(Q);while(Z.name!==R){if(q.loose){if(t5(Z)){let I=Z.attributes.at(-1);if(I?.type==="Attribute"&&I.name===`<${R}`){q.index=I.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==R){let I=Z.fragment.nodes[0]?.start??Q;A9({start:Z.start,end:I},`</${R}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===R)O5(Q,R,q.last_auto_closed_tag.reason);else G5(Q,R);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=W6(q,Z4);if(Y.name.startsWith("svelte:")&&!_0.has(Y.name)){let R={start:Q+1,end:Q+1+Y.name.length};N5(R,Q4(Array.from(_0.keys())))}if(!MZ(Y.name)&&!Y4.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let R={start:Q+1,end:Q+1+Y.name.length};y5(R)}}if(K4.has(Y.name)){if(Y.name in q.meta_tags)P5(Q,Y.name);if(Z.type!=="Root")k5(Q,Y.name);q.meta_tags[Y.name]=!0}let H=_0.has(Y.name)?_0.get(Y.name):Y4.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&wZ(q.stack)?"TitleElement":Y.name==="slot"&&!AZ(q.stack)?"SlotElement":"RegularElement",j=H==="RegularElement"?{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:X8(!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:X8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&q4(Z.name,Y.name)){let R=Z.fragment.nodes[0]?.start??Q;A9({start:Z.start,end:R},`<${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=[],X=q.current(),W=(Y.name==="script"||Y.name==="style")&&X.type==="Root",B=W?CZ:LZ,U;while(U=B(q)){if(U.type==="Attribute"||U.type==="BindDirective"||U.type==="StyleDirective"||U.type==="ClassDirective"){let R=U.type==="BindDirective"?"Attribute":U.type;if(K.includes(R+U.name))Y5(U);else if(U.name!=="this")K.push(R+U.name)}j.attributes.push(U),q.allow_whitespace()}if(j.type==="Component")j.metadata.expression=new H8;if(j.type==="SvelteComponent"){let R=j.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(R===-1)S5(Q);let I=j.attributes.splice(R,1)[0];if(!Z6(I))I5(I.start);j.expression=Y6(I),j.metadata.expression=new H8}if(j.type==="SvelteElement"){let R=j.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(R===-1)p9(Q);let I=j.attributes.splice(R,1)[0];if(I.value===!0)p9(I);if(!Z6(I)){a7(I);let D=I.value[0];j.tag=D.type==="Text"?{type:"Literal",value:D.data,raw:`'${D.raw}'`,start:D.start,end:D.end}:D.expression}else j.tag=Y6(I);j.metadata.expression=new H8}if(W){q.eat(">",!0);let R=null;for(let I=X.fragment.nodes.length-1;I>=0;I--){let D=X.fragment.nodes[I];if(I===X.fragment.nodes.length-1&&D.end!==Q)break;if(D.type==="Comment"){R=D;break}else if(D.type!=="Text"||D.data.trim())break}if(Y.name==="script"){let I=c5(q,Q,j.attributes);if(R)I.content.leadingComments=[{type:"Line",value:R.data}];if(I.context==="module"){if(X.module)d9(Q);X.module=I}else{if(X.instance)d9(Q);X.instance=I}}else{let I=J6(q,Q,j.attributes);if(I.content.comment=R,X.css)L5(Q);X.css=I}return}q.append(j);let $=q.eat("/")||F9(Y.name),w=q.eat(">",!0,!1);if(!w){let R=j.attributes.at(-1);if(R?.type==="Attribute"&&R.name==="<")q.index=R.start,j.attributes.pop();else{let I=q.template[q.index-1],D=q.template[q.index-2],L=q.template[q.index];if(D==="{"&&I==="/")q.index-=2;else if(I==="{"&&(L==="#"||L==="@"||L===":"))q.index-=1;else q.allow_whitespace()}}if($||!w)j.end=q.index;else if(Y.name==="textarea")j.fragment.nodes=j4(q,()=>{return V6.lastIndex=q.index,V6.test(q.template)},"inside <textarea>"),q.read(V6),j.end=q.index;else if(Y.name==="script"||Y.name==="style"){let R=q.index,I=`</${Y.name}>`,D=q.template.indexOf(I,q.index),L=q.template.slice(q.index,D===-1?q.template.length:D);q.index=D===-1?q.template.length:D;let b=q.index,x={start:R,end:b,type:"Text",data:L,raw:L};j.fragment.nodes.push(x),q.eat(`</${Y.name}>`,!0),j.end=q.index}else q.stack.push(j),q.fragments.push(j.fragment)}function wZ(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 CZ(q){let Q=q.index,Z=W6(q,H4);if(!Z.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(FZ);if(!H)l9(q.index);q.index+=H.length;let j=H[0]==='"'||H[0]==="'";if(j)H=H.slice(1,-1);Y=[{start:q.index-H.length-(j?1:0),end:j?q.index-1:q.index,type:"Text",raw:H,data:i1(H,!0)}]}if(q.match_regex(J4))b8(q.index,"=");return g0(Z.name,Z.loc,Q,q.index,Y)}function LZ(q){let Q=null;while(Q=IZ(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=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:W,metadata:{expression:new H8}}}if(q.eat("...")){let W=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:W,metadata:{expression:new H8}}}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 H5(Z);q.allow_whitespace(),q.eat("}",!0);let B={type:"ExpressionTag",start:W.start,end:W.end,expression:W,metadata:{expression:new H8}};return g0(W.name,W.loc,Z,q.index,B)}}let Y=W6(q,H4);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let j=Y.name.indexOf(":"),K=j!==-1&&SZ(Y.name.slice(0,j)),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:"/"}],H=q.index}else X=PZ(q),H=q.index;else if(q.match_regex(J4))b8(q.index,"=");if(K){let[W,...B]=Y.name.slice(j+1).split("|");if(W==="")U5({start:Z,end:Z+j+1},Y.name);if(K==="StyleDirective")return{start:Z,end:H,type:K,name:W,name_loc:Y.loc,modifiers:B,value:X,metadata:{expression:new H8}};let U=X===!0?void 0:Array.isArray(X)?X[0]:X,$=null;if(U)if(X.length>1||U.type==="Text")z5(U.start);else $=U.expression;let w={start:Z,end:H,type:K,name:W,name_loc:Y.loc,expression:$,metadata:{expression:new H8}};if(w.modifiers=B,w.type==="TransitionDirective"){let R=Y.name.slice(0,j);w.intro=R==="in"||R==="transition",w.outro=R==="out"||R==="transition"}if((w.type==="BindDirective"||w.type==="ClassDirective")&&!w.expression)w.expression={start:Z+j+1,end:H,type:"Identifier",name:w.name};return w}return g0(Y.name,Y.loc,Z,H,X)}function IZ(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:W8(Q),end:W8(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:W8(Q),end:W8(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 PZ(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(OZ)},"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,b8(H,Q||"}")}throw Y}if(Z.length===0&&!Q)l9(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 j(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 j(q.index),H;else if(q.eat("{")){if(q.match("#")){let B=q.index-1;q.eat("#");let U=q.read_until(/[^a-z]/);j5(B,U,Z)}else if(q.match("@")){let B=q.index-1;q.eat("@");let U=q.read_until(/[^a-z]/);f5(B,U,Z)}j(q.index-1),q.allow_whitespace();let X=z8(q);q.allow_whitespace(),q.eat("}",!0);let W={type:"ExpressionTag",start:K,end:q.index,expression:X,metadata:{expression:new H8}};H.push(W),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else R8(q.template.length)}function W6(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:W8(Z),end:W8(H)}}}function f8(q){let{index:Q,index:Z}=q,Y=q.read_identifier();if(Y.name!==""){let B=V4(q);return{...Y,typeAnnotation:B}}let H=q.template[Z];if(H!=="{"&&H!=="[")F5(Z);Z=c1(q,Q),q.index=Z;let j=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(X0," "),X=K.indexOf(" ");K=K.slice(0,X)+K.slice(X+1);let W=$1(q1(q,`${K}(${j} = 1)`,Q-1));if(W=W.left,W.typeAnnotation=V4(q),W.typeAnnotation)W.end=W.typeAnnotation.end;return W}function V4(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,":"),j=$1(q1(q,H,Y));if(j.type==="AssignmentExpression"){let K=j.right.start;while(H[K]!=="=")K-=1;j=$1(q1(q,H.slice(0,K),Y))}if(j.type==="SequenceExpression")j=j.expressions[0];return q.index=j.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:j.typeAnnotation}}var z6=/\s*}/y,DZ=/(?:let|const)\b/y,kZ=/(?:var|interface|enum)\b/y,NZ=/type\b/y,bZ={"<":">"};function G6(q){let Q=q.index;if(q.index+=1,q.allow_whitespace(),q.eat("#"))return EZ(q);if(q.eat(":"))return vZ(q);if(q.eat("@"))return hZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),U6(q)}let Z=TZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new H8}});return}let Y=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:Y,metadata:{expression:new H8}})}function TZ(q){let Q=q.index,Z=q.match_regex(kZ);if(Z)b0({start:Q,end:Q+Z.length});if(!q.match_regex(DZ)&&!q.match_regex(NZ))return null;let Y=q.root.comments.length,H;try{H=m5(q,q.template,Q)}catch(j){if(!q.loose)throw j;let K=f0(q.template,Q,"{");if(K===void 0)throw j;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 b0({start:H.start??Q,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")b0(H);return q.index=H.end,q.allow_whitespace(),q.eat("}",!0),H}function EZ(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:z8(q),consequent:X8(),alternate:null,metadata:{expression:new H8}});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=z8(q,void 0,!0)}catch(U){Y=U.position[0]-2;while(Y>Q&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Q){if(q.loose){if(H=e9(q),H)break}throw U}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 U=null,$=H.end;if(H=c8(H,null,{TSAsExpression(w,R){if(w.end===H.end)return U=w,$=w.expression.end,w.expression;R.next()}}),H.end=$,U){let w=U.typeAnnotation.start-2;while(q.template.slice(w,w+2)!=="as")w-=1;q.index=w}}let j=null,K,X;if(q.eat("as"))q.require_whitespace(),j=f8(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)c9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),X=z8(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 U=q.index;j=f8(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:U-4}}else q.eat("}",!0);let B=q.append({type:"EachBlock",start:Q,end:-1,expression:H,body:X8(),context:j,index:K,key:X,metadata:null});q.stack.push(B),q.fragments.push(B.body);return}if(q.eat("await")){q.require_whitespace();let Z=z8(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 H8}});if(q.eat("then")){if(q.match_regex(z6))q.allow_whitespace();else q.require_whitespace(),Y.value=f8(q),q.allow_whitespace();Y.then=X8(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(z6))q.allow_whitespace();else q.require_whitespace(),Y.error=f8(q),q.allow_whitespace();Y.catch=X8(),q.fragments.push(Y.catch)}else Y.pending=X8(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let j=q.index;Y.value=f8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:j-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let j=q.index;Y.error=f8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:j-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=z8(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:X8(),metadata:{expression:new H8}});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)c9(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let U=q.index,$=c1(q,U,bZ);H=q.template.slice(U+1,$-1),q.index=$}q.allow_whitespace();let j=q.eat("(",!0,!1);if(j){let U=1;while(q.index<q.template.length&&(!q.match(")")||U!==1)){if(q.match("("))U++;if(q.match(")"))U--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,Y).replace(/\S/g," "),X=q.template.slice(Y,q.index),W=j?q1(q,K+`${X} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let B=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:H,parameters:W.params,body:X8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(B),q.fragments.push(B.body);return}B5(q.index)}function vZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))b8(Q,"{:else} or {:else if}");if(q.eat("if"))K5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=X8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let Y=z8(q);q.allow_whitespace(),q.eat("}",!0);let H=Q-1;while(q.template[H]!=="{")H-=1;let j=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:X8(),alternate:null,metadata:{expression:new H8}});q.stack.push(j),q.fragments.pop(),q.fragments.push(j.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))b8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=X8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)u9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=f8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=X8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)u9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=f8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=X8(),q.fragments.pop(),q.fragments.push(Z.catch);return}b8(Q,"{:then ...} or {:catch ...}")}J5(Q)}function U6(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(),U6(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 m9(Q);break;default:m9(Q)}if(!Y){Z.end=Q-1,q.pop(),U6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function hZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8}});return}if(q.eat("debug")){let Z;if(q.read(z6))Z=[];else{let Y=z8(q);Z=Y.type==="SequenceExpression"?Y.expressions:[Y],Z.forEach((H)=>{if(H.type!=="Identifier")W5(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=f8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=z8(q),j=q.index;if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))X5(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:j}],start:Q+2,end:q.index-1},metadata:{expression:new H8}});return}if(q.eat("render")){q.require_whitespace();let Z=z8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))w5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}R5(q.index)}function O6(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 p1(q){if(q.match("<"))return X6;if(q.match("{"))return G6;return O6}function B6(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")T5(Z);let{name:Y}=Z;switch(Y){case"runes":{Q.runes=x0(Z);break}case"tag":{b5(Z);break}case"customElement":{let H={},{value:j}=Z,K=j===!0||Array.isArray(j)?j:[j];if(K===!0)v0(Z);else if(K[0].type==="Text"){let w=u0(Z);W4(Z,w),H.tag=w,Q.customElement=H;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;v0(Z)}let X=[];for(let w of K[0].expression.properties){if(w.type!=="Property"||w.computed||w.key.type!=="Identifier")v0(Z);X.push([w.key.name,w.value])}let W=X.find(([w])=>w==="tag");if(W){let w=W[1]?.value;W4(W,w),H.tag=w}let B=X.find(([w])=>w==="props")?.[1];if(B){if(B.type!=="ObjectExpression")e8(Z);H.props={};for(let w of B.properties){if(w.type!=="Property"||w.computed||w.key.type!=="Identifier"||w.value.type!=="ObjectExpression")e8(Z);H.props[w.key.name]={};for(let R of w.value.properties){if(R.type!=="Property"||R.computed||R.key.type!=="Identifier"||R.value.type!=="Literal")e8(Z);if(R.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(R.value.value)===-1)e8(Z);H.props[w.key.name].type=R.value.value}else if(R.key.name==="reflect"){if(typeof R.value.value!=="boolean")e8(Z);H.props[w.key.name].reflect=R.value.value}else if(R.key.name==="attribute"){if(typeof R.value.value!=="string")e8(Z);H.props[w.key.name].attribute=R.value.value}else e8(Z)}}}let U=X.find(([w])=>w==="shadow")?.[1];if(U)if(U.type==="Literal"&&(U.value==="open"||U.value==="none"))H.shadow=U.value;else if(U.type==="ObjectExpression")H.shadow=U;else E5(Z);let $=X.find(([w])=>w==="extend")?.[1];if($)H.extend=$;Q.customElement=H;break}case"namespace":{let H=u0(Z);if(H===E7)Q.namespace="svg";else if(H===v7)Q.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Q.namespace=H;else E0(Z,'"html", "mathml" or "svg"');break}case"css":{let H=u0(Z);if(H==="injected")Q.css=H;else E0(Z,'"injected"');break}case"immutable":{Q.immutable=x0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=x0(Z);break}case"accessors":{Q.accessors=x0(Z);break}default:h5(Z,Y)}}return Q}function u0(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 x0(q){let Q=u0(q);if(typeof Q!=="boolean")E0(q,"true or false");return Q}var X4="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",yZ=new RegExp(`^[a-z]${X4}*-${X4}*$`,"u"),fZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function W4(q,Q){if(typeof Q!=="string")o9(q);if(Q){if(!yZ.test(Q))o9(q);else if(fZ.includes(Q))v5(q)}}function z4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],Y=Q[Q.length-1];D5({start:Z.start,end:Y.end},q.name)}}function U4(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 G4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class F6{template;loose;index=0;static forCss(q){let Q=Object.create(F6.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=G4.exec(q);while(Z&&Z[0][1]!=="s");G4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:X8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=p1;while(this.index<this.template.length)Y=Y(this)||p1;if(this.stack.length>1){let j=this.current();if(this.loose)j.end=this.template.length;else if(j.type==="RegularElement")j.end=j.start+1,T0(j,j.name);else j.end=j.start+1,V5(j)}if(Y!==p1)R8(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((j)=>j.type==="SvelteOptions");if(H!==-1){let j=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=B6(j),z4(j),Object.defineProperty(this.root.options,"__raw__",{value:j,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))b8(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&&U4(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($8(Y,!0)){let H=this.index;Q+=Y<=65535?1:2;while(Q<this.template.length){let j=this.template.codePointAt(Q);if(!h8(j,!0))break;Q+=j<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,x7(Z))g5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:W8(q),end:W8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";R8(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(!U4(this.template.charCodeAt(this.index)))$5(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 O4(q,Q=!1){return m7(q),new F6(q,Q).root}function gZ(q){return q.charCodeAt(0)===65279?q.slice(1):q}function R6(q){delete q.metadata}function $6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;R6(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)$6(Y);else $6(Z)}}function _Z(q,Q,Z){if(Z){for(let Y of Q.options?.attributes??[])if(R6(Y),Y.value)for(let H of Array.isArray(Y.value)?Y.value:[Y.value])R6(H);return $6(Q),Q}return e7(q,Q)}function B4(q,{loose:Q}={}){let Z=gZ(q);c7({warning:()=>!1,filename:void 0});let Y=O4(Z,Q);return{modern:Y,intoLegacy:()=>_Z(Z,Y,!1)}}function F4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var xZ=null,R4=/^@component/,uZ=/\r/g,mZ=/^\{\s*\}$/;class U8{ctx=t0();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(U8.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=K8(this.ctx,Q),Y=q.instance?.attributes?.find((K)=>K.name==="lang");if((Y?U8.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){l8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let j=U8.getStaticAttributeValue(Q);if(!j)return;return{value:j,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(_8(q))return q.name;if(H1(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 a8(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return a8(this.ctx,this,Q);return}addModuleExport(q,Q){if(C8(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=k7(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=t0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return U8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(U8.SCRIPT_BLOCK_REGEX,(Q,Z,Y,H)=>{U8.TS_DIRECTIVE_REGEX.lastIndex=0;let j=Y.replace(U8.TS_DIRECTIVE_REGEX,"");return Z+j+H})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=U8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:Y,intoLegacy:H}=B4(Z);if(A7(this,this.ctx,Y),this.ctx.parsed=H(),this.ctx.scriptLanguage==="ts")j0(this.ctx.parsed.module),j0(this.ctx.parsed.instance),j0(this.ctx.parsed.html);this.ctx.syntaxMode=w7(this.ctx);let j=this.ctx.parsed.css,K=j?.start!==void 0&&j?.end!==void 0?Z.slice(0,j.start)+" ".repeat(j.end-j.start)+Z.slice(j.end):Z;U7(this.ctx,this,K);let X={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};if(z9(this.ctx,this.ctx.parsed?.module),z9(this.ctx,this.ctx.parsed?.instance),this.ctx.parsed?.module)E8(this.ctx.parsed?.module,{enter:(J)=>{if(J.type==="ImportDeclaration")V0(this.ctx,J);if(J.type==="FunctionDeclaration"){let V=J;if(V.id?.name)this.ctx.funcDecls.set(V.id.name,V)}if(J.type==="VariableDeclaration")this.ctx.vars.add(J);if(J.type==="ExportNamedDeclaration"){if(J.declaration==null)return;if(!J.declaration||typeof J.declaration!=="object"||!("type"in J.declaration))return;let V,z,O=!1,F,M,A,P=!1,S,C,N;if(J.declaration.type==="FunctionDeclaration"){let c=J.declaration;if(!c.id?.name)return;V=c.id.name,z="function",F=void 0,M="() => any",P=!0,O=!0}else if(J.declaration.type==="VariableDeclaration"){let c=J.declaration,J8=c.declarations[0];if(!J8||typeof J8!=="object"||!("id"in J8))return;let{id:w8,init:Q8}=J8;if(!w8||typeof w8!=="object"||!("name"in w8))return;let A8=w8.name;V=A8,z=F4(c.kind);let Y8=Q8==null?{isFunction:!1}:n8(this,this.ctx,Q8);if({value:F,type:M,isFunction:P,defaultValue:S}=Y8,C=M,N=Y8,A=this.getExplicitPropType(A8),N.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:A8,location:"moduleExports",...N.pendingCallDefault})}else return;let k=a8(this.ctx,this,J),{type:y,typeSource:u,description:l,params:s,returnType:_,isFunction:p}=N1({explicitType:A,typeSeed:M,inferredTypeForSource:C,jsdocType:k?.type,jsdocDescription:k?.description,jsdocParams:k?.params,jsdocReturnType:k?.returnType,resolvedType:N?.resolvedType,resolvedDescription:N?.resolvedDescription,resolvedParams:N?.resolvedParams,resolvedReturnType:N?.resolvedReturnType,initializerIsFunction:P,isFunctionDeclaration:O,typedefs:this.ctx.typedefs});this.addModuleExport(V,{name:V,kind:z,description:l,deprecated:k?.deprecated,tags:k?.tags,type:y,typeSource:u,value:F,defaultValue:S,params:s,returnType:_,isFunction:p,isFunctionDeclaration:O,isRequired:!1,constant:z==="const",reactive:!1,source:K8(this.ctx,J)})}}});let W,B=new Set,U=new Set,$=[];B7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let w=F7(this.ctx);if(E8(X,{enter:(J,V,z)=>{R7(this,this.ctx,w,J);let O=this.ctx.scopeDeclarations.get(J);if(O)this.ctx.activeScopes.push(O);if(J.type==="AssignmentExpression")X9(this.ctx,J.left);if(J.type==="UpdateExpression")X9(this.ctx,J.argument);if(J.type==="CallExpression"){let F=J,M=F.callee&&typeof F.callee==="object"&&"name"in F.callee?F.callee.name:void 0;if(M==="createEventDispatcher"){if(V&&typeof V==="object"&&"id"in V&&V.id&&typeof V.id==="object"&&"name"in V.id)W=V.id.name}if(M==="$host"){if(V&&typeof V==="object"&&"id"in V&&V.id&&typeof V.id==="object"&&"name"in V.id)B.add(V.id.name)}if(M==="setContext")n6(this.ctx,this,J,V??void 0);if(M)$.push({name:M,arguments:F.arguments,source:K8(this.ctx,F)});if(h6(F.callee)&&_8(F.callee.property)&&F.callee.property.name==="dispatchEvent"&&(x8(F.callee.object,"$host")||_8(F.callee.object)&&B.has(F.callee.object.name))){let A=a6(this.ctx,F);if(A)U.add(A)}}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Spread"){let F=J;if(F.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(F.expression?.name??""))G7(this.ctx,V)}if(J.type==="FunctionDeclaration"){let F=J;if(F.id?.name)this.ctx.funcDecls.set(F.id.name,F)}if(J.type==="ImportDeclaration")V0(this.ctx,J);if(J.type==="VariableDeclaration"){if(this.ctx.vars.add(J),V&&typeof V==="object"&&"type"in V&&V.type==="Program"&&J.declarations.some((F)=>x8(s8(F.init),"$props")))C7(this,this.ctx,J)}if(J.type==="ExportNamedDeclaration"){if(J.declaration==null&&J.specifiers.length===0)return;let F;if(J.declaration==null&&J.specifiers[0]?.type==="ExportSpecifier"){let Y8=J.specifiers[0],Z1=Y8.local&&typeof Y8.local==="object"&&"name"in Y8.local?Y8.local.name:void 0,Y1=Y8.exported&&typeof Y8.exported==="object"&&"name"in Y8.exported?Y8.exported.name:void 0;if(!Z1||!Y1)return;let U1;for(let C1 of Array.from(this.ctx.vars))if(C1.declarations.some((m8)=>m8.id&&typeof m8.id==="object"&&("type"in m8.id)&&m8.id.type==="Identifier"&&m8.id.name===Z1)){U1=C1;break}J.declaration=U1,F=Y1}if(J.declaration==null)return;if(!J.declaration||typeof J.declaration!=="object"||!("type"in J.declaration))return;let M,A=!1,P,S,C,N=!1,k=!1,y,u,l,s;if(J.declaration.type==="FunctionDeclaration"){let Y8=J.declaration;if(!Y8.id?.name)return;F??=Y8.id.name,y=Y8.id.name,M="function",P=void 0,S="() => any",N=!0,A=!0,k=!1}else if(J.declaration.type==="VariableDeclaration"){let Y8=J.declaration,Z1=Y8.declarations[0];if(!Z1||typeof Z1!=="object"||!("id"in Z1))return;let{id:Y1,init:U1}=Z1;if(Y1&&typeof Y1==="object"&&"name"in Y1){let m8=Y1.name;y=m8,F??=m8,C=this.getExplicitPropType(m8)}else return;M=F4(Y8.kind),k=M==="let"&&U1==null;let C1=U1==null?{isFunction:!1}:n8(this,this.ctx,U1);if({value:P,type:S,isFunction:N,defaultValue:u}=C1,l=S,s=C1,s.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:F,location:"props",...s.pendingCallDefault})}else return;let _=a8(this.ctx,this,J),{type:p,typeSource:c,description:J8,params:w8,returnType:Q8,isFunction:A8}=N1({explicitType:C,typeSeed:S,inferredTypeForSource:l,jsdocType:_?.type,jsdocDescription:_?.description,jsdocParams:_?.params,jsdocReturnType:_?.returnType,resolvedType:s?.resolvedType,resolvedDescription:s?.resolvedDescription,resolvedParams:s?.resolvedParams,resolvedReturnType:s?.resolvedReturnType,initializerIsFunction:N,isFunctionDeclaration:A,typedefs:this.ctx.typedefs});L1(this,this.ctx,F,{name:F,...y!==void 0&&y!==F?{localName:y}:{},kind:M,description:J8,binding:_?.binding,deprecated:_?.deprecated,tags:_?.tags,type:p,typeSource:c,value:P,defaultValue:u,params:w8,returnType:Q8,isFunction:A8,isFunctionDeclaration:A,isRequired:k,constant:M==="const",reactive:this.ctx.reactive_vars.has(F),source:K8(this.ctx,J)})}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Comment"){let M=J?.data?.trim()??"";if(R4.test(M))this.ctx.componentComment=M.replace(R4,"").replace(uZ,""),this.ctx.componentCommentSource=K8(this.ctx,J)}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Slot"){let F=J,M=F.attributes?.find((S)=>S.name==="name")?.value?.[0]?.data,A=(F.attributes||[]).filter((S)=>S.name!=="name").reduce((S,C)=>{let N={value:void 0,replace:!1},k=C.value;if(k===void 0)return S;if(k[0]){let y=k[0],{type:u,expression:l,raw:s,start:_,end:p}=y;if(u==="Text"&&s!==void 0)N.value=JSON.stringify(s);else if(u==="AttributeShorthand"&&l&&typeof l==="object"&&"name"in l)N.value=l.name,N.replace=!0;if(l&&typeof l==="object"&&"type"in l){if(l.type==="Literal"&&"value"in l){let c=l.value;N.value=typeof c==="string"?JSON.stringify(c):String(c)}else if(l.type==="MemberExpression")N.value=q0(this.ctx,this,l);else if(l.type!=="Identifier"){if(_!==void 0&&p!==void 0){if(l.type==="ObjectExpression"||l.type==="TemplateLiteral")N.value=e(this.ctx,_+1,p-1)}}}}if(C.name)S[C.name]=N;return S},{}),P=F.children?.map(({start:S,end:C})=>{if(S===void 0||C===void 0)return"";return e(this.ctx,S,C)??""}).join("").trim();D1(this.ctx,{slot_name:M,slot_props:A,slot_fallback:P,source:K8(this.ctx,J)})}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="RenderTag"){let F=J,M=j7(this.ctx,F.expression);if(M){let A;if(M.arguments.length===0)A={};else if(M.arguments.length===1&&typeof M.arguments[0]==="object"&&M.arguments[0]&&"type"in M.arguments[0]&&M.arguments[0].type==="ObjectExpression")A=K7(this.ctx,this,M.arguments[0]);else if(M.arguments.length===1)l8(this.ctx,"syntax-skipped",M.publicName,`{@render ${M.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,K8(this.ctx,J));let P=M.publicName==="children"?void 0:M.publicName,S=P===void 0?xZ:P;if(A!==void 0)D1(this.ctx,{slot_name:P,slot_props:A,source:K8(this.ctx,J)});if(A!==void 0||this.ctx.slots.has(S))this.ctx.snippetPropLocals.add(M.trackingName)}}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="EventHandler"){let F=J;if(F.expression==null&&F.name){if(V!=null&&typeof V==="object"&&"name"in V){let M=typeof V.name==="string"?V.name:void 0,A="type"in V?String(V.type):void 0;if(M&&A){let P=A==="InlineComponent"?{type:"InlineComponent",name:M}:{type:"Element",name:M};this.ctx.forwardedEvents.set(F.name,P);let S=this.ctx.events.get(F.name),C=this.ctx.eventDescriptions.get(F.name),N=S?.deprecated;if(!S)this.ctx.events.set(F.name,{type:"forwarded",name:F.name,element:P,description:C,deprecated:N,source:K8(this.ctx,J)});else if(S.type==="forwarded"&&C&&!S.description)this.ctx.events.set(F.name,{...S,description:C,deprecated:S.deprecated??N,source:S.source||K8(this.ctx,J)})}}}}if(V&&typeof V==="object"&&"type"in V&&(String(V.type)==="Element"||String(V.type)==="InlineComponent")&&J&&typeof J==="object"&&"type"in J&&String(J.type)==="Binding"){let F=J;if(F.expression?.name){let M=H0(this.ctx,F.expression.name);if(M)this.ctx.reactive_vars.add(M)}if(String(V.type)==="Element"&&F.name==="this"&&F.expression?.name&&"name"in V&&typeof V.name==="string"){let M=H0(this.ctx,F.expression.name);if(!M)return;let A=V.name;if(this.ctx.bindings.has(M)){let P=this.ctx.bindings.get(M);if(P&&!P.elements.includes(A))this.ctx.bindings.set(M,{...P,elements:[...P.elements,A]})}else this.ctx.bindings.set(M,{elements:[A]})}}},leave:(J)=>{if(this.ctx.scopeDeclarations.has(J))this.ctx.activeScopes.pop();$7(w,J)}}),W!==void 0){for(let J of $)if(J.name===W){let V=J.arguments[0],z=V&&typeof V==="object"&&"value"in V?V.value:void 0,O=J.arguments[1],F=O&&typeof O==="object"&&"value"in O?O.value:void 0;if(z!=null)I1(this.ctx,{name:String(z),detail:F==null?"":Y9(F),has_argument:Boolean(O),source:J.source})}}let R=new Set(U);if(W!==void 0){for(let J of $)if(J.name===W){let V=J.arguments[0],z=V&&typeof V==="object"&&"value"in V?V.value:void 0;if(z!=null)R.add(String(z))}}this.ctx.forwardedEvents.forEach((J,V)=>{let z=this.ctx.events.get(V);if(z&&z.type==="dispatched"&&!R.has(V)){let O=this.ctx.eventDescriptions.get(V),F={type:"forwarded",name:V,element:J,description:O,deprecated:z.deprecated,tags:z.tags,source:z.source};if(z.detail!==void 0&&z.detail!=="undefined")F.detail=z.detail;this.ctx.events.set(V,F)}}),L7(this.ctx,R);let I=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(J)=>this.resolvePublicPropName(J))):new Set,D=U8.mapToArray(this.ctx.props).filter((J)=>!I.has(J.name)).map((J)=>{if(this.ctx.bindings.has(J.name)){let V=this.ctx.bindings.get(J.name)?.elements.sort().map((z)=>g6(z)).join(" | ");return{...J,type:`null | ${V}`,typeSource:"inferred",reactive:J.reactive||this.ctx.reactive_vars.has(J.name)}}return{...J,reactive:J.reactive||this.ctx.reactive_vars.has(J.name)}});this.ctx.activeScopes.length=0;let L=U8.mapToArray(this.ctx.slots).map((J)=>{if(!J.slot_props)return J;if(typeof J.slot_props==="string")return mZ.test(J.slot_props)?{...J,slot_props:"Record<string, never>"}:J;let V=J.slot_props,z=[];for(let F of Object.keys(V)){if(V[F].replace&&V[F].value!==void 0)V[F].value=this.getPropTypeByLocalOrPublic(V[F].value);if(V[F].value===void 0)V[F].value="any";z.push(`${F}: ${V[F].value}`)}let O=z.length===0?"Record<string, never>":z.length===1?`{ ${z[0]} }`:`{
|
|
80
|
+
https://svelte.dev/e/void_element_invalid_content`)}var h0=Z8,s9=h0.extend(e2());function u5(q,Q,Z,Y){let H=Z?s9:h0,{onComment:j,add_comments:K}=a9(q,Q),X=H.prototype.parseStatement;if(Y)H.prototype.parseStatement=function(...W){let B=X.call(this,...W);return this.undefinedExports={},B};try{let W=H.parse(q,{onComment:j,sourceType:"module",ecmaVersion:16,locations:!0});return K(W),W}catch(W){return n9(W)}finally{if(Y)H.prototype.parseStatement=X}}function q1(q,Q,Z){let Y=q.ts?s9:h0,{onComment:H,add_comments:j}=a9(Q,q.root.comments,Z);try{let K=Y.parseExpressionAt(Q,Z,{onComment:H,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return j(K),K}catch(K){n9(K)}}function m5(q,Q,Z){let Y=q.ts?s9:h0,{onComment:H,add_comments:j}=a9(Q,q.root.comments,Z);try{let K=new Y({onComment:H,sourceType:"module",ecmaVersion:16,locations:!0},Q,Z);K.nextToken();let X=K.parseStatement(null,!0,Object.create(null));return j(X),X}catch(K){if(K.pos===Q.length)R8(Q.length);n9(K)}}var yQ=/ \(\d+:\d+\)$/;function n9(q){M5(q.pos,q.message.replace(yQ,""))}function $1(q){return c8(q,null,{ParenthesizedExpression(Q,Z){return Z.visit(Q.expression)}})}function a9(q,Q,Z=0){return{onComment:(Y,H,j,K,X,W)=>{if(Y&&/\n/.test(H)){let B=j;while(B>0&&q[B-1]!==`
|
|
81
|
+
`)B-=1;let U=B;while(/[ \t]/.test(q[U]))U+=1;let $=q.slice(B,U);H=H.replace(new RegExp(`^${$}`,"gm"),"")}Q.push({type:Y?"Block":"Line",value:H,start:j,end:K,loc:{start:X,end:W}})},add_comments(Y){if(Q.length===0)return;if(Q=Q.filter((H)=>H.start>=Z).map(({type:H,value:j,start:K,end:X})=>({type:H,value:j,start:K,end:X})),c8(Y,null,{_(H,{next:j,path:K}){let X;while(Q[0]&&Q[0].start<H.start)X=Q.shift(),(H.leadingComments||=[]).push(X);if(j(),Q[0]){let W=K.at(-1);if(W===void 0||H.end!==W.end){let B=q.slice(H.end,Q[0].start);if((W?.type==="BlockStatement"||W?.type==="Program")&&W.body.indexOf(H)===W.body.length-1||W?.type==="ArrayExpression"&&W.elements.indexOf(H)===W.elements.length-1||W?.type==="ObjectExpression"&&W.properties.indexOf(H)===W.properties.length-1){let $=H.end;while(Q.length){let w=Q[0];if(W&&w.start>=W.end)break;(H.trailingComments||=[]).push(w),Q.shift(),$=w.end}}else if(H.end<=Q[0].start&&/^[,) \t]*$/.test(B))H.trailingComments=[Q.shift()]}}}}),Q.length>0&&(Q[0].start>=Y.end||Y.type==="Program"))(Y.trailingComments||=[]).push(...Q.splice(0))}}}function r9(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,r9(q.indexOf(`
|
|
82
|
+
`,Q)));return t9(Y,Q,Z)}function _Q(q,Q){let Z=t9(q,Q,"/"),Y=t9(q,Q,`
|
|
83
|
+
`);return Z<Y?Z:1/0}function t9(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 f0(q,Q,Z){let Y=y0[Z],H=1,j=Q;while(H>0&&j<q.length){let K=q[j];switch(K){case"'":case'"':case"`":j=gQ(q,j+1,K)+1;continue;case"/":{let X=q[j+1];if(!X){j++;continue}if(X==="/"){j=r9(q.indexOf(`
|
|
84
|
+
`,j+1))+1;continue}if(X==="*"){j=r9(q.indexOf("*/",j+1))+2;continue}let W=_Q(q,j+1)+1;if(W===1/0)j++;else j=W;continue}default:{let X=q[j];if(X===Z)H++;else if(X===Y)H--;if(H===0)return j;j++}}}return}var y0={"{":"}","(":")","[":"]"},uQ=new Set(Object.values(y0));function c1(q,Q,Z=y0){let Y=Z===y0?uQ:new Set(Object.values(Z)),H=[],j=Q;while(j<q.template.length){let K=q.template[j++];if(K==="'"||K==='"'||K==="`"){j=mQ(q,j,K);continue}if(K in Z)H.push(K);else if(Y.has(K)){let X=H.pop(),W=Z[X];if(K!==W)b8(j-1,W);if(H.length===0)return j}}R8(q.template.length)}function mQ(q,Q,Z){let Y=!1,H=Q;while(H<q.template.length){let j=q.template[H++];if(Y){Y=!1;continue}if(j===Z)return H;if(j==="\\")Y=!0;if(Z==="`"&&j==="$"&&q.template[H]==="{")H=c1(q,H)}_5(Q)}function e9(q,Q){let Z=f0(q.template,q.index,Q??"{");if(Z){let Y=q.index;return q.index=Z,{type:"Identifier",start:Y,end:Z,name:""}}}function z8(q,Q,Z){try{let Y=q1(q,q.template,q.index),H=Y.end,j=q.root.comments.at(-1);if(j&&j.end>H)H=j.end;return q.index=H,$1(Y)}catch(Y){if(q.loose&&!Z){let H=e9(q,Q);if(H)return H}throw Y}}function q6(q=[]){return{type:"ArrayExpression",elements:q}}function lQ(q,Q){return{type:"UnaryExpression",argument:Q,operator:q,prefix:!0}}var $K=lQ("void",d1(0));function d1(q){return{type:"Literal",value:q}}var cQ=d1(!0),MK=d1(!1),wK=d1(null);function l5(q){return Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="Text"}function Z6(q){return q.value!==!0&&!Array.isArray(q.value)||Array.isArray(q.value)&&q.value.length===1&&q.value[0].type==="ExpressionTag"}function Y6(q){return Array.isArray(q.value)?q.value[0].expression:q.value.expression}var dQ=/<\/script\s*>/,iQ=/<\/script\s*>/y,pQ=["server","client","worker","test","default"],oQ=["context","generics","lang","module"];function c5(q,Q,Z){let Y=q.index,H=q.read_until(dQ);if(q.index>=q.template.length)T0(q.template.length,"script");let j=q.template.slice(0,Y).replace(X0," ")+H;q.read(iQ);let K=u5(j,q.root.comments,q.ts,!0);if(K.start=Y,K.loc)({line:K.loc.start.line,column:K.loc.start.column}=W8(Q)),{line:K.loc.end.line,column:K.loc.end.column}=W8(q.index);let X="default";for(let W of Z){if(pQ.includes(W.name))C5(W,W.name);if(!oQ.includes(W.name))n7(W);if(W.name==="module"){if(W.value!==!0)A5(W,W.name);X="module"}if(W.name==="context"){if(W.value===!0||!l5(W))i9(W);if(W.value[0].data!=="module")i9(W);X="module"}}return{type:"Script",start:Q,end:q.index,context:X,content:K,attributes:Z}}var sQ=/[~^$*|]?=/y,nQ=/[\s\]]/,aQ=/[a-zA-Z]+/y,p5=/(\+|~|>|\|\|)/y,d5=/\d+(\.\d+)?%/y,i5=/(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;q.css_comments=[];let H=YZ(q,(K)=>K.match("</style")||K.index>=K.template.length),j=q.index;return q.eat("</style",!0),q.read(/\s*>/y),{type:"StyleSheet",start:Q,end:q.index,attributes:Z,children:H,comments:q.css_comments,content:{start:Y,end:j,styles:q.template.slice(Y,j),comment:null}}}function YZ(q,Q){let Z=[];while(M1(q),!Q(q))if(q.match("@"))Z.push(o5(q));else Z.push(s5(q));return Z}function o5(q){let Q=q.index;q.eat("@",!0);let Z=o8(q),Y=K6(q),H=null;if(q.match("{"))H=n5(q);else q.eat(";",!0);return{type:"Atrule",start:Q,end:q.index,name:Z,prelude:Y,block:H}}function s5(q){let Q=q.index;return{type:"Rule",prelude:H6(q),block:n5(q),start:Q,end:q.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function H6(q,Q=!1){let Z=[];M1(q);let Y=q.index;while(q.index<q.template.length){Z.push(HZ(q,Q));let H=q.index;if(M1(q),Q?q.match(")"):q.match("{"))return{type:"SelectorList",start:Y,end:H,children:Z};else q.eat(",",!0),M1(q)}R8(q.template.length)}function HZ(q,Q=!1){let Z=q.index,Y=[];function H(K,X){return{type:"RelativeSelector",combinator:K,selectors:[],start:X,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let j=H(null,q.index);while(q.index<q.template.length){let K=q.index;if(q.eat("&"))j.selectors.push({type:"NestingSelector",name:"&",start:K,end:q.index});else if(q.eat("*")){let B="*";if(q.eat("|"))B=o8(q);j.selectors.push({type:"TypeSelector",name:B,start:K,end:q.index})}else if(q.eat("#"))j.selectors.push({type:"IdSelector",name:o8(q),start:K,end:q.index});else if(q.eat("."))j.selectors.push({type:"ClassSelector",name:o8(q),start:K,end:q.index});else if(q.eat("::")){let B=o8(q),U=null;if(q.eat("("))U=H6(q,!0),q.eat(")",!0);j.selectors.push({type:"PseudoElementSelector",name:B,start:K,end:q.index,...U&&{args:U}})}else if(q.eat(":")){let B=o8(q),U=null;if(q.eat("("))U=H6(q,!0),q.eat(")",!0);j.selectors.push({type:"PseudoClassSelector",name:B,args:U,start:K,end:q.index})}else if(q.eat("[")){q.allow_whitespace();let B=o8(q);q.allow_whitespace();let U=null,$=q.read(sQ);if($)q.allow_whitespace(),U=VZ(q);q.allow_whitespace();let w=q.read(aQ);q.allow_whitespace(),q.eat("]",!0),j.selectors.push({type:"AttributeSelector",start:K,end:q.index,name:B,matcher:$,value:U,flags:w})}else if(Q&&q.match_regex(i5))j.selectors.push({type:"Nth",value:q.read(i5),start:K,end:q.index});else if(q.match_regex(d5))j.selectors.push({type:"Percentage",value:q.read(d5),start:K,end:q.index});else if(!q.match_regex(p5)){let B=o8(q);if(q.eat("|"))B=o8(q);j.selectors.push({type:"TypeSelector",name:B,start:K,end:q.index})}let X=q.index;if(M1(q,!1),q.match(",")||(Q?q.match(")"):q.match("{")))return q.index=X,j.end=X,Y.push(j),{type:"ComplexSelector",start:Z,end:X,children:Y,metadata:{rule:null,is_global:!1,used:!1}};q.index=X;let W=JZ(q);if(W){if(j.selectors.length>0)j.end=X,Y.push(j);if(j=H(W,W.start),q.allow_whitespace(),q.match(",")||(Q?q.match(")"):q.match("{")))Z5(q.index)}}R8(q.template.length)}function JZ(q){let Q=q.index;q.allow_whitespace();let Z=q.index,Y=q.read(p5);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 n5(q){let Q=q.index;q.eat("{",!0);let Z=[];while(q.index<q.template.length)if(M1(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 o5(q);let Q=q.index;K6(q,!1);let Z=q.template[q.index];return q.index=Q,Z==="{"?s5(q):jZ(q)}function jZ(q){let Q=q.index,Z=q.read_until(rQ);q.allow_whitespace(),q.eat(":");let Y=q.index;q.allow_whitespace();let H=K6(q);if(!H&&!Z.startsWith("--"))Q5({start:Q,end:Y});let j=q.index;if(!q.match("}"))q.eat(";",!0);return{type:"Declaration",start:Q,end:j,property:Z,value:H}}function K6(q,Q=!0){let Z="",Y=[],H=!1,j=!1,K=null;while(q.index<q.template.length){let X=q.template[q.index];if(H){Z+="\\"+X,H=!1,q.index++;continue}else if(X==="\\"){H=!0,q.index++;continue}else if(X===K)K=null;else if(X===")")j=!1;else if(K===null&&(X==='"'||X==="'"))K=X;else if(X==="("&&Z.slice(-3)==="url")j=!0;else if((X===";"||X==="{"||X==="}")&&!j&&!K){let W=Z.length-Z.trimStart().length;for(let B of Y)B.position=Math.max(0,B.position-W);return Z.trim()}else if(X==="/"&&!j&&!K&&q.template[q.index+1]==="*"){let W=a5(q);if(Q)W.position=Z.length,q.css_comments.push(W),Y.push(W);continue}Z+=X,q.index++}R8(q.template.length)}function VZ(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:nQ.test(H)){if(Y)q.eat(Y,!0);return Q.trim()}else Q+=H;q.index++}R8(q.template.length)}function o8(q){let Q=q.index,Z="";if(q.match_regex(tQ))x9(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==="")x9(Q);return Z}function M1(q,Q=!0){q.allow_whitespace();while(q.match("/*")||q.match("<!--")){if(q.match("/*")){let Z=a5(q);if(Q)q.css_comments.push(Z)}if(q.eat("<!--"))q.read_until(ZZ),q.eat("-->",!0);q.allow_whitespace()}}function a5(q){let Q=q.index;q.eat("/*",!0);let Z=q.read_until(QZ);q.eat("*/",!0);let Y=q.index;return{type:"CSSComment",value:Z,start:Q,end:Y}}var j6={"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 t5(q){let Z=Object.keys(j6).map((H)=>WZ(H,q));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${Z.join("|")})`,"g")}var zZ=t5(!1),UZ=t5(!0);function i1(q,Q){let Z=Q?UZ:zZ;return q.replace(Z,(Y,H)=>{let j;if(H[0]!=="#")j=j6[H];else if(H[1]==="x")j=parseInt(H.substring(2),16);else j=parseInt(H.substring(1),10);if(!j)return Y;return String.fromCodePoint(GZ(j))})}var r5=0;function GZ(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 r5;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 r5}function X8(q=!1){return{type:"Fragment",nodes:[],metadata:{transparent:q,dynamic:!1}}}var OZ=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function e5(q){return OZ.includes(q.type)}function g0(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 H8{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 q6([...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 q4={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 Q4(q,Q){let Z=q4[q];if(Z){if(!Q||("direct"in Z?Z.direct:Z.descendant).includes(Q))return!0}return!1}var mK={...q4,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 Z4(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 BZ=/(\/>|[\s"'=<>`])/y,V6=/<\/textarea(\s[^>]*)?>/iy,FZ=/-->/,Y4=/(\s|\/|>)/,J4=/[\s=/>"']/,K4=/["']/y,RZ=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,$Z=/^![a-zA-Z]+$/,MZ=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function wZ(q){if($Z.test(q))return!0;if(MZ.test(q))return!0;return u7.test(q)}var H4=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,j4=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),_0=new Map([...j4,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function X6(q){let Q=q.index++,Z=q.current();if(q.eat("!--")){let R=q.read_until(FZ);q.eat("-->",!0),q.append({type:"Comment",start:Q,end:q.index,data:R});return}if(q.eat("/")){let R=q.read_until(Y4);if(q.allow_whitespace(),q.eat(">",!0),F9(R))x5(Q);while(Z.name!==R){if(q.loose){if(e5(Z)){let I=Z.attributes.at(-1);if(I?.type==="Attribute"&&I.name===`<${R}`){q.index=I.start,Z.attributes.pop();break}}}if(Z.type==="RegularElement"){if(!q.last_auto_closed_tag||q.last_auto_closed_tag.tag!==R){let I=Z.fragment.nodes[0]?.start??Q;A9({start:Z.start,end:I},`</${R}>`,`</${Z.name}>`)}}else if(!q.loose)if(q.last_auto_closed_tag&&q.last_auto_closed_tag.tag===R)O5(Q,R,q.last_auto_closed_tag.reason);else G5(Q,R);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=W6(q,Y4);if(Y.name.startsWith("svelte:")&&!_0.has(Y.name)){let R={start:Q+1,end:Q+1+Y.name.length};N5(R,Z4(Array.from(_0.keys())))}if(!wZ(Y.name)&&!H4.test(Y.name)){if(!q.loose||!Y.name.endsWith(".")){let R={start:Q+1,end:Q+1+Y.name.length};y5(R)}}if(j4.has(Y.name)){if(Y.name in q.meta_tags)P5(Q,Y.name);if(Z.type!=="Root")k5(Q,Y.name);q.meta_tags[Y.name]=!0}let H=_0.has(Y.name)?_0.get(Y.name):H4.test(Y.name)||q.loose&&Y.name.endsWith(".")?"Component":Y.name==="title"&&AZ(q.stack)?"TitleElement":Y.name==="slot"&&!CZ(q.stack)?"SlotElement":"RegularElement",j=H==="RegularElement"?{type:H,start:Q,end:-1,name:Y.name,name_loc:Y.loc,attributes:[],fragment:X8(!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:X8(!0),metadata:{}};if(q.allow_whitespace(),Z.type==="RegularElement"&&Q4(Z.name,Y.name)){let R=Z.fragment.nodes[0]?.start??Q;A9({start:Z.start,end:R},`<${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=[],X=q.current(),W=(Y.name==="script"||Y.name==="style")&&X.type==="Root",B=W?LZ:IZ,U;while(U=B(q)){if(U.type==="Attribute"||U.type==="BindDirective"||U.type==="StyleDirective"||U.type==="ClassDirective"){let R=U.type==="BindDirective"?"Attribute":U.type;if(K.includes(R+U.name))Y5(U);else if(U.name!=="this")K.push(R+U.name)}j.attributes.push(U),q.allow_whitespace()}if(j.type==="Component")j.metadata.expression=new H8;if(j.type==="SvelteComponent"){let R=j.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(R===-1)S5(Q);let I=j.attributes.splice(R,1)[0];if(!Z6(I))I5(I.start);j.expression=Y6(I),j.metadata.expression=new H8}if(j.type==="SvelteElement"){let R=j.attributes.findIndex((D)=>D.type==="Attribute"&&D.name==="this");if(R===-1)p9(Q);let I=j.attributes.splice(R,1)[0];if(I.value===!0)p9(I);if(!Z6(I)){a7(I);let D=I.value[0];j.tag=D.type==="Text"?{type:"Literal",value:D.data,raw:`'${D.raw}'`,start:D.start,end:D.end}:D.expression}else j.tag=Y6(I);j.metadata.expression=new H8}if(W){q.eat(">",!0);let R=null;for(let I=X.fragment.nodes.length-1;I>=0;I--){let D=X.fragment.nodes[I];if(I===X.fragment.nodes.length-1&&D.end!==Q)break;if(D.type==="Comment"){R=D;break}else if(D.type!=="Text"||D.data.trim())break}if(Y.name==="script"){let I=c5(q,Q,j.attributes);if(R)I.content.leadingComments=[{type:"Line",value:R.data}];if(I.context==="module"){if(X.module)d9(Q);X.module=I}else{if(X.instance)d9(Q);X.instance=I}}else{let I=J6(q,Q,j.attributes);if(I.content.comment=R,X.css)L5(Q);X.css=I}return}q.append(j);let $=q.eat("/")||F9(Y.name),w=q.eat(">",!0,!1);if(!w){let R=j.attributes.at(-1);if(R?.type==="Attribute"&&R.name==="<")q.index=R.start,j.attributes.pop();else{let I=q.template[q.index-1],D=q.template[q.index-2],L=q.template[q.index];if(D==="{"&&I==="/")q.index-=2;else if(I==="{"&&(L==="#"||L==="@"||L===":"))q.index-=1;else q.allow_whitespace()}}if($||!w)j.end=q.index;else if(Y.name==="textarea")j.fragment.nodes=V4(q,()=>{return V6.lastIndex=q.index,V6.test(q.template)},"inside <textarea>"),q.read(V6),j.end=q.index;else if(Y.name==="script"||Y.name==="style"){let R=q.index,I=`</${Y.name}>`,D=q.template.indexOf(I,q.index),L=q.template.slice(q.index,D===-1?q.template.length:D);q.index=D===-1?q.template.length:D;let b=q.index,x={start:R,end:b,type:"Text",data:L,raw:L};j.fragment.nodes.push(x),q.eat(`</${Y.name}>`,!0),j.end=q.index}else q.stack.push(j),q.fragments.push(j.fragment)}function AZ(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 LZ(q){let Q=q.index,Z=W6(q,J4);if(!Z.name)return null;let Y=!0;if(q.eat("=")){q.allow_whitespace();let H=q.match_regex(RZ);if(!H)l9(q.index);q.index+=H.length;let j=H[0]==='"'||H[0]==="'";if(j)H=H.slice(1,-1);Y=[{start:q.index-H.length-(j?1:0),end:j?q.index-1:q.index,type:"Text",raw:H,data:i1(H,!0)}]}if(q.match_regex(K4))b8(q.index,"=");return g0(Z.name,Z.loc,Q,q.index,Y)}function IZ(q){let Q=null;while(Q=SZ(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=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"AttachTag",start:Z,end:q.index,expression:W,metadata:{expression:new H8}}}if(q.eat("...")){let W=z8(q);return q.allow_whitespace(),q.eat("}",!0),{type:"SpreadAttribute",start:Z,end:q.index,expression:W,metadata:{expression:new H8}}}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 H5(Z);q.allow_whitespace(),q.eat("}",!0);let B={type:"ExpressionTag",start:W.start,end:W.end,expression:W,metadata:{expression:new H8}};return g0(W.name,W.loc,Z,q.index,B)}}let Y=W6(q,J4);if(!Y.name)return null;let H=q.index;q.allow_whitespace();let j=Y.name.indexOf(":"),K=j!==-1&&PZ(Y.name.slice(0,j)),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:"/"}],H=q.index}else X=DZ(q),H=q.index;else if(q.match_regex(K4))b8(q.index,"=");if(K){let[W,...B]=Y.name.slice(j+1).split("|");if(W==="")U5({start:Z,end:Z+j+1},Y.name);if(K==="StyleDirective")return{start:Z,end:H,type:K,name:W,name_loc:Y.loc,modifiers:B,value:X,metadata:{expression:new H8}};let U=X===!0?void 0:Array.isArray(X)?X[0]:X,$=null;if(U)if(X.length>1||U.type==="Text")z5(U.start);else $=U.expression;let w={start:Z,end:H,type:K,name:W,name_loc:Y.loc,expression:$,metadata:{expression:new H8}};if(w.modifiers=B,w.type==="TransitionDirective"){let R=Y.name.slice(0,j);w.intro=R==="in"||R==="transition",w.outro=R==="out"||R==="transition"}if((w.type==="BindDirective"||w.type==="ClassDirective")&&!w.expression)w.expression={start:Z+j+1,end:H,type:"Identifier",name:w.name};return w}return g0(Y.name,Y.loc,Z,H,X)}function SZ(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:W8(Q),end:W8(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:W8(Q),end:W8(Y)}}}return null}function PZ(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=V4(q,()=>{if(Q)return q.match(Q);return!!q.match_regex(BZ)},"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,b8(H,Q||"}")}throw Y}if(Z.length===0&&!Q)l9(q.index);if(Q)q.index+=1;if(Q||Z.length>1||Z[0].type==="Text")return Z;else return Z[0]}function V4(q,Q,Z){let Y={start:q.index,end:-1,type:"Text",raw:"",data:""},H=[];function j(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 j(q.index),H;else if(q.eat("{")){if(q.match("#")){let B=q.index-1;q.eat("#");let U=q.read_until(/[^a-z]/);j5(B,U,Z)}else if(q.match("@")){let B=q.index-1;q.eat("@");let U=q.read_until(/[^a-z]/);f5(B,U,Z)}j(q.index-1),q.allow_whitespace();let X=z8(q);q.allow_whitespace(),q.eat("}",!0);let W={type:"ExpressionTag",start:K,end:q.index,expression:X,metadata:{expression:new H8}};H.push(W),Y={start:q.index,end:-1,type:"Text",raw:"",data:""}}else q.index++}if(q.loose)return H;else R8(q.template.length)}function W6(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:W8(Z),end:W8(H)}}}function f8(q){let{index:Q,index:Z}=q,Y=q.read_identifier();if(Y.name!==""){let B=X4(q);return{...Y,typeAnnotation:B}}let H=q.template[Z];if(H!=="{"&&H!=="[")F5(Z);Z=c1(q,Q),q.index=Z;let j=q.template.slice(Q,Z),K=q.template.slice(0,Q).replace(X0," "),X=K.indexOf(" ");K=K.slice(0,X)+K.slice(X+1);let W=$1(q1(q,`${K}(${j} = 1)`,Q-1));if(W=W.left,W.typeAnnotation=X4(q),W.typeAnnotation)W.end=W.typeAnnotation.end;return W}function X4(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,":"),j=$1(q1(q,H,Y));if(j.type==="AssignmentExpression"){let K=j.right.start;while(H[K]!=="=")K-=1;j=$1(q1(q,H.slice(0,K),Y))}if(j.type==="SequenceExpression")j=j.expressions[0];return q.index=j.end,{type:"TSTypeAnnotation",start:Q,end:q.index,typeAnnotation:j.typeAnnotation}}var z6=/\s*}/y,kZ=/(?:let|const)\b/y,NZ=/(?:var|interface|enum)\b/y,bZ=/type\b/y,TZ={"<":">"};function G6(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 yZ(q);if(q.match("/")){if(!q.match("/*")&&!q.match("//"))return q.eat("/"),U6(q)}let Z=EZ(q);if(Z){q.append({type:"DeclarationTag",start:Q,end:q.index,declaration:Z,metadata:{expression:new H8}});return}let Y=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"ExpressionTag",start:Q,end:q.index,expression:Y,metadata:{expression:new H8}})}function EZ(q){let Q=q.index,Z=q.match_regex(NZ);if(Z)b0({start:Q,end:Q+Z.length});if(!q.match_regex(kZ)&&!q.match_regex(bZ))return null;let Y=q.root.comments.length,H;try{H=m5(q,q.template,Q)}catch(j){if(!q.loose)throw j;let K=f0(q.template,Q,"{");if(K===void 0)throw j;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 b0({start:H.start??Q,end:H.end??q.index});if(H.kind!=="let"&&H.kind!=="const")b0(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:z8(q),consequent:X8(),alternate:null,metadata:{expression:new H8}});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=z8(q,void 0,!0)}catch(U){Y=U.position[0]-2;while(Y>Q&&q.template.slice(Y,Y+2)!=="as")Y-=1;if(Y<=Q){if(q.loose){if(H=e9(q),H)break}throw U}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 U=null,$=H.end;if(H=c8(H,null,{TSAsExpression(w,R){if(w.end===H.end)return U=w,$=w.expression.end,w.expression;R.next()}}),H.end=$,U){let w=U.typeAnnotation.start-2;while(q.template.slice(w,w+2)!=="as")w-=1;q.index=w}}let j=null,K,X;if(q.eat("as"))q.require_whitespace(),j=f8(q);else q.index=H.end;if(q.allow_whitespace(),q.eat(",")){if(q.allow_whitespace(),K=q.read_identifier().name,!K)c9(q.index);q.allow_whitespace()}if(q.eat("("))q.allow_whitespace(),X=z8(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 U=q.index;j=f8(q),q.eat("}",!0),H={type:"Identifier",name:"",start:H.start,end:U-4}}else q.eat("}",!0);let B=q.append({type:"EachBlock",start:Q,end:-1,expression:H,body:X8(),context:j,index:K,key:X,metadata:null});q.stack.push(B),q.fragments.push(B.body);return}if(q.eat("await")){q.require_whitespace();let Z=z8(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 H8}});if(q.eat("then")){if(q.match_regex(z6))q.allow_whitespace();else q.require_whitespace(),Y.value=f8(q),q.allow_whitespace();Y.then=X8(),q.fragments.push(Y.then)}else if(q.eat("catch")){if(q.match_regex(z6))q.allow_whitespace();else q.require_whitespace(),Y.error=f8(q),q.allow_whitespace();Y.catch=X8(),q.fragments.push(Y.catch)}else Y.pending=X8(),q.fragments.push(Y.pending);if(!q.eat("}",!0,!1))if(q.template.slice(q.index-6,q.index)===" then "){let j=q.index;Y.value=f8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:j-6},Y.then=Y.pending,Y.pending=null}else if(q.template.slice(q.index-7,q.index)===" catch "){let j=q.index;Y.error=f8(q),q.eat("}",!0),Y.expression={type:"Identifier",name:"",start:Z.start,end:j-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=z8(q);q.allow_whitespace(),q.eat("}",!0);let Y=q.append({type:"KeyBlock",start:Q,end:-1,expression:Z,fragment:X8(),metadata:{expression:new H8}});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)c9(q.index);q.allow_whitespace();let Y=q.index,H;if(q.ts&&q.match("<")){let U=q.index,$=c1(q,U,TZ);H=q.template.slice(U+1,$-1),q.index=$}q.allow_whitespace();let j=q.eat("(",!0,!1);if(j){let U=1;while(q.index<q.template.length&&(!q.match(")")||U!==1)){if(q.match("("))U++;if(q.match(")"))U--;q.index+=1}q.eat(")",!0)}let K=q.template.slice(0,Y).replace(/\S/g," "),X=q.template.slice(Y,q.index),W=j?q1(q,K+`${X} => {}`,Y):{params:[]};q.allow_whitespace(),q.eat("}",!0);let B=q.append({type:"SnippetBlock",start:Q,end:-1,expression:Z,typeParams:H,parameters:W.params,body:X8(),metadata:{can_hoist:!1,sites:new Set}});q.stack.push(B),q.fragments.push(B.body);return}B5(q.index)}function hZ(q){let Q=q.index-1,Z=q.current();if(Z.type==="IfBlock"){if(!q.eat("else"))b8(Q,"{:else} or {:else if}");if(q.eat("if"))K5(Q);if(q.allow_whitespace(),q.fragments.pop(),Z.alternate=X8(),q.fragments.push(Z.alternate),q.eat("if")){q.require_whitespace();let Y=z8(q);q.allow_whitespace(),q.eat("}",!0);let H=Q-1;while(q.template[H]!=="{")H-=1;let j=q.append({start:H,end:-1,type:"IfBlock",elseif:!0,test:Y,consequent:X8(),alternate:null,metadata:{expression:new H8}});q.stack.push(j),q.fragments.pop(),q.fragments.push(j.consequent)}else q.allow_whitespace(),q.eat("}",!0);return}if(Z.type==="EachBlock"){if(!q.eat("else"))b8(Q,"{:else}");q.allow_whitespace(),q.eat("}",!0),Z.fallback=X8(),q.fragments.pop(),q.fragments.push(Z.fallback);return}if(Z.type==="AwaitBlock"){if(q.eat("then")){if(Z.then)u9(Q,"{:then}");if(!q.eat("}"))q.require_whitespace(),Z.value=f8(q),q.allow_whitespace(),q.eat("}",!0);Z.then=X8(),q.fragments.pop(),q.fragments.push(Z.then);return}if(q.eat("catch")){if(Z.catch)u9(Q,"{:catch}");if(!q.eat("}"))q.require_whitespace(),Z.error=f8(q),q.allow_whitespace(),q.eat("}",!0);Z.catch=X8(),q.fragments.pop(),q.fragments.push(Z.catch);return}b8(Q,"{:then ...} or {:catch ...}")}J5(Q)}function U6(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(),U6(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 m9(Q);break;default:m9(Q)}if(!Y){Z.end=Q-1,q.pop(),U6(q);return}q.allow_whitespace(),q.eat("}",!0),Z.end=q.index,q.pop()}function yZ(q){let Q=q.index;while(q.template[Q]!=="{")Q-=1;if(q.eat("html")){q.require_whitespace();let Z=z8(q);q.allow_whitespace(),q.eat("}",!0),q.append({type:"HtmlTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8}});return}if(q.eat("debug")){let Z;if(q.read(z6))Z=[];else{let Y=z8(q);Z=Y.type==="SequenceExpression"?Y.expressions:[Y],Z.forEach((H)=>{if(H.type!=="Identifier")W5(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=f8(q);q.allow_whitespace(),q.eat("=",!0),q.allow_whitespace();let Y=q.index,H=z8(q),j=q.index;if(H.type==="SequenceExpression"&&!q.template.substring(Y,H.start).includes("("))X5(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:j}],start:Q+2,end:q.index-1},metadata:{expression:new H8}});return}if(q.eat("render")){q.require_whitespace();let Z=z8(q);if(Z.type!=="CallExpression"&&(Z.type!=="ChainExpression"||Z.expression.type!=="CallExpression"))w5(Z);q.allow_whitespace(),q.eat("}",!0),q.append({type:"RenderTag",start:Q,end:q.index,expression:Z,metadata:{expression:new H8,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}R5(q.index)}function O6(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 p1(q){if(q.match("<"))return X6;if(q.match("{"))return G6;return O6}function B6(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")T5(Z);let{name:Y}=Z;switch(Y){case"runes":{Q.runes=x0(Z);break}case"tag":{b5(Z);break}case"customElement":{let H={},{value:j}=Z,K=j===!0||Array.isArray(j)?j:[j];if(K===!0)v0(Z);else if(K[0].type==="Text"){let w=u0(Z);z4(Z,w),H.tag=w,Q.customElement=H;break}else if(K[0].expression.type!=="ObjectExpression"){if(K[0].expression.type==="Literal"&&K[0].expression.value===null)break;v0(Z)}let X=[];for(let w of K[0].expression.properties){if(w.type!=="Property"||w.computed||w.key.type!=="Identifier")v0(Z);X.push([w.key.name,w.value])}let W=X.find(([w])=>w==="tag");if(W){let w=W[1]?.value;z4(W,w),H.tag=w}let B=X.find(([w])=>w==="props")?.[1];if(B){if(B.type!=="ObjectExpression")e8(Z);H.props={};for(let w of B.properties){if(w.type!=="Property"||w.computed||w.key.type!=="Identifier"||w.value.type!=="ObjectExpression")e8(Z);H.props[w.key.name]={};for(let R of w.value.properties){if(R.type!=="Property"||R.computed||R.key.type!=="Identifier"||R.value.type!=="Literal")e8(Z);if(R.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(R.value.value)===-1)e8(Z);H.props[w.key.name].type=R.value.value}else if(R.key.name==="reflect"){if(typeof R.value.value!=="boolean")e8(Z);H.props[w.key.name].reflect=R.value.value}else if(R.key.name==="attribute"){if(typeof R.value.value!=="string")e8(Z);H.props[w.key.name].attribute=R.value.value}else e8(Z)}}}let U=X.find(([w])=>w==="shadow")?.[1];if(U)if(U.type==="Literal"&&(U.value==="open"||U.value==="none"))H.shadow=U.value;else if(U.type==="ObjectExpression")H.shadow=U;else E5(Z);let $=X.find(([w])=>w==="extend")?.[1];if($)H.extend=$;Q.customElement=H;break}case"namespace":{let H=u0(Z);if(H===E7)Q.namespace="svg";else if(H===v7)Q.namespace="mathml";else if(H==="html"||H==="mathml"||H==="svg")Q.namespace=H;else E0(Z,'"html", "mathml" or "svg"');break}case"css":{let H=u0(Z);if(H==="injected")Q.css=H;else E0(Z,'"injected"');break}case"immutable":{Q.immutable=x0(Z);break}case"preserveWhitespace":{Q.preserveWhitespace=x0(Z);break}case"accessors":{Q.accessors=x0(Z);break}default:h5(Z,Y)}}return Q}function u0(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 x0(q){let Q=u0(q);if(typeof Q!=="boolean")E0(q,"true or false");return Q}var W4="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",fZ=new RegExp(`^[a-z]${W4}*-${W4}*$`,"u"),gZ=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function z4(q,Q){if(typeof Q!=="string")o9(q);if(Q){if(!fZ.test(Q))o9(q);else if(gZ.includes(Q))v5(q)}}function U4(q){let{nodes:Q}=q.fragment;if(Q.length>0){let Z=Q[0],Y=Q[Q.length-1];D5({start:Z.start,end:Y.end},q.name)}}function G4(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 O4=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class F6{template;loose;index=0;css_comments=[];static forCss(q){let Q=Object.create(F6.prototype);return Q.template=q,Q.index=0,Q.loose=!1,Q.css_comments=[],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=O4.exec(q);while(Z&&Z[0][1]!=="s");O4.lastIndex=0,this.ts=Z?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:X8(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let Y=p1;while(this.index<this.template.length)Y=Y(this)||p1;if(this.stack.length>1){let j=this.current();if(this.loose)j.end=this.template.length;else if(j.type==="RegularElement")j.end=j.start+1,T0(j,j.name);else j.end=j.start+1,V5(j)}if(Y!==p1)R8(this.index);this.root.start=0,this.root.end=q.length;let H=this.root.fragment.nodes.findIndex((j)=>j.type==="SvelteOptions");if(H!==-1){let j=this.root.fragment.nodes[H];this.root.fragment.nodes.splice(H,1),this.root.options=B6(j),U4(j),Object.defineProperty(this.root.options,"__raw__",{value:j,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))b8(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&&G4(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($8(Y,!0)){let H=this.index;Q+=Y<=65535?1:2;while(Q<this.template.length){let j=this.template.codePointAt(Q);if(!h8(j,!0))break;Q+=j<=65535?1:2}if(Z=this.template.slice(q,Q),this.index=Q,x7(Z))g5(q,Z)}return{type:"Identifier",name:Z,start:q,end:Q,loc:{start:W8(q),end:W8(Q)}}}read_until(q){if(this.index>=this.template.length){if(this.loose)return"";R8(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(!G4(this.template.charCodeAt(this.index)))$5(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 B4(q,Q=!1){return m7(q),new F6(q,Q).root}function _Z(q){return q.charCodeAt(0)===65279?q.slice(1):q}function R6(q){delete q.metadata}function $6(q){if(!q||typeof q!=="object"||typeof q.type!=="string")return;R6(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)$6(Y);else $6(Z)}}function xZ(q,Q,Z){if(Z){for(let Y of Q.options?.attributes??[])if(R6(Y),Y.value)for(let H of Array.isArray(Y.value)?Y.value:[Y.value])R6(H);return $6(Q),Q}return e7(q,Q)}function F4(q,{loose:Q}={}){let Z=_Z(q);c7({warning:()=>!1,filename:void 0});let Y=B4(Z,Q);return{modern:Y,intoLegacy:()=>xZ(Z,Y,!1)}}function R4(q){if(q==="var")return"let";if(q==="using"||q==="await using")return"const";return q}var uZ=null,$4=/^@component/,mZ=/\r/g,lZ=/^\{\s*\}$/;class U8{ctx=t0();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(U8.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=K8(this.ctx,Q),Y=q.instance?.attributes?.find((K)=>K.name==="lang");if((Y?U8.getStaticAttributeValue(Y)?.toLowerCase():void 0)!=="ts"){l8(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',Z);return}let j=U8.getStaticAttributeValue(Q);if(!j)return;return{value:j,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(_8(q))return q.name;if(H1(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 a8(this.ctx,this,Z);let Q=this.ctx.funcDecls.get(q);if(Q)return a8(this.ctx,this,Q);return}addModuleExport(q,Q){if(C8(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=k7(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=t0()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(q){return U8.SCRIPT_BLOCK_REGEX.lastIndex=0,q.replace(U8.SCRIPT_BLOCK_REGEX,(Q,Z,Y,H)=>{U8.TS_DIRECTIVE_REGEX.lastIndex=0;let j=Y.replace(U8.TS_DIRECTIVE_REGEX,"");return Z+j+H})}parseSvelteComponent(q,Q){this.cleanup(),this.ctx.componentFilePath=Q.filePath;let Z=U8.stripTypeScriptDirectivesFromScripts(q);this.ctx.source=Z;let{modern:Y,intoLegacy:H}=F4(Z);if(A7(this,this.ctx,Y),this.ctx.parsed=H(),this.ctx.scriptLanguage==="ts")j0(this.ctx.parsed.module),j0(this.ctx.parsed.instance),j0(this.ctx.parsed.html);this.ctx.syntaxMode=w7(this.ctx);let j=this.ctx.parsed.css,K=j?.start!==void 0&&j?.end!==void 0?Z.slice(0,j.start)+" ".repeat(j.end-j.start)+Z.slice(j.end):Z;U7(this.ctx,this,K);let X={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};if(z9(this.ctx,this.ctx.parsed?.module),z9(this.ctx,this.ctx.parsed?.instance),this.ctx.parsed?.module)E8(this.ctx.parsed?.module,{enter:(J)=>{if(J.type==="ImportDeclaration")V0(this.ctx,J);if(J.type==="FunctionDeclaration"){let V=J;if(V.id?.name)this.ctx.funcDecls.set(V.id.name,V)}if(J.type==="VariableDeclaration")this.ctx.vars.add(J);if(J.type==="ExportNamedDeclaration"){if(J.declaration==null)return;if(!J.declaration||typeof J.declaration!=="object"||!("type"in J.declaration))return;let V,z,O=!1,F,M,A,P=!1,S,C,N;if(J.declaration.type==="FunctionDeclaration"){let c=J.declaration;if(!c.id?.name)return;V=c.id.name,z="function",F=void 0,M="() => any",P=!0,O=!0}else if(J.declaration.type==="VariableDeclaration"){let c=J.declaration,J8=c.declarations[0];if(!J8||typeof J8!=="object"||!("id"in J8))return;let{id:w8,init:Q8}=J8;if(!w8||typeof w8!=="object"||!("name"in w8))return;let A8=w8.name;V=A8,z=R4(c.kind);let Y8=Q8==null?{isFunction:!1}:n8(this,this.ctx,Q8);if({value:F,type:M,isFunction:P,defaultValue:S}=Y8,C=M,N=Y8,A=this.getExplicitPropType(A8),N.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:A8,location:"moduleExports",...N.pendingCallDefault})}else return;let k=a8(this.ctx,this,J),{type:y,typeSource:u,description:l,params:s,returnType:_,isFunction:p}=N1({explicitType:A,typeSeed:M,inferredTypeForSource:C,jsdocType:k?.type,jsdocDescription:k?.description,jsdocParams:k?.params,jsdocReturnType:k?.returnType,resolvedType:N?.resolvedType,resolvedDescription:N?.resolvedDescription,resolvedParams:N?.resolvedParams,resolvedReturnType:N?.resolvedReturnType,initializerIsFunction:P,isFunctionDeclaration:O,typedefs:this.ctx.typedefs});this.addModuleExport(V,{name:V,kind:z,description:l,deprecated:k?.deprecated,tags:k?.tags,type:y,typeSource:u,value:F,defaultValue:S,params:s,returnType:_,isFunction:p,isFunctionDeclaration:O,isRequired:!1,constant:z==="const",reactive:!1,source:K8(this.ctx,J)})}}});let W,B=new Set,U=new Set,$=[];B7(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let w=F7(this.ctx);if(E8(X,{enter:(J,V,z)=>{R7(this,this.ctx,w,J);let O=this.ctx.scopeDeclarations.get(J);if(O)this.ctx.activeScopes.push(O);if(J.type==="AssignmentExpression")X9(this.ctx,J.left);if(J.type==="UpdateExpression")X9(this.ctx,J.argument);if(J.type==="CallExpression"){let F=J,M=F.callee&&typeof F.callee==="object"&&"name"in F.callee?F.callee.name:void 0;if(M==="createEventDispatcher"){if(V&&typeof V==="object"&&"id"in V&&V.id&&typeof V.id==="object"&&"name"in V.id)W=V.id.name}if(M==="$host"){if(V&&typeof V==="object"&&"id"in V&&V.id&&typeof V.id==="object"&&"name"in V.id)B.add(V.id.name)}if(M==="setContext")n6(this.ctx,this,J,V??void 0);if(M)$.push({name:M,arguments:F.arguments,source:K8(this.ctx,F)});if(h6(F.callee)&&_8(F.callee.property)&&F.callee.property.name==="dispatchEvent"&&(x8(F.callee.object,"$host")||_8(F.callee.object)&&B.has(F.callee.object.name))){let A=a6(this.ctx,F);if(A)U.add(A)}}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Spread"){let F=J;if(F.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(F.expression?.name??""))G7(this.ctx,V)}if(J.type==="FunctionDeclaration"){let F=J;if(F.id?.name)this.ctx.funcDecls.set(F.id.name,F)}if(J.type==="ImportDeclaration")V0(this.ctx,J);if(J.type==="VariableDeclaration"){if(this.ctx.vars.add(J),V&&typeof V==="object"&&"type"in V&&V.type==="Program"&&J.declarations.some((F)=>x8(s8(F.init),"$props")))C7(this,this.ctx,J)}if(J.type==="ExportNamedDeclaration"){if(J.declaration==null&&J.specifiers.length===0)return;let F;if(J.declaration==null&&J.specifiers[0]?.type==="ExportSpecifier"){let Y8=J.specifiers[0],Z1=Y8.local&&typeof Y8.local==="object"&&"name"in Y8.local?Y8.local.name:void 0,Y1=Y8.exported&&typeof Y8.exported==="object"&&"name"in Y8.exported?Y8.exported.name:void 0;if(!Z1||!Y1)return;let U1;for(let C1 of Array.from(this.ctx.vars))if(C1.declarations.some((m8)=>m8.id&&typeof m8.id==="object"&&("type"in m8.id)&&m8.id.type==="Identifier"&&m8.id.name===Z1)){U1=C1;break}J.declaration=U1,F=Y1}if(J.declaration==null)return;if(!J.declaration||typeof J.declaration!=="object"||!("type"in J.declaration))return;let M,A=!1,P,S,C,N=!1,k=!1,y,u,l,s;if(J.declaration.type==="FunctionDeclaration"){let Y8=J.declaration;if(!Y8.id?.name)return;F??=Y8.id.name,y=Y8.id.name,M="function",P=void 0,S="() => any",N=!0,A=!0,k=!1}else if(J.declaration.type==="VariableDeclaration"){let Y8=J.declaration,Z1=Y8.declarations[0];if(!Z1||typeof Z1!=="object"||!("id"in Z1))return;let{id:Y1,init:U1}=Z1;if(Y1&&typeof Y1==="object"&&"name"in Y1){let m8=Y1.name;y=m8,F??=m8,C=this.getExplicitPropType(m8)}else return;M=R4(Y8.kind),k=M==="let"&&U1==null;let C1=U1==null?{isFunction:!1}:n8(this,this.ctx,U1);if({value:P,type:S,isFunction:N,defaultValue:u}=C1,l=S,s=C1,s.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:F,location:"props",...s.pendingCallDefault})}else return;let _=a8(this.ctx,this,J),{type:p,typeSource:c,description:J8,params:w8,returnType:Q8,isFunction:A8}=N1({explicitType:C,typeSeed:S,inferredTypeForSource:l,jsdocType:_?.type,jsdocDescription:_?.description,jsdocParams:_?.params,jsdocReturnType:_?.returnType,resolvedType:s?.resolvedType,resolvedDescription:s?.resolvedDescription,resolvedParams:s?.resolvedParams,resolvedReturnType:s?.resolvedReturnType,initializerIsFunction:N,isFunctionDeclaration:A,typedefs:this.ctx.typedefs});L1(this,this.ctx,F,{name:F,...y!==void 0&&y!==F?{localName:y}:{},kind:M,description:J8,binding:_?.binding,deprecated:_?.deprecated,tags:_?.tags,type:p,typeSource:c,value:P,defaultValue:u,params:w8,returnType:Q8,isFunction:A8,isFunctionDeclaration:A,isRequired:k,constant:M==="const",reactive:this.ctx.reactive_vars.has(F),source:K8(this.ctx,J)})}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Comment"){let M=J?.data?.trim()??"";if($4.test(M))this.ctx.componentComment=M.replace($4,"").replace(mZ,""),this.ctx.componentCommentSource=K8(this.ctx,J)}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="Slot"){let F=J,M=F.attributes?.find((S)=>S.name==="name")?.value?.[0]?.data,A=(F.attributes||[]).filter((S)=>S.name!=="name").reduce((S,C)=>{let N={value:void 0,replace:!1},k=C.value;if(k===void 0)return S;if(k[0]){let y=k[0],{type:u,expression:l,raw:s,start:_,end:p}=y;if(u==="Text"&&s!==void 0)N.value=JSON.stringify(s);else if(u==="AttributeShorthand"&&l&&typeof l==="object"&&"name"in l)N.value=l.name,N.replace=!0;if(l&&typeof l==="object"&&"type"in l){if(l.type==="Literal"&&"value"in l){let c=l.value;N.value=typeof c==="string"?JSON.stringify(c):String(c)}else if(l.type==="MemberExpression")N.value=q0(this.ctx,this,l);else if(l.type!=="Identifier"){if(_!==void 0&&p!==void 0){if(l.type==="ObjectExpression"||l.type==="TemplateLiteral")N.value=e(this.ctx,_+1,p-1)}}}}if(C.name)S[C.name]=N;return S},{}),P=F.children?.map(({start:S,end:C})=>{if(S===void 0||C===void 0)return"";return e(this.ctx,S,C)??""}).join("").trim();D1(this.ctx,{slot_name:M,slot_props:A,slot_fallback:P,source:K8(this.ctx,J)})}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="RenderTag"){let F=J,M=j7(this.ctx,F.expression);if(M){let A;if(M.arguments.length===0)A={};else if(M.arguments.length===1&&typeof M.arguments[0]==="object"&&M.arguments[0]&&"type"in M.arguments[0]&&M.arguments[0].type==="ObjectExpression")A=K7(this.ctx,this,M.arguments[0]);else if(M.arguments.length===1)l8(this.ctx,"syntax-skipped",M.publicName,`{@render ${M.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,K8(this.ctx,J));let P=M.publicName==="children"?void 0:M.publicName,S=P===void 0?uZ:P;if(A!==void 0)D1(this.ctx,{slot_name:P,slot_props:A,source:K8(this.ctx,J)});if(A!==void 0||this.ctx.slots.has(S))this.ctx.snippetPropLocals.add(M.trackingName)}}if(J&&typeof J==="object"&&"type"in J&&String(J.type)==="EventHandler"){let F=J;if(F.expression==null&&F.name){if(V!=null&&typeof V==="object"&&"name"in V){let M=typeof V.name==="string"?V.name:void 0,A="type"in V?String(V.type):void 0;if(M&&A){let P=A==="InlineComponent"?{type:"InlineComponent",name:M}:{type:"Element",name:M};this.ctx.forwardedEvents.set(F.name,P);let S=this.ctx.events.get(F.name),C=this.ctx.eventDescriptions.get(F.name),N=S?.deprecated;if(!S)this.ctx.events.set(F.name,{type:"forwarded",name:F.name,element:P,description:C,deprecated:N,source:K8(this.ctx,J)});else if(S.type==="forwarded"&&C&&!S.description)this.ctx.events.set(F.name,{...S,description:C,deprecated:S.deprecated??N,source:S.source||K8(this.ctx,J)})}}}}if(V&&typeof V==="object"&&"type"in V&&(String(V.type)==="Element"||String(V.type)==="InlineComponent")&&J&&typeof J==="object"&&"type"in J&&String(J.type)==="Binding"){let F=J;if(F.expression?.name){let M=H0(this.ctx,F.expression.name);if(M)this.ctx.reactive_vars.add(M)}if(String(V.type)==="Element"&&F.name==="this"&&F.expression?.name&&"name"in V&&typeof V.name==="string"){let M=H0(this.ctx,F.expression.name);if(!M)return;let A=V.name;if(this.ctx.bindings.has(M)){let P=this.ctx.bindings.get(M);if(P&&!P.elements.includes(A))this.ctx.bindings.set(M,{...P,elements:[...P.elements,A]})}else this.ctx.bindings.set(M,{elements:[A]})}}},leave:(J)=>{if(this.ctx.scopeDeclarations.has(J))this.ctx.activeScopes.pop();$7(w,J)}}),W!==void 0){for(let J of $)if(J.name===W){let V=J.arguments[0],z=V&&typeof V==="object"&&"value"in V?V.value:void 0,O=J.arguments[1],F=O&&typeof O==="object"&&"value"in O?O.value:void 0;if(z!=null)I1(this.ctx,{name:String(z),detail:F==null?"":Y9(F),has_argument:Boolean(O),source:J.source})}}let R=new Set(U);if(W!==void 0){for(let J of $)if(J.name===W){let V=J.arguments[0],z=V&&typeof V==="object"&&"value"in V?V.value:void 0;if(z!=null)R.add(String(z))}}this.ctx.forwardedEvents.forEach((J,V)=>{let z=this.ctx.events.get(V);if(z&&z.type==="dispatched"&&!R.has(V)){let O=this.ctx.eventDescriptions.get(V),F={type:"forwarded",name:V,element:J,description:O,deprecated:z.deprecated,tags:z.tags,source:z.source};if(z.detail!==void 0&&z.detail!=="undefined")F.detail=z.detail;this.ctx.events.set(V,F)}}),L7(this.ctx,R);let I=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(J)=>this.resolvePublicPropName(J))):new Set,D=U8.mapToArray(this.ctx.props).filter((J)=>!I.has(J.name)).map((J)=>{if(this.ctx.bindings.has(J.name)){let V=this.ctx.bindings.get(J.name)?.elements.sort().map((z)=>g6(z)).join(" | ");return{...J,type:`null | ${V}`,typeSource:"inferred",reactive:J.reactive||this.ctx.reactive_vars.has(J.name)}}return{...J,reactive:J.reactive||this.ctx.reactive_vars.has(J.name)}});this.ctx.activeScopes.length=0;let L=U8.mapToArray(this.ctx.slots).map((J)=>{if(!J.slot_props)return J;if(typeof J.slot_props==="string")return lZ.test(J.slot_props)?{...J,slot_props:"Record<string, never>"}:J;let V=J.slot_props,z=[];for(let F of Object.keys(V)){if(V[F].replace&&V[F].value!==void 0)V[F].value=this.getPropTypeByLocalOrPublic(V[F].value);if(V[F].value===void 0)V[F].value="any";z.push(`${F}: ${V[F].value}`)}let O=z.length===0?"Record<string, never>":z.length===1?`{ ${z[0]} }`:`{
|
|
85
85
|
${z.join(`;
|
|
86
86
|
`)};
|
|
87
87
|
}`;return{...J,slot_props:O}}).sort((J,V)=>{let z=J.name??"",O=V.name??"";if(z<O)return-1;if(z>O)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let J=[...D.map((V)=>V.type??""),...L.map((V)=>V.slot_props??"")].join(`
|
|
88
|
-
`);for(let{name:V,constraint:z}of this.ctx.deferredSlotBlockGenerics){let O=V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${O}\\b`).test(J))continue;this.accumulateGeneric(V,z)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)l8(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=Y7(this.ctx.scriptGenericsAttribute.value)}let b=U8.mapToArray(this.ctx.moduleExports),x=U8.mapToArray(this.ctx.events).map((J)=>{switch(J.type){case"forwarded":return{...J,element:J.element.name};case"dispatched":return J;default:return J}}).sort((J,V)=>{let z=J.name.localeCompare(V.name);if(z!==0)return z;let O=J.type.localeCompare(V.type);if(O!==0)return O;if(J.type==="forwarded"&&V.type==="forwarded"){let F=J.element.localeCompare(V.element);if(F!==0)return F}return(J.detail??"").localeCompare(V.detail??"")}),h=U8.mapToArray(this.ctx.typedefs),n=U8.mapToArray(this.ctx.contexts),g={props:new Map(this.ctx.pendingCallDefaultCandidates.filter((J)=>J.location==="props").map((J)=>[J.propName,J])),moduleExports:new Map(this.ctx.pendingCallDefaultCandidates.filter((J)=>J.location==="moduleExports").map((J)=>[J.propName,J]))};for(let J of D)if(J.typeSource==="unknown"){let V=g.props.get(J.name);if(V)J.type="any";let z=V?V.importSource?`Prop "${J.name}" default calls "${V.calleeName}()" imported from "${V.importSource}"; falling back to "any" pending cross-file resolution.`:`Prop "${J.name}" default calls "${V.calleeName}()", but its return type could not be inferred; falling back to "any".`:`Prop "${J.name}" type could not be inferred; falling back to "${J.type??"any"}".`;l8(this.ctx,"prop-unknown-type",J.name,z,J.source)}for(let J of b)if(J.typeSource==="unknown"&&g.moduleExports.has(J.name))J.type="any";for(let J of this.ctx.jsDocEventNames){if(R.has(J))continue;if(this.ctx.forwardedEvents.has(J))continue;if(this.ctx.props.has(`on${J}`))continue;l8(this.ctx,"event-no-source",J,`@event "${J}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(J))}let t={source:Q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:D,moduleExports:b,slots:L,events:x,typedefs:h,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:n,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},a=Q7(this.ctx);if(a)t[e1]=a;return t}}var
|
|
89
|
-
`&&!
|
|
90
|
-
`)){let B=W.endsWith(";")?W.slice(0,-1):W,U=`{ ${
|
|
88
|
+
`);for(let{name:V,constraint:z}of this.ctx.deferredSlotBlockGenerics){let O=V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${O}\\b`).test(J))continue;this.accumulateGeneric(V,z)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)l8(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=Y7(this.ctx.scriptGenericsAttribute.value)}let b=U8.mapToArray(this.ctx.moduleExports),x=U8.mapToArray(this.ctx.events).map((J)=>{switch(J.type){case"forwarded":return{...J,element:J.element.name};case"dispatched":return J;default:return J}}).sort((J,V)=>{let z=J.name.localeCompare(V.name);if(z!==0)return z;let O=J.type.localeCompare(V.type);if(O!==0)return O;if(J.type==="forwarded"&&V.type==="forwarded"){let F=J.element.localeCompare(V.element);if(F!==0)return F}return(J.detail??"").localeCompare(V.detail??"")}),h=U8.mapToArray(this.ctx.typedefs),n=U8.mapToArray(this.ctx.contexts),g={props:new Map(this.ctx.pendingCallDefaultCandidates.filter((J)=>J.location==="props").map((J)=>[J.propName,J])),moduleExports:new Map(this.ctx.pendingCallDefaultCandidates.filter((J)=>J.location==="moduleExports").map((J)=>[J.propName,J]))};for(let J of D)if(J.typeSource==="unknown"){let V=g.props.get(J.name);if(V)J.type="any";let z=V?V.importSource?`Prop "${J.name}" default calls "${V.calleeName}()" imported from "${V.importSource}"; falling back to "any" pending cross-file resolution.`:`Prop "${J.name}" default calls "${V.calleeName}()", but its return type could not be inferred; falling back to "any".`:`Prop "${J.name}" type could not be inferred; falling back to "${J.type??"any"}".`;l8(this.ctx,"prop-unknown-type",J.name,z,J.source)}for(let J of b)if(J.typeSource==="unknown"&&g.moduleExports.has(J.name))J.type="any";for(let J of this.ctx.jsDocEventNames){if(R.has(J))continue;if(this.ctx.forwardedEvents.has(J))continue;if(this.ctx.props.has(`on${J}`))continue;l8(this.ctx,"event-no-source",J,`@event "${J}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(J))}let t={source:Q0(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:D,moduleExports:b,slots:L,events:x,typedefs:h,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:n,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},a=Q7(this.ctx);if(a)t[e1]=a;return t}}var w4="sveld",A4="0.36.8";var M6="5.56.9";var L4=1,C4=new WeakMap;function o1(q,Q={}){let Z=C4.get(q),Y=Z?.get(Q.entryExports);if(Y)return Y;let H=Array.from(q,([,K])=>{let{diagnostics:X,...W}=K;return W}).sort((K,X)=>K.moduleName.localeCompare(X.moduleName)),j={schemaVersion:L4,generator:{name:w4,version:A4,svelteVersion:M6},total:H.length,components:H};if(Q.entryExports&&Q.entryExports.length>0)j.totalExports=Q.entryExports.length,j.exports=Q.entryExports;if(!Z)Z=new Map,C4.set(q,Z);return Z.set(Q.entryExports,j),j}var S4=/^[}\])>]/,dZ=new Set(["{","(","["]),iZ=new Set(["}",")","]"]);var pZ=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,P4=/[ \t]+$/,oZ=/\s+$/,sZ=/[{([]$/,nZ=/\s/;function aZ(q){return pZ.test(q.slice(-200))}var rZ=200;function tZ(q,Q){let Z="";for(let Y=q.length-1;Y>=0&&Z.length<Q;Y--)Z=q[Y]+Z;return Z.length>Q?Z.slice(-Q):Z}function I4(q,Q){while(q.length>0&&Q.test(q[q.length-1]))q.pop()}function eZ(q){if(q.includes("{"))return!1;let Q=null,Z=0;for(let Y=0;Y<q.length;Y++){let H=q[Y],j=q[Y-1];if(Q){if(Q==="double"&&H==='"'&&j!=="\\"||Q==="single"&&H==="'"&&j!=="\\"||Q==="template"&&H==="`"&&j!=="\\")Q=null;continue}if(H==='"'||H==="'"||H==="`"){Q=H==='"'?"double":H==="'"?"single":"template";continue}if(H===";"&&++Z>=2)return!0}return!1}function qY(q){let Q="",Z=null,Y=!1;for(let H=0;H<q.length;H++){let j=q[H],K=q[H-1];if(Z){if(Q+=j,Z==="double"&&j==='"'&&K!=="\\"||Z==="single"&&j==="'"&&K!=="\\"||Z==="template"&&j==="`"&&K!=="\\")Z=null;Y=!1;continue}if(j==='"'||j==="'"||j==="`"){Z=j==='"'?"double":j==="'"?"single":"template",Q+=j,Y=!1;continue}if(nZ.test(j)){if(!Y&&Q.length>0)Q+=" ",Y=!0;continue}Q+=j,Y=!1}return Q.trimEnd()}function QY(q,Q){let Z=0,Y="normal";for(let H=Q;H<q.length;H++){let j=q[H],K=q[H-1];if(Y==="blockComment"){if(K==="*"&&j==="/")Y="normal";continue}if(Y==="double"||Y==="single"){if(j===(Y==="double"?'"':"'")&&K!=="\\")Y="normal";continue}if(Y==="template"){if(j==="`"&&K!=="\\")Y="normal";continue}if(j==="/"&&q[H+1]==="*")Y="blockComment";else if(j==='"')Y="double";else if(j==="'")Y="single";else if(j==="`")Y="template";else if(j==="{")Z++;else if(j==="}"){if(Z--,Z===0)return H}}return-1}function D4(q){let Q=[],Z="normal";for(let Y=0;Y<q.length;Y++){let H=q[Y],j=q[Y-1];if(Z==="blockComment"){if(Q.push(H),j==="*"&&H==="/")Z="normal";continue}if(Z==="double"||Z==="single"){if(Q.push(H),H===(Z==="double"?'"':"'")&&j!=="\\")Z="normal";continue}if(Z==="template"){if(Q.push(H),H==="`"&&j!=="\\")Z="normal";continue}if(H==="/"&&q[Y+1]==="*"){Z="blockComment",Q.push(H);continue}if(H==='"'){Z="double",Q.push(H);continue}if(H==="'"){Z="single",Q.push(H);continue}if(H==="`"){Z="template",Q.push(H);continue}if(H==="{"){let K=QY(q,Y);if(K===-1){Q.push(H);continue}let X=q.slice(Y+1,K);if(X.trim()===""){Q.push("{}"),Y=K;continue}if(!X.includes("/*")&&q[Y+1]!==`
|
|
89
|
+
`&&!eZ(X)&&!aZ(tZ(Q,rZ))){let W=D4(X).trim();if(!W.includes(`
|
|
90
|
+
`)){let B=W.endsWith(";")?W.slice(0,-1):W,U=`{ ${qY(B)} }`;if(U.length<=120){Q.push(U),Y=K;continue}}}if(Q.push(H),q[Y+1]!==`
|
|
91
91
|
`)Q.push(`
|
|
92
|
-
`);continue}if(H==="}"){if(
|
|
92
|
+
`);continue}if(H==="}"){if(I4(Q,P4),Q[Q.length-1]!==`
|
|
93
93
|
`)Q.push(`
|
|
94
|
-
`);Q.push(H);continue}if(H===";"){if(
|
|
94
|
+
`);Q.push(H);continue}if(H===";"){if(I4(Q,oZ),Q.push(";"),q[Y+1]!==`
|
|
95
95
|
`)Q.push(`
|
|
96
|
-
`);continue}Q.push(H)}return Q.join("")}function
|
|
97
|
-
`),Z=[],Y=0,H=!1,j=0;for(let K of Q){let X=K.trim();if(X===""){Z.push("");continue}if(H){if(Z.push(`${" ".repeat(j)} ${X}`),X.includes("*/"))H=!1;continue}if(X.startsWith("/**")&&!X.includes("*/")){Z.push(" ".repeat(Y)+X),H=!0,j=Y;continue}let W=
|
|
98
|
-
`)}function
|
|
99
|
-
`).map((Y)=>Y.replace(
|
|
100
|
-
`)}function
|
|
101
|
-
`}var Q1="any",T8="",
|
|
96
|
+
`);continue}Q.push(H)}return Q.join("")}function ZY(q){let Q="",Z=null;for(let Y=0;Y<q.length;Y++){let H=q[Y],j=q[Y-1];if(Z){if(Q+=H,Z==="double"&&H==='"'&&j!=="\\"||Z==="single"&&H==="'"&&j!=="\\"||Z==="template"&&H==="`"&&j!=="\\")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 YY(q){let Q=q.split(`
|
|
97
|
+
`),Z=[],Y=0,H=!1,j=0;for(let K of Q){let X=K.trim();if(X===""){Z.push("");continue}if(H){if(Z.push(`${" ".repeat(j)} ${X}`),X.includes("*/"))H=!1;continue}if(X.startsWith("/**")&&!X.includes("*/")){Z.push(" ".repeat(Y)+X),H=!0,j=Y;continue}let W=ZY(X),B=S4.test(W),U=Math.max(0,Y-(B?1:0));if(Z.push(" ".repeat(U)+W),W.startsWith("/**")&&W.includes("*/"))continue;let $=null;for(let w=0;w<W.length;w++){let R=W[w],I=W[w-1];if($){if($==="double"&&R==='"'&&I!=="\\"||$==="single"&&R==="'"&&I!=="\\"||$==="template"&&R==="`"&&I!=="\\")$=null;continue}if(R==='"')$="double";else if(R==="'")$="single";else if(R==="`")$="template";else if(dZ.has(R))Y++;else if(iZ.has(R))Y=Math.max(0,Y-1);else if(R==="<")Y++;else if(R===">"&&I!=="=")Y=Math.max(0,Y-1)}}return Z.join(`
|
|
98
|
+
`)}function HY(q){let Q=q.split(`
|
|
99
|
+
`).map((Y)=>Y.replace(P4,"")),Z=[];for(let Y of Q){let H=Y==="",j=Z.length>0&&Z[Z.length-1]==="",K=Z.length>0&&sZ.test(Z[Z.length-1]);if(H){if(Z.length===0||j||K)continue;Z.push(Y);continue}if(S4.test(Y)&&j)Z.pop();Z.push(Y)}while(Z.length>0&&Z[Z.length-1]==="")Z.pop();return Z.join(`
|
|
100
|
+
`)}function k4(q){let Q=D4(q),Z=YY(Q);return`${HY(Z)}
|
|
101
|
+
`}var Q1="any",T8="",JY="Record<string, any>",A6="Record<string, never>",KY=/(-|\s+|:)/,jY=/("|')/,VY=/CustomEvent/,XY=/^[A-Z]/,WY=/\n/,E4=/=>/,zY=/(?:^|\n)@default\b/,C6=/\n/g,UY=/\s+/g,w1=/(^|[^.\w])Snippet(?:\s*<|\b)/,GY=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,OY=/[.*+?^${}()|[\]\\]/g,BY=/^const\s+/;function L6(q){return q.replace(BY,"")}function FY(q){if(!q)return;return q.replace(C6,`
|
|
102
102
|
* `)}function m0(q){if(!q)return"";return`/** ${q} */`}function l0(q){if(!q)return"";return`/**
|
|
103
103
|
* ${q.replace(C6,`
|
|
104
104
|
* `)}
|
|
105
|
-
*/`}function
|
|
105
|
+
*/`}function v4(q){if(q===void 0)return;return q===!0?"@deprecated":`@deprecated ${q}`}function RY(q){let Q=v4(q);if(Q===void 0)return;return`* ${Q.replace(C6,`
|
|
106
106
|
* `)}
|
|
107
|
-
`}function
|
|
107
|
+
`}function $Y(q,Q){if(!Q)return[`@${q}`];if(!Q.includes(`
|
|
108
108
|
`))return[`@${q} ${Q}`];return[`@${q}`,...Q.split(`
|
|
109
|
-
`)]}function
|
|
109
|
+
`)]}function h4(q){let Q=[];for(let{name:Z,body:Y}of q??[])Q.push(...$Y(Z,Y));return Q}function s1(q,Q,Z){let Y=v4(Z),H=h4(Q),j=H.length>0;if(!q&&!j&&!Y)return"";if(!j&&!Y)return q?.includes(`
|
|
110
110
|
`)?l0(q):m0(q);let K=[];if(q)K.push(...q.split(`
|
|
111
111
|
`));if(K.push(...H),Y)K.push(...Y.split(`
|
|
112
112
|
`));return`/**
|
|
113
113
|
* ${K.join(`
|
|
114
114
|
* `)}
|
|
115
|
-
*/`}function
|
|
115
|
+
*/`}function MY(q){let Q=h4(q);if(Q.length===0)return"";return Q.map((Z)=>`* ${Z}
|
|
116
116
|
`).join("")}function c0(q){if(q===void 0)return Q1;return`${q}
|
|
117
117
|
`}function d0(q){if(q.typedefs.length===0)return T8;return q.typedefs.map((Q)=>{return`${Q.description?`${l0(Q.description)}
|
|
118
118
|
`:""}export ${Q.ts}`}).join(`
|
|
119
119
|
|
|
120
|
-
`)}var
|
|
120
|
+
`)}var N4=new Map;function y4(q,Q){let Z=N4.get(Q);if(Z===void 0){let Y=Q.replace(OY,"\\$&");Z=new RegExp(`\\b${Y}\\b`),N4.set(Q,Z)}return Z.test(q)}var b4,T4=[];function I6(q){if(q!==b4)b4=q,T4=S1(q);return T4}function wY(q){if(q===null)return[];return q[0].split(",").map((Q,Z)=>({name:Q.trim(),constraint:(I6(q[1]??"")[Z]??Q).trim()}))}function AY(q,Q){let Z=wY(q).filter(({name:Y})=>y4(Q,Y));if(Z.length===0)return{declSuffix:T8,refSuffix:T8};return{declSuffix:`<${Z.map(({constraint:Y})=>L6(Y)).join(", ")}>`,refSuffix:`<${Z.map(({name:Y})=>Y).join(", ")}>`}}function f4(q){if(!q.contexts||q.contexts.length===0)return T8;let Q=q.generics===null?[]:q.generics[0].split(",").map((Z,Y)=>({name:Z.trim(),constraint:(I6(q.generics?.[1]??"")[Y]??Z).trim()}));return q.contexts.map((Z)=>{let Y=Z.properties.map((X)=>{let W=X.description?`${m0(X.description)}
|
|
121
121
|
`:"",B=X.optional?"?":"";return`${W}${X.name}${B}: ${X.type};`}).join(`
|
|
122
122
|
`),H=Z.description?`${l0(Z.description)}
|
|
123
|
-
`:"",j=Q.filter(({name:X})=>Z.properties.some((W)=>
|
|
123
|
+
`:"",j=Q.filter(({name:X})=>Z.properties.some((W)=>y4(W.type,X))).map(({constraint:X})=>X),K=j.length>0?`<${j.map(L6).join(", ")}>`:"";if(Z.properties.length===0)return`${H}export type ${Z.typeName} = Record<string, never>;`;return`${H}export type ${Z.typeName}${K} = {
|
|
124
124
|
${Y}
|
|
125
125
|
};`}).join(`
|
|
126
126
|
|
|
127
|
-
`)}function n1(q){if(
|
|
128
|
-
`}function S6(q,Q,Z){return[
|
|
129
|
-
${q}*/`:T8}function
|
|
127
|
+
`)}function n1(q){if(KY.test(q))return jY.test(q)?q:`"${q}"`;return q}function g4(q,Q){if(!q)return;return`* ${Q||q}
|
|
128
|
+
`}function S6(q,Q,Z){return[g4(FY(q)),RY(Q),MY(Z)].filter(Boolean).join("")}function P6(q){return q.length>0?`/**
|
|
129
|
+
${q}*/`:T8}function CY(q){let Q=q.props.filter((L)=>!L.isFunctionDeclaration&&L.kind!=="const"),Z=new Set([...Q.map((L)=>L.name),...Array.from(q.canonicalPropNames??[])]),Y=Q.map((L)=>{let b=L.value;if(typeof L.value==="string")b=L.value.replace(UY," ");if(L.value===void 0)b="undefined";let h=zY.test(L.description??"")||L.isFunction&&L.value===void 0,n=[S6(L.description,L.deprecated,L.tags),g4(L.constant,"@constant"),h?null:`* @default ${b}
|
|
130
130
|
`].filter(Boolean).join(""),g=L.constant&&!L.isFunction?L.value:L.type;return`
|
|
131
131
|
${P6(n)}
|
|
132
132
|
${L.name}${L.isRequired?"":"?"}: ${g};`}),H=q.canonicalPropsType?Y.filter((L,b)=>{let x=Q[b];return x?!(q.canonicalPropNames?.has(x.name)??!1):!0}):Y,j=(q.slots||[]).filter((L)=>!L.default&&L.name!=null&&!Z.has(L.name)).map((L)=>{let b=L.name,x=n1(b),h=s1(L.description,L.tags,L.deprecated),n=h?`${h}
|
|
133
133
|
`:"",t=L.slot_props&&L.slot_props!=="Record<string, never>"?`(this: void, ...args: [${L.slot_props}]) => void`:"(this: void) => void";return`
|
|
134
134
|
${n}${x}?: ${t};`}),K=(q.slots||[]).find((L)=>L.default||L.name===null),X=K&&!Z.has("children")?(()=>{let L=s1(K.description,K.tags,K.deprecated),b=L?`${L}
|
|
135
135
|
`:"",h=K.slot_props&&K.slot_props!=="Record<string, never>"?`(this: void, ...args: [${K.slot_props}]) => void`:"(this: void) => void";return`
|
|
136
|
-
${b}children?: ${h};`})():"",W=q.events?
|
|
136
|
+
${b}children?: ${h};`})():"",W=q.events?kY({events:q.events},Z):[],B=[...j,X,...W].filter(Boolean),U=[...H,...B].join(`
|
|
137
137
|
`),$=`${q.moduleName}Props`,w=T8,R=q.generics?`<${I6(q.generics[1]).map((L)=>L6(L.trim())).join(", ")}>`:"",I=q.generics?`<${q.generics[0]}>`:"",D=q.canonicalPropsType?`
|
|
138
138
|
type $Props${R} = ${q.canonicalPropsType}${U.trim()===""?"":` & {${U}
|
|
139
139
|
}`};
|
|
@@ -179,25 +179,25 @@ ${q}*/`:T8}function wY(q){let Q=q.props.filter((L)=>!L.isFunctionDeclaration&&L.
|
|
|
179
179
|
export type ${$}${R} = ${q.extends===void 0?"":`${q.extends.interface} & `} {
|
|
180
180
|
${U}
|
|
181
181
|
};
|
|
182
|
-
`;return{props_name:$,prop_def:w}}function
|
|
182
|
+
`;return{props_name:$,prop_def:w}}function LY(q){if(q.slots.length===0)return A6;let Q=q.slots.map(({name:Z,slot_props:Y,...H})=>{let j=H.default||Z===null?"default":n1(Z??""),K=s1(H.description,H.tags,H.deprecated);return`${K?`${K}
|
|
183
183
|
`:""}${n1(j)}: ${c0(Y)};`}).join(`
|
|
184
184
|
`);return q.slots.length===1?`{${Q}}`:`{
|
|
185
185
|
${Q}
|
|
186
|
-
}`}var
|
|
187
|
-
`;return`${Y}${n1(Z.name)}: ${
|
|
186
|
+
}`}var IY=()=>"WindowEventMap",SY=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 w6(q=Q1){if(VY.test(q))return q;return`CustomEvent<${q}>`}function PY(q){return SY.has(q)}function _4(q){switch(q.type){case"dispatched":return w6(q.detail);case"forwarded":{let Q=q.element,Y=!(Q&&XY.test(Q))||PY(q.name),H=q.detail!==void 0&&q.detail!=="undefined"&&!(q.detail==="null"&&Y),j=q.detail==="null"&&!Y;if(H||j)return w6(q.detail);else if(Y)return`${IY()}["${q.name}"]`;else return w6()}default:return q}}function DY(q){if(q.events.length===0)return JY;let Q=q.events.map((Z)=>{let Y="",H=s1(Z.description,Z.tags,Z.deprecated);if(H)Y=`${H}
|
|
187
|
+
`;return`${Y}${n1(Z.name)}: ${_4(Z)};
|
|
188
188
|
`}).join("");return q.events.length===1?`{${Q}}`:`{
|
|
189
|
-
${Q}}`}function
|
|
189
|
+
${Q}}`}function kY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y))return;let H="",j=s1(Z.description,Z.tags,Z.deprecated);if(j)H=`${j}
|
|
190
190
|
`;return`
|
|
191
|
-
${H}${n1(Y)}?: (event: ${
|
|
191
|
+
${H}${n1(Y)}?: (event: ${_4(Z)}) => void;`}).filter((Z)=>Z!==void 0)}function NY(q){let Q=q.type==="() => any";if(q.type&&E4.test(q.type)&&!Q)return q.type;else if(q.params&&q.params.length>0){let Y=q.params.map((j)=>{let K=j.optional?"?":"";return`${j.name}${K}: ${j.type}`}).join(", "),H=q.returnType||Q1;return`(${Y}) => ${H}`}else if(q.returnType)return`() => ${q.returnType}`;else return q.type||Q1}function x4(q){return q.props.filter((Q)=>Q.isFunctionDeclaration||Q.kind==="const").map((Q)=>{let Z=S6(Q.description,Q.deprecated,Q.tags),Y=NY(Q);return`
|
|
192
192
|
${P6(Z)}
|
|
193
193
|
${Q.name}: ${Y};`}).join(`
|
|
194
|
-
`)}function
|
|
195
|
-
};`}}function
|
|
194
|
+
`)}function bY(q){let Q=`${q.moduleName}Exports`,Z=x4({props:q.props});if(Z.trim()==="")return{exports_name:Q,exports_ref:Q,exports_def:`export type ${Q} = ${A6};`};let{declSuffix:Y,refSuffix:H}=AY(q.generics,Z);return{exports_name:Q,exports_ref:`${Q}${H}`,exports_def:`export type ${Q}${Y} = {${Z}
|
|
195
|
+
};`}}function TY(q){let Q=q.props.filter((Z)=>Z.bindable===!0||Z.binding==="writable").map((Z)=>`"${Z.name}"`);return Q.length===0?T8:Q.join(" | ")}function EY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=q.bindings===T8?'""':q.bindings;return`declare const ${Q}: Component<
|
|
196
196
|
${q.propsRef},
|
|
197
197
|
${q.exportsRef},
|
|
198
198
|
${Z}
|
|
199
199
|
>;
|
|
200
|
-
export default ${Q};`}function
|
|
200
|
+
export default ${Q};`}function vY(q){let Q=q.moduleName==="default"?"$$Component":q.moduleName,Z=`${Q}Component`,Y=q.bindings===T8?'""':q.bindings;return`interface ${Z} {
|
|
201
201
|
new ${q.generic}(
|
|
202
202
|
options: ComponentConstructorOptions<${q.propsRef}>
|
|
203
203
|
): SvelteComponent<${q.propsRef}> & ${q.exportsRef};
|
|
@@ -213,50 +213,50 @@ ${Q}}`}function PY(q,Q){return q.events.map((Z)=>{let Y=`on${Z.name}`;if(Q.has(Y
|
|
|
213
213
|
z_$$bindings?: ${Y};
|
|
214
214
|
}
|
|
215
215
|
declare const ${Q}: ${Z};
|
|
216
|
-
export default ${Q};`}function
|
|
216
|
+
export default ${Q};`}function hY(q){if(q.extends===void 0)return"";return`import type { ${q.extends.interface} } from ${q.extends.import};`}function yY(q){if(!q.componentComment)return"";if(!WY.test(q.componentComment))return m0(q.componentComment.trim());return`/*${q.componentComment.split(`
|
|
217
217
|
`).map((Q)=>`* ${Q}`).join(`
|
|
218
218
|
`)}
|
|
219
|
-
*/`}function
|
|
219
|
+
*/`}function fY(q){return q.moduleExports.map((Q)=>{let Z=S6(Q.description,Q.deprecated,Q.tags),Y,H=Q.type&&E4.test(Q.type),j=Q.type==="() => any";if(Q.kind==="const"&&!H)Y=`export declare const ${Q.name}: ${Q.type||Q1};
|
|
220
220
|
`;else if(Q.params&&Q.params.length>0){let X=Q.params.map((B)=>{let U=B.optional?"?":"";return`${B.name}${U}: ${B.type}`}).join(", "),W=Q.returnType||Q1;Y=`export declare function ${Q.name}(${X}): ${W};`}else if(Q.returnType)Y=`export declare function ${Q.name}(): ${Q.returnType};`;else if(H&&Q.type&&!j){let[K,X,...W]=Q.type.split("=>"),B=W.map((U)=>` => ${U.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${X.trim()}${B};`}else if(H&&Q.type){let[K,X,...W]=Q.type.split("=>"),B=W.map((U)=>` => ${U.trim()}`).join("");Y=`export declare function ${Q.name}${K.trimEnd()}: ${X.trim()}${B};`}else if(Q.kind==="const")Y=`export declare const ${Q.name}: ${Q.type||Q1};
|
|
221
221
|
`;else Y=`export type ${Q.name} = ${Q.type||Q1};`;return`
|
|
222
222
|
${P6(Z)}
|
|
223
223
|
${Y}`}).join(`
|
|
224
|
-
`)}var
|
|
225
|
-
`))){let H=`${Z}${Y.join(", ")}> {}`;if(H.length<=
|
|
224
|
+
`)}var gY=120;function _Y(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(`
|
|
225
|
+
`))){let H=`${Z}${Y.join(", ")}> {}`;if(H.length<=gY)return H}return`${Z}
|
|
226
226
|
${q.genericProps},
|
|
227
227
|
${q.events},
|
|
228
228
|
${q.slots}
|
|
229
229
|
> {
|
|
230
230
|
${q.accessors}
|
|
231
|
-
}`}function
|
|
231
|
+
}`}function xY(q,Q){let Z=r0(q),{moduleName:Y,typedefs:H,generics:j,props:K,moduleExports:X,slots:W,events:B,rest_props:U,extends:$,componentComment:w,contexts:R,syntaxMode:I}=q,D=Q?.format==="component",L=j!==null,{props_name:b,prop_def:x}=CY({moduleName:Y,props:K,rest_props:U,extends:$,generics:j,slots:W,canonicalPropNames:new Set(Z?.canonicalPropNames??[]),canonicalPropsType:Z?.canonicalPropsType,events:D&&I==="legacy"?B:void 0}),h=j?`<${j[1]}>`:"",n=j?`${b}<${j[0]}>`:b,g=fY({moduleExports:X}),t=d0({typedefs:H}),a=f4({contexts:R,generics:j}),J=(Z?.typeImportStatements??[]).join(`
|
|
232
232
|
`),V=(Z?.localTypeDeclarations??[]).join(`
|
|
233
233
|
|
|
234
|
-
`),{exports_ref:z,exports_def:O}=D?
|
|
235
|
-
`),N=D?L?
|
|
234
|
+
`),{exports_ref:z,exports_def:O}=D?bY({props:K,moduleName:Y,generics:j}):{exports_ref:T8,exports_def:T8},F=D?TY({props:K}):T8,M=!GY.test(J)&&(w1.test(x)||w1.test(g)||w1.test(t)||w1.test(a)||w1.test(V)||w1.test(O)),A=U?.type==="Element"&&(U.name!=="svelte:element"||U.name==="svelte:element"&&U.thisValue),P=U?.type==="Element"&&U.name==="svelte:element"&&!U.thisValue,C=[D?L?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${M?", Snippet":""} } from "svelte";`:`import type { Component${M?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${M?", type Snippet":""} } from "svelte";`,A?'import type { SvelteHTMLElements } from "svelte/elements";':"",P?'import type { HTMLAttributes } from "svelte/elements";':"",J,hY({extends:$})].filter(Boolean).join(`
|
|
235
|
+
`),N=D?L?vY({moduleName:Y,generic:h,propsRef:n,exportsRef:z,bindings:F}):EY({moduleName:Y,propsRef:n,exportsRef:z,bindings:F}):_Y({moduleName:Y,generic:h,genericProps:n,events:DY({events:B}),slots:LY({slots:W}),accessors:x4({props:K})}),k=[g,t,V,a,x,O,[yY({componentComment:w}),N].filter(Boolean).join(`
|
|
236
236
|
`)].map((y)=>y.trim()).filter(Boolean).join(`
|
|
237
237
|
|
|
238
|
-
`);return
|
|
238
|
+
`);return k4([C,k].filter(Boolean).join(`
|
|
239
239
|
|
|
240
|
-
`))}var D6=/`/g,i0=/\s+/g,g8="--",
|
|
240
|
+
`))}var D6=/`/g,i0=/\s+/g,g8="--",u4=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
|
|
241
241
|
| :- | :- | :- | :- | :- | :- | :- | :- |
|
|
242
|
-
`,
|
|
242
|
+
`,m4=`| Slot name | Default | Props | Fallback | Description |
|
|
243
243
|
| :- | :- | :- | :- | :- |
|
|
244
|
-
`,
|
|
244
|
+
`,l4=`| Event name | Type | Detail | Description |
|
|
245
245
|
| :- | :- | :- | :- |
|
|
246
|
-
`,
|
|
246
|
+
`,c4=`| Name | Kind | Type | Description |
|
|
247
247
|
| :- | :- | :- | :- |
|
|
248
|
-
`,p0=/\|/g,
|
|
249
|
-
`).replace(p0,"|").replace(A1,"<br />")}function
|
|
248
|
+
`,p0=/\|/g,uY=/</g,mY=/>/g,A1=/\n/g;function z1(q){if(q===void 0)return g8;return`<code>${q.replace(p0,"|")}</code>`}function a1(q){return q.replace(uY,"<").replace(mY,">")}function d4(q){if(q===void 0)return g8;return`<code>${q.replace(D6,"\\`").replace(p0,"|")}</code>`}function o0(q,Q){if(Q===void 0)return q;let Z=typeof Q==="string"&&Q.trim().length>0?`: ${a1(Q).replace(A1," ").replace(p0,"|")}`:"";return`<s>${q}</s><br />**Deprecated**${Z}`}function s0(q){if(q===void 0||q.trim().length===0)return g8;return a1(q).replace(A1,"<br />")}function i4(q){if(q===void 0||q==="{}")return g8;return z1(c0(q).replace(A1," "))}function p4(q){if(q===void 0)return g8;return z1(a1(q).replace(A1,"<br />"))}function o4(q,Q){let Z=[];if(q!==void 0&&q.trim().length>0)Z.push(a1(q));for(let{name:Y,body:H}of Q??[]){let j=H?.trim();Z.push(j?`@${Y} ${a1(j)}`:`@${Y}`)}if(Z.length===0)return g8;return Z.join(`
|
|
249
|
+
`).replace(p0,"|").replace(A1,"<br />")}function s4(q){if(q===void 0)return g8;return z1(q.replace(A1," "))}function N6(q,Q,Z){if(q.append("h1","Component Index"),q.append("h2","Components").tableOfContents(),q.append("divider"),Z&&Z.length>0)lY(q,Z);let Y=o1(Q);for(let H of Y.components)cY(q,H)}function lY(q,Q){q.append("h2","Exports"),q.append("raw",c4);for(let Z of Q){let Y=(Z.type??Z.value)?.replace(i0," ").trim();q.append("raw",`| ${Z.name} | ${`<code>${Z.kind}</code>`} | ${z1(Y)} | ${s0(Z.description)} |
|
|
250
250
|
`)}q.append("raw",`
|
|
251
251
|
`),q.append("divider")}function k6(q,Q,Z,Y){if(Q.length>0)Z(),q.append("raw",`
|
|
252
|
-
`);else q.append("p",Y??"None.")}function
|
|
252
|
+
`);else q.append("p",Y??"None.")}function cY(q,Q){if(q.append("h2",`\`${Q.moduleName}\``),Q.generics)q.append("p",`**Type parameters:** ${z1(`<${Q.generics[1]}>`)}`);if(Q.typedefs.length>0)q.append("h3","Types").append("raw",`\`\`\`ts
|
|
253
253
|
${d0({typedefs:Q.typedefs})}
|
|
254
254
|
\`\`\`
|
|
255
255
|
|
|
256
|
-
`);q.append("h3","Props"),k6(q,Q.props,()=>{q.append("raw",
|
|
257
|
-
`)}),q.append("h3","Slots"),k6(q,Q.slots,()=>{q.append("raw",
|
|
258
|
-
`)}),q.append("h3","Events"),k6(q,Q.events,()=>{q.append("raw",
|
|
259
|
-
`)})}var
|
|
256
|
+
`);q.append("h3","Props"),k6(q,Q.props,()=>{q.append("raw",u4);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",`| ${o0(Y.name,Y.deprecated)} | ${Y.isRequired?"Yes":"No"} | ${`<code>${Y.kind}</code>`} | ${Y.reactive?"Yes":"No"} | ${Y.binding??"--"} | ${z1(Y.type)} | ${d4(Y.value)} | ${s0(Y.description)} |
|
|
257
|
+
`)}),q.append("h3","Slots"),k6(q,Q.slots,()=>{q.append("raw",m4);for(let Z of Q.slots)q.append("raw",`| ${o0(Z.default?g8:Z.name??g8,Z.deprecated)} | ${Z.default?"Yes":"No"} | ${i4(Z.slot_props)} | ${p4(Z.fallback)} | ${o4(Z.description,Z.tags)} |
|
|
258
|
+
`)}),q.append("h3","Events"),k6(q,Q.events,()=>{q.append("raw",l4);for(let Z of Q.events)q.append("raw",`| ${o0(Z.name,Z.deprecated)} | ${Z.type} | ${Z.type==="dispatched"?s4(Z.detail):g8} | ${s0(Z.description)} |
|
|
259
|
+
`)})}var dY=new Set(["string","number","boolean"]);function iY(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 pY(q){let Q=new Map;for(let Y of q){if(!Y.type||!dY.has(Y.type.trim()))continue;let H=Y.name.toLowerCase(),j=Q.get(H);if(j)j.push(Y);else Q.set(H,[Y])}let Z=[];for(let[Y,H]of Q){if(H.length!==1)continue;let j=H[0];Z.push({name:Y,fieldName:j.name,type:{text:j.type},...j.value===void 0?{}:{default:j.value},...j.description?{description:j.description}:{}})}return Z}function oY(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 sY(q){return q.map((Q)=>({name:Q.default?"":Q.name??"",...Q.description?{description:Q.description}:{},...Q.deprecated===void 0?{}:{deprecated:Q.deprecated}}))}function nY(q){let Q={kind:"class",name:q.moduleName,...q.componentComment?{description:q.componentComment}:{},members:iY(q.props),attributes:pY(q.props),events:oY(q.events),slots:sY(q.slots)};if(q.customElementTag)Q.tagName=q.customElementTag,Q.customElement=!0;return Q}function aY(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 rY(q,Q={}){let Z=o1(q),Y=Q.resolveModulePath??((j)=>j.filePath);return{schemaVersion:"1.0.0",modules:Z.components.map((j)=>{let K=Y(j);return{kind:"javascript-module",path:K,declarations:[nY(j)],exports:aY(j,K)}})}}class b6{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
260
260
|
|
|
261
261
|
`),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(D6,"").replace(i0,"-")})`}).join(`
|
|
262
|
-
`))}}class T6 extends b6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function
|
|
262
|
+
`))}}class T6 extends b6{onAppend;constructor(q){super();this.onAppend=q.onAppend}append(q,Q){return super.append(q,Q),this.onAppend?.call(this,q,this),this}}function tY(q,Q){let Z=new T6({onAppend:(Y,H)=>{Q?.onAppend?.call(null,Y,H,q)}});return N6(Z,q),Z.end()}export{xY as writeTsDefinition,tY as writeMarkdownCore,N6 as renderComponentsToMarkdown,d0 as getTypeDefs,f4 as getContextDefs,c0 as formatTsProps,rY as buildCustomElementsManifest,o1 as buildComponentApiDocument,e4 as asNormalizedPath,U8 as ComponentParser,L4 as COMPONENT_API_SCHEMA_VERSION,T6 as BrowserWriterMarkdown};
|