sveld 0.36.7 → 0.36.9
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.d.ts +9 -0
- package/lib/browser.js +218 -218
- package/lib/chunk-0beysrt7.js +62 -0
- package/lib/chunk-26w7fg2w.js +13 -0
- package/lib/chunk-bbeezhqq.js +6 -0
- package/lib/chunk-cqkng6ys.js +7 -0
- package/lib/chunk-hpxd4cgm.js +1 -0
- package/lib/chunk-mdth9bg3.js +225 -0
- package/lib/chunk-n5cjh6db.js +1 -0
- package/lib/chunk-nrz6c5ew.js +10 -0
- package/lib/chunk-ptdfswsv.js +2 -0
- package/lib/chunk-syz2wqmb.js +3 -0
- package/lib/chunk-yzabyfqs.js +16 -0
- package/lib/cli-entry.js +1 -1
- package/lib/index.d.ts +9 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/chunk-02g49ekt.js +0 -13
- package/lib/chunk-0q7qnmx3.js +0 -2
- package/lib/chunk-4ndm4k55.js +0 -16
- package/lib/chunk-5x7ma2jx.js +0 -62
- package/lib/chunk-bjwm35xb.js +0 -1
- package/lib/chunk-c5sqd852.js +0 -1
- package/lib/chunk-fk94b2eb.js +0 -6
- package/lib/chunk-hytk5gv8.js +0 -225
- package/lib/chunk-jvqe4bt1.js +0 -3
- package/lib/chunk-tjthqdyw.js +0 -10
- package/lib/chunk-wn9w3zst.js +0 -7
package/lib/browser.js
CHANGED
|
@@ -1,262 +1,262 @@
|
|
|
1
|
-
var
|
|
2
|
-
`);while(
|
|
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} */
|
|
4
|
-
${
|
|
5
|
-
`:" ");return
|
|
6
|
-
${
|
|
7
|
-
}`:`{ ${
|
|
8
|
-
`);let
|
|
9
|
-
`)}function
|
|
10
|
-
`).slice(1,-1),endIndex:
|
|
11
|
-
`);
|
|
12
|
-
`)}let
|
|
13
|
-
`).trim()},
|
|
14
|
-
`);
|
|
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
|
-
`)
|
|
17
|
-
`).map((
|
|
18
|
-
`);let
|
|
19
|
-
${
|
|
20
|
-
`)}class
|
|
21
|
-
${this.filename}`,this.start)
|
|
22
|
-
${this.frame}`;return
|
|
23
|
-
https://svelte.dev/e/legacy_code`)}function
|
|
24
|
-
https://svelte.dev/e/unknown_code`)}function
|
|
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.`);
|
|
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,`
|
|
28
|
-
`),cooked:null}}else
|
|
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+=`
|
|
30
|
-
`;break;default:
|
|
1
|
+
var ec=Object.defineProperty;var tc=(e)=>e;function nc(e,t){this[e]=tc.bind(null,t)}var ic=(e,t)=>{for(var n in t)ec(e,n,{get:t[n],enumerable:!0,configurable:!0,set:nc.bind(t,n)})};function sc(e){return e}class Qt{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:(e)=>this.replacement=e}}replace(e,t,n,i){if(e&&t)if(n!=null)e[t][n]=i;else e[t]=i}remove(e,t,n){if(e&&t)if(n!==null&&n!==void 0)e[t].splice(n,1);else delete e[t]}}class Yn extends Qt{constructor(e,t){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:(n)=>this.replacement=n},this.enter=e,this.leave=t}visit(e,t,n,i){if(e){if(this.enter){let o=this.should_skip,a=this.should_remove,c=this.replacement;if(this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,i),this.replacement)e=this.replacement,this.replace(t,n,i,e);if(this.should_remove)this.remove(t,n,i);let p=this.should_skip,f=this.should_remove;if(this.should_skip=o,this.should_remove=a,this.replacement=c,p)return e;if(f)return null}let s;for(s in e){let o=e[s];if(o&&typeof o==="object"){if(Array.isArray(o)){let a=o;for(let c=0;c<a.length;c+=1){let p=a[c];if(Rs(p)){if(!this.visit(p,e,s,c))c--}}}else if(Rs(o))this.visit(o,e,s,null)}}if(this.leave){let o=this.replacement,a=this.should_remove;if(this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,i),this.replacement)e=this.replacement,this.replace(t,n,i,e);if(this.should_remove)this.remove(t,n,i);let c=this.should_remove;if(this.replacement=o,this.should_remove=a,c)return null}}return e}}function Rs(e){return e!==null&&typeof e==="object"&&"type"in e&&typeof e.type==="string"}function Re(e,{enter:t,leave:n}){return new Yn(t,n).visit(e,null)}function Ee(e){return typeof e==="object"&&e!==null}function Ms(e){return Ee(e)&&e.type==="VariableDeclaration"&&Array.isArray(e.declarations)}function rt(e){return Ee(e)&&e.type==="Literal"}function Fe(e){return Ee(e)&&e.type==="Identifier"&&typeof e.name==="string"}function Os(e){return Ee(e)&&e.type==="MemberExpression"}function Zt(e){return Ee(e)&&e.type==="ObjectExpression"&&Array.isArray(e.properties)}function rc(e){return Ee(e)&&e.type==="CallExpression"}function Ve(e,t){if(!rc(e))return!1;return!!e.callee&&Ee(e.callee)&&e.callee.type==="Identifier"&&e.callee.name===t}function Xe(e){if(Ee(e)&&(e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression")&&"expression"in e)return Xe(e.expression);return e}function $s(e){if(Ee(e)&&(e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression")&&"typeAnnotation"in e)return e.typeAnnotation;return}function ac(e){return Ee(e)&&e.type==="NewExpression"}function Qn(e,t){if(!ac(e))return!1;return!!e.callee&&Ee(e.callee)&&e.callee.type==="Identifier"&&e.callee.name===t}function Bs(e){if(!Ee(e)||typeof e.type!=="string")return null;if(e.type==="Literal"){let t=e.value;if(typeof t==="string")return t;return t==null?null:String(t)}if(e.type==="TemplateLiteral"){let t=e.quasis;if(t?.length===1){let n=t[0]?.value?.cooked;return n==null?null:n}}return null}var Fs={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 oc(e){return e in Fs}function Vs(e){if(oc(e))return Fs[e];return"HTMLElement"}var en=Symbol("sveld.parsedComponentTypeScriptMetadata");function Zn(e){return e[en]}var lc=/\w/;function cc(e,t){let n=e.trim();if(!n.startsWith("{")||!n.endsWith("}"))return;let i=n.slice(1,-1),s=[],o=0,a="";for(let c of i)if(c==="{"||c==="<"||c==="("||c==="[")o++,a+=c;else if(c==="}"||c===">"||c===")"||c==="]")o--,a+=c;else if((c===";"||c===",")&&o===0)s.push(a.trim()),a="";else a+=c;if(a.trim())s.push(a.trim());for(let c of s){if(!c.startsWith(t))continue;let p=c.slice(t.length);if(p.length>0&&lc.test(p[0]))continue;let f=p.trimStart();if(f.startsWith("?"))f=f.slice(1).trimStart();if(f.startsWith(":"))return f.slice(1).trim()}return}function tn(e,t,n){let i=n;if(i.computed||i.object?.type!=="Identifier"||i.property?.type!=="Identifier")return;let s=i.object.name,o=i.property.name;if(!s||!o)return;if(e.wholePropsLocals.has(s))return t.getPropTypeByLocalOrPublic(o);let a=t.getPropTypeByLocalOrPublic(s)??t.findVariableTypeAndDescription(s)?.type;if(!a)return;return cc(a,o)}function ei(){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:[],pendingContextKeyCandidates:[],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 He(e,t,n,i,s){e.diagnosticRecords.push({component:e.componentFilePath,kind:t,name:n,message:i,...s?{source:s}:{}})}var ti=/[\r\n]+/g;function pc(e){if(e.sourceLineStartOffsetsCache)return e.sourceLineStartOffsetsCache;let t=[0];if(e.source){let n=e.source.indexOf(`
|
|
2
|
+
`);while(n!==-1)t.push(n+1),n=e.source.indexOf(`
|
|
3
|
+
`,n+1)}return e.sourceLineStartOffsetsCache=t,t}function js(e,t){if(!e.source||t<0||t>e.source.length)return;let n=pc(e),i=0,s=n.length-1;while(i<=s){let o=Math.floor((i+s)/2),a=n[o],c=n[o+1]??Number.POSITIVE_INFINITY;if(t<a)s=o-1;else if(t>=c)i=o+1;else return{line:o+1,column:t-a}}return}function nn(e,t,n){if(t===void 0||n===void 0||n<t)return;let i=js(e,t),s=js(e,n);if(!i||!s)return;return{start:i,end:s}}function oe(e,t){if(!t||typeof t!=="object")return;let n="start"in t&&typeof t.start==="number"?t.start:void 0,i="end"in t&&typeof t.end==="number"?t.end:void 0;return nn(e,n,i)}function ni(e,t){if(!t||t.length===0)return;let n=[...t];while(n.length>1){let p=n[n.length-1];if(p.tag!==void 0||!p.raw.trim().endsWith("*/"))break;n.pop()}let i=n[0],s=i.raw.indexOf(`@${i.tag??""}`),o=i.start+Math.max(s,0),a=n[n.length-1],c=a.start+a.raw.length;return nn(e,o,c)}function ee(e,t,n){return e.source?.slice(t,n)}function sn(e,t){if(!t||typeof t!=="object")return;let n="start"in t&&typeof t.start==="number"?t.start:void 0,i="end"in t&&typeof t.end==="number"?t.end:void 0;if(n===void 0||i===void 0)return;return ee(e,n,i)?.replace(ti," ")}function Se(e){return e===void 0||e===""?void 0:e}function St(e,t,n,i){if(Se(n)===void 0)return;if(e.trackPropLocalName(n),t.props.has(n)){let s=t.props.get(n);t.props.set(n,{...s,...i})}else t.props.set(n,i)}function Je(e,t,n,i=0){let s,o,a=!1;if(!n||typeof n!=="object"||!("type"in n))return{value:s,type:o,isFunction:a};let c=Hs(e,t,n);if(n.type==="ObjectExpression"||n.type==="BinaryExpression"||n.type==="ArrayExpression"||n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end)?.replace(ti," ");if(o=s,a=n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression",n.type==="BinaryExpression"){let f=n;if(f.left&&typeof f.left==="object"&&"type"in f.left&&f.left.type==="Literal"&&"value"in f.left&&typeof f.left.value==="string")o="string"}if(n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression")o=zs(n),s=qs(t,n)}else if(n.type==="UnaryExpression"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end);if(p.argument){if(typeof p.argument==="object"&&"type"in p.argument&&p.argument.type==="UnaryExpression")o=Je(e,t,p.argument).type;else if(typeof p.argument==="object"&&"value"in p.argument)o=typeof p.argument.value}}else if(n.type==="NewExpression"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end);if(p.callee&&typeof p.callee==="object"&&"type"in p.callee&&p.callee.type==="Identifier"){let f=p.callee.name;if(f==="Date")o="Date";else if(f==="Map")o="Map<any, any>";else if(f==="Set")o="Set<any>";else if(f==="WeakMap")o="WeakMap<object, any>";else if(f==="WeakSet")o="WeakSet<object>";else if(f==="Array")o="any[]";else if(f==="RegExp"||f==="Regexp")o="RegExp";else if(f==="Error")o="Error";else o=f}}else if(n.type==="CallExpression"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end);let f=p.callee,d=f&&typeof f==="object"&&"type"in f&&f.type==="Identifier"?f.name:void 0;if((d==="$derived"||d==="$state")&&p.arguments.length===1&&i<5)return{...Je(e,t,p.arguments[0],i+1),value:s,defaultValue:c};if(d){let g=dc(e,t,d);if(g)return{value:s,type:void 0,isFunction:!1,defaultValue:c,resolvedType:g};if(t.funcDecls.has(d)||hc(t,d))return{value:s,type:void 0,isFunction:!1,defaultValue:c,pendingCallDefault:{calleeName:d}};let v=t.valueImportBindingsByLocalName.get(d);if(v)return{value:s,type:void 0,isFunction:!1,defaultValue:c,pendingCallDefault:{calleeName:d,importSource:v.source,importedName:v.importedName}}}return{value:s,type:void 0,isFunction:!1,defaultValue:c,pendingCallDefault:{calleeName:d??uc(t,f)}}}else if(n.type==="Identifier"){let p=n;if(i<5){let f=Us(t,p.name);if(f){let d=Je(e,t,f,i+1),g=e.resolveLocalVarJSDoc(p.name);return{...d,resolvedType:g?.type??d.resolvedType,resolvedDescription:g?.description??d.resolvedDescription,resolvedParams:g?.params??d.resolvedParams,resolvedReturnType:g?.returnType??d.resolvedReturnType}}if(t.funcDecls.has(p.name)){let d=e.resolveLocalVarJSDoc(p.name),g=t.funcDecls.get(p.name);return{value:g?qs(t,g):void 0,type:void 0,isFunction:!0,defaultValue:g?Hs(e,t,g):void 0,resolvedType:d?.type??_c(d,g),resolvedDescription:d?.description,resolvedParams:d?.params,resolvedReturnType:d?.returnType}}}if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end)}else if(n.type==="MemberExpression"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end);if(e.isNumericConstant(n))o="number"}else if(n.type==="TemplateLiteral"){let p=n;if("start"in p&&"end"in p&&typeof p.start==="number"&&typeof p.end==="number")s=ee(t,p.start,p.end);o="string"}else if("raw"in n&&typeof n.raw==="string"){if(s=n.raw,"value"in n)o=n.value==null?void 0:typeof n.value}return{value:s,type:o,isFunction:a,defaultValue:c}}function Us(e,t){for(let n of e.vars)for(let i of n.declarations)if(i.id&&typeof i.id==="object"&&"type"in i.id&&i.id.type==="Identifier"&&"name"in i.id&&i.id.name===t&&i.init)return i.init;return}function Gs(e,t){for(let n of e.vars){if(n.kind!=="const")continue;for(let i of n.declarations)if(i.id&&typeof i.id==="object"&&"type"in i.id&&i.id.type==="Identifier"&&"name"in i.id&&i.id.name===t&&i.init)return i.init}return}function uc(e,t){if(t&&typeof t==="object"&&"start"in t&&"end"in t&&typeof t.start==="number"&&typeof t.end==="number")return ee(e,t.start,t.end)??"call";return"call"}function dc(e,t,n){let i=e.resolveLocalVarJSDoc(n);if(i?.returnType)return i.returnType;let s=t.funcDecls.get(n)??Ws(t,n);if(!s)return;let o=yc(t,s);if(o)return o;let a=fc(t,n);if(a)return a;let c=Ks(s);return c==="any"?void 0:c}function hc(e,t){return Ws(e,t)!==void 0}function Ws(e,t){let n=Us(e,t);if(!n||typeof n!=="object"||!("type"in n))return;if(n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression")return n;return}function fc(e,t){for(let n of e.vars)for(let i of n.declarations){let s=i.id;if(!s||typeof s!=="object"||!("type"in s)||s.type!=="Identifier"||!("name"in s)||s.name!==t)continue;let o=s.typeAnnotation;if(o?.type!=="TSTypeAnnotation")return;let a=o.typeAnnotation;if(!a||typeof a.start!=="number"||typeof a.end!=="number")return;return mc(ee(e,a.start,a.end))}return}function mc(e){if(!e)return;let t=e.lastIndexOf("=>");if(t===-1)return;return e.slice(t+2).trim()||void 0}function yc(e,t){let n=t.returnType;if(n?.type!=="TSTypeAnnotation")return;let i=n.typeAnnotation;if(!i||typeof i.start!=="number"||typeof i.end!=="number")return;return ee(e,i.start,i.end)}function _c(e,t){let n=e?.returnType??"any",i=e?.params;if(i&&i.length>0)return`(${i.map((o)=>`${o.name}${o.optional?"?":""}: ${o.type}`).join(", ")}) => ${n}`;if(e?.returnType)return`() => ${n}`;if(t)return zs(t);return"(...args: any[]) => any"}function zs(e){return`(${gc(e)}) => ${Ks(e)}`}function gc(e){let t=e.params;if(!Array.isArray(t)||t.length===0)return"...args: any[]";let n=[];for(let i of t)if(i&&typeof i==="object"&&"type"in i&&i.type==="Identifier"&&"name"in i&&typeof i.name==="string")n.push(`${i.name}: any`);else return"...args: any[]";return n.join(", ")}function Ks(e){if(e.async||e.generator)return"any";let t=e.body,n;if(t&&typeof t==="object"&&"type"in t&&t.type==="BlockStatement"){if(n=xc(t),n.length===0)return"any"}else n=[t];let i=null;for(let s of n){let o=vc(s);if(!o)return"any";if(i===null)i=o;else if(i!==o)return"any"}return i??"any"}function xc(e){let t=[];return Re(e,{enter(n){if(n.type==="FunctionDeclaration"||n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"){this.skip();return}if(n.type==="ReturnStatement")t.push(n.argument??null)}}),t}function vc(e){if(!e||typeof e!=="object"||!("type"in e))return null;switch(e.type){case"Literal":{let t=e.value;if(typeof t==="string")return"string";if(typeof t==="number")return"number";if(typeof t==="boolean")return"boolean";return null}case"TemplateLiteral":return"string";case"CallExpression":{let t=e.callee;if(t&&typeof t==="object"&&"type"in t&&t.type==="Identifier"){let n=t.name;if(n==="String")return"string";if(n==="Number")return"number";if(n==="Boolean")return"boolean"}return null}default:return null}}function Xs(e){if(Ve(e,"$bindable"))return{init:e.arguments[0],bindable:!0};return{init:e,bindable:!1}}function bc(e,t){let n=t.params;if(!Array.isArray(n)||n.length===0)return"";let i=n[0],s=n[n.length-1];if(typeof i.start!=="number"||typeof s.end!=="number")return"";return ee(e,i.start,s.end)??""}function qs(e,t){if(t.generator)return;let n=t.body;if(!n||typeof n!=="object"||!("type"in n))return;let i=bc(e,t),s=t.async?"async ":"",o=(c,p)=>c&&typeof c==="object"&&("type"in c)&&c.type==="ObjectExpression"?`(${p})`:p;if(n.type!=="BlockStatement"){let c=sn(e,n);return c===void 0?void 0:`${s}(${i}) => ${o(n,c)}`}let a=n.body;if(a.length===0)return`${s}(${i}) => {}`;if(a.length===1){let c=a[0];if(c&&typeof c==="object"&&"type"in c&&c.type==="ReturnStatement"){let p=c.argument;if(p){let f=sn(e,p);if(f!==void 0)return`${s}(${i}) => ${o(p,f)}`}}}return}function Hs(e,t,n){let i=sn(t,n);if(!i||!n||typeof n!=="object"||!("type"in n))return;let s="expression";if(n.type==="Literal"||n.type==="UnaryExpression")s="literal";else if(n.type==="TemplateLiteral")s=n.expressions.length===0?"literal":"expression";else if(n.type==="ArrayExpression")s="array";else if(n.type==="ObjectExpression")s="object";else if(n.type==="ArrowFunctionExpression"||n.type==="FunctionExpression"||n.type==="FunctionDeclaration")s="function";let o={raw:i,kind:s};if(s==="literal"||s==="array"||s==="object"){let a=ii(e,n);if(a.ok)o.value=a.value}return o}function ii(e,t){if(!t||typeof t!=="object"||!("type"in t))return{ok:!1};if(t.type==="Literal"){let n=t.value;return typeof n==="bigint"?{ok:!1}:{ok:!0,value:n}}if(t.type==="UnaryExpression"){let n=t,i=n.argument;if(!i||typeof i!=="object"||!("type"in i)||i.type!=="Literal")return{ok:!1};let s=i.value;if(typeof s==="number"){if(n.operator==="-")return{ok:!0,value:-s};if(n.operator==="+")return{ok:!0,value:s}}if(typeof s==="boolean"&&n.operator==="!")return{ok:!0,value:!s};return{ok:!1}}if(t.type==="TemplateLiteral"){let n=t;if(n.expressions.length>0||n.quasis.length!==1)return{ok:!1};return{ok:!0,value:n.quasis[0].value.cooked??n.quasis[0].value.raw}}if(t.type==="ArrayExpression"){let n=t,i=[];for(let s of n.elements){if(!s)return{ok:!1};let o=ii(e,s);if(!o.ok)return{ok:!1};i.push(o.value)}return{ok:!0,value:i}}if(t.type==="ObjectExpression"){let n=t,i={};for(let s of n.properties){if(s.type!=="Property"||s.computed)return{ok:!1};let o=e.getPropertyName(s.key);if(!o)return{ok:!1};let a=ii(e,s.value);if(!a.ok)return{ok:!1};i[o]=a.value}return{ok:!0,value:i}}return{ok:!1}}var Tc=/[-_.:/\s]+/;function si(e){return`${e.split(Tc).map((i)=>i.charAt(0).toUpperCase()+i.slice(1)).join("")}Context`}function Js(e,t,n,i){if(!n||typeof n!=="object"||!("type"in n))return null;if(n.type==="ObjectExpression"){let s=[];if(!Zt(n))return null;let o=n;for(let a of o.properties){if(a.type!=="Property")continue;let c=t.getPropertyName(a.key);if(!c)continue;let p="any",f;if(Fe(a.value)){let d=a.value.name,g=t.findVariableTypeAndDescription(d);if(g)p=g.type,f=g.description;else He(e,"context-any-type",c,`Context "${i}" property "${c}" has no type annotation; defaulted to "any".`,oe(e,a))}else if(a.value&&typeof a.value==="object"&&"type"in a.value&&(a.value.type==="ArrowFunctionExpression"||a.value.type==="FunctionExpression"))p=`(${a.value.params?.map((v)=>{if(Fe(v))return`${v.name||"arg"}: any`;return"arg: any"}).join(", ")||""}) => any`;else if(rt(a.value))p=a.value.value==null?"null":typeof a.value.value;s.push({name:c,type:p,description:f,optional:!1})}return{key:i,typeName:si(i),properties:s,description:void 0}}else if(Fe(n)){let s=n.name,o=t.findVariableTypeAndDescription(s);if(o)return{key:i,typeName:si(i),properties:[{name:s,type:o.type,description:o.description,optional:!1}]};return He(e,"context-any-type",s,`Context "${i}" variable "${s}" has no type annotation; defaulted to "any".`,oe(e,n)),{key:i,typeName:si(i),properties:[{name:s,type:"any",description:void 0,optional:!1}]}}return null}function Ys(e){let t=e.callee;if(!t||typeof t!=="object"||!("type"in t))return null;let n=t.type==="Identifier"&&t.name==="Symbol",i=t.type==="MemberExpression"&&!t.computed&&t.object.type==="Identifier"&&t.object.name==="Symbol"&&t.property.type==="Identifier"&&t.property.name==="for";if(!n&&!i)return null;let s=e.arguments[0];if(!s||typeof s!=="object"||!("type"in s))return"";if(s.type==="Literal"&&typeof s.value==="string")return s.value;if(s.type==="TemplateLiteral"&&s.quasis?.length===1)return s.quasis[0].value.cooked??"";return""}function Qs(e,t,n=0){if(!t||typeof t!=="object"||!("type"in t))return{kind:"unresolved"};let i=t;if(i.type==="Literal"||i.type==="TemplateLiteral"){let s=Bs(i);return s==null?{kind:"unresolved"}:{kind:"resolved",key:s}}if(i.type==="CallExpression"||i.type==="NewExpression"){let s=Ys(i);return s==null?{kind:"unresolved"}:{kind:"resolved",key:s}}if(i.type==="Identifier"){if(n>=5)return{kind:"unresolved"};let s=Gs(e,i.name);if(s&&typeof s==="object"&&"type"in s){let a=s;if((a.type==="CallExpression"||a.type==="NewExpression")&&Ys(a)==="")return{kind:"resolved",key:i.name};return Qs(e,a,n+1)}let o=e.valueImportBindingsByLocalName.get(i.name);if(o)return{kind:"pending",importSource:o.source,importedName:o.importedName};return{kind:"unresolved"}}return{kind:"unresolved"}}function Zs(e,t,n,i){if(!n||typeof n!=="object"||!("type"in n)||n.type!=="CallExpression")return;let s=n,o=s.arguments[0];if(!o)return;let a=Qs(e,o);if(a.kind==="unresolved"||a.kind==="resolved"&&!a.key){let d=e.componentFilePath?` in ${e.componentFilePath}`:"";console.warn(`Warning: Could not resolve setContext key${d}. Use a string literal, const-bound string, or Symbol(). Skipping context type generation.`);return}let c=s.arguments[1];if(!c)return;if(a.kind==="pending"){let d=Js(e,t,c,"");if(d)e.pendingContextKeyCandidates.push({importSource:a.importSource,importedName:a.importedName,properties:d.properties,description:d.description});return}let p=a.key,f=Js(e,t,c,p);if(f&&!e.contexts.has(p))e.contexts.set(p,f)}function ri(e){return typeof e==="string"?JSON.stringify(e):String(e)}function Ct(e,{name:t,detail:n,has_argument:i,description:s,deprecated:o,tags:a,source:c}){if(t===void 0)return;let p=!i&&!n?"null":Se(n),f=s,d=e.events.get(t);if(d?.type==="forwarded")e.events.set(t,{type:"dispatched",name:t,detail:p,description:f||d.description,deprecated:o??d.deprecated,tags:a??d.tags,source:c||d.source});else if(d){let g=d.tags??a;e.events.set(t,{...d,detail:d.detail===void 0?p:d.detail,description:d.description||f,deprecated:d.deprecated??o,tags:g,source:c||d.source})}else e.events.set(t,{type:"dispatched",name:t,detail:p,description:f,deprecated:o,tags:a,source:c})}function er(e,t){let n=t.arguments[0],i=Qn(n,"CustomEvent");if(!i&&!Qn(n,"Event"))return;let s=n.arguments[0],o=rt(s)?s.value:void 0;if(o==null)return;let a=i?n.arguments[1]:void 0,c=!1,p;if(Zt(a)){let f=a.properties.find((d)=>d.type==="Property"&&Fe(d.key)&&d.key.name==="detail");if(f?.type==="Property")c=!0,p=rt(f.value)?f.value.value:void 0}return Ct(e,{name:String(o),detail:p==null?"":ri(p),has_argument:c,source:oe(e,t)}),String(o)}function ai(e,t,n=!1){if(e.length===0)return"null";let i=e.map(({name:s,type:o,description:a,optional:c,default:p})=>{let f=c?"?":"",d=a||"";if(p&&d)d=`${d} @default ${p}`;else if(p)d=`@default ${p}`;if(d){if(n)return`/** ${d} */
|
|
4
|
+
${s}${f}: ${o};`;return`/** ${d} */ ${s}${f}: ${o};`}return`${s}${f}: ${o};`}).join(n?`
|
|
5
|
+
`:" ");return n?`{
|
|
6
|
+
${i}
|
|
7
|
+
}`:`{ ${i} }`}var Ec=/[A-Za-z_$][\w$]*/g;function Sc(e,t){if(!t)return!1;let n=new Set(t[0].split(",").map((i)=>i.trim()));for(let[i]of e.matchAll(Ec))if(n.has(i))return!0;return!1}function oi(e,t){if(t===void 0)return;return e.runesPropsDeclarationMetadataByDeclaratorStart.get(t)}function tr(e,t,n){return oi(e,t)?.props.get(n)}function nr(e){if(!e||typeof e!=="object"||!("type"in e))return;if(e.type==="Identifier"&&"name"in e&&typeof e.name==="string")return e.name;if(e.type==="TSQualifiedName"&&"right"in e&&e.right&&typeof e.right==="object"&&"name"in e.right&&typeof e.right.name==="string")return e.right.name;return}function ir(e){if(!e||typeof e!=="object"||!("type"in e))return;if(e.type==="Identifier"&&"name"in e&&typeof e.name==="string")return e.name;if(e.type==="TSQualifiedName"&&"left"in e&&e.left&&typeof e.left==="object")return ir(e.left);return}function rn(e,t){let n=t?.start,i=t?.end;if(n===void 0||i===void 0)return;return ee(e,n+1,i)?.trim()}function sr(e,t){let n=t?.start,i=t?.end;if(n===void 0||i===void 0)return;return ee(e,n,i)?.trim()}function Ce(e,t,n,i,s=new Set){if(!t?.type)return;switch(t.type){case"TSInterfaceDeclaration":Ce(e,{type:"TSTypeLiteral",members:t.body?.body},n,i,s);return;case"TSTypeAliasDeclaration":case"TSParenthesizedType":case"TSTypeAnnotation":Ce(e,t.typeAnnotation,n,i,s);return;case"TSIntersectionType":case"TSUnionType":for(let o of t.types??[])Ce(e,o,n,i,s);return;case"TSTypeLiteral":for(let o of t.members??[]){if(o?.type!=="TSPropertySignature")continue;Ce(e,o.typeAnnotation?.typeAnnotation,n,i,s)}return;case"TSTypeReference":{let o=ir(t.typeName);if(o){if(e.typeImportBindingsByLocalName.has(o))n.add(o);let a=e.localTypeDeclarationsByName.get(o);if(a&&!s.has(o))i.add(o),s.add(o),Ce(e,a.node,n,i,s),s.delete(o)}if("typeParameters"in t&&t.typeParameters&&typeof t.typeParameters==="object"){let a=t.typeParameters;for(let c of a.params??[])Ce(e,c,n,i,s)}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 o of Object.values(t)){if(!o||typeof o!=="object")continue;if(Array.isArray(o)){for(let a of o){if(!a||typeof a!=="object"||!("type"in a))continue;Ce(e,a,n,i,s)}continue}if("type"in o)Ce(e,o,n,i,s)}}function Cc(e,t){let n=new Map;for(let i of Array.from(t).sort()){let s=e.typeImportBindingsByLocalName.get(i);if(!s)continue;let o=n.get(s.source)??{default:[],named:[],namespace:[]};if(s.specifierType==="default")o.default.push(s.localName);else if(s.specifierType==="namespace")o.namespace.push(s.localName);else o.named.push({imported:s.importedName,local:s.localName});n.set(s.source,o)}return Array.from(n.entries()).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>{if(s.namespace.length>0)return s.namespace.map((p)=>`import type * as ${p} from "${i}";`).join(`
|
|
8
|
+
`);let o=s.named.map(({imported:p,local:f})=>{if(!p||p===f)return f;return`${p} as ${f}`}),a=s.default[0],c=o.length>0?`{ ${o.join(", ")} }`:"";if(a&&c)return`import type ${a}, ${c} from "${i}";`;if(a)return`import type ${a} from "${i}";`;return`import type ${c} from "${i}";`})}function rr(e){let t=e.pendingCallDefaultCandidates.length>0?e.pendingCallDefaultCandidates.slice():void 0,n=e.pendingContextKeyCandidates.length>0?e.pendingContextKeyCandidates.slice():void 0,i={...t?{pendingCallDefaultCandidates:t}:{},...n?{pendingContextKeyCandidates:n}:{}},s=t!==void 0||n!==void 0;if(e.typedRunesPropsDeclarations.length!==1)return s?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],...i}:void 0;let[o]=e.typedRunesPropsDeclarations;if(!o.canonicalType)return s?{canonicalPropNames:[],localTypeDeclarations:[],typeImportStatements:[],...i}:void 0;let a=Array.from(o.referencedLocalTypes).map((c)=>e.localTypeDeclarationsByName.get(c)).filter((c)=>c!==void 0).sort((c,p)=>c.start-p.start).map((c)=>c.code);return{canonicalPropsType:o.canonicalType,canonicalPropNames:Array.from(o.props.keys()).sort(),localTypeDeclarations:a,typeImportStatements:Cc(e,o.referencedImportedTypes),referencesComponentGenerics:Sc(o.canonicalType,e.generics),...i}}var wc=/^[A-Za-z_$][\w$]*/,kc=/[A-Za-z_$][\w$]*/g,ar=/^(?:const|in|out)\s+/;function wt(e){let t=[],n=0,i=0;for(let s=0;s<e.length;s++){let o=e[s];if(o==="<"||o==="("||o==="["||o==="{")n++;else if(o===">"||o===")"||o==="]"||o==="}")n=Math.max(n-1,0);else if(o===","&&n===0)t.push(e.slice(i,s)),i=s+1}return t.push(e.slice(i)),t}function or(e){let t=wt(e).map((i)=>i.trim()).filter((i)=>i.length>0);if(t.length===0)return null;return[t.map((i)=>{let s=i;while(ar.test(s))s=s.replace(ar,"");return s.match(wc)?.[0]??i}).join(", "),t.join(", ")]}function lr(e,t,n){let i=e.scriptGenericsAttribute?.value;if(!i)return;for(let[s]of i.matchAll(kc)){if(e.typeImportBindingsByLocalName.has(s))t.add(s);if(n.has(s))continue;let o=e.localTypeDeclarationsByName.get(s);if(!o)continue;n.add(s),Ce(e,o.node,t,n)}}var Pc=/\n/,Ac=/\r$/,ft=/^\s+/,Ic=/\s/,Nc=/^@[^\s/]+(?=\s|$)/,Dc=/^@(\S+)\s*/;function Lc(e){let t=[],n=0;for(let i of e.split(Pc))t.push({text:i.replace(Ac,""),start:n}),n+=i.length+1;return t}function Rc(e,t){let n=e.replace(ft,""),i=!1;if(t)n=n.slice(3),i=!0;else if(n.startsWith("*")&&!n.startsWith("*/"))n=n.slice(1),i=!0;let s=n.match(ft)?.[0]??"";n=n.slice(s.length);let o=n.trimEnd(),a=o.endsWith("*/")?o.slice(0,-2):n;return{indent:i?s.slice(1):s,separator:s,content:a}}function Mc(e){let t=[],n=Lc(e),i=null,s=0;for(let o of n){if(i===null){let f=o.text.replace(ft,"");if(!f.startsWith("/**")||f.startsWith("/***"))continue;i=[],s=o.start+(o.text.length-f.length)}let{indent:a,separator:c,content:p}=Rc(o.text,i.length===0);if(i.push({raw:o.text,start:o.start,number:i.length,indent:a,separator:c,content:p}),o.text.trimEnd().endsWith("*/"))t.push({start:s,lines:i}),i=null}return t}function Oc(e){let t=e;if(t.length>0&&t[0].content==="")t=t.slice(1);if(t.length>0&&t[t.length-1].content==="")t=t.slice(0,-1);return t}function $c(e){let t=[[]],n=!1;for(let i of e){if(Nc.test(i.content)&&!n)t.push([i]);else t[t.length-1].push(i);if(i.content.split("```").length%2===0)n=!n}return t}function cr(e){return e.map((t)=>t.indent+t.content).join(`
|
|
9
|
+
`)}function Bc(e,t){let n=t;while(n<e.length-1&&e[n].content.trim()==="")n++;if(e[n].content[0]!=="{")return null;let i=0,s=[],o=n;for(;o<e.length;o++){let p=e[o].content,f=0;for(let d of p){if(d==="{")i++;else if(d==="}")i--;if(f++,i===0)break}if(s.push(f),i===0)break}if(i!==0)return null;let a=o;return{type:s.map((p,f)=>{let d=n+f,g=e[d].content.slice(0,p);return e[d].content=e[d].content.slice(p).replace(ft,""),f===0?g:e[d].indent+g}).join(`
|
|
10
|
+
`).slice(1,-1),endIndex:a}}function Fc(e){let t=e.content.match(ft)?.[0]??"",n=e.content.slice(t.length),i=0,s=0;for(let f of n){if(i===0&&Ic.test(f))break;if(f==="[")i++;if(f==="]")i--;s++}let o=i===0?n.slice(0,s):"";if(!o)return null;let a=o,c=!1,p;if(o.startsWith("[")&&o.endsWith("]")){c=!0;let d=o.slice(1,-1).split("=");if(a=d[0].trim(),d.length>1)p=d.slice(1).join("=").trim();if(!a)return null}if(a.length>1&&(a[0]==='"'||a[0]==="'")&&a[a.length-1]===a[0])a=a.slice(1,-1);return e.content=n.slice(s).replace(ft,""),{name:a,optional:c,default:p}}function Vc(e){let t=e[0],n=t.content.match(Dc),i=n?n[1]:"",s=n?t.content.slice(n[0].length):t.content,o=s.trimEnd(),a=e.slice(1).map((_)=>_.separator+_.content),c=(o?[o,...a]:a).join(`
|
|
11
|
+
`);t.content=s,t.tag=i;let p=Bc(e,0),f=p?.type??"",d=0;if(p){d=p.endIndex;while(d<e.length-1&&e[d].content.trim()==="")d++}let g=Fc(e[d]),v=cr(e.slice(p?p.endIndex:0));return{tag:i,name:g?.name??"",type:f,optional:g?.optional??!1,default:g?.default,description:v,raw:c,lines:e}}function jc(e,t){let n=Oc(e);n.forEach((o,a)=>{o.number=a});let i=$c(n),s=i.slice(1).map(Vc);return{description:cr(i[0]),tags:s,start:t,lines:n}}function kt(e){return Mc(e).map(({start:t,lines:n})=>jc(n,t))}var qc=null;function Hc(e,t,n){let i={value:void 0,replace:!1};if(!n||typeof n!=="object"||!("type"in n))return i;if(n.type==="Identifier")i.value=n.name,i.replace=!0;else if(n.type==="Literal")i.value=String(n.value);else if(n.type==="MemberExpression")i.value=tn(e,t,n);else if((n.type==="ObjectExpression"||n.type==="TemplateLiteral")&&"start"in n&&"end"in n&&typeof n.start==="number"&&typeof n.end==="number")i.value=ee(e,n.start,n.end);return i}function pr(e,t,n){let i={};for(let s of n.properties){if(s.type!=="Property"||s.computed)continue;let o=t.getPropertyName(s.key);if(!o)continue;i[o]=Hc(e,t,s.value)}return i}function Uc(e,t){if(!t||typeof t!=="object"||!("type"in t))return null;if(t.type==="Identifier"){let o=t,a=e.propLocalToPublicName.get(o.name);if(!a)return null;return{publicName:a,trackingName:o.name}}if(t.type!=="MemberExpression")return null;let n=t,i=n.object&&typeof n.object==="object"&&"type"in n.object&&n.object.type==="Identifier"?n.object.name:void 0;if(!i||!e.wholePropsLocals.has(i))return null;let s;if(!n.computed&&n.property&&typeof n.property==="object"&&"type"in n.property){if(n.property.type==="Identifier")s=n.property.name;else if(n.property.type==="Literal"&&n.property.value!=null)s=String(n.property.value)}else if(n.computed&&n.property&&typeof n.property==="object"&&"type"in n.property&&n.property.type==="Literal"&&"value"in n.property&&n.property.value!=null)s=String(n.property.value);if(!s)return null;return{publicName:s,trackingName:s}}function ur(e,t){let n=t;if(n&&typeof n==="object"&&"type"in n&&n.type==="ChainExpression")n=n.expression;if(!n||typeof n!=="object"||!("type"in n)||n.type!=="CallExpression")return null;let i=n;if(!i.callee||typeof i.callee!=="object"||!("type"in i.callee))return null;let s=Uc(e,i.callee);if(!s)return null;return{...s,arguments:i.arguments}}function Pt(e,{slot_name:t,slot_props:n,slot_fallback:i,slot_description:s,slot_deprecated:o,slot_tags:a,source:c}){let p=t===void 0||t==="",f=p?qc:t??"",d=Se(i),g=n===void 0||n===""?void 0:n,v=s?.trim()||void 0;if(e.slots.has(f)){let _=e.slots.get(f);if(_)e.slots.set(f,{..._,default:_.default??p,fallback:d,slot_props:_.slot_props===void 0?g:_.slot_props,description:_.description||v,deprecated:_.deprecated??o,tags:_.tags||a,source:c||_.source})}else e.slots.set(f,{name:f,default:p,fallback:d,slot_props:n,description:v,deprecated:o,tags:a,source:c})}var Gc=/\s*=\s*/;function dr(e){let t=e.indexOf("<");if(t===-1||!e.endsWith(">"))return e;let n=e.slice(0,t),i=e.slice(t+1,-1),s=wt(i).map((o)=>o.trim().replace(Gc," = ")).join(", ");return`${n}<${s}>`}var li=/^\s*$/,Wc=/;$/,zc=/^-\s*/;function at(e){if(e===void 0)return;let t=e.replace(zc,"").trim();return t===""?"":t}function At(e){if(!e||e.length===0)return;return e[0].content}var hr=new Set(["since","example"]);function Kc(e){let t=e.trim();return t===""?!0:t}function fr(e,t){return Kc(`${e??""}${t?` ${t}`:""}`)}function Xc(e){let t=e.trim().replace(Wc,"").trimEnd();if(!t.startsWith("{")||!t.endsWith("}"))return!1;let n=0,i=null;for(let s=0;s<t.length;s++){let o=t[s];if(i!==null){if(o==="\\"){s++;continue}if(o===i)i=null;continue}if(o==='"'||o==="'"||o==="`"){i=o;continue}if(o==="{"||o==="["||o==="(")n++;else if(o==="}"||o==="]"||o===")"){if(n--,n===0&&s<t.length-1)return!1}}return n===0}function Jc(e){let t=e;if(!t.startsWith("/*"))t=`/*${t}`;if(!t.endsWith("*/"))t+="*/";return t}function ci(e){let t=e[0]?.tags??[],n=new Set(["type","param","returns","return","extends","extendProps","restProps","slot","snippet","event","typedef","callback","bindable","deprecated"]),i,s=[],o,a,c,p=[],f=[];for(let d of t)if(d.tag==="type")i=d;else if(d.tag==="param")s.push(d);else if(d.tag==="returns"||d.tag==="return")o=d;else if(d.tag==="deprecated")c??=fr(d.name,d.description);else if(hr.has(d.tag))f.push(d);else if(d.tag==="bindable"){if(d.type)continue;let g=`${d.name}${d.description?` ${d.description}`:""}`.trim();if(g==="readonly"||g==="writable")a??=g}else if(!n.has(d.tag))p.push(d);return{type:i,param:s,returns:o,binding:a,deprecated:c,additional:p,passthrough:f,description:e[0]?.description}}function Yc(e){if(!e||e.length===0)return;let t=e[e.length-1];return t&&typeof t==="object"&&"value"in t?t:void 0}function Qc(e,t,n){if(!t||t.length===0||n===void 0||!e.source)return;for(let i=t.length-1;i>=0;i--){let s=t[i];if(!s||typeof s!=="object"||!("value"in s)||!("end"in s))continue;if(typeof s.end!=="number")continue;let o=e.source.slice(s.end,n);if(li.test(o))return s}return}function Ye(e,t,n){if(!n?.leadingComments)return;let i=Qc(e,n.leadingComments,n.start);if(!i)return;return Zc(t,[i])}function mr(e,t,n){if(!n?.leadingComments)return;return Ye(e,t,n)}function Zc(e,t){if(!t)return;let n=Yc(t);if(!n)return;let i=kt(Jc(n.value)),{type:s,param:o,returns:a,binding:c,deprecated:p,additional:f,passthrough:d,description:g}=ci(i),v,_,S,k;if(s)v=e.aliasType(s.type);if(o.length>0)_=o.filter((V)=>!V.name.includes(".")).map((V)=>({name:V.name,type:e.aliasType(V.type),description:at(V.description),optional:V.optional||!1}));if(a)S=e.aliasType(a.type);let E=Se(g?.trim());if(E||f.length>0){let V=[];if(E)V.push(E);for(let R of f){let J=`@${R.tag}${R.name?` ${R.name}`:""}${R.description?` ${R.description}`:""}`;V.push(J)}k=V.join(`
|
|
12
|
+
`)}let I=d.length>0?d.map((V)=>({name:V.tag,body:V.raw})):void 0;return{type:v,params:_,returnType:S,description:k,binding:c,deprecated:p,tags:I}}function yr(e,t,n=e.source){if(!n)return;for(let{tags:i,description:s,lines:o}of kt(n)){let a,c,p,f,d,g,v=[],_=[],S,k,E,I=[],V,R,J=[],B,Z=!1,Y=!0,r=[],l,u=new Map,m=new Set,y=new Set;for(let P of i)if(P.lines.length>0)m.add(P.lines[0].number);for(let P of o)if(!P.tag&&P.content&&P.content.trim()!=="}")u.set(P.number,P.content);let x=(P)=>{if(!P||P.length===0)return;let M=P[0].number,j=[],H=[],X=!1;for(let F=M-1;F>=0;F--){if(m.has(F))break;let z=u.get(F);if(z)j.unshift(z),H.unshift(F),X=!0;else if(X){let U=o[F];if(!(!U||!U.tag&&(!U.content||U.content.trim()==="")))break}}if(j.length===0)return;for(let F of H)y.add(F);return j.join(`
|
|
13
|
+
`).trim()},b=()=>{if(a!==void 0){let P=c&&c!=="object"&&c!=="Object"?c:void 0,M;if(P)M=P;else if(_.length>0)M=ai(_,a,!0);else M=c||"";if(g!==void 0){let j;for(let F of i){let z=F.lines[0]?.number;if(typeof z!=="number")continue;if(z<=g)continue;if(F.tag==="property"||F.tag==="type")continue;j=z;break}let H=[],X=Array.from(u.keys()).sort((F,z)=>F-z);for(let F of X){if(F<=g)continue;if(j!==void 0&&F>=j)continue;if(y.has(F))continue;let U=u.get(F)?.trim();if(U)H.push(U),y.add(F)}if(H.length>0){let F=H.join(`
|
|
14
|
+
`);p=p?`${p}
|
|
15
|
+
${F}`:F}}Ct(e,{name:a,detail:M,has_argument:!1,description:p,deprecated:f,tags:v.length>0?v:void 0,source:d}),e.eventDescriptions.set(a,p),e.jsDocEventNames.add(a),e.jsDocEventSources.set(a,d),_.length=0,a=void 0,c=void 0,p=void 0,f=void 0,d=void 0,g=void 0,v=[]}},w=()=>{if(S!==void 0){let P,M;if(I.length>0)P=ai(I,void 0,!0),M=`type ${S} = ${P};`;else if(k)P=k,M=Xc(P)?`interface ${S} ${P}`:`type ${S} = ${P};`;else P="{}",M=`type ${S} = ${P};`;e.typedefs.set(S,{type:P,name:S,description:Se(E),ts:M}),I.length=0,S=void 0,k=void 0,E=void 0}},C=()=>{if(V!==void 0){let j=`(${J.map(({name:X,type:F,optional:z})=>`${X}${z?"?":""}: ${F}`).join(", ")}) => ${B||"void"}`,H=`type ${V} = ${j};`;e.typedefs.set(V,{type:j,name:V,description:Se(R),ts:H}),J.length=0,B=void 0,V=void 0,R=void 0}},T=i.some((P)=>P.tag==="slot"||P.tag==="snippet"),A=i.some((P)=>P.tag==="extends"||P.tag==="extendProps");for(let{tag:P,type:M,name:j,description:H,optional:X,default:F,raw:z,lines:U}of i){let ae=t.aliasType(M),be=x(U);switch(P){case"extends":case"extendProps":if(e.extends={interface:j,import:ae},Y)Y=!1;break;case"restProps":{let ne=j?H?`${j} ${H}`:j:H,se=at(ne)||be;if(!se&&Y&&!Z&&s)se=s,Z=!0;if(e.rest_props={type:"Element",name:ae,description:se||void 0},Y)Y=!1;break}case"slot":case"snippet":{let Te=at(At(U));if(!Te&&Y&&!Z&&s)Te=s,Z=!0;if(!Te&&r.length===0)Te=be;if(Y)Y=!1;Pt(e,{slot_name:j,slot_props:ae,slot_description:Te||void 0,slot_deprecated:l,slot_tags:r.length>0?[...r]:void 0,source:ni(e,U)}),r.length=0,l=void 0;break}case"event":{if(b(),a=j,c=ae,g=U.length>0?U[0].number:void 0,p=at(At(U))||be,!p&&Y&&!Z&&s)p=s,Z=!0;if(d=ni(e,U),Y)Y=!1;break}case"type":if(a!==void 0)c=ae;break;case"param":if(V!==void 0)J.push({name:j,type:ae,optional:X||!1});break;case"returns":case"return":if(V!==void 0)B=ae;break;case"property":{let ne={name:j,type:ae,description:at(At(U)),optional:X||!1,default:F};if(a!==void 0)_.push(ne);else if(S!==void 0)I.push(ne);break}case"typedef":{if(w(),S=dr(j),k=ae,E=at(At(U))||be,!E&&Y&&!Z&&s)E=s,Z=!0;if(Y)Y=!1;break}case"callback":{if(C(),V=dr(j),R=at(At(U))||be,!R&&Y&&!Z&&s)R=s,Z=!0;if(Y)Y=!1;break}case"generics":if(e.generics=[j,ae],Y)Y=!1;break;case"template":{let ne=j;if(ae)ne=`${j} extends ${ae}`;if(F)ne+=` = ${F}`;if(T&&!A){e.deferredSlotBlockGenerics.push({name:j,constraint:ne});break}if(t.accumulateGeneric(j,ne),Y)Y=!1;break}case"deprecated":{let ne=fr(j,H);if(a===void 0)l??=ne;else f??=ne;break}case"enum":case"class":case"implements":case"this":case"namespace":case"memberof":case"module":case"file":case"overview":break;default:{let ne={name:P,body:z};if(a!==void 0&&hr.has(P))v.push(ne);else r.push(ne)}break}}b(),w(),C()}}function ep({hasTypeScriptType:e,hasJSDocType:t,inferredType:n,finalType:i}){if(e)return"typescript";if(t)return"jsdoc";if(n!==void 0)return"default";if(i!==void 0)return"inferred";return"unknown"}function It(e){let t=e.explicitType??e.jsdocType??e.resolvedType??e.typeSeed,n=e.jsdocParams??e.resolvedParams,i=e.jsdocReturnType??e.resolvedReturnType;if(e.isFunctionDeclaration&&t==="() => any"&&i)t=n&&n.length>0?`(${n.map((c)=>`${c.name}${c.optional?"?":""}: ${c.type}`).join(", ")}) => ${i}`:`() => ${i}`;let s=e.jsdocDescription??e.resolvedDescription;if(s===void 0&&t!==void 0)s=e.typedefs?.get(t)?.description;let o=ep({hasTypeScriptType:e.explicitType!==void 0,hasJSDocType:e.jsdocType!==void 0||e.jsdocParams!==void 0||e.jsdocReturnType!==void 0||e.resolvedType!==void 0,inferredType:e.inferredTypeForSource,finalType:t}),a=e.initializerIsFunction||e.isFunctionDeclaration||e.inferIsFunctionFromTypeSignature===!0&&(!!e.jsdocParams?.length||e.jsdocReturnType!==void 0||!!e.jsdocType?.includes("=>")||!!e.resolvedType?.includes("=>")||!!e.explicitType?.includes("=>"));return{type:t,typeSource:o,description:s,params:n,returnType:i,isFunction:a}}function tp(e){if(!e||typeof e!=="object"||!("type"in e))return;let t=String(e.type);if(t!=="InlineComponent"&&t!=="Element")return;let n="name"in e&&typeof e.name==="string"?e.name:void 0;if(!n)return;let i=t==="InlineComponent"?{type:"InlineComponent",name:n}:{type:"Element",name:n};if(t==="Element"&&n==="svelte:element"&&"tag"in e&&typeof e.tag==="string")i.thisValue=e.tag;return i}function _r(e,t){if(e.rest_props!==void 0)return;let n=tp(t);if(n)e.rest_props=n}function fe(e,t,n){if(!t||e.has(t))return;e.set(t,n)}function an(e,t){for(let n=e.activeScopes.length-1;n>=0;n-=1){let i=e.activeScopes[n]?.get(t);if(!i)continue;return i.kind==="prop"?i.publicPropName:void 0}return}function le(e,t=new Set){if(!e||typeof e!=="object"||!("type"in e))return t;switch(e.type){case"Identifier":t.add(e.name);break;case"AssignmentPattern":le(e.left,t);break;case"ArrayPattern":for(let n of e.elements)le(n??void 0,t);break;case"ObjectPattern":for(let n of e.properties)if(n.type==="Property")le(n.value,t);else if(n.type==="RestElement")le(n.argument,t);break;case"RestElement":le(e.argument,t);break}return t}function ui(e,t){let n=le(t);if(!n)return;for(let i of n){let s=an(e,i);if(s)e.reactive_vars.add(s)}}function on(e){if(!e||typeof e!=="object"||!("type"in e))return!1;switch(String(e.type)){case"BlockStatement":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"CatchClause":case"EachBlock":case"ThenBlock":case"CatchBlock":return!0;default:return!1}}function gr(e){if(!e||typeof e!=="object"||!("type"in e))return!1;let t=String(e.type);return t==="FunctionDeclaration"||t==="FunctionExpression"||t==="ArrowFunctionExpression"}function np(e,t){let n=e.scopeDeclarations.get(t);if(!n)n=new Map,e.scopeDeclarations.set(t,n);return n}function ip(e,t,n){let i=[];if(n.id.type==="Identifier")return i.push({kind:"local",name:n.id.name}),i;if(n.id.type!=="ObjectPattern")return i;for(let s of n.id.properties){if(s.type==="RestElement"){if(s.argument.type==="Identifier")i.push({kind:"local",name:s.argument.name});continue}if(s.computed)continue;let o=e.getPropertyName(s.key);if(!o)continue;let a;if(s.value.type==="Identifier")a=s.value.name;else if(s.value.type==="AssignmentPattern"&&s.value.left.type==="Identifier")a=s.value.left.name;if(!a)continue;i.push({kind:"prop",name:a,publicPropName:o})}return i}function pi(e,t,n,i,s){if(!Ms(t))return;let o=s?.allowRunesProps??!1,a=s?.forceProp??!1,c=t;for(let p of c.declarations){if(o&&Ve(Xe(p.init),"$props")){for(let g of ip(e,c,p))fe(g.kind==="prop"?n:i,g.name,g.kind==="prop"?{kind:"prop",publicPropName:g.publicPropName}:{kind:"local"});continue}let f=c.kind==="var"?i:n,d=a?"prop":"local";for(let g of le(p.id))fe(f,g,d==="prop"?{kind:"prop",publicPropName:g}:{kind:"local"})}}function sp(e,t){if("id"in e&&e.id&&typeof e.id==="object"&&"name"in e.id&&typeof e.id.name==="string")fe(t,e.id.name,{kind:"local"});for(let n of e.params)for(let i of le(n))fe(t,i,{kind:"local"})}function rp(e,t,n,i){if(!Array.isArray(t))return;for(let s of t){if(!s||typeof s!=="object"||!("type"in s))continue;switch(s.type){case"VariableDeclaration":pi(e,s,n,i);break;case"FunctionDeclaration":if(s.id?.name)fe(n,s.id.name,{kind:"local"});break;case"ClassDeclaration":if(s.id?.name)fe(n,s.id.name,{kind:"local"});break}}}function ap(e,t,n){if(!n||typeof n!=="object")return;let i="content"in n&&n.content&&typeof n.content==="object"&&"body"in n.content&&Array.isArray(n.content.body)?n.content:("body"in n)&&Array.isArray(n.body)?n:void 0;if(!i||!("body"in i)||!Array.isArray(i.body))return;for(let s of i.body){if(!s||typeof s!=="object"||!("type"in s))continue;switch(s.type){case"ImportDeclaration":for(let o of s.specifiers??[])if(o.local?.name)fe(t.componentScope,o.local.name,{kind:"local"});break;case"VariableDeclaration":pi(e,s,t.componentScope,t.componentScope,{allowRunesProps:!0});break;case"FunctionDeclaration":if(s.id?.name)fe(t.componentScope,s.id.name,{kind:"local"});break;case"ClassDeclaration":if(s.id?.name)fe(t.componentScope,s.id.name,{kind:"local"});break;case"ExportNamedDeclaration":if(!s.declaration||typeof s.declaration!=="object"||!("type"in s.declaration))break;if(s.declaration.type==="VariableDeclaration")pi(e,s.declaration,t.componentScope,t.componentScope,{forceProp:!0});else if(s.declaration.type==="FunctionDeclaration"&&s.declaration.id?.name)fe(t.componentScope,s.declaration.id.name,{kind:"prop",publicPropName:s.declaration.id.name});break}}}function xr(e,t){t.componentScope.clear(),t.scopeDeclarations=new WeakMap,t.activeScopes.length=0,ap(e,t,t.parsed?.instance)}function vr(e){return{varScopeStack:[e.componentScope]}}function br(e,t,n,i){if(!on(i))return;let s=np(t,i),o=n.varScopeStack[n.varScopeStack.length-1]??t.componentScope;switch(String(i.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":sp(i,s);break;case"BlockStatement":rp(e,i.body,s,o);break;case"CatchClause":if("param"in i)for(let c of le(i.param))fe(s,c,{kind:"local"});break;case"EachBlock":{let c=i;for(let p of le(c.context))fe(s,p,{kind:"local"});if(typeof c.index==="string")fe(s,c.index,{kind:"local"});else if(c.index&&"name"in c.index)fe(s,c.index.name,{kind:"local"});break}case"ThenBlock":if("value"in i)for(let c of le(i.value))fe(s,c,{kind:"local"});break;case"CatchBlock":if("error"in i)for(let c of le(i.error))fe(s,c,{kind:"local"});break}if(gr(i))n.varScopeStack.push(s)}function Tr(e,t){if(gr(t))e.varScopeStack.pop()}var op=new Set(["$state","$derived","$effect","$props","$bindable","$inspect","$host"]);function lp(e,t){switch(t?.type){case"MemberExpression":return t.computed||e===t.object;case"MethodDefinition":return!!t.computed;case"MetaProperty":return e===t.meta;case"PropertyDefinition":return t.computed||e===t.value;case"Property":return t.computed||e===t.value;case"ExportSpecifier":case"ImportSpecifier":return e===t.local;case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;default:return!0}}function cp(e,t){for(let n=t.length-1;n>=0;n-=1)if(t[n]?.has(e))return!0;return!1}function pp(e){let t=new Set;if(!e||typeof e!=="object"||!("type"in e))return t;switch(String(e.type)){case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let n=e;if(n.id?.name)t.add(n.id.name);for(let i of n.params??[])le(i,t);break}case"BlockStatement":ln(e.body,t);break;case"CatchClause":le(e.param,t);break;case"EachBlock":{let n=e;if(le(n.context,t),typeof n.index==="string")t.add(n.index);else if(n.index?.name)t.add(n.index.name);break}case"ThenBlock":le(e.value,t);break;case"CatchBlock":le(e.error,t);break}return t}function ln(e,t){if(!Array.isArray(e))return;for(let n of e){if(!n||typeof n!=="object"||!("type"in n))continue;switch(String(n.type)){case"ImportDeclaration":for(let i of n.specifiers??[])if(i.local?.name)t.add(i.local.name);break;case"VariableDeclaration":for(let i of n.declarations??[])le(i.id,t);break;case"FunctionDeclaration":case"ClassDeclaration":{let i=n.id?.name;if(i)t.add(i);break}case"ExportNamedDeclaration":{let i=n.declaration;if(i&&typeof i==="object"&&"type"in i)ln([i],t);break}}}}function di(e,t){if(!e||typeof e!=="object")return!1;let n=[...t],i=!1;return Re(e,{enter(s,o){if(i){this.skip();return}if(on(s))n.push(pp(s));if(o&&s.type==="Identifier"&&op.has(s.name)&&!o.type.startsWith("TS")&&lp(s,o)&&!cp(s.name,n))i=!0,this.skip()},leave(s){if(on(s))n.pop()}}),i}function Er(e){if(!e||typeof e!=="object")return;if("content"in e){let t=e.content,n=t&&typeof t==="object"&&"body"in t?t.body:void 0;if(Array.isArray(n))return n}if("body"in e&&Array.isArray(e.body))return e.body;return}function Sr(e){if(e.runesOptionOverride!==void 0)return e.runesOptionOverride?"runes":"legacy";let t=e.parsed;if(!t)return"legacy";let n=new Set;ln(Er(t.module),n);let i=new Set;return ln(Er(t.instance),i),di(t.module,[n])||di(t.instance,[n,i])||di(t.html,[n,i])?"runes":"legacy"}var up=/[A-Za-z_$][\w$]*/g;function dp(e,t,n){let i=new Map,s=t.typeParameters?.params,o=n.typeArguments?.params;if(!s?.length||!o?.length)return i;for(let a=0;a<s.length;a++){let c=s[a]?.name,p=o[a];if(!c||p?.start===void 0||p?.end===void 0)continue;let f=ee(e,p.start,p.end)?.trim();if(f)i.set(c,f)}return i}function hp(e,t){if(t.size===0)return e;return e.replace(up,(n)=>t.get(n)??n)}function Nt(e,t,n,i,s=new Set){let o=new Map;if(!n?.type)return o;let a=(c)=>{for(let p of c){if(p?.type!=="TSPropertySignature"||p.computed)continue;if(!p.key)continue;let f=e.getPropertyName(p.key);if(!f)continue;let d=p.typeAnnotation?.start,g=p.typeAnnotation?.end;if(d===void 0||g===void 0)continue;let v=ee(t,d+1,g)?.trim();if(!v)continue;o.set(f,{type:v,optional:p.optional===!0,source:oe(t,p)})}};switch(n.type){case"TSTypeLiteral":a(n.members??[]);break;case"TSInterfaceDeclaration":a(n.body?.body??[]);break;case"TSTypeAliasDeclaration":{let c=Nt(e,t,n.typeAnnotation,i,s);for(let[p,f]of c)o.set(p,f);break}case"TSTypeReference":{let c=nr(n.typeName);if(!c||s.has(c))break;let p=i.get(c);if(!p)break;s.add(c);let f=Nt(e,t,p,i,s);s.delete(c);let d=dp(t,p,n);for(let[g,v]of f)o.set(g,d.size===0?v:{...v,type:hp(v.type,d)});break}case"TSIntersectionType":for(let c of n.types??[]){let p=Nt(e,t,c,i,s);for(let[f,d]of p)o.set(f,d)}break;case"TSParenthesizedType":{let c=Nt(e,t,n.typeAnnotation,i,s);for(let[p,f]of c)o.set(p,f);break}}return o}function Cr(e,t,n){if(t.runesPropsDeclarationMetadataByDeclaratorStart.clear(),t.explicitPropTypesByName.clear(),t.explicitVariableTypesByName.clear(),t.typeImportBindingsByLocalName.clear(),t.localTypeDeclarationsByName.clear(),t.typedRunesPropsDeclarations.length=0,!t.source)return;let i=n;t.scriptLanguage=e.resolveScriptLanguage(i),t.customElementTag=i.options?.customElement?.tag,t.runesOptionOverride=i.options?.runes,t.scriptGenericsAttribute=e.resolveScriptGenericsAttribute(i);let s=i.instance?.content?.body??[];for(let o of s){if(!o?.type)continue;if(o.type==="ImportDeclaration"&&o.source?.value)for(let a of o.specifiers??[]){let c=a.local?.name;if(!c)continue;if(!(o.importKind==="type"||a.importKind==="type"))continue;let f,d;if(a.type==="ImportSpecifier")f="named",d=a.imported?.type==="Identifier"?a.imported.name:typeof a.imported?.value==="string"?a.imported.value:void 0;else if(a.type==="ImportDefaultSpecifier")f="default";else if(a.type==="ImportNamespaceSpecifier")f="namespace";if(!f)continue;t.typeImportBindingsByLocalName.set(c,{importedName:d,localName:c,source:String(o.source.value),specifierType:f})}if((o.type==="TSInterfaceDeclaration"||o.type==="TSTypeAliasDeclaration")&&o.id?.name&&o.start!==void 0&&o.end!==void 0)t.localTypeDeclarationsByName.set(o.id.name,{code:ee(t,o.start,o.end)?.trim()??"",node:o,start:o.start});if(o.type==="ExportNamedDeclaration"&&o.declaration?.type==="VariableDeclaration")for(let a of o.declaration.declarations??[]){if(a.id?.type!=="Identifier"||!a.id.name)continue;let c=rn(t,a.id.typeAnnotation);if(c)t.explicitPropTypesByName.set(a.id.name,c)}else if(o.type==="VariableDeclaration")for(let a of o.declarations??[]){if(a.id?.type!=="Identifier"||!a.id.name)continue;let c=rn(t,a.id.typeAnnotation);if(c)t.explicitVariableTypesByName.set(a.id.name,c)}}for(let o of s){if(!o||typeof o!=="object"||!("declarations"in o))continue;for(let a of o.declarations??[]){if(!Ve(Xe(a.init),"$props"))continue;let c=a.id?.typeAnnotation?void 0:$s(a.init),p=a.id?.typeAnnotation?.typeAnnotation??c,f=a.id?.typeAnnotation?rn(t,a.id.typeAnnotation):sr(t,c),d=Nt(e,t,p,new Map(Array.from(t.localTypeDeclarationsByName.entries(),([_,S])=>[_,S.node]))),g=new Set,v=new Set;if(Ce(t,p,g,v),lr(t,g,v),a.start!==void 0){let _={canonicalType:f,props:d,referencedImportedTypes:g,referencedLocalTypes:v};if(t.runesPropsDeclarationMetadataByDeclaratorStart.set(a.start,_),f)t.typedRunesPropsDeclarations.push(_)}}}}function wr(e,t,n){for(let i of n.declarations){if(!Ve(Xe(i.init),"$props"))continue;if(i.id.type==="Identifier"){t.wholePropsLocals.add(i.id.name),t.restPropLocals.add(i.id.name);let a=oi(t,i.start);if(a)for(let[c,p]of a.props)St(e,t,c,{name:c,kind:"let",type:p.type,typeSource:"typescript",isFunction:!1,isFunctionDeclaration:!1,isRequired:!p.optional,constant:!1,reactive:!1,source:p.source});continue}if(i.id.type!=="ObjectPattern")continue;let s=Ye(t,e,n),o=i.id.properties.filter((a)=>{if(a.type!=="Property"||a.computed)return!1;if(!e.getPropertyName(a.key))return!1;if(a.value.type==="Identifier")return!0;return a.value.type==="AssignmentPattern"&&a.value.left.type==="Identifier"}).length;for(let a of i.id.properties){if(a.type==="RestElement"){if(a.argument.type==="Identifier")t.restPropLocals.add(a.argument.name);continue}let c=e.getPropertyName(a.key);if(!c)continue;let p,f;if(a.value.type==="Identifier")p=a.value.name;else{let u=a.value;p=u.left.name,f=u.right}if(!p)continue;if(e.trackPropLocalName(c,p),c==="children")t.snippetPropLocals.add(p);let d=mr(t,e,a)??(o===1?s:void 0),g=tr(t,i.start,c),{init:v,bindable:_}=Xs(f),S=v==null?{isFunction:!1}:Je(e,t,v),{value:k,type:E,isFunction:I,defaultValue:V}=S,R=g?.type===void 0&&d?.type===void 0?S.resolvedType:void 0;if(S.pendingCallDefault)t.pendingCallDefaultCandidates.push({propName:c,location:"props",...S.pendingCallDefault});let{type:J,typeSource:B,description:Z,params:Y,returnType:r,isFunction:l}=It({explicitType:g?.type,typeSeed:E,inferredTypeForSource:E,jsdocType:d?.type,jsdocDescription:d?.description,jsdocParams:d?.params,jsdocReturnType:d?.returnType,resolvedType:R,resolvedDescription:S.resolvedDescription,resolvedParams:S.resolvedParams,resolvedReturnType:S.resolvedReturnType,initializerIsFunction:I,isFunctionDeclaration:!1,inferIsFunctionFromTypeSignature:!0});if(_)t.reactive_vars.add(c);St(e,t,c,{name:c,...p===c?{}:{localName:p},kind:"let",description:Z,binding:d?.binding,deprecated:d?.deprecated,tags:d?.tags,..._?{bindable:!0}:{},type:J,typeSource:B,value:k,defaultValue:V,params:Y,returnType:r,isFunction:l,isFunctionDeclaration:!1,isRequired:v==null&&g?.optional!==!0,constant:!1,reactive:_,source:oe(t,a)})}}}function kr(e,t){if(e.syntaxMode!=="runes")return;for(let[n,i]of Array.from(e.events.entries())){if(i.type!=="dispatched")continue;if(t.has(n)||e.forwardedEvents.has(n))continue;let s=`on${n}`,o=e.props.get(s);if(!o)continue;let a=o.type!==void 0||o.params!==void 0||o.returnType!==void 0,c=i.detail===void 0||i.detail==="undefined"||i.detail==="null"?"() => void":`(detail: ${i.detail}) => void`;e.props.set(s,{...o,description:o.description??i.description,type:a?o.type:c,typeSource:a?o.typeSource:"inferred",isFunction:!0}),e.events.delete(n)}}var Pr=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion","TSInstantiationExpression"]);function cn(e){if(!e||typeof e!=="object")return;Re(e,{enter(t){if(!Pr.has(t.type))return;let n=t.expression;while(n&&Pr.has(n.type))n=n.expression;if(n)this.replace(n)}})}function pn(e,t){let n=t.source?.value;if(typeof n!=="string"||t.importKind==="type")return;for(let i of t.specifiers??[]){if(i.type!=="ImportSpecifier"||i.importKind==="type")continue;let s=i.local?.name;if(!s)continue;let o=i.imported?.name??(typeof i.imported?.value==="string"?i.imported.value:s);e.valueImportBindingsByLocalName.set(s,{localName:s,importedName:o,source:n})}}function hi(e,t){if(!t)return;Re(t,{enter(n){if(n.type==="ImportDeclaration")pn(e,n);if(n.type==="FunctionDeclaration"){let i=n;if(i.id?.name)e.funcDecls.set(i.id.name,i)}}})}function Ir(e,t,n){let i=t+1;while(i<e.length){if(e[i]==="\\"){i+=2;continue}if(e[i]===n)return i+1;i++}return i}function Nr(e,t){let n=t+1,i=0;while(n<e.length){let s=e[n];if(s==="\\"){n+=2;continue}if(i===0){if(s==="`")return n+1;if(s==="$"&&e[n+1]==="{"){i=1,n+=2;continue}n++;continue}if(s==="{")i++;else if(s==="}")i--;else if(s==='"'||s==="'"){n=Ir(e,n,s);continue}else if(s==="`"){n=Nr(e,n);continue}n++}return n}function fp(e,t){let n=[],i=e.length,s=0;while(s<i){let o=e[s];if(o==='"'||o==="'"){s=Ir(e,s,o);continue}if(o==="`"){s=Nr(e,s);continue}if(o==="/"&&e[s+1]==="/"){let a=s+2;while(a<i&&e[a]!==`
|
|
16
|
+
`)a++;s=a;continue}if(o==="/"&&e[s+1]==="*"){let a=s,c=s+2;while(c<i&&!(e[c]==="*"&&e[c+1]==="/"))c++;let p=Math.min(c+2,i),f=e.slice(a,p);n.push({end:p+t,isJsDoc:f.startsWith("/**")&&f.length>4,text:f}),s=p;continue}s++}return n}function Ar(e,t,n){if(!e||typeof e!=="object"||!("type"in e))return;let i=e;if(i.type==="FunctionDeclaration"){if(i.id?.type==="Identifier"&&i.id.name)n.push({name:i.id.name,start:t});return}if(i.type==="VariableDeclaration"){for(let s of i.declarations??[])if(s?.id?.type==="Identifier"&&s.id.name)n.push({name:s.id.name,start:t})}}function mp(e){let t=[];for(let n of e){if(!n||typeof n!=="object"||!("type"in n))continue;let i=n;if(i.start===void 0)continue;if(i.type==="ExportNamedDeclaration"&&i.declaration)Ar(i.declaration,i.start,t);else Ar(i,i.start,t)}return t}function yp(e,t,n){let i;for(let s of e){if(s.end>t)break;if(!s.isJsDoc)continue;if(!li.test(n.slice(s.end,t)))continue;i=s}return i}function Dr(e,t){let n=new Map;if(!e.source)return n;let i=[e.parsed?.module,e.parsed?.instance],s=[],o=[];for(let a of i){let c=a?.content;if(!c?.body||c.start===void 0||c.end===void 0)continue;s.push(...fp(e.source.slice(c.start,c.end),c.start)),o.push(...mp(c.body))}s.sort((a,c)=>a.end-c.end);for(let a of o){let c=yp(s,a.start,e.source);if(!c)continue;let p=kt(c.text),{type:f,description:d}=ci(p);if(!f)continue;n.set(a.name,{type:t.aliasType(f.type),description:d||f.description})}return n}function Ue(e,t,n){let i=n._,s=!1;function o(c,{next:p,state:f}){p(f)}function a(c,p,f){if(s)return;if(!c.type)return;let d,g={},v={path:p,state:f,next:(S=f)=>{p.push(c);for(let k in c){if(k==="type")continue;let E=c[k];if(E&&typeof E==="object")if(Array.isArray(E)){let I={},V=E.length,R=!1;for(let J=0;J<V;J++){let B=E[J];if(B&&typeof B==="object"){let Z=a(B,p,S);if(Z)I[J]=Z,R=!0}}if(R)g[k]=E.map((J,B)=>I[B]??J)}else{let I=a(E,p,S);if(I)g[k]=I}}if(p.pop(),Object.keys(g).length>0)return Lr(c,g)},stop:()=>{s=!0},visit:(S,k=f)=>{p.push(c);let E=a(S,p,k)??S;return p.pop(),E}},_=n[c.type]??o;if(i){let S;if(d=i(c,{...v,next:(k=f)=>(f=k,S=_(c,{...v,state:k}),S)}),!d&&S)d=S}else d=_(c,v);if(!d){if(Object.keys(g).length>0)d=Lr(c,g)}if(d)return d}return a(e,[],t)??e}function Lr(e,t){let n={},i=Object.getOwnPropertyDescriptors(e);for(let s in i)Object.defineProperty(n,s,i[s]);for(let s in t)n[s]=t[s];return n}var Rr=/^[ \t\r\n]+/;var Mr=/[ \t\r\n]+$/,fi=/[^ \t\r\n]/;var un=/[^\n]/g;var Em=Symbol("uninitialized"),Sm=Symbol("filename"),Cm=Symbol("hmr");var Or="http://www.w3.org/2000/svg",$r="http://www.w3.org/1998/Math/MathML",Br=["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 _i(e,t){if(t.length===0)return null;let i=new jr(t).get(e);return i&&i[0][0]>0.7?i[0][1]:null}var mi=2,yi=3;function _p(e,t){if(e===null&&t===null)throw"Trying to compare two null values";if(e===null||t===null)return 0;return e=String(e),t=String(t),1-gp(e,t)/Math.max(e.length,t.length)}function gp(e,t){let n=[],i=0;for(let s=0;s<=t.length;s++)for(let o=0;o<=e.length;o++){let a;if(s&&o)if(e.charAt(o-1)===t.charAt(s-1))a=i;else a=Math.min(n[o],n[o-1],i)+1;else a=s+o;i=n[o],n[o]=a}return n.pop()}var xp=/[^\w, ]+/;function vp(e,t=2){let n="-"+e.toLowerCase().replace(xp,"")+"-",i=t-n.length,s=[];if(i>0)for(let o=0;o<i;++o)e+="-";for(let o=0;o<n.length-t+1;++o)s.push(n.slice(o,o+t));return s}function Fr(e,t=2){let n={},i=vp(e,t),s=0;for(s;s<i.length;++s)if(i[s]in n)n[i[s]]+=1;else n[i[s]]=1;return n}function Vr(e,t){return t[0]-e[0]}class jr{exact_set={};match_dict={};items={};constructor(e){for(let t=mi;t<yi+1;++t)this.items[t]=[];for(let t=0;t<e.length;++t)this.add(e[t])}add(e){if(e.toLowerCase()in this.exact_set)return!1;let n=mi;for(n;n<yi+1;++n)this._add(e,n)}_add(e,t){let n=e.toLowerCase(),i=this.items[t]||[],s=i.length;i.push(0);let o=Fr(n,t),a=0,c,p;for(c in o)if(p=o[c],a+=Math.pow(p,2),c in this.match_dict)this.match_dict[c].push([s,p]);else this.match_dict[c]=[[s,p]];let f=Math.sqrt(a);i[s]=[f,n],this.items[t]=i,this.exact_set[n]=e}get(e){let t=e.toLowerCase(),n=this.exact_set[t];if(n)return[[1,n]];for(let i=yi;i>=mi;--i){let s=this.__get(e,i);if(s.length>0)return s}return null}__get(e,t){let n=e.toLowerCase(),i={},s=Fr(n,t),o=this.items[t],a=0,c,p,f,d,g;for(c in s)if(p=s[c],a+=Math.pow(p,2),c in this.match_dict)for(f=0;f<this.match_dict[c].length;++f)if(d=this.match_dict[c][f][0],g=this.match_dict[c][f][1],d in i)i[d]+=p*g;else i[d]=p*g;let v=Math.sqrt(a),_=[],S;for(let I in i)S=i[I],_.push([S/(v*o[I][0]),o[I][1]]);_.sort(Vr);let k=[],E=Math.min(50,_.length);for(let I=0;I<E;++I)k.push([_p(_[I][1],n),_[I][1]]);_=k,_.sort(Vr),k=[];for(let I=0;I<_.length;++I)if(_[I][0]===_[0][0])k.push([_[I][0],this.exact_set[_[I][1]]]);return k}}function bp(e,t){return e.start<=t&&t<e.end}function qr(e,t={}){let{offsetLine:n=0,offsetColumn:i=0}=t,s=0,o=e.split(`
|
|
17
|
+
`).map((p,f)=>{let d=s+p.length+1,g={start:s,end:d,line:f};return s=d,g}),a=0;function c(p,f){if(typeof p==="string")p=e.indexOf(p,f??0);if(p===-1)return;let d=o[a],g=p>=d.end?1:-1;while(d){if(bp(d,p))return{line:n+d.line,column:i+p-d.start,character:p};a+=g,d=o[a]}}return c}var Tp=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function gi(e){return Tp.includes(e)||e.toLowerCase()==="!doctype"}var Ep=["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 Hr(e){return Ep.includes(e)}var Sp=["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 Am=[...Sp,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var Cp=["$state","$state.raw","$derived","$derived.by"],Im=[...Cp,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var Ur=/^[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 xi=[],fn,hn="(unknown)",wp="<unknown>",dn,mn=[],kp,Pp=!1,ue;function Gr(e){dn=e,mn=dn.split(`
|
|
18
|
+
`);let t=qr(dn,{offsetLine:1});ue=(n)=>{let i=t(n);if(!i)throw Error("An impossible situation occurred");return i}}var vi,bi=[],Wr=new Map;function zr(e){kp=!1,Pp=!1,wp=hn,dn="",mn=[],fn=(e.filename??hn).replace(/\\/g,"/"),vi=e.warning??(()=>!0),xi=[]}var Ap=/^\t+/;function Ti(e){return e.replace(Ap,(t)=>t.split("\t").join(" "))}function Ip(e,t){let n=mn,i=Math.max(0,e-2),s=Math.min(e+3,n.length),o=String(s+1).length;return n.slice(i,s).map((a,c)=>{let p=i+c===e,f=String(c+i+1).padStart(o," ");if(p){let d=" ".repeat(o+2+Ti(a.slice(0,t)).length)+"^";return`${f}: ${Ti(a)}
|
|
19
|
+
${d}`}return`${f}: ${Ti(a)}`}).join(`
|
|
20
|
+
`)}class Dt{name="CompileDiagnostic";constructor(e,t,n){if(this.code=e,this.message=t,fn!==hn)this.filename=fn;if(n){if(this.position=n,this.start=ue(n[0]),this.end=ue(n[1]),this.start&&this.end)this.frame=Ip(this.start.line-1,this.end.column)}}toString(){let e=`${this.code}: ${this.message}`;if(this.filename){if(e+=`
|
|
21
|
+
${this.filename}`,this.start)e+=`:${this.start.line}:${this.start.column}`}if(this.frame)e+=`
|
|
22
|
+
${this.frame}`;return e}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class Xr extends Dt{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function Lt(e,t,n){let i=bi;if(e)i=Wr.get(e)??bi;if(i&&i.at(-1)?.has(t))return;let s=new Xr(t,n,e&&e.start!==void 0?[e.start,e.end??e.start]:void 0);if(!vi(s))return;xi.push(s)}var Jr=["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 Yr(e,t,n){Lt(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead
|
|
23
|
+
https://svelte.dev/e/legacy_code`)}function Qr(e,t,n){Lt(e,"unknown_code",`${n?`\`${t}\` is not a recognised code (did you mean \`${n}\`?)`:`\`${t}\` is not a recognised code`}
|
|
24
|
+
https://svelte.dev/e/unknown_code`)}function Ei(e,t,n){Lt(e,"element_implicitly_closed",`This element is implicitly closed by the following \`${t}\`, which can cause an unexpected DOM structure. Add an explicit \`${n}\` to avoid surprises.
|
|
25
|
+
https://svelte.dev/e/element_implicitly_closed`)}function Zr(e){Lt(e,"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 ea(e){Lt(e,"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 Np=/^\s*svelte-ignore\s/,ta={"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"},Rt=Jr.concat(Br);function na(e,t,n){let i=Np.exec(t);if(!i)return[];let s=i[0].length;e+=s;let o=[];if(n)for(let a of t.slice(s).matchAll(/([\w$-]+)(,)?/gm)){let c=a[1];if(Rt.includes(c))o.push(c);else{let p=ta[c]??c.replace(/-/g,"_"),f=e+a.index,d=f+c.length;if(Rt.includes(p))Yr({start:f,end:d},c,p);else{let g=_i(c,Rt);Qr({start:f,end:d},c,g)}}if(!a[2])break}else for(let a of t.slice(s).matchAll(/[\w$-]+/gm)){let c=a[0];if(o.push(c),!Rt.includes(c)){let p=ta[c]??c.replace(/-/g,"_");if(Rt.includes(p))o.push(p)}}return o}function ot(e){let t=e.at(0),n=e.at(-1);if(t?.type==="Text")if(!fi.test(t.data))e.shift();else t.data=t.data.replace(Rr,"");if(n?.type==="Text")if(!fi.test(n.data))e.pop();else n.data=n.data.replace(Mr,"")}function ia(e,t){return Ue(t,null,{_(i,{next:s}){delete i.metadata,s()},Root(i,{visit:s}){let{instance:o,module:a,options:c}=i;if(c?.__raw__){let d=i.fragment.nodes.findIndex((g)=>c.end<=g.start);if(d===-1)d=i.fragment.nodes.length;i.fragment.nodes.splice(d,0,c.__raw__)}let p=null,f=null;if(i.fragment.nodes.length>0){let d=i.fragment.nodes.at(0),g=i.fragment.nodes.at(-1);p=d.start,f=g.end;while(/\s/.test(e[p]))p+=1;while(/\s/.test(e[f-1]))f-=1}if(o)delete o.attributes;if(a)delete a.attributes;return{html:{type:"Fragment",start:p,end:f,children:i.fragment.nodes.map((d)=>s(d))},instance:o,module:a,css:t.css?s(t.css):void 0,_comments:t.comments?.length>0?t.comments:void 0}},AnimateDirective(i){return{...i,type:"Animation"}},AwaitBlock(i,{visit:s}){let o={type:"PendingBlock",start:null,end:null,children:i.pending?.nodes.map((p)=>s(p))??[],skip:!0},a={type:"ThenBlock",start:null,end:null,children:i.then?.nodes.map((p)=>s(p))??[],skip:!0},c={type:"CatchBlock",start:null,end:null,children:i.catch?.nodes.map((p)=>s(p))??[],skip:!0};if(i.pending){let p=i.pending.nodes.at(0),f=i.pending.nodes.at(-1);o.start=p?.start??e.indexOf("}",i.expression.end)+1,o.end=f?.end??o.start,o.skip=!1}if(i.then){let p=i.then.nodes.at(0),f=i.then.nodes.at(-1);a.start=o.end??p?.start??e.indexOf("}",i.expression.end)+1,a.end=f?.end??e.lastIndexOf("}",o.end??i.expression.end)+1,a.skip=!1}if(i.catch){let p=i.catch.nodes.at(0),f=i.catch.nodes.at(-1);c.start=a.end??o.end??p?.start??e.indexOf("}",i.expression.end)+1,c.end=f?.end??e.lastIndexOf("}",a.end??o.end??i.expression.end)+1,c.skip=!1}return{type:"AwaitBlock",start:i.start,end:i.end,expression:i.expression,value:i.value,error:i.error,pending:o,then:a,catch:c}},BindDirective(i){return{...i,type:"Binding"}},ClassDirective(i){return{...i,type:"Class"}},Comment(i){return{...i,ignores:na(i.start,i.data,!1)}},ComplexSelector(i,{next:s}){s();let o=[];for(let a of i.children){if(a.combinator)o.push(a.combinator);o.push(...a.selectors)}return{type:"Selector",start:i.start,end:i.end,children:o}},Component(i,{visit:s}){return{type:"InlineComponent",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},ConstTag(i){if(i.expression!==void 0)return i;let s=i,{id:o}={...s.declaration.declarations[0]};return delete o.typeAnnotation,{type:"ConstTag",start:s.start,end:i.end,expression:{type:"AssignmentExpression",start:(s.declaration.start??0)+6,end:s.declaration.end??0,operator:"=",left:o,right:s.declaration.declarations[0].init}}},DeclarationTag(i){return i},KeyBlock(i,{visit:s}){return ot(i.fragment.nodes),{type:"KeyBlock",start:i.start,end:i.end,expression:i.expression,children:i.fragment.nodes.map((o)=>s(o))}},EachBlock(i,{visit:s}){let o=void 0;if(i.fallback){let a=i.fallback.nodes.at(0),c=e.lastIndexOf("{",i.end-1),p=a?.start??c;ot(i.fallback.nodes),o={type:"ElseBlock",start:p,end:c,children:i.fallback.nodes.map((f)=>s(f))}}return ot(i.body.nodes),{type:"EachBlock",start:i.start,end:i.end,children:i.body.nodes.map((a)=>s(a)),context:i.context,expression:i.expression,index:i.index,key:i.key,else:o}},ExpressionTag(i,{path:s}){let o=s.at(-1);if(o?.type==="Attribute"){if(e[o.start]==="{")return{type:"AttributeShorthand",start:i.start,end:i.end,expression:i.expression}}return{type:"MustacheTag",start:i.start,end:i.end,expression:i.expression}},HtmlTag(i){return{...i,type:"RawMustacheTag"}},IfBlock(i,{visit:s}){let o=void 0;if(i.alternate){let c=i.alternate.nodes;if(c.length===1&&c[0].type==="IfBlock"&&c[0].elseif)c=c[0].consequent.nodes;let p=e.lastIndexOf("{",i.end-1),f=c.at(0)?.start??p;ot(i.alternate.nodes),o={type:"ElseBlock",start:f,end:p,children:i.alternate.nodes.map((d)=>s(d))}}let a=i.elseif?i.consequent.nodes[0]?.start??e.lastIndexOf("{",i.end-1):i.start;return ot(i.consequent.nodes),{type:"IfBlock",start:a,end:i.end,expression:i.test,children:i.consequent.nodes.map((c)=>s(c)),else:o,elseif:i.elseif?!0:void 0}},OnDirective(i){return{...i,type:"EventHandler"}},SnippetBlock(i,{visit:s}){return ot(i.body.nodes),{type:"SnippetBlock",start:i.start,end:i.end,expression:i.expression,parameters:i.parameters,children:i.body.nodes.map((o)=>s(o)),typeParams:i.typeParams}},SvelteBoundary(i,{visit:s}){return ot(i.fragment.nodes),{type:"SvelteBoundary",name:"svelte:boundary",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},RegularElement(i,{visit:s}){return{type:"Element",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SlotElement(i,{visit:s}){return{type:"Slot",start:i.start,end:i.end,name:i.name,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},Attribute(i,{visit:s,next:o,path:a}){if(i.value!==!0&&!Array.isArray(i.value)){a.push(i);let c=[s(i.value)];return a.pop(),{...i,value:c}}else return o()},StyleDirective(i,{visit:s,next:o,path:a}){if(i.value!==!0&&!Array.isArray(i.value)){a.push(i);let c=[s(i.value)];return a.pop(),{...i,value:c}}else return o()},SpreadAttribute(i){return{...i,type:"Spread"}},StyleSheet(i,s){return{...i,...s.next(),type:"Style"}},SvelteBody(i,{visit:s}){return{type:"Body",name:"svelte:body",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteComponent(i,{visit:s}){return{type:"InlineComponent",name:"svelte:component",start:i.start,end:i.end,expression:i.expression,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteDocument(i,{visit:s}){return{type:"Document",name:"svelte:document",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteElement(i,{visit:s}){let o=i.tag;if(o.type==="Literal"&&typeof o.value==="string"&&e[i.tag.start-1]!=="{")o=o.value;return{type:"Element",name:"svelte:element",start:i.start,end:i.end,tag:o,attributes:i.attributes.map((a)=>s(a)),children:i.fragment.nodes.map((a)=>s(a))}},SvelteFragment(i,{visit:s}){return{type:"SlotTemplate",name:"svelte:fragment",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteHead(i,{visit:s}){return{type:"Head",name:"svelte:head",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteOptions(i,{visit:s}){return{type:"Options",name:"svelte:options",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o))}},SvelteSelf(i,{visit:s}){return{type:"InlineComponent",name:"svelte:self",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},SvelteWindow(i,{visit:s}){return{type:"Window",name:"svelte:window",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},Text(i,{path:s}){let o=s.at(-1);if(o?.type==="RegularElement"&&o.name==="style")return{type:"Text",start:i.start,end:i.end,data:i.data}},TitleElement(i,{visit:s}){return{type:"Title",name:"title",start:i.start,end:i.end,attributes:i.attributes.map((o)=>s(o)),children:i.fragment.nodes.map((o)=>s(o))}},TransitionDirective(i){return{...i,type:"Transition"}},UseDirective(i){return{...i,type:"Action"}},LetDirective(i){return{...i,type:"Let"}}})}var Pn={};ic(Pn,{Node:()=>Ft,Parser:()=>ie,Position:()=>mt,SourceLocation:()=>$t,TokContext:()=>Pe,Token:()=>kn,TokenType:()=>K,defaultOptions:()=>_n,getLineInfo:()=>Di,isIdentifierChar:()=>Me,isIdentifierStart:()=>xe,isNewLine:()=>ct,keywordTypes:()=>Tn,lineBreak:()=>ye,lineBreakG:()=>ua,nonASCIIwhitespace:()=>Ni,parse:()=>hu,parseExpressionAt:()=>fu,tokContexts:()=>te,tokTypes:()=>h,tokenizer:()=>mu,version:()=>Ua});var Dp=[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],la=[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],Lp="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",ca="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Ci={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"},wi="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",Rp={5:wi,"5module":wi+" export import",6:wi+" const class extends export import super"},pa=/^in(stanceof)?$/,Mp=new RegExp("["+ca+"]"),Op=new RegExp("["+ca+Lp+"]");function ki(e,t){var n=65536;for(var i=0;i<t.length;i+=2){if(n+=t[i],n>e)return!1;if(n+=t[i+1],n>=e)return!0}return!1}function xe(e,t){if(e<65)return e===36;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<=65535)return e>=170&&Mp.test(String.fromCharCode(e));if(t===!1)return!1;return ki(e,la)}function Me(e,t){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<=65535)return e>=170&&Op.test(String.fromCharCode(e));if(t===!1)return!1;return ki(e,la)||ki(e,Dp)}var K=function(t,n){if(n===void 0)n={};this.label=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function we(e,t){return new K(e,{beforeExpr:!0,binop:t})}var ke={beforeExpr:!0},_e={startsExpr:!0},Tn={};function W(e,t){if(t===void 0)t={};return t.keyword=e,Tn[e]=new K(e,t)}var h={num:new K("num",_e),regexp:new K("regexp",_e),string:new K("string",_e),name:new K("name",_e),privateId:new K("privateId",_e),eof:new K("eof"),bracketL:new K("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new K("]"),braceL:new K("{",{beforeExpr:!0,startsExpr:!0}),braceR:new K("}"),parenL:new K("(",{beforeExpr:!0,startsExpr:!0}),parenR:new K(")"),comma:new K(",",ke),semi:new K(";",ke),colon:new K(":",ke),dot:new K("."),question:new K("?",ke),questionDot:new K("?."),arrow:new K("=>",ke),template:new K("template"),invalidTemplate:new K("invalidTemplate"),ellipsis:new K("...",ke),backQuote:new K("`",_e),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K("=",{beforeExpr:!0,isAssign:!0}),assign:new K("_=",{beforeExpr:!0,isAssign:!0}),incDec:new K("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:we("||",1),logicalAND:we("&&",2),bitwiseOR:we("|",3),bitwiseXOR:we("^",4),bitwiseAND:we("&",5),equality:we("==/!=/===/!==",6),relational:we("</>/<=/>=",7),bitShift:we("<</>>/>>>",8),plusMin:new K("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:we("%",10),star:we("*",10),slash:we("/",10),starstar:new K("**",{beforeExpr:!0}),coalesce:we("??",1),_break:W("break"),_case:W("case",ke),_catch:W("catch"),_continue:W("continue"),_debugger:W("debugger"),_default:W("default",ke),_do:W("do",{isLoop:!0,beforeExpr:!0}),_else:W("else",ke),_finally:W("finally"),_for:W("for",{isLoop:!0}),_function:W("function",_e),_if:W("if"),_return:W("return",ke),_switch:W("switch"),_throw:W("throw",ke),_try:W("try"),_var:W("var"),_const:W("const"),_while:W("while",{isLoop:!0}),_with:W("with"),_new:W("new",{beforeExpr:!0,startsExpr:!0}),_this:W("this",_e),_super:W("super",_e),_class:W("class",_e),_extends:W("extends",ke),_export:W("export"),_import:W("import",_e),_null:W("null",_e),_true:W("true",_e),_false:W("false",_e),_in:W("in",{beforeExpr:!0,binop:7}),_instanceof:W("instanceof",{beforeExpr:!0,binop:7}),_typeof:W("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:W("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:W("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ye=/\r\n?|\n|\u2028|\u2029/,ua=new RegExp(ye.source,"g");function ct(e){return e===10||e===13||e===8232||e===8233}function da(e,t,n){if(n===void 0)n=e.length;for(var i=t;i<n;i++){var s=e.charCodeAt(i);if(ct(s))return i<n-1&&s===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var Ni=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ha=Object.prototype,$p=ha.hasOwnProperty,Bp=ha.toString,yt=Object.hasOwn||function(e,t){return $p.call(e,t)},sa=Array.isArray||function(e){return Bp.call(e)==="[object Array]"},ra=Object.create(null);function Qe(e){return ra[e]||(ra[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Ge(e){if(e<=65535)return String.fromCharCode(e);return e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320)}var Fp=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,mt=function(t,n){this.line=t,this.column=n};mt.prototype.offset=function(t){return new mt(this.line,this.column+t)};var $t=function(t,n,i){if(this.start=n,this.end=i,t.sourceFile!==null)this.source=t.sourceFile};function Di(e,t){for(var n=1,i=0;;){var s=da(e,i,t);if(s<0)return new mt(n,t-i);++n,i=s}}var _n={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},aa=!1;function Vp(e){var t={};for(var n in _n)t[n]=e&&yt(e,n)?e[n]:_n[n];if(t.ecmaVersion==="latest")t.ecmaVersion=1e8;else if(t.ecmaVersion==null){if(!aa&&typeof console==="object"&&console.warn)aa=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
26
|
+
Defaulting to 2020, but this will stop working in the future.`);t.ecmaVersion=11}else if(t.ecmaVersion>=2015)t.ecmaVersion-=2009;if(t.allowReserved==null)t.allowReserved=t.ecmaVersion<5;if(!e||e.allowHashBang==null)t.allowHashBang=t.ecmaVersion>=14;if(sa(t.onToken)){var i=t.onToken;t.onToken=function(s){return i.push(s)}}if(sa(t.onComment))t.onComment=jp(t,t.onComment);if(t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function jp(e,t){return function(n,i,s,o,a,c){var p={type:n?"Block":"Line",value:i,start:s,end:o};if(e.locations)p.loc=new $t(this,a,c);if(e.ranges)p.range=[s,o];t.push(p)}}var lt=1,pt=2,Li=4,fa=8,Ri=16,ma=32,En=64,ya=128,ut=256,Bt=512,_a=1024,Sn=lt|pt|ut;function Mi(e,t){return pt|(e?Li:0)|(t?fa:0)}var gn=0,Oi=1,ze=2,ga=3,xa=4,va=5,ie=function(t,n,i){this.options=t=Vp(t),this.sourceFile=t.sourceFile,this.keywords=Qe(Rp[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";if(t.allowReserved!==!0){if(s=Ci[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module")s+=" await"}this.reservedWords=Qe(s);var o=(s?s+" ":"")+Ci.strict;if(this.reservedWordsStrict=Qe(o),this.reservedWordsStrictBind=Qe(o+" "+Ci.strictBind),this.input=String(n),this.containsEsc=!1,this.pos=i||0,this.curLine=1,t.startLocation)this.lineStart=this.pos-t.startLocation.column,this.curLine=t.startLocation.line;else if(i){if(this.lineStart=this.input.lastIndexOf(`
|
|
27
|
+
`,i-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(ye).length}else this.lineStart=0;if(this.type=h.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||t.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&&t.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?pt:lt),this.regexpState=null,this.privateNameStack=[]},Ie={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}};ie.prototype.parse=function(){var t=this,n=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return t.parseTopLevel(n)})};Ie.inFunction.get=function(){return(this.currentVarScope().flags&pt)>0};Ie.inGenerator.get=function(){return(this.currentVarScope().flags&fa)>0};Ie.inAsync.get=function(){return(this.currentVarScope().flags&Li)>0};Ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(ut|Bt))return!1;if(n&pt)return(n&Li)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ie.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags<)return!0;return!1};Ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&En)>0||this.options.allowSuperOutsideMethod};Ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ya)>0};Ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ie.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],n=t.flags;if(n&(ut|Bt)||n&pt&&!(n&Ri))return!0}return!1};Ie.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;if(t&_a)return!1;if(!this.inModule&&t<)return!1;return!0};Ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ut)>0};ie.extend=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this;for(var s=0;s<t.length;s++)i=t[s](i);return i};ie.parse=function(t,n){return new this(n,t).parse()};ie.parseExpressionAt=function(t,n,i){var s=new this(i,t,n);return s.nextToken(),s.parseExpression()};ie.tokenizer=function(t,n){return new this(n,t)};Object.defineProperties(ie.prototype,Ie);var me=ie.prototype,qp=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;me.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ce.lastIndex=e,e+=ce.exec(this.input)[0].length;var t=qp.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){ce.lastIndex=e+t[0].length;var n=ce.exec(this.input),i=n.index+n[0].length,s=this.input.charAt(i);return s===";"||s==="}"||ye.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}if(e+=t[0].length,ce.lastIndex=e,e+=ce.exec(this.input)[0].length,this.input[e]===";")e++}};me.eat=function(e){if(this.type===e)return this.next(),!0;else return!1};me.isContextual=function(e){return this.type===h.name&&this.value===e&&!this.containsEsc};me.eatContextual=function(e){if(!this.isContextual(e))return!1;return this.next(),!0};me.catchStackOverflow=function(e){try{return e()}catch(t){if(t instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message)||/\btoo much recursion\b/i.test(t.message)))this.raise(this.start,"Not enough stack space to parse input");else throw t}};me.expectContextual=function(e){if(!this.eatContextual(e))this.unexpected()};me.canInsertSemicolon=function(){return this.type===h.eof||this.type===h.braceR||ye.test(this.input.slice(this.lastTokEnd,this.start))};me.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};me.semicolon=function(){if(!this.eat(h.semi)&&!this.insertSemicolon())this.unexpected()};me.afterTrailingComma=function(e,t){if(this.type===e){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!t)this.next();return!0}};me.expect=function(e){this.eat(e)||this.unexpected()};me.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var Cn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};me.checkPatternErrors=function(e,t){if(!e)return;if(e.trailingComma>-1)this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;if(n>-1)this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")};me.checkExpressionErrors=function(e,t){if(!e)return!1;var{shorthandAssign:n,doubleProto:i}=e;if(!t)return n>=0||i>=0;if(n>=0)this.raise(n,"Shorthand property assignments are valid only in destructuring patterns");if(i>=0)this.raiseRecoverable(i,"Redefinition of __proto__ property")};me.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")};me.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(e.expression);return e.type==="Identifier"||e.type==="MemberExpression"};var D=ie.prototype;D.parseTopLevel=function(e){var t=Object.create(null);if(!e.body)e.body=[];while(this.type!==h.eof){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var i=0,s=Object.keys(this.undefinedExports);i<s.length;i+=1){var o=s[i];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var $i={kind:"loop"},Hp={kind:"switch"};D.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ce.lastIndex=this.pos;var t=ce.exec(this.input),n=this.pos+t[0].length,i=this.fullCharCodeAt(n);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(xe(i)){var s=n;do n+=i<=65535?1:2;while(Me(i=this.fullCharCodeAt(n)));if(i===92)return!0;var o=this.input.slice(s,n);if(!pa.test(o))return!0}return!1};D.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ce.lastIndex=this.pos;var e=ce.exec(this.input),t=this.pos+e[0].length,n;return!ye.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(Me(n=this.fullCharCodeAt(t+8))||n===92))};D.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;ce.lastIndex=this.pos;var n=ce.exec(this.input),i=this.pos+n[0].length;if(ye.test(this.input.slice(this.pos,i)))return!1;if(e){var s=i+5,o;if(this.input.slice(i,s)!=="using"||s===this.input.length||Me(o=this.fullCharCodeAt(s))||o===92)return!1;ce.lastIndex=s;var a=ce.exec(this.input);if(i=s+a[0].length,a&&ye.test(this.input.slice(s,i)))return!1}var c=this.fullCharCodeAt(i);if(!xe(c)&&c!==92)return!1;var p=i;do i+=c<=65535?1:2;while(Me(c=this.fullCharCodeAt(i)));if(c===92)return!0;var f=this.input.slice(p,i);if(pa.test(f))return!1;if(t&&!e&&f==="of"){ce.lastIndex=i;var d=ce.exec(this.input);if(i=i+d[0].length,this.input.charCodeAt(i)!==61||(c=this.input.charCodeAt(i+1))===61||c===62)return!1}return!0};D.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};D.isUsing=function(e){return this.isUsingKeyword(!1,e)};D.parseStatement=function(e,t,n){var i=this.type,s=this.startNode(),o;if(this.isLet(e))i=h._var,o="let";switch(i){case h._break:case h._continue:return this.parseBreakContinueStatement(s,i.keyword);case h._debugger:return this.parseDebuggerStatement(s);case h._do:return this.parseDoStatement(s);case h._for:return this.parseForStatement(s);case h._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(s,!1,!e);case h._class:if(e)this.unexpected();return this.parseClass(s,!0);case h._if:return this.parseIfStatement(s);case h._return:return this.parseReturnStatement(s);case h._switch:return this.parseSwitchStatement(s);case h._throw:return this.parseThrowStatement(s);case h._try:return this.parseTryStatement(s);case h._const:case h._var:if(o=o||this.value,e&&o!=="var")this.unexpected();return this.parseVarStatement(s,o);case h._while:return this.parseWhileStatement(s);case h._with:return this.parseWithStatement(s);case h.braceL:return this.parseBlock(!0,s);case h.semi:return this.parseEmptyStatement(s);case h._export:case h._import:if(this.options.ecmaVersion>10&&i===h._import){ce.lastIndex=this.pos;var a=ce.exec(this.input),c=this.pos+a[0].length,p=this.input.charCodeAt(c);if(p===40||p===46)return this.parseExpressionStatement(s,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!t)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 i===h._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction()){if(e)this.unexpected();return this.next(),this.parseFunctionStatement(s,!0,!e)}var f=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(f){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(e)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(f==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(s,!1,f),this.semicolon(),this.finishNode(s,"VariableDeclaration")}var d=this.value,g=this.parseExpression();if(i===h.name&&g.type==="Identifier"&&this.eat(h.colon))return this.parseLabeledStatement(s,d,g,e);else return this.parseExpressionStatement(s,g)}};D.parseBreakContinueStatement=function(e,t){var n=t==="break";if(this.next(),this.eat(h.semi)||this.insertSemicolon())e.label=null;else if(this.type!==h.name)this.unexpected();else e.label=this.parseIdent(),this.semicolon();var i=0;for(;i<this.labels.length;++i){var s=this.labels[i];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(n||s.kind==="loop"))break;if(e.label&&n)break}}if(i===this.labels.length)this.raise(e.start,"Unsyntactic "+t);return this.finishNode(e,n?"BreakStatement":"ContinueStatement")};D.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};D.parseDoStatement=function(e){if(this.next(),this.labels.push($i),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(h._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(h.semi);else this.semicolon();return this.finishNode(e,"DoWhileStatement")};D.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push($i),this.enterScope(0),this.expect(h.parenL),this.type===h.semi){if(t>-1)this.unexpected(t);return this.parseFor(e,null)}var n=this.isLet();if(this.type===h._var||this.type===h._const||n){var i=this.startNode(),s=n?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,t)}var o=this.isContextual("let"),a=!1,c=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(c){var p=this.startNode();if(this.next(),c==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(p,!0,c),this.finishNode(p,"VariableDeclaration"),this.parseForAfterInit(e,p,t)}var f=this.containsEsc,d=new Cn,g=this.start,v=t>-1?this.parseExprSubscripts(d,"await"):this.parseExpression(!0,d);if(this.type===h._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(t>-1){if(this.type===h._in)this.unexpected(t);e.await=!0}else if(a&&this.options.ecmaVersion>=8){if(v.start===g&&!f&&v.type==="Identifier"&&v.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)e.await=!1}if(o&&a)this.raise(v.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(v,!1,d),this.checkLValPattern(v),this.parseForIn(e,v)}else this.checkExpressionErrors(d,!0);if(t>-1)this.unexpected(t);return this.parseFor(e,v)};D.parseForAfterInit=function(e,t,n){if((this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1){if(this.type===h._in){if((t.kind==="using"||t.kind==="await using")&&!t.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&n>-1)this.unexpected(n)}else if(this.options.ecmaVersion>=9)e.await=n>-1;return this.parseForIn(e,t)}if(n>-1)this.unexpected(n);return this.parseFor(e,t)};D.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ot|(n?0:Pi),!1,t)};D.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};D.parseReturnStatement=function(e){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(h.semi)||this.insertSemicolon())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")};D.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(h.braceL),this.labels.push(Hp),this.enterScope(_a);var t;for(var n=!1;this.type!==h.braceR;)if(this.type===h._case||this.type===h._default){var i=this.type===h._case;if(t)this.finishNode(t,"SwitchCase");if(e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i)t.test=this.parseExpression();else{if(n)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");n=!0,t.test=null}this.expect(h.colon)}else{if(!t)this.unexpected();t.consequent.push(this.parseStatement(null))}if(this.exitScope(),t)this.finishNode(t,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};D.parseThrowStatement=function(e){if(this.next(),ye.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Up=[];D.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?ma:0),this.checkLValPattern(e,t?xa:ze),this.expect(h.parenR),e};D.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===h._catch){var t=this.startNode();if(this.next(),this.eat(h.parenL))t.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();t.param=null,this.enterScope(0)}t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}if(e.finalizer=this.eat(h._finally)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(e.start,"Missing catch or finally clause");return this.finishNode(e,"TryStatement")};D.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};D.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push($i),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};D.parseWithStatement=function(e){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};D.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};D.parseLabeledStatement=function(e,t,n,i){for(var s=0,o=this.labels;s<o.length;s+=1){var a=o[s];if(a.name===t)this.raise(n.start,"Label '"+t+"' is already declared")}var c=this.type.isLoop?"loop":this.type===h._switch?"switch":null;for(var p=this.labels.length-1;p>=0;p--){var f=this.labels[p];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=c;else break}return this.labels.push({name:t,kind:c,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};D.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};D.parseBlock=function(e,t,n){if(e===void 0)e=!0;if(t===void 0)t=this.startNode();if(t.body=[],this.expect(h.braceL),e)this.enterScope(0);while(this.type!==h.braceR){var i=this.parseStatement(null);t.body.push(i)}if(n)this.strict=!1;if(this.next(),e)this.exitScope();return this.finishNode(t,"BlockStatement")};D.parseFor=function(e,t){return e.init=t,this.expect(h.semi),e.test=this.type===h.semi?null:this.parseExpression(),this.expect(h.semi),e.update=this.type===h.parenR?null:this.parseExpression(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};D.parseForIn=function(e,t){var n=this.type===h._in;if(this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier"))this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer");return e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};D.parseVar=function(e,t,n,i){e.declarations=[],e.kind=n;for(;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(h.eq))s.init=this.parseMaybeAssign(t);else if(!i&&n==="const"&&!(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!i&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==h._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration");else if(!i&&s.id.type!=="Identifier"&&!(t&&(this.type===h._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else s.init=null;if(e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(h.comma))break}return e};D.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Oi:ze,!1)};var Ot=1,Pi=2,ba=4;D.parseFunction=function(e,t,n,i,s){if(this.initFunction(e),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i){if(this.type===h.star&&t&Pi)this.unexpected();e.generator=this.eat(h.star)}if(this.options.ecmaVersion>=8)e.async=!!i;if(t&Ot){if(e.id=t&ba&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&Pi))this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Oi:ze:ga)}var o=this.yieldPos,a=this.awaitPos,c=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Mi(e.async,e.generator)),!(t&Ot))e.id=this.type===h.name?this.parseIdent():null;return this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,s),this.yieldPos=o,this.awaitPos=a,this.awaitIdentPos=c,this.finishNode(e,t&Ot?"FunctionDeclaration":"FunctionExpression")};D.parseFunctionParams=function(e){this.expect(h.parenL),e.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};D.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),s=this.startNode(),o=!1;s.body=[],this.expect(h.braceL);while(this.type!==h.braceR){var a=this.parseClassElement(e.superClass!==null);if(a){if(s.body.push(a),a.type==="MethodDefinition"&&a.kind==="constructor"){if(o)this.raiseRecoverable(a.start,"Duplicate constructor in the same class");o=!0}else if(a.key&&a.key.type==="PrivateIdentifier"&&Gp(i,a))this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared")}}return this.strict=n,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};D.parseClassElement=function(e){if(this.eat(h.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),i="",s=!1,o=!1,a="method",c=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(h.braceL))return this.parseClassStaticBlock(n),n;if(this.isClassElementNameStart()||this.type===h.star)c=!0;else i="static"}if(n.static=c,!i&&t>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===h.star)&&!this.canInsertSemicolon())o=!0;else i="async";if(!i&&(t>=9||!o)&&this.eat(h.star))s=!0;if(!i&&!o&&!s){var p=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())a=p;else i=p}if(i)n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=i,this.finishNode(n.key,"Identifier");else this.parseClassElementName(n);if(t<13||this.type===h.parenL||a!=="method"||s||o){var f=!n.static&&xn(n,"constructor"),d=f&&e;if(f&&a!=="method")this.raise(n.key.start,"Constructor can't have get/set modifier");n.kind=f?"constructor":a,this.parseClassMethod(n,s,o,d)}else this.parseClassField(n);return n};D.isClassElementNameStart=function(){return this.type===h.name||this.type===h.privateId||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword};D.parseClassElementName=function(e){if(this.type===h.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");e.computed=!1,e.key=this.parsePrivateIdent()}else this.parsePropertyName(e)};D.parseClassMethod=function(e,t,n,i){var s=e.key;if(e.kind==="constructor"){if(t)this.raise(s.start,"Constructor can't be a generator");if(n)this.raise(s.start,"Constructor can't be an async method")}else if(e.static&&xn(e,"prototype"))this.raise(s.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,i);if(e.kind==="get"&&o.params.length!==0)this.raiseRecoverable(o.start,"getter should have no params");if(e.kind==="set"&&o.params.length!==1)this.raiseRecoverable(o.start,"setter should have exactly one param");if(e.kind==="set"&&o.params[0].type==="RestElement")this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params");return this.finishNode(e,"MethodDefinition")};D.parseClassField=function(e){if(xn(e,"constructor"))this.raise(e.key.start,"Classes can't have a field named 'constructor'");else if(e.static&&xn(e,"prototype"))this.raise(e.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(h.eq))this.enterScope(Bt|En),e.value=this.parseMaybeAssign(),this.exitScope();else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};D.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;this.labels=[],this.enterScope(ut|En);while(this.type!==h.braceR){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};D.parseClassId=function(e,t){if(this.type===h.name){if(e.id=this.parseIdent(),t)this.checkLValSimple(e.id,ze,!1)}else{if(t===!0)this.unexpected();e.id=null}};D.parseClassSuper=function(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts(null,!1):null};D.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};D.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(!this.options.checkPrivateFields)return;var i=this.privateNameStack.length,s=i===0?null:this.privateNameStack[i-1];for(var o=0;o<n.length;++o){var a=n[o];if(!yt(t,a.name))if(s)s.used.push(a);else this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class")}};function Gp(e,t){var n=t.key.name,i=e[n],s="true";if(t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set"))s=(t.static?"s":"i")+t.kind;if(i==="iget"&&s==="iset"||i==="iset"&&s==="iget"||i==="sget"&&s==="sset"||i==="sset"&&s==="sget")return e[n]="true",!1;else if(!i)return e[n]=s,!1;else return!0}function xn(e,t){var{computed:n,key:i}=e;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}D.parseExportAllDeclaration=function(e,t){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart);else e.exported=null;if(this.expectContextual("from"),this.type!==h.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};D.parseExport=function(e,t){if(this.next(),this.eat(h.star))return this.parseExportAllDeclaration(e,t);if(this.eat(h._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration")this.checkVariableExport(t,e.declaration.declarations);else this.checkExport(t,e.declaration.id,e.declaration.id.start);if(e.specifiers=[],e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from")){if(this.type!==h.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause()}else{for(var n=0,i=e.specifiers;n<i.length;n+=1){var s=i[n];if(this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal")this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};D.parseExportDeclaration=function(e){return this.parseStatement(null)};D.parseExportDefaultDeclaration=function(){var e;if(this.type===h._function||(e=this.isAsyncFunction())){var t=this.startNode();if(this.next(),e)this.next();return this.parseFunction(t,Ot|ba,!1,e)}else if(this.type===h._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}};D.checkExport=function(e,t,n){if(!e)return;if(typeof t!=="string")t=t.type==="Identifier"?t.name:t.value;if(yt(e,t))this.raiseRecoverable(n,"Duplicate export '"+t+"'");e[t]=!0};D.checkPatternExport=function(e,t){var n=t.type;if(n==="Identifier")this.checkExport(e,t,t.start);else if(n==="ObjectPattern")for(var i=0,s=t.properties;i<s.length;i+=1){var o=s[i];this.checkPatternExport(e,o)}else if(n==="ArrayPattern")for(var a=0,c=t.elements;a<c.length;a+=1){var p=c[a];if(p)this.checkPatternExport(e,p)}else if(n==="Property")this.checkPatternExport(e,t.value);else if(n==="AssignmentPattern")this.checkPatternExport(e,t.left);else if(n==="RestElement")this.checkPatternExport(e,t.argument)};D.checkVariableExport=function(e,t){if(!e)return;for(var n=0,i=t;n<i.length;n+=1){var s=i[n];this.checkPatternExport(e,s.id)}};D.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};D.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};D.parseExportSpecifiers=function(e){var t=[],n=!0;this.expect(h.braceL);while(!this.eat(h.braceR)){if(!n){if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break}else n=!1;t.push(this.parseExportSpecifier(e))}return t};D.parseImport=function(e){if(this.next(),this.type===h.string)e.specifiers=Up,e.source=this.parseExprAtom();else e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===h.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ImportDeclaration")};D.parseImportSpecifier=function(){var e=this.startNode();if(e.imported=this.parseModuleExportName(),this.eatContextual("as"))e.local=this.parseIdent();else this.checkUnreserved(e.imported),e.local=e.imported;return this.checkLValSimple(e.local,ze),this.finishNode(e,"ImportSpecifier")};D.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,ze),this.finishNode(e,"ImportDefaultSpecifier")};D.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,ze),this.finishNode(e,"ImportNamespaceSpecifier")};D.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===h.name){if(e.push(this.parseImportDefaultSpecifier()),!this.eat(h.comma))return e}if(this.type===h.star)return e.push(this.parseImportNamespaceSpecifier()),e;this.expect(h.braceL);while(!this.eat(h.braceR)){if(!t){if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break}else t=!1;e.push(this.parseImportSpecifier())}return e};D.parseWithClause=function(){var e=[];if(!this.eat(h._with))return e;this.expect(h.braceL);var t={},n=!0;while(!this.eat(h.braceR)){if(!n){if(this.expect(h.comma),this.afterTrailingComma(h.braceR))break}else n=!1;var i=this.parseImportAttribute(),s=i.key.type==="Identifier"?i.key.name:i.key.value;if(yt(t,s))this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+s+"'");t[s]=!0,e.push(i)}return e};D.parseImportAttribute=function(){var e=this.startNode();if(e.key=this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(h.colon),this.type!==h.string)this.unexpected();return e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};D.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===h.string){var e=this.parseLiteral(this.value);if(Fp.test(e.value))this.raise(e.start,"An export name cannot include a lone surrogate.");return e}return this.parseIdent(!0)};D.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};D.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ne=ie.prototype;Ne.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await")this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(e.type="ObjectPattern",n)this.checkPatternErrors(n,!0);for(var i=0,s=e.properties;i<s.length;i+=1){var o=s[i];if(this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern"))this.raise(o.argument.start,"Unexpected token")}break;case"Property":if(e.kind!=="init")this.raise(e.key.start,"Object pattern can't contain getter or setter");this.toAssignable(e.value,t);break;case"ArrayExpression":if(e.type="ArrayPattern",n)this.checkPatternErrors(n,!0);this.toAssignableList(e.elements,t);break;case"SpreadElement":if(e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern")this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(e.operator!=="=")this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else if(n)this.checkPatternErrors(n,!0);return e};Ne.toAssignableList=function(e,t){var n=e.length;for(var i=0;i<n;i++){var s=e[i];if(s)this.toAssignable(s,t)}if(n){var o=e[n-1];if(this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier")this.unexpected(o.argument.start)}return e};Ne.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Ne.parseRestBinding=function(){var e=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==h.name)this.unexpected();return e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Ne.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case h.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(h.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case h.braceL:return this.parseObj(!0)}return this.parseIdent()};Ne.parseBindingList=function(e,t,n,i){var s=[],o=!0;while(!this.eat(e)){if(o)o=!1;else this.expect(h.comma);if(t&&this.type===h.comma)s.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===h.ellipsis){var a=this.parseRestBinding();if(this.parseBindingListItem(a),s.push(a),this.type===h.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(e);break}else s.push(this.parseAssignableListItem(i))}return s};Ne.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Ne.parseBindingListItem=function(e){return e};Ne.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(h.eq))return n;var i=this.startNodeAt(e,t);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")};Ne.checkLValSimple=function(e,t,n){if(t===void 0)t=gn;var i=t!==gn;switch(e.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(e.name))this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode");if(i){if(t===ze&&e.name==="let")this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name");if(n){if(yt(n,e.name))this.raiseRecoverable(e.start,"Argument name clash");n[e.name]=!0}if(t!==va)this.declareName(e.name,t,e.start)}break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(i)this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":if(i)this.raiseRecoverable(e.start,"Binding parenthesized expression");return this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}};Ne.checkLValPattern=function(e,t,n){if(t===void 0)t=gn;switch(e.type){case"ObjectPattern":for(var i=0,s=e.properties;i<s.length;i+=1){var o=s[i];this.checkLValInnerPattern(o,t,n)}break;case"ArrayPattern":for(var a=0,c=e.elements;a<c.length;a+=1){var p=c[a];if(p)this.checkLValInnerPattern(p,t,n)}break;default:this.checkLValSimple(e,t,n)}};Ne.checkLValInnerPattern=function(e,t,n){if(t===void 0)t=gn;switch(e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Pe=function(t,n,i,s,o){this.token=t,this.isExpr=!!n,this.preserveSpace=!!i,this.override=s,this.generator=!!o},te={b_stat:new Pe("{",!1),b_expr:new Pe("{",!0),b_tmpl:new Pe("${",!1),p_stat:new Pe("(",!1),p_expr:new Pe("(",!0),q_tmpl:new Pe("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Pe("function",!1),f_expr:new Pe("function",!0),f_expr_gen:new Pe("function",!0,!1,null,!0),f_gen:new Pe("function",!1,!1,null,!0)},_t=ie.prototype;_t.initialContext=function(){return[te.b_stat]};_t.curContext=function(){return this.context[this.context.length-1]};_t.braceIsBlock=function(e){var t=this.curContext();if(t===te.f_expr||t===te.f_stat)return!0;if(e===h.colon&&(t===te.b_stat||t===te.b_expr))return!t.isExpr;if(e===h._return||e===h.name&&this.exprAllowed)return ye.test(this.input.slice(this.lastTokEnd,this.start));if(e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow)return!0;if(e===h.braceL)return t===te.b_stat;if(e===h._var||e===h._const||e===h.name)return!1;return!this.exprAllowed};_t.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};_t.updateContext=function(e){var t,n=this.type;if(n.keyword&&e===h.dot)this.exprAllowed=!1;else if(t=n.updateContext)t.call(this,e);else this.exprAllowed=n.beforeExpr};_t.overrideContext=function(e){if(this.curContext()!==e)this.context[this.context.length-1]=e};h.parenR.updateContext=h.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();if(e===te.b_stat&&this.curContext().token==="function")e=this.context.pop();this.exprAllowed=!e.isExpr};h.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?te.b_stat:te.b_expr),this.exprAllowed=!0};h.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0};h.parenL.updateContext=function(e){var t=e===h._if||e===h._for||e===h._with||e===h._while;this.context.push(t?te.p_stat:te.p_expr),this.exprAllowed=!0};h.incDec.updateContext=function(){};h._function.updateContext=h._class.updateContext=function(e){if(e.beforeExpr&&e!==h._else&&!(e===h.semi&&this.curContext()!==te.p_stat)&&!(e===h._return&&ye.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===h.colon||e===h.braceL)&&this.curContext()===te.b_stat))this.context.push(te.f_expr);else this.context.push(te.f_stat);this.exprAllowed=!1};h.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};h.backQuote.updateContext=function(){if(this.curContext()===te.q_tmpl)this.context.pop();else this.context.push(te.q_tmpl);this.exprAllowed=!1};h.star.updateContext=function(e){if(e===h._function){var t=this.context.length-1;if(this.context[t]===te.f_expr)this.context[t]=te.f_expr_gen;else this.context[t]=te.f_gen}this.exprAllowed=!0};h.name.updateContext=function(e){var t=!1;if(this.options.ecmaVersion>=6&&e!==h.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())t=!0}this.exprAllowed=t};var q=ie.prototype;q.checkPropClash=function(e,t,n){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))return;var i=e.key,s;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){if(s==="__proto__"&&o==="init"){if(t.proto)if(n){if(n.doubleProto<0)n.doubleProto=i.start}else this.raiseRecoverable(i.start,"Redefinition of __proto__ property");t.proto=!0}return}s="$"+s;var a=t[s];if(a){var c;if(o==="init")c=this.strict&&a.init||a.get||a.set;else c=a.init||a[o];if(c)this.raiseRecoverable(i.start,"Redefinition of property")}else a=t[s]={init:!1,get:!1,set:!1};a[o]=!0};q.parseExpression=function(e,t){var n=this;return this.catchStackOverflow(function(){var{start:i,startLoc:s}=n,o=n.parseMaybeAssign(e,t);if(n.type===h.comma){var a=n.startNodeAt(i,s);a.expressions=[o];while(n.eat(h.comma))a.expressions.push(n.parseMaybeAssign(e,t));return n.finishNode(a,"SequenceExpression")}return o})};q.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var i=!1,s=-1,o=-1,a=-1;if(t)s=t.parenthesizedAssign,o=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1;else t=new Cn,i=!0;var c=this.start,p=this.startLoc;if(this.type===h.parenL||this.type===h.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await";var f=this.parseMaybeConditional(e,t);if(n)f=n.call(this,f,c,p);if(this.type.isAssign){var d=this.startNodeAt(c,p);if(d.operator=this.value,this.type===h.eq)f=this.toAssignable(f,!1,t);if(!i)t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1;if(t.shorthandAssign>=f.start)t.shorthandAssign=-1;if(this.type===h.eq)this.checkLValPattern(f);else this.checkLValSimple(f);if(d.left=f,this.next(),d.right=this.parseMaybeAssign(e),a>-1)t.doubleProto=a;return this.finishNode(d,"AssignmentExpression")}else if(i)this.checkExpressionErrors(t,!0);if(s>-1)t.parenthesizedAssign=s;if(o>-1)t.trailingComma=o;return f};q.parseMaybeConditional=function(e,t){var n=this.start,i=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(!(s.type==="ArrowFunctionExpression"&&s.start===n)&&this.eat(h.question)){var o=this.startNodeAt(n,i);return o.test=s,o.consequent=this.parseMaybeAssign(),this.expect(h.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return s};q.parseExprOps=function(e,t){var n=this.start,i=this.startLoc,s=this.parseMaybeUnary(t,!1,!1,e);if(this.checkExpressionErrors(t))return s;return s.start===n&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,n,i,-1,e)};q.parseExprOp=function(e,t,n,i,s){var o=this.type.binop;if(o!=null&&(!s||this.type!==h._in)){if(o>i){var a=this.type===h.logicalOR||this.type===h.logicalAND,c=this.type===h.coalesce;if(c)o=h.logicalAND.binop;var p=this.value;this.next();var f=this.start,d=this.startLoc,g=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),f,d,o,s),v=this.buildBinary(t,n,e,g,p,a||c);if(a&&this.type===h.coalesce||c&&(this.type===h.logicalOR||this.type===h.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(v,t,n,i,s)}}return e};q.buildBinary=function(e,t,n,i,s,o){if(i.type==="PrivateIdentifier")this.raise(i.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=n,a.operator=s,a.right=i,this.finishNode(a,o?"LogicalExpression":"BinaryExpression")};q.parseMaybeUnary=function(e,t,n,i){var s=this.start,o=this.startLoc,a;if(this.isContextual("await")&&this.canAwait)a=this.parseAwait(i),t=!0;else if(this.type.prefix){var c=this.startNode(),p=this.type===h.incDec;if(c.operator=this.value,c.prefix=!0,this.next(),c.argument=this.parseMaybeUnary(null,!0,p,i),this.checkExpressionErrors(e,!0),p)this.checkLValSimple(c.argument);else if(this.strict&&c.operator==="delete"&&Ta(c.argument))this.raiseRecoverable(c.start,"Deleting local variable in strict mode");else if(c.operator==="delete"&&Ai(c.argument))this.raiseRecoverable(c.start,"Private fields can not be deleted");else t=!0;a=this.finishNode(c,p?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===h.privateId){if((i||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(a=this.parsePrivateIdent(),this.type!==h._in)this.unexpected()}else{if(a=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return a;while(this.type.postfix&&!this.canInsertSemicolon()){var f=this.startNodeAt(s,o);f.operator=this.value,f.prefix=!1,f.argument=a,this.checkLValSimple(a),this.next(),a=this.finishNode(f,"UpdateExpression")}}if(!n&&!(a.type==="ArrowFunctionExpression"&&a.start===s)&&this.eat(h.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(s,o,a,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return a};function Ta(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Ta(e.expression)}function Ai(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&Ai(e.expression)||e.type==="ParenthesizedExpression"&&Ai(e.expression)}q.parseExprSubscripts=function(e,t){var n=this.start,i=this.startLoc,s=this.parseExprAtom(e,t);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var o=this.parseSubscripts(s,n,i,!1,t);if(e&&o.type==="MemberExpression"){if(e.parenthesizedAssign>=o.start)e.parenthesizedAssign=-1;if(e.parenthesizedBind>=o.start)e.parenthesizedBind=-1;if(e.trailingComma>=o.start)e.trailingComma=-1}return o};q.parseSubscripts=function(e,t,n,i,s){var o=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,a=!1;while(!0){var c=this.parseSubscript(e,t,n,i,o,a,s);if(c.optional)a=!0;if(c===e||c.type==="ArrowFunctionExpression"){if(a){var p=this.startNodeAt(t,n);p.expression=c,c=this.finishNode(p,"ChainExpression")}return c}e=c}};q.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(h.arrow)};q.parseSubscriptAsyncArrow=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,i)};q.parseSubscript=function(e,t,n,i,s,o,a){var c=this.options.ecmaVersion>=11,p=c&&this.eat(h.questionDot);if(i&&p)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(h.bracketL);if(f||p&&this.type!==h.parenL&&this.type!==h.backQuote||this.eat(h.dot)){var d=this.startNodeAt(t,n);if(d.object=e,f)d.property=this.parseExpression(),this.expect(h.bracketR);else if(this.type===h.privateId&&e.type!=="Super")d.property=this.parsePrivateIdent();else d.property=this.parseIdent(this.options.allowReserved!=="never");if(d.computed=!!f,c)d.optional=p;e=this.finishNode(d,"MemberExpression")}else if(!i&&this.eat(h.parenL)){var g=new Cn,v=this.yieldPos,_=this.awaitPos,S=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var k=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1,g);if(s&&!p&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=v,this.awaitPos=_,this.awaitIdentPos=S,this.parseSubscriptAsyncArrow(t,n,k,a)}this.checkExpressionErrors(g,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=_||this.awaitPos,this.awaitIdentPos=S||this.awaitIdentPos;var E=this.startNodeAt(t,n);if(E.callee=e,E.arguments=k,c)E.optional=p;e=this.finishNode(E,"CallExpression")}else if(this.type===h.backQuote){if(p||o)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var I=this.startNodeAt(t,n);I.tag=e,I.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(I,"TaggedTemplateExpression")}return e};q.parseExprAtom=function(e,t,n){if(this.type===h.slash)this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case h._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(i=this.startNode(),this.next(),this.type===h.parenL&&!this.allowDirectSuper)this.raise(i.start,"super() call outside constructor of a subclass");if(this.type!==h.dot&&this.type!==h.bracketL&&this.type!==h.parenL)this.unexpected();return this.finishNode(i,"Super");case h._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case h.name:var o=this.start,a=this.startLoc,c=this.containsEsc,p=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!c&&p.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.overrideContext(te.f_expr),this.parseFunction(this.startNodeAt(o,a),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(o,a),[p],!1,t);if(this.options.ecmaVersion>=8&&p.name==="async"&&this.type===h.name&&!c&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(p=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(h.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(o,a),[p],!0,t)}}return p;case h.regexp:var f=this.value;return i=this.parseLiteral(f.value),i.regex={pattern:f.pattern,flags:f.flags},i;case h.num:case h.string:return this.parseLiteral(this.value);case h._null:case h._true:case h._false:return i=this.startNode(),i.value=this.type===h._null?null:this.type===h._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case h.parenL:var d=this.start,g=this.parseParenAndDistinguishExpression(s,t);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(g))e.parenthesizedAssign=d;if(e.parenthesizedBind<0)e.parenthesizedBind=d}return g;case h.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(h.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case h.braceL:return this.overrideContext(te.b_expr),this.parseObj(!1,e);case h._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case h._class:return this.parseClass(this.startNode(),!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate();case h._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(n);else return this.unexpected();default:return this.parseExprAtomDefault()}};q.parseExprAtomDefault=function(){this.unexpected()};q.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===h.parenL&&!e)return this.parseDynamicImport(t);else if(this.type===h.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};q.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(h.parenR))if(this.expect(h.comma),!this.afterTrailingComma(h.parenR)){if(e.options=this.parseMaybeAssign(),!this.eat(h.parenR)){if(this.expect(h.comma),!this.afterTrailingComma(h.parenR))this.unexpected()}}else e.options=null;else e.options=null;else if(!this.eat(h.parenR)){var t=this.start;if(this.eat(h.comma)&&this.eat(h.parenR))this.raiseRecoverable(t,"Trailing comma is not allowed in import()");else this.unexpected(t)}return this.finishNode(e,"ImportExpression")};q.parseImportMeta=function(e){this.next();var t=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="meta")this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'");if(t)this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module");return this.finishNode(e,"MetaProperty")};q.parseLiteral=function(e){var t=this.startNode();if(t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110)t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(t,"Literal")};q.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};q.shouldParseArrow=function(e){return!this.canInsertSemicolon()};q.parseParenAndDistinguishExpression=function(e,t){var n=this.start,i=this.startLoc,s,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a=this.start,c=this.startLoc,p=[],f=!0,d=!1,g=new Cn,v=this.yieldPos,_=this.awaitPos,S;this.yieldPos=0,this.awaitPos=0;while(this.type!==h.parenR)if(f?f=!1:this.expect(h.comma),o&&this.afterTrailingComma(h.parenR,!0)){d=!0;break}else if(this.type===h.ellipsis){if(S=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else p.push(this.parseMaybeAssign(!1,g,this.parseParenItem));var k=this.lastTokEnd,E=this.lastTokEndLoc;if(this.expect(h.parenR),e&&this.shouldParseArrow(p)&&this.eat(h.arrow))return this.checkPatternErrors(g,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=v,this.awaitPos=_,this.parseParenArrowList(n,i,p,t);if(!p.length||d)this.unexpected(this.lastTokStart);if(S)this.unexpected(S);if(this.checkExpressionErrors(g,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=_||this.awaitPos,p.length>1)s=this.startNodeAt(a,c),s.expressions=p,this.finishNodeAt(s,"SequenceExpression",k,E);else s=p[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var I=this.startNodeAt(n,i);return I.expression=s,this.finishNode(I,"ParenthesizedExpression")}else return s};q.parseParenItem=function(e){return e};q.parseParenArrowList=function(e,t,n,i){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,i)};var Wp=[];q.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===h.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="target")this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'");if(n)this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block");return this.finishNode(e,"MetaProperty")}var i=this.start,s=this.startLoc;if(e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,s,!0,!1),e.callee.type==="Super")this.raiseRecoverable(i,"Invalid use of 'super'");if(this.eat(h.parenL))e.arguments=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1);else e.arguments=Wp;return this.finishNode(e,"NewExpression")};q.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();if(this.type===h.invalidTemplate){if(!t)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");n.value={raw:this.value.replace(/\r\n?/g,`
|
|
28
|
+
`),cooked:null}}else n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
29
|
+
`),cooked:this.value};return this.next(),n.tail=this.type===h.backQuote,this.finishNode(n,"TemplateElement")};q.parseTemplate=function(e){if(e===void 0)e={};var t=e.isTagged;if(t===void 0)t=!1;var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:t});n.quasis=[i];while(!i.tail){if(this.type===h.eof)this.raise(this.pos,"Unterminated template literal");this.expect(h.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(h.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:t}))}return this.next(),this.finishNode(n,"TemplateLiteral")};q.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===h.name||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===h.star)&&!ye.test(this.input.slice(this.lastTokEnd,this.start))};q.parseObj=function(e,t){var n=this.startNode(),i=!0,s={};n.properties=[],this.next();while(!this.eat(h.braceR)){if(!i){if(this.expect(h.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(h.braceR))break}else i=!1;var o=this.parseProperty(e,t);if(!e)this.checkPropClash(o,s,t);n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};q.parseProperty=function(e,t){var n=this.startNode(),i,s,o,a;if(this.options.ecmaVersion>=9&&this.eat(h.ellipsis)){if(e){if(n.argument=this.parseIdent(!1),this.type===h.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(n,"RestElement")}if(n.argument=this.parseMaybeAssign(!1,t),this.type===h.comma&&t&&t.trailingComma<0)t.trailingComma=this.start;return this.finishNode(n,"SpreadElement")}if(this.options.ecmaVersion>=6){if(n.method=!1,n.shorthand=!1,e||t)o=this.start,a=this.startLoc;if(!e)i=this.eat(h.star)}var c=this.containsEsc;if(this.parsePropertyName(n),!e&&!c&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(n))s=!0,i=this.options.ecmaVersion>=9&&this.eat(h.star),this.parsePropertyName(n);else s=!1;return this.parsePropertyValue(n,e,i,s,o,a,t,c),this.finishNode(n,"Property")};q.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var i=e.value.start;if(e.kind==="get")this.raiseRecoverable(i,"getter should have no params");else this.raiseRecoverable(i,"setter should have exactly one param")}else if(e.kind==="set"&&e.value.params[0].type==="RestElement")this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};q.parsePropertyValue=function(e,t,n,i,s,o,a,c){if((n||i)&&this.type===h.colon)this.unexpected();if(this.eat(h.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===h.parenL){if(t)this.unexpected();e.method=!0,e.value=this.parseMethod(n,i),e.kind="init"}else if(!t&&!c&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==h.comma&&this.type!==h.braceR&&this.type!==h.eq)){if(n||i)this.unexpected();this.parseGetterSetter(e)}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(n||i)this.unexpected();if(this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=s;if(t)e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key));else if(this.type===h.eq&&a){if(a.shorthandAssign<0)a.shorthandAssign=this.start;e.value=this.parseMaybeDefault(s,o,this.copyNode(e.key))}else e.value=this.copyNode(e.key);e.kind="init",e.shorthand=!0}else this.unexpected()};q.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(h.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(h.bracketR),e.key;else e.computed=!1;return e.key=this.type===h.num||this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};q.initFunction=function(e){if(e.id=null,this.options.ecmaVersion>=6)e.generator=e.expression=!1;if(this.options.ecmaVersion>=8)e.async=!1};q.parseMethod=function(e,t,n){var i=this.startNode(),s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;if(this.initFunction(i),this.options.ecmaVersion>=6)i.generator=e;if(this.options.ecmaVersion>=8)i.async=!!t;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Mi(t,i.generator)|En|(n?ya:0)),this.expect(h.parenL),i.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0,!1),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")};q.parseArrowExpression=function(e,t,n,i){var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;if(this.enterScope(Mi(n,!1)|Ri),this.initFunction(e),this.options.ecmaVersion>=8)e.async=!!n;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")};q.parseFunctionBody=function(e,t,n,i){var s=t&&this.type!==h.braceL,o=this.strict,a=!1;if(s)e.body=this.parseMaybeAssign(i),e.expression=!0,this.checkParams(e,!1);else{var c=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!o||c){if(a=this.strictDirective(this.end),a&&c)this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var p=this.labels;if(this.labels=[],a)this.strict=!0;if(this.checkParams(e,!o&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id)this.checkLValSimple(e.id,va);e.body=this.parseBlock(!1,void 0,a&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=p}this.exitScope()};q.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1){var i=n[t];if(i.type!=="Identifier")return!1}return!0};q.checkParams=function(e,t){var n=Object.create(null);for(var i=0,s=e.params;i<s.length;i+=1){var o=s[i];this.checkLValInnerPattern(o,Oi,t?null:n)}};q.parseExprList=function(e,t,n,i){var s=[],o=!0;while(!this.eat(e)){if(!o){if(this.expect(h.comma),t&&this.afterTrailingComma(e))break}else o=!1;var a=void 0;if(n&&this.type===h.comma)a=null;else if(this.type===h.ellipsis){if(a=this.parseSpread(i),i&&this.type===h.comma&&i.trailingComma<0)i.trailingComma=this.start}else a=this.parseMaybeAssign(!1,i);s.push(a)}return s};q.checkUnreserved=function(e){var{start:t,end:n,name:i}=e;if(this.inGenerator&&i==="yield")this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&i==="await")this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&Sn)&&i==="arguments")this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(i==="arguments"||i==="await"))this.raise(t,"Cannot use "+i+" in class static initialization block");if(this.keywords.test(i))this.raise(t,"Unexpected keyword '"+i+"'");if(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf("\\")!==-1)return;var s=this.strict?this.reservedWordsStrict:this.reservedWords;if(s.test(i)){if(!this.inAsync&&i==="await")this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(t,"The keyword '"+i+"' is reserved")}};q.parseIdent=function(e){var t=this.parseIdentNode();if(this.next(!!e),this.finishNode(t,"Identifier"),!e){if(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=t.start}return t};q.parseIdentNode=function(){var e=this.startNode();if(this.type===h.name)e.name=this.value;else if(this.type.keyword){if(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=h.name}else this.unexpected();return e};q.parsePrivateIdent=function(){var e=this.startNode();if(this.type===h.privateId)e.name=this.value;else this.unexpected();if(this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(e);return e};q.parseYield=function(e){if(!this.yieldPos)this.yieldPos=this.start;var t=this.startNode();if(this.next(),this.type===h.semi||this.canInsertSemicolon()||this.type!==h.star&&!this.type.startsExpr)t.delegate=!1,t.argument=null;else t.delegate=this.eat(h.star),t.argument=this.parseMaybeAssign(e);return this.finishNode(t,"YieldExpression")};q.parseAwait=function(e){if(!this.awaitPos)this.awaitPos=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var vn=ie.prototype;vn.raise=function(e,t){var n=Di(this.input,e);if(t+=" ("+n.line+":"+n.column+")",this.sourceFile)t+=" in "+this.sourceFile;var i=SyntaxError(t);throw i.pos=e,i.loc=n,i.raisedAt=this.pos,i};vn.raiseRecoverable=vn.raise;vn.curPosition=function(){if(this.options.locations)return new mt(this.curLine,this.pos-this.lineStart)};var Ze=ie.prototype,zp=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Ze.enterScope=function(e){this.scopeStack.push(new zp(e))};Ze.exitScope=function(){this.scopeStack.pop()};Ze.treatFunctionsAsVarInScope=function(e){return e.flags&pt||!this.inModule&&e.flags<};Ze.declareName=function(e,t,n){var i=!1;if(t===ze){var s=this.currentScope();if(i=s.lexical.indexOf(e)>-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&s.flags<)delete this.undefinedExports[e]}else if(t===xa){var o=this.currentScope();o.lexical.push(e)}else if(t===ga){var a=this.currentScope();if(this.treatFunctionsAsVar)i=a.lexical.indexOf(e)>-1;else i=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1;a.functions.push(e)}else for(var c=this.scopeStack.length-1;c>=0;--c){var p=this.scopeStack[c];if(p.lexical.indexOf(e)>-1&&!(p.flags&ma&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags<)delete this.undefinedExports[e];if(p.flags&Sn)break}if(i)this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};Ze.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1)this.undefinedExports[e.name]=e};Ze.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Ze.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Sn|Bt|ut))return t}};Ze.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Sn|Bt|ut)&&!(t.flags&Ri))return t}};var Ft=function(t,n,i){if(this.type="",this.start=n,this.end=0,t.options.locations)this.loc=new $t(t,i);if(t.options.directSourceFile)this.sourceFile=t.options.directSourceFile;if(t.options.ranges)this.range=[n,0]},Vt=ie.prototype;Vt.startNode=function(){return new Ft(this,this.start,this.startLoc)};Vt.startNodeAt=function(e,t){return new Ft(this,e,t)};function Ea(e,t,n,i){if(e.type=t,e.end=n,this.options.locations)e.loc.end=i;if(this.options.ranges)e.range[1]=n;return e}Vt.finishNode=function(e,t){return Ea.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Vt.finishNodeAt=function(e,t,n,i){return Ea.call(this,e,t,n,i)};Vt.copyNode=function(e){var t=new Ft(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Kp="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",Sa="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",Ca=Sa+" Extended_Pictographic",wa=Ca,ka=wa+" EBase EComp EMod EPres ExtPict",Pa=ka,Xp=Pa,Jp={9:Sa,10:Ca,11:wa,12:ka,13:Pa,14:Xp},Yp="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Qp={9:"",10:"",11:"",12:"",13:"",14:Yp},oa="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",Aa="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",Ia=Aa+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Na=Ia+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Da=Na+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",La=Da+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Zp=La+" "+Kp,eu={9:Aa,10:Ia,11:Na,12:Da,13:La,14:Zp},Ra={};function tu(e){var t=Ra[e]={binary:Qe(Jp[e]+" "+oa),binaryOfStrings:Qe(Qp[e]),nonBinary:{General_Category:Qe(oa),Script:Qe(eu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Mt=0,yn=[9,10,11,12,13,14];Mt<yn.length;Mt+=1)Ii=yn[Mt],tu(Ii);var Ii,Mt,yn,N=ie.prototype,bn=function(t,n){this.parent=t,this.base=n||this};bn.prototype.separatedFrom=function(t){for(var n=this;n;n=n.parent)for(var i=t;i;i=i.parent)if(n.base===i.base&&n!==i)return!0;return!1};bn.prototype.sibling=function(){return new bn(this.parent,this.base)};var je=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ra[t.options.ecmaVersion>=14?14:t.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};je.prototype.reset=function(t,n,i){var s=i.indexOf("v")!==-1,o=i.indexOf("u")!==-1;if(this.start=t|0,this.source=n+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15)this.switchU=!0,this.switchV=!0,this.switchN=!0;else this.switchU=o&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=o&&this.parser.options.ecmaVersion>=9};je.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};je.prototype.at=function(t,n){if(n===void 0)n=!1;var i=this.source,s=i.length;if(t>=s)return-1;var o=i.charCodeAt(t);if(!(n||this.switchU)||o<=55295||o>=57344||t+1>=s)return o;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(o<<10)+a-56613888:o};je.prototype.nextIndex=function(t,n){if(n===void 0)n=!1;var i=this.source,s=i.length;if(t>=s)return s;var o=i.charCodeAt(t),a;if(!(n||this.switchU)||o<=55295||o>=57344||t+1>=s||(a=i.charCodeAt(t+1))<56320||a>57343)return t+1;return t+2};je.prototype.current=function(t){if(t===void 0)t=!1;return this.at(this.pos,t)};je.prototype.lookahead=function(t){if(t===void 0)t=!1;return this.at(this.nextIndex(this.pos,t),t)};je.prototype.advance=function(t){if(t===void 0)t=!1;this.pos=this.nextIndex(this.pos,t)};je.prototype.eat=function(t,n){if(n===void 0)n=!1;if(this.current(n)===t)return this.advance(n),!0;return!1};je.prototype.eatChars=function(t,n){if(n===void 0)n=!1;var i=this.pos;for(var s=0,o=t;s<o.length;s+=1){var a=o[s],c=this.at(i,n);if(c===-1||c!==a)return!1;i=this.nextIndex(i,n)}return this.pos=i,!0};N.validateRegExpFlags=function(e){var{validFlags:t,flags:n}=e,i=!1,s=!1;for(var o=0;o<n.length;o++){var a=n.charAt(o);if(t.indexOf(a)===-1)this.raise(e.start,"Invalid regular expression flag");if(n.indexOf(a,o+1)>-1)this.raise(e.start,"Duplicate regular expression flag");if(a==="u")i=!0;if(a==="v")s=!0}if(this.options.ecmaVersion>=15&&i&&s)this.raise(e.start,"Invalid regular expression flag")};function nu(e){for(var t in e)return!0;return!1}N.validateRegExpPattern=function(e){if(this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&nu(e.groupNames))e.switchN=!0,this.regexp_pattern(e)};N.regexp_pattern=function(e){if(e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length){if(e.eat(41))e.raise("Unmatched ')'");if(e.eat(93)||e.eat(125))e.raise("Lone quantifier brackets")}if(e.maxBackReference>e.numCapturingParens)e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var i=n[t];if(!e.groupNames[i])e.raise("Invalid named capture referenced")}};N.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;if(t)e.branchID=new bn(e.branchID,null);this.regexp_alternative(e);while(e.eat(124)){if(t)e.branchID=e.branchID.sibling();this.regexp_alternative(e)}if(t)e.branchID=e.branchID.parent;if(this.regexp_eatQuantifier(e,!0))e.raise("Nothing to repeat");if(e.eat(123))e.raise("Lone quantifier brackets")};N.regexp_alternative=function(e){while(e.pos<e.source.length&&this.regexp_eatTerm(e));};N.regexp_eatTerm=function(e){if(this.regexp_eatAssertion(e)){if(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)){if(e.switchU)e.raise("Invalid quantifier")}return!0}if(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))return this.regexp_eatQuantifier(e),!0;return!1};N.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9)n=e.eat(60);if(e.eat(61)||e.eat(33)){if(this.regexp_disjunction(e),!e.eat(41))e.raise("Unterminated group");return e.lastAssertionIsQuantifiable=!n,!0}}return e.pos=t,!1};N.regexp_eatQuantifier=function(e,t){if(t===void 0)t=!1;if(this.regexp_eatQuantifierPrefix(e,t))return e.eat(63),!0;return!1};N.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};N.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var i=0,s=-1;if(this.regexp_eatDecimalDigits(e)){if(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e))s=e.lastIntValue;if(e.eat(125)){if(s!==-1&&s<i&&!t)e.raise("numbers out of order in {} quantifier");return!0}}if(e.switchU&&!t)e.raise("Incomplete quantifier");e.pos=n}return!1};N.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};N.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};N.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),i=e.eat(45);if(n||i){for(var s=0;s<n.length;s++){var o=n.charAt(s);if(n.indexOf(o,s+1)>-1)e.raise("Duplicate regular expression modifiers")}if(i){var a=this.regexp_eatModifiers(e);if(!n&&!a&&e.current()===58)e.raise("Invalid regular expression modifiers");for(var c=0;c<a.length;c++){var p=a.charAt(c);if(a.indexOf(p,c+1)>-1||n.indexOf(p)>-1)e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};N.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9)this.regexp_groupSpecifier(e);else if(e.current()===63)e.raise("Invalid group");if(this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};N.regexp_eatModifiers=function(e){var t="",n=0;while((n=e.current())!==-1&&iu(n))t+=Ge(n),e.advance();return t};function iu(e){return e===105||e===109||e===115}N.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};N.regexp_eatInvalidBracedQuantifier=function(e){if(this.regexp_eatBracedQuantifier(e,!0))e.raise("Nothing to repeat");return!1};N.regexp_eatSyntaxCharacter=function(e){var t=e.current();if(Ma(t))return e.lastIntValue=t,e.advance(),!0;return!1};function Ma(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}N.regexp_eatPatternCharacters=function(e){var t=e.pos,n=0;while((n=e.current())!==-1&&!Ma(n))e.advance();return e.pos!==t};N.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();if(t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124)return e.advance(),!0;return!1};N.regexp_groupSpecifier=function(e){if(e.eat(63)){if(!this.regexp_eatGroupName(e))e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var i=0,s=n;i<s.length;i+=1){var o=s[i];if(!o.separatedFrom(e.branchID))e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");if(t)(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID);else e.groupNames[e.lastStringValue]=!0}};N.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};N.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){e.lastStringValue+=Ge(e.lastIntValue);while(this.regexp_eatRegExpIdentifierPart(e))e.lastStringValue+=Ge(e.lastIntValue);return!0}return!1};N.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);if(e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n))i=e.lastIntValue;if(su(i))return e.lastIntValue=i,!0;return e.pos=t,!1};function su(e){return xe(e,!0)||e===36||e===95}N.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);if(e.advance(n),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n))i=e.lastIntValue;if(ru(i))return e.lastIntValue=i,!0;return e.pos=t,!1};function ru(e){return Me(e,!0)||e===36||e===95||e===8204||e===8205}N.regexp_eatAtomEscape=function(e){if(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))return!0;if(e.switchU){if(e.current()===99)e.raise("Invalid unicode escape");e.raise("Invalid escape")}return!1};N.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU){if(n>e.maxBackReference)e.maxBackReference=n;return!0}if(n<=e.numCapturingParens)return!0;e.pos=t}return!1};N.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};N.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};N.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};N.regexp_eatZero=function(e){if(e.current()===48&&!wn(e.lookahead()))return e.lastIntValue=0,e.advance(),!0;return!1};N.regexp_eatControlEscape=function(e){var t=e.current();if(t===116)return e.lastIntValue=9,e.advance(),!0;if(t===110)return e.lastIntValue=10,e.advance(),!0;if(t===118)return e.lastIntValue=11,e.advance(),!0;if(t===102)return e.lastIntValue=12,e.advance(),!0;if(t===114)return e.lastIntValue=13,e.advance(),!0;return!1};N.regexp_eatControlLetter=function(e){var t=e.current();if(Oa(t))return e.lastIntValue=t%32,e.advance(),!0;return!1};function Oa(e){return e>=65&&e<=90||e>=97&&e<=122}N.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){if(t===void 0)t=!1;var n=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(s-55296)*1024+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&au(e.lastIntValue))return!0;if(i)e.raise("Invalid unicode escape");e.pos=n}return!1};function au(e){return e>=0&&e<=1114111}N.regexp_eatIdentityEscape=function(e){if(e.switchU){if(this.regexp_eatSyntaxCharacter(e))return!0;if(e.eat(47))return e.lastIntValue=47,!0;return!1}var t=e.current();if(t!==99&&(!e.switchN||t!==107))return e.lastIntValue=t,e.advance(),!0;return!1};N.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var $a=0,We=1,Ae=2;N.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(ou(t))return e.lastIntValue=-1,e.advance(),We;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var i;if(e.eat(123)&&(i=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125)){if(n&&i===Ae)e.raise("Invalid property name");return i}e.raise("Invalid property name")}return $a};function ou(e){return e===100||e===68||e===115||e===83||e===119||e===87}N.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,i),We}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return $a};N.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){if(!yt(e.unicodeProperties.nonBinary,t))e.raise("Invalid property name");if(!e.unicodeProperties.nonBinary[t].test(n))e.raise("Invalid property value")};N.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return We;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Ae;e.raise("Invalid property name")};N.regexp_eatUnicodePropertyName=function(e){var t=0;e.lastStringValue="";while(Ba(t=e.current()))e.lastStringValue+=Ge(t),e.advance();return e.lastStringValue!==""};function Ba(e){return Oa(e)||e===95}N.regexp_eatUnicodePropertyValue=function(e){var t=0;e.lastStringValue="";while(lu(t=e.current()))e.lastStringValue+=Ge(t),e.advance();return e.lastStringValue!==""};function lu(e){return Ba(e)||wn(e)}N.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};N.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);if(!e.eat(93))e.raise("Unterminated character class");if(t&&n===Ae)e.raise("Negated character class may contain strings");return!0}return!1};N.regexp_classContents=function(e){if(e.current()===93)return We;if(e.switchV)return this.regexp_classSetExpression(e);return this.regexp_nonEmptyClassRanges(e),We};N.regexp_nonEmptyClassRanges=function(e){while(this.regexp_eatClassAtom(e)){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;if(e.switchU&&(t===-1||n===-1))e.raise("Invalid character class");if(t!==-1&&n!==-1&&t>n)e.raise("Range out of order in character class")}}};N.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();if(n===99||ja(n))e.raise("Invalid class escape");e.raise("Invalid escape")}e.pos=t}var i=e.current();if(i!==93)return e.lastIntValue=i,e.advance(),!0;return!1};N.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};N.regexp_classSetExpression=function(e){var t=We,n;if(this.regexp_eatClassSetRange(e));else if(n=this.regexp_eatClassSetOperand(e)){if(n===Ae)t=Ae;var i=e.pos;while(e.eatChars([38,38])){if(e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))){if(n!==Ae)t=We;continue}e.raise("Invalid character in character class")}if(i!==e.pos)return t;while(e.eatChars([45,45])){if(this.regexp_eatClassSetOperand(e))continue;e.raise("Invalid character in character class")}if(i!==e.pos)return t}else e.raise("Invalid character in character class");for(;;){if(this.regexp_eatClassSetRange(e))continue;if(n=this.regexp_eatClassSetOperand(e),!n)return t;if(n===Ae)t=Ae}};N.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(n!==-1&&i!==-1&&n>i)e.raise("Range out of order in character class");return!0}e.pos=t}return!1};N.regexp_eatClassSetOperand=function(e){if(this.regexp_eatClassSetCharacter(e))return We;return this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};N.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),i=this.regexp_classContents(e);if(e.eat(93)){if(n&&i===Ae)e.raise("Negated character class may contain strings");return i}e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null};N.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null};N.regexp_classStringDisjunctionContents=function(e){var t=this.regexp_classString(e);while(e.eat(124))if(this.regexp_classString(e)===Ae)t=Ae;return t};N.regexp_classString=function(e){var t=0;while(this.regexp_eatClassSetCharacter(e))t++;return t===1?We:Ae};N.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))return!0;if(e.eat(98))return e.lastIntValue=8,!0;return e.pos=t,!1}var n=e.current();if(n<0||n===e.lookahead()&&cu(n))return!1;if(pu(n))return!1;return e.advance(),e.lastIntValue=n,!0};function cu(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function pu(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}N.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();if(uu(t))return e.lastIntValue=t,e.advance(),!0;return!1};function uu(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}N.regexp_eatClassControlLetter=function(e){var t=e.current();if(wn(t)||t===95)return e.lastIntValue=t%32,e.advance(),!0;return!1};N.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;if(e.switchU)e.raise("Invalid escape");e.pos=t}return!1};N.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;e.lastIntValue=0;while(wn(n=e.current()))e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function wn(e){return e>=48&&e<=57}N.regexp_eatHexDigits=function(e){var t=e.pos,n=0;e.lastIntValue=0;while(Fa(n=e.current()))e.lastIntValue=16*e.lastIntValue+Va(n),e.advance();return e.pos!==t};function Fa(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Va(e){if(e>=65&&e<=70)return 10+(e-65);if(e>=97&&e<=102)return 10+(e-97);return e-48}N.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;if(t<=3&&this.regexp_eatOctalDigit(e))e.lastIntValue=t*64+n*8+e.lastIntValue;else e.lastIntValue=t*8+n}else e.lastIntValue=t;return!0}return!1};N.regexp_eatOctalDigit=function(e){var t=e.current();if(ja(t))return e.lastIntValue=t-48,e.advance(),!0;return e.lastIntValue=0,!1};function ja(e){return e>=48&&e<=55}N.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var i=0;i<t;++i){var s=e.current();if(!Fa(s))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Va(s),e.advance()}return!0};var kn=function(t){if(this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations)this.loc=new $t(t,t.startLoc,t.endLoc);if(t.options.ranges)this.range=[t.start,t.end]},G=ie.prototype;G.next=function(e){if(!e&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new kn(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};G.getToken=function(){return this.next(),new kn(this)};if(typeof Symbol<"u")G[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===h.eof,value:t}}}};G.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(h.eof);if(e.override)return e.override(this);else this.readToken(this.fullCharCodeAtPos())};G.readToken=function(e){if(xe(e,this.options.ecmaVersion>=6)||e===92)return this.readWord();return this.getTokenFromCode(e)};G.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888};G.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};G.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=n+2,this.options.locations)for(var i=void 0,s=t;(i=da(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=i;if(this.options.onComment)this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())};G.skipLineComment=function(e){var t=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!ct(i))i=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())};G.skipSpace=function(){e:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){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 e}break;default:if(e>8&&e<14||e>=5760&&Ni.test(String.fromCharCode(e)))++this.pos;else break e}}};G.finishToken=function(e,t){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var n=this.type;this.type=e,this.value=t,this.updateContext(n)};G.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&t===46)return this.pos+=3,this.finishToken(h.ellipsis);else return++this.pos,this.finishToken(h.dot)};G.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(e===61)return this.finishOp(h.assign,2);return this.finishOp(h.slash,1)};G.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,i=e===42?h.star:h.modulo;if(this.options.ecmaVersion>=7&&e===42&&t===42)++n,i=h.starstar,t=this.input.charCodeAt(this.pos+2);if(t===61)return this.finishOp(h.assign,n+1);return this.finishOp(i,n)};G.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(h.assign,3)}return this.finishOp(e===124?h.logicalOR:h.logicalAND,2)}if(t===61)return this.finishOp(h.assign,2);return this.finishOp(e===124?h.bitwiseOR:h.bitwiseAND,1)};G.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(h.assign,2);return this.finishOp(h.bitwiseXOR,1)};G.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ye.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(h.incDec,2)}if(t===61)return this.finishOp(h.assign,2);return this.finishOp(h.plusMin,1)};G.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;if(t===e){if(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61)return this.finishOp(h.assign,n+1);return this.finishOp(h.bitShift,n)}if(t===33&&e===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(t===61)n=2;return this.finishOp(h.relational,n)};G.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===61)return this.finishOp(h.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(e===61&&t===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(h.arrow);return this.finishOp(e===61?h.eq:h.prefix,1)};G.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(h.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(h.assign,3)}return this.finishOp(h.coalesce,2)}}return this.finishOp(h.question,1)};G.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13){if(++this.pos,t=this.fullCharCodeAtPos(),xe(t,!0)||t===92)return this.finishToken(h.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+Ge(t)+"'")};G.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.parenL);case 41:return++this.pos,this.finishToken(h.parenR);case 59:return++this.pos,this.finishToken(h.semi);case 44:return++this.pos,this.finishToken(h.comma);case 91:return++this.pos,this.finishToken(h.bracketL);case 93:return++this.pos,this.finishToken(h.bracketR);case 123:return++this.pos,this.finishToken(h.braceL);case 125:return++this.pos,this.finishToken(h.braceR);case 58:return++this.pos,this.finishToken(h.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(h.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(h.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Ge(e)+"'")};G.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)};G.readRegexp=function(){var e,t,n=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(ye.test(i))this.raise(n,"Unterminated regular expression");if(!e){if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}else e=!1;++this.pos}var s=this.input.slice(n,this.pos);++this.pos;var o=this.pos,a=this.readWord1();if(this.containsEsc)this.unexpected(o);var c=this.regexpState||(this.regexpState=new je(this));c.reset(n,s,a),this.validateRegExpFlags(c),this.validateRegExpPattern(c);var p=null;try{p=new RegExp(s,a)}catch(f){}return this.finishToken(h.regexp,{pattern:s,flags:a,value:p})};G.readInt=function(e,t,n){var i=this.options.ecmaVersion>=12&&t===void 0,s=n&&this.input.charCodeAt(this.pos)===48,o=this.pos,a=0,c=0;for(var p=0,f=t==null?1/0:t;p<f;++p,++this.pos){var d=this.input.charCodeAt(this.pos),g=void 0;if(i&&d===95){if(s)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(c===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(p===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");c=d;continue}if(d>=97)g=d-97+10;else if(d>=65)g=d-65+10;else if(d>=48&&d<=57)g=d-48;else g=1/0;if(g>=e)break;c=d,a=a*e+g}if(i&&c===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===o||t!=null&&this.pos-o!==t)return null;return a};function du(e,t){if(t)return parseInt(e,8);return parseFloat(e.replace(/_/g,""))}function qa(e){if(typeof BigInt!=="function")return null;return BigInt(e.replace(/_/g,""))}G.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);if(n==null)this.raise(this.start+2,"Expected number in radix "+e);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)n=qa(this.input.slice(t,this.pos)),++this.pos;else if(xe(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(h.num,n)};G.readNumber=function(e){var t=this.pos;if(!e&&this.readInt(10,void 0,!0)===null)this.raise(t,"Invalid number");var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;if(n&&this.strict)this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&i===110){var s=qa(this.input.slice(t,this.pos));if(++this.pos,xe(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(h.num,s)}if(n&&/[89]/.test(this.input.slice(t,this.pos)))n=!1;if(i===46&&!n)++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos);if((i===69||i===101)&&!n){if(i=this.input.charCodeAt(++this.pos),i===43||i===45)++this.pos;if(this.readInt(10)===null)this.raise(t,"Invalid number")}if(xe(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var o=du(this.input.slice(t,this.pos),n);return this.finishToken(h.num,o)};G.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){if(this.options.ecmaVersion<6)this.unexpected();var n=++this.pos;if(t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111)this.invalidStringToken(n,"Code point out of bounds")}else t=this.readHexChar(4);return t};G.readString=function(e){var t="",n=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;if(i===92)t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos;else if(i===8232||i===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(ct(i))this.raise(this.start,"Unterminated string constant");++this.pos}}return t+=this.input.slice(n,this.pos++),this.finishToken(h.string,t)};var Ha={};G.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Ha)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};G.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ha;else this.raise(e,t)};G.readTmplToken=function(){var e="",t=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===h.template||this.type===h.invalidTemplate))if(n===36)return this.pos+=2,this.finishToken(h.dollarBraceL);else return++this.pos,this.finishToken(h.backQuote);return e+=this.input.slice(t,this.pos),this.finishToken(h.template,e)}if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ct(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:e+=`
|
|
30
|
+
`;break;default:e+=String.fromCharCode(n);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;t=this.pos}else++this.pos}};G.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(h.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
|
|
31
31
|
`)++this.pos;case`
|
|
32
|
-
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};
|
|
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?`
|
|
32
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};G.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
33
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Ge(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(e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(i,8);if(s>255)i=i.slice(0,-1),s=parseInt(i,8);if(this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e))this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(s)}if(ct(t)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(t)}};G.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);if(n===null)this.invalidStringToken(t,"Bad character escape sequence");return n};G.readWord1=function(){this.containsEsc=!1;var e="",t=!0,n=this.pos,i=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var s=this.fullCharCodeAtPos();if(Me(s,i))this.pos+=s<=65535?1:2;else if(s===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var o=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var a=this.readCodePoint();if(!(t?xe:Me)(a,i))this.invalidStringToken(o,"Invalid Unicode escape");e+=Ge(a),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)};G.readWord=function(){var e=this.readWord1(),t=h.name;if(this.keywords.test(e))t=Tn[e];return this.finishToken(t,e)};var Ua="8.18.0";ie.acorn={Parser:ie,version:Ua,defaultOptions:_n,Position:mt,SourceLocation:$t,getLineInfo:Di,Node:Ft,TokenType:K,tokTypes:h,keywordTypes:Tn,TokContext:Pe,tokContexts:te,isIdentifierChar:Me,isIdentifierStart:xe,Token:kn,isNewLine:ct,lineBreak:ye,lineBreakG:ua,nonASCIIwhitespace:Ni};function hu(e,t){return ie.parse(e,t)}function fu(e,t,n){return ie.parseExpressionAt(e,t,n)}function mu(e,t){return ie.tokenizer(e,t)}var ve=!0,yu=new WeakMap;function _u(e){let t=e.Parser.acorn||e,n=yu.get(t);if(!n){let c=function(B){return B===_.name||B===_.string||B===_.num||k.includes(B)||I.includes(B)},p=function(B){return B===_.name||k.includes(B)||I.includes(B)},f=function(B){return B===_.name||I.includes(B)},d=function(B){return B===E.abstract||B===E.declare||B===E.enum||B===E.module||B===E.namespace||B===E.interface||B===E.type},g=function(B){return B===E.keyof||B===E.readonly||B===E.unique},v=function(B){return B===_.invalidTemplate},{tokTypes:_,keywordTypes:S}=t,k=Object.values(S),E=a(),I=Object.values(E),V=o(),R=s(),J=new RegExp(`^(?:${Object.keys(E).join("|")})$`);V.jsxTagStart.updateContext=function(){this.context.push(R.tc_expr),this.context.push(R.tc_oTag),this.exprAllowed=!1},V.jsxTagEnd.updateContext=function(B){let Z=this.context.pop();if(Z===R.tc_oTag&&B===_.slash||Z===R.tc_cTag)this.context.pop(),this.exprAllowed=this.curContext()===R.tc_expr;else this.exprAllowed=!0},n={tokTypes:{...E,...V},tokContexts:{...R},keywordsRegExp:J,tokenIsLiteralPropertyName:c,tokenIsKeywordOrIdentifier:p,tokenIsIdentifier:f,tokenIsTSDeclarationStart:d,tokenIsTSTypeOperator:g,tokenIsTemplate:v}}return n;function i(c,p={}){return new t.TokenType("name",p)}function s(){return{tc_oTag:new t.TokContext("<tag",!1,!1),tc_cTag:new t.TokContext("</tag",!1,!1),tc_expr:new t.TokContext("<tag>...</tag>",!0,!0)}}function o(){return{at:new t.TokenType("@"),jsxName:new t.TokenType("jsxName"),jsxText:new t.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new t.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new t.TokenType("jsxTagEnd")}}function a(){return{assert:i("assert",{startsExpr:ve}),asserts:i("asserts",{startsExpr:ve}),global:i("global",{startsExpr:ve}),keyof:i("keyof",{startsExpr:ve}),readonly:i("readonly",{startsExpr:ve}),unique:i("unique",{startsExpr:ve}),abstract:i("abstract",{startsExpr:ve}),declare:i("declare",{startsExpr:ve}),enum:i("enum",{startsExpr:ve}),module:i("module",{startsExpr:ve}),namespace:i("namespace",{startsExpr:ve}),interface:i("interface",{startsExpr:ve}),type:i("type",{startsExpr:ve})}}}var gu=512,jt=1024,gt=1,Nn=2,xu=4,Vi=8,vu=16,Ja=64,Ya=128,bu=256,Tu=512,Qa=1024,Gm=gt|Nn|Vi|Ya,Wm=gt|0|Vi|0,zm=gt|0|xu|0,Km=gt|0|vu|0,Xm=0|Nn|0|Ya,Jm=0|Nn|0|0,Eu=gt|Nn|Vi|bu,Ym=0|Qa,Qm=0|Ja,Zm=gt|0|0|Ja,ey=Eu|Tu,ty=0|Qa,Za=4,eo=2,to=1,ny=eo|to,iy=eo|Za,sy=to|Za,Su=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/y,Ga=new RegExp("(?=("+Su.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),qt=class{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}};function Cu(e,t){let n=t.key.name,i=e[n],s="true";if(t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set"))s=(t.static?"s":"i")+t.kind;if(i==="iget"&&s==="iset"||i==="iset"&&s==="iget"||i==="sget"&&s==="sset"||i==="sset"&&s==="sget")return e[n]="true",!1;else if(!i)return e[n]=s,!1;else return!0}function Wa(e,t){let{computed:n,key:i}=e;return!n&&(i.type==="Identifier"&&i.name===t||i.type==="Literal"&&i.value===t)}var L={AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' 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:e})=>`Cannot find name '${e}'.`,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:e})=>`'declare' is not allowed in ${e}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:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' 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:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,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:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[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:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,PrivateMethodsHasAccessibility:({modifier:e})=>`Private methods cannot have an accessibility modifier ('${e}').`,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:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,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:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},In={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 wu(e,t,n){let{tokTypes:i}=n,{tokTypes:s}=t;return class extends e{takeDecorators(a){let c=this.decoratorStack[this.decoratorStack.length-1];if(c.length)a.decorators=c,this.resetStartLocationFromNode(a,c[0]),this.decoratorStack[this.decoratorStack.length-1]=[]}parseDecorators(a){let c=this.decoratorStack[this.decoratorStack.length-1];while(this.match(s.at)){let p=this.parseDecorator();c.push(p)}if(this.match(i._export)){if(!a)this.unexpected()}else if(!this.canHaveLeadingDecorator())this.raise(this.start,In.UnexpectedLeadingDecorator)}parseDecorator(){let a=this.startNode();this.next(),this.decoratorStack.push([]);let c=this.start,p=this.startLoc,f;if(this.match(i.parenL)){let d=this.start,g=this.startLoc;if(this.next(),f=this.parseExpression(),this.expect(i.parenR),this.options.preserveParens){let v=this.startNodeAt(d,g);v.expression=f,f=this.finishNode(v,"ParenthesizedExpression")}}else{f=this.parseIdent(!1);while(this.eat(i.dot)){let d=this.startNodeAt(c,p);d.object=f,d.property=this.parseIdent(!0),d.computed=!1,f=this.finishNode(d,"MemberExpression")}}return a.expression=this.parseMaybeDecoratorArguments(f),this.decoratorStack.pop(),this.finishNode(a,"Decorator")}parseMaybeDecoratorArguments(a){if(this.eat(i.parenL)){let c=this.startNodeAtNode(a);return c.callee=a,c.arguments=this.parseExprList(i.parenR,!1),this.finishNode(c,"CallExpression")}return a}}}var ku={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:"♦"},Pu=/^[\da-fA-F]+$/,Au=/^\d+$/;function Ht(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Ht(e.object)+"."+Ht(e.property)}function Iu(e,t,n,i){let s=e.tokTypes,o=t.tokTypes,a=e.isNewLine,c=e.isIdentifierChar,p=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},i||{});return class extends n{jsx_readToken(){let d="",g=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated JSX contents");let v=this.input.charCodeAt(this.pos);switch(v){case 60:case 123:if(this.pos===this.start){if(v===60&&this.exprAllowed)return++this.pos,this.finishToken(o.jsxTagStart);return this.getTokenFromCode(v)}return d+=this.input.slice(g,this.pos),this.finishToken(o.jsxText,d);case 38:d+=this.input.slice(g,this.pos),d+=this.jsx_readEntity(),g=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(v===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:if(a(v))d+=this.input.slice(g,this.pos),d+=this.jsx_readNewLine(!0),g=this.pos;else++this.pos}}}jsx_readNewLine(d){let g=this.input.charCodeAt(this.pos),v;if(++this.pos,g===13&&this.input.charCodeAt(this.pos)===10)++this.pos,v=d?`
|
|
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
|
|
36
|
-
https://svelte.dev/e/css_empty_declaration`)}function
|
|
37
|
-
https://svelte.dev/e/css_expected_identifier`)}function
|
|
38
|
-
https://svelte.dev/e/css_selector_invalid`)}function
|
|
39
|
-
https://svelte.dev/e/attribute_duplicate`)}function
|
|
40
|
-
https://svelte.dev/e/attribute_empty_shorthand`)}function
|
|
41
|
-
https://svelte.dev/e/block_duplicate_clause`)}function
|
|
42
|
-
https://svelte.dev/e/block_invalid_continuation_placement`)}function
|
|
43
|
-
https://svelte.dev/e/block_invalid_elseif`)}function
|
|
44
|
-
https://svelte.dev/e/block_invalid_placement`)}function
|
|
45
|
-
https://svelte.dev/e/block_unclosed`)}function
|
|
46
|
-
https://svelte.dev/e/block_unexpected_close`)}function
|
|
47
|
-
https://svelte.dev/e/const_tag_invalid_expression`)}function
|
|
48
|
-
https://svelte.dev/e/debug_tag_invalid_arguments`)}function
|
|
49
|
-
https://svelte.dev/e/directive_invalid_value`)}function
|
|
50
|
-
https://svelte.dev/e/directive_missing_name`)}function
|
|
51
|
-
https://svelte.dev/e/element_invalid_closing_tag`)}function
|
|
52
|
-
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function
|
|
53
|
-
https://svelte.dev/e/element_unclosed`)}function
|
|
54
|
-
https://svelte.dev/e/expected_attribute_value`)}function
|
|
55
|
-
https://svelte.dev/e/expected_block_type`)}function
|
|
56
|
-
https://svelte.dev/e/expected_identifier`)}function
|
|
57
|
-
https://svelte.dev/e/expected_pattern`)}function
|
|
58
|
-
https://svelte.dev/e/expected_tag`)}function
|
|
59
|
-
https://svelte.dev/e/expected_token`)}function
|
|
60
|
-
https://svelte.dev/e/expected_whitespace`)}function
|
|
61
|
-
https://svelte.dev/e/js_parse_error`)}function
|
|
62
|
-
https://svelte.dev/e/script_invalid_attribute_value`)}function
|
|
63
|
-
https://svelte.dev/e/script_invalid_context`)}function
|
|
64
|
-
https://svelte.dev/e/script_reserved_attribute`)}function
|
|
65
|
-
https://svelte.dev/e/svelte_meta_duplicate`)}function
|
|
66
|
-
https://svelte.dev/e/svelte_meta_invalid_content`)}function
|
|
67
|
-
https://svelte.dev/e/svelte_meta_invalid_placement`)}function
|
|
68
|
-
https://svelte.dev/e/svelte_meta_invalid_tag`)}function
|
|
69
|
-
https://svelte.dev/e/svelte_options_deprecated_tag`)}function
|
|
70
|
-
https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function
|
|
71
|
-
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function
|
|
72
|
-
https://svelte.dev/e/svelte_options_invalid_tagname`)}function
|
|
73
|
-
https://svelte.dev/e/svelte_options_reserved_tagname`)}function
|
|
74
|
-
https://svelte.dev/e/svelte_options_unknown_attribute`)}function
|
|
75
|
-
https://svelte.dev/e/tag_invalid_name`)}function
|
|
76
|
-
https://svelte.dev/e/tag_invalid_placement`)}function
|
|
77
|
-
https://svelte.dev/e/unexpected_eof`)}function
|
|
78
|
-
https://svelte.dev/e/unexpected_reserved_word`)}function
|
|
79
|
-
https://svelte.dev/e/unterminated_string_constant`)}function
|
|
80
|
-
https://svelte.dev/e/void_element_invalid_content`)}var
|
|
81
|
-
`)
|
|
82
|
-
`,
|
|
83
|
-
`);return
|
|
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]} }`:`{
|
|
85
|
-
${
|
|
35
|
+
`;else v=String.fromCharCode(g);if(this.options.locations)++this.curLine,this.lineStart=this.pos;return v}jsx_readString(d){let g="",v=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");let _=this.input.charCodeAt(this.pos);if(_===d)break;if(_===38)g+=this.input.slice(v,this.pos),g+=this.jsx_readEntity(),v=this.pos;else if(a(_))g+=this.input.slice(v,this.pos),g+=this.jsx_readNewLine(!1),v=this.pos;else++this.pos}return g+=this.input.slice(v,this.pos++),this.finishToken(s.string,g)}jsx_readEntity(){let d="",g=0,v,_=this.input[this.pos];if(_!=="&")this.raise(this.pos,"Entity must start with an ampersand");let S=++this.pos;while(this.pos<this.input.length&&g++<10){if(_=this.input[this.pos++],_===";"){if(d[0]==="#"){if(d[1]==="x"){if(d=d.substr(2),Pu.test(d))v=String.fromCharCode(parseInt(d,16))}else if(d=d.substr(1),Au.test(d))v=String.fromCharCode(parseInt(d,10))}else v=ku[d];break}d+=_}if(!v)return this.pos=S,"&";return v}jsx_readWord(){let d,g=this.pos;do d=this.input.charCodeAt(++this.pos);while(c(d)||d===45);return this.finishToken(o.jsxName,this.input.slice(g,this.pos))}jsx_parseIdentifier(){let d=this.startNode();if(this.type===o.jsxName)d.name=this.value;else if(this.type.keyword)d.name=this.type.keyword;else this.unexpected();return this.next(),this.finishNode(d,"JSXIdentifier")}jsx_parseNamespacedName(){let d=this.start,g=this.startLoc,v=this.jsx_parseIdentifier();if(!p.allowNamespaces||!this.eat(s.colon))return v;var _=this.startNodeAt(d,g);return _.namespace=v,_.name=this.jsx_parseIdentifier(),this.finishNode(_,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===o.jsxTagEnd)return"";let d=this.start,g=this.startLoc,v=this.jsx_parseNamespacedName();if(this.type===s.dot&&v.type==="JSXNamespacedName"&&!p.allowNamespacedObjects)this.unexpected();while(this.eat(s.dot)){let _=this.startNodeAt(d,g);_.object=v,_.property=this.jsx_parseIdentifier(),v=this.finishNode(_,"JSXMemberExpression")}return v}jsx_parseAttributeValue(){switch(this.type){case s.braceL:let d=this.jsx_parseExpressionContainer();if(d.expression.type==="JSXEmptyExpression")this.raise(d.start,"JSX attributes must only be assigned a non-empty expression");return d;case o.jsxTagStart:case s.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let d=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(d,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let d=this.startNode();return this.next(),d.expression=this.type===s.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(s.braceR),this.finishNode(d,"JSXExpressionContainer")}jsx_parseAttribute(){let d=this.startNode();if(this.eat(s.braceL))return this.expect(s.ellipsis),d.argument=this.parseMaybeAssign(),this.expect(s.braceR),this.finishNode(d,"JSXSpreadAttribute");return d.name=this.jsx_parseNamespacedName(),d.value=this.eat(s.eq)?this.jsx_parseAttributeValue():null,this.finishNode(d,"JSXAttribute")}jsx_parseOpeningElementAt(d,g){let v=this.startNodeAt(d,g);v.attributes=[];let _=this.jsx_parseElementName();if(_)v.name=_;while(this.type!==s.slash&&this.type!==o.jsxTagEnd)v.attributes.push(this.jsx_parseAttribute());return v.selfClosing=this.eat(s.slash),this.expect(o.jsxTagEnd),this.finishNode(v,_?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(d,g){let v=this.startNodeAt(d,g),_=this.jsx_parseElementName();if(_)v.name=_;return this.expect(o.jsxTagEnd),this.finishNode(v,_?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(d,g){let v=this.startNodeAt(d,g),_=[],S=this.jsx_parseOpeningElementAt(d,g),k=null;if(!S.selfClosing){e:for(;;)switch(this.type){case o.jsxTagStart:if(d=this.start,g=this.startLoc,this.next(),this.eat(s.slash)){k=this.jsx_parseClosingElementAt(d,g);break e}_.push(this.jsx_parseElementAt(d,g));break;case o.jsxText:_.push(this.parseExprAtom());break;case s.braceL:_.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}if(Ht(k.name)!==Ht(S.name))this.raise(k.start,"Expected corresponding JSX closing tag for <"+Ht(S.name)+">")}let E=S.name?"Element":"Fragment";if(v["opening"+E]=S,v["closing"+E]=k,v.children=_,this.type===s.relational&&this.value==="<")this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag");return this.finishNode(v,"JSX"+E)}jsx_parseText(){let d=this.parseLiteral(this.value);return d.type="JSXText",d}jsx_parseElement(){let d=this.start,g=this.startLoc;return this.next(),this.jsx_parseElementAt(d,g)}}}function Nu(e,t,n){let{tokTypes:i}=t,{tokTypes:s}=n;return class extends e{parseMaybeImportAttributes(a){if(this.type===s._with||this.type===i.assert){this.next();let c=this.parseImportAttributes();if(c)a.attributes=c}}parseImportAttributes(){this.expect(s.braceL);let a=this.parseWithEntries();return this.expect(s.braceR),a}parseWithEntries(){let a=[],c=new Set;do{if(this.type===s.braceR)break;let p=this.startNode(),f;if(this.type===s.string)f=this.parseLiteral(this.value);else f=this.parseIdent(!0);if(this.next(),p.key=f,c.has(p.key.name))this.raise(this.pos,"Duplicated key in attributes");if(c.add(p.key.name),this.type!==s.string)this.raise(this.pos,"Only string is supported as an attribute value");p.value=this.parseLiteral(this.value),a.push(this.finishNode(p,"ImportAttribute"))}while(this.eat(s.comma));return a}}}var Bi=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function za(e){if(!e)throw Error("Assert fail")}function Du(e){return e==="accessor"}function Lu(e){return e==="in"||e==="out"}var An=1,Ka=2,Ru=4,Q={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 Fi(e,t){return Q.SCOPE_FUNCTION|(e?Q.SCOPE_ASYNC:0)|(t?Q.SCOPE_GENERATOR:0)}function Mu(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:n}=e;if(t&&(n.type!=="TemplateLiteral"||n.expressions.length>0))return!1;return no(e.object)}function no(e){if(e.type==="Identifier")return!0;if(e.type!=="MemberExpression")return!1;if(e.computed)return!1;return no(e.object)}function Xa(e){return e==="private"||e==="public"||e==="protected"}function Ou(e){return Boolean(e.startsExpr)}function $u(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function Bu(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function io(e){let{dts:t=!1}=e||{},n=!!e?.jsx;return function(i){let s=i.acorn||Pn,o=_u(s),a=s.tokTypes,c=s.keywordTypes,p=s.isIdentifierStart,f=s.lineBreak,d=s.isNewLine,g=s.tokContexts,v=s.isIdentifierChar,{tokTypes:_,tokContexts:S,keywordsRegExp:k,tokenIsLiteralPropertyName:E,tokenIsTemplate:I,tokenIsTSDeclarationStart:V,tokenIsIdentifier:R,tokenIsKeywordOrIdentifier:J,tokenIsTSTypeOperator:B}=o;function Z(r,l,u=r.length){for(let m=l;m<u;m++){let y=r.charCodeAt(m);if(d(y))return m<u-1&&y===13&&r.charCodeAt(m+1)===10?m+2:m+1}return-1}if(i=wu(i,o,s),e?.jsx)i=Iu(s,o,i,typeof e.jsx==="boolean"?{}:e.jsx);i=Nu(i,o,s);class Y extends i{constructor(r,l,u){super(r,l,u);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=(m)=>{this.tsParseModifiers({modified:m,allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:L.InvalidModifierOnTypeParameterPositions})},this.ecmaVersion=this.options.ecmaVersion}static get acornTypeScript(){return o}get acornTypeScript(){return o}getTokenFromCodeInType(r){if(r===62)return this.finishOp(a.relational,1);if(r===60)return this.finishOp(a.relational,1);return super.getTokenFromCode(r)}readToken(r){if(!this.inType){let l=this.curContext();if(l===S.tc_expr)return this.jsx_readToken();if(l===S.tc_oTag||l===S.tc_cTag){if(p(r))return this.jsx_readWord();if(r==62)return++this.pos,this.finishToken(_.jsxTagEnd);if((r===34||r===39)&&l==S.tc_oTag)return this.jsx_readString(r)}if(r===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)if(++this.pos,e?.jsx)return this.finishToken(_.jsxTagStart);else return this.finishToken(a.relational,"<")}return super.readToken(r)}getTokenFromCode(r){if(this.inType)return this.getTokenFromCodeInType(r);if(r===64)return++this.pos,this.finishToken(_.at);return super.getTokenFromCode(r)}isAbstractClass(){return this.ts_isContextual(_.abstract)&&this.lookahead().type===a._class}finishNode(r,l){if(r.type!==""&&r.end!==0)return r;return super.finishNode(r,l)}tryParse(r,l=this.cloneCurLookaheadState()){let u={node:null};try{return{node:r((y=null)=>{throw u.node=y,u}),error:null,thrown:!1,aborted:!1,failState:null}}catch(m){let y=this.getCurLookaheadState();if(this.setLookaheadState(l),m instanceof SyntaxError)return{node:null,error:m,thrown:!0,aborted:!1,failState:y};if(m===u)return{node:u.node,error:null,thrown:!1,aborted:!0,failState:y};throw m}}setOptionalParametersError(r,l){r.optionalParametersLoc=l?.loc??this.startLoc}reScan_lt_gt(){if(this.type===a.relational)this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos())}reScan_lt(){let{type:r}=this;if(r===a.bitShift)return this.pos-=2,this.finishOp(a.relational,1),a.relational;return r}resetEndLocation(r,l=this.lastTokEnd,u=this.lastTokEndLoc){if(r.end=l,r.loc.end=u,this.options.ranges)r.range[1]=l}startNodeAtNode(r){return super.startNodeAt(r.start,r.loc.start)}nextTokenStart(){return this.nextTokenStartSince(this.pos)}tsHasSomeModifiers(r,l){return l.some((u)=>{if(Xa(u))return r.accessibility===u;return!!r[u]})}tsIsStartOfStaticBlocks(){return this.isContextual("static")&&this.lookaheadCharCode()===123}tsCheckForInvalidTypeCasts(r){r.forEach((l)=>{if(l?.type==="TSTypeCastExpression")this.raise(l.typeAnnotation.start,L.UnexpectedTypeAnnotation)})}atPossibleAsyncArrow(r){return r.type==="Identifier"&&r.name==="async"&&this.lastTokEnd===r.end&&!this.canInsertSemicolon()&&r.end-r.start===5&&r.start===this.potentialArrowAt}tsIsIdentifier(){return R(this.type)}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(a.colon)?this.tsParseTypeOrTypePredicateAnnotation(a.colon):void 0}tsTryParseGenericAsyncArrowFunction(r,l,u){if(!this.tsMatchLeftRelational())return;let m=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let y=this.tsTryParseAndCatch(()=>{let x=this.startNodeAt(r,l);return x.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(x),x.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(a.arrow),x});if(this.maybeInArrowParameters=m,!y)return;return super.parseArrowExpression(y,null,!0,u)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==a.relational)return;return this.tsParseTypeArguments()}tsInNoContext(r){let l=this.context;this.context=[l[0]];try{return r()}finally{this.context=l}}tsTryParseTypeAnnotation(){return this.match(a.colon)?this.tsParseTypeAnnotation():void 0}isUnparsedContextual(r,l){let u=r+l.length;if(this.input.slice(r,u)===l){let m=this.input.charCodeAt(u);return!(v(m)||(m&64512)===55296)}return!1}isAbstractConstructorSignature(){return this.ts_isContextual(_.abstract)&&this.lookahead().type===a._new}nextTokenStartSince(r){return Bi.lastIndex=r,Bi.test(this.input)?Bi.lastIndex:r}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}compareLookaheadState(r,l){for(let u of Object.keys(r))if(r[u]!==l[u])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(r){this.pos=r.pos,this.value=r.value,this.endLoc=r.endLoc,this.lastTokEnd=r.lastTokEnd,this.lastTokStart=r.lastTokStart,this.lastTokStartLoc=r.lastTokStartLoc,this.type=r.type,this.start=r.start,this.end=r.end,this.context=r.context,this.startLoc=r.startLoc,this.lastTokEndLoc=r.lastTokEndLoc,this.curLine=r.curLine,this.lineStart=r.lineStart,this.curPosition=r.curPosition,this.containsEsc=r.containsEsc}tsLookAhead(r){let l=this.getCurLookaheadState(),u=r();return this.setLookaheadState(l),u}lookahead(r){let l=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,r!==void 0)for(let m=0;m<r;m++)this.nextToken();else this.nextToken();this.isLookahead=!1;let u=this.getCurLookaheadState();return this.setLookaheadState(l),u}readWord(){let r=this.readWord1(),l=a.name;if(this.keywords.test(r))l=c[r];else if(new RegExp(k).test(r))l=_[r];return this.finishToken(l,r)}skipBlockComment(){let r;if(!this.isLookahead)r=this.options.onComment&&this.curPosition();let l=this.pos,u=this.input.indexOf("*/",this.pos+=2);if(u===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=u+2,this.options.locations)for(let m,y=l;(m=Z(this.input,y,this.pos))>-1;)++this.curLine,y=this.lineStart=m;if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!0,this.input.slice(l+2,u),l,this.pos,r,this.curPosition())}skipLineComment(r){let l=this.pos,u;if(!this.isLookahead)u=this.options.onComment&&this.curPosition();let m=this.input.charCodeAt(this.pos+=r);while(this.pos<this.input.length&&!d(m))m=this.input.charCodeAt(++this.pos);if(this.isLookahead)return;if(this.options.onComment)this.options.onComment(!1,this.input.slice(l+r,this.pos),l,this.pos,u,this.curPosition())}finishToken(r,l){if(this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();let u=this.type;if(this.type=r,this.value=l,!this.isLookahead)this.updateContext(u)}resetStartLocation(r,l,u){if(r.start=l,r.loc.start=u,this.options.ranges)r.range[0]=l}isLineTerminator(){return this.eat(a.semi)||super.canInsertSemicolon()}hasFollowingLineBreak(){return Ga.lastIndex=this.end,Ga.test(this.input)}addExtra(r,l,u,m=!0){if(!r)return;let y=r.extra=r.extra||{};if(m)y[l]=u;else Object.defineProperty(y,l,{enumerable:m,value:u})}isLiteralPropertyName(){return E(this.type)}hasPrecedingLineBreak(){return f.test(this.input.slice(this.lastTokEnd,this.start))}createIdentifier(r,l){return r.name=l,this.finishNode(r,"Identifier")}resetStartLocationFromNode(r,l){this.resetStartLocation(r,l.start,l.loc.start)}isThisParam(r){return r.type==="Identifier"&&r.name==="this"}isLookaheadContextual(r){let l=this.nextTokenStart();return this.isUnparsedContextual(l,r)}ts_type_isContextual(r,l){return r===l&&!this.containsEsc}ts_isContextual(r){return this.type===r&&!this.containsEsc}ts_isContextualWithState(r,l){return r.type===l&&!r.containsEsc}isContextualWithState(r,l){return l.type===a.name&&l.value===r&&!l.containsEsc}tsIsStartOfMappedType(){if(this.next(),this.eat(a.plusMin))return this.ts_isContextual(_.readonly);if(this.ts_isContextual(_.readonly))this.next();if(!this.match(a.bracketL))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(a._in)}tsInDisallowConditionalTypesContext(r){let l=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.inDisallowConditionalTypesContext=l}}tsTryParseType(){return this.tsEatThenParseType(a.colon)}match(r){return this.type===r}matchJsx(r){return this.type===o.tokTypes[r]}ts_eatWithState(r,l,u){let m=u.type;if(r===m){for(let y=0;y<l;y++)this.next();return!0}else return!1}ts_eatContextualWithState(r,l,u){if(k.test(r)){if(this.ts_isContextualWithState(u,_[r])){for(let m=0;m<l;m++)this.next();return!0}return!1}else{if(!this.isContextualWithState(r,u))return!1;for(let m=0;m<l;m++)this.next();return!0}}canHaveLeadingDecorator(){return this.match(a._class)||this.isAbstractClass()}eatContextual(r){if(k.test(r)){if(this.ts_isContextual(_[r]))return this.next(),!0;return!1}else return super.eatContextual(r)}tsIsExternalModuleReference(){return this.isContextual("require")&&this.lookaheadCharCode()===40}tsParseExternalModuleReference(){let r=this.startNode();if(this.expectContextual("require"),this.expect(a.parenL),!this.match(a.string))this.unexpected();return r.expression=this.parseExprAtom(),this.expect(a.parenR),this.finishNode(r,"TSExternalModuleReference")}tsParseEntityName(r=!0){let l=this.parseIdent(r);while(this.eat(a.dot)){let u=this.startNodeAtNode(l);u.left=l,u.right=this.parseIdent(r),l=this.finishNode(u,"TSQualifiedName")}return l}tsParseEnumMember(){let r=this.startNode();if(r.id=this.match(a.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(a.eq))r.initializer=this.parseMaybeAssign();return this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,l={}){if(l.const)r.const=!0;if(l.declare)r.declare=!0;return this.expectContextual("enum"),r.id=this.parseIdent(),this.checkLValSimple(r.id),this.expect(a.braceL),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(a.braceR),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();this.enterScope(gu),this.expect(a.braceL),r.body=[];while(this.type!==a.braceR){let l=this.parseStatement(null,!0);r.body.push(l)}return this.next(),super.exitScope(),this.finishNode(r,"TSModuleBlock")}tsParseAmbientExternalModuleDeclaration(r){if(this.ts_isContextual(_.global))r.global=!0,r.id=this.parseIdent();else if(this.match(a.string))r.id=this.parseLiteral(this.value);else this.unexpected();if(this.match(a.braceL))this.enterScope(jt),r.body=this.tsParseModuleBlock(),super.exitScope();else super.semicolon();return this.finishNode(r,"TSModuleDeclaration")}tsTryParseDeclare(r){if(this.isLineTerminator())return;let l=this.type,u;if(this.isContextual("let"))l=a._var,u="let";return this.tsInAmbientContext(()=>{if(l===a._function)return r.declare=!0,this.parseFunctionStatement(r,!1,!0);if(l===a._class)return r.declare=!0,this.parseClass(r,!0);if(l===_.enum)return this.tsParseEnumDeclaration(r,{declare:!0});if(l===_.global)return this.tsParseAmbientExternalModuleDeclaration(r);if(l===a._const||l===a._var){if(!this.match(a._const)||!this.isLookaheadContextual("enum"))return r.declare=!0,this.parseVarStatement(r,u||this.value,!0);return this.expect(a._const),this.tsParseEnumDeclaration(r,{const:!0,declare:!0})}if(l===_.interface){let m=this.tsParseInterfaceDeclaration(r,{declare:!0});if(m)return m}if(R(l))return this.tsParseDeclaration(r,this.value,!0)})}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(a.braceR);case"HeritageClauseElement":return this.match(a.braceL);case"TupleElementTypes":return this.match(a.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}}tsParseDelimitedListWorker(r,l,u,m){let y=[],x=-1;for(;;){if(this.tsIsListTerminator(r))break;x=-1;let b=l();if(b==null)return;if(y.push(b),this.eat(a.comma)){x=this.lastTokStart;continue}if(this.tsIsListTerminator(r))break;if(u)this.expect(a.comma);return}if(m)m.value=x;return y}tsParseDelimitedList(r,l,u){return $u(this.tsParseDelimitedListWorker(r,l,!0,u))}tsParseBracketedList(r,l,u,m,y){if(!m)if(u)this.expect(a.bracketL);else this.expect(a.relational);let x=this.tsParseDelimitedList(r,l,y);if(u)this.expect(a.bracketR);else this.expect(a.relational);return x}tsParseTypeParameterName(){return this.parseIdent().name}tsEatThenParseType(r){return!this.match(r)?void 0:this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsDoThenParseType(()=>this.expect(r))}tsNextThenParseType(){return this.tsDoThenParseType(()=>this.next())}tsDoThenParseType(r){return this.tsInType(()=>(r(),this.tsParseType()))}tsSkipParameterStart(){if(R(this.type)||this.match(a._this))return this.next(),!0;if(this.match(a.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(a.bracketL)){this.next();try{return this.parseBindingList(a.bracketR,!0,!0),!0}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(a.parenR)||this.match(a.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(a.colon)||this.match(a.comma)||this.match(a.question)||this.match(a.eq))return!0;if(this.match(a.parenR)){if(this.next(),this.match(a.arrow))return!0}}return!1}tsIsStartOfFunctionType(){if(this.tsMatchLeftRelational())return!0;return this.match(a.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsInAllowConditionalTypesContext(r){let l=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.inDisallowConditionalTypesContext=l}}tsParseBindingListForSignature(){return super.parseBindingList(a.parenR,!0,!0).map((r)=>{if(r.type!=="Identifier"&&r.type!=="RestElement"&&r.type!=="ObjectPattern"&&r.type!=="ArrayPattern")this.raise(r.start,L.UnsupportedSignatureParameterKind({type:r.type}));return r})}tsParseTypePredicateAsserts(){if(this.type!==_.asserts)return!1;let r=this.containsEsc;if(this.next(),!R(this.type)&&!this.match(a._this))return!1;if(r)this.raise(this.lastTokStart,"Escape sequence in keyword asserts");return!0}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeAnnotation(r=!0,l=this.startNode()){return this.tsInType(()=>{if(r)this.expect(a.colon);l.typeAnnotation=this.tsParseType()}),this.finishNode(l,"TSTypeAnnotation")}tsParseThisTypePredicate(r){this.next();let l=this.startNodeAtNode(r);return l.parameterName=r,l.typeAnnotation=this.tsParseTypeAnnotation(!1),l.asserts=!1,this.finishNode(l,"TSTypePredicate")}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(r);else return r}tsParseTypePredicatePrefix(){let r=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let l=this.startNode();this.expect(r);let u=this.startNode(),m=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(m&&this.match(a._this)){let b=this.tsParseThisTypeOrThisTypePredicate();if(b.type==="TSThisType")u.parameterName=b,u.asserts=!0,u.typeAnnotation=null,b=this.finishNode(u,"TSTypePredicate");else this.resetStartLocationFromNode(b,u),b.asserts=!0;return l.typeAnnotation=b,this.finishNode(l,"TSTypeAnnotation")}let y=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!y){if(!m)return this.tsParseTypeAnnotation(!1,l);return u.parameterName=this.parseIdent(),u.asserts=m,u.typeAnnotation=null,l.typeAnnotation=this.finishNode(u,"TSTypePredicate"),this.finishNode(l,"TSTypeAnnotation")}let x=this.tsParseTypeAnnotation(!1);return u.parameterName=y,u.typeAnnotation=x,u.asserts=m,l.typeAnnotation=this.finishNode(u,"TSTypePredicate"),this.finishNode(l,"TSTypeAnnotation")})}tsFillSignature(r,l){let u=r===a.arrow,m="parameters",y="typeAnnotation";if(l.typeParameters=this.tsTryParseTypeParameters(),this.expect(a.parenL),l.parameters=this.tsParseBindingListForSignature(),u)l.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r);else if(this.match(r))l.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r)}tsTryNextParseConstantContext(){if(this.lookahead().type!==a._const)return null;this.next();let r=this.tsParseTypeReference();if(r.typeParameters||r.typeArguments)this.raise(r.typeName.start,L.CannotFindName({name:"const"}));return r}tsParseFunctionOrConstructorType(r,l){let u=this.startNode();if(r==="TSConstructorType"){if(u.abstract=!!l,l)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(a.arrow,u)),this.finishNode(u,r)}tsParseUnionOrIntersectionType(r,l,u){let m=this.startNode(),y=this.eat(u),x=[];do x.push(l());while(this.eat(u));if(x.length===1&&!y)return x[0];return m.types=x,this.finishNode(m,r)}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(r.start,L.UnexpectedReadonly)}}tsParseTypeOperator(){let r=this.startNode(),l=this.value;if(this.next(),r.operator=l,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),l==="readonly")this.tsCheckTypeAnnotationForReadOnly(r);return this.finishNode(r,"TSTypeOperator")}tsParseConstraintForInferType(){if(this.eat(a._extends)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.inDisallowConditionalTypesContext||!this.match(a.question))return r}}tsParseInferType(){let r=this.startNode();this.expectContextual("infer");let l=this.startNode();return l.name=this.tsParseTypeParameterName(),l.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(l,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseLiteralTypeNode(){let r=this.startNode();return r.literal=(()=>{switch(this.type){case a.num:case a.string:case a._true:case a._false:return this.parseExprAtom();default:this.unexpected()}})(),this.finishNode(r,"TSLiteralType")}tsParseImportType(){let r=this.startNode();if(this.expect(a._import),this.expect(a.parenL),!this.match(a.string))this.raise(this.start,L.UnsupportedImportTypeArgument);if(r.argument=this.parseExprAtom(),this.expect(a.parenR),this.eat(a.dot))r.qualifier=this.tsParseEntityName();if(this.tsMatchLeftRelational())r.typeArguments=this.tsParseTypeArguments();return this.finishNode(r,"TSImportType")}tsParseTypeQuery(){let r=this.startNode();if(this.expect(a._typeof),this.match(a._import))r.exprName=this.tsParseImportType();else r.exprName=this.tsParseEntityName();if(!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())r.typeArguments=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeQuery")}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(a._in),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();if(this.expect(a.braceL),this.match(a.plusMin))r.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))r.readonly=!0;if(this.expect(a.bracketL),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(a.bracketR),this.match(a.plusMin))r.optional=this.value,this.next(),this.expect(a.question);else if(this.eat(a.question))r.optional=!0;return r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(a.braceR),this.finishNode(r,"TSMappedType")}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseTupleElementType(){let r=this.startLoc,l=this.start,u=this.eat(a.ellipsis),m=this.tsParseType(),y=this.eat(a.question);if(this.eat(a.colon)){let b=this.startNodeAtNode(m);if(b.optional=y,m.type==="TSTypeReference"&&!m.typeArguments&&m.typeName.type==="Identifier")b.label=m.typeName;else this.raise(m.start,L.InvalidTupleMemberLabel),b.label=m;b.elementType=this.tsParseType(),m=this.finishNode(b,"TSNamedTupleMember")}else if(y){let b=this.startNodeAtNode(m);b.typeAnnotation=m,m=this.finishNode(b,"TSOptionalType")}if(u){let b=this.startNodeAt(l,r);b.typeAnnotation=m,m=this.finishNode(b,"TSRestType")}return m}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let l=!1;return r.elementTypes.forEach((u)=>{let{type:m}=u;if(l&&m!=="TSRestType"&&m!=="TSOptionalType"&&!(m==="TSNamedTupleMember"&&u.optional))this.raise(u.start,L.OptionalTypeBeforeRequired);if(l||=m==="TSNamedTupleMember"&&u.optional||m==="TSOptionalType",m==="TSRestType")u=u.typeAnnotation}),this.finishNode(r,"TSTupleType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=this.parseTemplate({isTagged:!1}),this.finishNode(r,"TSLiteralType")}tsParseTypeReference(){let r=this.startNode();if(r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational())r.typeArguments=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeReference")}tsMatchLeftRelational(){return this.match(a.relational)&&this.value==="<"}tsMatchRightRelational(){return this.match(a.relational)&&this.value===">"}tsParseParenthesizedType(){let r=this.startNode();return this.expect(a.parenL),r.typeAnnotation=this.tsParseType(),this.expect(a.parenR),this.finishNode(r,"TSParenthesizedType")}tsParseNonArrayType(){switch(this.type){case a.string:case a.num:case a._true:case a._false:return this.tsParseLiteralTypeNode();case a.plusMin:if(this.value==="-"){let r=this.startNode();if(this.lookahead().type!==a.num)this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case a._this:return this.tsParseThisTypeOrThisTypePredicate();case a._typeof:return this.tsParseTypeQuery();case a._import:return this.tsParseImportType();case a.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case a.bracketL:return this.tsParseTupleType();case a.parenL:return this.tsParseParenthesizedType();case a.backQuote:case a.dollarBraceL:return this.tsParseTemplateLiteralType();default:{let{type:r}=this;if(R(r)||r===a._void||r===a._null){let l=r===a._void?"TSVoidKeyword":r===a._null?"TSNullKeyword":Bu(this.value);if(l!==void 0&&this.lookaheadCharCode()!==46){let u=this.startNode();return this.next(),this.finishNode(u,l)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(a.bracketL))if(this.match(a.bracketR)){let l=this.startNodeAtNode(r);l.elementType=r,this.expect(a.bracketR),r=this.finishNode(l,"TSArrayType")}else{let l=this.startNodeAtNode(r);l.objectType=r,l.indexType=this.tsParseType(),this.expect(a.bracketR),r=this.finishNode(l,"TSIndexedAccessType")}return r}tsParseTypeOperatorOrHigher(){return B(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),a.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),a.bitwiseOR)}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(a._new))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseType(){za(this.inType);let r=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(a._extends))return r;let l=this.startNodeAtNode(r);return l.checkType=r,l.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(a.question),l.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(a.colon),l.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(l,"TSConditionalType")}tsIsUnambiguouslyIndexSignature(){if(this.next(),R(this.type))return this.next(),this.match(a.colon);return!1}tsInType(r){let l=this.inType;this.inType=!0;try{return r()}finally{this.inType=l}}tsTryParseIndexSignature(r){if(!(this.match(a.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(a.bracketL);let l=this.parseIdent();l.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(l),this.expect(a.bracketR),r.parameters=[l];let u=this.tsTryParseTypeAnnotation();if(u)r.typeAnnotation=u;return this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParseNoneModifiers(r){this.tsParseModifiers({modified:r,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:L.InvalidModifierOnTypeParameterPositions})}tsParseTypeParameter(r=this.tsParseNoneModifiers.bind(this)){let l=this.startNode();return r(l),l.name=this.tsParseTypeParameterName(),l.constraint=this.tsEatThenParseType(a._extends),l.default=this.tsEatThenParseType(a.eq),this.finishNode(l,"TSTypeParameter")}tsParseTypeParameters(r){let l=this.startNode();if(this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart"))this.next();else this.unexpected();let u={value:-1};if(l.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,u),l.params.length===0)this.raise(this.start,L.EmptyTypeParameters);if(u.value!==-1)this.addExtra(l,"trailingComma",u.value);return this.finishNode(l,"TSTypeParameterDeclaration")}tsTryParseTypeParameters(r){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(r)}tsTryParse(r){let l=this.getCurLookaheadState(),u=r();if(u!==void 0&&u!==!1)return u;else{this.setLookaheadState(l);return}}tsTokenCanFollowModifier(){return(this.match(a.bracketL)||this.match(a.braceL)||this.match(a.star)||this.match(a.ellipsis)||this.match(a.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(!0),this.tsTokenCanFollowModifier()}tsParseModifier(r,l){let u=this.value;if(r.indexOf(u)!==-1&&!this.containsEsc){if(l&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return u}return}tsParseModifiersByMap({modified:r,map:l}){for(let u of Object.keys(l))r[u]=l[u]}tsParseModifiers({modified:r,allowedModifiers:l,disallowedModifiers:u,stopOnStartOfClassStaticBlock:m,errorTemplate:y=L.InvalidModifierOnTypeMember}){let x={},b=(C,T,A,P)=>{if(T===A&&r[P])this.raise(C.column,L.InvalidModifiersOrder({orderedModifiers:[A,P]}))},w=(C,T,A,P)=>{if(r[A]&&T===P||r[P]&&T===A)this.raise(C.column,L.IncompatibleModifiers({modifiers:[A,P]}))};for(;;){let C=this.startLoc,T=this.tsParseModifier(l.concat(u??[]),m);if(!T)break;if(Xa(T))if(r.accessibility)this.raise(this.start,L.DuplicateAccessibilityModifier());else b(C,T,T,"override"),b(C,T,T,"static"),b(C,T,T,"readonly"),b(C,T,T,"accessor"),x.accessibility=T,r.accessibility=T;else if(Lu(T))if(r[T])this.raise(this.start,L.DuplicateModifier({modifier:T}));else b(C,T,"in","out"),x[T]=T,r[T]=!0;else if(Du(T))if(r[T])this.raise(this.start,L.DuplicateModifier({modifier:T}));else w(C,T,"accessor","readonly"),w(C,T,"accessor","static"),w(C,T,"accessor","override"),x[T]=T,r[T]=!0;else if(T==="const")if(r[T])this.raise(this.start,L.DuplicateModifier({modifier:T}));else x[T]=T,r[T]=!0;else if(Object.hasOwnProperty.call(r,T))this.raise(this.start,L.DuplicateModifier({modifier:T}));else b(C,T,"static","readonly"),b(C,T,"static","override"),b(C,T,"override","readonly"),b(C,T,"abstract","override"),w(C,T,"declare","override"),w(C,T,"static","abstract"),x[T]=T,r[T]=!0;if(u?.includes(T))this.raise(this.start,y)}return x}tsParseInOutModifiers(r){this.tsParseModifiers({modified:r,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:L.InvalidModifierOnTypeParameter})}parseMaybeUnary(r,l,u,m){if(!e?.jsx&&this.tsMatchLeftRelational())return this.tsParseTypeAssertion();else return super.parseMaybeUnary(r,l,u,m)}tsParseTypeAssertion(){if(n)this.raise(this.start,L.ReservedTypeAssertion);let r=this.tryParse(()=>{let l=this.startNode(),u=this.tsTryNextParseConstantContext();return l.typeAnnotation=u||this.tsNextThenParseType(),this.expect(a.relational),l.expression=this.parseMaybeUnary(),this.finishNode(l,"TSTypeAssertion")});if(r.error)return this.tsParseTypeParameters(this.tsParseConstModifier);else return r.node}tsParseTypeArguments(){let r=this.startNode();if(r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(a.relational),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0)this.raise(this.start,L.EmptyTypeArguments);return this.exprAllowed=!1,this.expect(a.relational),this.finishNode(r,"TSTypeParameterInstantiation")}tsParseHeritageClause(r){let l=this.start,u=this.tsParseDelimitedList("HeritageClauseElement",()=>{let m=this.startNode();if(m.expression=this.tsParseEntityName(),this.tsMatchLeftRelational())m.typeParameters=this.tsParseTypeArguments();return this.finishNode(m,"TSExpressionWithTypeArguments")});if(!u.length)this.raise(l,L.EmptyHeritageClauseType({token:r}));return u}tsParseTypeMemberSemicolon(){if(!this.eat(a.comma)&&!this.isLineTerminator())this.expect(a.semi)}tsTryParseAndCatch(r){let l=this.tryParse((u)=>r()||u());if(l.aborted||!l.node)return;if(l.error)this.setLookaheadState(l.failState);return l.node}tsParseSignatureMember(r,l){return this.tsFillSignature(a.colon,l),this.tsParseTypeMemberSemicolon(),this.finishNode(l,r)}tsParsePropertyOrMethodSignature(r,l){if(this.eat(a.question))r.optional=!0;let u=r;if(this.match(a.parenL)||this.tsMatchLeftRelational()){if(l)this.raise(r.start,L.ReadonlyForMethodSignature);let m=u;if(m.kind&&this.tsMatchLeftRelational())this.raise(this.start,L.AccesorCannotHaveTypeParameters);this.tsFillSignature(a.colon,m),this.tsParseTypeMemberSemicolon();let y="parameters",x="typeAnnotation";if(m.kind==="get"){if(m[y].length>0){if(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(m[y][0]))this.raise(this.start,L.AccesorCannotDeclareThisParameter)}}else if(m.kind==="set"){if(m[y].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{let b=m[y][0];if(this.isThisParam(b))this.raise(this.start,L.AccesorCannotDeclareThisParameter);if(b.type==="Identifier"&&b.optional)this.raise(this.start,L.SetAccesorCannotHaveOptionalParameter);if(b.type==="RestElement")this.raise(this.start,L.SetAccesorCannotHaveRestParameter)}if(m[x])this.raise(m[x].start,L.SetAccesorCannotHaveReturnType)}else m.kind="method";return this.finishNode(m,"TSMethodSignature")}else{let m=u;if(l)m.readonly=!0;let y=this.tsTryParseTypeAnnotation();if(y)m.typeAnnotation=y;return this.tsParseTypeMemberSemicolon(),this.finishNode(m,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(a.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(a._new)){let u=this.startNode();if(this.next(),this.match(a.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSConstructSignatureDeclaration",r);else return r.key=this.createIdentifier(u,"new"),this.tsParsePropertyOrMethodSignature(r,!1)}this.tsParseModifiers({modified:r,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]});let l=this.tsTryParseIndexSignature(r);if(l)return l;if(this.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier())r.kind=r.key.name,this.parsePropertyName(r);return this.tsParsePropertyOrMethodSignature(r,!!r.readonly)}tsParseList(r,l){let u=[];while(!this.tsIsListTerminator(r))u.push(l());return u}tsParseObjectTypeMembers(){this.expect(a.braceL);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(a.braceR),r}tsParseInterfaceDeclaration(r,l={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual("interface"),l.declare)r.declare=!0;if(R(this.type))r.id=this.parseIdent(),this.checkLValSimple(r.id,Q.BIND_TS_INTERFACE);else r.id=null,this.raise(this.start,L.MissingInterfaceName);if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(a._extends))r.extends=this.tsParseHeritageClause("extends");let u=this.startNode();return u.body=this.tsParseInterfaceBody(),r.body=this.finishNode(u,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseInterfaceBody(){this.expect(a.braceL);let r=this.inType;this.inType=!0;let l=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.inType=r,this.expect(a.braceR),l}tsParseAbstractDeclaration(r){if(this.match(a._class))return r.abstract=!0,this.parseClass(r,!0);else if(this.ts_isContextual(_.interface)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.tsParseInterfaceDeclaration(r)}else this.unexpected(r.start)}tsIsDeclarationStart(){return V(this.type)}tsParseExpressionStatement(r,l){switch(l.name){case"declare":{let u=this.tsTryParseDeclare(r);if(u)return u.declare=!0,u;break}case"global":if(this.match(a.braceL)){this.enterScope(jt);let u=r;return u.global=!0,u.id=l,u.body=this.tsParseModuleBlock(),super.exitScope(),this.finishNode(u,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,l.name,!1)}}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsIsExportDefaultSpecifier(){let{type:r}=this,l=this.isAsyncFunction(),u=this.isLet();if(R(r)){if(l&&!this.containsEsc||u)return!1;if((r===_.type||r===_.interface)&&!this.containsEsc){let x=this.lookahead();if(R(x.type)&&!this.isContextualWithState("from",x)||x.type===a.braceL)return!1}}else if(!this.match(a._default))return!1;let m=this.nextTokenStart(),y=this.isUnparsedContextual(m,"from");if(this.input.charCodeAt(m)===44||R(this.type)&&y)return!0;if(this.match(a._default)&&y){let x=this.input.charCodeAt(this.nextTokenStartSince(m+4));return x===34||x===39}return!1}tsInAmbientContext(r){let l=this.isAmbientContext;this.isAmbientContext=!0;try{return r()}finally{this.isAmbientContext=l}}tsCheckLineTerminator(r){if(r){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsParseModuleOrNamespaceDeclaration(r,l=!1){if(r.id=this.parseIdent(),!l)this.checkLValSimple(r.id,Q.BIND_TS_NAMESPACE);if(this.eat(a.dot)){let u=this.startNode();this.tsParseModuleOrNamespaceDeclaration(u,!0),r.body=u}else this.enterScope(jt),r.body=this.tsParseModuleBlock(),super.exitScope();return this.finishNode(r,"TSModuleDeclaration")}checkLValSimple(r,l=Q.BIND_NONE,u){if(r.type==="TSNonNullExpression"||r.type==="TSAsExpression")r=r.expression;return super.checkLValSimple(r,l,u)}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdent(),this.checkLValSimple(r.id,Q.BIND_TS_TYPE),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.expect(a.eq),this.ts_isContextual(_.interface)&&this.lookahead().type!==a.dot){let l=this.startNode();return this.next(),this.finishNode(l,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsParseDeclaration(r,l,u){switch(l){case"abstract":if(this.tsCheckLineTerminator(u)&&(this.match(a._class)||R(this.type)))return this.tsParseAbstractDeclaration(r);break;case"module":if(this.tsCheckLineTerminator(u)){if(this.match(a.string))return this.tsParseAmbientExternalModuleDeclaration(r);else if(R(this.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(u)&&R(this.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(u)&&R(this.type))return this.tsParseTypeAliasDeclaration(r);break}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.value,!0)}tsParseImportEqualsDeclaration(r,l){r.isExport=l||!1,r.id=this.parseIdent(),this.checkLValSimple(r.id,Q.BIND_LEXICAL),super.expect(a.eq);let u=this.tsParseModuleReference();if(r.importKind==="type"&&u.type!=="TSExternalModuleReference")this.raise(u.start,L.ImportAliasHasImportType);return r.moduleReference=u,super.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;let{type:r}=this;if(R(r)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((r===_.type||r===_.interface)&&!this.containsEsc){let m=this.lookahead();if(R(m.type)&&!this.isContextualWithState("from",m)||m.type===a.braceL)return!1}}else if(!this.match(a._default))return!1;let l=this.nextTokenStart(),u=this.isUnparsedContextual(l,"from");if(this.input.charCodeAt(l)===44||R(this.type)&&u)return!0;if(this.match(a._default)&&u){let m=this.input.charCodeAt(this.nextTokenStartSince(l+4));return m===34||m===39}return!1}parseTemplate({isTagged:r=!1}={}){let l=this.startNode();this.next(),l.expressions=[];let u=this.parseTemplateElement({isTagged:r});l.quasis=[u];while(!u.tail){if(this.type===a.eof)this.raise(this.pos,"Unterminated template literal");this.expect(a.dollarBraceL),l.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(a.braceR),l.quasis.push(u=this.parseTemplateElement({isTagged:r}))}return this.next(),this.finishNode(l,"TemplateLiteral")}parseFunction(r,l,u,m,y){if(this.initFunction(r),this.ecmaVersion>=9||this.ecmaVersion>=6&&!m){if(this.type===a.star&&l&Ka)this.unexpected();r.generator=this.eat(a.star)}if(this.ecmaVersion>=8)r.async=!!m;if(l&An)r.id=l&Ru&&this.type!==a.name?null:this.parseIdent();let x=this.yieldPos,b=this.awaitPos,w=this.awaitIdentPos,C=this.maybeInArrowParameters;if(this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fi(r.async,r.generator)),!(l&An))r.id=this.type===a.name?this.parseIdent():null;this.parseFunctionParams(r);let T=l&An;if(this.parseFunctionBody(r,u,!1,y,{isFunctionDeclaration:T}),this.yieldPos=x,this.awaitPos=b,this.awaitIdentPos=w,l&An&&r.id&&!(l&Ka))if(r.body)this.checkLValSimple(r.id,this.strict||r.generator||r.async?this.treatFunctionsAsVar?Q.BIND_VAR:Q.BIND_LEXICAL:Q.BIND_FUNCTION);else this.checkLValSimple(r.id,Q.BIND_NONE);return this.maybeInArrowParameters=C,this.finishNode(r,T?"FunctionDeclaration":"FunctionExpression")}parseFunctionBody(r,l=!1,u=!1,m=!1,y){if(this.match(a.colon))r.returnType=this.tsParseTypeOrTypePredicateAnnotation(a.colon);let x=y?.isFunctionDeclaration?"TSDeclareFunction":y?.isClassMethod?"TSDeclareMethod":void 0;if(x&&!this.match(a.braceL)&&this.isLineTerminator())return this.exitScope(),this.finishNode(r,x);if(x==="TSDeclareFunction"&&this.isAmbientContext){if(this.raise(r.start,L.DeclareFunctionHasImplementation),r.declare)return super.parseFunctionBody(r,l,u,!1),this.finishNode(r,x)}return super.parseFunctionBody(r,l,u,m),r}parseNew(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");let r=this.startNode(),l=this.parseIdent(!0);if(this.ecmaVersion>=6&&this.eat(a.dot)){r.meta=l;let b=this.containsEsc;if(r.property=this.parseIdent(!0),r.property.name!=="target")this.raiseRecoverable(r.property.start,"The only valid meta property for new is 'new.target'");if(b)this.raiseRecoverable(r.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(r.start,"'new.target' can only be used in functions and class static block");return this.finishNode(r,"MetaProperty")}let u=this.start,m=this.startLoc,y=this.type===a._import;if(r.callee=this.parseSubscripts(this.parseExprAtom(),u,m,!0,!1),y&&r.callee.type==="ImportExpression")this.raise(u,"Cannot use new with import()");let{callee:x}=r;if(x.type==="TSInstantiationExpression"&&!x.extra?.parenthesized)r.typeArguments=x.typeArguments,r.callee=x.expression;if(this.eat(a.parenL))r.arguments=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1);else r.arguments=[];return this.finishNode(r,"NewExpression")}parseExprOp(r,l,u,m,y){if(a._in.binop>m&&!this.hasPrecedingLineBreak()){let x;if(this.isContextual("as"))x="TSAsExpression";if(this.isContextual("satisfies"))x="TSSatisfiesExpression";if(x){let b=this.startNodeAt(l,u);b.expression=r;let w=this.tsTryNextParseConstantContext();if(w)b.typeAnnotation=w;else b.typeAnnotation=this.tsNextThenParseType();return this.finishNode(b,x),this.reScan_lt_gt(),this.parseExprOp(b,l,u,m,y)}}return super.parseExprOp(r,l,u,m,y)}parseImportSpecifiers(){let r=[],l=!0;if(o.tokenIsIdentifier(this.type)){if(r.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma))return r}if(this.type===a.star)return r.push(this.parseImportNamespaceSpecifier()),r;this.expect(a.braceL);while(!this.eat(a.braceR)){if(!l){if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break}else l=!1;r.push(this.parseImportSpecifier())}return r}parseImport(r){let l=this.lookahead();if(r.importKind="value",this.importOrExportOuterKind="value",R(l.type)||this.match(a.star)||this.match(a.braceL)){let u=this.lookahead(2);if(u.type!==a.comma&&!this.isContextualWithState("from",u)&&u.type!==a.eq&&this.ts_eatContextualWithState("type",1,l))this.importOrExportOuterKind="type",r.importKind="type",l=this.lookahead(),u=this.lookahead(2);if(R(l.type)&&u.type===a.eq){this.next();let m=this.tsParseImportEqualsDeclaration(r);return this.importOrExportOuterKind="value",m}}if(this.next(),this.type===a.string)r.specifiers=[],r.source=this.parseExprAtom();else r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===a.string?this.parseExprAtom():this.unexpected();if(this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ImportDeclaration"),this.importOrExportOuterKind="value",r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier")this.raise(r.start,L.TypeImportCannotSpecifyDefaultAndNamed);return r}parseExportDefaultDeclaration(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0)}if(this.match(_.interface)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultDeclaration()}parseExportAllDeclaration(r,l){if(this.ecmaVersion>=11)if(this.eatContextual("as"))r.exported=this.parseModuleExportName(),this.checkExport(l,r.exported,this.lastTokStart);else r.exported=null;if(this.expectContextual("from"),this.type!==a.string)this.unexpected();return r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ExportAllDeclaration")}parseDynamicImport(r){if(this.next(),r.source=this.parseMaybeAssign(),this.eat(a.comma)){let l=this.parseExpression();r.arguments=[l]}if(!this.eat(a.parenR)){let l=this.start;if(this.eat(a.comma)&&this.eat(a.parenR))this.raiseRecoverable(l,"Trailing comma is not allowed in import()");else this.unexpected(l)}return this.finishNode(r,"ImportExpression")}parseExport(r,l){let u=this.lookahead();if(this.ts_eatWithState(a._import,2,u)){if(this.ts_isContextual(_.type)&&this.lookaheadCharCode()!==61)r.importKind="type",this.importOrExportOuterKind="type",this.next();else r.importKind="value",this.importOrExportOuterKind="value";let m=this.tsParseImportEqualsDeclaration(r,!0);return this.importOrExportOuterKind=void 0,m}else if(this.ts_eatWithState(a.eq,2,u)){let m=r;return m.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(m,"TSExportAssignment")}else if(this.ts_eatContextualWithState("as",2,u)){let m=r;return this.expectContextual("namespace"),m.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(m,"TSNamespaceExportDeclaration")}else{let m=this.lookahead(2).type;if(this.ts_isContextualWithState(u,_.type)&&(m===a.braceL||m===a.star))this.next(),this.importOrExportOuterKind="type",r.exportKind="type";else this.importOrExportOuterKind="value",r.exportKind="value";if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(r,l);if(this.eat(a._default))return this.checkExport(l,"default",this.lastTokStart),r.declaration=this.parseExportDefaultDeclaration(),this.finishNode(r,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(r.declaration=this.parseExportDeclaration(r),r.declaration.type==="VariableDeclaration")this.checkVariableExport(l,r.declaration.declarations);else this.checkExport(l,r.declaration.id,r.declaration.id.start);r.specifiers=[],r.source=null}else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(l),this.eatContextual("from")){if(this.type!==a.string)this.unexpected();r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r)}else{for(let y of r.specifiers)if(this.checkUnreserved(y.local),this.checkLocalExport(y.local),y.local.type==="Literal")this.raise(y.local.start,"A string literal cannot be used as an exported binding without `from`.");r.source=null}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")}}checkExport(r,l,u){if(!r)return;if(typeof l!=="string")l=l.type==="Identifier"?l.name:l.value;r[l]=!0}parseMaybeDefault(r,l,u){let m=super.parseMaybeDefault(r,l,u);if(m.type==="AssignmentPattern"&&m.typeAnnotation&&m.right.start<m.typeAnnotation.start)this.raise(m.typeAnnotation.start,L.TypeAnnotationAfterAssign);return m}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.end,r.typeAnnotation.loc?.end),r.expression}toAssignableList(r,l){if(!r)r=[];for(let u=0;u<r.length;u++){let m=r[u];if(m?.type==="TSTypeCastExpression")r[u]=this.typeCastToParameter(m)}return super.toAssignableList(r,l)}reportReservedArrowTypeParam(r){if(r.params.length===1&&!r.extra?.trailingComma&&n)this.raise(r.start,L.ReservedArrowTypeParam)}parseExprAtom(r,l,u){if(this.type===_.jsxText)return this.jsx_parseText();else if(this.type===_.jsxTagStart)return this.jsx_parseElement();else if(this.type===_.at)return this.parseDecorators(),this.parseExprAtom();else if(R(this.type)){let m=this.potentialArrowAt===this.start,y=this.start,x=this.startLoc,b=this.containsEsc,w=this.parseIdent(!1);if(this.ecmaVersion>=8&&!b&&w.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(g.f_expr),this.parseFunction(this.startNodeAt(y,x),0,!1,!0,l);if(m&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(y,x),[w],!1,l);if(this.ecmaVersion>=8&&w.name==="async"&&this.type===a.name&&!b&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(w=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(a.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(y,x),[w],!0,l)}}return w}else return super.parseExprAtom(r,l,u)}parseExprAtomDefault(){if(R(this.type)){let r=this.potentialArrowAt===this.start,l=this.containsEsc,u=this.parseIdent();if(!l&&u.name==="async"&&!this.canInsertSemicolon()){let{type:m}=this;if(m===a._function)return this.next(),this.parseFunction(this.startNodeAtNode(u),void 0,!0,!0);else if(R(m))if(this.lookaheadCharCode()===61){let y=this.parseIdent(!1);if(this.canInsertSemicolon()||!this.eat(a.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAtNode(u),[y],!0)}else return u}if(r&&this.match(a.arrow)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(u),[u],!1);return u}else this.unexpected()}parseIdentNode(){let r=this.startNode();if(J(this.type)&&!((this.type.keyword==="class"||this.type.keyword==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)))r.name=this.value;else return super.parseIdentNode();return r}parseVarStatement(r,l,u=!1){let{isAmbientContext:m}=this;this.next(),super.parseVar(r,!1,l,u||m),this.semicolon();let y=this.finishNode(r,"VariableDeclaration");if(!m)return y;for(let{id:x,init:b}of y.declarations){if(!b)continue;if(l!=="const"||!!x.typeAnnotation)this.raise(b.start,L.InitializerNotAllowedInAmbientContext);else if(b.type!=="StringLiteral"&&b.type!=="BooleanLiteral"&&b.type!=="NumericLiteral"&&b.type!=="BigIntLiteral"&&(b.type!=="TemplateLiteral"||b.expressions.length>0)&&!Mu(b))this.raise(b.start,L.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference)}return y}parseStatement(r,l,u){if(this.match(_.at))this.parseDecorators(!0);if(this.match(a._const)&&this.isLookaheadContextual("enum")){let m=this.startNode();return this.expect(a._const),this.tsParseEnumDeclaration(m,{const:!0})}if(this.ts_isContextual(_.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(_.interface)){let m=this.tsParseInterfaceDeclaration(this.startNode());if(m)return m}return super.parseStatement(r,l,u)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parsePostMemberNameModifiers(r){if(this.eat(a.question))r.optional=!0;if(r.readonly&&this.match(a.parenL))this.raise(r.start,L.ClassMethodHasReadonly);if(r.declare&&this.match(a.parenL))this.raise(r.start,L.ClassMethodHasDeclare)}parseExpressionStatement(r,l){return(l.type==="Identifier"?this.tsParseExpressionStatement(r,l):void 0)||super.parseExpressionStatement(r,l)}shouldParseExportStatement(){if(this.tsIsDeclarationStart())return!0;if(this.match(_.at))return!0;return super.shouldParseExportStatement()}parseConditional(r,l,u,m,y){if(this.eat(a.question)){let x=this.startNodeAt(l,u);return x.test=r,x.consequent=this.parseMaybeAssign(),this.expect(a.colon),x.alternate=this.parseMaybeAssign(m),this.finishNode(x,"ConditionalExpression")}return r}parseMaybeConditional(r,l){let u=this.start,m=this.startLoc,y=this.parseExprOps(r,l);if(this.checkExpressionErrors(l))return y;if(!this.maybeInArrowParameters||!this.match(a.question))return this.parseConditional(y,u,m,r,l);let x=this.tryParse(()=>this.parseConditional(y,u,m,r,l));if(!x.node){if(x.error)this.setOptionalParametersError(l,x.error);return y}if(x.error)this.setLookaheadState(x.failState);return x.node}parseParenItem(r){let l=this.start,u=this.startLoc;if(r=super.parseParenItem(r),this.eat(a.question))r.optional=!0,this.resetEndLocation(r);if(this.match(a.colon)){let m=this.startNodeAt(l,u);return m.expression=r,m.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(m,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.isAmbientContext&&this.ts_isContextual(_.declare))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let l=this.start,u=this.startLoc,m=this.eatContextual("declare");if(m&&(this.ts_isContextual(_.declare)||!this.shouldParseExportStatement()))this.raise(this.start,L.ExpectedAmbientAfterExportDeclare);let x=R(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);if(!x)return null;if(x.type==="TSInterfaceDeclaration"||x.type==="TSTypeAliasDeclaration"||m)r.exportKind="type";if(m)this.resetStartLocation(x,l,u),x.declare=!0;return x}parseClassId(r,l){if(!l&&this.isContextual("implements"))return;super.parseClassId(r,l);let u=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));if(u)r.typeParameters=u}parseClassPropertyAnnotation(r){if(!r.optional){if(this.value==="!"&&this.eat(a.prefix))r.definite=!0;else if(this.eat(a.question))r.optional=!0}let l=this.tsTryParseTypeAnnotation();if(l)r.typeAnnotation=l}parseClassField(r){if(r.key.type==="PrivateIdentifier"){if(r.abstract)this.raise(r.start,L.PrivateElementHasAbstract);if(r.accessibility)this.raise(r.start,L.PrivateElementHasAccessibility({modifier:r.accessibility}));this.parseClassPropertyAnnotation(r)}else{if(this.parseClassPropertyAnnotation(r),this.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(a.eq))this.raise(this.start,L.DeclareClassFieldHasInitializer);if(r.abstract&&this.match(a.eq)){let{key:u}=r;this.raise(this.start,L.AbstractPropertyHasInitializer({propertyName:u.type==="Identifier"&&!r.computed?u.name:`[${this.input.slice(u.start,u.end)}]`}))}}return super.parseClassField(r)}parseClassMethod(r,l,u,m){let y=r.kind==="constructor",x=r.key.type==="PrivateIdentifier",b=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(x){if(b)r.typeParameters=b;if(r.accessibility)this.raise(r.start,L.PrivateMethodsHasAccessibility({modifier:r.accessibility}))}else if(b&&y)this.raise(b.start,L.ConstructorHasTypeParameters);let{declare:w=!1,kind:C}=r;if(w&&(C==="get"||C==="set"))this.raise(r.start,L.DeclareAccessor({kind:C}));if(b)r.typeParameters=b;let T=r.key;if(r.kind==="constructor"){if(l)this.raise(T.start,"Constructor can't be a generator");if(u)this.raise(T.start,"Constructor can't be an async method")}else if(r.static&&Wa(r,"prototype"))this.raise(T.start,"Classes may not have a static property named prototype");let A=r.value=this.parseMethod(l,u,m,!0,r);if(r.kind==="get"&&A.params.length!==0)this.raiseRecoverable(A.start,"getter should have no params");if(r.kind==="set"&&A.params.length!==1)this.raiseRecoverable(A.start,"setter should have exactly one param");if(r.kind==="set"&&A.params[0].type==="RestElement")this.raiseRecoverable(A.params[0].start,"Setter cannot use rest params");return this.finishNode(r,"MethodDefinition")}isClassMethod(){return this.match(a.relational)}parseClassElement(r){if(this.eat(a.semi))return null;let l=this.startNode(),u="",m=!1,y=!1,x="method",b=!1,w=["declare","private","public","protected","accessor","override","abstract","readonly","static"],C=this.tsParseModifiers({modified:l,allowedModifiers:w,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:L.InvalidModifierOnTypeParameterPositions});b=Boolean(C.static);let T=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(l,w))this.raise(this.start,L.StaticBlockCannotHaveModifier);if(this.ecmaVersion>=13)return super.parseClassStaticBlock(l),l}else{let A=this.tsTryParseIndexSignature(l);if(A){if(l.abstract)this.raise(l.start,L.IndexSignatureHasAbstract);if(l.accessibility)this.raise(l.start,L.IndexSignatureHasAccessibility({modifier:l.accessibility}));if(l.declare)this.raise(l.start,L.IndexSignatureHasDeclare);if(l.override)this.raise(l.start,L.IndexSignatureHasOverride);return A}if(!this.inAbstractClass&&l.abstract)this.raise(l.start,L.NonAbstractClassHasAbstractMethod);if(l.override){if(!r)this.raise(l.start,L.OverrideNotInSubClass)}if(l.static=b,b){if(!(this.isClassElementNameStart()||this.type===a.star))u="static"}if(!u&&this.ecmaVersion>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon())y=!0;else u="async";if(!u&&(this.ecmaVersion>=9||!y)&&this.eat(a.star))m=!0;if(!u&&!y&&!m){let P=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())x=P;else u=P}if(u)l.computed=!1,l.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),l.key.name=u,this.finishNode(l.key,"Identifier");else this.parseClassElementName(l);if(this.parsePostMemberNameModifiers(l),this.isClassMethod()||this.ecmaVersion<13||this.type===a.parenL||x!=="method"||m||y){let P=!l.static&&Wa(l,"constructor"),M=P&&r;if(P&&x!=="method")this.raise(l.key.start,"Constructor can't have get/set modifier");l.kind=P?"constructor":x,this.parseClassMethod(l,m,y,M)}else this.parseClassField(l);return l}};if(l.declare)this.tsInAmbientContext(T);else T();return l}isClassElementNameStart(){if(this.tsIsIdentifier())return!0;return super.isClassElementNameStart()}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.tsMatchLeftRelational()||this.match(a.bitShift)))r.superTypeParameters=this.tsParseTypeArgumentsInExpression();if(this.eatContextual("implements"))r.implements=this.tsParseHeritageClause("implements")}parseFunctionParams(r){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(l)r.typeParameters=l;super.parseFunctionParams(r)}parseVarId(r,l){if(super.parseVarId(r,l),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(a.prefix))r.definite=!0;let u=this.tsTryParseTypeAnnotation();if(u)r.id.typeAnnotation=u,this.resetEndLocation(r.id)}parseArrowExpression(r,l,u,m){if(this.match(a.colon))r.returnType=this.tsParseTypeAnnotation();let y=this.yieldPos,x=this.awaitPos,b=this.awaitIdentPos;this.enterScope(Fi(u,!1)|Q.SCOPE_ARROW),this.initFunction(r);let w=this.maybeInArrowParameters;if(this.ecmaVersion>=8)r.async=!!u;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,r.params=this.toAssignableList(l,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(r,!0,!1,m),this.yieldPos=y,this.awaitPos=x,this.awaitIdentPos=b,this.maybeInArrowParameters=w,this.finishNode(r,"ArrowFunctionExpression")}parseMaybeAssignOrigin(r,l,u){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(r);else this.exprAllowed=!1;let m=!1,y=-1,x=-1,b=-1;if(l)y=l.parenthesizedAssign,x=l.trailingComma,b=l.doubleProto,l.parenthesizedAssign=l.trailingComma=-1;else l=new qt,m=!0;let w=this.start,C=this.startLoc;if(this.type===a.parenL||R(this.type))this.potentialArrowAt=this.start,this.potentialArrowInForAwait=r==="await";let T=this.parseMaybeConditional(r,l);if(u)T=u.call(this,T,w,C);if(this.type.isAssign){let A=this.startNodeAt(w,C);if(A.operator=this.value,this.type===a.eq)T=this.toAssignable(T,!0,l);if(!m)l.parenthesizedAssign=l.trailingComma=l.doubleProto=-1;if(l.shorthandAssign>=T.start)l.shorthandAssign=-1;if(!this.maybeInArrowParameters)if(this.type===a.eq)this.checkLValPattern(T);else this.checkLValSimple(T);if(A.left=T,this.next(),A.right=this.parseMaybeAssign(r),b>-1)l.doubleProto=b;return this.finishNode(A,"AssignmentExpression")}else if(m)this.checkExpressionErrors(l,!0);if(y>-1)l.parenthesizedAssign=y;if(x>-1)l.trailingComma=x;return T}parseMaybeAssign(r,l,u){let m,y,x;if(e?.jsx&&(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational())){if(m=this.cloneCurLookaheadState(),y=this.tryParse(()=>this.parseMaybeAssignOrigin(r,l,u),m),!y.error)return y.node;let C=this.context,T=C[C.length-1],A=C[C.length-2];if(T===o.tokContexts.tc_oTag&&A===o.tokContexts.tc_expr)C.pop(),C.pop();else if(T===o.tokContexts.tc_oTag||T===o.tokContexts.tc_expr)C.pop()}if(!y?.error&&!this.tsMatchLeftRelational())return this.parseMaybeAssignOrigin(r,l,u);if(!m||this.compareLookaheadState(m,this.getCurLookaheadState()))m=this.cloneCurLookaheadState();let b,w=this.tryParse((C)=>{b=this.tsParseTypeParameters(this.tsParseConstModifier);let T=this.parseMaybeAssignOrigin(r,l,u);if(T.type!=="ArrowFunctionExpression"||T.extra?.parenthesized)C();if(b?.params.length!==0)this.resetStartLocationFromNode(T,b);return T.typeParameters=b,T},m);if(!w.error&&!w.aborted){if(b)this.reportReservedArrowTypeParam(b);return w.node}if(!y){if(za(!0),x=this.tryParse(()=>this.parseMaybeAssignOrigin(r,l,u),m),!x.error)return x.node}if(y?.node)return this.setLookaheadState(y.failState),y.node;if(w.node){if(this.setLookaheadState(w.failState),b)this.reportReservedArrowTypeParam(b);return w.node}if(x?.node)return this.setLookaheadState(x.failState),x.node;if(y?.thrown)throw y.error;if(w.thrown)throw w.error;if(x?.thrown)throw x.error;throw y?.error||w.error||x?.error}parseAssignableListItem(r){let l=[];while(this.match(_.at))l.push(this.parseDecorator());let u=this.start,m=this.startLoc,y,x=!1,b=!1;if(r!==void 0){let T={};if(this.tsParseModifiers({modified:T,allowedModifiers:["public","private","protected","override","readonly"]}),y=T.accessibility,b=T.override,x=T.readonly,r===!1&&(y||x||b))this.raise(m.column,L.UnexpectedParameterModifier)}let w=this.parseMaybeDefault(u,m);this.parseBindingListItem(w);let C=this.parseMaybeDefault(w.start,w.loc.start,w);if(l.length)C.decorators=l;if(y||x||b){let T=this.startNodeAt(u,m);if(y)T.accessibility=y;if(x)T.readonly=x;if(b)T.override=b;if(C.type!=="Identifier"&&C.type!=="AssignmentPattern")this.raise(T.start,L.UnsupportedParameterPropertyKind);return T.parameter=C,this.finishNode(T,"TSParameterProperty")}return C}checkLValInnerPattern(r,l=Q.BIND_NONE,u){switch(r.type){case"TSParameterProperty":this.checkLValInnerPattern(r.parameter,l,u);break;default:{super.checkLValInnerPattern(r,l,u);break}}}parseBindingListItem(r){if(this.eat(a.question)){if(r.type!=="Identifier"&&!this.isAmbientContext&&!this.inType)this.raise(r.start,L.PatternIsOptional);r.optional=!0}let l=this.tsTryParseTypeAnnotation();if(l)r.typeAnnotation=l;return this.resetEndLocation(r),r}isAssignable(r,l){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,l);case"TSParameterProperty":return!0;case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let u=r.properties.length-1;return r.properties.every((m,y)=>m.type!=="ObjectMethod"&&(y===u||m.type!=="SpreadElement")&&this.isAssignable(m))}case"Property":case"ObjectProperty":return this.isAssignable(r.value);case"SpreadElement":return this.isAssignable(r.argument);case"ArrayExpression":return r.elements.every((u)=>u===null||this.isAssignable(u));case"AssignmentExpression":return r.operator==="=";case"ParenthesizedExpression":return this.isAssignable(r.expression);case"MemberExpression":case"OptionalMemberExpression":return!l;default:return!1}}toAssignable(r,l=!1,u=new qt){switch(r.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(r,l,u);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(l);else this.raise(r.start,L.UnexpectedTypeCastInParameter);return this.toAssignable(r.expression,l,u);case"MemberExpression":break;case"AssignmentExpression":if(!l&&r.left.type==="TSTypeCastExpression")r.left=this.typeCastToParameter(r.left);return super.toAssignable(r,l,u);case"TSTypeCastExpression":return this.typeCastToParameter(r);default:return super.toAssignable(r,l,u)}return r}toAssignableParenthesizedExpression(r,l,u){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(r.expression,l,u);default:return super.toAssignable(r,l,u)}}parseBindingAtom(){switch(this.type){case a._this:return this.parseIdent(!0);default:return super.parseBindingAtom()}}shouldParseArrow(r){let l;if(this.match(a.colon))l=r.every((u)=>this.isAssignable(u,!0));else l=!this.canInsertSemicolon();if(l){if(this.match(a.colon)){let u=this.tryParse((m)=>{let y=this.tsParseTypeOrTypePredicateAnnotation(a.colon);if(this.canInsertSemicolon()||!this.match(a.arrow))m();return y});if(u.aborted)return this.shouldParseArrowReturnType=void 0,!1;if(!u.thrown){if(u.error)this.setLookaheadState(u.failState);this.shouldParseArrowReturnType=u.node}}if(!this.match(a.arrow))return this.shouldParseArrowReturnType=void 0,!1;return!0}return this.shouldParseArrowReturnType=void 0,l}parseParenArrowList(r,l,u,m){let y=this.startNodeAt(r,l);return y.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(y,u,!1,m)}parseParenAndDistinguishExpression(r,l){let u=this.start,m=this.startLoc,y,x=this.ecmaVersion>=8;if(this.ecmaVersion>=6){let b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();let w=this.start,C=this.startLoc,T=[],A=!0,P=!1,M=new qt,j=this.yieldPos,H=this.awaitPos,X;this.yieldPos=0,this.awaitPos=0;while(this.type!==a.parenR)if(A?A=!1:this.expect(a.comma),x&&this.afterTrailingComma(a.parenR,!0)){P=!0;break}else if(this.type===a.ellipsis){if(X=this.start,T.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma)this.raise(this.start,"Comma is not permitted after the rest element");break}else T.push(this.parseMaybeAssign(l,M,this.parseParenItem));let F=this.lastTokEnd,z=this.lastTokEndLoc;if(this.expect(a.parenR),this.maybeInArrowParameters=b,r&&this.shouldParseArrow(T)&&this.eat(a.arrow))return this.checkPatternErrors(M,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=j,this.awaitPos=H,this.parseParenArrowList(u,m,T,l);if(!T.length||P)this.unexpected(this.lastTokStart);if(X)this.unexpected(X);if(this.checkExpressionErrors(M,!0),this.yieldPos=j||this.yieldPos,this.awaitPos=H||this.awaitPos,T.length>1)y=this.startNodeAt(w,C),y.expressions=T,this.finishNodeAt(y,"SequenceExpression",F,z);else y=T[0]}else y=this.parseParenExpression();if(this.options.preserveParens){let b=this.startNodeAt(u,m);return b.expression=y,this.finishNode(b,"ParenthesizedExpression")}else return y}parseTaggedTemplateExpression(r,l,u,m){let y=this.startNodeAt(l,u);if(y.tag=r,y.quasi=this.parseTemplate({isTagged:!0}),m)this.raise(l,"Tagged Template Literals are not allowed in optionalChain.");return this.finishNode(y,"TaggedTemplateExpression")}shouldParseAsyncArrow(){if(this.match(a.colon)){let r=this.tryParse((l)=>{let u=this.tsParseTypeOrTypePredicateAnnotation(a.colon);if(this.canInsertSemicolon()||!this.match(a.arrow))l();return u});if(r.aborted)return this.shouldParseAsyncArrowReturnType=void 0,!1;if(!r.thrown){if(r.error)this.setLookaheadState(r.failState);return this.shouldParseAsyncArrowReturnType=r.node,!this.canInsertSemicolon()&&this.eat(a.arrow)}}else return!this.canInsertSemicolon()&&this.eat(a.arrow)}parseSubscriptAsyncArrow(r,l,u,m){let y=this.startNodeAt(r,l);return y.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(y,u,!0,m)}parseExprList(r,l,u,m){let y=[],x=!0;while(!this.eat(r)){if(!x){if(this.expect(a.comma),l&&this.afterTrailingComma(r))break}else x=!1;let b;if(u&&this.type===a.comma)b=null;else if(this.type===a.ellipsis){if(b=this.parseSpread(m),this.maybeInArrowParameters&&this.match(a.colon))b.typeAnnotation=this.tsParseTypeAnnotation();if(m&&this.type===a.comma&&m.trailingComma<0)m.trailingComma=this.start}else b=this.parseMaybeAssign(!1,m,this.parseParenItem);y.push(b)}return y}parseSubscript(r,l,u,m,y,x,b){let w=x;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(a.prefix)){this.exprAllowed=!1,this.next();let M=this.startNodeAt(l,u);return M.expression=r,r=this.finishNode(M,"TSNonNullExpression"),r}let C=!1;if(this.match(a.questionDot)&&this.lookaheadCharCode()===60){if(m)return r;r.optional=!0,w=C=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(a.bitShift)){let M,j=this.tsTryParseAndCatch(()=>{if(!m&&this.atPossibleAsyncArrow(r)){let z=this.tsTryParseGenericAsyncArrowFunction(l,u,b);if(z)return r=z,r}let H=this.tsParseTypeArgumentsInExpression();if(!H)return r;if(C&&!this.match(a.parenL))return M=this.curPosition(),r;if(I(this.type)||this.type===a.backQuote){let z=this.parseTaggedTemplateExpression(r,l,u,w);return z.typeArguments=H,z}if(!m&&this.eat(a.parenL)){let z=new qt,U=this.startNodeAt(l,u);if(U.callee=r,U.arguments=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1,z),this.tsCheckForInvalidTypeCasts(U.arguments),U.typeArguments=H,w)U.optional=C;return this.checkExpressionErrors(z,!0),r=this.finishNode(U,"CallExpression"),r}let X=this.type;if(this.tsMatchRightRelational()||X===a.bitShift||X!==a.parenL&&Ou(X)&&!this.hasPrecedingLineBreak())return;let F=this.startNodeAt(l,u);return F.expression=r,F.typeArguments=H,this.finishNode(F,"TSInstantiationExpression")});if(M)this.unexpected(M);if(j){if(j.type==="TSInstantiationExpression"&&(this.match(a.dot)||this.match(a.questionDot)&&this.lookaheadCharCode()!==40))this.raise(this.start,L.InvalidPropertyAccessAfterInstantiationExpression);return r=j,r}}let T=this.ecmaVersion>=11,A=T&&this.eat(a.questionDot);if(m&&A)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");let P=this.eat(a.bracketL);if(P||A&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){let M=this.startNodeAt(l,u);if(M.object=r,P)M.property=this.parseExpression(),this.expect(a.bracketR);else if(this.type===a.privateId&&r.type!=="Super")M.property=this.parsePrivateIdent();else M.property=this.parseIdent(this.options.allowReserved!=="never");if(M.computed=!!P,T)M.optional=A;r=this.finishNode(M,"MemberExpression")}else if(!m&&this.eat(a.parenL)){let M=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;let j=new qt,H=this.yieldPos,X=this.awaitPos,F=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;let z=this.parseExprList(a.parenR,this.ecmaVersion>=8,!1,j);if(y&&!A&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(j,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");this.yieldPos=H,this.awaitPos=X,this.awaitIdentPos=F,r=this.parseSubscriptAsyncArrow(l,u,z,b)}else{this.checkExpressionErrors(j,!0),this.yieldPos=H||this.yieldPos,this.awaitPos=X||this.awaitPos,this.awaitIdentPos=F||this.awaitIdentPos;let U=this.startNodeAt(l,u);if(U.callee=r,U.arguments=z,T)U.optional=A;r=this.finishNode(U,"CallExpression")}this.maybeInArrowParameters=M}else if(this.type===a.backQuote){if(A||w)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");let M=this.startNodeAt(l,u);M.tag=r,M.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(M,"TaggedTemplateExpression")}return r}parseGetterSetter(r){r.kind=r.key.name,this.parsePropertyName(r);let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r.value=this.parseMethod(!1),l)r.value.typeParameters=l;let u=r.kind==="get"?0:1,m=r.value.params[0];if(u=m&&this.isThisParam(m)?u+1:u,r.value.params.length!==u){let x=r.value.start;if(r.kind==="get")this.raiseRecoverable(x,"getter should have no params");else this.raiseRecoverable(x,"setter should have exactly one param")}else if(r.kind==="set"&&r.value.params[0].type==="RestElement")this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")}parsePropertyValue(r,l,u,m,y,x,b,w){if(this.tsMatchLeftRelational()){if(l)this.unexpected();r.kind="init",r.method=!0;let C=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r.value=this.parseMethod(u,m),C)r.value.typeParameters=C;return}return super.parsePropertyValue(r,l,u,m,y,x,b,w)}parseProperty(r,l){if(!r){let u=[];if(this.match(_.at))while(this.match(_.at))u.push(this.parseDecorator());let m=super.parseProperty(r,l);if(m.type==="SpreadElement"){if(u.length)this.raise(m.start,In.SpreadElementDecorator)}if(u.length)m.decorators=u,u=[];return m}return super.parseProperty(r,l)}parseCatchClauseParam(){let r=this.parseBindingAtom(),l=r.type==="Identifier";this.enterScope(l?Q.SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(r,l?Q.BIND_SIMPLE_CATCH:Q.BIND_LEXICAL);let u=this.tsTryParseTypeAnnotation();if(u)r.typeAnnotation=u,this.resetEndLocation(r);return this.expect(a.parenR),r}parseClass(r,l){let u=this.inAbstractClass;this.inAbstractClass=!!r.abstract;try{this.next(),this.takeDecorators(r);let m=this.strict;this.strict=!0,this.parseClassId(r,l),this.parseClassSuper(r);let y=this.enterClassBody(),x=this.startNode(),b=!1;x.body=[];let w=[];this.expect(a.braceL);while(this.type!==a.braceR){if(this.match(_.at)){w.push(this.parseDecorator());continue}let C=this.parseClassElement(r.superClass!==null);if(w.length)C.decorators=w,this.resetStartLocationFromNode(C,w[0]),w=[];if(C){if(x.body.push(C),C.type==="MethodDefinition"&&C.kind==="constructor"&&C.value.type==="FunctionExpression"){if(b)this.raiseRecoverable(C.start,"Duplicate constructor in the same class");if(b=!0,C.decorators&&C.decorators.length>0)this.raise(C.start,In.DecoratorConstructor)}else if(C.key&&C.key.type==="PrivateIdentifier"&&C.value?.type!=="TSDeclareMethod"&&Cu(y,C))this.raiseRecoverable(C.key.start,`Identifier '#${C.key.name}' has already been declared`)}}if(this.strict=m,this.next(),w.length)this.raise(this.start,In.TrailingDecorator);return r.body=this.finishNode(x,"ClassBody"),this.exitClassBody(),this.finishNode(r,l?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=u}}parseClassFunctionParams(){let r=this.tsTryParseTypeParameters(),l=this.parseBindingList(a.parenR,!1,this.ecmaVersion>=8,!0);if(r)l.typeParameters=r;return l}parseMethod(r,l,u,m,y){let x=this.startNode(),b=this.yieldPos,w=this.awaitPos,C=this.awaitIdentPos;if(this.initFunction(x),this.ecmaVersion>=6)x.generator=r;if(this.ecmaVersion>=8)x.async=!!l;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fi(l,x.generator)|Q.SCOPE_SUPER|(u?Q.SCOPE_DIRECT_SUPER:0)),this.expect(a.parenL),x.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(x,!1,!0,!1,{isClassMethod:m}),this.yieldPos=b,this.awaitPos=w,this.awaitIdentPos=C,y&&y.abstract){if(!!x.body){let{key:A}=y;this.raise(y.start,L.AbstractMethodHasImplementation({methodName:A.type==="Identifier"&&!y.computed?A.name:`[${this.input.slice(A.start,A.end)}]`}))}}return this.finishNode(x,"FunctionExpression")}static parse(r,l){if(l.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else l.locations=!0;let u=new this(l,r);if(t)u.isAmbientContext=!0;return u.parse()}static parseExpressionAt(r,l,u){if(u.locations===!1)throw Error("You have to enable options.locations while using acorn-typescript");else u.locations=!0;let m=new this(u,r,l);if(t)m.isAmbientContext=!0;return m.nextToken(),m.parseExpression()}parseImportSpecifier(){if(this.ts_isContextual(_.type)){let l=this.startNode();return l.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(l,!0,this.importOrExportOuterKind==="type"),this.finishNode(l,"ImportSpecifier")}else{let l=super.parseImportSpecifier();return l.importKind="value",l}}parseExportSpecifier(r){let l=this.ts_isContextual(_.type);if(!this.match(a.string)&&l){let m=this.startNode();return m.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(m,!1,this.importOrExportOuterKind==="type"),this.finishNode(m,"ExportSpecifier"),this.checkExport(r,m.exported,m.exported.start),m}else{let m=super.parseExportSpecifier(r);return m.exportKind="value",m}}parseTypeOnlyImportExportSpecifier(r,l,u){let m=l?"imported":"local",y=l?"local":"exported",x=r[m],b,w=!1,C=!0,T=x.start;if(this.isContextual("as")){let P=this.parseIdent();if(this.isContextual("as")){let M=this.parseIdent();if(J(this.type))w=!0,x=P,b=l?this.parseIdent():this.parseModuleExportName(),C=!1;else b=M,C=!1}else if(J(this.type))C=!1,b=l?this.parseIdent():this.parseModuleExportName();else w=!0,x=P}else if(J(this.type))if(w=!0,l){if(x=super.parseIdent(!0),!this.isContextual("as"))this.checkUnreserved(x)}else x=this.parseModuleExportName();if(w&&u)this.raise(T,l?L.TypeModifierIsUsedInTypeImports:L.TypeModifierIsUsedInTypeExports);r[m]=x,r[y]=b;let A=l?"importKind":"exportKind";if(r[A]=w?"type":"value",C&&this.eatContextual("as"))r[y]=l?this.parseIdent():this.parseModuleExportName();if(!r[y])r[y]=this.copyNode(r[m]);if(l)this.checkLValSimple(r[y],Q.BIND_LEXICAL)}raiseCommonCheck(r,l,u){switch(l){case"Comma is not permitted after the rest element":if(this.isAmbientContext&&this.match(a.comma)&&this.lookaheadCharCode()===41){this.next();return}else return super.raise(r,l)}return u?super.raiseRecoverable(r,l):super.raise(r,l)}raiseRecoverable(r,l){return this.raiseCommonCheck(r,l,!0)}raise(r,l){return this.raiseCommonCheck(r,l,!0)}updateContext(r){let{type:l}=this;if(l==a.braceL){var u=this.curContext();if(u==S.tc_oTag)this.context.push(g.b_expr);else if(u==S.tc_expr)this.context.push(g.b_tmpl);else super.updateContext(r);this.exprAllowed=!0}else if(l===a.slash&&r===_.jsxTagStart)this.context.length-=2,this.context.push(S.tc_cTag),this.exprAllowed=!1;else return super.updateContext(r)}jsx_parseOpeningElementAt(r,l){let u=this.startNodeAt(r,l),m=this.jsx_parseElementName();if(m)u.name=m;if(this.match(a.relational)||this.match(a.bitShift)){let y=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(y)u.typeArguments=y}u.attributes=[];while(this.type!==a.slash&&this.type!==_.jsxTagEnd)u.attributes.push(this.jsx_parseAttribute());return u.selfClosing=this.eat(a.slash),this.expect(_.jsxTagEnd),this.finishNode(u,m?"JSXOpeningElement":"JSXOpeningFragment")}enterScope(r){if(r===jt)this.importsStack.push([]);super.enterScope(r);let l=super.currentScope();l.types=[],l.enums=[],l.constEnums=[],l.classes=[],l.exportOnlyBindings=[]}exitScope(){if(super.currentScope().flags===jt)this.importsStack.pop();super.exitScope()}hasImport(r,l){let u=this.importsStack.length;if(this.importsStack[u-1].indexOf(r)>-1)return!0;if(!l&&u>1){for(let m=0;m<u-1;m++)if(this.importsStack[m].indexOf(r)>-1)return!0}return!1}maybeExportDefined(r,l){if(this.inModule&&r.flags&Q.SCOPE_TOP)delete this.undefinedExports[l]}declareName(r,l,u){if(l&Q.BIND_FLAGS_TS_IMPORT){if(this.hasImport(r,!0))this.raise(u,`Identifier '${r}' has already been declared.`);this.importsStack[this.importsStack.length-1].push(r);return}let m=this.currentScope();if(l&Q.BIND_FLAGS_TS_EXPORT_ONLY){this.maybeExportDefined(m,r),m.exportOnlyBindings.push(r);return}if(l===Q.BIND_TS_TYPE||l===Q.BIND_TS_INTERFACE){if(l===Q.BIND_TS_TYPE&&m.types.includes(r))this.raise(u,`type '${r}' has already been declared.`);m.types.push(r)}else super.declareName(r,l,u);if(l&Q.BIND_FLAGS_TS_ENUM)m.enums.push(r);if(l&Q.BIND_FLAGS_TS_CONST_ENUM)m.constEnums.push(r);if(l&Q.BIND_FLAGS_CLASS)m.classes.push(r)}checkLocalExport(r){let{name:l}=r;if(this.hasImport(l))return;let u=this.scopeStack.length;for(let m=u-1;m>=0;m--){let y=this.scopeStack[m];if(y.types.indexOf(l)>-1||y.exportOnlyBindings.indexOf(l)>-1)return}super.checkLocalExport(r)}}return Y}}class so extends Error{message="";#e;constructor(e,t,n){super(t);this.stack="",this.#e=new Dt(e,t,n),Object.assign(this,this.#e),this.name="CompileError"}toString(){return this.#e.toString()}toJSON(){return this.#e.toJSON()}}function O(e,t,n){let i=typeof e==="number"?e:e?.start,s=typeof e==="number"?e:e?.end;throw new so(t,n,i!==void 0?[i,s??i]:void 0)}function ro(e){O(e,"css_empty_declaration",`Declaration cannot be empty
|
|
36
|
+
https://svelte.dev/e/css_empty_declaration`)}function ji(e){O(e,"css_expected_identifier",`Expected a valid CSS identifier
|
|
37
|
+
https://svelte.dev/e/css_expected_identifier`)}function ao(e){O(e,"css_selector_invalid",`Invalid selector
|
|
38
|
+
https://svelte.dev/e/css_selector_invalid`)}function oo(e){O(e,"attribute_duplicate",`Attributes need to be unique
|
|
39
|
+
https://svelte.dev/e/attribute_duplicate`)}function lo(e){O(e,"attribute_empty_shorthand",`Attribute shorthand cannot be empty
|
|
40
|
+
https://svelte.dev/e/attribute_empty_shorthand`)}function qi(e,t){O(e,"block_duplicate_clause",`${t} cannot appear more than once within a block
|
|
41
|
+
https://svelte.dev/e/block_duplicate_clause`)}function co(e){O(e,"block_invalid_continuation_placement",`{:...} block is invalid at this position (did you forget to close the preceding element or block?)
|
|
42
|
+
https://svelte.dev/e/block_invalid_continuation_placement`)}function po(e){O(e,"block_invalid_elseif",`'elseif' should be 'else if'
|
|
43
|
+
https://svelte.dev/e/block_invalid_elseif`)}function uo(e,t,n){O(e,"block_invalid_placement",`{#${t} ...} block cannot be ${n}
|
|
44
|
+
https://svelte.dev/e/block_invalid_placement`)}function ho(e){O(e,"block_unclosed",`Block was left open
|
|
45
|
+
https://svelte.dev/e/block_unclosed`)}function Hi(e){O(e,"block_unexpected_close",`Unexpected block closing tag
|
|
46
|
+
https://svelte.dev/e/block_unexpected_close`)}function fo(e){O(e,"const_tag_invalid_expression",`{@const ...} must consist of a single variable declaration
|
|
47
|
+
https://svelte.dev/e/const_tag_invalid_expression`)}function mo(e){O(e,"debug_tag_invalid_arguments",`{@debug ...} arguments must be identifiers, not arbitrary expressions
|
|
48
|
+
https://svelte.dev/e/debug_tag_invalid_arguments`)}function Dn(e){O(e,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations\nhttps://svelte.dev/e/declaration_tag_invalid_type")}function yo(e){O(e,"directive_invalid_value",`Directive value must be a JavaScript expression enclosed in curly braces
|
|
49
|
+
https://svelte.dev/e/directive_invalid_value`)}function _o(e,t){O(e,"directive_missing_name",`\`${t}\` name cannot be empty
|
|
50
|
+
https://svelte.dev/e/directive_missing_name`)}function go(e,t){O(e,"element_invalid_closing_tag",`\`</${t}>\` attempted to close an element that was not open
|
|
51
|
+
https://svelte.dev/e/element_invalid_closing_tag`)}function xo(e,t,n){O(e,"element_invalid_closing_tag_autoclosed",`\`</${t}>\` attempted to close element that was already automatically closed by \`<${n}>\` (cannot nest \`<${n}>\` inside \`<${t}>\`)
|
|
52
|
+
https://svelte.dev/e/element_invalid_closing_tag_autoclosed`)}function Ln(e,t){O(e,"element_unclosed",`\`<${t}>\` was left open
|
|
53
|
+
https://svelte.dev/e/element_unclosed`)}function Ui(e){O(e,"expected_attribute_value",`Expected attribute value
|
|
54
|
+
https://svelte.dev/e/expected_attribute_value`)}function vo(e){O(e,"expected_block_type",`Expected 'if', 'each', 'await', 'key' or 'snippet'
|
|
55
|
+
https://svelte.dev/e/expected_block_type`)}function Gi(e){O(e,"expected_identifier",`Expected an identifier
|
|
56
|
+
https://svelte.dev/e/expected_identifier`)}function bo(e){O(e,"expected_pattern",`Expected identifier or destructure pattern
|
|
57
|
+
https://svelte.dev/e/expected_pattern`)}function To(e){O(e,"expected_tag",`Expected 'html', 'render', 'attach', 'const', or 'debug'
|
|
58
|
+
https://svelte.dev/e/expected_tag`)}function De(e,t){O(e,"expected_token",`Expected token ${t}
|
|
59
|
+
https://svelte.dev/e/expected_token`)}function Eo(e){O(e,"expected_whitespace",`Expected whitespace
|
|
60
|
+
https://svelte.dev/e/expected_whitespace`)}function So(e,t){O(e,"js_parse_error",`${t}
|
|
61
|
+
https://svelte.dev/e/js_parse_error`)}function Co(e){O(e,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions\nhttps://svelte.dev/e/render_tag_invalid_expression")}function Wi(e){O(e,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element\nhttps://svelte.dev/e/script_duplicate")}function wo(e,t){O(e,"script_invalid_attribute_value",`If the \`${t}\` attribute is supplied, it must be a boolean attribute
|
|
62
|
+
https://svelte.dev/e/script_invalid_attribute_value`)}function zi(e){O(e,"script_invalid_context",`If the context attribute is supplied, its value must be "module"
|
|
63
|
+
https://svelte.dev/e/script_invalid_context`)}function ko(e,t){O(e,"script_reserved_attribute",`The \`${t}\` attribute is reserved and cannot be used
|
|
64
|
+
https://svelte.dev/e/script_reserved_attribute`)}function Po(e){O(e,"style_duplicate","A component can have a single top-level `<style>` element\nhttps://svelte.dev/e/style_duplicate")}function Ao(e){O(e,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`\nhttps://svelte.dev/e/svelte_component_invalid_this")}function Io(e){O(e,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute\nhttps://svelte.dev/e/svelte_component_missing_this")}function Ki(e){O(e,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value\nhttps://svelte.dev/e/svelte_element_missing_this")}function No(e,t){O(e,"svelte_meta_duplicate",`A component can only have one \`<${t}>\` element
|
|
65
|
+
https://svelte.dev/e/svelte_meta_duplicate`)}function Do(e,t){O(e,"svelte_meta_invalid_content",`<${t}> cannot have children
|
|
66
|
+
https://svelte.dev/e/svelte_meta_invalid_content`)}function Lo(e,t){O(e,"svelte_meta_invalid_placement",`\`<${t}>\` tags cannot be inside elements or blocks
|
|
67
|
+
https://svelte.dev/e/svelte_meta_invalid_placement`)}function Ro(e,t){O(e,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${t}
|
|
68
|
+
https://svelte.dev/e/svelte_meta_invalid_tag`)}function Mo(e){O(e,"svelte_options_deprecated_tag",`"tag" option is deprecated — use "customElement" instead
|
|
69
|
+
https://svelte.dev/e/svelte_options_deprecated_tag`)}function Oo(e){O(e,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes\nhttps://svelte.dev/e/svelte_options_invalid_attribute")}function Rn(e,t){O(e,"svelte_options_invalid_attribute_value",`Value must be ${t}, if specified
|
|
70
|
+
https://svelte.dev/e/svelte_options_invalid_attribute_value`)}function Mn(e){O(e,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }\nhttps://svelte.dev/e/svelte_options_invalid_customelement')}function et(e){O(e,"svelte_options_invalid_customelement_props",`"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"
|
|
71
|
+
https://svelte.dev/e/svelte_options_invalid_customelement_props`)}function $o(e){O(e,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.\nhttps://svelte.dev/e/svelte_options_invalid_customelement_shadow')}function Xi(e){O(e,"svelte_options_invalid_tagname",`Tag name must be lowercase and hyphenated
|
|
72
|
+
https://svelte.dev/e/svelte_options_invalid_tagname`)}function Bo(e){O(e,"svelte_options_reserved_tagname",`Tag name is reserved
|
|
73
|
+
https://svelte.dev/e/svelte_options_reserved_tagname`)}function Fo(e,t){O(e,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${t}'
|
|
74
|
+
https://svelte.dev/e/svelte_options_unknown_attribute`)}function Vo(e){O(e,"tag_invalid_name",`Expected a valid element or component name. Components must have a valid variable name or dot notation expression
|
|
75
|
+
https://svelte.dev/e/tag_invalid_name`)}function jo(e,t,n){O(e,"tag_invalid_placement",`{@${t} ...} tag cannot be ${n}
|
|
76
|
+
https://svelte.dev/e/tag_invalid_placement`)}function ge(e){O(e,"unexpected_eof",`Unexpected end of input
|
|
77
|
+
https://svelte.dev/e/unexpected_eof`)}function qo(e,t){O(e,"unexpected_reserved_word",`'${t}' is a reserved word in JavaScript and cannot be used here
|
|
78
|
+
https://svelte.dev/e/unexpected_reserved_word`)}function Ho(e){O(e,"unterminated_string_constant",`Unterminated string constant
|
|
79
|
+
https://svelte.dev/e/unterminated_string_constant`)}function Uo(e){O(e,"void_element_invalid_content",`Void elements cannot have children or closing tags
|
|
80
|
+
https://svelte.dev/e/void_element_invalid_content`)}var On=ie,Ji=On.extend(io());function Go(e,t,n,i){let s=n?Ji:On,{onComment:o,add_comments:a}=Qi(e,t),c=s.prototype.parseStatement;if(i)s.prototype.parseStatement=function(...p){let f=c.call(this,...p);return this.undefinedExports={},f};try{let p=s.parse(e,{onComment:o,sourceType:"module",ecmaVersion:16,locations:!0});return a(p),p}catch(p){return Yi(p)}finally{if(i)s.prototype.parseStatement=c}}function tt(e,t,n){let i=e.ts?Ji:On,{onComment:s,add_comments:o}=Qi(t,e.root.comments,n);try{let a=i.parseExpressionAt(t,n,{onComment:s,sourceType:"module",ecmaVersion:16,locations:!0,preserveParens:!0});return o(a),a}catch(a){Yi(a)}}function Wo(e,t,n){let i=e.ts?Ji:On,{onComment:s,add_comments:o}=Qi(t,e.root.comments,n);try{let a=new i({onComment:s,sourceType:"module",ecmaVersion:16,locations:!0},t,n);a.nextToken();let c=a.parseStatement(null,!0,Object.create(null));return o(c),c}catch(a){if(a.pos===t.length)ge(t.length);Yi(a)}}var Fu=/ \(\d+:\d+\)$/;function Yi(e){So(e.pos,e.message.replace(Fu,""))}function xt(e){return Ue(e,null,{ParenthesizedExpression(t,n){return n.visit(t.expression)}})}function Qi(e,t,n=0){return{onComment:(i,s,o,a,c,p)=>{if(i&&/\n/.test(s)){let f=o;while(f>0&&e[f-1]!==`
|
|
81
|
+
`)f-=1;let d=f;while(/[ \t]/.test(e[d]))d+=1;let g=e.slice(f,d);s=s.replace(new RegExp(`^${g}`,"gm"),"")}t.push({type:i?"Block":"Line",value:s,start:o,end:a,loc:{start:c,end:p}})},add_comments(i){if(t.length===0)return;if(t=t.filter((s)=>s.start>=n).map(({type:s,value:o,start:a,end:c})=>({type:s,value:o,start:a,end:c})),Ue(i,null,{_(s,{next:o,path:a}){let c;while(t[0]&&t[0].start<s.start)c=t.shift(),(s.leadingComments||=[]).push(c);if(o(),t[0]){let p=a.at(-1);if(p===void 0||s.end!==p.end){let f=e.slice(s.end,t[0].start);if((p?.type==="BlockStatement"||p?.type==="Program")&&p.body.indexOf(s)===p.body.length-1||p?.type==="ArrayExpression"&&p.elements.indexOf(s)===p.elements.length-1||p?.type==="ObjectExpression"&&p.properties.indexOf(s)===p.properties.length-1){let g=s.end;while(t.length){let v=t[0];if(p&&v.start>=p.end)break;(s.trailingComments||=[]).push(v),t.shift(),g=v.end}}else if(s.end<=t[0].start&&/^[,) \t]*$/.test(f))s.trailingComments=[t.shift()]}}}}),t.length>0&&(t[0].start>=i.end||i.type==="Program"))(i.trailingComments||=[]).push(...t.splice(0))}}}function Zi(e){if(e<0)return 1/0;return e}function ju(e,t,n){let i;if(n==="`")i=e;else i=e.slice(0,Zi(e.indexOf(`
|
|
82
|
+
`,t)));return es(i,t,n)}function qu(e,t){let n=es(e,t,"/"),i=es(e,t,`
|
|
83
|
+
`);return n<i?n:1/0}function es(e,t,n){let i=t;while(!0){let s=e.indexOf(n,i);if(s===-1)return 1/0;if(Hu(e,s-1)%2===0)return s;i=s+1}}function Hu(e,t){let n=t,i=0;while(e[n]==="\\")i++,n--;return i}function Bn(e,t,n){let i=$n[n],s=1,o=t;while(s>0&&o<e.length){let a=e[o];switch(a){case"'":case'"':case"`":o=ju(e,o+1,a)+1;continue;case"/":{let c=e[o+1];if(!c){o++;continue}if(c==="/"){o=Zi(e.indexOf(`
|
|
84
|
+
`,o+1))+1;continue}if(c==="*"){o=Zi(e.indexOf("*/",o+1))+2;continue}let p=qu(e,o+1)+1;if(p===1/0)o++;else o=p;continue}default:{let c=e[o];if(c===n)s++;else if(c===i)s--;if(s===0)return o;o++}}}return}var $n={"{":"}","(":")","[":"]"},Uu=new Set(Object.values($n));function Ut(e,t,n=$n){let i=n===$n?Uu:new Set(Object.values(n)),s=[],o=t;while(o<e.template.length){let a=e.template[o++];if(a==="'"||a==='"'||a==="`"){o=Gu(e,o,a);continue}if(a in n)s.push(a);else if(i.has(a)){let c=s.pop(),p=n[c];if(a!==p)De(o-1,p);if(s.length===0)return o}}ge(e.template.length)}function Gu(e,t,n){let i=!1,s=t;while(s<e.template.length){let o=e.template[s++];if(i){i=!1;continue}if(o===n)return s;if(o==="\\")i=!0;if(n==="`"&&o==="$"&&e.template[s]==="{")s=Ut(e,s)}Ho(t)}function ts(e,t){let n=Bn(e.template,e.index,t??"{");if(n){let i=e.index;return e.index=n,{type:"Identifier",start:i,end:n,name:""}}}function de(e,t,n){try{let i=tt(e,e.template,e.index),s=i.end,o=e.root.comments.at(-1);if(o&&o.end>s)s=o.end;return e.index=s,xt(i)}catch(i){if(e.loose&&!n){let s=ts(e,t);if(s)return s}throw i}}function ns(e=[]){return{type:"ArrayExpression",elements:e}}function Wu(e,t){return{type:"UnaryExpression",argument:t,operator:e,prefix:!0}}var Ey=Wu("void",Gt(0));function Gt(e){return{type:"Literal",value:e}}var zu=Gt(!0),Sy=Gt(!1),Cy=Gt(null);function zo(e){return Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="Text"}function ss(e){return e.value!==!0&&!Array.isArray(e.value)||Array.isArray(e.value)&&e.value.length===1&&e.value[0].type==="ExpressionTag"}function rs(e){return Array.isArray(e.value)?e.value[0].expression:e.value.expression}var Ku=/<\/script\s*>/,Xu=/<\/script\s*>/y,Ju=["server","client","worker","test","default"],Yu=["context","generics","lang","module"];function Ko(e,t,n){let i=e.index,s=e.read_until(Ku);if(e.index>=e.template.length)Ln(e.template.length,"script");let o=e.template.slice(0,i).replace(un," ")+s;e.read(Xu);let a=Go(o,e.root.comments,e.ts,!0);if(a.start=i,a.loc)({line:a.loc.start.line,column:a.loc.start.column}=ue(t)),{line:a.loc.end.line,column:a.loc.end.column}=ue(e.index);let c="default";for(let p of n){if(Ju.includes(p.name))ko(p,p.name);if(!Yu.includes(p.name))Zr(p);if(p.name==="module"){if(p.value!==!0)wo(p,p.name);c="module"}if(p.name==="context"){if(p.value===!0||!zo(p))zi(p);if(p.value[0].data!=="module")zi(p);c="module"}}return{type:"Script",start:t,end:e.index,context:c,content:a,attributes:n}}var Qu=/[~^$*|]?=/y,Zu=/[\s\]]/,ed=/[a-zA-Z]+/y,Yo=/(\+|~|>|\|\|)/y,Xo=/\d+(\.\d+)?%/y,Jo=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of\s+)/y,td=/[\s:]/,nd=/-?\d/y,id=/[a-zA-Z0-9_-]/,sd=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,rd=/\*\//,ad=/-->/;function os(e,t,n){let i=e.index;e.css_comments=[];let s=od(e,(a)=>a.match("</style")||a.index>=a.template.length),o=e.index;return e.eat("</style",!0),e.read(/\s*>/y),{type:"StyleSheet",start:t,end:e.index,attributes:n,children:s,comments:e.css_comments,content:{start:i,end:o,styles:e.template.slice(i,o),comment:null}}}function od(e,t){let n=[];while(vt(e),!t(e))if(e.match("@"))n.push(Qo(e));else n.push(Zo(e));return n}function Qo(e){let t=e.index;e.eat("@",!0);let n=Ke(e),i=ls(e),s=null;if(e.match("{"))s=el(e);else e.eat(";",!0);return{type:"Atrule",start:t,end:e.index,name:n,prelude:i,block:s}}function Zo(e){let t=e.index;return{type:"Rule",prelude:as(e),block:el(e),start:t,end:e.index,metadata:{parent_rule:null,has_local_selectors:!1,has_global_selectors:!1,is_global_block:!1}}}function as(e,t=!1){let n=[];vt(e);let i=e.index;while(e.index<e.template.length){n.push(ld(e,t));let s=e.index;if(vt(e),t?e.match(")"):e.match("{"))return{type:"SelectorList",start:i,end:s,children:n};else e.eat(",",!0),vt(e)}ge(e.template.length)}function ld(e,t=!1){let n=e.index,i=[];function s(a,c){return{type:"RelativeSelector",combinator:a,selectors:[],start:c,end:-1,metadata:{is_global:!1,is_global_like:!1,scoped:!1}}}let o=s(null,e.index);while(e.index<e.template.length){let a=e.index;if(e.eat("&"))o.selectors.push({type:"NestingSelector",name:"&",start:a,end:e.index});else if(e.eat("*")){let f="*";if(e.eat("|"))f=Ke(e);o.selectors.push({type:"TypeSelector",name:f,start:a,end:e.index})}else if(e.eat("#"))o.selectors.push({type:"IdSelector",name:Ke(e),start:a,end:e.index});else if(e.eat("."))o.selectors.push({type:"ClassSelector",name:Ke(e),start:a,end:e.index});else if(e.eat("::")){let f=Ke(e),d=null;if(e.eat("("))d=as(e,!0),e.eat(")",!0);o.selectors.push({type:"PseudoElementSelector",name:f,start:a,end:e.index,...d&&{args:d}})}else if(e.eat(":")){let f=Ke(e),d=null;if(e.eat("("))d=as(e,!0),e.eat(")",!0);o.selectors.push({type:"PseudoClassSelector",name:f,args:d,start:a,end:e.index})}else if(e.eat("[")){e.allow_whitespace();let f=Ke(e);e.allow_whitespace();let d=null,g=e.read(Qu);if(g)e.allow_whitespace(),d=dd(e);e.allow_whitespace();let v=e.read(ed);e.allow_whitespace(),e.eat("]",!0),o.selectors.push({type:"AttributeSelector",start:a,end:e.index,name:f,matcher:g,value:d,flags:v})}else if(t&&e.match_regex(Jo))o.selectors.push({type:"Nth",value:e.read(Jo),start:a,end:e.index});else if(e.match_regex(Xo))o.selectors.push({type:"Percentage",value:e.read(Xo),start:a,end:e.index});else if(!e.match_regex(Yo)){let f=Ke(e);if(e.eat("|"))f=Ke(e);o.selectors.push({type:"TypeSelector",name:f,start:a,end:e.index})}let c=e.index;if(vt(e,!1),e.match(",")||(t?e.match(")"):e.match("{")))return e.index=c,o.end=c,i.push(o),{type:"ComplexSelector",start:n,end:c,children:i,metadata:{rule:null,is_global:!1,used:!1}};e.index=c;let p=cd(e);if(p){if(o.selectors.length>0)o.end=c,i.push(o);if(o=s(p,p.start),e.allow_whitespace(),e.match(",")||(t?e.match(")"):e.match("{")))ao(e.index)}}ge(e.template.length)}function cd(e){let t=e.index;e.allow_whitespace();let n=e.index,i=e.read(Yo);if(i){let s=e.index;return e.allow_whitespace(),{type:"Combinator",name:i,start:n,end:s}}if(e.index!==t)return{type:"Combinator",name:" ",start:t,end:e.index};return null}function el(e){let t=e.index;e.eat("{",!0);let n=[];while(e.index<e.template.length)if(vt(e),e.match("}"))break;else n.push(pd(e));return e.eat("}",!0),{type:"Block",start:t,end:e.index,children:n}}function pd(e){if(e.match("@"))return Qo(e);let t=e.index;ls(e,!1);let n=e.template[e.index];return e.index=t,n==="{"?Zo(e):ud(e)}function ud(e){let t=e.index,n=e.read_until(td);e.allow_whitespace(),e.eat(":");let i=e.index;e.allow_whitespace();let s=ls(e);if(!s&&!n.startsWith("--"))ro({start:t,end:i});let o=e.index;if(!e.match("}"))e.eat(";",!0);return{type:"Declaration",start:t,end:o,property:n,value:s}}function ls(e,t=!0){let n="",i=[],s=!1,o=!1,a=null;while(e.index<e.template.length){let c=e.template[e.index];if(s){n+="\\"+c,s=!1,e.index++;continue}else if(c==="\\"){s=!0,e.index++;continue}else if(c===a)a=null;else if(c===")")o=!1;else if(a===null&&(c==='"'||c==="'"))a=c;else if(c==="("&&n.slice(-3)==="url")o=!0;else if((c===";"||c==="{"||c==="}")&&!o&&!a){let p=n.length-n.trimStart().length;for(let f of i)f.position=Math.max(0,f.position-p);return n.trim()}else if(c==="/"&&!o&&!a&&e.template[e.index+1]==="*"){let p=tl(e);if(t)p.position=n.length,e.css_comments.push(p),i.push(p);continue}n+=c,e.index++}ge(e.template.length)}function dd(e){let t="",n=!1,i=e.eat('"')?'"':e.eat("'")?"'":null;while(e.index<e.template.length){let s=e.template[e.index];if(n)t+="\\"+s,n=!1;else if(s==="\\")n=!0;else if(i?s===i:Zu.test(s)){if(i)e.eat(i,!0);return t.trim()}else t+=s;e.index++}ge(e.template.length)}function Ke(e){let t=e.index,n="";if(e.match_regex(nd))ji(t);while(e.index<e.template.length){let i=e.template[e.index];if(i==="\\"){let s=e.match_regex(sd);if(s)n+=String.fromCodePoint(parseInt(s.slice(1),16)),e.index+=s.length;else n+="\\"+e.template[e.index+1],e.index+=2}else if(i.codePointAt(0)>=160||id.test(i))n+=i,e.index++;else break}if(n==="")ji(t);return n}function vt(e,t=!0){e.allow_whitespace();while(e.match("/*")||e.match("<!--")){if(e.match("/*")){let n=tl(e);if(t)e.css_comments.push(n)}if(e.eat("<!--"))e.read_until(ad),e.eat("-->",!0);e.allow_whitespace()}}function tl(e){let t=e.index;e.eat("/*",!0);let n=e.read_until(rd);e.eat("*/",!0);let i=e.index;return{type:"CSSComment",value:n,start:t,end:i}}var cs={"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 hd=[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 fd(e,t){if(t&&!e.endsWith(";"))return`${e}\\b(?!=)`;return e}function il(e){let n=Object.keys(cs).map((s)=>fd(s,e));return new RegExp(`&(#(?:x[a-fA-F\\d]+|\\d+)(?:;)?|${n.join("|")})`,"g")}var md=il(!1),yd=il(!0);function Wt(e,t){let n=t?yd:md;return e.replace(n,(i,s)=>{let o;if(s[0]!=="#")o=cs[s];else if(s[1]==="x")o=parseInt(s.substring(2),16);else o=parseInt(s.substring(1),10);if(!o)return i;return String.fromCodePoint(_d(o))})}var nl=0;function _d(e){if(e===10)return 32;if(e<128)return e;if(e<=159)return hd[e-128];if(e<55296)return e;if(e<=57343)return nl;if(e<=65535)return e;if(e>=65536&&e<=131071)return e;if(e>=131072&&e<=196607)return e;if(e>=917504&&e<=917631||e>=917760&&e<=917999)return e;return nl}function pe(e=!1){return{type:"Fragment",nodes:[],metadata:{transparent:e,dynamic:!1}}}var gd=["SvelteElement","RegularElement","SvelteFragment","Component","SvelteComponent","SvelteSelf","SlotElement"];function sl(e){return gd.includes(e.type)}function Fn(e,t,n,i,s){return{type:"Attribute",start:n,end:i,name:e,name_loc:t,value:s,metadata:{delegated:!1,needs_clsx:!1}}}class re{has_state=!1;has_call=!1;has_await=!1;has_member_expression=!1;has_assignment=!1;dependencies=new Set;references=new Set;#e=null;#t(){if(!this.#e){this.#e=new Set;for(let e of this.references)if(e.blocker)this.#e.add(e.blocker)}return this.#e}blockers(){return ns([...this.#t()])}has_blockers(){return this.#t().size>0}has_more_blockers_than(e){for(let t of this.#t())if(!e.#t().has(t))return!0;return!1}is_async(){return this.has_await||this.#t().size>0}merge(e){this.has_state||=e.has_state,this.has_call||=e.has_call,this.has_await||=e.has_await,this.has_member_expression||=e.has_member_expression,this.has_assignment||=e.has_assignment,this.#e=null;for(let t of e.references)this.references.add(t);for(let t of e.dependencies)this.dependencies.add(t)}}var rl={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 al(e,t){let n=rl[e];if(n){if(!t||("direct"in n?n.direct:n.descendant).includes(t))return!0}return!1}var Wy={...rl,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 ol(e,t="or"){if(e.length===1)return e[0];if(e.length===2)return`${e[0]} ${t} ${e[1]}`;return`${e.slice(0,-1).join(", ")} ${t} ${e[e.length-1]}`}var xd=/(\/>|[\s"'=<>`])/y,ps=/<\/textarea(\s[^>]*)?>/iy,vd=/-->/,ll=/(\s|\/|>)/,pl=/[\s=/>"']/,ul=/["']/y,bd=/(?:"([^"]*)"|'([^'])*'|([^>\s]+))/y,Td=/^![a-zA-Z]+$/,Ed=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/;function Sd(e){if(Td.test(e))return!0;if(Ed.test(e))return!0;return Ur.test(e)}var cl=/^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u,dl=new Map([["svelte:head","SvelteHead"],["svelte:options","SvelteOptions"],["svelte:window","SvelteWindow"],["svelte:document","SvelteDocument"],["svelte:body","SvelteBody"]]),Vn=new Map([...dl,["svelte:element","SvelteElement"],["svelte:component","SvelteComponent"],["svelte:self","SvelteSelf"],["svelte:fragment","SvelteFragment"],["svelte:boundary","SvelteBoundary"]]);function us(e){let t=e.index++,n=e.current();if(e.eat("!--")){let _=e.read_until(vd);e.eat("-->",!0),e.append({type:"Comment",start:t,end:e.index,data:_});return}if(e.eat("/")){let _=e.read_until(ll);if(e.allow_whitespace(),e.eat(">",!0),gi(_))Uo(t);while(n.name!==_){if(e.loose){if(sl(n)){let S=n.attributes.at(-1);if(S?.type==="Attribute"&&S.name===`<${_}`){e.index=S.start,n.attributes.pop();break}}}if(n.type==="RegularElement"){if(!e.last_auto_closed_tag||e.last_auto_closed_tag.tag!==_){let S=n.fragment.nodes[0]?.start??t;Ei({start:n.start,end:S},`</${_}>`,`</${n.name}>`)}}else if(!e.loose)if(e.last_auto_closed_tag&&e.last_auto_closed_tag.tag===_)xo(t,_,e.last_auto_closed_tag.reason);else go(t,_);n.end=t,e.pop(),n=e.current()}if(n.end=e.index,e.pop(),e.last_auto_closed_tag&&e.stack.length<e.last_auto_closed_tag.depth)e.last_auto_closed_tag=void 0;return}let i=ds(e,ll);if(i.name.startsWith("svelte:")&&!Vn.has(i.name)){let _={start:t+1,end:t+1+i.name.length};Ro(_,ol(Array.from(Vn.keys())))}if(!Sd(i.name)&&!cl.test(i.name)){if(!e.loose||!i.name.endsWith(".")){let _={start:t+1,end:t+1+i.name.length};Vo(_)}}if(dl.has(i.name)){if(i.name in e.meta_tags)No(t,i.name);if(n.type!=="Root")Lo(t,i.name);e.meta_tags[i.name]=!0}let s=Vn.has(i.name)?Vn.get(i.name):cl.test(i.name)||e.loose&&i.name.endsWith(".")?"Component":i.name==="title"&&Cd(e.stack)?"TitleElement":i.name==="slot"&&!wd(e.stack)?"SlotElement":"RegularElement",o=s==="RegularElement"?{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:pe(!0),metadata:{svg:!1,mathml:!1,scoped:!1,has_spread:!1,path:[],synthetic_value_node:null}}:{type:s,start:t,end:-1,name:i.name,name_loc:i.loc,attributes:[],fragment:pe(!0),metadata:{}};if(e.allow_whitespace(),n.type==="RegularElement"&&al(n.name,i.name)){let _=n.fragment.nodes[0]?.start??t;Ei({start:n.start,end:_},`<${i.name}>`,`</${n.name}>`),n.end=t,e.pop(),e.last_auto_closed_tag={tag:n.name,reason:i.name,depth:e.stack.length}}let a=[],c=e.current(),p=(i.name==="script"||i.name==="style")&&c.type==="Root",f=p?kd:Pd,d;while(d=f(e)){if(d.type==="Attribute"||d.type==="BindDirective"||d.type==="StyleDirective"||d.type==="ClassDirective"){let _=d.type==="BindDirective"?"Attribute":d.type;if(a.includes(_+d.name))oo(d);else if(d.name!=="this")a.push(_+d.name)}o.attributes.push(d),e.allow_whitespace()}if(o.type==="Component")o.metadata.expression=new re;if(o.type==="SvelteComponent"){let _=o.attributes.findIndex((k)=>k.type==="Attribute"&&k.name==="this");if(_===-1)Io(t);let S=o.attributes.splice(_,1)[0];if(!ss(S))Ao(S.start);o.expression=rs(S),o.metadata.expression=new re}if(o.type==="SvelteElement"){let _=o.attributes.findIndex((k)=>k.type==="Attribute"&&k.name==="this");if(_===-1)Ki(t);let S=o.attributes.splice(_,1)[0];if(S.value===!0)Ki(S);if(!ss(S)){ea(S);let k=S.value[0];o.tag=k.type==="Text"?{type:"Literal",value:k.data,raw:`'${k.raw}'`,start:k.start,end:k.end}:k.expression}else o.tag=rs(S);o.metadata.expression=new re}if(p){e.eat(">",!0);let _=null;for(let S=c.fragment.nodes.length-1;S>=0;S--){let k=c.fragment.nodes[S];if(S===c.fragment.nodes.length-1&&k.end!==t)break;if(k.type==="Comment"){_=k;break}else if(k.type!=="Text"||k.data.trim())break}if(i.name==="script"){let S=Ko(e,t,o.attributes);if(_)S.content.leadingComments=[{type:"Line",value:_.data}];if(S.context==="module"){if(c.module)Wi(t);c.module=S}else{if(c.instance)Wi(t);c.instance=S}}else{let S=os(e,t,o.attributes);if(S.content.comment=_,c.css)Po(t);c.css=S}return}e.append(o);let g=e.eat("/")||gi(i.name),v=e.eat(">",!0,!1);if(!v){let _=o.attributes.at(-1);if(_?.type==="Attribute"&&_.name==="<")e.index=_.start,o.attributes.pop();else{let S=e.template[e.index-1],k=e.template[e.index-2],E=e.template[e.index];if(k==="{"&&S==="/")e.index-=2;else if(S==="{"&&(E==="#"||E==="@"||E===":"))e.index-=1;else e.allow_whitespace()}}if(g||!v)o.end=e.index;else if(i.name==="textarea")o.fragment.nodes=hl(e,()=>(ps.lastIndex=e.index,ps.test(e.template)),"inside <textarea>"),e.read(ps),o.end=e.index;else if(i.name==="script"||i.name==="style"){let _=e.index,S=`</${i.name}>`,k=e.template.indexOf(S,e.index),E=e.template.slice(e.index,k===-1?e.template.length:k);e.index=k===-1?e.template.length:k;let I=e.index,V={start:_,end:I,type:"Text",data:E,raw:E};o.fragment.nodes.push(V),e.eat(`</${i.name}>`,!0),o.end=e.index}else e.stack.push(o),e.fragments.push(o.fragment)}function Cd(e){let t=e.length;while(t--){let{type:n}=e[t];if(n==="SvelteHead")return!0;if(n==="RegularElement"||n==="Component")return!1}return!1}function wd(e){let t=e.length;while(t--)if(e[t].type==="RegularElement"&&e[t].attributes.some((n)=>n.type==="Attribute"&&n.name==="shadowrootmode"))return!0;return!1}function kd(e){let t=e.index,n=ds(e,pl);if(!n.name)return null;let i=!0;if(e.eat("=")){e.allow_whitespace();let s=e.match_regex(bd);if(!s)Ui(e.index);e.index+=s.length;let o=s[0]==='"'||s[0]==="'";if(o)s=s.slice(1,-1);i=[{start:e.index-s.length-(o?1:0),end:o?e.index-1:e.index,type:"Text",raw:s,data:Wt(s,!0)}]}if(e.match_regex(ul))De(e.index,"=");return Fn(n.name,n.loc,t,e.index,i)}function Pd(e){let t=null;while(t=Ad(e))e.root.comments.push(t),e.allow_whitespace();let n=e.index;if(e.eat("{")){if(e.allow_whitespace(),e.eat("@attach")){e.require_whitespace();let p=de(e);return e.allow_whitespace(),e.eat("}",!0),{type:"AttachTag",start:n,end:e.index,expression:p,metadata:{expression:new re}}}if(e.eat("...")){let p=de(e);return e.allow_whitespace(),e.eat("}",!0),{type:"SpreadAttribute",start:n,end:e.index,expression:p,metadata:{expression:new re}}}else{let p=e.read_identifier();if(p.name==="")if(e.loose&&(e.match("#")||e.match("/")||e.match("@")||e.match(":")))return null;else if(e.loose&&e.match("}"));else lo(n);e.allow_whitespace(),e.eat("}",!0);let f={type:"ExpressionTag",start:p.start,end:p.end,expression:p,metadata:{expression:new re}};return Fn(p.name,p.loc,n,e.index,f)}}let i=ds(e,pl);if(!i.name)return null;let s=e.index;e.allow_whitespace();let o=i.name.indexOf(":"),a=o!==-1&&Id(i.name.slice(0,o)),c=!0;if(e.eat("="))if(e.allow_whitespace(),e.template[e.index]==="/"&&e.template[e.index+1]===">"){let p=e.index;e.index++,c=[{start:p,end:p+1,type:"Text",raw:"/",data:"/"}],s=e.index}else c=Nd(e),s=e.index;else if(e.match_regex(ul))De(e.index,"=");if(a){let[p,...f]=i.name.slice(o+1).split("|");if(p==="")_o({start:n,end:n+o+1},i.name);if(a==="StyleDirective")return{start:n,end:s,type:a,name:p,name_loc:i.loc,modifiers:f,value:c,metadata:{expression:new re}};let d=c===!0?void 0:Array.isArray(c)?c[0]:c,g=null;if(d)if(c.length>1||d.type==="Text")yo(d.start);else g=d.expression;let v={start:n,end:s,type:a,name:p,name_loc:i.loc,expression:g,metadata:{expression:new re}};if(v.modifiers=f,v.type==="TransitionDirective"){let _=i.name.slice(0,o);v.intro=_==="in"||_==="transition",v.outro=_==="out"||_==="transition"}if((v.type==="BindDirective"||v.type==="ClassDirective")&&!v.expression)v.expression={start:n+o+1,end:s,type:"Identifier",name:v.name};return v}return Fn(i.name,i.loc,n,s,c)}function Ad(e){let t=e.index;if(e.eat("//")){let n=e.read_until(/\n/),i=e.index;return{type:"Line",start:t,end:i,value:n,loc:{start:ue(t),end:ue(i)}}}if(e.eat("/*")){let n=e.read_until(/\*\//);e.eat("*/");let i=e.index;return{type:"Block",start:t,end:i,value:n,loc:{start:ue(t),end:ue(i)}}}return null}function Id(e){if(e==="use")return"UseDirective";if(e==="animate")return"AnimateDirective";if(e==="bind")return"BindDirective";if(e==="class")return"ClassDirective";if(e==="style")return"StyleDirective";if(e==="on")return"OnDirective";if(e==="let")return"LetDirective";if(e==="in"||e==="out"||e==="transition")return"TransitionDirective";return!1}function Nd(e){let t=e.eat("'")?"'":e.eat('"')?'"':null;if(t&&e.eat(t))return[{start:e.index-1,end:e.index-1,type:"Text",raw:"",data:""}];let n;try{n=hl(e,()=>{if(t)return e.match(t);return!!e.match_regex(xd)},"in attribute value")}catch(i){if(i.code==="js_parse_error"){let s=i.position?.[0];if(s!==void 0&&e.template.slice(s-1,s+1)==="/>")e.index=s,De(s,t||"}")}throw i}if(n.length===0&&!t)Ui(e.index);if(t)e.index+=1;if(t||n.length>1||n[0].type==="Text")return n;else return n[0]}function hl(e,t,n){let i={start:e.index,end:-1,type:"Text",raw:"",data:""},s=[];function o(a){if(a>i.start)i.raw=e.template.slice(i.start,a),i.data=Wt(i.raw,!0),i.end=a,s.push(i)}while(e.index<e.template.length){let a=e.index;if(t())return o(e.index),s;else if(e.eat("{")){if(e.match("#")){let f=e.index-1;e.eat("#");let d=e.read_until(/[^a-z]/);uo(f,d,n)}else if(e.match("@")){let f=e.index-1;e.eat("@");let d=e.read_until(/[^a-z]/);jo(f,d,n)}o(e.index-1),e.allow_whitespace();let c=de(e);e.allow_whitespace(),e.eat("}",!0);let p={type:"ExpressionTag",start:a,end:e.index,expression:c,metadata:{expression:new re}};s.push(p),i={start:e.index,end:-1,type:"Text",raw:"",data:""}}else e.index++}if(e.loose)return s;else ge(e.template.length)}function ds(e,t){let n=e.index,i=e.read_until(t),s=e.index;return{type:"Identifier",name:i,start:n,end:s,loc:{start:ue(n),end:ue(s)}}}function $e(e){let{index:t,index:n}=e,i=e.read_identifier();if(i.name!==""){let f=fl(e);return{...i,typeAnnotation:f}}let s=e.template[n];if(s!=="{"&&s!=="[")bo(n);n=Ut(e,t),e.index=n;let o=e.template.slice(t,n),a=e.template.slice(0,t).replace(un," "),c=a.indexOf(" ");a=a.slice(0,c)+a.slice(c+1);let p=xt(tt(e,`${a}(${o} = 1)`,t-1));if(p=p.left,p.typeAnnotation=fl(e),p.typeAnnotation)p.end=p.typeAnnotation.end;return p}function fl(e){let t=e.index;if(e.allow_whitespace(),!e.eat(":")){e.index=t;return}let n="_ as ",i=e.index-n.length,s=e.template.slice(0,i).replace(/[^\n]/g," ")+n+e.template.slice(e.index).replace(/\?\s*:/g,":"),o=xt(tt(e,s,i));if(o.type==="AssignmentExpression"){let a=o.right.start;while(s[a]!=="=")a-=1;o=xt(tt(e,s.slice(0,a),i))}if(o.type==="SequenceExpression")o=o.expressions[0];return e.index=o.end,{type:"TSTypeAnnotation",start:t,end:e.index,typeAnnotation:o.typeAnnotation}}var hs=/\s*}/y,Dd=/(?:let|const)\b/y,Ld=/(?:var|interface|enum)\b/y,Rd=/type\b/y,Md={"<":">"};function ms(e){let t=e.index;if(e.index+=1,e.allow_whitespace(),e.eat("#"))return $d(e);if(e.eat(":"))return Bd(e);if(e.eat("@"))return Fd(e);if(e.match("/")){if(!e.match("/*")&&!e.match("//"))return e.eat("/"),fs(e)}let n=Od(e);if(n){e.append({type:"DeclarationTag",start:t,end:e.index,declaration:n,metadata:{expression:new re}});return}let i=de(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ExpressionTag",start:t,end:e.index,expression:i,metadata:{expression:new re}})}function Od(e){let t=e.index,n=e.match_regex(Ld);if(n)Dn({start:t,end:t+n.length});if(!e.match_regex(Dd)&&!e.match_regex(Rd))return null;let i=e.root.comments.length,s;try{s=Wo(e,e.template,t)}catch(o){if(!e.loose)throw o;let a=Bn(e.template,t,"{");if(a===void 0)throw o;e.index=a,s={type:"VariableDeclaration",kind:e.template.startsWith("const",t)?"const":"let",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"",start:e.index,end:e.index},init:null,start:e.index,end:e.index}],start:t,end:a}}if(s.type!=="VariableDeclaration")if(s.type==="ExpressionStatement")return e.root.comments.length=i,null;else Dn({start:s.start??t,end:s.end??e.index});if(s.kind!=="let"&&s.kind!=="const")Dn(s);return e.index=s.end,e.allow_whitespace(),e.eat("}",!0),s}function $d(e){let t=e.index-2;while(e.template[t]!=="{")t-=1;if(e.eat("if")){e.require_whitespace();let n=e.append({type:"IfBlock",elseif:!1,start:t,end:-1,test:de(e),consequent:pe(),alternate:null,metadata:{expression:new re}});e.allow_whitespace(),e.eat("}",!0),e.stack.push(n),e.fragments.push(n.consequent);return}if(e.eat("each")){e.require_whitespace();let n=e.template,i=e.template.length,s;while(!s)try{s=de(e,void 0,!0)}catch(d){i=d.position[0]-2;while(i>t&&e.template.slice(i,i+2)!=="as")i-=1;if(i<=t){if(e.loose){if(s=ts(e),s)break}throw d}e.template=n.slice(0,i)}if(e.template=n,e.allow_whitespace(),!e.match("as")){if(s.type==="SequenceExpression")s=s.expressions[0];let d=null,g=s.end;if(s=Ue(s,null,{TSAsExpression(v,_){if(v.end===s.end)return d=v,g=v.expression.end,v.expression;_.next()}}),s.end=g,d){let v=d.typeAnnotation.start-2;while(e.template.slice(v,v+2)!=="as")v-=1;e.index=v}}let o=null,a,c;if(e.eat("as"))e.require_whitespace(),o=$e(e);else e.index=s.end;if(e.allow_whitespace(),e.eat(",")){if(e.allow_whitespace(),a=e.read_identifier().name,!a)Gi(e.index);e.allow_whitespace()}if(e.eat("("))e.allow_whitespace(),c=de(e,"("),e.allow_whitespace(),e.eat(")",!0),e.allow_whitespace();if(!e.eat("}",!0,!1))if(e.template.slice(e.index-4,e.index)===" as "){let d=e.index;o=$e(e),e.eat("}",!0),s={type:"Identifier",name:"",start:s.start,end:d-4}}else e.eat("}",!0);let f=e.append({type:"EachBlock",start:t,end:-1,expression:s,body:pe(),context:o,index:a,key:c,metadata:null});e.stack.push(f),e.fragments.push(f.body);return}if(e.eat("await")){e.require_whitespace();let n=de(e);e.allow_whitespace();let i=e.append({type:"AwaitBlock",start:t,end:-1,expression:n,value:null,error:null,pending:null,then:null,catch:null,metadata:{expression:new re}});if(e.eat("then")){if(e.match_regex(hs))e.allow_whitespace();else e.require_whitespace(),i.value=$e(e),e.allow_whitespace();i.then=pe(),e.fragments.push(i.then)}else if(e.eat("catch")){if(e.match_regex(hs))e.allow_whitespace();else e.require_whitespace(),i.error=$e(e),e.allow_whitespace();i.catch=pe(),e.fragments.push(i.catch)}else i.pending=pe(),e.fragments.push(i.pending);if(!e.eat("}",!0,!1))if(e.template.slice(e.index-6,e.index)===" then "){let o=e.index;i.value=$e(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:n.start,end:o-6},i.then=i.pending,i.pending=null}else if(e.template.slice(e.index-7,e.index)===" catch "){let o=e.index;i.error=$e(e),e.eat("}",!0),i.expression={type:"Identifier",name:"",start:n.start,end:o-7},i.catch=i.pending,i.pending=null}else e.eat("}",!0);e.stack.push(i);return}if(e.eat("key")){e.require_whitespace();let n=de(e);e.allow_whitespace(),e.eat("}",!0);let i=e.append({type:"KeyBlock",start:t,end:-1,expression:n,fragment:pe(),metadata:{expression:new re}});e.stack.push(i),e.fragments.push(i.fragment);return}if(e.eat("snippet")){e.require_whitespace();let n=e.read_identifier();if(n.name===""&&!e.loose)Gi(e.index);e.allow_whitespace();let i=e.index,s;if(e.ts&&e.match("<")){let d=e.index,g=Ut(e,d,Md);s=e.template.slice(d+1,g-1),e.index=g}e.allow_whitespace();let o=e.eat("(",!0,!1);if(o){let d=1;while(e.index<e.template.length&&(!e.match(")")||d!==1)){if(e.match("("))d++;if(e.match(")"))d--;e.index+=1}e.eat(")",!0)}let a=e.template.slice(0,i).replace(/\S/g," "),c=e.template.slice(i,e.index),p=o?tt(e,a+`${c} => {}`,i):{params:[]};e.allow_whitespace(),e.eat("}",!0);let f=e.append({type:"SnippetBlock",start:t,end:-1,expression:n,typeParams:s,parameters:p.params,body:pe(),metadata:{can_hoist:!1,sites:new Set}});e.stack.push(f),e.fragments.push(f.body);return}vo(e.index)}function Bd(e){let t=e.index-1,n=e.current();if(n.type==="IfBlock"){if(!e.eat("else"))De(t,"{:else} or {:else if}");if(e.eat("if"))po(t);if(e.allow_whitespace(),e.fragments.pop(),n.alternate=pe(),e.fragments.push(n.alternate),e.eat("if")){e.require_whitespace();let i=de(e);e.allow_whitespace(),e.eat("}",!0);let s=t-1;while(e.template[s]!=="{")s-=1;let o=e.append({start:s,end:-1,type:"IfBlock",elseif:!0,test:i,consequent:pe(),alternate:null,metadata:{expression:new re}});e.stack.push(o),e.fragments.pop(),e.fragments.push(o.consequent)}else e.allow_whitespace(),e.eat("}",!0);return}if(n.type==="EachBlock"){if(!e.eat("else"))De(t,"{:else}");e.allow_whitespace(),e.eat("}",!0),n.fallback=pe(),e.fragments.pop(),e.fragments.push(n.fallback);return}if(n.type==="AwaitBlock"){if(e.eat("then")){if(n.then)qi(t,"{:then}");if(!e.eat("}"))e.require_whitespace(),n.value=$e(e),e.allow_whitespace(),e.eat("}",!0);n.then=pe(),e.fragments.pop(),e.fragments.push(n.then);return}if(e.eat("catch")){if(n.catch)qi(t,"{:catch}");if(!e.eat("}"))e.require_whitespace(),n.error=$e(e),e.allow_whitespace(),e.eat("}",!0);n.catch=pe(),e.fragments.pop(),e.fragments.push(n.catch);return}De(t,"{:then ...} or {:catch ...}")}co(t)}function fs(e){let t=e.index-1,n=e.current(),i;switch(n.type){case"IfBlock":if(i=e.eat("if",!0,!1),!i){n.end=t-1,e.pop(),fs(e);return}e.allow_whitespace(),e.eat("}",!0);while(n.elseif)n.end=e.index,e.stack.pop(),n=e.current();n.end=e.index,e.pop();return;case"EachBlock":i=e.eat("each",!0,!1);break;case"KeyBlock":i=e.eat("key",!0,!1);break;case"AwaitBlock":i=e.eat("await",!0,!1);break;case"SnippetBlock":i=e.eat("snippet",!0,!1);break;case"RegularElement":if(e.loose)i=!1;else Hi(t);break;default:Hi(t)}if(!i){n.end=t-1,e.pop(),fs(e);return}e.allow_whitespace(),e.eat("}",!0),n.end=e.index,e.pop()}function Fd(e){let t=e.index;while(e.template[t]!=="{")t-=1;if(e.eat("html")){e.require_whitespace();let n=de(e);e.allow_whitespace(),e.eat("}",!0),e.append({type:"HtmlTag",start:t,end:e.index,expression:n,metadata:{expression:new re}});return}if(e.eat("debug")){let n;if(e.read(hs))n=[];else{let i=de(e);n=i.type==="SequenceExpression"?i.expressions:[i],n.forEach((s)=>{if(s.type!=="Identifier")mo(s.start)}),e.allow_whitespace(),e.eat("}",!0)}e.append({type:"DebugTag",start:t,end:e.index,identifiers:n});return}if(e.eat("const")){e.require_whitespace();let n=$e(e);e.allow_whitespace(),e.eat("=",!0),e.allow_whitespace();let i=e.index,s=de(e),o=e.index;if(s.type==="SequenceExpression"&&!e.template.substring(i,s.start).includes("("))fo(s);e.allow_whitespace(),e.eat("}",!0),e.append({type:"ConstTag",start:t,end:e.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[{type:"VariableDeclarator",id:n,init:s,start:n.start,end:o}],start:t+2,end:e.index-1},metadata:{expression:new re}});return}if(e.eat("render")){e.require_whitespace();let n=de(e);if(n.type!=="CallExpression"&&(n.type!=="ChainExpression"||n.expression.type!=="CallExpression"))Co(n);e.allow_whitespace(),e.eat("}",!0),e.append({type:"RenderTag",start:t,end:e.index,expression:n,metadata:{expression:new re,dynamic:!1,arguments:[],path:[],snippets:new Set}});return}To(e.index)}function ys(e){let t=e.index;while(e.index<e.template.length&&!e.match("<")&&!e.match("{"))e.index++;let n=e.template.slice(t,e.index);e.append({type:"Text",start:t,end:e.index,raw:n,data:Wt(n,!1)})}function zt(e){if(e.match("<"))return us;if(e.match("{"))return ms;return ys}function _s(e){let t={start:e.start,end:e.end,attributes:e.attributes};if(!e)return t;for(let n of e.attributes){if(n.type!=="Attribute")Oo(n);let{name:i}=n;switch(i){case"runes":{t.runes=jn(n);break}case"tag":{Mo(n);break}case"customElement":{let s={},{value:o}=n,a=o===!0||Array.isArray(o)?o:[o];if(a===!0)Mn(n);else if(a[0].type==="Text"){let v=qn(n);yl(n,v),s.tag=v,t.customElement=s;break}else if(a[0].expression.type!=="ObjectExpression"){if(a[0].expression.type==="Literal"&&a[0].expression.value===null)break;Mn(n)}let c=[];for(let v of a[0].expression.properties){if(v.type!=="Property"||v.computed||v.key.type!=="Identifier")Mn(n);c.push([v.key.name,v.value])}let p=c.find(([v])=>v==="tag");if(p){let v=p[1]?.value;yl(p,v),s.tag=v}let f=c.find(([v])=>v==="props")?.[1];if(f){if(f.type!=="ObjectExpression")et(n);s.props={};for(let v of f.properties){if(v.type!=="Property"||v.computed||v.key.type!=="Identifier"||v.value.type!=="ObjectExpression")et(n);s.props[v.key.name]={};for(let _ of v.value.properties){if(_.type!=="Property"||_.computed||_.key.type!=="Identifier"||_.value.type!=="Literal")et(n);if(_.key.name==="type"){if(["String","Number","Boolean","Array","Object"].indexOf(_.value.value)===-1)et(n);s.props[v.key.name].type=_.value.value}else if(_.key.name==="reflect"){if(typeof _.value.value!=="boolean")et(n);s.props[v.key.name].reflect=_.value.value}else if(_.key.name==="attribute"){if(typeof _.value.value!=="string")et(n);s.props[v.key.name].attribute=_.value.value}else et(n)}}}let d=c.find(([v])=>v==="shadow")?.[1];if(d)if(d.type==="Literal"&&(d.value==="open"||d.value==="none"))s.shadow=d.value;else if(d.type==="ObjectExpression")s.shadow=d;else $o(n);let g=c.find(([v])=>v==="extend")?.[1];if(g)s.extend=g;t.customElement=s;break}case"namespace":{let s=qn(n);if(s===Or)t.namespace="svg";else if(s===$r)t.namespace="mathml";else if(s==="html"||s==="mathml"||s==="svg")t.namespace=s;else Rn(n,'"html", "mathml" or "svg"');break}case"css":{let s=qn(n);if(s==="injected")t.css=s;else Rn(n,'"injected"');break}case"immutable":{t.immutable=jn(n);break}case"preserveWhitespace":{t.preserveWhitespace=jn(n);break}case"accessors":{t.accessors=jn(n);break}default:Fo(n,i)}}return t}function qn(e){let{value:t}=e;if(t===!0)return!0;let n=Array.isArray(t)?t[0]:t;if(!n)return!0;if(t.length>1)return null;if(n.type==="Text")return n.data;if(n.expression.type!=="Literal")return null;return n.expression.value}function jn(e){let t=qn(e);if(typeof t!=="boolean")Rn(e,"true or false");return t}var ml="[a-z0-9_.·À-ÖØ-öø-ͽͿ--‿-⁀⁰-Ⰰ-、-豈-﷏ﷰ-�\uD800\uDC00-\uDB7F\uDFFF-]",Vd=new RegExp(`^[a-z]${ml}*-${ml}*$`,"u"),jd=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function yl(e,t){if(typeof t!=="string")Xi(e);if(t){if(!Vd.test(t))Xi(e);else if(jd.includes(t))Bo(e)}}function _l(e){let{nodes:t}=e.fragment;if(t.length>0){let n=t[0],i=t[t.length-1];Do({start:n.start,end:i.end},e.name)}}function gl(e){if(e===32||e<=13&&e>=9)return!0;if(e<160)return!1;return e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}var xl=/<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/g;class gs{template;loose;index=0;css_comments=[];static forCss(e){let t=Object.create(gs.prototype);return t.template=e,t.index=0,t.loose=!1,t.css_comments=[],t}ts=!1;stack=[];fragments=[];root;meta_tags={};last_auto_closed_tag;constructor(e,t){if(typeof e!=="string")throw TypeError("Template must be a string");this.loose=t,this.template=e.trimEnd();let n;do n=xl.exec(e);while(n&&n[0][1]!=="s");xl.lastIndex=0,this.ts=n?.[2]==="ts",this.root={css:null,js:[],start:null,end:null,type:"Root",fragment:pe(),options:null,comments:[],metadata:{ts:this.ts}},this.stack.push(this.root),this.fragments.push(this.root.fragment);let i=zt;while(this.index<this.template.length)i=i(this)||zt;if(this.stack.length>1){let o=this.current();if(this.loose)o.end=this.template.length;else if(o.type==="RegularElement")o.end=o.start+1,Ln(o,o.name);else o.end=o.start+1,ho(o)}if(i!==zt)ge(this.index);this.root.start=0,this.root.end=e.length;let s=this.root.fragment.nodes.findIndex((o)=>o.type==="SvelteOptions");if(s!==-1){let o=this.root.fragment.nodes[s];this.root.fragment.nodes.splice(s,1),this.root.options=_s(o),_l(o),Object.defineProperty(this.root.options,"__raw__",{value:o,enumerable:!1})}}current(){return this.stack[this.stack.length-1]}eat(e,t=!1,n=!0){if(this.match(e))return this.index+=e.length,!0;if(t&&(!this.loose||n))De(this.index,e);return!1}match(e){if(e.length===1)return this.template[this.index]===e;return this.template.startsWith(e,this.index)}match_regex(e){e.lastIndex=this.index;let t=e.exec(this.template);if(!t||t.index!==this.index)return null;return t[0]}allow_whitespace(){while(this.index<this.template.length&&gl(this.template.charCodeAt(this.index)))this.index++}read(e){let t=this.match_regex(e);if(t)this.index+=t.length;return t}read_identifier(){let e=this.index,t=e,n="",i=this.template.codePointAt(this.index);if(xe(i,!0)){let s=this.index;t+=i<=65535?1:2;while(t<this.template.length){let o=this.template.codePointAt(t);if(!Me(o,!0))break;t+=o<=65535?1:2}if(n=this.template.slice(e,t),this.index=t,Hr(n))qo(e,n)}return{type:"Identifier",name:n,start:e,end:t,loc:{start:ue(e),end:ue(t)}}}read_until(e){if(this.index>=this.template.length){if(this.loose)return"";ge(this.template.length)}let t=this.index,n=e.exec(this.template.slice(t));if(n)return this.index=t+n.index,this.template.slice(t,this.index);return this.index=this.template.length,this.template.slice(t)}require_whitespace(){if(!gl(this.template.charCodeAt(this.index)))Eo(this.index);this.allow_whitespace()}pop(){let e=this.fragments.pop();if(e?.metadata.transparent&&e.nodes.some((t)=>t.type==="DeclarationTag"))e.metadata.transparent=!1;return this.stack.pop()}append(e){return this.fragments.at(-1)?.nodes.push(e),e}}function vl(e,t=!1){return Gr(e),new gs(e,t).root}function qd(e){return e.charCodeAt(0)===65279?e.slice(1):e}function xs(e){delete e.metadata}function vs(e){if(!e||typeof e!=="object"||typeof e.type!=="string")return;xs(e);for(let t in e){if(t==="type")continue;let n=e[t];if(!n||typeof n!=="object")continue;if(Array.isArray(n))for(let i of n)vs(i);else vs(n)}}function Hd(e,t,n){if(n){for(let i of t.options?.attributes??[])if(xs(i),i.value)for(let s of Array.isArray(i.value)?i.value:[i.value])xs(s);return vs(t),t}return ia(e,t)}function bl(e,{loose:t}={}){let n=qd(e);zr({warning:()=>!1,filename:void 0});let i=vl(n,t);return{modern:i,intoLegacy:()=>Hd(n,i,!1)}}function Tl(e){if(e==="var")return"let";if(e==="using"||e==="await using")return"const";return e}var Ud=null,El=/^@component/,Gd=/\r/g,Wd=/^\{\s*\}$/;class he{ctx=ei();static mapToArray(e){return Array.from(e,([t,n])=>n)}static getStaticAttributeValue(e){if(!Array.isArray(e.value))return;return e.value.map((t)=>t.data??t.raw??"").join("").trim()}resolveScriptLanguage(e){let t=[e.instance,e.module].filter((i)=>i!==void 0),n=!1;for(let i of t){let s=i.attributes?.find((a)=>a.name==="lang");if(!s){n=!0;continue}if(he.getStaticAttributeValue(s)?.toLowerCase()==="ts")return"ts"}return n?"js":void 0}resolveScriptGenericsAttribute(e){let t=e.instance?.attributes?.find((a)=>a.name==="generics");if(!t)return;let n=oe(this.ctx,t),i=e.instance?.attributes?.find((a)=>a.name==="lang");if((i?he.getStaticAttributeValue(i)?.toLowerCase():void 0)!=="ts"){He(this.ctx,"syntax-skipped","generics",'<script generics="..."> requires lang="ts"; the generics attribute was ignored because the script is not TypeScript.',n);return}let o=he.getStaticAttributeValue(t);if(!o)return;return{value:o,source:n}}resolvePublicPropName(e){return this.ctx.propLocalToPublicName.get(e)??e}trackPropLocalName(e,t=e){this.ctx.propLocalToPublicName.set(t,e)}getPropByLocalOrPublic(e){return this.ctx.props.get(this.resolvePublicPropName(e))}getPropTypeByLocalOrPublic(e){return this.getPropByLocalOrPublic(e)?.type}getExplicitPropType(e){return this.ctx.explicitPropTypesByName.get(e)}getPropertyName(e){if(!e||typeof e!=="object"||!("type"in e))return;if(Fe(e))return e.name;if(rt(e))return e.value==null?void 0:String(e.value);return}isNumericConstant(e){if(!e||typeof e!=="object"||!("type"in e))return!1;if(e.type!=="MemberExpression")return!1;let t=e,n=t.object&&"name"in t.object?t.object.name:void 0,i=t.property&&"name"in t.property?t.property.name:void 0;if(!n||!i)return!1;if(n==="Number")return["POSITIVE_INFINITY","NEGATIVE_INFINITY","MAX_VALUE","MIN_VALUE","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","EPSILON","NaN"].includes(i);if(n==="Math")return["PI","E","LN2","LN10","LOG2E","LOG10E","SQRT2","SQRT1_2"].includes(i);return!1}resolveLocalVarJSDoc(e){for(let n of this.ctx.vars)if(n.declarations.some((s)=>s.id&&typeof s.id==="object"&&("type"in s.id)&&s.id.type==="Identifier"&&("name"in s.id)&&s.id.name===e))return Ye(this.ctx,this,n);let t=this.ctx.funcDecls.get(e);if(t)return Ye(this.ctx,this,t);return}addModuleExport(e,t){if(Se(e)===void 0)return;if(this.ctx.moduleExports.has(e)){let n=this.ctx.moduleExports.get(e);this.ctx.moduleExports.set(e,{...n,...t})}else this.ctx.moduleExports.set(e,t)}aliasType(e){if(e==="*")return"any";return e.trim()}findVariableTypeAndDescription(e){let t=this.getPropByLocalOrPublic(e);if(t?.type)return{type:t.type,description:t.description};if(!this.ctx.variableInfoCacheBuilt)this.ctx.variableInfoCache=Dr(this.ctx,this),this.ctx.variableInfoCacheBuilt=!0;let n=this.ctx.variableInfoCache.get(e),i=this.ctx.explicitVariableTypesByName.get(e);if(i)return{type:i,description:n?.description};return n??null}accumulateGeneric(e,t){if(this.ctx.generics)this.ctx.generics=[`${this.ctx.generics[0]}, ${e}`,`${this.ctx.generics[1]}, ${t}`];else this.ctx.generics=[e,t]}cleanup(){this.ctx=ei()}static SCRIPT_BLOCK_REGEX=/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi;static TS_DIRECTIVE_REGEX=/\/\/\s*@ts-[^\n\r]*/g;static stripTypeScriptDirectivesFromScripts(e){return he.SCRIPT_BLOCK_REGEX.lastIndex=0,e.replace(he.SCRIPT_BLOCK_REGEX,(t,n,i,s)=>{he.TS_DIRECTIVE_REGEX.lastIndex=0;let o=i.replace(he.TS_DIRECTIVE_REGEX,"");return n+o+s})}parseSvelteComponent(e,t){this.cleanup(),this.ctx.componentFilePath=t.filePath;let n=he.stripTypeScriptDirectivesFromScripts(e);this.ctx.source=n;let{modern:i,intoLegacy:s}=bl(n);if(Cr(this,this.ctx,i),this.ctx.parsed=s(),this.ctx.scriptLanguage==="ts")cn(this.ctx.parsed.module),cn(this.ctx.parsed.instance),cn(this.ctx.parsed.html);this.ctx.syntaxMode=Sr(this.ctx);let o=this.ctx.parsed.css,a=o?.start!==void 0&&o?.end!==void 0?n.slice(0,o.start)+" ".repeat(o.end-o.start)+n.slice(o.end):n;yr(this.ctx,this,a);let c={type:"ComponentRoot",instance:this.ctx.parsed.instance,html:this.ctx.parsed.html};if(hi(this.ctx,this.ctx.parsed?.module),hi(this.ctx,this.ctx.parsed?.instance),this.ctx.parsed?.module)Re(this.ctx.parsed?.module,{enter:(r)=>{if(r.type==="ImportDeclaration")pn(this.ctx,r);if(r.type==="FunctionDeclaration"){let l=r;if(l.id?.name)this.ctx.funcDecls.set(l.id.name,l)}if(r.type==="VariableDeclaration")this.ctx.vars.add(r);if(r.type==="ExportNamedDeclaration"){if(r.declaration==null)return;if(!r.declaration||typeof r.declaration!=="object"||!("type"in r.declaration))return;let l,u,m=!1,y,x,b,w=!1,C,T,A;if(r.declaration.type==="FunctionDeclaration"){let U=r.declaration;if(!U.id?.name)return;l=U.id.name,u="function",y=void 0,x="() => any",w=!0,m=!0}else if(r.declaration.type==="VariableDeclaration"){let U=r.declaration,ae=U.declarations[0];if(!ae||typeof ae!=="object"||!("id"in ae))return;let{id:be,init:ne}=ae;if(!be||typeof be!=="object"||!("name"in be))return;let Te=be.name;l=Te,u=Tl(U.kind);let se=ne==null?{isFunction:!1}:Je(this,this.ctx,ne);if({value:y,type:x,isFunction:w,defaultValue:C}=se,T=x,A=se,b=this.getExplicitPropType(Te),A.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:Te,location:"moduleExports",...A.pendingCallDefault})}else return;let P=Ye(this.ctx,this,r),{type:M,typeSource:j,description:H,params:X,returnType:F,isFunction:z}=It({explicitType:b,typeSeed:x,inferredTypeForSource:T,jsdocType:P?.type,jsdocDescription:P?.description,jsdocParams:P?.params,jsdocReturnType:P?.returnType,resolvedType:A?.resolvedType,resolvedDescription:A?.resolvedDescription,resolvedParams:A?.resolvedParams,resolvedReturnType:A?.resolvedReturnType,initializerIsFunction:w,isFunctionDeclaration:m,typedefs:this.ctx.typedefs});this.addModuleExport(l,{name:l,kind:u,description:H,deprecated:P?.deprecated,tags:P?.tags,type:M,typeSource:j,value:y,defaultValue:C,params:X,returnType:F,isFunction:z,isFunctionDeclaration:m,isRequired:!1,constant:u==="const",reactive:!1,source:oe(this.ctx,r)})}}});let p,f=new Set,d=new Set,g=[];xr(this,this.ctx),this.ctx.activeScopes.push(this.ctx.componentScope);let v=vr(this.ctx);if(Re(c,{enter:(r,l,u)=>{br(this,this.ctx,v,r);let m=this.ctx.scopeDeclarations.get(r);if(m)this.ctx.activeScopes.push(m);if(r.type==="AssignmentExpression")ui(this.ctx,r.left);if(r.type==="UpdateExpression")ui(this.ctx,r.argument);if(r.type==="CallExpression"){let y=r,x=y.callee&&typeof y.callee==="object"&&"name"in y.callee?y.callee.name:void 0;if(x==="createEventDispatcher"){if(l&&typeof l==="object"&&"id"in l&&l.id&&typeof l.id==="object"&&"name"in l.id)p=l.id.name}if(x==="$host"){if(l&&typeof l==="object"&&"id"in l&&l.id&&typeof l.id==="object"&&"name"in l.id)f.add(l.id.name)}if(x==="setContext")Zs(this.ctx,this,r,l??void 0);if(x)g.push({name:x,arguments:y.arguments,source:oe(this.ctx,y)});if(Os(y.callee)&&Fe(y.callee.property)&&y.callee.property.name==="dispatchEvent"&&(Ve(y.callee.object,"$host")||Fe(y.callee.object)&&f.has(y.callee.object.name))){let b=er(this.ctx,y);if(b)d.add(b)}}if(r&&typeof r==="object"&&"type"in r&&String(r.type)==="Spread"){let y=r;if(y.expression?.name==="$$restProps"||this.ctx.restPropLocals.has(y.expression?.name??""))_r(this.ctx,l)}if(r.type==="FunctionDeclaration"){let y=r;if(y.id?.name)this.ctx.funcDecls.set(y.id.name,y)}if(r.type==="ImportDeclaration")pn(this.ctx,r);if(r.type==="VariableDeclaration"){if(this.ctx.vars.add(r),l&&typeof l==="object"&&"type"in l&&l.type==="Program"&&r.declarations.some((y)=>Ve(Xe(y.init),"$props")))wr(this,this.ctx,r)}if(r.type==="ExportNamedDeclaration"){if(r.declaration==null&&r.specifiers.length===0)return;let y;if(r.declaration==null&&r.specifiers[0]?.type==="ExportSpecifier"){let se=r.specifiers[0],it=se.local&&typeof se.local==="object"&&"name"in se.local?se.local.name:void 0,st=se.exported&&typeof se.exported==="object"&&"name"in se.exported?se.exported.name:void 0;if(!it||!st)return;let ht;for(let Et of Array.from(this.ctx.vars))if(Et.declarations.some((qe)=>qe.id&&typeof qe.id==="object"&&("type"in qe.id)&&qe.id.type==="Identifier"&&qe.id.name===it)){ht=Et;break}r.declaration=ht,y=st}if(r.declaration==null)return;if(!r.declaration||typeof r.declaration!=="object"||!("type"in r.declaration))return;let x,b=!1,w,C,T,A=!1,P=!1,M,j,H,X;if(r.declaration.type==="FunctionDeclaration"){let se=r.declaration;if(!se.id?.name)return;y??=se.id.name,M=se.id.name,x="function",w=void 0,C="() => any",A=!0,b=!0,P=!1}else if(r.declaration.type==="VariableDeclaration"){let se=r.declaration,it=se.declarations[0];if(!it||typeof it!=="object"||!("id"in it))return;let{id:st,init:ht}=it;if(st&&typeof st==="object"&&"name"in st){let qe=st.name;M=qe,y??=qe,T=this.getExplicitPropType(qe)}else return;x=Tl(se.kind),P=x==="let"&&ht==null;let Et=ht==null?{isFunction:!1}:Je(this,this.ctx,ht);if({value:w,type:C,isFunction:A,defaultValue:j}=Et,H=C,X=Et,X.pendingCallDefault)this.ctx.pendingCallDefaultCandidates.push({propName:y,location:"props",...X.pendingCallDefault})}else return;let F=Ye(this.ctx,this,r),{type:z,typeSource:U,description:ae,params:be,returnType:ne,isFunction:Te}=It({explicitType:T,typeSeed:C,inferredTypeForSource:H,jsdocType:F?.type,jsdocDescription:F?.description,jsdocParams:F?.params,jsdocReturnType:F?.returnType,resolvedType:X?.resolvedType,resolvedDescription:X?.resolvedDescription,resolvedParams:X?.resolvedParams,resolvedReturnType:X?.resolvedReturnType,initializerIsFunction:A,isFunctionDeclaration:b,typedefs:this.ctx.typedefs});St(this,this.ctx,y,{name:y,...M!==void 0&&M!==y?{localName:M}:{},kind:x,description:ae,binding:F?.binding,deprecated:F?.deprecated,tags:F?.tags,type:z,typeSource:U,value:w,defaultValue:j,params:be,returnType:ne,isFunction:Te,isFunctionDeclaration:b,isRequired:P,constant:x==="const",reactive:this.ctx.reactive_vars.has(y),source:oe(this.ctx,r)})}if(r&&typeof r==="object"&&"type"in r&&String(r.type)==="Comment"){let x=r?.data?.trim()??"";if(El.test(x))this.ctx.componentComment=x.replace(El,"").replace(Gd,""),this.ctx.componentCommentSource=oe(this.ctx,r)}if(r&&typeof r==="object"&&"type"in r&&String(r.type)==="Slot"){let y=r,x=y.attributes?.find((C)=>C.name==="name")?.value?.[0]?.data,b=(y.attributes||[]).filter((C)=>C.name!=="name").reduce((C,T)=>{let A={value:void 0,replace:!1},P=T.value;if(P===void 0)return C;if(P[0]){let M=P[0],{type:j,expression:H,raw:X,start:F,end:z}=M;if(j==="Text"&&X!==void 0)A.value=JSON.stringify(X);else if(j==="AttributeShorthand"&&H&&typeof H==="object"&&"name"in H)A.value=H.name,A.replace=!0;if(H&&typeof H==="object"&&"type"in H){if(H.type==="Literal"&&"value"in H){let U=H.value;A.value=typeof U==="string"?JSON.stringify(U):String(U)}else if(H.type==="MemberExpression")A.value=tn(this.ctx,this,H);else if(H.type!=="Identifier"){if(F!==void 0&&z!==void 0){if(H.type==="ObjectExpression"||H.type==="TemplateLiteral")A.value=ee(this.ctx,F+1,z-1)}}}}if(T.name)C[T.name]=A;return C},{}),w=y.children?.map(({start:C,end:T})=>{if(C===void 0||T===void 0)return"";return ee(this.ctx,C,T)??""}).join("").trim();Pt(this.ctx,{slot_name:x,slot_props:b,slot_fallback:w,source:oe(this.ctx,r)})}if(r&&typeof r==="object"&&"type"in r&&String(r.type)==="RenderTag"){let y=r,x=ur(this.ctx,y.expression);if(x){let b;if(x.arguments.length===0)b={};else if(x.arguments.length===1&&typeof x.arguments[0]==="object"&&x.arguments[0]&&"type"in x.arguments[0]&&x.arguments[0].type==="ObjectExpression")b=pr(this.ctx,this,x.arguments[0]);else if(x.arguments.length===1)He(this.ctx,"syntax-skipped",x.publicName,`{@render ${x.publicName}(...)} argument is not a plain object literal; the render call was not mapped to slot metadata.`,oe(this.ctx,r));let w=x.publicName==="children"?void 0:x.publicName,C=w===void 0?Ud:w;if(b!==void 0)Pt(this.ctx,{slot_name:w,slot_props:b,source:oe(this.ctx,r)});if(b!==void 0||this.ctx.slots.has(C))this.ctx.snippetPropLocals.add(x.trackingName)}}if(r&&typeof r==="object"&&"type"in r&&String(r.type)==="EventHandler"){let y=r;if(y.expression==null&&y.name){if(l!=null&&typeof l==="object"&&"name"in l){let x=typeof l.name==="string"?l.name:void 0,b="type"in l?String(l.type):void 0;if(x&&b){let w=b==="InlineComponent"?{type:"InlineComponent",name:x}:{type:"Element",name:x};this.ctx.forwardedEvents.set(y.name,w);let C=this.ctx.events.get(y.name),T=this.ctx.eventDescriptions.get(y.name),A=C?.deprecated;if(!C)this.ctx.events.set(y.name,{type:"forwarded",name:y.name,element:w,description:T,deprecated:A,source:oe(this.ctx,r)});else if(C.type==="forwarded"&&T&&!C.description)this.ctx.events.set(y.name,{...C,description:T,deprecated:C.deprecated??A,source:C.source||oe(this.ctx,r)})}}}}if(l&&typeof l==="object"&&"type"in l&&(String(l.type)==="Element"||String(l.type)==="InlineComponent")&&r&&typeof r==="object"&&"type"in r&&String(r.type)==="Binding"){let y=r;if(y.expression?.name){let x=an(this.ctx,y.expression.name);if(x)this.ctx.reactive_vars.add(x)}if(String(l.type)==="Element"&&y.name==="this"&&y.expression?.name&&"name"in l&&typeof l.name==="string"){let x=an(this.ctx,y.expression.name);if(!x)return;let b=l.name;if(this.ctx.bindings.has(x)){let w=this.ctx.bindings.get(x);if(w&&!w.elements.includes(b))this.ctx.bindings.set(x,{...w,elements:[...w.elements,b]})}else this.ctx.bindings.set(x,{elements:[b]})}}},leave:(r)=>{if(this.ctx.scopeDeclarations.has(r))this.ctx.activeScopes.pop();Tr(v,r)}}),p!==void 0){for(let r of g)if(r.name===p){let l=r.arguments[0],u=l&&typeof l==="object"&&"value"in l?l.value:void 0,m=r.arguments[1],y=m&&typeof m==="object"&&"value"in m?m.value:void 0;if(u!=null)Ct(this.ctx,{name:String(u),detail:y==null?"":ri(y),has_argument:Boolean(m),source:r.source})}}let _=new Set(d);if(p!==void 0){for(let r of g)if(r.name===p){let l=r.arguments[0],u=l&&typeof l==="object"&&"value"in l?l.value:void 0;if(u!=null)_.add(String(u))}}this.ctx.forwardedEvents.forEach((r,l)=>{let u=this.ctx.events.get(l);if(u&&u.type==="dispatched"&&!_.has(l)){let m=this.ctx.eventDescriptions.get(l),y={type:"forwarded",name:l,element:r,description:m,deprecated:u.deprecated,tags:u.tags,source:u.source};if(u.detail!==void 0&&u.detail!=="undefined")y.detail=u.detail;this.ctx.events.set(l,y)}}),kr(this.ctx,_);let S=this.ctx.syntaxMode==="runes"?new Set(Array.from(this.ctx.snippetPropLocals,(r)=>this.resolvePublicPropName(r))):new Set,k=he.mapToArray(this.ctx.props).filter((r)=>!S.has(r.name)).map((r)=>{if(this.ctx.bindings.has(r.name)){let l=this.ctx.bindings.get(r.name)?.elements.sort().map((u)=>Vs(u)).join(" | ");return{...r,type:`null | ${l}`,typeSource:"inferred",reactive:r.reactive||this.ctx.reactive_vars.has(r.name)}}return{...r,reactive:r.reactive||this.ctx.reactive_vars.has(r.name)}});this.ctx.activeScopes.length=0;let E=he.mapToArray(this.ctx.slots).map((r)=>{if(!r.slot_props)return r;if(typeof r.slot_props==="string")return Wd.test(r.slot_props)?{...r,slot_props:"Record<string, never>"}:r;let l=r.slot_props,u=[];for(let y of Object.keys(l)){if(l[y].replace&&l[y].value!==void 0)l[y].value=this.getPropTypeByLocalOrPublic(l[y].value);if(l[y].value===void 0)l[y].value="any";u.push(`${y}: ${l[y].value}`)}let m=u.length===0?"Record<string, never>":u.length===1?`{ ${u[0]} }`:`{
|
|
85
|
+
${u.join(`;
|
|
86
86
|
`)};
|
|
87
|
-
}`;return{...
|
|
88
|
-
`);for(let{name:
|
|
89
|
-
`&&!
|
|
90
|
-
`)){let
|
|
91
|
-
`)
|
|
92
|
-
`);continue}if(
|
|
93
|
-
`)
|
|
94
|
-
`);
|
|
95
|
-
`)
|
|
96
|
-
`);continue}
|
|
97
|
-
`),
|
|
98
|
-
`)}function
|
|
99
|
-
`).map((
|
|
100
|
-
`)}function
|
|
101
|
-
`}var
|
|
102
|
-
* `)}function
|
|
103
|
-
* ${
|
|
87
|
+
}`;return{...r,slot_props:m}}).sort((r,l)=>{let u=r.name??"",m=l.name??"";if(u<m)return-1;if(u>m)return 1;return 0});if(this.ctx.deferredSlotBlockGenerics.length>0){let r=[...k.map((l)=>l.type??""),...E.map((l)=>l.slot_props??"")].join(`
|
|
88
|
+
`);for(let{name:l,constraint:u}of this.ctx.deferredSlotBlockGenerics){let m=l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!new RegExp(`\\b${m}\\b`).test(r))continue;this.accumulateGeneric(l,u)}}if(this.ctx.scriptGenericsAttribute){if(this.ctx.generics)He(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=or(this.ctx.scriptGenericsAttribute.value)}let I=he.mapToArray(this.ctx.moduleExports),V=he.mapToArray(this.ctx.events).map((r)=>{switch(r.type){case"forwarded":return{...r,element:r.element.name};case"dispatched":return r;default:return r}}).sort((r,l)=>{let u=r.name.localeCompare(l.name);if(u!==0)return u;let m=r.type.localeCompare(l.type);if(m!==0)return m;if(r.type==="forwarded"&&l.type==="forwarded"){let y=r.element.localeCompare(l.element);if(y!==0)return y}return(r.detail??"").localeCompare(l.detail??"")}),R=he.mapToArray(this.ctx.typedefs),J=he.mapToArray(this.ctx.contexts),B={props:new Map(this.ctx.pendingCallDefaultCandidates.filter((r)=>r.location==="props").map((r)=>[r.propName,r])),moduleExports:new Map(this.ctx.pendingCallDefaultCandidates.filter((r)=>r.location==="moduleExports").map((r)=>[r.propName,r]))};for(let r of k)if(r.typeSource==="unknown"){let l=B.props.get(r.name);if(l)r.type="any";let u=l?l.importSource?`Prop "${r.name}" default calls "${l.calleeName}()" imported from "${l.importSource}"; falling back to "any" pending cross-file resolution.`:`Prop "${r.name}" default calls "${l.calleeName}()", but its return type could not be inferred; falling back to "any".`:`Prop "${r.name}" type could not be inferred; falling back to "${r.type??"any"}".`;He(this.ctx,"prop-unknown-type",r.name,u,r.source)}for(let r of I)if(r.typeSource==="unknown"&&B.moduleExports.has(r.name))r.type="any";for(let r of this.ctx.jsDocEventNames){if(_.has(r))continue;if(this.ctx.forwardedEvents.has(r))continue;if(this.ctx.props.has(`on${r}`))continue;He(this.ctx,"event-no-source",r,`@event "${r}" has no matching dispatch or callback prop.`,this.ctx.jsDocEventSources.get(r))}let Z={source:nn(this.ctx,0,this.ctx.source?.length),syntaxMode:this.ctx.syntaxMode,...this.ctx.scriptLanguage?{scriptLanguage:this.ctx.scriptLanguage}:{},props:k,moduleExports:I,slots:E,events:V,typedefs:R,generics:this.ctx.generics,rest_props:this.ctx.rest_props,extends:this.ctx.extends,componentComment:this.ctx.componentComment,componentCommentSource:this.ctx.componentCommentSource,contexts:J,customElementTag:this.ctx.customElementTag,diagnostics:this.ctx.diagnosticRecords.slice()},Y=rr(this.ctx);if(Y)Z[en]=Y;return Z}}var Cl="sveld",wl="0.36.9";var bs="5.56.9";var Pl=1,kl=new WeakMap;function Kt(e,t={}){let n=kl.get(e),i=n?.get(t.entryExports);if(i)return i;let s=Array.from(e,([,a])=>{let{diagnostics:c,...p}=a;return p}).sort((a,c)=>a.moduleName.localeCompare(c.moduleName)),o={schemaVersion:Pl,generator:{name:Cl,version:wl,svelteVersion:bs},total:s.length,components:s};if(t.entryExports&&t.entryExports.length>0)o.totalExports=t.entryExports.length,o.exports=t.entryExports;if(!n)n=new Map,kl.set(e,n);return n.set(t.entryExports,o),o}var Il=/^[}\])>]/,Kd=new Set(["{","(","["]),Xd=new Set(["}",")","]"]);var Jd=/\binterface\s+[A-Za-z_$][\w$]*(\s*<[^{};]*>)?\s*$/,Nl=/[ \t]+$/,Yd=/\s+$/,Qd=/[{([]$/,Zd=/\s/;function eh(e){return Jd.test(e.slice(-200))}var th=200;function nh(e,t){let n="";for(let i=e.length-1;i>=0&&n.length<t;i--)n=e[i]+n;return n.length>t?n.slice(-t):n}function Al(e,t){while(e.length>0&&t.test(e[e.length-1]))e.pop()}function ih(e){if(e.includes("{"))return!1;let t=null,n=0;for(let i=0;i<e.length;i++){let s=e[i],o=e[i-1];if(t){if(t==="double"&&s==='"'&&o!=="\\"||t==="single"&&s==="'"&&o!=="\\"||t==="template"&&s==="`"&&o!=="\\")t=null;continue}if(s==='"'||s==="'"||s==="`"){t=s==='"'?"double":s==="'"?"single":"template";continue}if(s===";"&&++n>=2)return!0}return!1}function sh(e){let t="",n=null,i=!1;for(let s=0;s<e.length;s++){let o=e[s],a=e[s-1];if(n){if(t+=o,n==="double"&&o==='"'&&a!=="\\"||n==="single"&&o==="'"&&a!=="\\"||n==="template"&&o==="`"&&a!=="\\")n=null;i=!1;continue}if(o==='"'||o==="'"||o==="`"){n=o==='"'?"double":o==="'"?"single":"template",t+=o,i=!1;continue}if(Zd.test(o)){if(!i&&t.length>0)t+=" ",i=!0;continue}t+=o,i=!1}return t.trimEnd()}function rh(e,t){let n=0,i="normal";for(let s=t;s<e.length;s++){let o=e[s],a=e[s-1];if(i==="blockComment"){if(a==="*"&&o==="/")i="normal";continue}if(i==="double"||i==="single"){if(o===(i==="double"?'"':"'")&&a!=="\\")i="normal";continue}if(i==="template"){if(o==="`"&&a!=="\\")i="normal";continue}if(o==="/"&&e[s+1]==="*")i="blockComment";else if(o==='"')i="double";else if(o==="'")i="single";else if(o==="`")i="template";else if(o==="{")n++;else if(o==="}"){if(n--,n===0)return s}}return-1}function Dl(e){let t=[],n="normal";for(let i=0;i<e.length;i++){let s=e[i],o=e[i-1];if(n==="blockComment"){if(t.push(s),o==="*"&&s==="/")n="normal";continue}if(n==="double"||n==="single"){if(t.push(s),s===(n==="double"?'"':"'")&&o!=="\\")n="normal";continue}if(n==="template"){if(t.push(s),s==="`"&&o!=="\\")n="normal";continue}if(s==="/"&&e[i+1]==="*"){n="blockComment",t.push(s);continue}if(s==='"'){n="double",t.push(s);continue}if(s==="'"){n="single",t.push(s);continue}if(s==="`"){n="template",t.push(s);continue}if(s==="{"){let a=rh(e,i);if(a===-1){t.push(s);continue}let c=e.slice(i+1,a);if(c.trim()===""){t.push("{}"),i=a;continue}if(!c.includes("/*")&&e[i+1]!==`
|
|
89
|
+
`&&!ih(c)&&!eh(nh(t,th))){let p=Dl(c).trim();if(!p.includes(`
|
|
90
|
+
`)){let f=p.endsWith(";")?p.slice(0,-1):p,d=`{ ${sh(f)} }`;if(d.length<=120){t.push(d),i=a;continue}}}if(t.push(s),e[i+1]!==`
|
|
91
|
+
`)t.push(`
|
|
92
|
+
`);continue}if(s==="}"){if(Al(t,Nl),t[t.length-1]!==`
|
|
93
|
+
`)t.push(`
|
|
94
|
+
`);t.push(s);continue}if(s===";"){if(Al(t,Yd),t.push(";"),e[i+1]!==`
|
|
95
|
+
`)t.push(`
|
|
96
|
+
`);continue}t.push(s)}return t.join("")}function ah(e){let t="",n=null;for(let i=0;i<e.length;i++){let s=e[i],o=e[i-1];if(n){if(t+=s,n==="double"&&s==='"'&&o!=="\\"||n==="single"&&s==="'"&&o!=="\\"||n==="template"&&s==="`"&&o!=="\\")n=null;continue}if(s==='"'||s==="'"||s==="`"){n=s==='"'?"double":s==="'"?"single":"template",t+=s;continue}if(s===" "&&t.endsWith(" "))continue;t+=s}return t}function oh(e){let t=e.split(`
|
|
97
|
+
`),n=[],i=0,s=!1,o=0;for(let a of t){let c=a.trim();if(c===""){n.push("");continue}if(s){if(n.push(`${" ".repeat(o)} ${c}`),c.includes("*/"))s=!1;continue}if(c.startsWith("/**")&&!c.includes("*/")){n.push(" ".repeat(i)+c),s=!0,o=i;continue}let p=ah(c),f=Il.test(p),d=Math.max(0,i-(f?1:0));if(n.push(" ".repeat(d)+p),p.startsWith("/**")&&p.includes("*/"))continue;let g=null;for(let v=0;v<p.length;v++){let _=p[v],S=p[v-1];if(g){if(g==="double"&&_==='"'&&S!=="\\"||g==="single"&&_==="'"&&S!=="\\"||g==="template"&&_==="`"&&S!=="\\")g=null;continue}if(_==='"')g="double";else if(_==="'")g="single";else if(_==="`")g="template";else if(Kd.has(_))i++;else if(Xd.has(_))i=Math.max(0,i-1);else if(_==="<")i++;else if(_===">"&&S!=="=")i=Math.max(0,i-1)}}return n.join(`
|
|
98
|
+
`)}function lh(e){let t=e.split(`
|
|
99
|
+
`).map((i)=>i.replace(Nl,"")),n=[];for(let i of t){let s=i==="",o=n.length>0&&n[n.length-1]==="",a=n.length>0&&Qd.test(n[n.length-1]);if(s){if(n.length===0||o||a)continue;n.push(i);continue}if(Il.test(i)&&o)n.pop();n.push(i)}while(n.length>0&&n[n.length-1]==="")n.pop();return n.join(`
|
|
100
|
+
`)}function Ll(e){let t=Dl(e),n=oh(t);return`${lh(n)}
|
|
101
|
+
`}var nt="any",Le="",ch="Record<string, any>",Es="Record<string, never>",ph=/(-|\s+|:)/,uh=/("|')/,dh=/CustomEvent/,hh=/^[A-Z]/,fh=/\n/,$l=/=>/,mh=/(?:^|\n)@default\b/,Ss=/\n/g,yh=/\s+/g,bt=/(^|[^.\w])Snippet(?:\s*<|\b)/,_h=/import\s+type\s+[^;]*\bSnippet\b[^;]*from\s+"svelte";/,gh=/[.*+?^${}()|[\]\\]/g,xh=/^const\s+/;function Cs(e){return e.replace(xh,"")}function vh(e){if(!e)return;return e.replace(Ss,`
|
|
102
|
+
* `)}function Hn(e){if(!e)return"";return`/** ${e} */`}function Un(e){if(!e)return"";return`/**
|
|
103
|
+
* ${e.replace(Ss,`
|
|
104
104
|
* `)}
|
|
105
|
-
*/`}function
|
|
105
|
+
*/`}function Bl(e){if(e===void 0)return;return e===!0?"@deprecated":`@deprecated ${e}`}function bh(e){let t=Bl(e);if(t===void 0)return;return`* ${t.replace(Ss,`
|
|
106
106
|
* `)}
|
|
107
|
-
`}function
|
|
108
|
-
`))return[`@${
|
|
109
|
-
`)]}function
|
|
110
|
-
`)?
|
|
111
|
-
`));if(
|
|
107
|
+
`}function Th(e,t){if(!t)return[`@${e}`];if(!t.includes(`
|
|
108
|
+
`))return[`@${e} ${t}`];return[`@${e}`,...t.split(`
|
|
109
|
+
`)]}function Fl(e){let t=[];for(let{name:n,body:i}of e??[])t.push(...Th(n,i));return t}function Xt(e,t,n){let i=Bl(n),s=Fl(t),o=s.length>0;if(!e&&!o&&!i)return"";if(!o&&!i)return e?.includes(`
|
|
110
|
+
`)?Un(e):Hn(e);let a=[];if(e)a.push(...e.split(`
|
|
111
|
+
`));if(a.push(...s),i)a.push(...i.split(`
|
|
112
112
|
`));return`/**
|
|
113
|
-
* ${
|
|
113
|
+
* ${a.join(`
|
|
114
114
|
* `)}
|
|
115
|
-
*/`}function
|
|
116
|
-
`).join("")}function
|
|
117
|
-
`}function
|
|
118
|
-
`:""}export ${
|
|
115
|
+
*/`}function Eh(e){let t=Fl(e);if(t.length===0)return"";return t.map((n)=>`* ${n}
|
|
116
|
+
`).join("")}function Gn(e){if(e===void 0)return nt;return`${e}
|
|
117
|
+
`}function Wn(e){if(e.typedefs.length===0)return Le;return e.typedefs.map((t)=>`${t.description?`${Un(t.description)}
|
|
118
|
+
`:""}export ${t.ts}`).join(`
|
|
119
119
|
|
|
120
|
-
`)}var
|
|
121
|
-
`:"",
|
|
122
|
-
`),
|
|
123
|
-
`:"",
|
|
124
|
-
${
|
|
120
|
+
`)}var Rl=new Map;function Vl(e,t){let n=Rl.get(t);if(n===void 0){let i=t.replace(gh,"\\$&");n=new RegExp(`\\b${i}\\b`),Rl.set(t,n)}return n.test(e)}var Ml,Ol=[];function ws(e){if(e!==Ml)Ml=e,Ol=wt(e);return Ol}function Sh(e){if(e===null)return[];return e[0].split(",").map((t,n)=>({name:t.trim(),constraint:(ws(e[1]??"")[n]??t).trim()}))}function Ch(e,t){let n=Sh(e).filter(({name:i})=>Vl(t,i));if(n.length===0)return{declSuffix:Le,refSuffix:Le};return{declSuffix:`<${n.map(({constraint:i})=>Cs(i)).join(", ")}>`,refSuffix:`<${n.map(({name:i})=>i).join(", ")}>`}}function jl(e){if(!e.contexts||e.contexts.length===0)return Le;let t=e.generics===null?[]:e.generics[0].split(",").map((n,i)=>({name:n.trim(),constraint:(ws(e.generics?.[1]??"")[i]??n).trim()}));return e.contexts.map((n)=>{let i=n.properties.map((c)=>{let p=c.description?`${Hn(c.description)}
|
|
121
|
+
`:"",f=c.optional?"?":"";return`${p}${c.name}${f}: ${c.type};`}).join(`
|
|
122
|
+
`),s=n.description?`${Un(n.description)}
|
|
123
|
+
`:"",o=t.filter(({name:c})=>n.properties.some((p)=>Vl(p.type,c))).map(({constraint:c})=>c),a=o.length>0?`<${o.map(Cs).join(", ")}>`:"";if(n.properties.length===0)return`${s}export type ${n.typeName} = Record<string, never>;`;return`${s}export type ${n.typeName}${a} = {
|
|
124
|
+
${i}
|
|
125
125
|
};`}).join(`
|
|
126
126
|
|
|
127
|
-
`)}function
|
|
128
|
-
`}function
|
|
129
|
-
${
|
|
130
|
-
`].filter(Boolean).join(""),
|
|
131
|
-
${
|
|
132
|
-
${
|
|
133
|
-
`:"",
|
|
134
|
-
${
|
|
135
|
-
`:"",
|
|
136
|
-
${
|
|
137
|
-
`)
|
|
138
|
-
type $Props${
|
|
127
|
+
`)}function Jt(e){if(ph.test(e))return uh.test(e)?e:`"${e}"`;return e}function ql(e,t){if(!e)return;return`* ${t||e}
|
|
128
|
+
`}function ks(e,t,n){return[ql(vh(e)),bh(t),Eh(n)].filter(Boolean).join("")}function Ps(e){return e.length>0?`/**
|
|
129
|
+
${e}*/`:Le}function wh(e){let t=e.props.filter((E)=>!E.isFunctionDeclaration&&E.kind!=="const"),n=new Set([...t.map((E)=>E.name),...Array.from(e.canonicalPropNames??[])]),i=t.map((E)=>{let I=E.value;if(typeof E.value==="string")I=E.value.replace(yh," ");if(E.value===void 0)I="undefined";let R=mh.test(E.description??"")||E.isFunction&&E.value===void 0,J=[ks(E.description,E.deprecated,E.tags),ql(E.constant,"@constant"),R?null:`* @default ${I}
|
|
130
|
+
`].filter(Boolean).join(""),B=E.constant&&!E.isFunction?E.value:E.type;return`
|
|
131
|
+
${Ps(J)}
|
|
132
|
+
${E.name}${E.isRequired?"":"?"}: ${B};`}),s=e.canonicalPropsType?i.filter((E,I)=>{let V=t[I];return V?!(e.canonicalPropNames?.has(V.name)??!1):!0}):i,o=(e.slots||[]).filter((E)=>!E.default&&E.name!=null&&!n.has(E.name)).map((E)=>{let I=E.name,V=Jt(I),R=Xt(E.description,E.tags,E.deprecated),J=R?`${R}
|
|
133
|
+
`:"",Z=E.slot_props&&E.slot_props!=="Record<string, never>"?`(this: void, ...args: [${E.slot_props}]) => void`:"(this: void) => void";return`
|
|
134
|
+
${J}${V}?: ${Z};`}),a=(e.slots||[]).find((E)=>E.default||E.name===null),c=a&&!n.has("children")?(()=>{let E=Xt(a.description,a.tags,a.deprecated),I=E?`${E}
|
|
135
|
+
`:"",R=a.slot_props&&a.slot_props!=="Record<string, never>"?`(this: void, ...args: [${a.slot_props}]) => void`:"(this: void) => void";return`
|
|
136
|
+
${I}children?: ${R};`})():"",p=e.events?Dh({events:e.events},n):[],f=[...o,c,...p].filter(Boolean),d=[...s,...f].join(`
|
|
137
|
+
`),g=`${e.moduleName}Props`,v=Le,_=e.generics?`<${ws(e.generics[1]).map((E)=>Cs(E.trim())).join(", ")}>`:"",S=e.generics?`<${e.generics[0]}>`:"",k=e.canonicalPropsType?`
|
|
138
|
+
type $Props${_} = ${e.canonicalPropsType}${d.trim()===""?"":` & {${d}
|
|
139
139
|
}`};
|
|
140
140
|
`:`
|
|
141
|
-
type $Props${
|
|
142
|
-
${
|
|
141
|
+
type $Props${_} = {
|
|
142
|
+
${d}
|
|
143
143
|
};
|
|
144
|
-
`;if(
|
|
145
|
-
`)?`${
|
|
146
|
-
`:`${
|
|
147
|
-
`:"";if(
|
|
148
|
-
${
|
|
144
|
+
`;if(e.rest_props?.type==="Element"){let E;if(e.rest_props.name==="svelte:element")if(e.rest_props.thisValue)E=`SvelteHTMLElements["${e.rest_props.thisValue}"]`;else E="HTMLAttributes<HTMLElement>";else E=e.rest_props.name.split("|").map((R)=>`SvelteHTMLElements["${R.trim()}"]`).join(" & ");let I="[key: `data-${string}`]: unknown;",V=e.rest_props.description?e.rest_props.description.includes(`
|
|
145
|
+
`)?`${Un(e.rest_props.description)}
|
|
146
|
+
`:`${Hn(e.rest_props.description)}
|
|
147
|
+
`:"";if(e.extends===void 0)v=`
|
|
148
|
+
${V}${E?`type $RestProps = ${E};
|
|
149
149
|
`:""}
|
|
150
|
-
${
|
|
150
|
+
${e.canonicalPropsType?`type $Props${_} = (${e.canonicalPropsType}) & {${d}
|
|
151
151
|
|
|
152
|
-
${
|
|
153
|
-
};`:`type $Props${
|
|
154
|
-
${
|
|
152
|
+
${I}
|
|
153
|
+
};`:`type $Props${_} = {
|
|
154
|
+
${d}
|
|
155
155
|
|
|
156
|
-
${
|
|
156
|
+
${I}
|
|
157
157
|
};`}
|
|
158
158
|
|
|
159
|
-
export type ${
|
|
160
|
-
`;else
|
|
161
|
-
${
|
|
159
|
+
export type ${g}${_} = Omit<$RestProps, keyof $Props${S}> & $Props${S};
|
|
160
|
+
`;else v=`
|
|
161
|
+
${V}${E?`type $RestProps = ${E};
|
|
162
162
|
`:""}
|
|
163
|
-
${
|
|
163
|
+
${e.canonicalPropsType?`type $Props${_} = (${e.canonicalPropsType}) & {${d}
|
|
164
164
|
|
|
165
|
-
${
|
|
166
|
-
};`:`type $Props${
|
|
167
|
-
${
|
|
165
|
+
${I}
|
|
166
|
+
};`:`type $Props${_} = {
|
|
167
|
+
${d}
|
|
168
168
|
|
|
169
|
-
${
|
|
169
|
+
${I}
|
|
170
170
|
};`}
|
|
171
171
|
|
|
172
|
-
export type ${
|
|
173
|
-
`}else if(
|
|
174
|
-
export type ${
|
|
175
|
-
`;else if(
|
|
176
|
-
${
|
|
177
|
-
export type ${
|
|
178
|
-
`;else
|
|
179
|
-
export type ${
|
|
180
|
-
${
|
|
172
|
+
export type ${g}${_} = Omit<$RestProps, keyof ($Props${S} & ${e.extends.interface})> & $Props${S} & ${e.extends.interface};
|
|
173
|
+
`}else if(d.trim()===""&&e.extends===void 0&&!e.canonicalPropsType)v=`
|
|
174
|
+
export type ${g}${_} = ${Es};
|
|
175
|
+
`;else if(e.canonicalPropsType)v=`
|
|
176
|
+
${k}
|
|
177
|
+
export type ${g}${_} = ${e.extends===void 0?"":`${e.extends.interface} & `}$Props${S};
|
|
178
|
+
`;else v=`
|
|
179
|
+
export type ${g}${_} = ${e.extends===void 0?"":`${e.extends.interface} & `} {
|
|
180
|
+
${d}
|
|
181
181
|
};
|
|
182
|
-
`;return{props_name
|
|
183
|
-
`:""}${
|
|
184
|
-
`);return
|
|
185
|
-
${
|
|
186
|
-
}`}var
|
|
187
|
-
`;return`${
|
|
188
|
-
`}).join("");return
|
|
189
|
-
${
|
|
182
|
+
`;return{props_name:g,prop_def:v}}function kh(e){if(e.slots.length===0)return Es;let t=e.slots.map(({name:n,slot_props:i,...s})=>{let o=s.default||n===null?"default":Jt(n??""),a=Xt(s.description,s.tags,s.deprecated);return`${a?`${a}
|
|
183
|
+
`:""}${Jt(o)}: ${Gn(i)};`}).join(`
|
|
184
|
+
`);return e.slots.length===1?`{${t}}`:`{
|
|
185
|
+
${t}
|
|
186
|
+
}`}var Ph=()=>"WindowEventMap",Ah=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 Ts(e=nt){if(dh.test(e))return e;return`CustomEvent<${e}>`}function Ih(e){return Ah.has(e)}function Hl(e){switch(e.type){case"dispatched":return Ts(e.detail);case"forwarded":{let t=e.element,i=!(t&&hh.test(t))||Ih(e.name),s=e.detail!==void 0&&e.detail!=="undefined"&&!(e.detail==="null"&&i),o=e.detail==="null"&&!i;if(s||o)return Ts(e.detail);else if(i)return`${Ph()}["${e.name}"]`;else return Ts()}default:return e}}function Nh(e){if(e.events.length===0)return ch;let t=e.events.map((n)=>{let i="",s=Xt(n.description,n.tags,n.deprecated);if(s)i=`${s}
|
|
187
|
+
`;return`${i}${Jt(n.name)}: ${Hl(n)};
|
|
188
|
+
`}).join("");return e.events.length===1?`{${t}}`:`{
|
|
189
|
+
${t}}`}function Dh(e,t){return e.events.map((n)=>{let i=`on${n.name}`;if(t.has(i))return;let s="",o=Xt(n.description,n.tags,n.deprecated);if(o)s=`${o}
|
|
190
190
|
`;return`
|
|
191
|
-
${
|
|
192
|
-
${
|
|
193
|
-
${
|
|
194
|
-
`)}function
|
|
195
|
-
};`}}function
|
|
196
|
-
${
|
|
197
|
-
${
|
|
198
|
-
${
|
|
191
|
+
${s}${Jt(i)}?: (event: ${Hl(n)}) => void;`}).filter((n)=>n!==void 0)}function Lh(e){let t=e.type==="() => any";if(e.type&&$l.test(e.type)&&!t)return e.type;else if(e.params&&e.params.length>0){let i=e.params.map((o)=>{let a=o.optional?"?":"";return`${o.name}${a}: ${o.type}`}).join(", "),s=e.returnType||nt;return`(${i}) => ${s}`}else if(e.returnType)return`() => ${e.returnType}`;else return e.type||nt}function Ul(e){return e.props.filter((t)=>t.isFunctionDeclaration||t.kind==="const").map((t)=>{let n=ks(t.description,t.deprecated,t.tags),i=Lh(t);return`
|
|
192
|
+
${Ps(n)}
|
|
193
|
+
${t.name}: ${i};`}).join(`
|
|
194
|
+
`)}function Rh(e){let t=`${e.moduleName}Exports`,n=Ul({props:e.props});if(n.trim()==="")return{exports_name:t,exports_ref:t,exports_def:`export type ${t} = ${Es};`};let{declSuffix:i,refSuffix:s}=Ch(e.generics,n);return{exports_name:t,exports_ref:`${t}${s}`,exports_def:`export type ${t}${i} = {${n}
|
|
195
|
+
};`}}function Mh(e){let t=e.props.filter((n)=>n.bindable===!0||n.binding==="writable").map((n)=>`"${n.name}"`);return t.length===0?Le:t.join(" | ")}function Oh(e){let t=e.moduleName==="default"?"$$Component":e.moduleName,n=e.bindings===Le?'""':e.bindings;return`declare const ${t}: Component<
|
|
196
|
+
${e.propsRef},
|
|
197
|
+
${e.exportsRef},
|
|
198
|
+
${n}
|
|
199
199
|
>;
|
|
200
|
-
export default ${
|
|
201
|
-
new ${
|
|
202
|
-
options: ComponentConstructorOptions<${
|
|
203
|
-
): SvelteComponent<${
|
|
204
|
-
${
|
|
200
|
+
export default ${t};`}function $h(e){let t=e.moduleName==="default"?"$$Component":e.moduleName,n=`${t}Component`,i=e.bindings===Le?'""':e.bindings;return`interface ${n} {
|
|
201
|
+
new ${e.generic}(
|
|
202
|
+
options: ComponentConstructorOptions<${e.propsRef}>
|
|
203
|
+
): SvelteComponent<${e.propsRef}> & ${e.exportsRef};
|
|
204
|
+
${e.generic}(
|
|
205
205
|
this: void,
|
|
206
206
|
internals: ComponentInternals,
|
|
207
|
-
props: ${
|
|
207
|
+
props: ${e.propsRef}
|
|
208
208
|
): {
|
|
209
209
|
$on?(type: string, callback: (e: any) => void): () => void;
|
|
210
|
-
$set?(props: Partial<${
|
|
211
|
-
} & ${
|
|
210
|
+
$set?(props: Partial<${e.propsRef}>): void;
|
|
211
|
+
} & ${e.exportsRef};
|
|
212
212
|
element?: typeof HTMLElement;
|
|
213
|
-
z_$$bindings?: ${
|
|
213
|
+
z_$$bindings?: ${i};
|
|
214
214
|
}
|
|
215
|
-
declare const ${
|
|
216
|
-
export default ${
|
|
217
|
-
`).map((
|
|
215
|
+
declare const ${t}: ${n};
|
|
216
|
+
export default ${t};`}function Bh(e){if(e.extends===void 0)return"";return`import type { ${e.extends.interface} } from ${e.extends.import};`}function Fh(e){if(!e.componentComment)return"";if(!fh.test(e.componentComment))return Hn(e.componentComment.trim());return`/*${e.componentComment.split(`
|
|
217
|
+
`).map((t)=>`* ${t}`).join(`
|
|
218
218
|
`)}
|
|
219
|
-
*/`}function
|
|
220
|
-
`;else if(
|
|
221
|
-
`;else
|
|
222
|
-
${
|
|
223
|
-
${
|
|
224
|
-
`)}var
|
|
225
|
-
`))){let
|
|
226
|
-
${
|
|
227
|
-
${
|
|
228
|
-
${
|
|
219
|
+
*/`}function Vh(e){return e.moduleExports.map((t)=>{let n=ks(t.description,t.deprecated,t.tags),i,s=t.type&&$l.test(t.type),o=t.type==="() => any";if(t.kind==="const"&&!s)i=`export declare const ${t.name}: ${t.type||nt};
|
|
220
|
+
`;else if(t.params&&t.params.length>0){let c=t.params.map((f)=>{let d=f.optional?"?":"";return`${f.name}${d}: ${f.type}`}).join(", "),p=t.returnType||nt;i=`export declare function ${t.name}(${c}): ${p};`}else if(t.returnType)i=`export declare function ${t.name}(): ${t.returnType};`;else if(s&&t.type&&!o){let[a,c,...p]=t.type.split("=>"),f=p.map((d)=>` => ${d.trim()}`).join("");i=`export declare function ${t.name}${a.trimEnd()}: ${c.trim()}${f};`}else if(s&&t.type){let[a,c,...p]=t.type.split("=>"),f=p.map((d)=>` => ${d.trim()}`).join("");i=`export declare function ${t.name}${a.trimEnd()}: ${c.trim()}${f};`}else if(t.kind==="const")i=`export declare const ${t.name}: ${t.type||nt};
|
|
221
|
+
`;else i=`export type ${t.name} = ${t.type||nt};`;return`
|
|
222
|
+
${Ps(n)}
|
|
223
|
+
${i}`}).join(`
|
|
224
|
+
`)}var jh=120;function qh(e){let n=`export default class ${e.moduleName==="default"?"":e.moduleName}${e.generic} extends SvelteComponentTyped<`,i=[e.genericProps,e.events,e.slots];if(e.accessors.trim()===""&&i.every((s)=>!s.includes(`
|
|
225
|
+
`))){let s=`${n}${i.join(", ")}> {}`;if(s.length<=jh)return s}return`${n}
|
|
226
|
+
${e.genericProps},
|
|
227
|
+
${e.events},
|
|
228
|
+
${e.slots}
|
|
229
229
|
> {
|
|
230
|
-
${
|
|
231
|
-
}`}function
|
|
232
|
-
`),
|
|
230
|
+
${e.accessors}
|
|
231
|
+
}`}function Hh(e,t){let n=Zn(e),{moduleName:i,typedefs:s,generics:o,props:a,moduleExports:c,slots:p,events:f,rest_props:d,extends:g,componentComment:v,contexts:_,syntaxMode:S}=e,k=t?.format==="component",E=o!==null,{props_name:I,prop_def:V}=wh({moduleName:i,props:a,rest_props:d,extends:g,generics:o,slots:p,canonicalPropNames:new Set(n?.canonicalPropNames??[]),canonicalPropsType:n?.canonicalPropsType,events:k&&S==="legacy"?f:void 0}),R=o?`<${o[1]}>`:"",J=o?`${I}<${o[0]}>`:I,B=Vh({moduleExports:c}),Z=Wn({typedefs:s}),Y=jl({contexts:_,generics:o}),r=(n?.typeImportStatements??[]).join(`
|
|
232
|
+
`),l=(n?.localTypeDeclarations??[]).join(`
|
|
233
233
|
|
|
234
|
-
`),{exports_ref:
|
|
235
|
-
`),
|
|
236
|
-
`)].map((
|
|
234
|
+
`),{exports_ref:u,exports_def:m}=k?Rh({props:a,moduleName:i,generics:o}):{exports_ref:Le,exports_def:Le},y=k?Mh({props:a}):Le,x=!_h.test(r)&&(bt.test(V)||bt.test(B)||bt.test(Z)||bt.test(Y)||bt.test(l)||bt.test(m)),b=d?.type==="Element"&&(d.name!=="svelte:element"||d.name==="svelte:element"&&d.thisValue),w=d?.type==="Element"&&d.name==="svelte:element"&&!d.thisValue,T=[k?E?`import type { SvelteComponent, ComponentConstructorOptions, ComponentInternals${x?", Snippet":""} } from "svelte";`:`import type { Component${x?", Snippet":""} } from "svelte";`:`import { SvelteComponentTyped${x?", type Snippet":""} } from "svelte";`,b?'import type { SvelteHTMLElements } from "svelte/elements";':"",w?'import type { HTMLAttributes } from "svelte/elements";':"",r,Bh({extends:g})].filter(Boolean).join(`
|
|
235
|
+
`),A=k?E?$h({moduleName:i,generic:R,propsRef:J,exportsRef:u,bindings:y}):Oh({moduleName:i,propsRef:J,exportsRef:u,bindings:y}):qh({moduleName:i,generic:R,genericProps:J,events:Nh({events:f}),slots:kh({slots:p}),accessors:Ul({props:a})}),P=[B,Z,l,Y,V,m,[Fh({componentComment:v}),A].filter(Boolean).join(`
|
|
236
|
+
`)].map((M)=>M.trim()).filter(Boolean).join(`
|
|
237
237
|
|
|
238
|
-
`);return
|
|
238
|
+
`);return Ll([T,P].filter(Boolean).join(`
|
|
239
239
|
|
|
240
|
-
`))}var
|
|
240
|
+
`))}var As=/`/g,zn=/\s+/g,Be="--",Gl=`| Prop name | Required | Kind | Reactive | Binding | Type | Default value | Description |
|
|
241
241
|
| :- | :- | :- | :- | :- | :- | :- | :- |
|
|
242
|
-
`,
|
|
242
|
+
`,Wl=`| Slot name | Default | Props | Fallback | Description |
|
|
243
243
|
| :- | :- | :- | :- | :- |
|
|
244
|
-
`,
|
|
244
|
+
`,zl=`| Event name | Type | Detail | Description |
|
|
245
245
|
| :- | :- | :- | :- |
|
|
246
|
-
`,
|
|
246
|
+
`,Kl=`| Name | Kind | Type | Description |
|
|
247
247
|
| :- | :- | :- | :- |
|
|
248
|
-
`,
|
|
249
|
-
`).replace(
|
|
250
|
-
`)}
|
|
251
|
-
`),
|
|
252
|
-
`);else
|
|
253
|
-
${
|
|
248
|
+
`,Kn=/\|/g,Uh=/</g,Gh=/>/g,Tt=/\n/g;function dt(e){if(e===void 0)return Be;return`<code>${e.replace(Kn,"|")}</code>`}function Yt(e){return e.replace(Uh,"<").replace(Gh,">")}function Xl(e){if(e===void 0)return Be;return`<code>${e.replace(As,"\\`").replace(Kn,"|")}</code>`}function Xn(e,t){if(t===void 0)return e;let n=typeof t==="string"&&t.trim().length>0?`: ${Yt(t).replace(Tt," ").replace(Kn,"|")}`:"";return`<s>${e}</s><br />**Deprecated**${n}`}function Jn(e){if(e===void 0||e.trim().length===0)return Be;return Yt(e).replace(Tt,"<br />")}function Jl(e){if(e===void 0||e==="{}")return Be;return dt(Gn(e).replace(Tt," "))}function Yl(e){if(e===void 0)return Be;return dt(Yt(e).replace(Tt,"<br />"))}function Ql(e,t){let n=[];if(e!==void 0&&e.trim().length>0)n.push(Yt(e));for(let{name:i,body:s}of t??[]){let o=s?.trim();n.push(o?`@${i} ${Yt(o)}`:`@${i}`)}if(n.length===0)return Be;return n.join(`
|
|
249
|
+
`).replace(Kn,"|").replace(Tt,"<br />")}function Zl(e){if(e===void 0)return Be;return dt(e.replace(Tt," "))}function Ns(e,t,n){if(e.append("h1","Component Index"),e.append("h2","Components").tableOfContents(),e.append("divider"),n&&n.length>0)Wh(e,n);let i=Kt(t);for(let s of i.components)zh(e,s)}function Wh(e,t){e.append("h2","Exports"),e.append("raw",Kl);for(let n of t){let i=(n.type??n.value)?.replace(zn," ").trim();e.append("raw",`| ${n.name} | ${`<code>${n.kind}</code>`} | ${dt(i)} | ${Jn(n.description)} |
|
|
250
|
+
`)}e.append("raw",`
|
|
251
|
+
`),e.append("divider")}function Is(e,t,n,i){if(t.length>0)n(),e.append("raw",`
|
|
252
|
+
`);else e.append("p",i??"None.")}function zh(e,t){if(e.append("h2",`\`${t.moduleName}\``),t.generics)e.append("p",`**Type parameters:** ${dt(`<${t.generics[1]}>`)}`);if(t.typedefs.length>0)e.append("h3","Types").append("raw",`\`\`\`ts
|
|
253
|
+
${Wn({typedefs:t.typedefs})}
|
|
254
254
|
\`\`\`
|
|
255
255
|
|
|
256
|
-
`);
|
|
257
|
-
`)}),
|
|
258
|
-
`)}),
|
|
259
|
-
`)})}var
|
|
256
|
+
`);e.append("h3","Props"),Is(e,t.props,()=>{e.append("raw",Gl);let n=[...t.props].sort((i)=>{if(i.reactive)return-1;if(i.constant)return 1;return 0});for(let i of n)e.append("raw",`| ${Xn(i.name,i.deprecated)} | ${i.isRequired?"Yes":"No"} | ${`<code>${i.kind}</code>`} | ${i.reactive?"Yes":"No"} | ${i.binding??"--"} | ${dt(i.type)} | ${Xl(i.value)} | ${Jn(i.description)} |
|
|
257
|
+
`)}),e.append("h3","Slots"),Is(e,t.slots,()=>{e.append("raw",Wl);for(let n of t.slots)e.append("raw",`| ${Xn(n.default?Be:n.name??Be,n.deprecated)} | ${n.default?"Yes":"No"} | ${Jl(n.slot_props)} | ${Yl(n.fallback)} | ${Ql(n.description,n.tags)} |
|
|
258
|
+
`)}),e.append("h3","Events"),Is(e,t.events,()=>{e.append("raw",zl);for(let n of t.events)e.append("raw",`| ${Xn(n.name,n.deprecated)} | ${n.type} | ${n.type==="dispatched"?Zl(n.detail):Be} | ${Jn(n.description)} |
|
|
259
|
+
`)})}var Kh=new Set(["string","number","boolean"]);function Xh(e){return e.map((t)=>({kind:"field",name:t.name,...t.type?{type:{text:t.type}}:{},...t.value===void 0?{}:{default:t.value},...t.description?{description:t.description}:{},...t.deprecated===void 0?{}:{deprecated:t.deprecated}}))}function Jh(e){let t=new Map;for(let i of e){if(!i.type||!Kh.has(i.type.trim()))continue;let s=i.name.toLowerCase(),o=t.get(s);if(o)o.push(i);else t.set(s,[i])}let n=[];for(let[i,s]of t){if(s.length!==1)continue;let o=s[0];n.push({name:i,fieldName:o.name,type:{text:o.type},...o.value===void 0?{}:{default:o.value},...o.description?{description:o.description}:{}})}return n}function Yh(e){return e.filter((t)=>t.type==="dispatched").map((t)=>({name:t.name,type:{text:`CustomEvent<${t.detail??"unknown"}>`},...t.description?{description:t.description}:{},...t.deprecated===void 0?{}:{deprecated:t.deprecated}}))}function Qh(e){return e.map((t)=>({name:t.default?"":t.name??"",...t.description?{description:t.description}:{},...t.deprecated===void 0?{}:{deprecated:t.deprecated}}))}function Zh(e){let t={kind:"class",name:e.moduleName,...e.componentComment?{description:e.componentComment}:{},members:Xh(e.props),attributes:Jh(e.props),events:Yh(e.events),slots:Qh(e.slots)};if(e.customElementTag)t.tagName=e.customElementTag,t.customElement=!0;return t}function ef(e,t){let n=[{kind:"js",name:e.moduleName,declaration:{name:e.moduleName,module:t}}];if(e.customElementTag)n.push({kind:"custom-element-definition",name:e.customElementTag,declaration:{name:e.moduleName,module:t}});return n}function tf(e,t={}){let n=Kt(e),i=t.resolveModulePath??((o)=>o.filePath);return{schemaVersion:"1.0.0",modules:n.components.map((o)=>{let a=i(o);return{kind:"javascript-module",path:a,declarations:[Zh(o)],exports:ef(o,a)}})}}class Ds{sourceParts=[];hasToC=!1;toc=[];get source(){return this.sourceParts.join("")}appendLineBreaks(){return this.sourceParts.push(`
|
|
260
260
|
|
|
261
|
-
`),this}append(
|
|
262
|
-
`))}}class
|
|
261
|
+
`),this}append(e,t){switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":{let n=Number(e.slice(-1));if(this.sourceParts.push(`${"#".repeat(n)} ${t}`),this.hasToC&&e==="h2")this.toc.push({indent:0,raw:t??""});break}case"quote":this.sourceParts.push(`> ${t}`);break;case"p":this.sourceParts.push(t??"");break;case"divider":this.sourceParts.push("---");break;case"raw":this.sourceParts.push(t??"");break}if(e!=="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:t,raw:n})=>`${" ".repeat(t)}- [${n}](#${n.toLowerCase().replace(As,"").replace(zn,"-")})`).join(`
|
|
262
|
+
`))}}class Ls extends Ds{onAppend;constructor(e){super();this.onAppend=e.onAppend}append(e,t){return super.append(e,t),this.onAppend?.call(this,e,this),this}}function nf(e,t){let n=new Ls({onAppend:(i,s)=>{t?.onAppend?.call(null,i,s,e)}});return Ns(n,e),n.end()}export{Ls as BrowserWriterMarkdown,Pl as COMPONENT_API_SCHEMA_VERSION,he as ComponentParser,sc as asNormalizedPath,Kt as buildComponentApiDocument,tf as buildCustomElementsManifest,Gn as formatTsProps,jl as getContextDefs,Wn as getTypeDefs,Ns as renderComponentsToMarkdown,nf as writeMarkdownCore,Hh as writeTsDefinition};
|