@skaldapp/runtime 3.4.3 → 3.4.5
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/dist/.vite/manifest.json +1 -1
- package/dist/assets/{esprima-fc0NzynX.js → esprima-txU12DEc.js} +1 -1
- package/dist/assets/index-BPxQ1AFa.js +125 -0
- package/dist/assets/{sucrase-DLRMxfMW.js → sucrase-BI4mSryY.js} +2 -2
- package/dist/assets/{unocss-DGOJSLEi.js → unocss-CuJ2F1xY.js} +1 -1
- package/dist/assets/{vue-BaFkbIjh.js → vue-CVG2qTIz.js} +9 -9
- package/dist/index.html +5 -5
- package/package.json +10 -10
- package/dist/assets/index-C2wmQBcI.js +0 -125
|
@@ -6,7 +6,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
6
6
|
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):it(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let t=nt[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Me(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:pe(this.state.type)?e.name=ye(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(T.brace),this.next(),e=this.jsxParseExpressionContainer(e,T.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(lt.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(lt.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(T.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(T.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(T.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){contents:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break contents}n.push(this.jsxParseElementAt(e));break;case 142:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(T.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,T.j_expr));break}default:this.unexpected()}ut(r)&&!ut(i)&&i!==null?this.raise(lt.MissingClosingTagFragment,i):(!ut(r)&&ut(i)||!ut(r)&&!ut(i)&&dt(i.name)!==dt(r.name))&&this.raise(lt.MissingClosingTagElement,i,{openingTagName:dt(r.name)})}if(ut(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(lt.UnwrappedAdjacentJSXElements,this.state.startLoc);return ut(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===T.j_expr){this.jsxReadToken();return}if(t===T.j_oTag||t===T.j_cTag){if(je(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(144);return}if((e===34||e===39)&&t===T.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===143)t.splice(-2,2,T.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)t.push(T.j_oTag);else if(n===144){let n=t[t.length-1];n===T.j_oTag&&e===56||n===T.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===T.j_expr):(this.setContext(T.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=P(n)}};class pt extends Ge{constructor(...e){super(...e),this.tsNames=new Map}}class mt extends Ke{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new pt(e)}enter(e){e===1024&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===1024&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(_.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}}class ht{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function gt(e,t){return(e?2:0)|!!t}class _t{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}}function vt(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function yt(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function bt(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function xt(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?bt(e,n.comments):vt(r,n.comments)}class St extends _t{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&vt(e.leadingNode,t),e.trailingNode!==null&&yt(e.trailingNode,t);else{let n=e.containingNode,r=e.start;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:xt(n,n.properties,e);break;case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:xt(n,n.arguments,e);break;case`ImportExpression`:xt(n,[n.source,n.options??null],e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:case`TSTypeParameterDeclaration`:xt(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:xt(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:xt(n,n.specifiers,e);break;case`TSEnumDeclaration`:xt(n,n.members,e);break;case`TSEnumBody`:xt(n,n.members,e);break;case`TSInterfaceBody`:xt(n,n.body,e);break;default:if(n.type===`RecordExpression`){xt(n,n.properties,e);break}if(n.type===`TupleExpression`){xt(n,n.elements,e);break}bt(n,t)}else bt(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}}class Ct{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[T.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:n,startIndex:r,startLine:i,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:n===`module`,this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new t(i,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new t(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Ct;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var wt=function(e){return e>=48&&e<=57};let Tt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Et={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Dt(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(Ot(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=kt(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
|
|
7
7
|
`,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function Ot(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function kt(e,t,n,r,i,a){let o=!i;t++;let s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s(`
|
|
8
8
|
`);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=At(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=Mt(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(` `);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function At(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=jt(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function jt(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?Tt.hex:Tt.decBinOct,f=i===16?Et.hex:i===10?Et.dec:i===8?Et.oct:Et.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(!s){if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}else if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:wt(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}function Mt(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=At(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=At(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}function Nt(e,n,r){return new t(r,e-n,e)}let Pt=new Set([103,109,115,105,121,117,100,118]);class Ft{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new n(e.startLoc,e.endLoc)}}class It extends St{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>this.optionFlags&2048?(this.raise(_.InvalidDigit,Nt(e,t,n),{radix:r}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,Nt(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(_.UnterminatedString,Nt(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(_.UnterminatedTemplate,Nt(e,t,n))}}),this.state=new Ct,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Ft(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return ot.lastIndex=e,ot.test(this.input)?ot.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return st.lastIndex=e,st.test(this.input)?st.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,i=this.input.indexOf(e,r+2);if(i===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,rt.lastIndex=r+2;rt.test(this.input)&&rt.lastIndex<=i;)++this.state.curLine,this.state.lineStart=rt.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(r+2,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i+e.length),loc:new n(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!it(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new n(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;loop:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),t?.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),t?.push(e));break}default:break loop}break;default:if(ct(n))++this.state.pos;else if(n===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),t?.push(e))}else break loop}else if(n===60&&!this.inModule&&this.optionFlags&8192){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),t?.push(e))}else break loop}else break loop}}if(t?.length>0){let n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else je(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!it(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`^^`}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin([`pipelineOperator`,{proposal:`hack`,topicToken:`@@`}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else ++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else ++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin(`functionBind`)&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(je(e)){this.readWord(e);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,i,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(_.UnterminatedRegExp,r(e,1));let t=this.input.charCodeAt(a);if(it(t))throw this.raise(_.UnterminatedRegExp,r(e,1));if(n)n=!1;else{if(t===91)i=!0;else if(t===93&&i)i=!1;else if(t===47&&!i)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=()=>r(e,a+2-t);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(Pt.has(e))e===118?s.includes(`u`)&&this.raise(_.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(_.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(_.DuplicateRegExpFlags,c());else if(Me(e)||e===92)this.raise(_.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(138,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=jt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),i=!1;this.state.pos+=2;let a=this.readInt(e);a??this.raise(_.InvalidDigit,r(n,2),{radix:e});let o=this.input.charCodeAt(this.state.pos);if(o===110)++this.state.pos,i=!0;else if(o===109)throw this.raise(_.InvalidDecimal,n);if(je(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(i){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,``);this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),i=!1,a=!1,o=!1,s=!1;!e&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let c=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(c){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(_.ZeroDigitNumericSeparator,r(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!s&&(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!s&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,n),i=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((i||c)&&this.raise(_.InvalidBigIntLiteral,n),++this.state.pos,a=!0),l===109){this.expectPlugin(`decimal`,this.state.curPosition()),(o||c)&&this.raise(_.InvalidDecimal,n),++this.state.pos;var u=!0}if(je(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(136,d);return}if(u){this.finishToken(137,d);return}let f=s?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:n}=Mt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=Dt(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:n,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=Dt(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new t(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+n+"`"):(this.state.pos++,this.finishToken(25,r?null:e+n+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(Me(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?je:Me;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(_.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=ee.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,ye(n))}checkKeywordEscapes(){let{type:e}=this.state;pe(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ye(e)})}raise(e,n,r={}){let i=e(n instanceof t?n:n.loc.start,r);if(!(this.optionFlags&2048))throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,n,r={}){let i=n instanceof t?n:n.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,n,r)}updateContext(e){}unexpected(e,t){throw this.raise(_.UnexpectedToken,e??this.state.startLoc,{expected:t?ye(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(_.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,Nt(t,n,r))}}}class Lt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Rt{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Lt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(_.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(_.InvalidPrivateFieldResolution,t,{identifierName:e})}}class zt{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class Bt extends zt{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class Vt{constructor(e){this.parser=void 0,this.stack=[new zt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(_.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}}function Ht(){return new zt(3)}function Ut(){return new Bt(1)}function Wt(){return new Bt(2)}function Gt(){return new zt}class Kt extends It{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;i??(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let n=this.input.charCodeAt(e+t.length);return!(Me(n)||(n&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return at(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return at(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a,voidPatternLoc:o}=e,s=!!n||!!r||!!a||!!i||!!o;if(!t)return s;n!=null&&this.raise(_.InvalidCoverInitializedName,n),r!=null&&this.raise(_.DuplicateProto,r),i!=null&&this.raise(_.UnexpectedPrivateField,i),a!=null&&this.unexpected(a),o!=null&&this.raise(_.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return le(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);let o=this.prodParam;this.prodParam=new ht;let s=this.classScope;this.classScope=new Rt(this);let c=this.expressionScope;return this.expressionScope=new Vt(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||this.optionFlags&1)&&(e|=2),this.optionFlags&32&&(e|=1);let t=!this.inModule&&this.options.sourceType===`commonjs`;(t||this.optionFlags&2)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;this.optionFlags&4&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}}class qt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Jt{constructor(e,t,r){this.type=``,this.start=t,this.end=0,this.loc=new n(r),e?.optionFlags&128&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}}let Yt=Jt.prototype;Yt.__clone=function(){let e=new Jt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};class Xt extends Kt{startNode(){let e=this.state.startLoc;return new Jt(this,e.index,e)}startNodeAt(e){return new Jt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.optionFlags&128&&(e.range[1]=n.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:n,end:r,loc:i,range:a,name:o}=e,s=Object.create(Yt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.name=o,e.extra&&(s.extra=e.extra),s}cloneStringLiteral(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e,s=Object.create(Yt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,s.extra=o,s.value=e.value,s}}let Zt=e=>e.type===`ParenthesizedExpression`?Zt(e.expression):e;class Qt extends Xt{toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=Zt(e),t?r.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,e):r.type!==`CallExpression`&&r.type!==`MemberExpression`&&!this.isOptionalMemberExpression(r)&&this.raise(_.InvalidParenthesizedAssignment,e):this.raise(_.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:break;case`ObjectExpression`:this.castNodeTo(e,`ObjectPattern`);for(let n=0,r=e.properties.length,a=r-1;n<r;n++){var i;let r=e.properties[n],o=n===a;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(i=e.extra)!=null&&i.trailingCommaLoc&&this.raise(_.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:this.castNodeTo(e,`ArrayPattern`),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(_.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,`AssignmentPattern`),delete e.operator,e.left.type===`VoidPattern`&&this.raise(_.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?_.PatternHasAccessor:_.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){this.castNodeTo(e,`RestElement`);let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(_.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];a&&(this.toAssignableListItem(e,i,n),a.type===`RestElement`&&(i<r?this.raise(_.RestTrailingComma,a):t&&this.raise(_.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){let r=e[t];if(r.type===`SpreadElement`){this.castNodeTo(r,`RestElement`);let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(r,n)}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:case`VoidPattern`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return t.type===`VoidPattern`&&this.raise(_.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin(`flow`)||n&2)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(n&2)for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin(`discardBinding`)&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(_.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===139?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){let n=this.parseMaybeDefault();return(this.hasPlugin(`flow`)||e&2)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return t.type===`VoidPattern`&&this.raise(_.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n,r){switch(e){case`AssignmentPattern`:return`left`;case`RestElement`:return`argument`;case`ObjectProperty`:return`value`;case`ParenthesizedExpression`:return`expression`;case`ArrayPattern`:return`elements`;case`ObjectPattern`:return`properties`;case`VoidPattern`:return!0;case`CallExpression`:if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,t,n=64,r=!1,i=!1,a=!1,o=!1){var s;let c=e.type;if(this.isObjectMethod(e))return;let l=this.isOptionalMemberExpression(e);if(l||c===`MemberExpression`){l&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(_.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(_.InvalidPropertyBindingPattern,e);return}if(c===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(_.ParamDupe,e):r.add(t));return}else c===`VoidPattern`&&t.type===`CatchClause`&&this.raise(_.VoidPatternCatchClauseParam,e);let u=Zt(e);o||=u.type===`CallExpression`&&(u.callee.type===`Import`||u.callee.type===`Super`);let d=this.isValidLVal(c,o,!(a||(s=e.extra)!=null&&s.parenthesized)&&t.type===`AssignmentExpression`,n);if(d===!0)return;if(d===!1){let r=n===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let f,p;typeof d==`string`?(f=d,p=c===`ParenthesizedExpression`):[f,p]=d;let m=c===`ArrayPattern`||c===`ObjectPattern`?{type:c}:t,h=e[f];if(Array.isArray(h))for(let e of h)e&&this.checkLVal(e,m,n,r,i,p,!0);else h&&this.checkLVal(h,m,n,r,i,p,o)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?Be(e.name,this.inModule):ze(e.name))&&(t===64?this.raise(_.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(_.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(_.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}}let $t=/in(?:stanceof)?|as|satisfies/y;function en(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function tn(e){if(!e)throw Error(`Assert fail`)}let L=g`typescript`({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.`,AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,AccessorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccessorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:`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:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,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'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",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.`,InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,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.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,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.`,NonClassMethodPropertyHasAbstractModifier:`'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}').`,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.",SetAccessorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccessorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccessorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function nn(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 rn(e){return e===`private`||e===`public`||e===`protected`}function an(e){return e===`in`||e===`out`}var on=e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:L.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:L.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:L.InvalidModifierOnTypeParameter})}getScopeHandler(){return mt}tsIsIdentifier(){return N(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!N(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let r=this.state.value;if(e.includes(r)){if(n&&this.match(106)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=L.InvalidModifierOnTypeMember},i){let a=(e,t,n,r)=>{t===n&&i[r]&&this.raise(L.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(L.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n,i.static);if(!c)break;rn(c)?i.accessibility?this.raise(L.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):an(c)?(i[c]&&this.raise(L.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(L.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return en(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(L.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseImportTypeOptions(){let e=this.startNode();this.expect(5);let t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,`ObjectExpression`)}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){let e=this.state.type;N(e)||e===134?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,`ObjectExpression`)}tsParseEntityName(e){let t;if(e&1&&this.match(78))if(e&2)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,`ThisExpression`)}else t=this.parseIdentifier(!!(e&1));for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(e&1)),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(L.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(L.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),N(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(L.ReadonlyForMethodSignature,e);let n=e;n.kind&&this.match(47)&&this.raise(L.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let r=`parameters`,i=`typeAnnotation`;if(n.kind===`get`)n[r].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(n[r][0])&&this.raise(L.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind===`set`){if(n[r].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let e=n[r][0];this.isThisParam(e)&&this.raise(L.AccessorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(L.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(L.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(L.SetAccessorCannotHaveReturnType,n[i])}else n.kind=`method`;return this.finishNode(n,`TSMethodSignature`)}else{let n=e;t&&(n.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(n.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(n,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,`TSTypeParameter`),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(L.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state,r,i,a,o,s=ce(this.state.type)?this.lookaheadCharCode():null;if(s===58)r=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(s===63){a=!0;let e=this.state.value,t=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=a,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(L.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=a,this.raise(L.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,`TSNamedTupleMember`)}else if(a){let e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,`TSRestType`)}return o}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==135&&t.type!==136&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(N(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:nn(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,`TSArrayType`)}else{let n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,`TSIndexedAccessType`)}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(L.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return _e(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSIntersectionType`,this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType(`TSUnionType`,this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(N(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!N(this.state.type)&&!this.match(78)?!1:(e&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){tn(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`TSConditionalType`)}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual(`new`)}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType(`TSFunctionType`):this.match(77)?this.tsParseFunctionOrConstructorType(`TSConstructorType`):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType(`TSConstructorType`,!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(L.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise(L.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),N(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(L.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInTopLevelContext(e){if(this.curContext()!==T.brace){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else return e()}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseEnumBody(){let e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumBody`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind=`global`,e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind=`module`,e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(L.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(L.InvalidModifierOnUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.parseVarStatement(e,`using`,!0);break;case 96:if(this.isAwaitUsing())return this.raise(L.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,`declare`),e.declare=!0,this.next(),this.parseVarStatement(e,`await using`,!0);break;case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(N(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,r){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||N(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(N(this.state.type))return e.kind=`module`,this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&N(this.state.type))return e.kind=`namespace`,this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&N(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(L.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===T.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return ve(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(e,t){let n=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(L.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();e&2&&this.parseFunctionParamType(s);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(L.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(L.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(L.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(L.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){let r=super.parseArrayLike(e,t,n);return r.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Se(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&s!==93&&s!==120&&ue(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(L.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(o.expression=super.stopParseSubscript(e,r))),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(be(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(L.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(134))return e.importKind=`value`,super.parseImport(e);let t;if(N(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(L.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){let t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual(`class`)}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;if(!e.declare&&(t===`using`||t===`await using`))return this.raiseOverwrite(L.UsingDeclarationInAmbientContext,e,t),i;for(let{id:e,init:n}of i.declarations)n&&(t===`var`||t===`let`||e.typeAnnotation?this.raise(L.InitializerNotAllowedInAmbientContext,n):z(n,this.hasPlugin(`estree`))||this.raise(L.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,n=this.startNode();this.next();let r=e===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return r?(e===125&&(r.declare=!0),r):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),e===125?`declare`:`abstract`),this.semicolon(!1),this.finishNode(n,`ExpressionStatement`))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(this.lookaheadCharCode()===123){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}break}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>rn(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:L.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(L.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(L.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(L.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(L.IndexSignatureHasDeclare,t),t.override&&this.raise(L.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(L.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(L.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(L.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(L.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(L.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=N(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&r.type!==`TSImportEqualsDeclaration`&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(L.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(L.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(L.PrivateElementHasAbstract,e),e.accessibility&&this.raise(L.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(L.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(L.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(L.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&e.value.body==null||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if(e.superClass.type===`TSInstantiationExpression`){let t=e.superClass,n=t.expression;this.takeSurroundingComments(n,n.start,n.end);let r=t.typeParameters;this.takeSurroundingComments(r,r.start,r.end),e.superClass=n,e.superTypeParameters=r}else (this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i;let a,o,s;if(this.hasPlugin(`jsx`)&&(this.match(143)||this.match(47))){if(a=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!o.error)return o.node;let{context:n}=this.state,r=n[n.length-1];(r===T.j_oTag||r===T.j_expr)&&n.pop()}if(!((n=o)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,l=this.tryParse(n=>{var r;c=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return(i.type!==`ArrowFunctionExpression`||(r=i.extra)!=null&&r.parenthesized)&&n(),c?.params.length!==0&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!l.error&&!l.aborted)return c&&this.reportReservedArrowTypeParam(c),l.node;if(!o&&(tn(!this.hasPlugin(`jsx`)),s=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!s.error))return s.node;if((r=o)!=null&&r.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,c&&this.reportReservedArrowTypeParam(c),l.node;if((i=s)!=null&&i.node)return this.state=s.failState,s.node;throw o?.error||l.error||s?.error}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(L.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(L.UnexpectedTypeCastInParameter,e):this.raise(L.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,r){switch(e){case`TSTypeCastExpression`:return!0;case`TSParameterProperty`:return`parameter`;case`TSNonNullExpression`:return`expression`;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:return(r!==64||!n)&&[`expression`,!0];default:return super.isValidLVal(e,t,n,r)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=n,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(L.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,n){let r=e[t];r.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(L.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if((s.abstract||s.type===`TSAbstractMethodDefinition`)&&(this.hasPlugin(`estree`)?s.value:s).body){let{key:e}=s;this.raise(L.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption(`typescript`,`dts`)}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();ce(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else ce(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else ce(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?L.TypeModifierIsUsedInTypeImports:L.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case`ExpressionStatement`:e.directive??=void 0;return;case`RestElement`:e.value=void 0;case`Identifier`:case`ArrayPattern`:case`AssignmentPattern`:case`ObjectPattern`:e.decorators??=[],e.optional??=!1,e.typeAnnotation??=void 0;return;case`TSParameterProperty`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.readonly??=!1,e.static??=!1;return;case`TSEmptyBodyFunctionExpression`:e.body=null;case`TSDeclareFunction`:case`FunctionDeclaration`:case`FunctionExpression`:case`ClassMethod`:case`ClassPrivateMethod`:e.declare??=!1,e.returnType??=void 0,e.typeParameters??=void 0;return;case`Property`:e.optional??=!1;return;case`TSMethodSignature`:case`TSPropertySignature`:e.optional??=!1;case`TSIndexSignature`:e.accessibility??=void 0,e.readonly??=!1,e.static??=!1;return;case`TSAbstractPropertyDefinition`:case`PropertyDefinition`:case`TSAbstractAccessorProperty`:case`AccessorProperty`:e.declare??=!1,e.definite??=!1,e.readonly??=!1,e.typeAnnotation??=void 0;case`TSAbstractMethodDefinition`:case`MethodDefinition`:e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.optional??=!1;return;case`ClassExpression`:e.id??=null;case`ClassDeclaration`:e.abstract??=!1,e.declare??=!1,e.decorators??=[],e.implements??=[],e.superTypeArguments??=void 0,e.typeParameters??=void 0;return;case`TSTypeAliasDeclaration`:case`VariableDeclaration`:e.declare??=!1;return;case`VariableDeclarator`:e.definite??=!1;return;case`TSEnumDeclaration`:e.const??=!1,e.declare??=!1;return;case`TSEnumMember`:e.computed??=!1;return;case`TSImportType`:e.qualifier??=null,e.options??=null;return;case`TSInterfaceDeclaration`:e.declare??=!1,e.extends??=[];return;case`TSMappedType`:e.optional??=!1,e.readonly??=void 0;return;case`TSModuleDeclaration`:e.declare??=!1,e.global??=e.kind===`global`;return;case`TSTypeParameter`:e.const??=!1,e.in??=!1,e.out??=!1;return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(je(e)){if($t.lastIndex=t,$t.test(this.input)){let e=this.codePointAtPos($t.lastIndex);if(!Me(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||t===34||t===39}};function R(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:B(e.object)}function z(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(sn(e,t)||cn(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||R(e))}function sn(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}function cn(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&sn(r,t))return!0}return!1}function B(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:B(e.object)}let ln=g`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`});var un=e=>class extends e{parsePlaceholder(e){if(this.match(133)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return t.type===`Placeholder`&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return e.type===`Placeholder`?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n,r){return e===`Placeholder`||super.isValidLVal(e,t,n,r)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(e,t){e.label?.type!==`Placeholder`&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(133)||this.match(5))e.id=a;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);else throw this.raise(ln.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(ye(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(ln.UnexpectedSpace,this.state.lastTokEndLoc)}},dn=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),N(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,`V8IntrinsicIdentifier`),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};let fn=[`minimal`,`fsharp`,`hack`,`smart`],pn=[`^^`,`@@`,`^`,`%`,`#`];function mn(e){if(e.has(`decorators`)){if(e.has(`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=e.get(`decorators`).decoratorsBeforeExport;if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=e.get(`decorators`).allowCallParenthesized;if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(e.has(`flow`)&&e.has(`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(e.has(`placeholders`)&&e.has(`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(e.has(`pipelineOperator`)){let t=e.get(`pipelineOperator`).proposal;if(!fn.includes(t)){let e=fn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(t===`hack`){if(e.has(`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(e.has(`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=e.get(`pipelineOperator`).topicToken;if(!pn.includes(t)){let e=pn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&e.get(`recordAndTuple`)?.syntaxType===`hash`)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}else if(t===`smart`&&e.get(`recordAndTuple`)?.syntaxType===`hash`)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify([`recordAndTuple`,e.get(`recordAndTuple`)])}\`.`)}if(e.has(`moduleAttributes`)){if(e.has(`deprecatedImportAssert`)||e.has(`importAssertions`))throw Error(`Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.`);if(e.get(`moduleAttributes`).version!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(e.has(`importAssertions`)&&e.has(`deprecatedImportAssert`))throw Error(`Cannot combine importAssertions and deprecatedImportAssert plugins.`);if(e.has(`deprecatedImportAssert`)||e.has(`importAttributes`)&&e.get(`importAttributes`).deprecatedAssertSyntax&&e.set(`deprecatedImportAssert`,{}),e.has(`recordAndTuple`)){let t=e.get(`recordAndTuple`).syntaxType;if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(e.has(`asyncDoExpressions`)&&!e.has(`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(e.has(`optionalChainingAssign`)&&e.get(`optionalChainingAssign`).version!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`);if(e.has(`discardBinding`)&&e.get(`discardBinding`).syntaxType!==`void`)throw Error(`The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.`)}let hn={estree:C,jsx:ft,flow:tt,typescript:on,v8intrinsic:dn,placeholders:un},gn=Object.keys(hn);class _n extends Qt{checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return n;let i=e.key;return(i.type===`Identifier`?i.name:i.value)===`__proto__`?t?(this.raise(_.RecordNoProto,i),!0):(n&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(_.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(_.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(_.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new qt,i=!0);let{type:a}=this.state;(a===10||N(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),de(this.state.type)){let t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),e.voidPatternLoc!=null&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,`AssignmentExpression`),void 0,void 0,void 0,void 0,r===`||=`||r===`&&=`||r===`??=`),t}else i&&this.checkExpressionErrors(e,!0);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?ue(e):ue(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=be(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(me(r)&&(this.prodParam.hasIn||!this.match(58))){let i=be(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=be(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption(`pipelineOperator`,`proposal`)===`smart`)return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,xe(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return d.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(ge(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(_.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(_.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?ue(e):ue(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,this.finishNode(t,`UpdateExpression`)),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;he(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,`UpdateExpression`))}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(Se(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(e,r);r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type===`Super`&&this.raise(_.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(Wt()),a=new qt),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===0||e.arguments.length>2)this.raise(_.ImportCallArity,e);else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(_.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n){let r=[],i=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=a,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&bt(e,t.innerComments),t.callee.trailingComments&&bt(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(_.UnsupportedBind,e)}case 139:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,`%`);case 32:return this.parseTopicReferenceThenEqualsSign(44,`^`);case 37:case 38:return this.parseTopicReference(`hack`);case 44:case 54:case 27:{let e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{let e=this.input.codePointAt(this.nextTokenStart());throw je(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected()}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(r===2||r===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(r===6||r===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(N(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:t}=this.state;if(t===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(N(t))return e&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(t===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return n===`hack`?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,`TopicReference`)):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,`PipelinePrimaryTopicReference`));throw this.raise(_.PipeTopicUnconfiguredToken,t,{token:ye(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:ye(n)}]);case`smart`:return n===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(gt(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(_.SuperNotAllowed,e):this.scope.allowSuper||this.optionFlags&16||this.raise(_.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(r(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(_.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),`import`,this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(_.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,`meta`)}}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(Ut());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new qt,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return this.scope.allowNewTarget||this.raise(_.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(_.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:i,value:a}=this.state,o=t+1,s=this.startNodeAt(r(n,1));a===null&&(e||this.raise(_.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=i+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
|
|
9
|
-
`),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,r(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),a=this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(_.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(_.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,`ObjectProperty`)}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(ce(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(_.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(gt(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n){t&&this.expectPlugin(`recordAndTuple`);let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=r,this.finishNode(i,t?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=gt(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(Gt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(_.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(12))t||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),i=null;else if(this.match(21)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),r||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,`ArgumentPlaceholder`)}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,`Identifier`,n)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;ce(r)?t=this.state.value:this.unexpected();let i=se(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&We(e)){if(n&&Ve(e)){this.raise(_.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Be:Re:Le)(e,this.inModule)){this.raise(_.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Se(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(_.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(_.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parseVoidPattern(e){this.expectPlugin(`discardBinding`);let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,`VoidPattern`)}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}let vn={kind:1},yn={kind:2},bn=/[\uD800-\uDFFF]/u,xn=/in(?:stanceof)?/y;function Sn(e,t,n){for(let i=0;i<e.length;i++){let a=e[i],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=r(t.start,1);e.splice(i,1,new Ft({type:Ce(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new Ft({type:Ce(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),i++;continue}if(Se(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=r(s.start,1),p;p=t.charCodeAt(c-n)===96?new Ft({type:Ce(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new Ft({type:Ce(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=r(s.end,-1),m=l===null?null:l.slice(1,-1),_=new Ft({type:Ce(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=r(s.end,-2),m=l===null?null:l.slice(1,-2),_=new Ft({type:Ce(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(i,1,p,new Ft({type:Ce(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),i+=2;continue}a.type=Ce(o)}}return e}class Cn extends _n{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,this.options.sourceType===`module`?`module`:`script`),e.comments=this.comments,this.optionFlags&256&&(e.tokens=Sn(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let i;return i=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,r(this.state.startLoc,-1)),i}stmtToDirective(e){let t=this.castNodeTo(e,`Directive`),n=this.castNodeTo(e.expression,`DirectiveLiteral`),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,`of`)){let t=this.lookaheadCharCodeSince(e+2);if(t!==61&&t!==58&&t!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,`void`))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(je(e)){if(xn.lastIndex=t,xn.test(this.input)){let e=this.codePointAtPos(xn.lastIndex);if(!Me(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,r):this.raise(_.UnexpectedLexicalDeclaration,r):this.raise(_.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let e;return e=n===83?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return N(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){if(e){var r;(r=t.decorators)!=null&&r.length?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(_.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(_.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(vn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(vn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isAwaitUsing(),i=r||this.isForUsing(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(_.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new qt,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(yn),this.scope.enter(256);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(vn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(_.LabelRedeclaration,n,{labelName:t});let i=F(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(_.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(_.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();t===`using`||t===`await using`?(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(_.UsingDeclarationHasBindingPattern,n.loc.start):n.type===`VoidPattern`&&this.raise(_.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(gt(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||N(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(Ht()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(_.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&N(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(_.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(_.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(_.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(Gt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(N(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,`ExportDefaultDeclaration`)}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin(`importAssertions`)?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(N(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(t===123||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith(`from`,e))return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||N(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(_.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||=this.cloneIdentifier(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=bn.exec(e.value);return t&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(_.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(_.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(_.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(_.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(_.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(ce(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return N(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(_.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin(`moduleAttributes`)?(t=this.parseModuleAttributes(),this.addExtra(e,`deprecatedWithLegacySyntax`,!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(ce(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(_.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}}class wn extends Cn{constructor(e,t,n){let r=y(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),r.tokens&&(i|=256),r.createImportExpressions&&(i|=512),r.createParenthesizedExpressions&&(i|=1024),r.errorRecovery&&(i|=2048),r.attachComment&&(i|=4096),r.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return Ke}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}}function Tn(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=kn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,kn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,kn(t,e).parse()}catch{}throw n}}else return kn(t,e).parse()}function En(e,t){let n=kn(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}function Dn(e){let t={};for(let n of Object.keys(e))t[n]=Ce(e[n]);return t}let On=Dn(oe);function kn(e,t){let n=wn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}mn(r),n=jn(r)}return new n(e,t,r)}let An=new Map;function jn(e){let t=[];for(let n of gn)e.has(n)&&t.push(n);let n=t.join(`|`),r=An.get(n);if(!r){r=wn;for(let e of t)r=hn[e](r);An.set(n,r)}return r}return _i.parse=Tn,_i.parseExpression=En,_i.tokTypes=On,_i}var bi=yi(),xi=class{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,r){e&&(n===null?e[t]=r:e[t][n]=r)}remove(e,t,n){e&&(n===null?delete e[t]:e[t].splice(n,1))}},Si=class extends xi{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){let i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}for(let t in e){let n=e[t];if(typeof n==`object`)if(Array.isArray(n))for(let r=0;r<n.length;r+=1)n[r]!==null&&typeof n[r].type==`string`&&(this.visit(n[r],e,t,r)||r--);else n!==null&&typeof n.type==`string`&&this.visit(n,e,t,null)}if(this.leave){let i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}};function Ci(e,{enter:t,leave:n}){return new Si(t,n).visit(e,null)}function wi(e,t,n=!1,r=[],i=Object.create(null)){let a=e.type===`Program`?e.body[0].type===`ExpressionStatement`&&e.body[0].expression:e;Ci(e,{enter(e,a){if(a&&r.push(a),a&&a.type.startsWith(`TS`)&&!Bi.includes(a.type))return this.skip();if(e.type===`Identifier`){let o=!!i[e.name],s=Ti(e,a,r);(n||s&&!o)&&t(e,a,r,s,o)}else if(e.type===`ObjectProperty`&&a?.type===`ObjectPattern`)e.inPattern=!0;else if(Ii(e))e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):Oi(e,t=>Fi(e,t,i));else if(e.type===`BlockStatement`)e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):ki(e,t=>Fi(e,t,i));else if(e.type===`SwitchStatement`)e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):Mi(e,!1,t=>Fi(e,t,i));else if(e.type===`CatchClause`&&e.param)if(e.scopeIds)e.scopeIds.forEach(e=>Pi(e,i));else for(let t of Ni(e.param))Fi(e,t,i);else Ai(e)&&(e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):ji(e,!1,t=>Fi(e,t,i)))},leave(e,t){if(t&&r.pop(),e!==a&&e.scopeIds)for(let t of e.scopeIds)i[t]--,i[t]===0&&delete i[t]}})}function Ti(e,t,n){if(!t)return!0;if(e.name===`arguments`)return!1;if(zi(e,t,n[n.length-2]))return!0;switch(t.type){case`AssignmentExpression`:case`AssignmentPattern`:return!0;case`ObjectProperty`:return t.key!==e&&Ei(t,n);case`ArrayPattern`:return Ei(t,n)}return!1}function Ei(e,t){if(e&&(e.type===`ObjectProperty`||e.type===`ArrayPattern`)){let e=t.length;for(;e--;){let n=t[e];if(n.type===`AssignmentExpression`)return!0;if(n.type!==`ObjectProperty`&&!n.type.endsWith(`Pattern`))break}}return!1}function Di(e){let t=e.length;for(;t--;){let n=e[t];if(n.type===`NewExpression`)return!0;if(n.type!==`MemberExpression`)break}return!1}function Oi(e,t){for(let n of e.params)for(let e of Ni(n))t(e)}function ki(e,t){let n=e.type===`SwitchCase`?e.consequent:e.body;for(let e of n)if(e.type===`VariableDeclaration`){if(e.declare)continue;for(let n of e.declarations)for(let e of Ni(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else Ai(e)?ji(e,!0,t):e.type===`SwitchStatement`&&Mi(e,!0,t)}function Ai(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function ji(e,t,n){let r=e.type===`ForStatement`?e.init:e.left;if(r&&r.type===`VariableDeclaration`&&(r.kind===`var`?t:!t))for(let e of r.declarations)for(let t of Ni(e.id))n(t)}function Mi(e,t,n){for(let r of e.cases){for(let e of r.consequent)if(e.type===`VariableDeclaration`&&(e.kind===`var`?t:!t))for(let t of e.declarations)for(let e of Ni(t.id))n(e);ki(r,n)}}function Ni(e,t=[]){switch(e.type){case`Identifier`:t.push(e);break;case`MemberExpression`:let n=e;for(;n.type===`MemberExpression`;)n=n.object;t.push(n);break;case`ObjectPattern`:for(let n of e.properties)n.type===`RestElement`?Ni(n.argument,t):Ni(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&Ni(e,t)});break;case`RestElement`:Ni(e.argument,t);break;case`AssignmentPattern`:Ni(e.left,t);break}return t}function Pi(e,t){e in t?t[e]++:t[e]=1}function Fi(e,t,n){let{name:r}=t;e.scopeIds&&e.scopeIds.has(r)||(Pi(r,n),(e.scopeIds||=new Set).add(r))}var Ii=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Li=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,Ri=(e,t)=>Li(t)&&t.key===e;function zi(e,t,n){switch(t.type){case`MemberExpression`:case`OptionalMemberExpression`:return t.property===e?!!t.computed:t.object===e;case`JSXMemberExpression`:return t.object===e;case`VariableDeclarator`:return t.init===e;case`ArrowFunctionExpression`:return t.body===e;case`PrivateName`:return!1;case`ClassMethod`:case`ClassPrivateMethod`:case`ObjectMethod`:return t.key===e?!!t.computed:!1;case`ObjectProperty`:return t.key===e?!!t.computed:!n||n.type!==`ObjectPattern`;case`ClassProperty`:return t.key===e?!!t.computed:!0;case`ClassPrivateProperty`:return t.key!==e;case`ClassDeclaration`:case`ClassExpression`:return t.superClass===e;case`AssignmentExpression`:return t.right===e;case`AssignmentPattern`:return t.right===e;case`LabeledStatement`:return!1;case`CatchClause`:return!1;case`RestElement`:return!1;case`BreakStatement`:case`ContinueStatement`:return!1;case`FunctionDeclaration`:case`FunctionExpression`:return!1;case`ExportNamespaceSpecifier`:case`ExportDefaultSpecifier`:return!1;case`ExportSpecifier`:return n?.source?!1:t.local===e;case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`ImportSpecifier`:return!1;case`ImportAttribute`:return!1;case`JSXAttribute`:return!1;case`ObjectPattern`:case`ArrayPattern`:return!1;case`MetaProperty`:return!1;case`ObjectTypeProperty`:return t.key!==e;case`TSEnumMember`:return t.id!==e;case`TSPropertySignature`:return t.key===e?!!t.computed:!0}return!0}var Bi=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`];function Vi(e){return Bi.includes(e.type)?Vi(e.expression):e}var Hi=e=>e.type===4&&e.isStatic;function Ui(e){switch(e){case`Teleport`:case`teleport`:return ft;case`Suspense`:case`suspense`:return pt;case`KeepAlive`:case`keep-alive`:return mt;case`BaseTransition`:case`base-transition`:return ht}}var Wi=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Gi=e=>!Wi.test(e),Ki=/[A-Za-z_$\xA0-\uFFFF]/,qi=/[\.\?\w$\xA0-\uFFFF]/,Ji=/\s+[.[]\s*|\s*[.[]\s+/g,Yi=e=>e.type===4?e.content:e.loc.source,Xi=e=>{let t=Yi(e).trim().replace(Ji,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e<t.length;e++){let s=t.charAt(e);switch(n){case 0:if(s===`[`)r.push(n),n=1,i++;else if(s===`(`)r.push(n),n=2,a++;else if(!(e===0?Ki:qi).test(s))return!1;break;case 1:s===`'`||s===`"`||s==="`"?(r.push(n),n=3,o=s):s===`[`?i++:s===`]`&&(--i||(n=r.pop()));break;case 2:if(s===`'`||s===`"`||s==="`")r.push(n),n=3,o=s;else if(s===`(`)a++;else if(s===`)`){if(e===t.length-1)return!1;--a||(n=r.pop())}break;case 3:s===o&&(n=r.pop(),o=null);break}}return!i&&!a},Zi=(e,t)=>{try{let n=e.ast||bi.parseExpression(Yi(e),{plugins:t.expressionPlugins?[...t.expressionPlugins,`typescript`]:[`typescript`]});return n=Vi(n),n.type===`MemberExpression`||n.type===`OptionalMemberExpression`||n.type===`Identifier`&&n.name!==`undefined`}catch{return!1}},Qi=Zi,$i=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,ea=e=>$i.test(Yi(e)),ta=(e,t)=>{try{let n=e.ast||bi.parseExpression(Yi(e),{plugins:t.expressionPlugins?[...t.expressionPlugins,`typescript`]:[`typescript`]});return n.type===`Program`&&(n=n.body[0],n.type===`ExpressionStatement`&&(n=n.expression)),n=Vi(n),n.type===`FunctionExpression`||n.type===`ArrowFunctionExpression`}catch{return!1}},na=ta;function ra(e,t,n=t.length){return ia({offset:e.offset,line:e.line,column:e.column},t,n)}function ia(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)t.charCodeAt(e)===10&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function aa(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function W(e,t,n=!1){for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&(n||i.exp)&&(F(t)?i.name===t:t.test(i.name)))return i}}function oa(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name===`bind`&&(a.exp||r)&&sa(a.arg,t))return a}}function sa(e,t){return!!(e&&Hi(e)&&e.content===t)}function ca(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function la(e){return e.type===5||e.type===2}function ua(e){return e.type===7&&e.name===`pre`}function da(e){return e.type===7&&e.name===`slot`}function fa(e){return e.type===1&&e.tagType===3}function pa(e){return e.type===1&&e.tagType===2}var ma=new Set([It,Lt]);function ha(e,t=[]){if(e&&!F(e)&&e.type===14){let n=e.callee;if(!F(n)&&ma.has(n))return ha(e.arguments[0],t.concat(e))}return[e,t]}function ga(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!F(i)&&i.type===14){let e=ha(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||F(i))r=on([t]);else if(i.type===14){let e=i.arguments[0];!F(e)&&e.type===15?_a(t,e)||e.properties.unshift(t):i.callee===Rt?r=B(n.helper(Nt),[on([t]),i]):i.arguments.unshift(on([t])),!r&&(r=i)}else i.type===15?(_a(t,i)||i.properties.unshift(t),r=i):(r=B(n.helper(Nt),[on([t]),i]),o&&o.callee===Lt&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function _a(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function va(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function ya(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(ya(r.arg,t)||ya(r.exp,t)))return!0}return e.children.some(e=>ya(e,t));case 11:return ya(e.source,t)?!0:e.children.some(e=>ya(e,t));case 9:return e.branches.some(e=>ya(e,t));case 10:return ya(e.condition,t)?!0:e.children.some(e=>ya(e,t));case 4:return!e.isStatic&&Gi(e.content)&&!!t[e.content];case 8:return e.children.some(e=>me(e)&&ya(e,t));case 5:case 12:return ya(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function ba(e){return e.type===14&&e.callee===Jt?e.arguments[1].returns:e}var xa=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Sa(e){for(let t=0;t<e.length;t++)if(!ei(e.charCodeAt(t)))return!1;return!0}function Ca(e){return e.type===2&&Sa(e.content)||e.type===12&&Ca(e.content)}function wa(e){return e.type===3||Ca(e)}var Ta={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:oe,isPreTag:oe,isIgnoreNewlineTag:oe,isCustomElement:oe,onError:di,onWarn:fi,comments:!0,prefixIdentifiers:!1},G=Ta,Ea=null,Da=``,Oa=null,K=null,ka=``,Aa=-1,ja=-1,Ma=0,Na=!1,Pa=null,Fa=[],q=new ii(Fa,{onerr:ao,ontext(e,t){Va(za(e,t),e,t)},ontextentity(e,t,n){Va(e,t,n)},oninterpolation(e,t){if(Na)return Va(za(e,t),e,t);let n=e+q.delimiterOpen.length,r=t-q.delimiterClose.length;for(;ei(Da.charCodeAt(n));)n++;for(;ei(Da.charCodeAt(r-1));)r--;let i=za(n,r);i.includes(`&`)&&(i=Xr(i)),$a({type:5,content:io(i,!1,eo(n,r)),loc:eo(e,t)})},onopentagname(e,t){let n=za(e,t);Oa={type:1,tag:n,ns:G.getNamespace(n,Fa[0],G.ns),tagType:0,props:[],children:[],loc:eo(e-1,t),codegenNode:void 0}},onopentagend(e){Ba(e)},onclosetag(e,t){let n=za(e,t);if(!G.isVoidTag(n)){let r=!1;for(let e=0;e<Fa.length;e++)if(Fa[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&ao(24,Fa[0].loc.start.offset);for(let n=0;n<=e;n++)Ha(Fa.shift(),t,n<e);break}r||ao(23,Wa(e,60))}},onselfclosingtag(e){let t=Oa.tag;Oa.isSelfClosing=!0,Ba(e),Fa[0]&&Fa[0].tag===t&&Ha(Fa.shift(),e)},onattribname(e,t){K={type:6,name:za(e,t),nameLoc:eo(e,t),value:void 0,loc:eo(e)}},ondirname(e,t){let n=za(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!Na&&r===``&&ao(26,e),Na||r===``)K={type:6,name:n,nameLoc:eo(e,t),value:void 0,loc:eo(e)};else if(K={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[z(`prop`)]:[],loc:eo(e)},r===`pre`){Na=q.inVPre=!0,Pa=Oa;let e=Oa.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=ro(e[t]))}},ondirarg(e,t){if(e===t)return;let n=za(e,t);if(Na&&!ua(K))K.name+=n,no(K.nameLoc,t);else{let r=n[0]!==`[`;K.arg=io(r?n:n.slice(1,-1),r,eo(e,t),r?3:0)}},ondirmodifier(e,t){let n=za(e,t);if(Na&&!ua(K))K.name+=`.`+n,no(K.nameLoc,t);else if(K.name===`slot`){let e=K.arg;e&&(e.content+=`.`+n,no(e.loc,t))}else{let r=z(n,!0,eo(e,t));K.modifiers.push(r)}},onattribdata(e,t){ka+=za(e,t),Aa<0&&(Aa=e),ja=t},onattribentity(e,t,n){ka+=e,Aa<0&&(Aa=t),ja=n},onattribnameend(e){let t=K.loc.start.offset,n=za(t,e);K.type===7&&(K.rawName=n),Oa.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&ao(2,t)},onattribend(e,t){if(Oa&&K){if(no(K.loc,t),e!==0)if(K.type===6)K.name===`class`&&(ka=Qa(ka).trim()),e===1&&!ka&&ao(13,t),K.value={type:2,content:ka,loc:e===1?eo(Aa,ja):eo(Aa-1,ja+1)},q.inSFCRoot&&Oa.tag===`template`&&K.name===`lang`&&ka&&ka!==`html`&&q.enterRCDATA(ni(`</template`),0);else{let e=0;K.name===`for`?e=3:K.name===`slot`?e=1:K.name===`on`&&ka.includes(`;`)&&(e=2),K.exp=io(ka,!1,eo(Aa,ja),0,e),K.name===`for`&&(K.forParseResult=Ra(K.exp))}(K.type!==7||K.name!==`pre`)&&Oa.props.push(K)}ka=``,Aa=ja=-1},oncomment(e,t){G.comments&&$a({type:3,content:za(e,t),loc:eo(e-4,t+3)})},onend(){let e=Da.length;if(q.state!==1)switch(q.state){case 5:case 8:ao(5,e);break;case 3:case 4:ao(25,q.sectionStart);break;case 28:q.currentSequence===ri.CdataEnd?ao(6,e):ao(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ao(9,e);break}for(let t=0;t<Fa.length;t++)Ha(Fa[t],e-1),ao(24,Fa[t].loc.start.offset)},oncdata(e,t){Fa[0].ns===0?ao(1,e-9):Va(za(e,t),e,t)},onprocessinginstruction(e){(Fa[0]?Fa[0].ns:G.ns)===0&&ao(21,e-1)}}),Ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,La=/^\(|\)$/g;function Ra(e){let t=e.loc,n=e.content,r=n.match(xa);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return io(e,!1,eo(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(La,``).trim(),l=i.indexOf(c),u=c.match(Ia);if(u){c=c.replace(Ia,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function za(e,t){return Da.slice(e,t)}function Ba(e){q.inSFCRoot&&(Oa.innerLoc=eo(e+1,e+1)),$a(Oa);let{tag:t,ns:n}=Oa;n===0&&G.isPreTag(t)&&Ma++,G.isVoidTag(t)?Ha(Oa,e):(Fa.unshift(Oa),(n===1||n===2)&&(q.inXML=!0)),Oa=null}function Va(e,t,n){let r=Fa[0]||Ea,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,no(i.loc,n)):r.children.push({type:2,content:e,loc:eo(t,n)})}function Ha(e,t,n=!1){n?no(e.loc,Wa(t,60)):no(e.loc,Ua(t,62)+1),q.inSFCRoot&&(e.children.length?e.innerLoc.end=se({},e.children[e.children.length-1].loc.end):e.innerLoc.end=se({},e.innerLoc.start),e.innerLoc.source=za(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Na||(r===`slot`?e.tagType=2:Ka(e)?e.tagType=3:qa(e)&&(e.tagType=1)),q.inRCDATA||(e.children=Xa(a)),i===0&&G.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&G.isPreTag(r)&&Ma--,Pa===e&&(Na=q.inVPre=!1,Pa=null),q.inXML&&(Fa[0]?Fa[0].ns:G.ns)===0&&(q.inXML=!1)}function Ua(e,t){let n=e;for(;Da.charCodeAt(n)!==t&&n<Da.length-1;)n++;return n}function Wa(e,t){let n=e;for(;Da.charCodeAt(n)!==t&&n>=0;)n--;return n}var Ga=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Ka({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&Ga.has(t[e].name))return!0}return!1}function qa({tag:e,props:t}){if(G.isCustomElement(e))return!1;if(e===`component`||Ja(e.charCodeAt(0))||Ui(e)||G.isBuiltInComponent&&G.isBuiltInComponent(e)||G.isNativeTag&&!G.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){let n=t[e];if(n.type===6&&n.name===`is`&&n.value&&n.value.content.startsWith(`vue:`))return!0}return!1}function Ja(e){return e>64&&e<91}var Ya=/\r\n/g;function Xa(e){let t=G.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(Ma)i.content=i.content.replace(Ya,`
|
|
9
|
+
`),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,r(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),a=this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(_.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?_.BadGetterArity:_.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(_.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,`ObjectProperty`)}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(ce(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{let e=this.state.startLoc;t==null?this.raise(_.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,n!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(gt(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n){t&&this.expectPlugin(`recordAndTuple`);let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=r,this.finishNode(i,t?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=gt(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(Gt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(_.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,a,5,i,r)}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(12))t||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),i=null;else if(this.match(21)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),r||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,`ArgumentPlaceholder`)}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}createIdentifierAt(e,t,n){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,`Identifier`,n)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;ce(r)?t=this.state.value:this.unexpected();let i=se(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)&&We(e)){if(n&&Ve(e)){this.raise(_.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Be:Re:Le)(e,this.inModule)){this.raise(_.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Se(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(_.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,`YieldExpression`)}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,e)}}return this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(_.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parseVoidPattern(e){this.expectPlugin(`discardBinding`);let t=this.startNode();return e!=null&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,`VoidPattern`)}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(t!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(e===3?93:e===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}let vn={kind:1},yn={kind:2},bn=/[\uD800-\uDFFF]/u,xn=/in(?:stanceof)?/y;function Sn(e,t,n){for(let i=0;i<e.length;i++){let a=e[i],{type:o}=a;if(typeof o==`number`){if(o===139){let{loc:t,start:n,value:o,end:s}=a,c=n+1,l=r(t.start,1);e.splice(i,1,new Ft({type:Ce(27),value:`#`,start:n,end:c,startLoc:t.start,endLoc:l}),new Ft({type:Ce(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),i++;continue}if(Se(o)){let{loc:s,start:c,value:l,end:u}=a,d=c+1,f=r(s.start,1),p;p=t.charCodeAt(c-n)===96?new Ft({type:Ce(22),value:"`",start:c,end:d,startLoc:s.start,endLoc:f}):new Ft({type:Ce(8),value:`}`,start:c,end:d,startLoc:s.start,endLoc:f});let m,h,g,_;o===24?(h=u-1,g=r(s.end,-1),m=l===null?null:l.slice(1,-1),_=new Ft({type:Ce(22),value:"`",start:h,end:u,startLoc:g,endLoc:s.end})):(h=u-2,g=r(s.end,-2),m=l===null?null:l.slice(1,-2),_=new Ft({type:Ce(23),value:"${",start:h,end:u,startLoc:g,endLoc:s.end})),e.splice(i,1,p,new Ft({type:Ce(20),value:m,start:d,end:h,startLoc:f,endLoc:g}),_),i+=2;continue}a.type=Ce(o)}}return e}class Cn extends _n{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,this.options.sourceType===`module`?`module`:`script`),e.comments=this.comments,this.optionFlags&256&&(e.tokens=Sn(this.tokens,this.input,this.startIndex)),this.finishNode(e,`File`)}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,t,{localName:e});this.addExtra(e,`topLevelAwait`,this.state.hasTopLevelAwait)}let i;return i=t===140?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,r(this.state.startLoc,-1)),i}stmtToDirective(e){let t=this.castNodeTo(e,`Directive`),n=this.castNodeTo(e.expression,`DirectiveLiteral`),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,`of`)){let t=this.lookaheadCharCodeSince(e+2);if(t!==61&&t!==58&&t!==59)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,`void`))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(je(e)){if(xn.lastIndex=t,xn.test(this.input)){let e=this.codePointAtPos(xn.lastIndex);if(!Me(e)&&e!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,r):this.raise(_.UnexpectedLexicalDeclaration,r):this.raise(_.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let e;return e=n===83?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return N(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){if(e){var r;(r=t.decorators)!=null&&r.length?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(_.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(_.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(vn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(vn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isAwaitUsing(),i=r||this.isForUsing(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(_.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new qt,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(yn),this.scope.enter(256);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{type:`CatchClause`},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(vn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(_.LabelRedeclaration,n,{labelName:t});let i=F(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(_.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(_.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();t===`using`||t===`await using`?(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(_.UsingDeclarationHasBindingPattern,n.loc.start):n.type===`VoidPattern`&&this.raise(_.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:`VariableDeclarator`},t===`var`?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(gt(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||N(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(Ht()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(_.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(139);if(this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&N(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(_.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(_.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===134)&&e.static&&n===`prototype`&&this.raise(_.StaticPrototype,this.state.startLoc),t===139){n===`constructor`&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(_.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(Gt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(N(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,`ExportDefaultDeclaration`)}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin(`importAssertions`)?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(N(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(t===123||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith(`from`,e))return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||N(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(_.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||=this.cloneIdentifier(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=bn.exec(e.value);return t&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(_.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(_.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(_.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(_.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!=="default":t.value!=="default"});e!==void 0&&this.raise(_.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(ce(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){let{type:t}=this.state;return N(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(_.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin(`moduleAttributes`)?(t=this.parseModuleAttributes(),this.addExtra(e,`deprecatedWithLegacySyntax`,!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin(`deprecatedImportAssert`)&&!this.hasPlugin(`importAssertions`)&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin(`importAssertions`)||this.addExtra(e,`deprecatedAssertSyntax`,!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(ce(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(_.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}}class wn extends Cn{constructor(e,t,n){let r=y(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),r.tokens&&(i|=256),r.createImportExpressions&&(i|=512),r.createParenthesizedExpressions&&(i|=1024),r.errorRecovery&&(i|=2048),r.attachComment&&(i|=4096),r.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return Ke}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}}function Tn(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=kn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,kn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,kn(t,e).parse()}catch{}throw n}}else return kn(t,e).parse()}function En(e,t){let n=kn(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}function Dn(e){let t={};for(let n of Object.keys(e))t[n]=Ce(e[n]);return t}let On=Dn(oe);function kn(e,t){let n=wn,r=new Map;if(e!=null&&e.plugins){for(let t of e.plugins){let e,n;typeof t==`string`?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}mn(r),n=jn(r)}return new n(e,t,r)}let An=new Map;function jn(e){let t=[];for(let n of gn)e.has(n)&&t.push(n);let n=t.join(`|`),r=An.get(n);if(!r){r=wn;for(let e of t)r=hn[e](r);An.set(n,r)}return r}return _i.parse=Tn,_i.parseExpression=En,_i.tokTypes=On,_i}var bi=yi(),xi=class{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,r){e&&(n===null?e[t]=r:e[t][n]=r)}remove(e,t,n){e&&(n===null?delete e[t]:e[t].splice(n,1))}},Si=class extends xi{constructor(e,t){super(),this.enter=e,this.leave=t}visit(e,t,n,r){if(e){if(this.enter){let i=this.should_skip,a=this.should_remove,o=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let s=this.should_skip,c=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=o,s)return e;if(c)return null}for(let t in e){let n=e[t];if(typeof n==`object`)if(Array.isArray(n))for(let r=0;r<n.length;r+=1)n[r]!==null&&typeof n[r].type==`string`&&(this.visit(n[r],e,t,r)||r--);else n!==null&&typeof n.type==`string`&&this.visit(n,e,t,null)}if(this.leave){let i=this.replacement,a=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);let o=this.should_remove;if(this.replacement=i,this.should_remove=a,o)return null}}return e}};function Ci(e,{enter:t,leave:n}){return new Si(t,n).visit(e,null)}function wi(e,t,n=!1,r=[],i=Object.create(null)){let a=e.type===`Program`?e.body[0].type===`ExpressionStatement`&&e.body[0].expression:e;Ci(e,{enter(e,a){if(a&&r.push(a),a&&a.type.startsWith(`TS`)&&!Bi.includes(a.type))return this.skip();if(e.type===`Identifier`){let o=!!i[e.name],s=Ti(e,a,r);(n||s&&!o)&&t(e,a,r,s,o)}else if(e.type===`ObjectProperty`&&a?.type===`ObjectPattern`)e.inPattern=!0;else if(Ii(e))e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):Oi(e,t=>Fi(e,t,i));else if(e.type===`BlockStatement`)e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):ki(e,t=>Fi(e,t,i));else if(e.type===`SwitchStatement`)e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):Mi(e,!1,t=>Fi(e,t,i));else if(e.type===`CatchClause`&&e.param)if(e.scopeIds)e.scopeIds.forEach(e=>Pi(e,i));else for(let t of Ni(e.param))Fi(e,t,i);else Ai(e)&&(e.scopeIds?e.scopeIds.forEach(e=>Pi(e,i)):ji(e,!1,t=>Fi(e,t,i)))},leave(e,t){if(t&&r.pop(),e!==a&&e.scopeIds)for(let t of e.scopeIds)i[t]--,i[t]===0&&delete i[t]}})}function Ti(e,t,n){if(!t)return!0;if(e.name===`arguments`)return!1;if(zi(e,t,n[n.length-2]))return!0;switch(t.type){case`AssignmentExpression`:case`AssignmentPattern`:return!0;case`ObjectProperty`:return t.key!==e&&Ei(t,n);case`ArrayPattern`:return Ei(t,n)}return!1}function Ei(e,t){if(e&&(e.type===`ObjectProperty`||e.type===`ArrayPattern`)){let e=t.length;for(;e--;){let n=t[e];if(n.type===`AssignmentExpression`)return!0;if(n.type!==`ObjectProperty`&&!n.type.endsWith(`Pattern`))break}}return!1}function Di(e){let t=e.length;for(;t--;){let n=e[t];if(n.type===`NewExpression`)return!0;if(n.type!==`MemberExpression`)break}return!1}function Oi(e,t){for(let n of e.params)for(let e of Ni(n))t(e)}function ki(e,t){let n=e.type===`SwitchCase`?e.consequent:e.body;for(let e of n)if(e.type===`VariableDeclaration`){if(e.declare)continue;for(let n of e.declarations)for(let e of Ni(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else Ai(e)?ji(e,!0,t):e.type===`SwitchStatement`&&Mi(e,!0,t)}function Ai(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function ji(e,t,n){let r=e.type===`ForStatement`?e.init:e.left;if(r&&r.type===`VariableDeclaration`&&(r.kind===`var`?t:!t))for(let e of r.declarations)for(let t of Ni(e.id))n(t)}function Mi(e,t,n){for(let r of e.cases){for(let e of r.consequent)if(e.type===`VariableDeclaration`&&(e.kind===`var`?t:!t))for(let t of e.declarations)for(let e of Ni(t.id))n(e);ki(r,n)}}function Ni(e,t=[]){switch(e.type){case`Identifier`:t.push(e);break;case`MemberExpression`:let n=e;for(;n.type===`MemberExpression`;)n=n.object;t.push(n);break;case`ObjectPattern`:for(let n of e.properties)n.type===`RestElement`?Ni(n.argument,t):Ni(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&Ni(e,t)});break;case`RestElement`:Ni(e.argument,t);break;case`AssignmentPattern`:Ni(e.left,t);break}return t}function Pi(e,t){e in t?t[e]++:t[e]=1}function Fi(e,t,n){let{name:r}=t;e.scopeIds&&e.scopeIds.has(r)||(Pi(r,n),(e.scopeIds||=new Set).add(r))}var Ii=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Li=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,Ri=(e,t)=>Li(t)&&t.key===e;function zi(e,t,n){switch(t.type){case`MemberExpression`:case`OptionalMemberExpression`:return t.property===e?!!t.computed:t.object===e;case`JSXMemberExpression`:return t.object===e;case`VariableDeclarator`:return t.init===e;case`ArrowFunctionExpression`:return t.body===e;case`PrivateName`:return!1;case`ClassMethod`:case`ClassPrivateMethod`:case`ObjectMethod`:return t.key===e?!!t.computed:!1;case`ObjectProperty`:return t.key===e?!!t.computed:!n||n.type!==`ObjectPattern`;case`ClassProperty`:return t.key===e?!!t.computed:!0;case`ClassPrivateProperty`:return t.key!==e;case`ClassDeclaration`:case`ClassExpression`:return t.superClass===e;case`AssignmentExpression`:return t.right===e;case`AssignmentPattern`:return t.right===e;case`LabeledStatement`:return!1;case`CatchClause`:return!1;case`RestElement`:return!1;case`BreakStatement`:case`ContinueStatement`:return!1;case`FunctionDeclaration`:case`FunctionExpression`:return!1;case`ExportNamespaceSpecifier`:case`ExportDefaultSpecifier`:return!1;case`ExportSpecifier`:return n?.source?!1:t.local===e;case`ImportDefaultSpecifier`:case`ImportNamespaceSpecifier`:case`ImportSpecifier`:return!1;case`ImportAttribute`:return!1;case`JSXAttribute`:return!1;case`ObjectPattern`:case`ArrayPattern`:return!1;case`MetaProperty`:return!1;case`ObjectTypeProperty`:return t.key!==e;case`TSEnumMember`:return t.id!==e;case`TSPropertySignature`:return t.key===e?!!t.computed:!0}return!0}var Bi=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`];function Vi(e){return Bi.includes(e.type)?Vi(e.expression):e}var Hi=e=>e.type===4&&e.isStatic;function Ui(e){switch(e){case`Teleport`:case`teleport`:return ft;case`Suspense`:case`suspense`:return pt;case`KeepAlive`:case`keep-alive`:return mt;case`BaseTransition`:case`base-transition`:return ht}}var Wi=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Gi=e=>!Wi.test(e),Ki=/[A-Za-z_$\xA0-\uFFFF]/,qi=/[\.\?\w$\xA0-\uFFFF]/,Ji=/\s+[.[]\s*|\s*[.[]\s+/g,Yi=e=>e.type===4?e.content:e.loc.source,Xi=e=>{let t=Yi(e).trim().replace(Ji,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e<t.length;e++){let s=t.charAt(e);switch(n){case 0:if(s===`[`)r.push(n),n=1,i++;else if(s===`(`)r.push(n),n=2,a++;else if(!(e===0?Ki:qi).test(s))return!1;break;case 1:s===`'`||s===`"`||s==="`"?(r.push(n),n=3,o=s):s===`[`?i++:s===`]`&&(--i||(n=r.pop()));break;case 2:if(s===`'`||s===`"`||s==="`")r.push(n),n=3,o=s;else if(s===`(`)a++;else if(s===`)`){if(e===t.length-1)return!1;--a||(n=r.pop())}break;case 3:s===o&&(n=r.pop(),o=null);break}}return!i&&!a},Zi=(e,t)=>{try{let n=e.ast||bi.parseExpression(Yi(e),{plugins:t.expressionPlugins?[...t.expressionPlugins,`typescript`]:[`typescript`]});return n=Vi(n),n.type===`MemberExpression`||n.type===`OptionalMemberExpression`||n.type===`Identifier`&&n.name!==`undefined`}catch{return!1}},Qi=Zi,$i=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,ea=e=>$i.test(Yi(e)),ta=(e,t)=>{try{let n=e.ast||bi.parseExpression(Yi(e),{plugins:t.expressionPlugins?[...t.expressionPlugins,`typescript`]:[`typescript`]});return n.type===`Program`&&(n=n.body[0],n.type===`ExpressionStatement`&&(n=n.expression)),n=Vi(n),n.type===`FunctionExpression`||n.type===`ArrowFunctionExpression`}catch{return!1}},na=ta;function ra(e,t,n=t.length){return ia({offset:e.offset,line:e.line,column:e.column},t,n)}function ia(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)t.charCodeAt(e)===10&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function aa(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function W(e,t,n=!1){for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&(n||i.exp)&&(F(t)?i.name===t:t.test(i.name)))return i}}function oa(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name===`bind`&&(a.exp||r)&&sa(a.arg,t))return a}}function sa(e,t){return!!(e&&Hi(e)&&e.content===t)}function ca(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function la(e){return e.type===5||e.type===2}function ua(e){return e.type===7&&e.name===`pre`}function da(e){return e.type===7&&e.name===`slot`}function fa(e){return e.type===1&&e.tagType===3}function pa(e){return e.type===1&&e.tagType===2}var ma=new Set([It,Lt]);function ha(e,t=[]){if(e&&!F(e)&&e.type===14){let n=e.callee;if(!F(n)&&ma.has(n))return ha(e.arguments[0],t.concat(e))}return[e,t]}function ga(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!F(i)&&i.type===14){let e=ha(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||F(i))r=on([t]);else if(i.type===14){let e=i.arguments[0];!F(e)&&e.type===15?_a(t,e)||e.properties.unshift(t):i.callee===Rt?r=B(n.helper(Nt),[on([t]),i]):i.arguments.unshift(on([t])),!r&&(r=i)}else i.type===15?(_a(t,i)||i.properties.unshift(t),r=i):(r=B(n.helper(Nt),[on([t]),i]),o&&o.callee===Lt&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function _a(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function va(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function ya(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(ya(r.arg,t)||ya(r.exp,t)))return!0}return e.children.some(e=>ya(e,t));case 11:return ya(e.source,t)?!0:e.children.some(e=>ya(e,t));case 9:return e.branches.some(e=>ya(e,t));case 10:return ya(e.condition,t)?!0:e.children.some(e=>ya(e,t));case 4:return!e.isStatic&&Gi(e.content)&&!!t[e.content];case 8:return e.children.some(e=>me(e)&&ya(e,t));case 5:case 12:return ya(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function ba(e){return e.type===14&&e.callee===Jt?e.arguments[1].returns:e}var xa=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Sa(e){for(let t=0;t<e.length;t++)if(!ei(e.charCodeAt(t)))return!1;return!0}function Ca(e){return e.type===2&&Sa(e.content)||e.type===12&&Ca(e.content)}function wa(e){return e.type===3||Ca(e)}var Ta={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:oe,isPreTag:oe,isIgnoreNewlineTag:oe,isCustomElement:oe,onError:di,onWarn:fi,comments:!0,prefixIdentifiers:!1},G=Ta,Ea=null,Da=``,Oa=null,K=null,ka=``,Aa=-1,ja=-1,Ma=0,Na=!1,Pa=null,Fa=[],q=new ii(Fa,{onerr:ao,ontext(e,t){Va(za(e,t),e,t)},ontextentity(e,t,n){Va(e,t,n)},oninterpolation(e,t){if(Na)return Va(za(e,t),e,t);let n=e+q.delimiterOpen.length,r=t-q.delimiterClose.length;for(;ei(Da.charCodeAt(n));)n++;for(;ei(Da.charCodeAt(r-1));)r--;let i=za(n,r);i.includes(`&`)&&(i=Xr(i)),$a({type:5,content:io(i,!1,eo(n,r)),loc:eo(e,t)})},onopentagname(e,t){let n=za(e,t);Oa={type:1,tag:n,ns:G.getNamespace(n,Fa[0],G.ns),tagType:0,props:[],children:[],loc:eo(e-1,t),codegenNode:void 0}},onopentagend(e){Ba(e)},onclosetag(e,t){let n=za(e,t);if(!G.isVoidTag(n)){let r=!1;for(let e=0;e<Fa.length;e++)if(Fa[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&ao(24,Fa[0].loc.start.offset);for(let n=0;n<=e;n++)Ha(Fa.shift(),t,n<e);break}r||ao(23,Wa(e,60))}},onselfclosingtag(e){let t=Oa.tag;Oa.isSelfClosing=!0,Ba(e),Fa[0]&&Fa[0].tag===t&&Ha(Fa.shift(),e)},onattribname(e,t){K={type:6,name:za(e,t),nameLoc:eo(e,t),value:void 0,loc:eo(e)}},ondirname(e,t){let n=za(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!Na&&r===``&&ao(26,e),Na||r===``)K={type:6,name:n,nameLoc:eo(e,t),value:void 0,loc:eo(e)};else if(K={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[z(`prop`)]:[],loc:eo(e)},r===`pre`){Na=q.inVPre=!0,Pa=Oa;let e=Oa.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=ro(e[t]))}},ondirarg(e,t){if(e===t)return;let n=za(e,t);if(Na&&!ua(K))K.name+=n,no(K.nameLoc,t);else{let r=n[0]!==`[`;K.arg=io(r?n:n.slice(1,-1),r,eo(e,t),r?3:0)}},ondirmodifier(e,t){let n=za(e,t);if(Na&&!ua(K))K.name+=`.`+n,no(K.nameLoc,t);else if(K.name===`slot`){let e=K.arg;e&&(e.content+=`.`+n,no(e.loc,t))}else{let r=z(n,!0,eo(e,t));K.modifiers.push(r)}},onattribdata(e,t){ka+=za(e,t),Aa<0&&(Aa=e),ja=t},onattribentity(e,t,n){ka+=e,Aa<0&&(Aa=t),ja=n},onattribnameend(e){let t=K.loc.start.offset,n=za(t,e);K.type===7&&(K.rawName=n),Oa.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&ao(2,t)},onattribend(e,t){if(Oa&&K){if(no(K.loc,t),e!==0)if(K.type===6)K.name===`class`&&(ka=Qa(ka).trim()),e===1&&!ka&&ao(13,t),K.value={type:2,content:ka,loc:e===1?eo(Aa,ja):eo(Aa-1,ja+1)},q.inSFCRoot&&Oa.tag===`template`&&K.name===`lang`&&ka&&ka!==`html`&&q.enterRCDATA(ni(`</template`),0);else{let e=0;K.name===`for`?e=3:K.name===`slot`?e=1:K.name===`on`&&ka.includes(`;`)&&(e=2),K.exp=io(ka,!1,eo(Aa,ja),0,e),K.name===`for`&&(K.forParseResult=Ra(K.exp))}(K.type!==7||K.name!==`pre`)&&Oa.props.push(K)}ka=``,Aa=ja=-1},oncomment(e,t){G.comments&&$a({type:3,content:za(e,t),loc:eo(e-4,t+3)})},onend(){let e=Da.length;if(q.state!==1)switch(q.state){case 5:case 8:ao(5,e);break;case 3:case 4:ao(25,q.sectionStart);break;case 28:q.currentSequence===ri.CdataEnd?ao(6,e):ao(7,e);break;case 6:case 7:case 9:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:ao(9,e);break}for(let t=0;t<Fa.length;t++)Ha(Fa[t],e-1),ao(24,Fa[t].loc.start.offset)},oncdata(e,t){Fa[0].ns===0?ao(1,e-9):Va(za(e,t),e,t)},onprocessinginstruction(e){(Fa[0]?Fa[0].ns:G.ns)===0&&ao(21,e-1)}}),Ia=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,La=/^\(|\)$/g;function Ra(e){let t=e.loc,n=e.content,r=n.match(xa);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return io(e,!1,eo(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(La,``).trim(),l=i.indexOf(c),u=c.match(Ia);if(u){c=c.replace(Ia,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function za(e,t){return Da.slice(e,t)}function Ba(e){q.inSFCRoot&&(Oa.innerLoc=eo(e+1,e+1)),$a(Oa);let{tag:t,ns:n}=Oa;n===0&&G.isPreTag(t)&&Ma++,G.isVoidTag(t)?Ha(Oa,e):(Fa.unshift(Oa),(n===1||n===2)&&(q.inXML=!0)),Oa=null}function Va(e,t,n){let r=Fa[0]||Ea,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,no(i.loc,n)):r.children.push({type:2,content:e,loc:eo(t,n)})}function Ha(e,t,n=!1){n?no(e.loc,Wa(t,60)):no(e.loc,Ua(t,62)+1),q.inSFCRoot&&(e.children.length?e.innerLoc.end=se({},e.children[e.children.length-1].loc.end):e.innerLoc.end=se({},e.innerLoc.start),e.innerLoc.source=za(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(Na||(r===`slot`?e.tagType=2:Ka(e)?e.tagType=3:qa(e)&&(e.tagType=1)),q.inRCDATA||(e.children=Xa(a)),i===0&&G.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&G.isPreTag(r)&&Ma--,Pa===e&&(Na=q.inVPre=!1,Pa=null),q.inXML&&(Fa[0]?Fa[0].ns:G.ns)===0&&(q.inXML=!1)}function Ua(e,t){let n=e;for(;Da.charCodeAt(n)!==t&&n<Da.length-1;)n++;return n}function Wa(e,t){let n=e;for(;Da.charCodeAt(n)!==t&&n>=0;)n--;return n}var Ga=new Set([`if`,`else`,`else-if`,`for`,`slot`]);function Ka({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&Ga.has(t[e].name))return!0}return!1}function qa({tag:e,props:t}){if(G.isCustomElement(e))return!1;if(e===`component`||Ja(e.charCodeAt(0))||Ui(e)||G.isBuiltInComponent&&G.isBuiltInComponent(e)||G.isNativeTag&&!G.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){let n=t[e];if(n.type===6&&n.name===`is`&&n.value&&n.value.content.startsWith(`vue:`))return!0}return!1}function Ja(e){return e>64&&e<91}var Ya=/\r\n/g;function Xa(e){let t=G.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(Ma)i.content=i.content.replace(Ya,`
|
|
10
10
|
`);else if(Sa(i.content)){let a=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!a||!o||t&&(a===3&&(o===3||o===1)||a===1&&(o===3||o===1&&Za(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=Qa(i.content))}return n?e.filter(Boolean):e}function Za(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Qa(e){let t=``,n=!1;for(let r=0;r<e.length;r++)ei(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function $a(e){(Fa[0]||Ea).children.push(e)}function eo(e,t){return{start:q.getPos(e),end:t==null?t:q.getPos(t),source:t==null?t:za(e,t)}}function to(e){return eo(e.start.offset,e.end.offset)}function no(e,t){e.end=q.getPos(t),e.source=za(e.start.offset,t)}function ro(e){let t={type:6,name:e.rawName,nameLoc:eo(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){let n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function io(e,t=!1,n,r=0,i=0){let a=z(e,t,n,r);if(!t&&G.prefixIdentifiers&&i!==3&&e.trim()){if(Gi(e))return a.ast=null,a;try{let t=G.expressionPlugins,n={plugins:t?[...t,`typescript`]:[`typescript`]};i===2?a.ast=bi.parse(` ${e} `,n).program:i===1?a.ast=bi.parseExpression(`(${e})=>{}`,n):a.ast=bi.parseExpression(`(${e})`,n)}catch(e){a.ast=!1,ao(46,n.start.offset,e.message)}}return a}function ao(e,t,n){G.onError(U(e,eo(t,t),void 0,n))}function oo(){q.reset(),Oa=null,K=null,ka=``,Aa=-1,ja=-1,Fa.length=0}function so(e,t){if(oo(),Da=e,G=se({},Ta),t){let e;for(e in t)t[e]!=null&&(G[e]=t[e])}G.decodeEntities&&console.warn(`[@vue/compiler-core] decodeEntities option is passed but will be ignored in non-browser builds.`),q.mode=G.parseMode===`html`?1:G.parseMode===`sfc`?2:0,q.inXML=G.ns===1||G.ns===2;let n=t&&t.delimiters;n&&(q.delimiterOpen=ni(n[0]),q.delimiterClose=ni(n[1]));let r=Ea=nn([],e);return q.parse(Da),r.loc=eo(0,e.length),r.children=Xa(r.children),Ea=null,r}function co(e,t){uo(e,void 0,t,!!lo(e))}function lo(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!pa(t[0])?t[0]:null}function uo(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t<a.length;t++){let s=a[t];if(s.type===1&&s.tagType===0){let e=r?0:fo(s,n);if(e>0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&ho(s,n)>=2){let t=go(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:fo(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1 /* ${Ae[-1]} */`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,uo(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)uo(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)uo(s.branches[t],e,n,s.branches[t].children.length===1,i)}let s=!1;if(o.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&P(e.codegenNode.children))e.codegenNode.children=c(an(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!P(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(an(t.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!P(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=W(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(an(r.returns)),s=!0)}}if(!s)for(let e of o)e.codegenNode=n.cache(e.codegenNode);function c(e){let t=n.cache(e);return t.needArraySpread=!0,t}function l(e,t){if(e.children&&!P(e.children)&&e.children.type===15){let n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function fo(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=ho(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){let a=fo(e.children[i],t);if(a===0)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===7&&a.name===`bind`&&a.exp){let i=fo(a.exp,t);if(i===0)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(e.props[t].type===7)return n.set(e,0),0;t.removeHelper(gt),t.removeHelper(yn(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(vn(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return fo(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){let r=e.children[n];if(F(r)||pe(r))continue;let i=fo(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}var po=new Set([Pt,Ft,It,Lt]);function mo(e,t){if(e.type===14&&!F(e.callee)&&po.has(e.callee)){let n=e.arguments[0];if(n.type===4)return fo(n,t);if(n.type===14)return mo(n,t)}return 0}function ho(e,t){let n=3,r=go(e);if(r&&r.type===15){let{properties:e}=r;for(let r=0;r<e.length;r++){let{key:i,value:a}=e[r],o=fo(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?fo(a,t):a.type===14?mo(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function go(e){let t=e.codegenNode;if(t.type===13)return t.props}function _o(e,{filename:t=``,prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:o=[],directiveTransforms:s={},transformHoist:c=null,isBuiltInComponent:l=M,isCustomElement:u=M,expressionPlugins:d=[],scopeId:f=null,slotted:p=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:g=``,bindingMetadata:_=j,inline:v=!1,isTS:y=!1,onError:b=di,onWarn:x=fi,compatConfig:S}){let C=t.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),w={filename:t,selfName:C&&Te(Se(C[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:o,directiveTransforms:s,transformHoist:c,isBuiltInComponent:l,isCustomElement:u,expressionPlugins:d,scopeId:f,slotted:p,ssr:m,inSSR:h,ssrCssVars:g,bindingMetadata:_,inline:v,isTS:y,onError:b,onWarn:x,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=w.helpers.get(e)||0;return w.helpers.set(e,t+1),e},removeHelper(e){let t=w.helpers.get(e);if(t){let n=t-1;n?w.helpers.set(e,n):w.helpers.delete(e)}},helperString(e){return`_${Xt[w.helper(e)]}`},replaceNode(e){if(!w.currentNode)throw Error(`Node being replaced is already removed.`);if(!w.parent)throw Error(`Cannot replace root node.`);w.parent.children[w.childIndex]=w.currentNode=e},removeNode(e){if(!w.parent)throw Error(`Cannot remove root node.`);let t=w.parent.children,n=e?t.indexOf(e):w.currentNode?w.childIndex:-1;if(n<0)throw Error(`node being removed is not a child of current parent`);!e||e===w.currentNode?(w.currentNode=null,w.onNodeRemoved()):w.childIndex>n&&(w.childIndex--,w.onNodeRemoved()),w.parent.children.splice(n,1)},onNodeRemoved:M,addIdentifiers(e){F(e)?T(e):e.identifiers?e.identifiers.forEach(T):e.type===4&&T(e.content)},removeIdentifiers(e){F(e)?E(e):e.identifiers?e.identifiers.forEach(E):e.type===4&&E(e.content)},hoist(e){F(e)&&(e=z(e)),w.hoists.push(e);let t=z(`_hoisted_${w.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=dn(w.cached.length,e,t,n);return w.cached.push(r),r}};function T(e){let{identifiers:t}=w;t[e]===void 0&&(t[e]=0),t[e]++}function E(e){w.identifiers[e]--}return w}function vo(e,t){let n=_o(e,t);xo(e,n),t.hoistStatic&&co(e,n),t.ssr||yo(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0}function yo(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=lo(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&bn(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else if(r.length>1){let i=64;r.filter(e=>e.type!==3).length===1&&(i|=2048),e.codegenNode=rn(t,n(dt),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function bo(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];F(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,xo(i,t))}}function xo(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){let a=n[i](e,t);if(a&&(P(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(xt);break;case 5:t.ssr||t.helper(Mt);break;case 9:for(let n=0;n<e.branches.length;n++)xo(e.branches[n],t);break;case 10:case 11:case 1:case 0:bo(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function So(e,t){let n=F(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(da))return;let a=[];for(let o=0;o<i.length;o++){let s=i[o];if(s.type===7&&n(s.name)){i.splice(o,1),o--;let n=t(e,s,r);n&&a.push(n)}}return a}}}var Co={},wo={},To={},Eo={},Do;function Oo(){if(Do)return Eo;Do=1;var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);return Eo.encode=function(t){if(0<=t&&t<e.length)return e[t];throw TypeError(`Must be between 0 and 63: `+t)},Eo.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1},Eo}var ko;function Ao(){if(ko)return To;ko=1;var e=Oo(),t=5,n=1<<t,r=n-1,i=n;function a(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var t=(e&1)==1,n=e>>1;return t?-n:n}return To.encode=function(n){var o=``,s,c=a(n);do s=c&r,c>>>=t,c>0&&(s|=i),o+=e.encode(s);while(c>0);return o},To.decode=function(n,a,s){var c=n.length,l=0,u=0,d,f;do{if(a>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=e.decode(n.charCodeAt(a++)),f===-1)throw Error(`Invalid base64 digit: `+n.charAt(a-1));d=!!(f&i),f&=r,l+=f<<u,u+=t}while(d);s.value=o(l),s.rest=a},To}var jo={},Mo;function No(){return Mo?jo:(Mo=1,(function(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;var o=32;function s(e){var t=[];return function(n){for(var r=0;r<t.length;r++)if(t[r].input===n){var i=t[0];return t[0]=t[r],t[r]=i,t[0].result}var a=e(n);return t.unshift({input:n,result:a}),t.length>o&&t.pop(),a}}var c=s(function(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=[],c=0,l=0;;)if(c=l,l=n.indexOf(`/`,c),l===-1){s.push(n.slice(c));break}else for(s.push(n.slice(c,l));l<n.length&&n[l]===`/`;)l++;for(var u,d=0,l=s.length-1;l>=0;l--)u=s[l],u===`.`?s.splice(l,1):u===`..`?d++:d>0&&(u===``?(s.splice(l+1,d),d=0):(s.splice(l,2),d--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n});e.normalize=c;function l(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),o=i(e);if(o&&(e=o.path||`/`),n&&!n.scheme)return o&&(n.scheme=o.scheme),a(n);if(n||t.match(r))return t;if(o&&!o.host&&!o.path)return o.host=t,a(o);var s=t.charAt(0)===`/`?t:c(e.replace(/\/+$/,``)+`/`+t);return o?(o.path=s,a(o)):s}e.join=l,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function u(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=u;var d=function(){return!(`__proto__`in Object.create(null))}();function f(e){return e}function p(e){return h(e)?`$`+e:e}e.toSetString=d?f:p;function m(e){return h(e)?e.slice(1):e}e.fromSetString=d?f:m;function h(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function g(e,t,n){var r=b(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositions=g;function _(e,t,n){var r=e.originalLine-t.originalLine;return r!==0||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:b(e.name,t.name)}e.compareByOriginalPositionsNoSource=_;function v(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflated=v;function y(e,t,n){var r=e.generatedColumn-t.generatedColumn;return r!==0||n||(r=b(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:b(e.name,t.name)}e.compareByGeneratedPositionsDeflatedNoLine=y;function b(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function x(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=b(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:b(e.name,t.name)}e.compareByGeneratedPositionsInflated=x;function S(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=S;function C(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var o=r.path.lastIndexOf(`/`);o>=0&&(r.path=r.path.substring(0,o+1))}t=l(a(r),t)}return c(t)}e.computeSourceURL=C})(jo),jo)}var Po={},Fo;function Io(){if(Fo)return Po;Fo=1;var e=No(),t=Object.prototype.hasOwnProperty,n=typeof Map<`u`;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,i){var a=n?r:e.toSetString(r),o=n?this.has(r):t.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(r),o||(n?this._set.set(r,s):this._set[a]=s)},r.prototype.has=function(r){if(n)return this._set.has(r);var i=e.toSetString(r);return t.call(this._set,i)},r.prototype.indexOf=function(r){if(n){var i=this._set.get(r);if(i>=0)return i}else{var a=e.toSetString(r);if(t.call(this._set,a))return this._set[a]}throw Error(`"`+r+`" is not in the set.`)},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},r.prototype.toArray=function(){return this._array.slice()},Po.ArraySet=r,Po}var Lo={},Ro;function zo(){if(Ro)return Lo;Ro=1;var e=No();function t(t,n){var r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||e.compareByGeneratedPositionsInflated(t,n)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){t(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||=(this._array.sort(e.compareByGeneratedPositionsInflated),!0),this._array},Lo.MappingList=n,Lo}var Bo;function Vo(){if(Bo)return wo;Bo=1;var e=Ao(),t=No(),n=Io().ArraySet,r=zo().MappingList;function i(e){e||={},this._file=t.getArg(e,`file`,null),this._sourceRoot=t.getArg(e,`sourceRoot`,null),this._skipValidation=t.getArg(e,`skipValidation`,!1),this._ignoreInvalidMapping=t.getArg(e,`ignoreInvalidMapping`,!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e,n){var r=e.sourceRoot,a=new i(Object.assign(n||{},{file:e.file,sourceRoot:r}));return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(n.source=e.source,r!=null&&(n.source=t.relative(r,n.source)),n.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(n.name=e.name)),a.addMapping(n)}),e.sources.forEach(function(n){var i=n;r!==null&&(i=t.relative(r,n)),a._sources.has(i)||a._sources.add(i);var o=e.sourceContentFor(n);o!=null&&a.setSourceContent(n,o)}),a},i.prototype.addMapping=function(e){var n=t.getArg(e,`generated`),r=t.getArg(e,`original`,null),i=t.getArg(e,`source`,null),a=t.getArg(e,`name`,null);!this._skipValidation&&this._validateMapping(n,r,i,a)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a}))},i.prototype.setSourceContent=function(e,n){var r=e;this._sourceRoot!=null&&(r=t.relative(this._sourceRoot,r)),n==null?this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[t.toSetString(r)]=n)},i.prototype.applySourceMap=function(e,r,i){var a=r;if(r==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=t.relative(o,a));var s=new n,c=new n;this._mappings.unsortedForEach(function(n){if(n.source===a&&n.originalLine!=null){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});r.source!=null&&(n.source=r.source,i!=null&&(n.source=t.join(i,n.source)),o!=null&&(n.source=t.relative(o,n.source)),n.originalLine=r.line,n.originalColumn=r.column,r.name!=null&&(n.name=r.name))}var l=n.source;l!=null&&!s.has(l)&&s.add(l);var u=n.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(n){var r=e.sourceContentFor(n);r!=null&&(i!=null&&(n=t.join(i,n)),o!=null&&(n=t.relative(o,n)),this.setSourceContent(n,r))},this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`){var i=`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`;if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)){var i=`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<`u`&&console.warn&&console.warn(i),!1;throw Error(i)}},i.prototype._serializeMappings=function(){for(var n=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(n=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!t.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=e.encode(u.generatedColumn-n),n=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=e.encode(f-s),s=f,l+=e.encode(u.originalLine-1-a),a=u.originalLine-1,l+=e.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=e.encode(d-o),o=d)),c+=l}return c},i.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;n!=null&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},wo.SourceMapGenerator=i,wo}var Ho={},Uo={},Wo;function Go(){return Wo?Uo:(Wo=1,(function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})(Uo),Uo)}var Ko={},qo;function Jo(){if(qo)return Ko;qo=1;function e(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l,!1)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}return r}function t(t){let n=e.toString();return Function(`return ${n}`)()(t)}let n=new WeakMap;return Ko.quickSort=function(e,r,i=0){let a=n.get(r);a===void 0&&(a=t(r),n.set(r,a)),a(e,r,i,e.length-1)},Ko}var Yo;function Xo(){if(Yo)return Ho;Yo=1;var e=No(),t=Go(),n=Io().ArraySet,r=Ao(),i=Jo().quickSort;function a(t,n){var r=t;return typeof t==`string`&&(r=e.parseSourceMapInput(t)),r.sections==null?new o(r,n):new u(r,n)}a.fromSourceMap=function(e,t){return o.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},a.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(t,n,r){var i=n||null,o=r||a.GENERATED_ORDER,s;switch(o){case a.GENERATED_ORDER:s=this._generatedMappings;break;case a.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}for(var c=this.sourceRoot,l=t.bind(i),u=this._names,d=this._sources,f=this._sourceMapURL,p=0,m=s.length;p<m;p++){var h=s[p],g=h.source===null?null:d.at(h.source);g!==null&&(g=e.computeSourceURL(c,g,f)),l({source:g,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:u.at(h.name)})}},a.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,`line`),i={source:e.getArg(n,`source`),originalLine:r,originalColumn:e.getArg(n,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(n.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},Ho.SourceMapConsumer=a;function o(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var a=e.getArg(i,`version`),o=e.getArg(i,`sources`),s=e.getArg(i,`names`,[]),c=e.getArg(i,`sourceRoot`,null),l=e.getArg(i,`sourcesContent`,null),u=e.getArg(i,`mappings`),d=e.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=e.normalize(c),o=o.map(String).map(e.normalize).map(function(t){return c&&e.isAbsolute(c)&&e.isAbsolute(t)?e.relative(c,t):t}),this._names=n.fromArray(s.map(String),!0),this._sources=n.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(t){return e.computeSourceURL(c,t,r)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=r,this.file=d}o.prototype=Object.create(a.prototype),o.prototype.consumer=a,o.prototype._findSourceIndex=function(t){var n=t;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1},o.fromSourceMap=function(t,r){var a=Object.create(o.prototype),c=a._names=n.fromArray(t._names.toArray(),!0),l=a._sources=n.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=r,a._absoluteSources=a._sources.toArray().map(function(t){return e.computeSourceURL(a.sourceRoot,t,r)});for(var u=t._mappings.toArray().slice(),d=a.__generatedMappings=[],f=a.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new s;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=c.indexOf(h.name)),f.push(g)),d.push(g)}return i(a.__originalMappings,e.compareByOriginalPositions),a},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let c=e.compareByGeneratedPositionsDeflatedNoLine;function l(e,t){let n=e.length,r=e.length-t;if(!(r<=1))if(r==2){let n=e[t],r=e[t+1];c(n,r)>0&&(e[t]=r,e[t+1]=n)}else if(r<20)for(let r=t;r<n;r++)for(let n=r;n>t;n--){let t=e[n-1],r=e[n];if(c(t,r)<=0)break;e[n-1]=r,e[n]=t}else i(e,c,t)}o.prototype._parseMappings=function(t,n){var a=1,o=0,c=0,u=0,d=0,f=0,p=t.length,m=0,h={},g=[],_=[],v,y,b,x;let S=0;for(;m<p;)if(t.charAt(m)===`;`)a++,m++,o=0,l(_,S),S=_.length;else if(t.charAt(m)===`,`)m++;else{for(v=new s,v.generatedLine=a,b=m;b<p&&!this._charIsMappingSeparator(t,b);b++);for(t.slice(m,b),y=[];m<b;)r.decode(t,m,h),x=h.value,m=h.rest,y.push(x);if(y.length===2)throw Error(`Found a source, but no line and column`);if(y.length===3)throw Error(`Found a source and line, but no column`);if(v.generatedColumn=o+y[0],o=v.generatedColumn,y.length>1&&(v.source=d+y[1],d+=y[1],v.originalLine=c+y[2],c=v.originalLine,v.originalLine+=1,v.originalColumn=u+y[3],u=v.originalColumn,y.length>4&&(v.name=f+y[4],f+=y[4])),_.push(v),typeof v.originalLine==`number`){let e=v.source;for(;g.length<=e;)g.push(null);g[e]===null&&(g[e]=[]),g[e].push(v)}}l(_,S),this.__generatedMappings=_;for(var C=0;C<g.length;C++)g[C]!=null&&i(g[C],e.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...g)},o.prototype._findMapping=function(e,n,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return t.search(e,n,a,o)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,`line`),generatedColumn:e.getArg(t,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,e.compareByGeneratedPositionsDeflated,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var o=e.getArg(i,`source`,null);o!==null&&(o=this._sources.at(o),o=e.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=e.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:o,line:e.getArg(i,`originalLine`,null),column:e.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},o.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=e.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=e.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},o.prototype.generatedPositionFor=function(t){var n=e.getArg(t,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,`line`),originalColumn:e.getArg(t,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:e.getArg(o,`generatedLine`,null),column:e.getArg(o,`generatedColumn`,null),lastColumn:e.getArg(o,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},Ho.BasicSourceMapConsumer=o;function u(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var o=e.getArg(i,`version`),s=e.getArg(i,`sections`);if(o!=this._version)throw Error(`Unsupported version: `+o);this._sources=new n,this._names=new n;var c={line:-1,column:0};this._sections=s.map(function(t){if(t.url)throw Error(`Support for url field in sections not implemented.`);var n=e.getArg(t,`offset`),i=e.getArg(n,`line`),o=e.getArg(n,`column`);if(i<c.line||i===c.line&&o<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new a(e.getArg(t,`map`),r)}})}return u.prototype=Object.create(a.prototype),u.prototype.constructor=a,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),u.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,`line`),generatedColumn:e.getArg(n,`column`)},i=t.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},u.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r||r===``)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},u.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(e.getArg(t,`source`))!==-1){var i=r.consumer.generatedPositionFor(t);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var a=this._sections[r],o=a.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=a.consumer._sources.at(c.source);l!==null&&(l=e.computeSourceURL(a.consumer.sourceRoot,l,this._sourceMapURL)),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=a.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(a.generatedOffset.generatedLine===c.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},Ho.IndexedSourceMapConsumer=u,Ho}var Zo={},Qo;function $o(){if(Qo)return Zo;Qo=1;var e=Vo().SourceMapGenerator,t=No(),n=/(\r?\n)/,r=10,i=`$$$isSourceNode$$$`;function a(e,t,n,r,a){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=a??null,this[i]=!0,r!=null&&this.add(r)}return a.fromStringWithSourceMap=function(e,r,i){var o=new a,s=e.split(n),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return r.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)o.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;o.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),o.add(s.splice(c).join(``))),r.sources.forEach(function(e){var n=r.sourceContentFor(e);n!=null&&(i!=null&&(e=t.join(i,e)),o.setSourceContent(e,n))}),o;function p(e,n){if(e===null||e.source===void 0)o.add(n);else{var r=i?t.join(i,e.source):e.source;o.add(new a(e.originalLine,e.originalColumn,r,n,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[i]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[i]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[i]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},a.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},a.prototype.walkSourceContents=function(e){for(var n=0,r=this.children.length;n<r;n++)this.children[n][i]&&this.children[n].walkSourceContents(e);for(var a=Object.keys(this.sourceContents),n=0,r=a.length;n<r;n++)e(t.fromSetString(a[n]),this.sourceContents[a[n]])},a.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},a.prototype.toStringWithSourceMap=function(t){var n={code:``,line:1,column:0},i=new e(t),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(i.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===r?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){i.setSourceContent(e,t)}),{code:n.code,map:i}},Zo.SourceNode=a,Zo}var es;function ts(){return es?Co:(es=1,Co.SourceMapGenerator=Vo().SourceMapGenerator,Co.SourceMapConsumer=Xo().SourceMapConsumer,Co.SourceNode=$o().SourceNode,Co)}var ns=ts(),rs=`/*@__PURE__*/`,is=e=>`${Xt[e]}: _${Xt[e]}`;function as(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Xt[e]}`},push(e,t=-2,n){if(p.code+=e,p.map){if(n){let e;if(n.type===4&&!n.isStatic){let t=n.content.replace(/^_ctx\./,``);t!==n.content&&Gi(t)&&(e=t)}n.loc.source&&h(n.loc.start,e)}t===-3?ia(p,e):(p.offset+=e.length,t===-2?p.column+=e.length:(t===-1&&(t=e.length-1),p.line++,p.column=e.length-t)),n&&n.loc!==L&&n.loc.source&&h(n.loc.end)}},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(`
|
|
11
11
|
`+` `.repeat(e),0)}function h(e,t=null){let{_names:n,_mappings:r}=p.map;t!==null&&!n.has(t)&&n.add(t),r.add({originalLine:e.line,originalColumn:e.column-1,generatedLine:p.line,generatedColumn:p.column-1,source:i,name:t})}return r&&(p.map=new ns.SourceMapGenerator,p.map.setSourceContent(i,p.source),p.map._sources.add(i)),p}function os(e,t={}){let n=as(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`,m=l!=null&&r===`module`,h=!!t.inline,g=h?as(e,t):n;r===`module`?cs(e,g,m,h):ss(e,g);let _=u?`ssrRender`:`render`,v=u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`];t.bindingMetadata&&!t.inline&&v.push(`$props`,`$setup`,`$data`,`$options`);let y=t.isTS?v.map(e=>`${e}: any`).join(`,`):v.join(`, `);if(i(h?`(${y}) => {`:`function ${_}(${y}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(is).join(`, `)} } = _Vue
|
|
12
12
|
`,-1),c())),e.components.length&&(ls(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(ls(e.directives,`directive`,n),e.temps>0&&c()),e.temps>0){i(`let `);for(let t=0;t<e.temps;t++)i(`${t>0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
@@ -22,7 +22,7 @@ const ${t.map(e=>`_${Xt[e]} = ${Xt[e]}`).join(`, `)}
|
|
|
22
22
|
`,-1)}e.ssrHelpers&&e.ssrHelpers.length&&i(`import { ${e.ssrHelpers.map(e=>`${Xt[e]} as _${Xt[e]}`).join(`, `)} } from "${c}"
|
|
23
23
|
`,-1),e.imports.length&&(ds(e.imports,t),a()),us(e.hoists,t),a(),r||i(`export `)}function ls(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`component`?wt:Et);for(let n=0;n<e.length;n++){let s=e[n],c=s.endsWith(`__self`);c&&(s=s.slice(0,-6)),r(`const ${va(s,t)} = ${o}(${JSON.stringify(s)}${c?`, true`:``})${a?`!`:``}`),n<e.length-1&&i()}}function us(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){let a=e[i];a&&(n(`const _hoisted_${i+1} = `),J(a,t),r())}t.pure=!1}function ds(e,t){e.length&&e.forEach(e=>{t.push(`import `),J(e.exp,t),t.push(` from '${e.path}'`),t.newline()})}function fs(e){return F(e)||e.type===4||e.type===2||e.type===5||e.type===8}function ps(e,t){let n=e.length>3||e.some(e=>P(e)||!fs(e));t.push(`[`),n&&t.indent(),ms(e,t,n),n&&t.deindent(),t.push(`]`)}function ms(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];F(s)?i(s,-3):P(s)?ps(s,t):J(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function J(e,t){if(F(e)){t.push(e,-3);return}if(pe(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:aa(e.codegenNode!=null,`Codegen node is missing for element/if/for node. Apply appropriate transforms first.`),J(e.codegenNode,t);break;case 2:hs(e,t);break;case 4:gs(e,t);break;case 5:_s(e,t);break;case 12:J(e.codegenNode,t);break;case 8:vs(e,t);break;case 3:bs(e,t);break;case 13:xs(e,t);break;case 14:Cs(e,t);break;case 15:ws(e,t);break;case 17:Ts(e,t);break;case 18:Es(e,t);break;case 19:Ds(e,t);break;case 20:Os(e,t);break;case 21:ms(e.body,t,!0,!1);break;case 22:ks(e,t);break;case 23:As(e,t);break;case 24:js(e,t);break;case 25:Ms(e,t);break;case 26:Ns(e,t);break;case 10:break;default:return aa(!1,`unhandled codegen node type: ${e.type}`),e}}function hs(e,t){t.push(JSON.stringify(e.content),-3,e)}function gs(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function _s(e,t){let{push:n,helper:r,pure:i}=t;i&&n(rs),n(`${r(Mt)}(`),J(e.content,t),n(`)`)}function vs(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];F(r)?t.push(r,-3):J(r,t)}}function ys(e,t){let{push:n}=t;e.type===8?(n(`[`),vs(e,t),n(`]`)):e.isStatic?n(Gi(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}function bs(e,t){let{push:n,helper:r,pure:i}=t;i&&n(rs),n(`${r(xt)}(${JSON.stringify(e.content)})`,-3,e)}function xs(e,t){let{push:n,helper:r,pure:i}=t,{tag:a,props:o,children:s,patchFlag:c,dynamicProps:l,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e,m;c&&(m=c<0?c+` /* ${Ae[c]} */`:c+` /* ${Object.keys(Ae).map(Number).filter(e=>e>0&&c&e).map(e=>Ae[e]).join(`, `)} */`),u&&n(r(Ot)+`(`),d&&n(`(${r(gt)}(${f?`true`:``}), `),i&&n(rs),n(r(d?yn(t.inSSR,p):vn(t.inSSR,p))+`(`,-2,e),ms(Ss([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),J(u,t),n(`)`))}function Ss(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(e=>e||`null`)}function Cs(e,t){let{push:n,helper:r,pure:i}=t,a=F(e.callee)?e.callee:r(e.callee);i&&n(rs),n(a+`(`,-2,e),ms(e.arguments,t),n(`)`)}function ws(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||o.some(e=>e.value.type!==4);n(s?`{`:`{ `),s&&r();for(let e=0;e<o.length;e++){let{key:r,value:i}=o[e];ys(r,t),n(`: `),J(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function Ts(e,t){ps(e.elements,t)}function Es(e,t){let{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:c,isSlot:l}=e;l&&n(`_${Xt[Gt]}(`),n(`(`,-2,e),P(a)?ms(a,t):a&&J(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),P(o)?ps(o,t):J(o,t)):s&&J(s,t),(c||s)&&(i(),n(`}`)),l&&n(`)`)}function Ds(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Gi(n.content);e&&o(`(`),gs(n,t),e&&o(`)`)}else o(`(`),J(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),J(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,J(i,t),u||t.indentLevel--,a&&c(!0)}function Os(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(Ht)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),J(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(Ht)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function ks(e,t){let{push:n,indent:r,deindent:i}=t;n("`");let a=e.elements.length,o=a>3;for(let s=0;s<a;s++){let a=e.elements[s];F(a)?n(a.replace(/(`|\$|\\)/g,`\\$1`),-3):(n("${"),o&&r(),J(a,t),o&&i(),n(`}`))}n("`")}function As(e,t){let{push:n,indent:r,deindent:i}=t,{test:a,consequent:o,alternate:s}=e;n(`if (`),J(a,t),n(`) {`),r(),J(o,t),i(),n(`}`),s&&(n(` else `),s.type===23?As(s,t):(n(`{`),r(),J(s,t),i(),n(`}`)))}function js(e,t){J(e.left,t),t.push(` = `),J(e.right,t)}function Ms(e,t){t.push(`(`),ms(e.expressions,t),t.push(`)`)}function Ns({returns:e},t){t.push(`return `),P(e)?ps(e,t):J(e,t)}var Ps=A(`true,false,null,this`),Fs=(e,t)=>{if(e.type===5)e.content=Is(e.content,t);else if(e.type===1){let n=W(e,`memo`);for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&i.name!==`for`){let e=i.exp,r=i.arg;e&&e.type===4&&!(i.name===`on`&&r)&&!(n&&r&&r.type===4&&r.content===`key`)&&(i.exp=Is(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=Is(r,t))}}}};function Is(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){if(!t.prefixIdentifiers||!e.content.trim())return e;let{inline:a,bindingMetadata:o}=t,s=(e,n,r)=>{let s=le(o,e)&&o[e];if(a){let a=n&&n.type===`AssignmentExpression`&&n.left===r,l=n&&n.type===`UpdateExpression`&&n.argument===r,u=n&&Ei(n,d),p=n&&Di(d),m=e=>{let n=`${t.helperString(Kt)}(${e})`;return p?`(${n})`:n};if(zs(s)||s===`setup-reactive-const`||i[e])return e;if(s===`setup-ref`)return`${e}.value`;if(s===`setup-maybe-ref`)return a||l||u?`${e}.value`:m(e);if(s===`setup-let`)if(a){let{right:r,operator:i}=n,a=Rs(Is(z(c.slice(r.start-1,r.end-1),!1),t,!1,!1,f));return`${t.helperString(qt)}(${e})${t.isTS?` //@ts-ignore
|
|
24
24
|
`:``} ? ${e}.value ${i} ${a} : ${e}`}else if(l){r.start=n.start,r.end=n.end;let{prefix:i,operator:a}=n,o=i?a:``,s=i?``:a;return`${t.helperString(qt)}(${e})${t.isTS?` //@ts-ignore
|
|
25
|
-
`:``} ? ${o}${e}.value${s} : ${o}${e}${s}`}else if(u)return e;else return m(e);else if(s===`props`)return Oe(e);else if(s===`props-aliased`)return Oe(o.__propsAliases[e])}else if(s&&s.startsWith(`setup`)||s===`literal-const`)return`$setup.${e}`;else if(s===`props-aliased`)return`$props['${o.__propsAliases[e]}']`;else if(s)return`$${s}.${e}`;return`_ctx.${e}`},c=e.content,l=e.ast;if(l===!1)return e;if(l===null||!l&&Gi(c)){let r=t.identifiers[c],i=Me(c),a=Ps(c);return!n&&!r&&!a&&(!i||o[c])?(zs(o[c])&&(e.constType=1),e.content=s(c)):r||(a?e.constType=3:e.constType=2),e}if(!l){let i=r?` ${c} `:`(${c})${n?`=>{}`:``}`;try{l=bi.parseExpression(i,{sourceType:`module`,plugins:t.expressionPlugins})}catch(n){return t.onError(U(46,e.loc,void 0,n.message)),e}}let u=[],d=[],f=Object.create(t.identifiers);wi(l,(e,t,n,r,i)=>{if(Ri(e,t))return;let a=r&&Ls(e);a&&!i?(Li(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=s(e.name,t,e),u.push(e)):(!(a&&i)&&(!t||t.type!==`CallExpression`&&t.type!==`NewExpression`&&t.type!==`MemberExpression`)&&(e.isConstant=!0),u.push(e))},!0,d,f);let p=[];u.sort((e,t)=>e.start-t.start),u.forEach((t,n)=>{let r=t.start-1,i=t.end-1,a=u[n-1],o=c.slice(a?a.end-1:0,r);(o.length||t.prefix)&&p.push(o+(t.prefix||``));let s=c.slice(r,i);p.push(z(t.name,!1,{start:ra(e.loc.start,s,r),end:ra(e.loc.start,s,i),source:s},t.isConstant?3:0)),n===u.length-1&&i<c.length&&p.push(c.slice(i))});let m;return p.length?(m=cn(p,e.loc),m.ast=l):(m=e,m.constType=3),m.identifiers=Object.keys(f),m}function Ls(e){return!(Me(e.name)||e.name===`require`)}function Rs(e){return F(e)?e:e.type===4?e.content:e.children.map(Rs).join(``)}function zs(e){return e===`setup-const`||e===`literal-const`}var Bs=So(/^(?:if|else|else-if)$/,(e,t,n)=>Vs(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Us(t,o,n);else{let r=Ks(e.codegenNode);r.alternate=Us(t,o+e.branches.length-1,n)}}}));function Vs(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=z(`true`,!1,r)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Is(t.exp,n)),t.name===`if`){let i=Hs(e,t),a={type:9,loc:to(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=[],o=i.indexOf(e);for(;o-->=-1;){let s=i[o];if(s&&wa(s)){n.removeNode(s),s.type===3&&a.unshift(s);continue}if(s&&s.type===9){(t.name===`else-if`||t.name===`else`)&&s.branches[s.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();let i=Hs(e,t);a.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag===`transition`||n.parent.tag===`Transition`))&&(i.children=[...a,...i.children]);{let e=i.userKey;e&&s.branches.forEach(({userKey:t})=>{Gs(t,e)&&n.onError(U(29,i.userKey.loc))})}s.branches.push(i);let o=r&&r(s,i,!1);xo(i,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function Hs(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!W(e,`for`)?e.children:[e],userKey:oa(e,`key`),isTemplateIf:n}}function Us(e,t,n){return e.condition?un(e.condition,Ws(e,t,n),B(n.helper(xt),[`"v-if"`,`true`])):Ws(e,t,n)}function Ws(e,t,n){let{helper:r}=n,i=R(`key`,z(`${t}`,!1,L,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return ga(e,i,n),e}else{let t=64;return!e.isTemplateIf&&a.filter(e=>e.type!==3).length===1&&(t|=2048),rn(n,r(dt),on([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}else{let e=o.codegenNode,t=ba(e);return t.type===13&&bn(t,n),ga(t,i,n),e}}function Gs(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ks(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var qs=So(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Js(e,t,n,t=>{let a=B(r(kt),[t.source]),o=fa(e),s=W(e,`memo`),c=oa(e,`key`,!1,!0),l=c&&c.type===7,u=c&&(c.type===6?c.value?z(c.value.content,!0):void 0:c.exp),d=u?R(`key`,u):null;o&&s&&(s.exp=Is(s.exp,n)),(o||s)&&d&&l&&(u=c.exp=d.value=Is(d.value,n));let f=t.source.type===4&&t.source.constType>0,p=f?64:c?128:256;return t.codegenNode=rn(n,r(dt),void 0,a,p,void 0,void 0,!0,!f,!1,e.loc),()=>{let c,{children:l}=t;o&&e.children.some(e=>{if(e.type===1){let t=oa(e,`key`);if(t)return n.onError(U(33,t.loc)),!0}});let p=l.length!==1||l[0].type!==1,m=pa(e)?e:o&&e.children.length===1&&pa(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&d&&ga(c,d,n)):p?c=rn(n,r(dt),d?on([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=l[0].codegenNode,o&&d&&ga(c,d,n),c.isBlock!==!f&&(c.isBlock?(i(gt),i(yn(n.inSSR,c.isComponent))):i(vn(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(gt),r(yn(n.inSSR,c.isComponent))):r(vn(n.inSSR,c.isComponent))),s){let e=ln(Xs(t.parseResult,[z(`_cached`)]));e.body=fn([cn([`const _memo = (`,s.exp,`)`]),cn([`if (_cached && _cached.el`,...u?[` && _cached.key === `,u]:[],` && ${n.helperString(Yt)}(_cached, _memo)) return _cached`]),cn([`const _item = `,c]),z(`_item.memo = _memo`),z(`return _item`)]),a.arguments.push(e,z(`_cache`),z(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ln(Xs(t.parseResult),c,!0))}})});function Js(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(U(32,t.loc));return}Ys(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fa(e)?e.children:[e]};n.replaceNode(f),s.vFor++,n.prefixIdentifiers&&(l&&a(l),u&&a(u),d&&a(d));let p=r&&r(f);return()=>{s.vFor--,n.prefixIdentifiers&&(l&&o(l),u&&o(u),d&&o(d)),p&&p()}}function Ys(e,t){e.finalized||=(t.prefixIdentifiers&&(e.source=Is(e.source,t),e.key&&=Is(e.key,t,!0),e.index&&=Is(e.index,t,!0),e.value&&=Is(e.value,t,!0)),!0)}function Xs({value:e,key:t,index:n},r=[]){return Zs([e,t,n,...r])}function Zs(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),!1))}var Qs=z(`undefined`,!1),$s=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=W(e,`slot`);if(n){let e=n.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},ec=(e,t)=>{let n;if(fa(e)&&e.props.some(da)&&(n=W(e,`for`))){let e=n.forParseResult;if(e){Ys(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},tc=(e,t,n,r)=>ln(e,n,!1,!0,n.length?n[0].loc:r);function nc(e,t,n=tc){t.helper(Gt);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(s=e.props.some(e=>da(e)&&(ya(e.arg,t.identifiers)||ya(e.exp,t.identifiers)))||r.some(e=>ya(e,t.identifiers)));let c=W(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Hi(e)&&(s=!0),a.push(R(e||z(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fa(i)||!(m=W(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(U(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=z(`default`,!0),exp:v,loc:y}=m,b;Hi(_)?b=_?_.content:`default`:s=!0;let x=W(i,`for`),S=n(v,x,h,g),C,w;if(C=W(i,`if`))s=!0,o.push(un(C.exp,rc(_,S,p++),Qs));else if(w=W(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],wa(i)););if(i&&fa(i)&&W(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?un(w.exp,rc(_,S,p++),Qs):rc(_,S,p++)}else t.onError(U(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Ys(e,t),o.push(B(t.helper(kt),[e.source,ln(Xs(e),rc(_,S),!0)]))):t.onError(U(32,x.loc))}else{if(b){if(f.has(b)){t.onError(U(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(R(_,S))}}if(!c){let e=(e,t)=>R(`default`,n(e,void 0,t,i));l?d.length&&!d.every(Ca)&&(u?t.onError(U(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:ic(e.children)?3:1,h=on(a.concat(R(`_`,z(m+` /* ${je[m]} */`,!1))),i);return o.length&&(h=B(t.helper(jt),[h,an(o)])),{slots:h,hasDynamicSlots:s}}function rc(e,t,n){let r=[R(`name`,e),R(`fn`,t)];return n!=null&&r.push(R(`key`,z(String(n),!0))),on(r)}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||ic(n.children))return!0;break;case 9:if(ic(n.branches))return!0;break;case 10:case 11:if(ic(n.children))return!0;break}}return!1}var ac=new WeakMap,oc=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sc(e,t):`"${n}"`,o=me(a)&&a.callee===Tt,s,c,l=0,u,d,f,p=o||a===ft||a===pt||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=lc(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?an(r.map(e=>fc(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===mt&&(p=!0,l|=1024,e.children.length>1&&t.onError(U(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}))),i&&a!==ft&&a!==mt){let{slots:n,hasDynamicSlots:r}=nc(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ft){let n=e.children[0],r=n.type,i=r===5||r===8;i&&fo(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=pc(d)),e.codegenNode=rn(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function sc(e,t,n=!1){let{tag:r}=e,i=mc(r),a=oa(e,`is`,!1,!0);if(a)if(i){let e;if(a.type===6?e=a.value&&z(a.value.content,!0):(e=a.exp,e||=(e=z(`is`,!1,a.arg.loc),a.exp=Is(e,t))),e)return B(t.helper(Tt),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Ui(r)||t.isBuiltInComponent(r);if(o)return n||t.helper(o),o;{let e=cc(r,t);if(e)return e;let n=r.indexOf(`.`);if(n>0){let e=cc(r.slice(0,n),t);if(e)return e+r.slice(n)}}return t.selfName&&Te(Se(r))===t.selfName?(t.helper(wt),t.components.add(r+`__self`),va(r,`component`)):(t.helper(wt),t.components.add(r),va(r,`component`))}function cc(e,t){let n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;let r=Se(e),i=Te(r),a=t=>{if(n[e]===t)return e;if(n[r]===t)return r;if(n[i]===t)return i},o=a(`setup-const`)||a(`setup-reactive-const`)||a(`literal-const`);if(o)return t.inline?o:`$setup[${JSON.stringify(o)}]`;let s=a(`setup-let`)||a(`setup-ref`)||a(`setup-maybe-ref`);if(s)return t.inline?`${t.helperString(Kt)}(${s})`:`$setup[${JSON.stringify(s)}]`;let c=a(`props`);if(c)return`${t.helperString(Kt)}(${t.inline?`__props`:`$props`}[${JSON.stringify(c)}])`}function lc(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(on(uc(l),s)),l=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&l.push(R(z(`ref_for`,!0),z(`true`)))},w=({key:e,value:n})=>{if(Hi(e)){let a=e.content,o=N(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&fo(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c,a=!0;if(n===`ref`&&(h=!0,C(),i&&t.inline)){let e=t.bindingMetadata[i.content];(e===`setup-let`||e===`setup-ref`||e===`setup-maybe-ref`)&&(a=!1,l.push(R(z(`ref_key`,!0),z(i.content,!0,i.loc))))}if(n===`is`&&(mc(o)||i&&i.content.startsWith(`vue:`)))continue;l.push(R(z(n,!0,r),z(i?i.content:``,a,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(U(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sa(i,`is`)&&mc(o)||b&&a)continue;if((v&&sa(i,`key`)||b&&f&&sa(i,`vue:before-update`))&&(p=!0),v&&sa(i,`ref`)&&C(),!i&&(v||b)){y=!0,h?v?(C(),S(),u.push(h)):S({type:14,loc:g,callee:t.helper(Rt),arguments:r?[h]:[h,`true`]}):t.onError(U(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(w),b&&i&&!Hi(i)?S(on(n,s)):l.push(...n),r&&(d.push(c),pe(r)&&ac.set(c,r))}else ye(n)||(d.push(c),f&&(p=!0))}}let T;if(u.length?(S(),T=u.length>1?B(t.helper(Nt),u,s):u[0]):l.length&&(T=on(uc(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<T.properties.length;t++){let i=T.properties[t].key;Hi(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=T.properties[e],a=T.properties[n];r?T=B(t.helper(It),[T]):(i&&!Hi(i.value)&&(i.value=B(t.helper(Pt),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=B(t.helper(Ft),[a.value])));break;case 14:break;default:T=B(t.helper(It),[B(t.helper(Lt),[T])]);break}return{props:T,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function uc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||N(a))&&dc(o,i):(t.set(a,i),n.push(i))}return n}function dc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=an([e.value,t.value],e.loc)}function fc(e,t){let n=[],r=ac.get(e);if(r)n.push(t.helperString(r));else{let r=cc(`v-`+e.name,t);r?n.push(r):(t.helper(Et),t.directives.add(e.name),n.push(va(e.name,`directive`)))}let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=z(`true`,!1,i);n.push(on(e.modifiers.map(e=>R(e,t)),i))}return an(n,e.loc)}function pc(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function mc(e){return e===`component`||e===`Component`}var hc=(e,t)=>{if(pa(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=gc(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=ln([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=B(t.helper(At),o,r)}};function gc(e,t){let n=`"default"`,r,i=[];for(let r=0;r<e.props.length;r++){let a=e.props[r];a.type===6?a.value&&(a.name===`name`?n=JSON.stringify(a.value.content):(a.name=Se(a.name),i.push(a))):a.name===`bind`&&sa(a.arg,`name`)?a.exp?n=a.exp:a.arg&&a.arg.type===4&&(n=a.exp=z(Se(a.arg.content),!1,a.arg.loc),n=a.exp=Is(a.exp,t)):(a.name===`bind`&&a.arg&&Hi(a.arg)&&(a.arg.content=Se(a.arg.content)),i.push(a))}if(i.length>0){let{props:n,directives:a}=lc(e,t,i,!1,!1);r=n,a.length&&t.onError(U(36,a[0].loc))}return{slotName:n,slotProps:r}}var _c=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(U(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vnode`)&&n.onError(U(52,o.loc)),e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=z(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?Ee(Se(e)):`on:${e}`,!0,o.loc)}else s=cn([`${n.helperString(Vt)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Vt)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let r=Qi(c,n),i=!(r||na(c,n)),a=c.content.includes(`;`);n.prefixIdentifiers&&(i&&n.addIdentifiers(`$event`),c=e.exp=Is(c,n,!1,a),i&&n.removeIdentifiers(`$event`),l=n.cacheHandlers&&!n.inVOnce&&!(c.type===4&&c.constType>0)&&!(r&&t.tagType===1)&&!ya(c,n.identifiers),l&&r&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children,` && `,...c.children,`(...args)`])),(i||l&&r)&&(c=cn([`${i?n.isTS?`($event: any)`:`$event`:`${n.isTS?`
|
|
25
|
+
`:``} ? ${o}${e}.value${s} : ${o}${e}${s}`}else if(u)return e;else return m(e);else if(s===`props`)return Oe(e);else if(s===`props-aliased`)return Oe(o.__propsAliases[e])}else if(s&&s.startsWith(`setup`)||s===`literal-const`)return`$setup.${e}`;else if(s===`props-aliased`)return`$props['${o.__propsAliases[e]}']`;else if(s)return`$${s}.${e}`;return`_ctx.${e}`},c=e.content,l=e.ast;if(l===!1)return e;if(l===null||!l&&Gi(c)){let r=t.identifiers[c],i=Me(c),a=Ps(c);return!n&&!r&&!a&&(!i||o[c])?(zs(o[c])&&(e.constType=1),e.content=s(c)):r||(a?e.constType=3:e.constType=2),e}if(!l){let i=r?` ${c} `:`(${c})${n?`=>{}`:``}`;try{l=bi.parseExpression(i,{sourceType:`module`,plugins:t.expressionPlugins})}catch(n){return t.onError(U(46,e.loc,void 0,n.message)),e}}let u=[],d=[],f=Object.create(t.identifiers);wi(l,(e,t,n,r,i)=>{if(Ri(e,t))return;let a=r&&Ls(e);a&&!i?(Li(t)&&t.shorthand&&(e.prefix=`${e.name}: `),e.name=s(e.name,t,e),u.push(e)):(!(a&&i)&&(!t||t.type!==`CallExpression`&&t.type!==`NewExpression`&&t.type!==`MemberExpression`)&&(e.isConstant=!0),u.push(e))},!0,d,f);let p=[];u.sort((e,t)=>e.start-t.start),u.forEach((t,n)=>{let r=t.start-1,i=t.end-1,a=u[n-1],o=c.slice(a?a.end-1:0,r);(o.length||t.prefix)&&p.push(o+(t.prefix||``));let s=c.slice(r,i);p.push(z(t.name,!1,{start:ra(e.loc.start,s,r),end:ra(e.loc.start,s,i),source:s},t.isConstant?3:0)),n===u.length-1&&i<c.length&&p.push(c.slice(i))});let m;return p.length?(m=cn(p,e.loc),m.ast=l):(m=e,m.constType=3),m.identifiers=Object.keys(f),m}function Ls(e){return!(Me(e.name)||e.name===`require`)}function Rs(e){return F(e)?e:e.type===4?e.content:e.children.map(Rs).join(``)}function zs(e){return e===`setup-const`||e===`literal-const`}var Bs=So(/^(?:if|else|else-if)$/,(e,t,n)=>Vs(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=Us(t,o,n);else{let r=Ks(e.codegenNode);r.alternate=Us(t,o+e.branches.length-1,n)}}}));function Vs(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(U(28,t.loc)),t.exp=z(`true`,!1,r)}if(n.prefixIdentifiers&&t.exp&&(t.exp=Is(t.exp,n)),t.name===`if`){let i=Hs(e,t),a={type:9,loc:to(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=[],o=i.indexOf(e);for(;o-->=-1;){let s=i[o];if(s&&wa(s)){n.removeNode(s),s.type===3&&a.unshift(s);continue}if(s&&s.type===9){(t.name===`else-if`||t.name===`else`)&&s.branches[s.branches.length-1].condition===void 0&&n.onError(U(30,e.loc)),n.removeNode();let i=Hs(e,t);a.length&&!(n.parent&&n.parent.type===1&&(n.parent.tag===`transition`||n.parent.tag===`Transition`))&&(i.children=[...a,...i.children]);{let e=i.userKey;e&&s.branches.forEach(({userKey:t})=>{Gs(t,e)&&n.onError(U(29,i.userKey.loc))})}s.branches.push(i);let o=r&&r(s,i,!1);xo(i,n),o&&o(),n.currentNode=null}else n.onError(U(30,e.loc));break}}}function Hs(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!W(e,`for`)?e.children:[e],userKey:oa(e,`key`),isTemplateIf:n}}function Us(e,t,n){return e.condition?un(e.condition,Ws(e,t,n),B(n.helper(xt),[`"v-if"`,`true`])):Ws(e,t,n)}function Ws(e,t,n){let{helper:r}=n,i=R(`key`,z(`${t}`,!1,L,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return ga(e,i,n),e}else{let t=64;return!e.isTemplateIf&&a.filter(e=>e.type!==3).length===1&&(t|=2048),rn(n,r(dt),on([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}else{let e=o.codegenNode,t=ba(e);return t.type===13&&bn(t,n),ga(t,i,n),e}}function Gs(e,t){if(!e||e.type!==t.type)return!1;if(e.type===6){if(e.value.content!==t.value.content)return!1}else{let n=e.exp,r=t.exp;if(n.type!==r.type||n.type!==4||n.isStatic!==r.isStatic||n.content!==r.content)return!1}return!0}function Ks(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}var qs=So(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return Js(e,t,n,t=>{let a=B(r(kt),[t.source]),o=fa(e),s=W(e,`memo`),c=oa(e,`key`,!1,!0),l=c&&c.type===7,u=c&&(c.type===6?c.value?z(c.value.content,!0):void 0:c.exp),d=u?R(`key`,u):null;o&&s&&(s.exp=Is(s.exp,n)),(o||s)&&d&&l&&(u=c.exp=d.value=Is(d.value,n));let f=t.source.type===4&&t.source.constType>0,p=f?64:c?128:256;return t.codegenNode=rn(n,r(dt),void 0,a,p,void 0,void 0,!0,!f,!1,e.loc),()=>{let c,{children:l}=t;o&&e.children.some(e=>{if(e.type===1){let t=oa(e,`key`);if(t)return n.onError(U(33,t.loc)),!0}});let p=l.length!==1||l[0].type!==1,m=pa(e)?e:o&&e.children.length===1&&pa(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&d&&ga(c,d,n)):p?c=rn(n,r(dt),d?on([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=l[0].codegenNode,o&&d&&ga(c,d,n),c.isBlock!==!f&&(c.isBlock?(i(gt),i(yn(n.inSSR,c.isComponent))):i(vn(n.inSSR,c.isComponent))),c.isBlock=!f,c.isBlock?(r(gt),r(yn(n.inSSR,c.isComponent))):r(vn(n.inSSR,c.isComponent))),s){let e=ln(Xs(t.parseResult,[z(`_cached`)]));e.body=fn([cn([`const _memo = (`,s.exp,`)`]),cn([`if (_cached && _cached.el`,...u?[` && _cached.key === `,u]:[],` && ${n.helperString(Yt)}(_cached, _memo)) return _cached`]),cn([`const _item = `,c]),z(`_item.memo = _memo`),z(`return _item`)]),a.arguments.push(e,z(`_cache`),z(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(ln(Xs(t.parseResult),c,!0))}})});function Js(e,t,n,r){if(!t.exp){n.onError(U(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(U(32,t.loc));return}Ys(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fa(e)?e.children:[e]};n.replaceNode(f),s.vFor++,n.prefixIdentifiers&&(l&&a(l),u&&a(u),d&&a(d));let p=r&&r(f);return()=>{s.vFor--,n.prefixIdentifiers&&(l&&o(l),u&&o(u),d&&o(d)),p&&p()}}function Ys(e,t){e.finalized||=(t.prefixIdentifiers&&(e.source=Is(e.source,t),e.key&&=Is(e.key,t,!0),e.index&&=Is(e.index,t,!0),e.value&&=Is(e.value,t,!0)),!0)}function Xs({value:e,key:t,index:n},r=[]){return Zs([e,t,n,...r])}function Zs(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||z(`_`.repeat(t+1),!1))}var Qs=z(`undefined`,!1),$s=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=W(e,`slot`);if(n){let e=n.exp;return t.prefixIdentifiers&&e&&t.addIdentifiers(e),t.scopes.vSlot++,()=>{t.prefixIdentifiers&&e&&t.removeIdentifiers(e),t.scopes.vSlot--}}}},ec=(e,t)=>{let n;if(fa(e)&&e.props.some(da)&&(n=W(e,`for`))){let e=n.forParseResult;if(e){Ys(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},tc=(e,t,n,r)=>ln(e,n,!1,!0,n.length?n[0].loc:r);function nc(e,t,n=tc){t.helper(Gt);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0;!t.ssr&&t.prefixIdentifiers&&(s=e.props.some(e=>da(e)&&(ya(e.arg,t.identifiers)||ya(e.exp,t.identifiers)))||r.some(e=>ya(e,t.identifiers)));let c=W(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Hi(e)&&(s=!0),a.push(R(e||z(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fa(i)||!(m=W(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(U(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=z(`default`,!0),exp:v,loc:y}=m,b;Hi(_)?b=_?_.content:`default`:s=!0;let x=W(i,`for`),S=n(v,x,h,g),C,w;if(C=W(i,`if`))s=!0,o.push(un(C.exp,rc(_,S,p++),Qs));else if(w=W(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],wa(i)););if(i&&fa(i)&&W(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?un(w.exp,rc(_,S,p++),Qs):rc(_,S,p++)}else t.onError(U(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(Ys(e,t),o.push(B(t.helper(kt),[e.source,ln(Xs(e),rc(_,S),!0)]))):t.onError(U(32,x.loc))}else{if(b){if(f.has(b)){t.onError(U(38,y));continue}f.add(b),b==="default"&&(u=!0)}a.push(R(_,S))}}if(!c){let e=(e,t)=>R(`default`,n(e,void 0,t,i));l?d.length&&!d.every(Ca)&&(u?t.onError(U(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:ic(e.children)?3:1,h=on(a.concat(R(`_`,z(m+` /* ${je[m]} */`,!1))),i);return o.length&&(h=B(t.helper(jt),[h,an(o)])),{slots:h,hasDynamicSlots:s}}function rc(e,t,n){let r=[R(`name`,e),R(`fn`,t)];return n!=null&&r.push(R(`key`,z(String(n),!0))),on(r)}function ic(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||ic(n.children))return!0;break;case 9:if(ic(n.branches))return!0;break;case 10:case 11:if(ic(n.children))return!0;break}}return!1}var ac=new WeakMap,oc=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?sc(e,t):`"${n}"`,o=me(a)&&a.callee===Tt,s,c,l=0,u,d,f,p=o||a===ft||a===pt||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=lc(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?an(r.map(e=>fc(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===mt&&(p=!0,l|=1024,e.children.length>1&&t.onError(U(47,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}))),i&&a!==ft&&a!==mt){let{slots:n,hasDynamicSlots:r}=nc(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==ft){let n=e.children[0],r=n.type,i=r===5||r===8;i&&fo(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=pc(d)),e.codegenNode=rn(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)};function sc(e,t,n=!1){let{tag:r}=e,i=mc(r),a=oa(e,`is`,!1,!0);if(a)if(i){let e;if(a.type===6?e=a.value&&z(a.value.content,!0):(e=a.exp,e||=(e=z(`is`,!1,a.arg.loc),a.exp=Is(e,t))),e)return B(t.helper(Tt),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=Ui(r)||t.isBuiltInComponent(r);if(o)return n||t.helper(o),o;{let e=cc(r,t);if(e)return e;let n=r.indexOf(`.`);if(n>0){let e=cc(r.slice(0,n),t);if(e)return e+r.slice(n)}}return t.selfName&&Te(Se(r))===t.selfName?(t.helper(wt),t.components.add(r+`__self`),va(r,`component`)):(t.helper(wt),t.components.add(r),va(r,`component`))}function cc(e,t){let n=t.bindingMetadata;if(!n||n.__isScriptSetup===!1)return;let r=Se(e),i=Te(r),a=t=>{if(n[e]===t)return e;if(n[r]===t)return r;if(n[i]===t)return i},o=a(`setup-const`)||a(`setup-reactive-const`)||a(`literal-const`);if(o)return t.inline?o:`$setup[${JSON.stringify(o)}]`;let s=a(`setup-let`)||a(`setup-ref`)||a(`setup-maybe-ref`);if(s)return t.inline?`${t.helperString(Kt)}(${s})`:`$setup[${JSON.stringify(s)}]`;let c=a(`props`);if(c)return`${t.helperString(Kt)}(${t.inline?`__props`:`$props`}[${JSON.stringify(c)}])`}function lc(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],S=e=>{l.length&&(u.push(on(uc(l),s)),l=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&l.push(R(z(`ref_for`,!0),z(`true`)))},w=({key:e,value:n})=>{if(Hi(e)){let a=e.content,o=N(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&fo(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c,a=!0;if(n===`ref`&&(h=!0,C(),i&&t.inline)){let e=t.bindingMetadata[i.content];(e===`setup-let`||e===`setup-ref`||e===`setup-maybe-ref`)&&(a=!1,l.push(R(z(`ref_key`,!0),z(i.content,!0,i.loc))))}if(n===`is`&&(mc(o)||i&&i.content.startsWith(`vue:`)))continue;l.push(R(z(n,!0,r),z(i?i.content:``,a,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(U(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sa(i,`is`)&&mc(o)||b&&a)continue;if((v&&sa(i,`key`)||b&&f&&sa(i,`vue:before-update`))&&(p=!0),v&&sa(i,`ref`)&&C(),!i&&(v||b)){y=!0,h?v?(C(),S(),u.push(h)):S({type:14,loc:g,callee:t.helper(Rt),arguments:r?[h]:[h,`true`]}):t.onError(U(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(w),b&&i&&!Hi(i)?S(on(n,s)):l.push(...n),r&&(d.push(c),pe(r)&&ac.set(c,r))}else ye(n)||(d.push(c),f&&(p=!0))}}let T;if(u.length?(S(),T=u.length>1?B(t.helper(Nt),u,s):u[0]):l.length&&(T=on(uc(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&T)switch(T.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<T.properties.length;t++){let i=T.properties[t].key;Hi(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=T.properties[e],a=T.properties[n];r?T=B(t.helper(It),[T]):(i&&!Hi(i.value)&&(i.value=B(t.helper(Pt),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=B(t.helper(Ft),[a.value])));break;case 14:break;default:T=B(t.helper(It),[B(t.helper(Lt),[T])]);break}return{props:T,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function uc(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||N(a))&&dc(o,i):(t.set(a,i),n.push(i))}return n}function dc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=an([e.value,t.value],e.loc)}function fc(e,t){let n=[],r=ac.get(e);if(r)n.push(t.helperString(r));else{let r=cc(`v-`+e.name,t);r?n.push(r):(t.helper(Et),t.directives.add(e.name),n.push(va(e.name,`directive`)))}let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=z(`true`,!1,i);n.push(on(e.modifiers.map(e=>R(e,t)),i))}return an(n,e.loc)}function pc(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function mc(e){return e===`component`||e===`Component`}var hc=(e,t)=>{if(pa(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=gc(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=ln([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=B(t.helper(At),o,r)}};function gc(e,t){let n=`"default"`,r,i=[];for(let r=0;r<e.props.length;r++){let a=e.props[r];a.type===6?a.value&&(a.name===`name`?n=JSON.stringify(a.value.content):(a.name=Se(a.name),i.push(a))):a.name===`bind`&&sa(a.arg,`name`)?a.exp?n=a.exp:a.arg&&a.arg.type===4&&(n=a.exp=z(Se(a.arg.content),!1,a.arg.loc),n=a.exp=Is(a.exp,t)):(a.name===`bind`&&a.arg&&Hi(a.arg)&&(a.arg.content=Se(a.arg.content)),i.push(a))}if(i.length>0){let{props:n,directives:a}=lc(e,t,i,!1,!1);r=n,a.length&&t.onError(U(36,a[0].loc))}return{slotName:n,slotProps:r}}var _c=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:o}=e;!e.exp&&!a.length&&n.onError(U(35,i));let s;if(o.type===4)if(o.isStatic){let e=o.content;e.startsWith(`vnode`)&&n.onError(U(52,o.loc)),e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),s=z(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?Ee(Se(e)):`on:${e}`,!0,o.loc)}else s=cn([`${n.helperString(Vt)}(`,o,`)`]);else s=o,s.children.unshift(`${n.helperString(Vt)}(`),s.children.push(`)`);let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){let r=Qi(c,n),i=!(r||na(c,n)),a=c.content.includes(`;`);n.prefixIdentifiers&&(i&&n.addIdentifiers(`$event`),c=e.exp=Is(c,n,!1,a),i&&n.removeIdentifiers(`$event`),l=n.cacheHandlers&&!n.inVOnce&&!(c.type===4&&c.constType>0)&&!(r&&t.tagType===1)&&!ya(c,n.identifiers),l&&r&&(c.type===4?c.content=`${c.content} && ${c.content}(...args)`:c.children=[...c.children,` && `,...c.children,`(...args)`])),(i||l&&r)&&(c=cn([`${i?n.isTS?`($event: any)`:`$event`:`${n.isTS?`
|
|
26
26
|
//@ts-ignore
|
|
27
27
|
`:``}(...args)`} => ${a?`{`:`(`}`,c,a?`}`:`)`]))}let u={props:[R(s,c||z(`() => {}`,!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},vc=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:o}=e;return o&&o.type===4&&!o.content.trim()?(n.onError(U(34,i)),{props:[R(a,z(``,!0,i))]}):(a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=Se(a.content):a.content=`${n.helperString(zt)}(${a.content})`:(a.children.unshift(`${n.helperString(zt)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&yc(a,`.`),r.some(e=>e.content===`attr`)&&yc(a,`^`)),{props:[R(a,o)]})},yc=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},bc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(la(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(la(a))r||=n[e]=cn([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name]))))for(let e=0;e<n.length;e++){let r=n[e];if(la(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&fo(r,t)===0&&i.push(`1 /* ${Ae[1]} */`),n[e]={type:12,content:r,loc:r.loc,codegenNode:B(t.helper(St),i)}}}}},xc=new WeakSet,Sc=(e,t)=>{if(e.type===1&&W(e,`once`,!0))return xc.has(e)||t.inVOnce||t.inSSR?void 0:(xc.add(e),t.inVOnce=!0,t.helper(Ht),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Cc=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(U(41,e.loc)),wc();let a=r.loc.source.trim(),o=r.type===4?r.content:a,s=n.bindingMetadata[a];if(s===`props`||s===`props-aliased`)return n.onError(U(44,r.loc)),wc();if(s===`literal-const`||s===`setup-const`)return n.onError(U(45,r.loc)),wc();let c=n.inline&&(s===`setup-let`||s===`setup-ref`||s===`setup-maybe-ref`);if(!o.trim()||!Qi(r,n)&&!c)return n.onError(U(42,r.loc)),wc();if(n.prefixIdentifiers&&Gi(o)&&n.identifiers[o])return n.onError(U(43,r.loc)),wc();let l=i||z(`modelValue`,!0),u=i?Hi(i)?`onUpdate:${Se(i.content)}`:cn([`"onUpdate:" + `,i]):`onUpdate:modelValue`,d,f=n.isTS?`($event: any)`:`$event`;if(c)if(s===`setup-ref`)d=cn([`${f} => ((`,z(a,!1,r.loc),`).value = $event)`]);else{let e=s===`setup-let`?`${a} = $event`:`null`;d=cn([`${f} => (${n.helperString(qt)}(${a}) ? (`,z(a,!1,r.loc),`).value = $event : ${e})`])}else d=cn([`${f} => ((`,r,`) = $event)`]);let p=[R(l,e.exp),R(u,d)];if(n.prefixIdentifiers&&!n.inVOnce&&n.cacheHandlers&&!ya(r,n.identifiers)&&(p[1].value=n.cache(p[1].value)),e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Gi(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Hi(i)?`${i.content}Modifiers`:cn([i,` + "Modifiers"`]):`modelModifiers`;p.push(R(n,z(`{ ${t} }`,!1,e.loc,2)))}return wc(p)};function wc(e=[]){return{props:e}}var Tc=new WeakSet,Ec=(e,t)=>{if(e.type===1){let n=W(e,`memo`);return!n||Tc.has(e)||t.inSSR?void 0:(Tc.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&bn(r,t),e.codegenNode=B(t.helper(Jt),[n.exp,ln(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Dc=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&!n.exp&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(U(53,e.loc)),n.exp=z(``,!0,e.loc);else{let t=Se(e.content);(Ki.test(t[0])||t[0]===`-`)&&(n.exp=z(t,!1,e.loc))}}}};function Oc(e){return[[Dc,Sc,Bs,Ec,qs,...e?[ec,Fs]:[],hc,oc,$s,bc],{on:_c,bind:vc,model:Cc}]}function kc(e,t={}){let n=t.onError||di,r=t.mode===`module`,i=t.prefixIdentifiers===!0||r;!i&&t.cacheHandlers&&n(U(50)),t.scopeId&&!r&&n(U(51));let a=se({},t,{prefixIdentifiers:i}),o=F(e)?so(e,a):e,[s,c]=Oc(i);if(t.isTS){let{expressionPlugins:e}=t;(!e||!e.includes(`typescript`))&&(t.expressionPlugins=[...e||[],`typescript`])}return vo(o,se({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:se({},c,t.directiveTransforms||{})})),os(o,a)}var Ac={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},jc=()=>({props:[]}),Mc=Symbol(`vModelRadio`),Nc=Symbol(`vModelCheckbox`),Pc=Symbol(`vModelText`),Fc=Symbol(`vModelSelect`),Ic=Symbol(`vModelDynamic`),Lc=Symbol(`vOnModifiersGuard`),Rc=Symbol(`vOnKeysGuard`),zc=Symbol(`vShow`),Bc=Symbol(`Transition`),Vc=Symbol(`TransitionGroup`);Zt({[Mc]:`vModelRadio`,[Nc]:`vModelCheckbox`,[Pc]:`vModelText`,[Fc]:`vModelSelect`,[Ic]:`vModelDynamic`,[Lc]:`withModifiers`,[Rc]:`withKeys`,[zc]:`vShow`,[Bc]:`Transition`,[Vc]:`TransitionGroup`});var Hc={parseMode:`html`,isVoidTag:Ye,isNativeTag:e=>Ke(e)||qe(e)||Je(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:void 0,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return Bc;if(e===`TransitionGroup`||e===`transition-group`)return Vc},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},Uc=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:z(`style`,!0,t.loc),exp:Wc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Wc=(e,t)=>{let n=ze(e);return z(JSON.stringify(n),!1,t,3)};function Gc(e,t){return U(e,t,qc)}var Kc={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},qc={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},Jc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(54,i)),t.children.length&&(n.onError(Gc(55,i)),t.children.length=0),{props:[R(z(`innerHTML`,!0,i),r||z(``,!0))]}},Yc=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(56,i)),t.children.length&&(n.onError(Gc(57,i)),t.children.length=0),{props:[R(z(`textContent`,!0),r?fo(r,n)>0?r:B(n.helperString(Mt),[r],i):z(``,!0))]}},Xc=(e,t,n)=>{let r=Cc(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Gc(59,e.arg.loc));function i(){let e=W(t,`bind`);e&&sa(e.arg,`value`)&&n.onError(Gc(61,e.loc))}let{tag:a}=t,o=n.isCustomElement(a);if(a===`input`||a===`textarea`||a===`select`||o){let s=Pc,c=!1;if(a===`input`||o){let r=oa(t,`type`);if(r){if(r.type===7)s=Ic;else if(r.value)switch(r.value.content){case`radio`:s=Mc;break;case`checkbox`:s=Nc;break;case`file`:c=!0,n.onError(Gc(60,e.loc));break;default:i();break}}else ca(t)?s=Ic:i()}else a===`select`?s=Fc:i();c||(r.needRuntime=n.helper(s))}else n.onError(Gc(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},Zc=A(`passive,once,capture`),Qc=A(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),$c=A(`left,right`),el=A(`onkeyup,onkeydown,onkeypress`),tl=(e,t,n,r)=>{let i=[],a=[],o=[];for(let n=0;n<t.length;n++){let r=t[n].content;Zc(r)?o.push(r):$c(r)?Hi(e)?el(e.content.toLowerCase())?i.push(r):a.push(r):(i.push(r),a.push(r)):Qc(r)?a.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},nl=(e,t)=>Hi(e)&&e.content.toLowerCase()===`onclick`?z(t,!0):e.type===4?e:cn([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),rl=(e,t,n)=>_c(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=tl(i,r,n,e.loc);if(s.includes(`right`)&&(i=nl(i,`onContextmenu`)),s.includes(`middle`)&&(i=nl(i,`onMouseup`)),s.length&&(a=B(n.helper(Lc),[a,JSON.stringify(s)])),o.length&&(!Hi(i)||el(i.content.toLowerCase()))&&(a=B(n.helper(Rc),[a,JSON.stringify(o)])),c.length){let e=c.map(Te).join(``);i=Hi(i)?z(`${i.content}${e}`,!0):cn([`(`,i,`) + "${e}"`])}return{props:[R(i,a)]}}),il=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Gc(62,i)),{props:[],needRuntime:n.helper(zc)}},al=(e,t)=>{if(e.type===1&&e.tagType===1&&t.isBuiltInComponent(e.tag)===Bc)return()=>{if(!e.children.length)return;ol(e)&&t.onError(Gc(63,{start:e.children[0].loc.start,end:e.children[e.children.length-1].loc.end,source:``}));let n=e.children[0];if(n.type===1)for(let t of n.props)t.type===7&&t.name===`show`&&e.props.push({type:6,name:`persisted`,nameLoc:e.loc,value:void 0,loc:e.loc})}};function ol(e){let t=e.children=e.children.filter(e=>!wa(e)),n=t[0];return t.length!==1||n.type===11||n.type===9&&n.branches.some(ol)}var sl=/__VUE_EXP_START__(.*?)__VUE_EXP_END__/g,cl=(e,t,n)=>{if(t.scopes.vSlot>0)return;let r=n.type===1&&n.codegenNode&&n.codegenNode.type===13&&n.codegenNode.children&&!P(n.codegenNode.children)&&n.codegenNode.children.type===20,i=0,a=0,o=[],s=n=>{if(i>=20||a>=5){let i=B(t.helper(Ct),[JSON.stringify(o.map(e=>ml(e,t)).join(``)).replace(sl,`" + $1 + "`),String(o.length)]),a=o.length-1;if(r)e.splice(n-o.length,o.length,i);else if(o[0].codegenNode.value=i,o.length>1){e.splice(n-o.length+1,a);let r=t.cached.indexOf(o[o.length-1].codegenNode);if(r>-1){for(let e=r;e<t.cached.length;e++){let n=t.cached[e];n&&(n.index-=a)}t.cached.splice(r-a+1,a)}}return a}return 0},c=0;for(;c<e.length;c++){let t=e[c];if(r||ll(t)){let e=pl(t);if(e){i+=e[0],a+=e[1],o.push(t);continue}}c-=s(c),i=0,a=0,o.length=0}s(c)},ll=e=>{if((e.type===1&&e.tagType===0||e.type===12)&&e.codegenNode&&e.codegenNode.type===20)return e.codegenNode},ul=/^(?:data|aria)-/,dl=(e,t)=>(t===0?et(e):t===1?tt(e):t===2?nt(e):!1)||ul.test(e),fl=A(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);function pl(e){if(e.type===1&&fl(e.tag)||e.type===1&&W(e,`once`,!0))return!1;if(e.type===12)return[1,0];let t=1,n=+(e.props.length>0),r=!1,i=()=>(r=!0,!1);function a(e){let o=e.tag===`option`&&e.ns===0;for(let t=0;t<e.props.length;t++){let n=e.props[t];if(n.type===6&&!dl(n.name,e.ns)||n.type===7&&n.name===`bind`&&(n.arg&&(n.arg.type===8||n.arg.isStatic&&!dl(n.arg.content,e.ns))||n.exp&&(n.exp.type===8||n.exp.constType<3)||o&&sa(n.arg,`value`)&&n.exp&&!n.exp.isStatic))return i()}for(let i=0;i<e.children.length;i++){t++;let o=e.children[i];if(o.type===1&&(o.props.length>0&&n++,a(o),r))return!1}return!0}return a(e)?[t,n]:!1}function ml(e,t){if(F(e))return e;if(pe(e))return``;switch(e.type){case 1:return hl(e,t);case 2:return it(e.content);case 3:return`<!--${it(e.content)}-->`;case 5:return it(ct(gl(e.content)));case 8:return it(gl(e));case 12:return ml(e.content,t);default:return``}}function hl(e,t){let n=`<${e.tag}`,r=``;for(let t=0;t<e.props.length;t++){let i=e.props[t];if(i.type===6)n+=` ${i.name}`,i.value&&(n+=`="${it(i.value.content)}"`);else if(i.type===7)if(i.name===`bind`){let e=i.exp;if(e.content[0]===`_`){n+=` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;continue}if(I(i.arg.content)&&e.content===`false`)continue;let t=gl(e);if(t!=null){let e=i.arg&&i.arg.content;e===`class`?t=Ve(t):e===`style`&&(t=Be(Fe(t))),n+=` ${i.arg.content}="${it(t)}"`}}else i.name===`html`?r=gl(i.exp):i.name===`text`&&(r=it(ct(gl(i.exp))))}if(t.scopeId&&(n+=` ${t.scopeId}`),n+=`>`,r)n+=r;else for(let r=0;r<e.children.length;r++)n+=ml(e.children[r],t);return Ye(e.tag)||(n+=`</${e.tag}>`),n}function gl(e){if(e.type===4)return Function(`return (${e.content})`)();{let t=``;return e.children.forEach(e=>{F(e)||pe(e)||(e.type===2?t+=e.content:e.type===5?t+=ct(gl(e.content)):t+=gl(e))}),t}}var _l=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&(t.onError(Gc(64,e.loc)),t.removeNode())};function vl(e,t){return e===`template`?!0:e in xl?xl[e].has(t):t in Sl?Sl[t].has(e):!(e in Cl&&Cl[e].has(t)||t in wl&&wl[t].has(e))}var yl=new Set([`h1`,`h2`,`h3`,`h4`,`h5`,`h6`]),bl=new Set([]),xl={head:new Set([`base`,`basefront`,`bgsound`,`link`,`meta`,`title`,`noscript`,`noframes`,`style`,`script`,`template`]),optgroup:new Set([`option`]),select:new Set([`optgroup`,`option`,`hr`]),table:new Set([`caption`,`colgroup`,`tbody`,`tfoot`,`thead`]),tr:new Set([`td`,`th`]),colgroup:new Set([`col`]),tbody:new Set([`tr`]),thead:new Set([`tr`]),tfoot:new Set([`tr`]),script:bl,iframe:bl,option:bl,textarea:bl,style:bl,title:bl},Sl={html:bl,body:new Set([`html`]),head:new Set([`html`]),td:new Set([`tr`]),colgroup:new Set([`table`]),caption:new Set([`table`]),tbody:new Set([`table`]),tfoot:new Set([`table`]),col:new Set([`colgroup`]),th:new Set([`tr`]),thead:new Set([`table`]),tr:new Set([`tbody`,`thead`,`tfoot`]),dd:new Set([`dl`,`div`]),dt:new Set([`dl`,`div`]),figcaption:new Set([`figure`]),summary:new Set([`details`]),area:new Set([`map`])},Cl={p:new Set(`address.article.aside.blockquote.center.details.dialog.dir.div.dl.fieldset.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.menu.ol.p.pre.section.table.ul`.split(`.`)),svg:new Set(`b.blockquote.br.code.dd.div.dl.dt.em.embed.h1.h2.h3.h4.h5.h6.hr.i.img.li.menu.meta.ol.p.pre.ruby.s.small.span.strong.sub.sup.table.u.ul.var`.split(`.`))},wl={a:new Set([`a`]),button:new Set([`button`]),dd:new Set([`dd`,`dt`]),dt:new Set([`dd`,`dt`]),form:new Set([`form`]),li:new Set([`li`]),h1:yl,h2:yl,h3:yl,h4:yl,h5:yl,h6:yl},Tl=[Uc,al,(e,t)=>{if(e.type===1&&e.tagType===0&&t.parent&&t.parent.type===1&&t.parent.tagType===0&&!vl(t.parent.tag,e.tag)){let n=SyntaxError(`<${e.tag}> cannot be child of <${t.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);n.loc=e.loc,t.onWarn(n)}}],El={cloak:jc,html:Jc,text:Yc,model:Xc,on:rl,show:il};function Dl(e,t={}){return kc(e,se({},Hc,t,{nodeTransforms:[_l,...Tl,...t.nodeTransforms||[]],directiveTransforms:se({},El,t.directiveTransforms||{}),transformHoist:cl}))}function Ol(e,t={}){return so(e,se({},Hc,t))}var kl=Object.freeze({__proto__:null,BASE_TRANSITION:ht,BindingTypes:Ac,CAMELIZE:zt,CAPITALIZE:Bt,CREATE_BLOCK:_t,CREATE_COMMENT:xt,CREATE_ELEMENT_BLOCK:vt,CREATE_ELEMENT_VNODE:bt,CREATE_SLOTS:jt,CREATE_STATIC:Ct,CREATE_TEXT:St,CREATE_VNODE:yt,CompilerDeprecationTypes:ai,ConstantTypes:tn,DOMDirectiveTransforms:El,DOMErrorCodes:Kc,DOMErrorMessages:qc,DOMNodeTransforms:Tl,ElementTypes:en,ErrorCodes:pi,FRAGMENT:dt,GUARD_REACTIVE_PROPS:Lt,IS_MEMO_SAME:Yt,IS_REF:qt,KEEP_ALIVE:mt,MERGE_PROPS:Nt,NORMALIZE_CLASS:Pt,NORMALIZE_PROPS:It,NORMALIZE_STYLE:Ft,Namespaces:Qt,NodeTypes:$t,OPEN_BLOCK:gt,POP_SCOPE_ID:Wt,PUSH_SCOPE_ID:Ut,RENDER_LIST:kt,RENDER_SLOT:At,RESOLVE_COMPONENT:wt,RESOLVE_DIRECTIVE:Et,RESOLVE_DYNAMIC_COMPONENT:Tt,RESOLVE_FILTER:Dt,SET_BLOCK_TRACKING:Ht,SUSPENSE:pt,TELEPORT:ft,TO_DISPLAY_STRING:Mt,TO_HANDLERS:Rt,TO_HANDLER_KEY:Vt,TRANSITION:Bc,TRANSITION_GROUP:Vc,TS_NODE_TYPES:Bi,UNREF:Kt,V_MODEL_CHECKBOX:Nc,V_MODEL_DYNAMIC:Ic,V_MODEL_RADIO:Mc,V_MODEL_SELECT:Fc,V_MODEL_TEXT:Pc,V_ON_WITH_KEYS:Rc,V_ON_WITH_MODIFIERS:Lc,V_SHOW:zc,WITH_CTX:Gt,WITH_DIRECTIVES:Ot,WITH_MEMO:Jt,advancePositionWithClone:ra,advancePositionWithMutation:ia,assert:aa,baseCompile:kc,baseParse:so,buildDirectiveArgs:fc,buildProps:lc,buildSlots:nc,checkCompatEnabled:li,compile:Dl,convertToBlock:bn,createArrayExpression:an,createAssignmentExpression:hn,createBlockStatement:fn,createCacheExpression:dn,createCallExpression:B,createCompilerError:U,createCompoundExpression:cn,createConditionalExpression:un,createDOMCompilerError:Gc,createForLoopParams:Xs,createFunctionExpression:ln,createIfStatement:mn,createInterpolation:sn,createObjectExpression:on,createObjectProperty:R,createReturnStatement:_n,createRoot:nn,createSequenceExpression:gn,createSimpleExpression:z,createStructuralDirectiveTransform:So,createTemplateLiteral:pn,createTransformContext:_o,createVNodeCall:rn,errorMessages:mi,extractIdentifiers:Ni,findDir:W,findProp:oa,forAliasRE:xa,generate:os,generateCodeFrame:Pe,getBaseTransformPreset:Oc,getConstantType:fo,getMemoedVNodeCall:ba,getVNodeBlockHelper:yn,getVNodeHelper:vn,hasDynamicKeyVBind:ca,hasScopeRef:ya,helperNameMap:Xt,injectProp:ga,isAllWhitespace:Sa,isCommentOrWhitespace:wa,isCoreComponent:Ui,isFnExpression:na,isFnExpressionBrowser:ea,isFnExpressionNode:ta,isFunctionType:Ii,isInDestructureAssignment:Ei,isInNewExpression:Di,isMemberExpression:Qi,isMemberExpressionBrowser:Xi,isMemberExpressionNode:Zi,isReferencedIdentifier:Ti,isSimpleIdentifier:Gi,isSlotOutlet:pa,isStaticArgOf:sa,isStaticExp:Hi,isStaticProperty:Li,isStaticPropertyKey:Ri,isTemplateNode:fa,isText:la,isVPre:ua,isVSlot:da,isWhitespaceText:Ca,locStub:L,noopDirectiveTransform:jc,parse:Ol,parserOptions:Hc,processExpression:Is,processFor:Js,processIf:Vs,processSlotOutlet:gc,registerRuntimeHelpers:Zt,resolveComponentType:sc,stringifyExpression:Rs,toValidAssetId:va,trackSlotScopes:$s,trackVForSlotScopes:ec,transform:vo,transformBind:vc,transformElement:oc,transformExpression:Fs,transformModel:Cc,transformOn:_c,transformStyle:Uc,transformVBindShorthand:Dc,traverseNode:xo,unwrapTSNode:Vi,validFirstIdentCharRE:Ki,walkBlockDeclarations:ki,walkFunctionParams:Oi,walkIdentifiers:wi,warnDeprecation:ui}),Al,jl;function Ml(){if(jl)return Al;jl=1;function e(e,t){for(;e.length<t;)e=`0`+e;return e}function t(e,t){var n,r,i;if(t.length===0)return e;for(n=0,i=t.length;n<i;n++)r=t.charCodeAt(n),e=(e<<5)-e+r,e|=0;return e<0?e*-2:e}function n(e,t,n){return Object.keys(t).sort().reduce(i,e);function i(e,i){return r(e,t[i],i,n)}}function r(e,r,a,o){var s=t(t(t(e,a),i(r)),typeof r);if(r===null)return t(s,`null`);if(r===void 0)return t(s,`undefined`);if(typeof r==`object`||typeof r==`function`){if(o.indexOf(r)!==-1)return t(s,`[Circular]`+a);o.push(r);var c=n(s,r,o);if(!(`valueOf`in r)||typeof r.valueOf!=`function`)return c;try{return t(c,String(r.valueOf()))}catch(e){return t(c,`[valueOf exception]`+(e.stack||e.message))}}return t(s,r.toString())}function i(e){return Object.prototype.toString.call(e)}function a(t){return e(r(0,t,``,[]).toString(16),8)}return Al=a,Al}var Nl=hi(Ml()),Pl=`useCssVars`;function Fl(e,t,n,r=!1){return`{
|
|
28
28
|
${e.map(e=>`"${r?`:--`:``}${Il(t,e,n,r)}": (${e})`).join(`,
|
|
@@ -85,9 +85,9 @@ You tried to parse Less with the standard CSS parser; try again with the postcss
|
|
|
85
85
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Au.env.LANG&&Au.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
86
86
|
https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new f().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||=r(),i}}),r.process=function(e,t,n){return v([r(n)]).process(e,t)},r},v.stringify=g,v.parse=d,v.fromJSON=o,v.list=l,v.comment=e=>new t(e),v.atRule=t=>new e(t),v.decl=e=>new i(e),v.rule=e=>new h(e),v.root=e=>new m(e),v.document=e=>new a(e),v.CssSyntaxError=r,v.Declaration=i,v.Container=n,v.Processor=f,v.Document=a,v.Comment=t,v.Warning=_,v.AtRule=e,v.Result=p,v.Input=s,v.Rule=h,v.Root=m,v.Node=u,c.registerPostcss(v),F_=v,v.default=v,F_}var Y=hi(L_());Y.stringify,Y.fromJSON,Y.plugin,Y.parse,Y.list,Y.document,Y.comment,Y.atRule,Y.rule,Y.decl,Y.root,Y.CssSyntaxError,Y.Declaration,Y.Container,Y.Processor,Y.Document,Y.Comment,Y.Warning,Y.AtRule,Y.Result,Y.Input;var R_=Y.Rule;Y.Root,Y.Node;var z_=()=>({postcssPlugin:`vue-sfc-trim`,Once(e){e.walk(({type:e,raws:t})=>{(e===`rule`||e===`atrule`)&&(t.before&&=`
|
|
87
87
|
`,`after`in t&&t.after&&(t.after=`
|
|
88
|
-
`))})}});z_.postcss=!0;var B_={exports:{}},V_={exports:{}},H_={exports:{}},U_={exports:{}},W_={exports:{}},G_={exports:{}},K_={},q_={exports:{}},J_;function Y_(){return J_?q_.exports:(J_=1,(function(e,t){t.__esModule=!0,t.default=i;function n(e){for(var t=e.toLowerCase(),n=``,r=!1,i=0;i<6&&t[i]!==void 0;i++){var a=t.charCodeAt(i),o=a>=97&&a<=102||a>=48&&a<=57;if(r=a===32,!o)break;n+=t[i]}if(n.length!==0){var s=parseInt(n,16);return s>=55296&&s<=57343||s===0||s>1114111?[`�`,n.length+ +!!r]:[String.fromCodePoint(s),n.length+ +!!r]}}var r=/\\/;function i(e){if(!r.test(e))return e;for(var t=``,i=0;i<e.length;i++){if(e[i]===`\\`){var a=n(e.slice(i+1,i+7));if(a!==void 0){t+=a[0],i+=a[1];continue}if(e[i+1]===`\\`){t+=`\\`,i++;continue}e.length===i+1&&(t+=e[i]);continue}t+=e[i]}return t}e.exports=t.default})(q_,q_.exports),q_.exports)}var X_={exports:{}},Z_;function Q_(){return Z_?X_.exports:(Z_=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=[...arguments].slice(1);t.length>0;){var n=t.shift();if(!e[n])return;e=e[n]}return e}e.exports=t.default})(X_,X_.exports),X_.exports)}var $_={exports:{}},ev;function tv(){return ev?$_.exports:(ev=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=[...arguments].slice(1);t.length>0;){var n=t.shift();e[n]||(e[n]={}),e=e[n]}}e.exports=t.default})($_,$_.exports),$_.exports)}var nv={exports:{}},rv;function iv(){return rv?nv.exports:(rv=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=``,n=e.indexOf(`/*`),r=0;n>=0;){t+=e.slice(r,n);var i=e.indexOf(`*/`,n+2);if(i<0)return t;r=i+2,n=e.indexOf(`/*`,r)}return t+=e.slice(r),t}e.exports=t.default})(nv,nv.exports),nv.exports)}var av;function ov(){if(av)return K_;av=1,K_.__esModule=!0,K_.unesc=K_.stripComments=K_.getProp=K_.ensureObject=void 0,K_.unesc=e(Y_()).default,K_.getProp=e(Q_()).default,K_.ensureObject=e(tv()).default,K_.stripComments=e(iv()).default;function e(e){return e&&e.__esModule?e:{default:e}}return K_}var sv;function cv(){return sv?G_.exports:(sv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=ov();function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var a=function e(t,n){if(typeof t!=`object`||!t)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];i===`parent`&&typeof a==`object`?n&&(r[i]=n):a instanceof Array?r[i]=a.map(function(t){return e(t,r)}):r[i]=e(a,r)}return r};t.default=function(){function e(e){e===void 0&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||``,this.spaces.after=this.spaces.after||``}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(e){e===void 0&&(e={});var t=a(this);for(var n in e)t[n]=e[n];return t},t.appendToPropertyAndEscape=function(e,t,n){this.raws||={};var r=this[e],i=this.raws[e];this[e]=r+t,i||n!==t?this.raws[e]=(i||r)+n:delete this.raws[e]},t.setPropertyAndEscape=function(e,t,n){this.raws||={},this[e]=t,this.raws[e]=n},t.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},t.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e||this.source.end.line<e||this.source.start.line===e&&this.source.start.column>t||this.source.end.line===e&&this.source.end.column<t)},t.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},t.valueToString=function(){return String(this.stringifyProperty(`value`))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(``)},i(e,[{key:`rawSpaceBefore`,get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return e===void 0&&(e=this.spaces&&this.spaces.before),e||``},set:function(e){(0,n.ensureObject)(this,`raws`,`spaces`),this.raws.spaces.before=e}},{key:`rawSpaceAfter`,get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return e===void 0&&(e=this.spaces.after),e||``},set:function(e){(0,n.ensureObject)(this,`raws`,`spaces`),this.raws.spaces.after=e}}]),e}(),e.exports=t.default})(G_,G_.exports),G_.exports)}var X={},lv;function uv(){return lv?X:(lv=1,X.__esModule=!0,X.UNIVERSAL=X.TAG=X.STRING=X.SELECTOR=X.ROOT=X.PSEUDO=X.NESTING=X.ID=X.COMMENT=X.COMBINATOR=X.CLASS=X.ATTRIBUTE=void 0,X.TAG=`tag`,X.STRING=`string`,X.SELECTOR=`selector`,X.ROOT=`root`,X.PSEUDO=`pseudo`,X.NESTING=`nesting`,X.ID=`id`,X.COMMENT=`comment`,X.COMBINATOR=`combinator`,X.CLASS=`class`,X.ATTRIBUTE=`attribute`,X.UNIVERSAL=`universal`,X)}var dv;function fv(){return dv?W_.exports:(dv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(cv()),r=a(uv());function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o
|
|
89
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(e,t){if(e){if(typeof e==`string`)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}t.default=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.nodes||=[],n}var n=t.prototype;return n.append=function(e){return e.parent=this,this.nodes.push(e),this},n.prepend=function(e){for(var t in e.parent=this,this.nodes.unshift(e),this.indexes)this.indexes[t]++;return this},n.at=function(e){return this.nodes[e]},n.index=function(e){return typeof e==`number`?e:this.nodes.indexOf(e)},n.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this},n.removeAll=function(){for(var e=s(this.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(e,t){var n;t.parent=this;for(var r=this.index(e),i=[],a=2;a<arguments.length;a++)i.push(arguments[a]);(n=this.nodes).splice.apply(n,[r+1,0,t].concat(i)),t.parent=this;var o;for(var s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+arguments.length-1);return this},n.insertBefore=function(e,t){var n;t.parent=this;for(var r=this.index(e),i=[],a=2;a<arguments.length;a++)i.push(arguments[a]);(n=this.nodes).splice.apply(n,[r,0,t].concat(i)),t.parent=this;var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o+arguments.length-1);return this},n._findChildAtPosition=function(e,t){var n=void 0;return this.each(function(r){if(r.atPosition){var i=r.atPosition(e,t);if(i)return n=i,!1}else if(r.isAtPosition(e,t))return n=r,!1}),n},n.atPosition=function(e,t){if(this.isAtPosition(e,t))return this._findChildAtPosition(e,t)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(e){this.lastEach||=0,this.indexes||={},this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],r=e(this.at(n),n),r!==!1);)this.indexes[t]+=1;if(delete this.indexes[t],r===!1)return!1}},n.walk=function(e){return this.each(function(t,n){var r=e(t,n);if(r!==!1&&t.length&&(r=t.walk(e)),r===!1)return!1})},n.walkAttributes=function(e){var t=this;return this.walk(function(n){if(n.type===r.ATTRIBUTE)return e.call(t,n)})},n.walkClasses=function(e){var t=this;return this.walk(function(n){if(n.type===r.CLASS)return e.call(t,n)})},n.walkCombinators=function(e){var t=this;return this.walk(function(n){if(n.type===r.COMBINATOR)return e.call(t,n)})},n.walkComments=function(e){var t=this;return this.walk(function(n){if(n.type===r.COMMENT)return e.call(t,n)})},n.walkIds=function(e){var t=this;return this.walk(function(n){if(n.type===r.ID)return e.call(t,n)})},n.walkNesting=function(e){var t=this;return this.walk(function(n){if(n.type===r.NESTING)return e.call(t,n)})},n.walkPseudos=function(e){var t=this;return this.walk(function(n){if(n.type===r.PSEUDO)return e.call(t,n)})},n.walkTags=function(e){var t=this;return this.walk(function(n){if(n.type===r.TAG)return e.call(t,n)})},n.walkUniversals=function(e){var t=this;return this.walk(function(n){if(n.type===r.UNIVERSAL)return e.call(t,n)})},n.split=function(e){var t=this,n=[];return this.reduce(function(r,i,a){var o=e.call(t,i);return n.push(i),o?(r.push(n),n=[]):a===t.length-1&&r.push(n),r},[])},n.map=function(e){return this.nodes.map(e)},n.reduce=function(e,t){return this.nodes.reduce(e,t)},n.every=function(e){return this.nodes.every(e)},n.some=function(e){return this.nodes.some(e)},n.filter=function(e){return this.nodes.filter(e)},n.sort=function(e){return this.nodes.sort(e)},n.toString=function(){return this.map(String).join(``)},d(t,[{key:`first`,get:function(){return this.at(0)}},{key:`last`,get:function(){return this.at(this.length-1)}},{key:`length`,get:function(){return this.nodes.length}}]),t}(n.default),e.exports=t.default})(W_,W_.exports),W_.exports)}var pv;function mv(){return pv?U_.exports:(pv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}t.default=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.ROOT,n}var n=t.prototype;return n.toString=function(){var e=this.reduce(function(e,t){return e.push(String(t)),e},[]).join(`,`);return this.trailingComma?e+`,`:e},n.error=function(e,t){return this._error?this._error(e,t):Error(e)},o(t,[{key:`errorGenerator`,set:function(e){this._error=e}}]),t}(n.default),e.exports=t.default})(U_,U_.exports),U_.exports)}var hv={exports:{}},gv;function _v(){return gv?hv.exports:(gv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.SELECTOR,n}return t}(n.default),e.exports=t.default})(hv,hv.exports),hv.exports)}var vv={exports:{}},yv,bv;function xv(){if(bv)return yv;bv=1;var e={}.hasOwnProperty,t=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=e.call(t,i)?t[i]:n[i];return r},n=/[ -,\.\/:-@\[-\^`\{-~]/,r=/[ -,\.\/:-@\[\]\^`\{-~]/,i=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(a,o){o=t(o,e.options),o.quotes!=`single`&&o.quotes!=`double`&&(o.quotes=`single`);for(var s=o.quotes==`double`?`"`:`'`,c=o.isIdentifier,l=a.charAt(0),u=``,d=0,f=a.length;d<f;){var p=a.charAt(d++),m=p.charCodeAt(),h=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&d<f){var g=a.charCodeAt(d++);(g&64512)==56320?m=((m&1023)<<10)+(g&1023)+65536:d--}h=`\\`+m.toString(16).toUpperCase()+` `}else h=o.escapeEverything?n.test(p)?`\\`+p:`\\`+m.toString(16).toUpperCase()+` `:/[\t\n\f\r\x0B]/.test(p)?`\\`+m.toString(16).toUpperCase()+` `:p==`\\`||!c&&(p==`"`&&s==p||p==`'`&&s==p)||c&&r.test(p)?`\\`+p:p;u+=h}return c&&(/^-[-\d]/.test(u)?u=`\\-`+u.slice(1):/\d/.test(l)&&(u=`\\3`+l+` `+u.slice(1))),u=u.replace(i,function(e,t,n){return t&&t.length%2?e:(t||``)+n}),!c&&o.wrap?s+u+s:u};return a.options={escapeEverything:!1,isIdentifier:!1,quotes:`single`,wrap:!1},a.version=`3.0.0`,yv=a,yv}var Sv;function Cv(){return Sv?vv.exports:(Sv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(xv()),r=ov(),i=o(cv()),a=uv();function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}t.default=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=a.CLASS,n._constructed=!0,n}var i=t.prototype;return i.valueToString=function(){return`.`+e.prototype.valueToString.call(this)},c(t,[{key:`value`,get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t===e?this.raws&&delete this.raws.value:((0,r.ensureObject)(this,`raws`),this.raws.value=t)}this._value=e}}]),t}(i.default),e.exports=t.default})(vv,vv.exports),vv.exports)}var wv={exports:{}},Tv;function Ev(){return Tv?wv.exports:(Tv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.COMMENT,n}return t}(n.default),e.exports=t.default})(wv,wv.exports),wv.exports)}var Dv={exports:{}},Ov;function kv(){return Ov?Dv.exports:(Ov=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.ID,n}var n=t.prototype;return n.valueToString=function(){return`#`+e.prototype.valueToString.call(this)},t}(n.default),e.exports=t.default})(Dv,Dv.exports),Dv.exports)}var Av={exports:{}},jv={exports:{}},Mv;function Nv(){return Mv?jv.exports:(Mv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(xv()),r=ov(),i=a(cv());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}t.default=function(e){c(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;return i.qualifiedName=function(e){return this.namespace?this.namespaceString+`|`+e:e},i.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},s(t,[{key:`namespace`,get:function(){return this._namespace},set:function(e){if(e===!0||e===`*`||e===`&`){this._namespace=e,this.raws&&delete this.raws.namespace;return}var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t===e?this.raws&&delete this.raws.namespace:((0,r.ensureObject)(this,`raws`),this.raws.namespace=t)}},{key:`ns`,get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:`namespaceString`,get:function(){if(this.namespace){var e=this.stringifyProperty(`namespace`);return e===!0?``:e}else return``}}]),t}(i.default),e.exports=t.default})(jv,jv.exports),jv.exports)}var Pv;function Fv(){return Pv?Av.exports:(Pv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(Nv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.TAG,n}return t}(n.default),e.exports=t.default})(Av,Av.exports),Av.exports)}var Iv={exports:{}},Lv;function Rv(){return Lv?Iv.exports:(Lv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.STRING,n}return t}(n.default),e.exports=t.default})(Iv,Iv.exports),Iv.exports)}var zv={exports:{}},Bv;function Vv(){return Bv?zv.exports:(Bv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.PSEUDO,n}var n=t.prototype;return n.toString=function(){var e=this.length?`(`+this.map(String).join(`,`)+`)`:``;return[this.rawSpaceBefore,this.stringifyProperty(`value`),e,this.rawSpaceAfter].join(``)},t}(n.default),e.exports=t.default})(zv,zv.exports),zv.exports)}var Hv={},Uv,Wv;function Gv(){return Wv?Uv:(Wv=1,Uv=Lh.deprecate,Uv)}var Kv;function qv(){return Kv?Hv:(Kv=1,(function(e){e.__esModule=!0,e.default=void 0,e.unescapeValue=g;var t=o(xv()),n=o(Y_()),r=o(Nv()),i=uv(),a;function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d=Gv(),f=/^('|")([^]*)\1$/,p=d(function(){},`Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.`),m=d(function(){},`Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.`),h=d(function(){},`Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.`);function g(e){var t=!1,r=null,i=e,a=i.match(f);return a&&(r=a[1],i=a[2]),i=(0,n.default)(i),i!==e&&(t=!0),{deprecatedUsage:t,unescaped:i,quoteMark:r}}function _(e){if(e.quoteMark!==void 0||e.value===void 0)return e;h();var t=g(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||={},e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var v=function(e){l(n,e);function n(t){var n;return t===void 0&&(t={}),n=e.call(this,_(t))||this,n.type=i.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:d(function(){return n.value},`attr.raws.unquoted is deprecated. Call attr.value instead.`),set:d(function(){return n.value},`Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.`)}),n._constructed=!0,n}var r=n.prototype;return r.getQuotedValue=function(e){e===void 0&&(e={});var n=y[this._determineQuoteMark(e)];return(0,t.default)(this._value,n)},r._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},r.setValue=function(e,t){t===void 0&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},r.smartQuoteMark=function(e){var r=this.value,i=r.replace(/[^']/g,``).length,a=r.replace(/[^"]/g,``).length;if(i+a===0){var o=(0,t.default)(r,{isIdentifier:!0});if(o===r)return n.NO_QUOTE;var s=this.preferredQuoteMark(e);if(s===n.NO_QUOTE){var c=this.quoteMark||e.quoteMark||n.DOUBLE_QUOTE,l=y[c];if((0,t.default)(r,l).length<o.length)return c}return s}else if(a===i)return this.preferredQuoteMark(e);else if(a<i)return n.DOUBLE_QUOTE;else return n.SINGLE_QUOTE},r.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return t===void 0&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),t===void 0&&(t=n.DOUBLE_QUOTE),t},r._syncRawValue=function(){var e=(0,t.default)(this._value,y[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},r._handleEscapes=function(e,n){if(this._constructed){var r=(0,t.default)(n,{isIdentifier:!0});r===n?delete this.raws[e]:this.raws[e]=r}},r._spacesFor=function(e){var t={before:``,after:``},n=this.spaces[e]||{},r=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign(t,n,r)},r._stringFor=function(e,t,n){t===void 0&&(t=e),n===void 0&&(n=b);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},r.offsetOf=function(e){var t=1,n=this._spacesFor(`attribute`);if(t+=n.before.length,e===`namespace`||e===`ns`)return this.namespace?t:-1;if(e===`attributeNS`||(t+=this.namespaceString.length,this.namespace&&(t+=1),e===`attribute`))return t;t+=this.stringifyProperty(`attribute`).length,t+=n.after.length;var r=this._spacesFor(`operator`);t+=r.before.length;var i=this.stringifyProperty(`operator`);if(e===`operator`)return i?t:-1;t+=i.length,t+=r.after.length;var a=this._spacesFor(`value`);t+=a.before.length;var o=this.stringifyProperty(`value`);if(e===`value`)return o?t:-1;t+=o.length,t+=a.after.length;var s=this._spacesFor(`insensitive`);return t+=s.before.length,e===`insensitive`&&this.insensitive?t:-1},r.toString=function(){var e=this,t=[this.rawSpaceBefore,`[`];return t.push(this._stringFor(`qualifiedAttribute`,`attribute`)),this.operator&&(this.value||this.value===``)&&(t.push(this._stringFor(`operator`)),t.push(this._stringFor(`value`)),t.push(this._stringFor(`insensitiveFlag`,`insensitive`,function(t,n){return t.length>0&&!e.quoted&&n.before.length===0&&!(e.spaces.value&&e.spaces.value.after)&&(n.before=` `),b(t,n)}))),t.push(`]`),t.push(this.rawSpaceAfter),t.join(``)},c(n,[{key:`quoted`,get:function(){var e=this.quoteMark;return e===`'`||e===`"`},set:function(e){m()}},{key:`quoteMark`,get:function(){return this._quoteMark},set:function(e){if(!this._constructed){this._quoteMark=e;return}this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue())}},{key:`qualifiedAttribute`,get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:`insensitiveFlag`,get:function(){return this.insensitive?`i`:``}},{key:`value`,get:function(){return this._value},set:function(e){if(this._constructed){var t=g(e),n=t.deprecatedUsage,r=t.unescaped,i=t.quoteMark;if(n&&p(),r===this._value&&i===this._quoteMark)return;this._value=r,this._quoteMark=i,this._syncRawValue()}else this._value=e}},{key:`insensitive`,get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag===`I`||this.raws.insensitiveFlag===`i`)&&(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:`attribute`,get:function(){return this._attribute},set:function(e){this._handleEscapes(`attribute`,e),this._attribute=e}}]),n}(r.default);e.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE=`'`,v.DOUBLE_QUOTE=`"`;var y=(a={"'":{quotes:`single`,wrap:!0},'"':{quotes:`double`,wrap:!0}},a[null]={isIdentifier:!0},a);function b(e,t){return``+t.before+e+t.after}})(Hv),Hv)}var Jv={exports:{}},Yv;function Xv(){return Yv?Jv.exports:(Yv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(Nv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.UNIVERSAL,n.value=`*`,n}return t}(n.default),e.exports=t.default})(Jv,Jv.exports),Jv.exports)}var Zv={exports:{}},Qv;function $v(){return Qv?Zv.exports:(Qv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.COMBINATOR,n}return t}(n.default),e.exports=t.default})(Zv,Zv.exports),Zv.exports)}var ey={exports:{}},ty;function ny(){return ty?ey.exports:(ty=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.NESTING,n.value=`&`,n}return t}(n.default),e.exports=t.default})(ey,ey.exports),ey.exports)}var ry={exports:{}},iy;function ay(){return iy?ry.exports:(iy=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){return e.sort(function(e,t){return e-t})}e.exports=t.default})(ry,ry.exports),ry.exports)}var oy={},Z={},sy;function cy(){if(sy)return Z;sy=1,Z.__esModule=!0,Z.word=Z.tilde=Z.tab=Z.str=Z.space=Z.slash=Z.singleQuote=Z.semicolon=Z.plus=Z.pipe=Z.openSquare=Z.openParenthesis=Z.newline=Z.greaterThan=Z.feed=Z.equals=Z.doubleQuote=Z.dollar=Z.cr=Z.comment=Z.comma=Z.combinator=Z.colon=Z.closeSquare=Z.closeParenthesis=Z.caret=Z.bang=Z.backslash=Z.at=Z.asterisk=Z.ampersand=void 0,Z.ampersand=38,Z.asterisk=42,Z.at=64,Z.comma=44,Z.colon=58,Z.semicolon=59,Z.openParenthesis=40,Z.closeParenthesis=41,Z.openSquare=91,Z.closeSquare=93,Z.dollar=36,Z.tilde=126,Z.caret=94,Z.plus=43,Z.equals=61,Z.pipe=124,Z.greaterThan=62,Z.space=32;var e=39;return Z.singleQuote=e,Z.doubleQuote=34,Z.slash=47,Z.bang=33,Z.backslash=92,Z.cr=13,Z.feed=12,Z.newline=10,Z.tab=9,Z.str=e,Z.comment=-1,Z.word=-2,Z.combinator=-3,Z}var ly;function uy(){return ly?oy:(ly=1,(function(e){e.__esModule=!0,e.FIELDS=void 0,e.default=p;var t=a(cy()),n,r;function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}for(var o=(n={},n[t.tab]=!0,n[t.newline]=!0,n[t.cr]=!0,n[t.feed]=!0,n),s=(r={},r[t.space]=!0,r[t.tab]=!0,r[t.newline]=!0,r[t.cr]=!0,r[t.feed]=!0,r[t.ampersand]=!0,r[t.asterisk]=!0,r[t.bang]=!0,r[t.comma]=!0,r[t.colon]=!0,r[t.semicolon]=!0,r[t.openParenthesis]=!0,r[t.closeParenthesis]=!0,r[t.openSquare]=!0,r[t.closeSquare]=!0,r[t.singleQuote]=!0,r[t.doubleQuote]=!0,r[t.plus]=!0,r[t.pipe]=!0,r[t.tilde]=!0,r[t.greaterThan]=!0,r[t.equals]=!0,r[t.dollar]=!0,r[t.caret]=!0,r[t.slash]=!0,r),c={},l=`0123456789abcdefABCDEF`,u=0;u<l.length;u++)c[l.charCodeAt(u)]=!0;function d(e,n){var r=n,i;do{if(i=e.charCodeAt(r),s[i])return r-1;i===t.backslash?r=f(e,r)+1:r++}while(r<e.length);return r-1}function f(e,n){var r=n,i=e.charCodeAt(r+1);if(!o[i])if(c[i]){var a=0;do r++,a++,i=e.charCodeAt(r+1);while(c[i]&&a<6);a<6&&i===t.space&&r++}else r++;return r}e.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function p(e){var n=[],r=e.css.valueOf(),i=r.length,a=-1,o=1,s=0,c=0,l,u,f,p,m,h,g,_,v,y,b,x,S;function C(t,n){if(e.safe)r+=n,v=r.length-1;else throw e.error(`Unclosed `+t,o,s-a,s)}for(;s<i;){switch(l=r.charCodeAt(s),l===t.newline&&(a=s,o+=1),l){case t.space:case t.tab:case t.newline:case t.cr:case t.feed:v=s;do v+=1,l=r.charCodeAt(v),l===t.newline&&(a=v,o+=1);while(l===t.space||l===t.newline||l===t.tab||l===t.cr||l===t.feed);S=t.space,p=o,f=v-a-1,c=v;break;case t.plus:case t.greaterThan:case t.tilde:case t.pipe:v=s;do v+=1,l=r.charCodeAt(v);while(l===t.plus||l===t.greaterThan||l===t.tilde||l===t.pipe);S=t.combinator,p=o,f=s-a,c=v;break;case t.asterisk:case t.ampersand:case t.bang:case t.comma:case t.equals:case t.dollar:case t.caret:case t.openSquare:case t.closeSquare:case t.colon:case t.semicolon:case t.openParenthesis:case t.closeParenthesis:v=s,S=l,p=o,f=s-a,c=v+1;break;case t.singleQuote:case t.doubleQuote:x=l===t.singleQuote?`'`:`"`,v=s;do for(m=!1,v=r.indexOf(x,v+1),v===-1&&C(`quote`,x),h=v;r.charCodeAt(h-1)===t.backslash;)--h,m=!m;while(m);S=t.str,p=o,f=s-a,c=v+1;break;default:l===t.slash&&r.charCodeAt(s+1)===t.asterisk?(v=r.indexOf(`*/`,s+2)+1,v===0&&C(`comment`,`*/`),u=r.slice(s,v+1),_=u.split(`
|
|
90
|
-
`),g=_.length-1,g>0?(y=o+g,b=v-_[g].length):(y=o,b=a),S=t.comment,o=y,p=y,f=v-b):l===t.slash?(v=s,S=l,p=o,f=s-a,c=v+1):(v=d(r,s),S=t.word,p=o,f=v-a),c=v+1;break}n.push([S,o,s-a,p,f,s,c]),b&&=(a=b,null),s=c}return n}})(oy),oy)}var dy;function fy(){return dy?H_.exports:(dy=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=C(mv()),r=C(_v()),i=C(Cv()),a=C(Ev()),o=C(kv()),s=C(Fv()),c=C(Rv()),l=C(Vv()),u=S(qv()),d=C(Xv()),f=C($v()),p=C(ny()),m=C(ay()),h=S(uy()),g=S(cy()),_=S(uv()),v=ov(),y,b;function x(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function S(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!==`default`&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t,n){return t&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var E=(y={},y[g.space]=!0,y[g.cr]=!0,y[g.feed]=!0,y[g.newline]=!0,y[g.tab]=!0,y),ee=Object.assign({},E,(b={},b[g.comment]=!0,b));function D(e){return{line:e[h.FIELDS.START_LINE],column:e[h.FIELDS.START_COL]}}function O(e){return{line:e[h.FIELDS.END_LINE],column:e[h.FIELDS.END_COL]}}function k(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function te(e){return k(e[h.FIELDS.START_LINE],e[h.FIELDS.START_COL],e[h.FIELDS.END_LINE],e[h.FIELDS.END_COL])}function ne(e,t){if(e)return k(e[h.FIELDS.START_LINE],e[h.FIELDS.START_COL],t[h.FIELDS.END_LINE],t[h.FIELDS.END_COL])}function re(e,t){var n=e[t];if(typeof n==`string`)return n.indexOf(`\\`)!==-1&&((0,v.ensureObject)(e,`raws`),e[t]=(0,v.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function ie(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function ae(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}t.default=function(){function e(e,t){t===void 0&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=typeof this.rule==`string`?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=ne(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new n.default({source:i}),this.root.errorGenerator=this._errorGenerator();var a=new r.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(a),this.current=a,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var e=this;return function(t,n){return typeof e.rule==`string`?Error(t):e.rule.error(t,n)}},t.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==g.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==g.closeSquare)return this.expected(`closing square bracket`,this.currToken[h.FIELDS.START_POS]);var n=e.length,r={source:k(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[h.FIELDS.START_POS]};if(n===1&&!~[g.word].indexOf(e[0][h.FIELDS.TYPE]))return this.expected(`attribute`,e[0][h.FIELDS.START_POS]);for(var i=0,a=``,o=``,s=null,c=!1;i<n;){var l=e[i],d=this.content(l),f=e[i+1];switch(l[h.FIELDS.TYPE]){case g.space:if(c=!0,this.options.lossy)break;if(s){(0,v.ensureObject)(r,`spaces`,s);var p=r.spaces[s].after||``;r.spaces[s].after=p+d;var m=(0,v.getProp)(r,`raws`,`spaces`,s,`after`)||null;m&&(r.raws.spaces[s].after=m+d)}else a+=d,o+=d;break;case g.asterisk:f[h.FIELDS.TYPE]===g.equals?(r.operator=d,s=`operator`):(!r.namespace||s===`namespace`&&!c)&&f&&(a&&=((0,v.ensureObject)(r,`spaces`,`attribute`),r.spaces.attribute.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`attribute`),r.raws.spaces.attribute.before=a,``),r.namespace=(r.namespace||``)+d,(0,v.getProp)(r,`raws`,`namespace`)&&(r.raws.namespace+=d),s=`namespace`),c=!1;break;case g.dollar:if(s===`value`){var _=(0,v.getProp)(r,`raws`,`value`);r.value+=`$`,_&&(r.raws.value=_+`$`);break}case g.caret:f[h.FIELDS.TYPE]===g.equals&&(r.operator=d,s=`operator`),c=!1;break;case g.combinator:if(d===`~`&&f[h.FIELDS.TYPE]===g.equals&&(r.operator=d,s=`operator`),d!==`|`){c=!1;break}f[h.FIELDS.TYPE]===g.equals?(r.operator=d,s=`operator`):!r.namespace&&!r.attribute&&(r.namespace=!0),c=!1;break;case g.word:if(f&&this.content(f)===`|`&&e[i+2]&&e[i+2][h.FIELDS.TYPE]!==g.equals&&!r.operator&&!r.namespace)r.namespace=d,s=`namespace`;else if(!r.attribute||s===`attribute`&&!c)a&&=((0,v.ensureObject)(r,`spaces`,`attribute`),r.spaces.attribute.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`attribute`),r.raws.spaces.attribute.before=o,``),r.attribute=(r.attribute||``)+d,(0,v.getProp)(r,`raws`,`attribute`)&&(r.raws.attribute+=d),s=`attribute`;else if(!r.value&&r.value!==``||s===`value`&&!(c||r.quoteMark)){var y=(0,v.unesc)(d),b=(0,v.getProp)(r,`raws`,`value`)||``,x=r.value||``;r.value=x+y,r.quoteMark=null,(y!==d||b)&&((0,v.ensureObject)(r,`raws`),r.raws.value=(b||x)+d),s=`value`}else{var S=d===`i`||d===`I`;(r.value||r.value===``)&&(r.quoteMark||c)?(r.insensitive=S,(!S||d===`I`)&&((0,v.ensureObject)(r,`raws`),r.raws.insensitiveFlag=d),s=`insensitive`,a&&=((0,v.ensureObject)(r,`spaces`,`insensitive`),r.spaces.insensitive.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`insensitive`),r.raws.spaces.insensitive.before=o,``)):(r.value||r.value===``)&&(s=`value`,r.value+=d,r.raws.value&&(r.raws.value+=d))}c=!1;break;case g.str:if(!r.attribute||!r.operator)return this.error(`Expected an attribute followed by an operator preceding the string.`,{index:l[h.FIELDS.START_POS]});var C=(0,u.unescapeValue)(d),w=C.unescaped,T=C.quoteMark;r.value=w,r.quoteMark=T,s=`value`,(0,v.ensureObject)(r,`raws`),r.raws.value=d,c=!1;break;case g.equals:if(!r.attribute)return this.expected(`attribute`,l[h.FIELDS.START_POS],d);if(r.value)return this.error(`Unexpected "=" found; an operator was already defined.`,{index:l[h.FIELDS.START_POS]});r.operator=r.operator?r.operator+d:d,s=`operator`,c=!1;break;case g.comment:if(s)if(c||f&&f[h.FIELDS.TYPE]===g.space||s===`insensitive`){var E=(0,v.getProp)(r,`spaces`,s,`after`)||``,ee=(0,v.getProp)(r,`raws`,`spaces`,s,`after`)||E;(0,v.ensureObject)(r,`raws`,`spaces`,s),r.raws.spaces[s].after=ee+d}else{var D=r[s]||``,O=(0,v.getProp)(r,`raws`,s)||D;(0,v.ensureObject)(r,`raws`),r.raws[s]=O+d}else o+=d;break;default:return this.error(`Unexpected "`+d+`" found.`,{index:l[h.FIELDS.START_POS]})}i++}re(r,`attribute`),re(r,`namespace`),this.newNode(new u.default(r)),this.position++},t.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=``,i=void 0;do if(E[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[h.FIELDS.TYPE]===g.comment){var o={};r&&=(o.before=r,``),i=new a.default({value:this.content(),source:te(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:o}),n.push(i)}while(++this.position<e);if(r){if(i)i.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],l=this.tokens[this.position-1];n.push(new c.default({value:``,source:k(s[h.FIELDS.START_LINE],s[h.FIELDS.START_COL],l[h.FIELDS.END_LINE],l[h.FIELDS.END_COL]),sourceIndex:s[h.FIELDS.START_POS],spaces:{before:r,after:``}}))}}return n},t.convertWhitespaceNodesToSpace=function(e,t){var n=this;t===void 0&&(t=!1);var r=``,i=``;return e.forEach(function(e){var a=n.lossySpace(e.spaces.before,t),o=n.lossySpace(e.rawSpaceBefore,t);r+=a+n.lossySpace(e.spaces.after,t&&a.length===0),i+=a+e.value+n.lossySpace(e.rawSpaceAfter,t&&o.length===0)}),i===r&&(i=void 0),{space:r,rawSpace:i}},t.isNamedCombinator=function(e){return e===void 0&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][h.FIELDS.TYPE]===g.slash&&this.tokens[e+1]&&this.tokens[e+1][h.FIELDS.TYPE]===g.word&&this.tokens[e+2]&&this.tokens[e+2][h.FIELDS.TYPE]===g.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,v.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=`/`+e+`/`);var r=new f.default({value:`/`+t+`/`,source:k(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:n});return this.position+=3,r}else this.unexpected()},t.combinator=function(){var e=this;if(this.content()===`|`)return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(t<0||this.tokens[t][h.FIELDS.TYPE]===g.comma||this.tokens[t][h.FIELDS.TYPE]===g.closeParenthesis){var n=this.parseWhitespaceEquivalentTokens(t);if(n.length>0){var r=this.current.last;if(r){var i=this.convertWhitespaceNodesToSpace(n),a=i.space,o=i.rawSpace;o!==void 0&&(r.rawSpaceAfter+=o),r.spaces.after+=a}else n.forEach(function(t){return e.newNode(t)})}return}var s=this.currToken,c=void 0;t>this.position&&(c=this.parseWhitespaceEquivalentTokens(t));var l;if(this.isNamedCombinator()?l=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===g.combinator?(l=new f.default({value:this.content(),source:te(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):E[this.currToken[h.FIELDS.TYPE]]||c||this.unexpected(),l){if(c){var u=this.convertWhitespaceNodesToSpace(c),d=u.space,p=u.rawSpace;l.spaces.before=d,l.rawSpaceBefore=p}}else{var m=this.convertWhitespaceNodesToSpace(c,!0),_=m.space,v=m.rawSpace;v||=_;var y={},b={spaces:{}};_.endsWith(` `)&&v.endsWith(` `)?(y.before=_.slice(0,_.length-1),b.spaces.before=v.slice(0,v.length-1)):_[0]===` `&&v[0]===` `?(y.after=_.slice(1),b.spaces.after=v.slice(1)):b.value=v,l=new f.default({value:` `,source:ne(s,this.tokens[this.position-1]),sourceIndex:s[h.FIELDS.START_POS],spaces:y,raws:b})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===g.space&&(l.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(l)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var e=new r.default({source:{start:D(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][h.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},t.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.error=function(e,t){throw this.root.error(e,t)},t.missingBackslash=function(){return this.error(`Expected a backslash preceding the semicolon.`,{index:this.currToken[h.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected(`opening parenthesis`,this.currToken[h.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected(`opening square bracket`,this.currToken[h.FIELDS.START_POS])},t.unexpected=function(){return this.error(`Unexpected '`+this.content()+`'. Escaping special characters with \\ may help.`,this.currToken[h.FIELDS.START_POS])},t.unexpectedPipe=function(){return this.error(`Unexpected '|'.`,this.currToken[h.FIELDS.START_POS])},t.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===g.word)return this.position++,this.word(e);if(this.nextToken[h.FIELDS.TYPE]===g.asterisk)return this.position++,this.universal(e);this.unexpectedPipe()},t.nesting=function(){if(this.nextToken&&this.content(this.nextToken)===`|`){this.position++;return}var e=this.currToken;this.newNode(new p.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===_.PSEUDO){var n=new r.default({source:{start:D(this.tokens[this.position])},sourceIndex:this.tokens[this.position][h.FIELDS.START_POS]}),i=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[h.FIELDS.TYPE]===g.openParenthesis&&t++,this.currToken[h.FIELDS.TYPE]===g.closeParenthesis&&t--,t?this.parse():(this.current.source.end=O(this.currToken),this.current.parent.source.end=O(this.currToken),this.position++);this.current=i}else{for(var a=this.currToken,o=`(`,s;this.position<this.tokens.length&&t;)this.currToken[h.FIELDS.TYPE]===g.openParenthesis&&t++,this.currToken[h.FIELDS.TYPE]===g.closeParenthesis&&t--,s=this.currToken,o+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(`value`,o,o):this.newNode(new c.default({value:o,source:k(a[h.FIELDS.START_LINE],a[h.FIELDS.START_COL],s[h.FIELDS.END_LINE],s[h.FIELDS.END_COL]),sourceIndex:a[h.FIELDS.START_POS]}))}if(t)return this.expected(`closing parenthesis`,this.currToken[h.FIELDS.START_POS])},t.pseudo=function(){for(var e=this,t=``,n=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===g.colon;)t+=this.content(),this.position++;if(!this.currToken)return this.expected([`pseudo-class`,`pseudo-element`],this.position-1);if(this.currToken[h.FIELDS.TYPE]===g.word)this.splitWord(!1,function(r,i){t+=r,e.newNode(new l.default({value:t,source:ne(n,e.currToken),sourceIndex:n[h.FIELDS.START_POS]})),i>1&&e.nextToken&&e.nextToken[h.FIELDS.TYPE]===g.openParenthesis&&e.error(`Misplaced parenthesis.`,{index:e.nextToken[h.FIELDS.START_POS]})});else return this.expected([`pseudo-class`,`pseudo-element`],this.currToken[h.FIELDS.START_POS])},t.space=function(){var e=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===g.comma||this.prevToken[h.FIELDS.TYPE]===g.openParenthesis||this.current.nodes.every(function(e){return e.type===`comment`})?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===g.comma||this.nextToken[h.FIELDS.TYPE]===g.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},t.string=function(){var e=this.currToken;this.newNode(new c.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.universal=function(e){var t=this.nextToken;if(t&&this.content(t)===`|`)return this.position++,this.namespace();var n=this.currToken;this.newNode(new d.default({value:this.content(),source:te(n),sourceIndex:n[h.FIELDS.START_POS]}),e),this.position++},t.splitWord=function(e,t){for(var n=this,r=this.nextToken,a=this.content();r&&~[g.dollar,g.caret,g.equals,g.word].indexOf(r[h.FIELDS.TYPE]);){this.position++;var c=this.content();if(a+=c,c.lastIndexOf(`\\`)===c.length-1){var l=this.nextToken;l&&l[h.FIELDS.TYPE]===g.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}r=this.nextToken}var u=ie(a,`.`).filter(function(e){var t=a[e-1]===`\\`,n=/^\d+\.\d+%$/.test(a);return!t&&!n}),d=ie(a,`#`).filter(function(e){return a[e-1]!==`\\`}),f=ie(a,`#{`);f.length&&(d=d.filter(function(e){return!~f.indexOf(e)}));var p=(0,m.default)(ae([0].concat(u,d)));p.forEach(function(r,c){var l=p[c+1]||a.length,f=a.slice(r,l);if(c===0&&t)return t.call(n,f,p.length);var m,g=n.currToken,_=g[h.FIELDS.START_POS]+p[c],v=k(g[1],g[2]+r,g[3],g[2]+(l-1));if(~u.indexOf(r)){var y={value:f.slice(1),source:v,sourceIndex:_};m=new i.default(re(y,`value`))}else if(~d.indexOf(r)){var b={value:f.slice(1),source:v,sourceIndex:_};m=new o.default(re(b,`value`))}else{var x={value:f,source:v,sourceIndex:_};re(x,`value`),m=new s.default(x)}n.newNode(m,e),e=null}),this.position++},t.word=function(e){var t=this.nextToken;return t&&this.content(t)===`|`?(this.position++,this.namespace()):this.splitWord(e)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(e){switch(this.currToken[h.FIELDS.TYPE]){case g.space:this.space();break;case g.comment:this.comment();break;case g.openParenthesis:this.parentheses();break;case g.closeParenthesis:e&&this.missingParenthesis();break;case g.openSquare:this.attribute();break;case g.dollar:case g.caret:case g.equals:case g.word:this.word();break;case g.colon:this.pseudo();break;case g.comma:this.comma();break;case g.asterisk:this.universal();break;case g.ampersand:this.nesting();break;case g.slash:case g.combinator:this.combinator();break;case g.str:this.string();break;case g.closeSquare:this.missingSquareBracket();case g.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(`, `)+` or `+r}var i=/^[aeiou]/.test(e[0])?`an`:`a`;return n?this.error(`Expected `+i+` `+e+`, found "`+n+`" instead.`,{index:t}):this.error(`Expected `+i+` `+e+`.`,{index:t})},t.requiredSpace=function(e){return this.options.lossy?` `:e},t.optionalSpace=function(e){return this.options.lossy?``:e},t.lossySpace=function(e,t){return this.options.lossy?t?` `:``:e},t.parseParenthesisToken=function(e){var t=this.content(e);return e[h.FIELDS.TYPE]===g.space?this.requiredSpace(t):t},t.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||``)+t),t=!0),e.namespace=t,re(e,`namespace`)),this.spaces&&=(e.spaces.before=this.spaces,``),this.current.append(e)},t.content=function(e){return e===void 0&&(e=this.currToken),this.css.slice(e[h.FIELDS.START_POS],e[h.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(e){e===void 0&&(e=this.position+1);for(var t=e;t<this.tokens.length;)if(ee[this.tokens[t][h.FIELDS.TYPE]]){t++;continue}else return t;return-1},T(e,[{key:`currToken`,get:function(){return this.tokens[this.position]}},{key:`nextToken`,get:function(){return this.tokens[this.position+1]}},{key:`prevToken`,get:function(){return this.tokens[this.position-1]}}]),e}(),e.exports=t.default})(H_,H_.exports),H_.exports)}var py;function my(){return py?V_.exports:(py=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=r(fy());function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return t===void 0&&(t={}),Object.assign({},this.options,t).updateSelector===!1?!1:typeof e!=`string`},t._isLossy=function(e){return e===void 0&&(e={}),Object.assign({},this.options,e).lossless===!1},t._root=function(e,t){return t===void 0&&(t={}),new n.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return t===void 0&&(t={}),new Promise(function(r,i){try{var a=n._root(e,t);Promise.resolve(n.func(a)).then(function(r){var i=void 0;return n._shouldUpdateSelector(e,t)&&(i=a.toString(),e.selector=i),{transform:r,root:a,string:i}}).then(r,i)}catch(e){i(e);return}})},t._runSync=function(e,t){t===void 0&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&typeof r.then==`function`)throw Error(`Selector processor returned a promise to a synchronous call.`);var i=void 0;return t.updateSelector&&typeof e!=`string`&&(i=n.toString(),e.selector=i),{transform:r,root:n,string:i}},t.ast=function(e,t){return this._run(e,t).then(function(e){return e.root})},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then(function(e){return e.transform})},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then(function(e){return e.string||e.root.toString()})},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}(),e.exports=t.default})(V_,V_.exports),V_.exports)}var hy={},Q={},gy;function _y(){if(gy)return Q;gy=1,Q.__esModule=!0,Q.universal=Q.tag=Q.string=Q.selector=Q.root=Q.pseudo=Q.nesting=Q.id=Q.comment=Q.combinator=Q.className=Q.attribute=void 0;var e=f(qv()),t=f(Cv()),n=f($v()),r=f(Ev()),i=f(kv()),a=f(ny()),o=f(Vv()),s=f(mv()),c=f(_v()),l=f(Rv()),u=f(Fv()),d=f(Xv());function f(e){return e&&e.__esModule?e:{default:e}}return Q.attribute=function(t){return new e.default(t)},Q.className=function(e){return new t.default(e)},Q.combinator=function(e){return new n.default(e)},Q.comment=function(e){return new r.default(e)},Q.id=function(e){return new i.default(e)},Q.nesting=function(e){return new a.default(e)},Q.pseudo=function(e){return new o.default(e)},Q.root=function(e){return new s.default(e)},Q.selector=function(e){return new c.default(e)},Q.string=function(e){return new l.default(e)},Q.tag=function(e){return new u.default(e)},Q.universal=function(e){return new d.default(e)},Q}var $={},vy;function yy(){if(vy)return $;vy=1,$.__esModule=!0,$.isComment=$.isCombinator=$.isClassName=$.isAttribute=void 0,$.isContainer=u,$.isIdentifier=void 0,$.isNamespace=d,$.isNesting=void 0,$.isNode=r,$.isPseudo=void 0,$.isPseudoClass=l,$.isPseudoElement=c,$.isUniversal=$.isTag=$.isString=$.isSelector=$.isRoot=void 0;var e=uv(),t,n=(t={},t[e.ATTRIBUTE]=!0,t[e.CLASS]=!0,t[e.COMBINATOR]=!0,t[e.COMMENT]=!0,t[e.ID]=!0,t[e.NESTING]=!0,t[e.PSEUDO]=!0,t[e.ROOT]=!0,t[e.SELECTOR]=!0,t[e.STRING]=!0,t[e.TAG]=!0,t[e.UNIVERSAL]=!0,t);function r(e){return typeof e==`object`&&n[e.type]}function i(e,t){return r(t)&&t.type===e}var a=i.bind(null,e.ATTRIBUTE);$.isAttribute=a,$.isClassName=i.bind(null,e.CLASS),$.isCombinator=i.bind(null,e.COMBINATOR),$.isComment=i.bind(null,e.COMMENT),$.isIdentifier=i.bind(null,e.ID),$.isNesting=i.bind(null,e.NESTING);var o=i.bind(null,e.PSEUDO);$.isPseudo=o,$.isRoot=i.bind(null,e.ROOT),$.isSelector=i.bind(null,e.SELECTOR),$.isString=i.bind(null,e.STRING);var s=i.bind(null,e.TAG);$.isTag=s,$.isUniversal=i.bind(null,e.UNIVERSAL);function c(e){return o(e)&&e.value&&(e.value.startsWith(`::`)||e.value.toLowerCase()===`:before`||e.value.toLowerCase()===`:after`||e.value.toLowerCase()===`:first-letter`||e.value.toLowerCase()===`:first-line`)}function l(e){return o(e)&&!c(e)}function u(e){return!!(r(e)&&e.walk)}function d(e){return a(e)||s(e)}return $}var by;function xy(){return by?hy:(by=1,(function(e){e.__esModule=!0;var t=uv();Object.keys(t).forEach(function(n){n===`default`||n===`__esModule`||n in e&&e[n]===t[n]||(e[n]=t[n])});var n=_y();Object.keys(n).forEach(function(t){t===`default`||t===`__esModule`||t in e&&e[t]===n[t]||(e[t]=n[t])});var r=yy();Object.keys(r).forEach(function(t){t===`default`||t===`__esModule`||t in e&&e[t]===r[t]||(e[t]=r[t])})})(hy),hy)}var Sy;function Cy(){return Sy?B_.exports:(Sy=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(my()),r=a(xy());function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return new n.default(e)};Object.assign(s,r),delete s.__esModule,t.default=s,e.exports=t.default})(B_,B_.exports),B_.exports)}var wy=hi(Cy()),Ty=/^(?:-\w+-)?animation-name$/,Ey=/^(?:-\w+-)?animation$/,Dy=/^(?:-\w+-)?keyframes$/,Oy=(e=``)=>{let t=Object.create(null),n=e.replace(/^data-v-/,``);return{postcssPlugin:`vue-sfc-scoped`,Rule(t){Ay(e,t)},AtRule(e){Dy.test(e.name)&&!e.params.endsWith(`-${n}`)&&(t[e.params]=e.params=e.params+`-`+n)},OnceExit(e){Object.keys(t).length&&e.walkDecls(e=>{Ty.test(e.prop)&&(e.value=e.value.split(`,`).map(e=>t[e.trim()]||e.trim()).join(`,`)),Ey.test(e.prop)&&(e.value=e.value.split(`,`).map(e=>{let n=e.trim().split(/\s+/),r=n.findIndex(e=>t[e]);return r===-1?e:(n.splice(r,1,t[n[r]]),n.join(` `))}).join(`,`))})}}},ky=new WeakSet;function Ay(e,t){if(ky.has(t)||t.parent&&t.parent.type===`atrule`&&Dy.test(t.parent.name))return;ky.add(t);let n=!1,r=t.parent;for(;r&&r.type!==`root`;){if(r.__deep){n=!0;break}r=r.parent}t.selector=wy(r=>{r.each(i=>{jy(e,t,i,r,n)})}).processSync(t.selector)}function jy(e,t,n,r,i,a=!1){let o=null,s=!i,c=!1,l=!1;if(n.each(u=>{if(u.type===`combinator`&&(u.value===`>>>`||u.value===`/deep/`))return u.value=` `,u.spaces.before=u.spaces.after=``,Bh(`the >>> and /deep/ combinators have been deprecated. Use :deep() instead.`),!1;if(u.type===`pseudo`){let{value:d}=u;if(Py(u)&&u.nodes.some(e=>e.some(Ny))){let f=!!o,p=u.nodes.some(e=>!e.some(Ny)),m=n.index(u)<n.length-1;if(Fy(u)&&!i&&!f&&p&&m)return Iy(e,t,n,r,u,i,a),l=!0,!1;if(d===`:not`&&!i&&!f&&p&&m)return;u.nodes.forEach(n=>jy(e,t,n,r,i||f,a)),f||(o=u,s=!1),c=!0}if(d===`:deep`||d===`::v-deep`){if(t.__deep=!0,u.nodes.length){let e=u;u.nodes[0].each(t=>{n.insertAfter(e,t),e=t});let t=n.at(n.index(u)-1);(!t||!My(t))&&n.insertAfter(u,wy.combinator({value:` `})),n.removeChild(u)}else{Bh(`${d} usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of ${d} <inner-selector>.`);let e=n.at(n.index(u)-1);e&&My(e)&&n.removeChild(e),n.removeChild(u)}return!1}if(d===`:slotted`||d===`::v-slotted`){jy(e,t,u.nodes[0],r,i,!0);let a=u;return u.nodes[0].each(e=>{n.insertAfter(a,e),a=e}),n.removeChild(u),s=!1,!1}if(d===`:global`||d===`::v-global`)return n.replaceWith(u.nodes[0]),!1}if(u.type===`universal`){let e=n.at(n.index(u)-1),t=n.at(n.index(u)+1);if(!e)if(t){t.type===`combinator`&&t.value===` `&&n.removeChild(t),n.removeChild(u);return}else return o=wy.combinator({value:``}),n.insertBefore(u,o),n.removeChild(u),!1;if(o)return}!c&&(u.type!==`pseudo`&&u.type!==`combinator`||u.type===`pseudo`&&(u.value===`:is`||u.value===`:where`)&&!o)&&(o=u)}),!l){if(t.nodes.some(e=>e.type===`rule`)){let e=t.__deep;if(!e){Ly(t);let e=t.nodes.filter(e=>e.type===`atrule`);for(let t of e)Ly(t)}s=e}if(o&&!c){let{type:n,value:c}=o;n===`pseudo`&&(c===`:is`||c===`:where`)&&(o.nodes.forEach(n=>jy(e,t,n,r,i,a)),s=!1)}if(o?o.spaces.after=``:n.first.spaces.before=``,s){let t=a?e+`-s`:e;n.insertAfter(o,wy.attribute({attribute:t,value:t,raws:{},quoteMark:`"`}))}}}function My(e){return e.type===`combinator`&&/^\s+$/.test(e.value)}function Ny(e){return e.type===`pseudo`&&(e.value===`:deep`||e.value===`::v-deep`)?!0:!!e.nodes?.some(e=>Ny(e))}function Py(e){return e.type===`pseudo`&&(e.value===`:is`||e.value===`:where`||e.value===`:has`||e.value===`:not`)}function Fy(e){return e.value===`:is`||e.value===`:where`||e.value===`:has`}function Iy(e,t,n,r,i,a,o){let s=n.index(i),c=i.nodes.map((i,c)=>{let l=n.clone();l.first&&(l.first.spaces.before=c===0?n.first.spaces.before:` `);let u=l.at(s),d=i.clone();return d.first&&(d.first.spaces.before=``),u.removeAll(),u.append(d),jy(e,t,l,r,a,o),l});n.replaceWith(...c)}function Ly(e){if(!e.nodes)return;let t=e.nodes.filter(e=>e.type===`decl`||e.type===`comment`);if(t.length){for(let n of t)e.removeChild(n);let n=new R_({nodes:t,selector:`&`});e.prepend(n)}}Oy.postcss=!0;var Ry={},zy={},By={},Vy={},Hy;function Uy(){if(Hy)return Vy;Hy=1;var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);return Vy.encode=function(t){if(0<=t&&t<e.length)return e[t];throw TypeError(`Must be between 0 and 63: `+t)},Vy.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1},Vy}var Wy;function Gy(){if(Wy)return By;Wy=1;var e=Uy(),t=5,n=1<<t,r=n-1,i=n;function a(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var t=(e&1)==1,n=e>>1;return t?-n:n}return By.encode=function(n){var o=``,s,c=a(n);do s=c&r,c>>>=t,c>0&&(s|=i),o+=e.encode(s);while(c>0);return o},By.decode=function(n,a,s){var c=n.length,l=0,u=0,d,f;do{if(a>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=e.decode(n.charCodeAt(a++)),f===-1)throw Error(`Invalid base64 digit: `+n.charAt(a-1));d=!!(f&i),f&=r,l+=f<<u,u+=t}while(d);s.value=o(l),s.rest=a},By}var Ky={},qy;function Jy(){return qy?Ky:(qy=1,(function(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y})(Ky),Ky)}var Yy={},Xy;function Zy(){if(Xy)return Yy;Xy=1;var e=Jy(),t=Object.prototype.hasOwnProperty,n=typeof Map<`u`;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,i){var a=n?r:e.toSetString(r),o=n?this.has(r):t.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(r),o||(n?this._set.set(r,s):this._set[a]=s)},r.prototype.has=function(r){if(n)return this._set.has(r);var i=e.toSetString(r);return t.call(this._set,i)},r.prototype.indexOf=function(r){if(n){var i=this._set.get(r);if(i>=0)return i}else{var a=e.toSetString(r);if(t.call(this._set,a))return this._set[a]}throw Error(`"`+r+`" is not in the set.`)},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},r.prototype.toArray=function(){return this._array.slice()},Yy.ArraySet=r,Yy}var Qy={},$y;function eb(){if($y)return Qy;$y=1;var e=Jy();function t(t,n){var r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||e.compareByGeneratedPositionsInflated(t,n)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){t(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||=(this._array.sort(e.compareByGeneratedPositionsInflated),!0),this._array},Qy.MappingList=n,Qy}var tb;function nb(){if(tb)return zy;tb=1;var e=Gy(),t=Jy(),n=Zy().ArraySet,r=eb().MappingList;function i(e){e||={},this._file=t.getArg(e,`file`,null),this._sourceRoot=t.getArg(e,`sourceRoot`,null),this._skipValidation=t.getArg(e,`skipValidation`,!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,n!=null&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;n!==null&&(a=t.relative(n,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},i.prototype.addMapping=function(e){var n=t.getArg(e,`generated`),r=t.getArg(e,`original`,null),i=t.getArg(e,`source`,null),a=t.getArg(e,`name`,null);this._skipValidation||this._validateMapping(n,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},i.prototype.setSourceContent=function(e,n){var r=e;this._sourceRoot!=null&&(r=t.relative(this._sourceRoot,r)),n==null?this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[t.toSetString(r)]=n)},i.prototype.applySourceMap=function(e,r,i){var a=r;if(r==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=t.relative(o,a));var s=new n,c=new n;this._mappings.unsortedForEach(function(n){if(n.source===a&&n.originalLine!=null){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});r.source!=null&&(n.source=r.source,i!=null&&(n.source=t.join(i,n.source)),o!=null&&(n.source=t.relative(o,n.source)),n.originalLine=r.line,n.originalColumn=r.column,r.name!=null&&(n.name=r.name))}var l=n.source;l!=null&&!s.has(l)&&s.add(l);var u=n.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(n){var r=e.sourceContentFor(n);r!=null&&(i!=null&&(n=t.join(i,n)),o!=null&&(n=t.relative(o,n)),this.setSourceContent(n,r))},this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var n=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(n=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!t.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=e.encode(u.generatedColumn-n),n=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=e.encode(f-s),s=f,l+=e.encode(u.originalLine-1-a),a=u.originalLine-1,l+=e.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=e.encode(d-o),o=d)),c+=l}return c},i.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;n!=null&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},zy.SourceMapGenerator=i,zy}var rb={},ib={},ab;function ob(){return ab?ib:(ab=1,(function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})(ib),ib)}var sb={},cb;function lb(){if(cb)return sb;cb=1;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(e,t){return Math.round(e+Math.random()*(t-e))}function n(r,i,a,o){if(a<o){var s=t(a,o),c=a-1;e(r,s,o);for(var l=r[o],u=a;u<o;u++)i(r[u],l)<=0&&(c+=1,e(r,c,u));e(r,c+1,u);var d=c+1;n(r,i,a,d-1),n(r,i,d+1,o)}}return sb.quickSort=function(e,t){n(e,t,0,e.length-1)},sb}var ub;function db(){if(ub)return rb;ub=1;var e=Jy(),t=ob(),n=Zy().ArraySet,r=Gy(),i=lb().quickSort;function a(t,n){var r=t;return typeof t==`string`&&(r=e.parseSourceMapInput(t)),r.sections==null?new o(r,n):new c(r,n)}a.fromSourceMap=function(e,t){return o.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},a.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(t,n,r){var i=n||null,o=r||a.GENERATED_ORDER,s;switch(o){case a.GENERATED_ORDER:s=this._generatedMappings;break;case a.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(t){var n=t.source===null?null:this._sources.at(t.source);return n=e.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:t.name===null?null:this._names.at(t.name)}},this).forEach(t,i)},a.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,`line`),i={source:e.getArg(n,`source`),originalLine:r,originalColumn:e.getArg(n,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(n.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},rb.SourceMapConsumer=a;function o(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var a=e.getArg(i,`version`),o=e.getArg(i,`sources`),s=e.getArg(i,`names`,[]),c=e.getArg(i,`sourceRoot`,null),l=e.getArg(i,`sourcesContent`,null),u=e.getArg(i,`mappings`),d=e.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=e.normalize(c),o=o.map(String).map(e.normalize).map(function(t){return c&&e.isAbsolute(c)&&e.isAbsolute(t)?e.relative(c,t):t}),this._names=n.fromArray(s.map(String),!0),this._sources=n.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(t){return e.computeSourceURL(c,t,r)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=r,this.file=d}o.prototype=Object.create(a.prototype),o.prototype.consumer=a,o.prototype._findSourceIndex=function(t){var n=t;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1},o.fromSourceMap=function(t,r){var a=Object.create(o.prototype),c=a._names=n.fromArray(t._names.toArray(),!0),l=a._sources=n.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=r,a._absoluteSources=a._sources.toArray().map(function(t){return e.computeSourceURL(a.sourceRoot,t,r)});for(var u=t._mappings.toArray().slice(),d=a.__generatedMappings=[],f=a.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new s;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=c.indexOf(h.name)),f.push(g)),d.push(g)}return i(a.__originalMappings,e.compareByOriginalPositions),a},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o.prototype._parseMappings=function(t,n){for(var a=1,o=0,c=0,l=0,u=0,d=0,f=t.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(t.charAt(p)===`;`)a++,p++,o=0;else if(t.charAt(p)===`,`)p++;else{for(v=new s,v.generatedLine=a,x=p;x<f&&!this._charIsMappingSeparator(t,x);x++);if(y=t.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)r.decode(t,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=c+b[2],c=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}i(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,i(g,e.compareByOriginalPositions),this.__originalMappings=g},o.prototype._findMapping=function(e,n,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return t.search(e,n,a,o)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,`line`),generatedColumn:e.getArg(t,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,e.compareByGeneratedPositionsDeflated,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var o=e.getArg(i,`source`,null);o!==null&&(o=this._sources.at(o),o=e.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=e.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:o,line:e.getArg(i,`originalLine`,null),column:e.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},o.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=e.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=e.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},o.prototype.generatedPositionFor=function(t){var n=e.getArg(t,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,`line`),originalColumn:e.getArg(t,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:e.getArg(o,`generatedLine`,null),column:e.getArg(o,`generatedColumn`,null),lastColumn:e.getArg(o,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},rb.BasicSourceMapConsumer=o;function c(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var o=e.getArg(i,`version`),s=e.getArg(i,`sections`);if(o!=this._version)throw Error(`Unsupported version: `+o);this._sources=new n,this._names=new n;var c={line:-1,column:0};this._sections=s.map(function(t){if(t.url)throw Error(`Support for url field in sections not implemented.`);var n=e.getArg(t,`offset`),i=e.getArg(n,`line`),o=e.getArg(n,`column`);if(i<c.line||i===c.line&&o<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new a(e.getArg(t,`map`),r)}})}return c.prototype=Object.create(a.prototype),c.prototype.constructor=a,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),c.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,`line`),generatedColumn:e.getArg(n,`column`)},i=t.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},c.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(e.getArg(t,`source`))!==-1){var i=r.consumer.generatedPositionFor(t);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},c.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var a=this._sections[r],o=a.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=a.consumer._sources.at(c.source);l=e.computeSourceURL(a.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=a.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(a.generatedOffset.generatedLine===c.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},rb.IndexedSourceMapConsumer=c,rb}var fb={},pb;function mb(){if(pb)return fb;pb=1;var e=nb().SourceMapGenerator,t=Jy(),n=/(\r?\n)/,r=10,i=`$$$isSourceNode$$$`;function a(e,t,n,r,a){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=a??null,this[i]=!0,r!=null&&this.add(r)}return a.fromStringWithSourceMap=function(e,r,i){var o=new a,s=e.split(n),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return r.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)o.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;o.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),o.add(s.splice(c).join(``))),r.sources.forEach(function(e){var n=r.sourceContentFor(e);n!=null&&(i!=null&&(e=t.join(i,e)),o.setSourceContent(e,n))}),o;function p(e,n){if(e===null||e.source===void 0)o.add(n);else{var r=i?t.join(i,e.source):e.source;o.add(new a(e.originalLine,e.originalColumn,r,n,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[i]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[i]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[i]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},a.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},a.prototype.walkSourceContents=function(e){for(var n=0,r=this.children.length;n<r;n++)this.children[n][i]&&this.children[n].walkSourceContents(e);for(var a=Object.keys(this.sourceContents),n=0,r=a.length;n<r;n++)e(t.fromSetString(a[n]),this.sourceContents[a[n]])},a.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},a.prototype.toStringWithSourceMap=function(t){var n={code:``,line:1,column:0},i=new e(t),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(i.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===r?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){i.setSourceContent(e,t)}),{code:n.code,map:i}},fb.SourceNode=a,fb}var hb;function gb(){return hb?Ry:(hb=1,Ry.SourceMapGenerator=nb().SourceMapGenerator,Ry.SourceMapConsumer=db().SourceMapConsumer,Ry.SourceNode=mb().SourceNode,Ry)}var _b,vb;function yb(){if(vb)return _b;vb=1;var e=gb(),t=e.SourceMapConsumer,n=e.SourceMapGenerator;_b=r;function r(e,r){if(!e)return r;if(!r)return e;var i=new t(e),a=new t(r),o=new n;return a.eachMapping(function(e){if(e.originalLine!=null){var t=i.originalPositionFor({line:e.originalLine,column:e.originalColumn});t.source!=null&&o.addMapping({original:{line:t.line,column:t.column},generated:{line:e.generatedLine,column:e.generatedColumn},source:t.source,name:t.name})}}),[i,a].forEach(function(e){e.sources.forEach(function(t){o._sources.add(t);var n=e.sourceContentFor(t);n!=null&&o.setSourceContent(t,n)})}),o._sourceRoot=e.sourceRoot,o._file=e.file,JSON.parse(o.toString())}return _b}var bb=hi(yb()),xb=Object.defineProperty,Sb=Object.defineProperties,Cb=Object.getOwnPropertyDescriptors,wb=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,Db=(e,t,n)=>t in e?xb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ob=(e,t)=>{for(var n in t||={})Tb.call(t,n)&&Db(e,n,t[n]);if(wb)for(var n of wb(t))Eb.call(t,n)&&Db(e,n,t[n]);return e},kb=(e,t)=>Sb(e,Cb(t)),Ab=(t,n,r,i=e)=>{let{compileString:a,renderSync:o}=i(`sass`),s=Pb(t,r.filename,r.additionalData),c,l,u;try{if(a){let{pathToFileURL:e,fileURLToPath:t}=i(`url`),o=a(s,kb(Ob({},r),{url:e(r.filename),sourceMap:!!n}));c=o.css,l=o.loadedUrls.map(e=>t(e)),u=n?o.sourceMap:void 0}else{let e=o(kb(Ob({},r),{data:s,file:r.filename,outFile:r.filename,sourceMap:!!n}));c=e.css.toString(),l=e.stats.includedFiles,u=n?JSON.parse(e.map.toString()):void 0}return n?{code:c,errors:[],dependencies:l,map:bb(n,u)}:{code:c,errors:[],dependencies:l}}catch(e){return{code:``,errors:[e],dependencies:[]}}},jb=(e,t,n,r)=>Ab(e,t,kb(Ob({},n),{indentedSyntax:!0}),r),Mb=(t,n,r,i=e)=>{let a=i(`less`),o,s=null;if(a.render(Pb(t,r.filename,r.additionalData),kb(Ob({},r),{syncImport:!0}),(e,t)=>{s=e,o=t}),s)return{code:``,errors:[s],dependencies:[]};let c=o.imports;return n?{code:o.css.toString(),map:bb(n,o.map),errors:[],dependencies:c}:{code:o.css.toString(),errors:[],dependencies:c}},Nb=(t,n,r,i=e)=>{let a=i(`stylus`);try{let e=a(t,r);n&&e.set(`sourcemap`,{inline:!1,comment:!1});let i=e.render(),o=e.deps();return n?{code:i,map:bb(n,e.sourcemap),errors:[],dependencies:o}:{code:i,errors:[],dependencies:o}}catch(e){return{code:``,errors:[e],dependencies:[]}}};function Pb(e,t,n){return n?fe(n)?n(e,t):n+e:e}var Fb={less:Mb,sass:jb,scss:Ab,styl:Nb,stylus:Nb},Ib=Object.defineProperty,Lb=Object.defineProperties,Rb=Object.getOwnPropertyDescriptors,zb=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Vb=Object.prototype.propertyIsEnumerable,Hb=(e,t,n)=>t in e?Ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ub=(e,t)=>{for(var n in t||={})Bb.call(t,n)&&Hb(e,n,t[n]);if(zb)for(var n of zb(t))Vb.call(t,n)&&Hb(e,n,t[n]);return e},Wb=(e,t)=>Lb(e,Rb(t));function Gb(e){return Kb(Wb(Ub({},e),{isAsync:!0}))}function Kb(e){let{filename:t,id:n,scoped:r=!1,trim:i=!0,isProd:a=!1,modules:o=!1,modulesOptions:s={},preprocessLang:c,postcssOptions:l,postcssPlugins:u}=e,d=c&&Fb[c],f=d&&qb(e,d),p=f?f.map:e.inMap||e.map,m=f?f.code:e.source,h=n.replace(/^data-v-/,``),g=`data-v-${h}`,_=(u||[]).slice();if(_.unshift(Vl({id:h,isProd:a})),i&&_.push(z_()),r&&_.push(Oy(g)),o)throw Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");let v=Wb(Ub({},l),{to:t,from:t});p&&(v.map={inline:!1,annotation:!1,prev:p});let y,b,x,S=new Set(f?f.dependencies:[]);S.delete(t);let C=[];f&&f.errors.length&&C.push(...f.errors);let w=e=>(e.forEach(e=>{e.type===`dependency`&&S.add(e.file)}),S);try{if(y=Y(_).process(m,v),e.isAsync)return y.then(e=>({code:e.css||``,map:e.map&&e.map.toJSON(),errors:C,modules:void 0,rawResult:e,dependencies:w(e.messages)})).catch(e=>({code:``,map:void 0,errors:[...C,e],rawResult:void 0,dependencies:S}));w(y.messages),b=y.css,x=y.map}catch(e){C.push(e)}return{code:b||``,map:x&&x.toJSON(),errors:C,rawResult:y,dependencies:S}}function qb(e,t){if(!e.preprocessCustomRequire)throw Error("[@vue/compiler-sfc] Style preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor.");return t(e.source,e.inMap||e.map,Ub({filename:e.filename},e.preprocessOptions),e.preprocessCustomRequire)}var Jb=`Unknown`;function Yb(e,t){switch(e.type){case`StringLiteral`:case`NumericLiteral`:return String(e.value);case`Identifier`:if(!t)return e.name}}function Xb(e){return e.filter(e=>!!e).join(`, `)}function Zb(e){return e.type.endsWith(`Literal`)}function Qb(e,t){return!!(e&&t&&e.type===`CallExpression`&&e.callee.type===`Identifier`&&(typeof t==`string`?e.callee.name===t:t(e.callee.name)))}function $b(e){return e.length>1?`[${e.join(`, `)}]`:e[0]}function ex(e){return e.type===`ImportSpecifier`?e.imported.type===`Identifier`?e.imported.name:e.imported.value:e.type===`ImportNamespaceSpecifier`?`*`:`default`}function tx(e){return e.type===`Identifier`?e.name:e.type===`StringLiteral`?e.value:null}function nx(e){return e.computed?e.key.type===`TemplateLiteral`&&!e.key.expressions.length?e.key.quasis.map(e=>e.value.cooked).join(``):null:e.key.type===`Identifier`?e.key.name:e.key.type===`StringLiteral`?e.key.value:e.key.type===`NumericLiteral`?String(e.key.value):null}var rx=(bd.posix||bd).normalize,ix=/\\/g;function ax(e){return rx(e.replace(ix,`/`))}var ox=(bd.posix||bd).join,sx=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~\-]/;function cx(e){return sx.test(e)?JSON.stringify(e):e}var lx=(...e)=>e.some(e=>e===`js`||e===`jsx`),ux=(...e)=>e.some(e=>e===`ts`||e===`tsx`);function dx(e){for(let t of e)if(t.type===`ExportDefaultDeclaration`&&t.declaration.type===`ObjectExpression`)return fx(t.declaration);return{}}function fx(e){let t={};Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!1});for(let n of e.properties)if(n.type===`ObjectProperty`&&!n.computed&&n.key.type===`Identifier`){if(n.key.name===`props`)for(let e of hx(n.value))t[e]=`props`;else if(n.key.name===`inject`)for(let e of hx(n.value))t[e]=`options`;else if(n.value.type===`ObjectExpression`&&(n.key.name===`computed`||n.key.name===`methods`))for(let e of px(n.value))t[e]=`options`}else if(n.type===`ObjectMethod`&&n.key.type===`Identifier`&&(n.key.name===`setup`||n.key.name===`data`)){for(let e of n.body.body)if(e.type===`ReturnStatement`&&e.argument&&e.argument.type===`ObjectExpression`)for(let r of px(e.argument))t[r]=n.key.name===`setup`?`setup-maybe-ref`:`data`}return t}function px(e){let t=[];for(let n of e.properties){if(n.type===`SpreadElement`)continue;let e=Yb(n.key,n.computed);e&&t.push(String(e))}return t}function mx(e){let t=[];for(let n of e.elements)n&&n.type===`StringLiteral`&&t.push(n.value);return t}function hx(e){return e.type===`ArrayExpression`?mx(e):e.type===`ObjectExpression`?px(e):[]}var gx=44,_x=59,vx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,yx=new Uint8Array(64),bx=new Uint8Array(128);for(let e=0;e<vx.length;e++){let t=vx.charCodeAt(e);yx[e]=t,bx[t]=e}function xx(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(yx[t])}while(r>0);return t}var Sx=1024*16,Cx=typeof TextDecoder<`u`?new TextDecoder:ae.Buffer===void 0?{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}}:{decode(e){return ae.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}},wx=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(Sx)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===Sx&&(this.out+=Cx.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+Cx.decode(e.subarray(0,n)):t}};function Tx(e){let t=new wx,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(_x),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(gx),c=xx(t,o[0],c),o.length!==1&&(n=xx(t,o[1],n),r=xx(t,o[2],r),i=xx(t,o[3],i),o.length!==4&&(a=xx(t,o[4],a)))}}return t.flush()}var Ex=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Dx=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}else if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function Ox(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof ae.Buffer==`function`?e=>ae.Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var kx=Ox(),Ax=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Tx(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+kx(this.toString())}};function jx(e){let t=e.split(`
|
|
88
|
+
`))})}});z_.postcss=!0;var B_={exports:{}},V_={exports:{}},H_={exports:{}},U_={exports:{}},W_={exports:{}},G_={exports:{}},K_={},q_={exports:{}},J_;function Y_(){return J_?q_.exports:(J_=1,(function(e,t){t.__esModule=!0,t.default=i;function n(e){for(var t=e.toLowerCase(),n=``,r=!1,i=0;i<6&&t[i]!==void 0;i++){var a=t.charCodeAt(i),o=a>=97&&a<=102||a>=48&&a<=57;if(r=a===32,!o)break;n+=t[i]}if(n.length!==0){var s=parseInt(n,16);return s>=55296&&s<=57343||s===0||s>1114111?[`�`,n.length+ +!!r]:[String.fromCodePoint(s),n.length+ +!!r]}}var r=/\\/;function i(e){if(!r.test(e))return e;for(var t=``,i=0;i<e.length;i++){if(e[i]===`\\`){var a=n(e.slice(i+1,i+7));if(a!==void 0){t+=a[0],i+=a[1];continue}if(e[i+1]===`\\`){t+=`\\`,i++;continue}e.length===i+1&&(t+=e[i]);continue}t+=e[i]}return t}e.exports=t.default})(q_,q_.exports),q_.exports)}var X_={exports:{}},Z_;function Q_(){return Z_?X_.exports:(Z_=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=[...arguments].slice(1);t.length>0;){var n=t.shift();if(!e[n])return;e=e[n]}return e}e.exports=t.default})(X_,X_.exports),X_.exports)}var $_={exports:{}},ev;function tv(){return ev?$_.exports:(ev=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=[...arguments].slice(1);t.length>0;){var n=t.shift();e[n]||(e[n]={}),e=e[n]}}e.exports=t.default})($_,$_.exports),$_.exports)}var nv={exports:{}},rv;function iv(){return rv?nv.exports:(rv=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){for(var t=``,n=e.indexOf(`/*`),r=0;n>=0;){t+=e.slice(r,n);var i=e.indexOf(`*/`,n+2);if(i<0)return t;r=i+2,n=e.indexOf(`/*`,r)}return t+=e.slice(r),t}e.exports=t.default})(nv,nv.exports),nv.exports)}var av;function ov(){if(av)return K_;av=1,K_.__esModule=!0,K_.unesc=K_.stripComments=K_.getProp=K_.ensureObject=void 0,K_.unesc=e(Y_()).default,K_.getProp=e(Q_()).default,K_.ensureObject=e(tv()).default,K_.stripComments=e(iv()).default;function e(e){return e&&e.__esModule?e:{default:e}}return K_}var sv;function cv(){return sv?G_.exports:(sv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=ov();function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var a=function e(t,n){if(typeof t!=`object`||!t)return t;var r=new t.constructor;for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];i===`parent`&&typeof a==`object`?n&&(r[i]=n):a instanceof Array?r[i]=a.map(function(t){return e(t,r)}):r[i]=e(a,r)}return r};t.default=function(){function e(e){e===void 0&&(e={}),Object.assign(this,e),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||``,this.spaces.after=this.spaces.after||``}var t=e.prototype;return t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},t.next=function(){return this.parent.at(this.parent.index(this)+1)},t.prev=function(){return this.parent.at(this.parent.index(this)-1)},t.clone=function(e){e===void 0&&(e={});var t=a(this);for(var n in e)t[n]=e[n];return t},t.appendToPropertyAndEscape=function(e,t,n){this.raws||={};var r=this[e],i=this.raws[e];this[e]=r+t,i||n!==t?this.raws[e]=(i||r)+n:delete this.raws[e]},t.setPropertyAndEscape=function(e,t,n){this.raws||={},this[e]=t,this.raws[e]=n},t.setPropertyWithoutEscape=function(e,t){this[e]=t,this.raws&&delete this.raws[e]},t.isAtPosition=function(e,t){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>e||this.source.end.line<e||this.source.start.line===e&&this.source.start.column>t||this.source.end.line===e&&this.source.end.column<t)},t.stringifyProperty=function(e){return this.raws&&this.raws[e]||this[e]},t.valueToString=function(){return String(this.stringifyProperty(`value`))},t.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join(``)},i(e,[{key:`rawSpaceBefore`,get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.before;return e===void 0&&(e=this.spaces&&this.spaces.before),e||``},set:function(e){(0,n.ensureObject)(this,`raws`,`spaces`),this.raws.spaces.before=e}},{key:`rawSpaceAfter`,get:function(){var e=this.raws&&this.raws.spaces&&this.raws.spaces.after;return e===void 0&&(e=this.spaces.after),e||``},set:function(e){(0,n.ensureObject)(this,`raws`,`spaces`),this.raws.spaces.after=e}}]),e}(),e.exports=t.default})(G_,G_.exports),G_.exports)}var X={},lv;function uv(){return lv?X:(lv=1,X.__esModule=!0,X.UNIVERSAL=X.TAG=X.STRING=X.SELECTOR=X.ROOT=X.PSEUDO=X.NESTING=X.ID=X.COMMENT=X.COMBINATOR=X.CLASS=X.ATTRIBUTE=void 0,X.TAG=`tag`,X.STRING=`string`,X.SELECTOR=`selector`,X.ROOT=`root`,X.PSEUDO=`pseudo`,X.NESTING=`nesting`,X.ID=`id`,X.COMMENT=`comment`,X.COMBINATOR=`combinator`,X.CLASS=`class`,X.ATTRIBUTE=`attribute`,X.UNIVERSAL=`universal`,X)}var dv;function fv(){return dv?W_.exports:(dv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(cv()),r=a(uv());function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=c(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
89
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(e,t){if(e){if(typeof e==`string`)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}t.default=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.nodes||=[],n}var n=t.prototype;return n.append=function(e){return e.parent=this,this.nodes.push(e),this},n.prepend=function(e){for(var t in e.parent=this,this.nodes.unshift(e),this.indexes)this.indexes[t]++;return this},n.at=function(e){return this.nodes[e]},n.index=function(e){return typeof e==`number`?e:this.nodes.indexOf(e)},n.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this},n.removeAll=function(){for(var e=s(this.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.nodes=[],this},n.empty=function(){return this.removeAll()},n.insertAfter=function(e,t){var n;t.parent=this;for(var r=this.index(e),i=[],a=2;a<arguments.length;a++)i.push(arguments[a]);(n=this.nodes).splice.apply(n,[r+1,0,t].concat(i)),t.parent=this;var o;for(var s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+arguments.length-1);return this},n.insertBefore=function(e,t){var n;t.parent=this;for(var r=this.index(e),i=[],a=2;a<arguments.length;a++)i.push(arguments[a]);(n=this.nodes).splice.apply(n,[r,0,t].concat(i)),t.parent=this;var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o+arguments.length-1);return this},n._findChildAtPosition=function(e,t){var n=void 0;return this.each(function(r){if(r.atPosition){var i=r.atPosition(e,t);if(i)return n=i,!1}else if(r.isAtPosition(e,t))return n=r,!1}),n},n.atPosition=function(e,t){if(this.isAtPosition(e,t))return this._findChildAtPosition(e,t)||this},n._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},n.each=function(e){this.lastEach||=0,this.indexes||={},this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]<this.length&&(n=this.indexes[t],r=e(this.at(n),n),r!==!1);)this.indexes[t]+=1;if(delete this.indexes[t],r===!1)return!1}},n.walk=function(e){return this.each(function(t,n){var r=e(t,n);if(r!==!1&&t.length&&(r=t.walk(e)),r===!1)return!1})},n.walkAttributes=function(e){var t=this;return this.walk(function(n){if(n.type===r.ATTRIBUTE)return e.call(t,n)})},n.walkClasses=function(e){var t=this;return this.walk(function(n){if(n.type===r.CLASS)return e.call(t,n)})},n.walkCombinators=function(e){var t=this;return this.walk(function(n){if(n.type===r.COMBINATOR)return e.call(t,n)})},n.walkComments=function(e){var t=this;return this.walk(function(n){if(n.type===r.COMMENT)return e.call(t,n)})},n.walkIds=function(e){var t=this;return this.walk(function(n){if(n.type===r.ID)return e.call(t,n)})},n.walkNesting=function(e){var t=this;return this.walk(function(n){if(n.type===r.NESTING)return e.call(t,n)})},n.walkPseudos=function(e){var t=this;return this.walk(function(n){if(n.type===r.PSEUDO)return e.call(t,n)})},n.walkTags=function(e){var t=this;return this.walk(function(n){if(n.type===r.TAG)return e.call(t,n)})},n.walkUniversals=function(e){var t=this;return this.walk(function(n){if(n.type===r.UNIVERSAL)return e.call(t,n)})},n.split=function(e){var t=this,n=[];return this.reduce(function(r,i,a){var o=e.call(t,i);return n.push(i),o?(r.push(n),n=[]):a===t.length-1&&r.push(n),r},[])},n.map=function(e){return this.nodes.map(e)},n.reduce=function(e,t){return this.nodes.reduce(e,t)},n.every=function(e){return this.nodes.every(e)},n.some=function(e){return this.nodes.some(e)},n.filter=function(e){return this.nodes.filter(e)},n.sort=function(e){return this.nodes.sort(e)},n.toString=function(){return this.map(String).join(``)},d(t,[{key:`first`,get:function(){return this.at(0)}},{key:`last`,get:function(){return this.at(this.length-1)}},{key:`length`,get:function(){return this.nodes.length}}]),t}(n.default),e.exports=t.default})(W_,W_.exports),W_.exports)}var pv;function mv(){return pv?U_.exports:(pv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c(e,t)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}t.default=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.ROOT,n}var n=t.prototype;return n.toString=function(){var e=this.reduce(function(e,t){return e.push(String(t)),e},[]).join(`,`);return this.trailingComma?e+`,`:e},n.error=function(e,t){return this._error?this._error(e,t):Error(e)},o(t,[{key:`errorGenerator`,set:function(e){this._error=e}}]),t}(n.default),e.exports=t.default})(U_,U_.exports),U_.exports)}var hv={exports:{}},gv;function _v(){return gv?hv.exports:(gv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.SELECTOR,n}return t}(n.default),e.exports=t.default})(hv,hv.exports),hv.exports)}var vv={exports:{}},yv,bv;function xv(){if(bv)return yv;bv=1;var e={}.hasOwnProperty,t=function(t,n){if(!t)return n;var r={};for(var i in n)r[i]=e.call(t,i)?t[i]:n[i];return r},n=/[ -,\.\/:-@\[-\^`\{-~]/,r=/[ -,\.\/:-@\[\]\^`\{-~]/,i=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(a,o){o=t(o,e.options),o.quotes!=`single`&&o.quotes!=`double`&&(o.quotes=`single`);for(var s=o.quotes==`double`?`"`:`'`,c=o.isIdentifier,l=a.charAt(0),u=``,d=0,f=a.length;d<f;){var p=a.charAt(d++),m=p.charCodeAt(),h=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&d<f){var g=a.charCodeAt(d++);(g&64512)==56320?m=((m&1023)<<10)+(g&1023)+65536:d--}h=`\\`+m.toString(16).toUpperCase()+` `}else h=o.escapeEverything?n.test(p)?`\\`+p:`\\`+m.toString(16).toUpperCase()+` `:/[\t\n\f\r\x0B]/.test(p)?`\\`+m.toString(16).toUpperCase()+` `:p==`\\`||!c&&(p==`"`&&s==p||p==`'`&&s==p)||c&&r.test(p)?`\\`+p:p;u+=h}return c&&(/^-[-\d]/.test(u)?u=`\\-`+u.slice(1):/\d/.test(l)&&(u=`\\3`+l+` `+u.slice(1))),u=u.replace(i,function(e,t,n){return t&&t.length%2?e:(t||``)+n}),!c&&o.wrap?s+u+s:u};return a.options={escapeEverything:!1,isIdentifier:!1,quotes:`single`,wrap:!1},a.version=`3.0.0`,yv=a,yv}var Sv;function Cv(){return Sv?vv.exports:(Sv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(xv()),r=ov(),i=o(cv()),a=uv();function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}t.default=function(e){l(t,e);function t(t){var n=e.call(this,t)||this;return n.type=a.CLASS,n._constructed=!0,n}var i=t.prototype;return i.valueToString=function(){return`.`+e.prototype.valueToString.call(this)},c(t,[{key:`value`,get:function(){return this._value},set:function(e){if(this._constructed){var t=(0,n.default)(e,{isIdentifier:!0});t===e?this.raws&&delete this.raws.value:((0,r.ensureObject)(this,`raws`),this.raws.value=t)}this._value=e}}]),t}(i.default),e.exports=t.default})(vv,vv.exports),vv.exports)}var wv={exports:{}},Tv;function Ev(){return Tv?wv.exports:(Tv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.COMMENT,n}return t}(n.default),e.exports=t.default})(wv,wv.exports),wv.exports)}var Dv={exports:{}},Ov;function kv(){return Ov?Dv.exports:(Ov=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.ID,n}var n=t.prototype;return n.valueToString=function(){return`#`+e.prototype.valueToString.call(this)},t}(n.default),e.exports=t.default})(Dv,Dv.exports),Dv.exports)}var Av={exports:{}},jv={exports:{}},Mv;function Nv(){return Mv?jv.exports:(Mv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=a(xv()),r=ov(),i=a(cv());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}t.default=function(e){c(t,e);function t(){return e.apply(this,arguments)||this}var i=t.prototype;return i.qualifiedName=function(e){return this.namespace?this.namespaceString+`|`+e:e},i.valueToString=function(){return this.qualifiedName(e.prototype.valueToString.call(this))},s(t,[{key:`namespace`,get:function(){return this._namespace},set:function(e){if(e===!0||e===`*`||e===`&`){this._namespace=e,this.raws&&delete this.raws.namespace;return}var t=(0,n.default)(e,{isIdentifier:!0});this._namespace=e,t===e?this.raws&&delete this.raws.namespace:((0,r.ensureObject)(this,`raws`),this.raws.namespace=t)}},{key:`ns`,get:function(){return this._namespace},set:function(e){this.namespace=e}},{key:`namespaceString`,get:function(){if(this.namespace){var e=this.stringifyProperty(`namespace`);return e===!0?``:e}else return``}}]),t}(i.default),e.exports=t.default})(jv,jv.exports),jv.exports)}var Pv;function Fv(){return Pv?Av.exports:(Pv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(Nv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.TAG,n}return t}(n.default),e.exports=t.default})(Av,Av.exports),Av.exports)}var Iv={exports:{}},Lv;function Rv(){return Lv?Iv.exports:(Lv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.STRING,n}return t}(n.default),e.exports=t.default})(Iv,Iv.exports),Iv.exports)}var zv={exports:{}},Bv;function Vv(){return Bv?zv.exports:(Bv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(fv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.PSEUDO,n}var n=t.prototype;return n.toString=function(){var e=this.length?`(`+this.map(String).join(`,`)+`)`:``;return[this.rawSpaceBefore,this.stringifyProperty(`value`),e,this.rawSpaceAfter].join(``)},t}(n.default),e.exports=t.default})(zv,zv.exports),zv.exports)}var Hv={},Uv,Wv;function Gv(){return Wv?Uv:(Wv=1,Uv=Lh.deprecate,Uv)}var Kv;function qv(){return Kv?Hv:(Kv=1,(function(e){e.__esModule=!0,e.default=void 0,e.unescapeValue=g;var t=o(xv()),n=o(Y_()),r=o(Nv()),i=uv(),a;function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var d=Gv(),f=/^('|")([^]*)\1$/,p=d(function(){},`Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead.`),m=d(function(){},`Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead.`),h=d(function(){},`Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.`);function g(e){var t=!1,r=null,i=e,a=i.match(f);return a&&(r=a[1],i=a[2]),i=(0,n.default)(i),i!==e&&(t=!0),{deprecatedUsage:t,unescaped:i,quoteMark:r}}function _(e){if(e.quoteMark!==void 0||e.value===void 0)return e;h();var t=g(e.value),n=t.quoteMark,r=t.unescaped;return e.raws||={},e.raws.value===void 0&&(e.raws.value=e.value),e.value=r,e.quoteMark=n,e}var v=function(e){l(n,e);function n(t){var n;return t===void 0&&(t={}),n=e.call(this,_(t))||this,n.type=i.ATTRIBUTE,n.raws=n.raws||{},Object.defineProperty(n.raws,"unquoted",{get:d(function(){return n.value},`attr.raws.unquoted is deprecated. Call attr.value instead.`),set:d(function(){return n.value},`Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.`)}),n._constructed=!0,n}var r=n.prototype;return r.getQuotedValue=function(e){e===void 0&&(e={});var n=y[this._determineQuoteMark(e)];return(0,t.default)(this._value,n)},r._determineQuoteMark=function(e){return e.smart?this.smartQuoteMark(e):this.preferredQuoteMark(e)},r.setValue=function(e,t){t===void 0&&(t={}),this._value=e,this._quoteMark=this._determineQuoteMark(t),this._syncRawValue()},r.smartQuoteMark=function(e){var r=this.value,i=r.replace(/[^']/g,``).length,a=r.replace(/[^"]/g,``).length;if(i+a===0){var o=(0,t.default)(r,{isIdentifier:!0});if(o===r)return n.NO_QUOTE;var s=this.preferredQuoteMark(e);if(s===n.NO_QUOTE){var c=this.quoteMark||e.quoteMark||n.DOUBLE_QUOTE,l=y[c];if((0,t.default)(r,l).length<o.length)return c}return s}else if(a===i)return this.preferredQuoteMark(e);else if(a<i)return n.DOUBLE_QUOTE;else return n.SINGLE_QUOTE},r.preferredQuoteMark=function(e){var t=e.preferCurrentQuoteMark?this.quoteMark:e.quoteMark;return t===void 0&&(t=e.preferCurrentQuoteMark?e.quoteMark:this.quoteMark),t===void 0&&(t=n.DOUBLE_QUOTE),t},r._syncRawValue=function(){var e=(0,t.default)(this._value,y[this.quoteMark]);e===this._value?this.raws&&delete this.raws.value:this.raws.value=e},r._handleEscapes=function(e,n){if(this._constructed){var r=(0,t.default)(n,{isIdentifier:!0});r===n?delete this.raws[e]:this.raws[e]=r}},r._spacesFor=function(e){var t={before:``,after:``},n=this.spaces[e]||{},r=this.raws.spaces&&this.raws.spaces[e]||{};return Object.assign(t,n,r)},r._stringFor=function(e,t,n){t===void 0&&(t=e),n===void 0&&(n=b);var r=this._spacesFor(t);return n(this.stringifyProperty(e),r)},r.offsetOf=function(e){var t=1,n=this._spacesFor(`attribute`);if(t+=n.before.length,e===`namespace`||e===`ns`)return this.namespace?t:-1;if(e===`attributeNS`||(t+=this.namespaceString.length,this.namespace&&(t+=1),e===`attribute`))return t;t+=this.stringifyProperty(`attribute`).length,t+=n.after.length;var r=this._spacesFor(`operator`);t+=r.before.length;var i=this.stringifyProperty(`operator`);if(e===`operator`)return i?t:-1;t+=i.length,t+=r.after.length;var a=this._spacesFor(`value`);t+=a.before.length;var o=this.stringifyProperty(`value`);if(e===`value`)return o?t:-1;t+=o.length,t+=a.after.length;var s=this._spacesFor(`insensitive`);return t+=s.before.length,e===`insensitive`&&this.insensitive?t:-1},r.toString=function(){var e=this,t=[this.rawSpaceBefore,`[`];return t.push(this._stringFor(`qualifiedAttribute`,`attribute`)),this.operator&&(this.value||this.value===``)&&(t.push(this._stringFor(`operator`)),t.push(this._stringFor(`value`)),t.push(this._stringFor(`insensitiveFlag`,`insensitive`,function(t,n){return t.length>0&&!e.quoted&&n.before.length===0&&!(e.spaces.value&&e.spaces.value.after)&&(n.before=` `),b(t,n)}))),t.push(`]`),t.push(this.rawSpaceAfter),t.join(``)},c(n,[{key:`quoted`,get:function(){var e=this.quoteMark;return e===`'`||e===`"`},set:function(e){m()}},{key:`quoteMark`,get:function(){return this._quoteMark},set:function(e){if(!this._constructed){this._quoteMark=e;return}this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue())}},{key:`qualifiedAttribute`,get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:`insensitiveFlag`,get:function(){return this.insensitive?`i`:``}},{key:`value`,get:function(){return this._value},set:function(e){if(this._constructed){var t=g(e),n=t.deprecatedUsage,r=t.unescaped,i=t.quoteMark;if(n&&p(),r===this._value&&i===this._quoteMark)return;this._value=r,this._quoteMark=i,this._syncRawValue()}else this._value=e}},{key:`insensitive`,get:function(){return this._insensitive},set:function(e){e||(this._insensitive=!1,this.raws&&(this.raws.insensitiveFlag===`I`||this.raws.insensitiveFlag===`i`)&&(this.raws.insensitiveFlag=void 0)),this._insensitive=e}},{key:`attribute`,get:function(){return this._attribute},set:function(e){this._handleEscapes(`attribute`,e),this._attribute=e}}]),n}(r.default);e.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE=`'`,v.DOUBLE_QUOTE=`"`;var y=(a={"'":{quotes:`single`,wrap:!0},'"':{quotes:`double`,wrap:!0}},a[null]={isIdentifier:!0},a);function b(e,t){return``+t.before+e+t.after}})(Hv),Hv)}var Jv={exports:{}},Yv;function Xv(){return Yv?Jv.exports:(Yv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(Nv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.UNIVERSAL,n.value=`*`,n}return t}(n.default),e.exports=t.default})(Jv,Jv.exports),Jv.exports)}var Zv={exports:{}},Qv;function $v(){return Qv?Zv.exports:(Qv=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.COMBINATOR,n}return t}(n.default),e.exports=t.default})(Zv,Zv.exports),Zv.exports)}var ey={exports:{}},ty;function ny(){return ty?ey.exports:(ty=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=i(cv()),r=uv();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}t.default=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;return n.type=r.NESTING,n.value=`&`,n}return t}(n.default),e.exports=t.default})(ey,ey.exports),ey.exports)}var ry={exports:{}},iy;function ay(){return iy?ry.exports:(iy=1,(function(e,t){t.__esModule=!0,t.default=n;function n(e){return e.sort(function(e,t){return e-t})}e.exports=t.default})(ry,ry.exports),ry.exports)}var oy={},Z={},sy;function cy(){if(sy)return Z;sy=1,Z.__esModule=!0,Z.word=Z.tilde=Z.tab=Z.str=Z.space=Z.slash=Z.singleQuote=Z.semicolon=Z.plus=Z.pipe=Z.openSquare=Z.openParenthesis=Z.newline=Z.greaterThan=Z.feed=Z.equals=Z.doubleQuote=Z.dollar=Z.cr=Z.comment=Z.comma=Z.combinator=Z.colon=Z.closeSquare=Z.closeParenthesis=Z.caret=Z.bang=Z.backslash=Z.at=Z.asterisk=Z.ampersand=void 0,Z.ampersand=38,Z.asterisk=42,Z.at=64,Z.comma=44,Z.colon=58,Z.semicolon=59,Z.openParenthesis=40,Z.closeParenthesis=41,Z.openSquare=91,Z.closeSquare=93,Z.dollar=36,Z.tilde=126,Z.caret=94,Z.plus=43,Z.equals=61,Z.pipe=124,Z.greaterThan=62,Z.space=32;var e=39;return Z.singleQuote=e,Z.doubleQuote=34,Z.slash=47,Z.bang=33,Z.backslash=92,Z.cr=13,Z.feed=12,Z.newline=10,Z.tab=9,Z.str=e,Z.comment=-1,Z.word=-2,Z.combinator=-3,Z}var ly;function uy(){return ly?oy:(ly=1,(function(e){e.__esModule=!0,e.FIELDS=void 0,e.default=p;var t=a(cy()),n,r;function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}for(var o=(n={},n[t.tab]=!0,n[t.newline]=!0,n[t.cr]=!0,n[t.feed]=!0,n),s=(r={},r[t.space]=!0,r[t.tab]=!0,r[t.newline]=!0,r[t.cr]=!0,r[t.feed]=!0,r[t.ampersand]=!0,r[t.asterisk]=!0,r[t.bang]=!0,r[t.comma]=!0,r[t.colon]=!0,r[t.semicolon]=!0,r[t.openParenthesis]=!0,r[t.closeParenthesis]=!0,r[t.openSquare]=!0,r[t.closeSquare]=!0,r[t.singleQuote]=!0,r[t.doubleQuote]=!0,r[t.plus]=!0,r[t.pipe]=!0,r[t.tilde]=!0,r[t.greaterThan]=!0,r[t.equals]=!0,r[t.dollar]=!0,r[t.caret]=!0,r[t.slash]=!0,r),c={},l=`0123456789abcdefABCDEF`,u=0;u<l.length;u++)c[l.charCodeAt(u)]=!0;function d(e,n){var r=n,i;do{if(i=e.charCodeAt(r),s[i])return r-1;i===t.backslash?r=f(e,r)+1:r++}while(r<e.length);return r-1}function f(e,n){var r=n,i=e.charCodeAt(r+1);if(!o[i])if(c[i]){var a=0;do r++,a++,i=e.charCodeAt(r+1);while(c[i]&&a<6);a<6&&i===t.space&&r++}else r++;return r}e.FIELDS={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};function p(e){var n=[],r=e.css.valueOf(),i=r.length,a=-1,o=1,s=0,c=0,l,u,f,p,m,h,g,_,v,y,b,x,S;function C(t,n){if(e.safe)r+=n,v=r.length-1;else throw e.error(`Unclosed `+t,o,s-a,s)}for(;s<i;){switch(l=r.charCodeAt(s),l===t.newline&&(a=s,o+=1),l){case t.space:case t.tab:case t.newline:case t.cr:case t.feed:v=s;do v+=1,l=r.charCodeAt(v),l===t.newline&&(a=v,o+=1);while(l===t.space||l===t.newline||l===t.tab||l===t.cr||l===t.feed);S=t.space,p=o,f=v-a-1,c=v;break;case t.plus:case t.greaterThan:case t.tilde:case t.pipe:v=s;do v+=1,l=r.charCodeAt(v);while(l===t.plus||l===t.greaterThan||l===t.tilde||l===t.pipe);S=t.combinator,p=o,f=s-a,c=v;break;case t.asterisk:case t.ampersand:case t.bang:case t.comma:case t.equals:case t.dollar:case t.caret:case t.openSquare:case t.closeSquare:case t.colon:case t.semicolon:case t.openParenthesis:case t.closeParenthesis:v=s,S=l,p=o,f=s-a,c=v+1;break;case t.singleQuote:case t.doubleQuote:x=l===t.singleQuote?`'`:`"`,v=s;do for(m=!1,v=r.indexOf(x,v+1),v===-1&&C(`quote`,x),h=v;r.charCodeAt(h-1)===t.backslash;)--h,m=!m;while(m);S=t.str,p=o,f=s-a,c=v+1;break;default:l===t.slash&&r.charCodeAt(s+1)===t.asterisk?(v=r.indexOf(`*/`,s+2)+1,v===0&&C(`comment`,`*/`),u=r.slice(s,v+1),_=u.split(`
|
|
90
|
+
`),g=_.length-1,g>0?(y=o+g,b=v-_[g].length):(y=o,b=a),S=t.comment,o=y,p=y,f=v-b):l===t.slash?(v=s,S=l,p=o,f=s-a,c=v+1):(v=d(r,s),S=t.word,p=o,f=v-a),c=v+1;break}n.push([S,o,s-a,p,f,s,c]),b&&=(a=b,null),s=c}return n}})(oy),oy)}var dy;function fy(){return dy?H_.exports:(dy=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=C(mv()),r=C(_v()),i=C(Cv()),a=C(Ev()),o=C(kv()),s=C(Fv()),c=C(Rv()),l=C(Vv()),u=S(qv()),d=C(Xv()),f=C($v()),p=C(ny()),m=C(ay()),h=S(uy()),g=S(cy()),_=S(uv()),v=ov(),y,b;function x(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(x=function(e){return e?n:t})(e)}function S(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=x(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function C(e){return e&&e.__esModule?e:{default:e}}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t,n){return t&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var E=(y={},y[g.space]=!0,y[g.cr]=!0,y[g.feed]=!0,y[g.newline]=!0,y[g.tab]=!0,y),ee=Object.assign({},E,(b={},b[g.comment]=!0,b));function D(e){return{line:e[h.FIELDS.START_LINE],column:e[h.FIELDS.START_COL]}}function O(e){return{line:e[h.FIELDS.END_LINE],column:e[h.FIELDS.END_COL]}}function k(e,t,n,r){return{start:{line:e,column:t},end:{line:n,column:r}}}function te(e){return k(e[h.FIELDS.START_LINE],e[h.FIELDS.START_COL],e[h.FIELDS.END_LINE],e[h.FIELDS.END_COL])}function ne(e,t){if(e)return k(e[h.FIELDS.START_LINE],e[h.FIELDS.START_COL],t[h.FIELDS.END_LINE],t[h.FIELDS.END_COL])}function re(e,t){var n=e[t];if(typeof n==`string`)return n.indexOf(`\\`)!==-1&&((0,v.ensureObject)(e,`raws`),e[t]=(0,v.unesc)(n),e.raws[t]===void 0&&(e.raws[t]=n)),e}function ie(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}function ae(){var e=Array.prototype.concat.apply([],arguments);return e.filter(function(t,n){return n===e.indexOf(t)})}t.default=function(){function e(e,t){t===void 0&&(t={}),this.rule=e,this.options=Object.assign({lossy:!1,safe:!1},t),this.position=0,this.css=typeof this.rule==`string`?this.rule:this.rule.selector,this.tokens=(0,h.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var i=ne(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new n.default({source:i}),this.root.errorGenerator=this._errorGenerator();var a=new r.default({source:{start:{line:1,column:1}},sourceIndex:0});this.root.append(a),this.current=a,this.loop()}var t=e.prototype;return t._errorGenerator=function(){var e=this;return function(t,n){return typeof e.rule==`string`?Error(t):e.rule.error(t,n)}},t.attribute=function(){var e=[],t=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[h.FIELDS.TYPE]!==g.closeSquare;)e.push(this.currToken),this.position++;if(this.currToken[h.FIELDS.TYPE]!==g.closeSquare)return this.expected(`closing square bracket`,this.currToken[h.FIELDS.START_POS]);var n=e.length,r={source:k(t[1],t[2],this.currToken[3],this.currToken[4]),sourceIndex:t[h.FIELDS.START_POS]};if(n===1&&!~[g.word].indexOf(e[0][h.FIELDS.TYPE]))return this.expected(`attribute`,e[0][h.FIELDS.START_POS]);for(var i=0,a=``,o=``,s=null,c=!1;i<n;){var l=e[i],d=this.content(l),f=e[i+1];switch(l[h.FIELDS.TYPE]){case g.space:if(c=!0,this.options.lossy)break;if(s){(0,v.ensureObject)(r,`spaces`,s);var p=r.spaces[s].after||``;r.spaces[s].after=p+d;var m=(0,v.getProp)(r,`raws`,`spaces`,s,`after`)||null;m&&(r.raws.spaces[s].after=m+d)}else a+=d,o+=d;break;case g.asterisk:f[h.FIELDS.TYPE]===g.equals?(r.operator=d,s=`operator`):(!r.namespace||s===`namespace`&&!c)&&f&&(a&&=((0,v.ensureObject)(r,`spaces`,`attribute`),r.spaces.attribute.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`attribute`),r.raws.spaces.attribute.before=a,``),r.namespace=(r.namespace||``)+d,(0,v.getProp)(r,`raws`,`namespace`)&&(r.raws.namespace+=d),s=`namespace`),c=!1;break;case g.dollar:if(s===`value`){var _=(0,v.getProp)(r,`raws`,`value`);r.value+=`$`,_&&(r.raws.value=_+`$`);break}case g.caret:f[h.FIELDS.TYPE]===g.equals&&(r.operator=d,s=`operator`),c=!1;break;case g.combinator:if(d===`~`&&f[h.FIELDS.TYPE]===g.equals&&(r.operator=d,s=`operator`),d!==`|`){c=!1;break}f[h.FIELDS.TYPE]===g.equals?(r.operator=d,s=`operator`):!r.namespace&&!r.attribute&&(r.namespace=!0),c=!1;break;case g.word:if(f&&this.content(f)===`|`&&e[i+2]&&e[i+2][h.FIELDS.TYPE]!==g.equals&&!r.operator&&!r.namespace)r.namespace=d,s=`namespace`;else if(!r.attribute||s===`attribute`&&!c)a&&=((0,v.ensureObject)(r,`spaces`,`attribute`),r.spaces.attribute.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`attribute`),r.raws.spaces.attribute.before=o,``),r.attribute=(r.attribute||``)+d,(0,v.getProp)(r,`raws`,`attribute`)&&(r.raws.attribute+=d),s=`attribute`;else if(!r.value&&r.value!==``||s===`value`&&!(c||r.quoteMark)){var y=(0,v.unesc)(d),b=(0,v.getProp)(r,`raws`,`value`)||``,x=r.value||``;r.value=x+y,r.quoteMark=null,(y!==d||b)&&((0,v.ensureObject)(r,`raws`),r.raws.value=(b||x)+d),s=`value`}else{var S=d===`i`||d===`I`;(r.value||r.value===``)&&(r.quoteMark||c)?(r.insensitive=S,(!S||d===`I`)&&((0,v.ensureObject)(r,`raws`),r.raws.insensitiveFlag=d),s=`insensitive`,a&&=((0,v.ensureObject)(r,`spaces`,`insensitive`),r.spaces.insensitive.before=a,``),o&&=((0,v.ensureObject)(r,`raws`,`spaces`,`insensitive`),r.raws.spaces.insensitive.before=o,``)):(r.value||r.value===``)&&(s=`value`,r.value+=d,r.raws.value&&(r.raws.value+=d))}c=!1;break;case g.str:if(!r.attribute||!r.operator)return this.error(`Expected an attribute followed by an operator preceding the string.`,{index:l[h.FIELDS.START_POS]});var C=(0,u.unescapeValue)(d),w=C.unescaped,T=C.quoteMark;r.value=w,r.quoteMark=T,s=`value`,(0,v.ensureObject)(r,`raws`),r.raws.value=d,c=!1;break;case g.equals:if(!r.attribute)return this.expected(`attribute`,l[h.FIELDS.START_POS],d);if(r.value)return this.error(`Unexpected "=" found; an operator was already defined.`,{index:l[h.FIELDS.START_POS]});r.operator=r.operator?r.operator+d:d,s=`operator`,c=!1;break;case g.comment:if(s)if(c||f&&f[h.FIELDS.TYPE]===g.space||s===`insensitive`){var E=(0,v.getProp)(r,`spaces`,s,`after`)||``,ee=(0,v.getProp)(r,`raws`,`spaces`,s,`after`)||E;(0,v.ensureObject)(r,`raws`,`spaces`,s),r.raws.spaces[s].after=ee+d}else{var D=r[s]||``,O=(0,v.getProp)(r,`raws`,s)||D;(0,v.ensureObject)(r,`raws`),r.raws[s]=O+d}else o+=d;break;default:return this.error(`Unexpected "`+d+`" found.`,{index:l[h.FIELDS.START_POS]})}i++}re(r,`attribute`),re(r,`namespace`),this.newNode(new u.default(r)),this.position++},t.parseWhitespaceEquivalentTokens=function(e){e<0&&(e=this.tokens.length);var t=this.position,n=[],r=``,i=void 0;do if(E[this.currToken[h.FIELDS.TYPE]])this.options.lossy||(r+=this.content());else if(this.currToken[h.FIELDS.TYPE]===g.comment){var o={};r&&=(o.before=r,``),i=new a.default({value:this.content(),source:te(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS],spaces:o}),n.push(i)}while(++this.position<e);if(r){if(i)i.spaces.after=r;else if(!this.options.lossy){var s=this.tokens[t],l=this.tokens[this.position-1];n.push(new c.default({value:``,source:k(s[h.FIELDS.START_LINE],s[h.FIELDS.START_COL],l[h.FIELDS.END_LINE],l[h.FIELDS.END_COL]),sourceIndex:s[h.FIELDS.START_POS],spaces:{before:r,after:``}}))}}return n},t.convertWhitespaceNodesToSpace=function(e,t){var n=this;t===void 0&&(t=!1);var r=``,i=``;return e.forEach(function(e){var a=n.lossySpace(e.spaces.before,t),o=n.lossySpace(e.rawSpaceBefore,t);r+=a+n.lossySpace(e.spaces.after,t&&a.length===0),i+=a+e.value+n.lossySpace(e.rawSpaceAfter,t&&o.length===0)}),i===r&&(i=void 0),{space:r,rawSpace:i}},t.isNamedCombinator=function(e){return e===void 0&&(e=this.position),this.tokens[e+0]&&this.tokens[e+0][h.FIELDS.TYPE]===g.slash&&this.tokens[e+1]&&this.tokens[e+1][h.FIELDS.TYPE]===g.word&&this.tokens[e+2]&&this.tokens[e+2][h.FIELDS.TYPE]===g.slash},t.namedCombinator=function(){if(this.isNamedCombinator()){var e=this.content(this.tokens[this.position+1]),t=(0,v.unesc)(e).toLowerCase(),n={};t!==e&&(n.value=`/`+e+`/`);var r=new f.default({value:`/`+t+`/`,source:k(this.currToken[h.FIELDS.START_LINE],this.currToken[h.FIELDS.START_COL],this.tokens[this.position+2][h.FIELDS.END_LINE],this.tokens[this.position+2][h.FIELDS.END_COL]),sourceIndex:this.currToken[h.FIELDS.START_POS],raws:n});return this.position+=3,r}else this.unexpected()},t.combinator=function(){var e=this;if(this.content()===`|`)return this.namespace();var t=this.locateNextMeaningfulToken(this.position);if(t<0||this.tokens[t][h.FIELDS.TYPE]===g.comma||this.tokens[t][h.FIELDS.TYPE]===g.closeParenthesis){var n=this.parseWhitespaceEquivalentTokens(t);if(n.length>0){var r=this.current.last;if(r){var i=this.convertWhitespaceNodesToSpace(n),a=i.space,o=i.rawSpace;o!==void 0&&(r.rawSpaceAfter+=o),r.spaces.after+=a}else n.forEach(function(t){return e.newNode(t)})}return}var s=this.currToken,c=void 0;t>this.position&&(c=this.parseWhitespaceEquivalentTokens(t));var l;if(this.isNamedCombinator()?l=this.namedCombinator():this.currToken[h.FIELDS.TYPE]===g.combinator?(l=new f.default({value:this.content(),source:te(this.currToken),sourceIndex:this.currToken[h.FIELDS.START_POS]}),this.position++):E[this.currToken[h.FIELDS.TYPE]]||c||this.unexpected(),l){if(c){var u=this.convertWhitespaceNodesToSpace(c),d=u.space,p=u.rawSpace;l.spaces.before=d,l.rawSpaceBefore=p}}else{var m=this.convertWhitespaceNodesToSpace(c,!0),_=m.space,v=m.rawSpace;v||=_;var y={},b={spaces:{}};_.endsWith(` `)&&v.endsWith(` `)?(y.before=_.slice(0,_.length-1),b.spaces.before=v.slice(0,v.length-1)):_[0]===` `&&v[0]===` `?(y.after=_.slice(1),b.spaces.after=v.slice(1)):b.value=v,l=new f.default({value:` `,source:ne(s,this.tokens[this.position-1]),sourceIndex:s[h.FIELDS.START_POS],spaces:y,raws:b})}return this.currToken&&this.currToken[h.FIELDS.TYPE]===g.space&&(l.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(l)},t.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var e=new r.default({source:{start:D(this.tokens[this.position+1])},sourceIndex:this.tokens[this.position+1][h.FIELDS.START_POS]});this.current.parent.append(e),this.current=e,this.position++},t.comment=function(){var e=this.currToken;this.newNode(new a.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.error=function(e,t){throw this.root.error(e,t)},t.missingBackslash=function(){return this.error(`Expected a backslash preceding the semicolon.`,{index:this.currToken[h.FIELDS.START_POS]})},t.missingParenthesis=function(){return this.expected(`opening parenthesis`,this.currToken[h.FIELDS.START_POS])},t.missingSquareBracket=function(){return this.expected(`opening square bracket`,this.currToken[h.FIELDS.START_POS])},t.unexpected=function(){return this.error(`Unexpected '`+this.content()+`'. Escaping special characters with \\ may help.`,this.currToken[h.FIELDS.START_POS])},t.unexpectedPipe=function(){return this.error(`Unexpected '|'.`,this.currToken[h.FIELDS.START_POS])},t.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[h.FIELDS.TYPE]===g.word)return this.position++,this.word(e);if(this.nextToken[h.FIELDS.TYPE]===g.asterisk)return this.position++,this.universal(e);this.unexpectedPipe()},t.nesting=function(){if(this.nextToken&&this.content(this.nextToken)===`|`){this.position++;return}var e=this.currToken;this.newNode(new p.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===_.PSEUDO){var n=new r.default({source:{start:D(this.tokens[this.position])},sourceIndex:this.tokens[this.position][h.FIELDS.START_POS]}),i=this.current;for(e.append(n),this.current=n;this.position<this.tokens.length&&t;)this.currToken[h.FIELDS.TYPE]===g.openParenthesis&&t++,this.currToken[h.FIELDS.TYPE]===g.closeParenthesis&&t--,t?this.parse():(this.current.source.end=O(this.currToken),this.current.parent.source.end=O(this.currToken),this.position++);this.current=i}else{for(var a=this.currToken,o=`(`,s;this.position<this.tokens.length&&t;)this.currToken[h.FIELDS.TYPE]===g.openParenthesis&&t++,this.currToken[h.FIELDS.TYPE]===g.closeParenthesis&&t--,s=this.currToken,o+=this.parseParenthesisToken(this.currToken),this.position++;e?e.appendToPropertyAndEscape(`value`,o,o):this.newNode(new c.default({value:o,source:k(a[h.FIELDS.START_LINE],a[h.FIELDS.START_COL],s[h.FIELDS.END_LINE],s[h.FIELDS.END_COL]),sourceIndex:a[h.FIELDS.START_POS]}))}if(t)return this.expected(`closing parenthesis`,this.currToken[h.FIELDS.START_POS])},t.pseudo=function(){for(var e=this,t=``,n=this.currToken;this.currToken&&this.currToken[h.FIELDS.TYPE]===g.colon;)t+=this.content(),this.position++;if(!this.currToken)return this.expected([`pseudo-class`,`pseudo-element`],this.position-1);if(this.currToken[h.FIELDS.TYPE]===g.word)this.splitWord(!1,function(r,i){t+=r,e.newNode(new l.default({value:t,source:ne(n,e.currToken),sourceIndex:n[h.FIELDS.START_POS]})),i>1&&e.nextToken&&e.nextToken[h.FIELDS.TYPE]===g.openParenthesis&&e.error(`Misplaced parenthesis.`,{index:e.nextToken[h.FIELDS.START_POS]})});else return this.expected([`pseudo-class`,`pseudo-element`],this.currToken[h.FIELDS.START_POS])},t.space=function(){var e=this.content();this.position===0||this.prevToken[h.FIELDS.TYPE]===g.comma||this.prevToken[h.FIELDS.TYPE]===g.openParenthesis||this.current.nodes.every(function(e){return e.type===`comment`})?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[h.FIELDS.TYPE]===g.comma||this.nextToken[h.FIELDS.TYPE]===g.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},t.string=function(){var e=this.currToken;this.newNode(new c.default({value:this.content(),source:te(e),sourceIndex:e[h.FIELDS.START_POS]})),this.position++},t.universal=function(e){var t=this.nextToken;if(t&&this.content(t)===`|`)return this.position++,this.namespace();var n=this.currToken;this.newNode(new d.default({value:this.content(),source:te(n),sourceIndex:n[h.FIELDS.START_POS]}),e),this.position++},t.splitWord=function(e,t){for(var n=this,r=this.nextToken,a=this.content();r&&~[g.dollar,g.caret,g.equals,g.word].indexOf(r[h.FIELDS.TYPE]);){this.position++;var c=this.content();if(a+=c,c.lastIndexOf(`\\`)===c.length-1){var l=this.nextToken;l&&l[h.FIELDS.TYPE]===g.space&&(a+=this.requiredSpace(this.content(l)),this.position++)}r=this.nextToken}var u=ie(a,`.`).filter(function(e){var t=a[e-1]===`\\`,n=/^\d+\.\d+%$/.test(a);return!t&&!n}),d=ie(a,`#`).filter(function(e){return a[e-1]!==`\\`}),f=ie(a,`#{`);f.length&&(d=d.filter(function(e){return!~f.indexOf(e)}));var p=(0,m.default)(ae([0].concat(u,d)));p.forEach(function(r,c){var l=p[c+1]||a.length,f=a.slice(r,l);if(c===0&&t)return t.call(n,f,p.length);var m,g=n.currToken,_=g[h.FIELDS.START_POS]+p[c],v=k(g[1],g[2]+r,g[3],g[2]+(l-1));if(~u.indexOf(r)){var y={value:f.slice(1),source:v,sourceIndex:_};m=new i.default(re(y,`value`))}else if(~d.indexOf(r)){var b={value:f.slice(1),source:v,sourceIndex:_};m=new o.default(re(b,`value`))}else{var x={value:f,source:v,sourceIndex:_};re(x,`value`),m=new s.default(x)}n.newNode(m,e),e=null}),this.position++},t.word=function(e){var t=this.nextToken;return t&&this.content(t)===`|`?(this.position++,this.namespace()):this.splitWord(e)},t.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},t.parse=function(e){switch(this.currToken[h.FIELDS.TYPE]){case g.space:this.space();break;case g.comment:this.comment();break;case g.openParenthesis:this.parentheses();break;case g.closeParenthesis:e&&this.missingParenthesis();break;case g.openSquare:this.attribute();break;case g.dollar:case g.caret:case g.equals:case g.word:this.word();break;case g.colon:this.pseudo();break;case g.comma:this.comma();break;case g.asterisk:this.universal();break;case g.ampersand:this.nesting();break;case g.slash:case g.combinator:this.combinator();break;case g.str:this.string();break;case g.closeSquare:this.missingSquareBracket();case g.semicolon:this.missingBackslash();default:this.unexpected()}},t.expected=function(e,t,n){if(Array.isArray(e)){var r=e.pop();e=e.join(`, `)+` or `+r}var i=/^[aeiou]/.test(e[0])?`an`:`a`;return n?this.error(`Expected `+i+` `+e+`, found "`+n+`" instead.`,{index:t}):this.error(`Expected `+i+` `+e+`.`,{index:t})},t.requiredSpace=function(e){return this.options.lossy?` `:e},t.optionalSpace=function(e){return this.options.lossy?``:e},t.lossySpace=function(e,t){return this.options.lossy?t?` `:``:e},t.parseParenthesisToken=function(e){var t=this.content(e);return e[h.FIELDS.TYPE]===g.space?this.requiredSpace(t):t},t.newNode=function(e,t){return t&&(/^ +$/.test(t)&&(this.options.lossy||(this.spaces=(this.spaces||``)+t),t=!0),e.namespace=t,re(e,`namespace`)),this.spaces&&=(e.spaces.before=this.spaces,``),this.current.append(e)},t.content=function(e){return e===void 0&&(e=this.currToken),this.css.slice(e[h.FIELDS.START_POS],e[h.FIELDS.END_POS])},t.locateNextMeaningfulToken=function(e){e===void 0&&(e=this.position+1);for(var t=e;t<this.tokens.length;)if(ee[this.tokens[t][h.FIELDS.TYPE]]){t++;continue}else return t;return-1},T(e,[{key:`currToken`,get:function(){return this.tokens[this.position]}},{key:`nextToken`,get:function(){return this.tokens[this.position+1]}},{key:`prevToken`,get:function(){return this.tokens[this.position-1]}}]),e}(),e.exports=t.default})(H_,H_.exports),H_.exports)}var py;function my(){return py?V_.exports:(py=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=r(fy());function r(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){this.func=e||function(){},this.funcRes=null,this.options=t}var t=e.prototype;return t._shouldUpdateSelector=function(e,t){return t===void 0&&(t={}),Object.assign({},this.options,t).updateSelector===!1?!1:typeof e!=`string`},t._isLossy=function(e){return e===void 0&&(e={}),Object.assign({},this.options,e).lossless===!1},t._root=function(e,t){return t===void 0&&(t={}),new n.default(e,this._parseOptions(t)).root},t._parseOptions=function(e){return{lossy:this._isLossy(e)}},t._run=function(e,t){var n=this;return t===void 0&&(t={}),new Promise(function(r,i){try{var a=n._root(e,t);Promise.resolve(n.func(a)).then(function(r){var i=void 0;return n._shouldUpdateSelector(e,t)&&(i=a.toString(),e.selector=i),{transform:r,root:a,string:i}}).then(r,i)}catch(e){i(e);return}})},t._runSync=function(e,t){t===void 0&&(t={});var n=this._root(e,t),r=this.func(n);if(r&&typeof r.then==`function`)throw Error(`Selector processor returned a promise to a synchronous call.`);var i=void 0;return t.updateSelector&&typeof e!=`string`&&(i=n.toString(),e.selector=i),{transform:r,root:n,string:i}},t.ast=function(e,t){return this._run(e,t).then(function(e){return e.root})},t.astSync=function(e,t){return this._runSync(e,t).root},t.transform=function(e,t){return this._run(e,t).then(function(e){return e.transform})},t.transformSync=function(e,t){return this._runSync(e,t).transform},t.process=function(e,t){return this._run(e,t).then(function(e){return e.string||e.root.toString()})},t.processSync=function(e,t){var n=this._runSync(e,t);return n.string||n.root.toString()},e}(),e.exports=t.default})(V_,V_.exports),V_.exports)}var hy={},Q={},gy;function _y(){if(gy)return Q;gy=1,Q.__esModule=!0,Q.universal=Q.tag=Q.string=Q.selector=Q.root=Q.pseudo=Q.nesting=Q.id=Q.comment=Q.combinator=Q.className=Q.attribute=void 0;var e=f(qv()),t=f(Cv()),n=f($v()),r=f(Ev()),i=f(kv()),a=f(ny()),o=f(Vv()),s=f(mv()),c=f(_v()),l=f(Rv()),u=f(Fv()),d=f(Xv());function f(e){return e&&e.__esModule?e:{default:e}}return Q.attribute=function(t){return new e.default(t)},Q.className=function(e){return new t.default(e)},Q.combinator=function(e){return new n.default(e)},Q.comment=function(e){return new r.default(e)},Q.id=function(e){return new i.default(e)},Q.nesting=function(e){return new a.default(e)},Q.pseudo=function(e){return new o.default(e)},Q.root=function(e){return new s.default(e)},Q.selector=function(e){return new c.default(e)},Q.string=function(e){return new l.default(e)},Q.tag=function(e){return new u.default(e)},Q.universal=function(e){return new d.default(e)},Q}var $={},vy;function yy(){if(vy)return $;vy=1,$.__esModule=!0,$.isComment=$.isCombinator=$.isClassName=$.isAttribute=void 0,$.isContainer=u,$.isIdentifier=void 0,$.isNamespace=d,$.isNesting=void 0,$.isNode=r,$.isPseudo=void 0,$.isPseudoClass=l,$.isPseudoElement=c,$.isUniversal=$.isTag=$.isString=$.isSelector=$.isRoot=void 0;var e=uv(),t,n=(t={},t[e.ATTRIBUTE]=!0,t[e.CLASS]=!0,t[e.COMBINATOR]=!0,t[e.COMMENT]=!0,t[e.ID]=!0,t[e.NESTING]=!0,t[e.PSEUDO]=!0,t[e.ROOT]=!0,t[e.SELECTOR]=!0,t[e.STRING]=!0,t[e.TAG]=!0,t[e.UNIVERSAL]=!0,t);function r(e){return typeof e==`object`&&n[e.type]}function i(e,t){return r(t)&&t.type===e}var a=i.bind(null,e.ATTRIBUTE);$.isAttribute=a,$.isClassName=i.bind(null,e.CLASS),$.isCombinator=i.bind(null,e.COMBINATOR),$.isComment=i.bind(null,e.COMMENT),$.isIdentifier=i.bind(null,e.ID),$.isNesting=i.bind(null,e.NESTING);var o=i.bind(null,e.PSEUDO);$.isPseudo=o,$.isRoot=i.bind(null,e.ROOT),$.isSelector=i.bind(null,e.SELECTOR),$.isString=i.bind(null,e.STRING);var s=i.bind(null,e.TAG);$.isTag=s,$.isUniversal=i.bind(null,e.UNIVERSAL);function c(e){return o(e)&&e.value&&(e.value.startsWith(`::`)||e.value.toLowerCase()===`:before`||e.value.toLowerCase()===`:after`||e.value.toLowerCase()===`:first-letter`||e.value.toLowerCase()===`:first-line`)}function l(e){return o(e)&&!c(e)}function u(e){return!!(r(e)&&e.walk)}function d(e){return a(e)||s(e)}return $}var by;function xy(){return by?hy:(by=1,(function(e){e.__esModule=!0;var t=uv();Object.keys(t).forEach(function(n){n==="default"||n==="__esModule"||n in e&&e[n]===t[n]||(e[n]=t[n])});var n=_y();Object.keys(n).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===n[t]||(e[t]=n[t])});var r=yy();Object.keys(r).forEach(function(t){t==="default"||t==="__esModule"||t in e&&e[t]===r[t]||(e[t]=r[t])})})(hy),hy)}var Sy;function Cy(){return Sy?B_.exports:(Sy=1,(function(e,t){t.__esModule=!0,t.default=void 0;var n=o(my()),r=a(xy());function i(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return new n.default(e)};Object.assign(s,r),delete s.__esModule,t.default=s,e.exports=t.default})(B_,B_.exports),B_.exports)}var wy=hi(Cy()),Ty=/^(?:-\w+-)?animation-name$/,Ey=/^(?:-\w+-)?animation$/,Dy=/^(?:-\w+-)?keyframes$/,Oy=(e=``)=>{let t=Object.create(null),n=e.replace(/^data-v-/,``);return{postcssPlugin:`vue-sfc-scoped`,Rule(t){Ay(e,t)},AtRule(e){Dy.test(e.name)&&!e.params.endsWith(`-${n}`)&&(t[e.params]=e.params=e.params+`-`+n)},OnceExit(e){Object.keys(t).length&&e.walkDecls(e=>{Ty.test(e.prop)&&(e.value=e.value.split(`,`).map(e=>t[e.trim()]||e.trim()).join(`,`)),Ey.test(e.prop)&&(e.value=e.value.split(`,`).map(e=>{let n=e.trim().split(/\s+/),r=n.findIndex(e=>t[e]);return r===-1?e:(n.splice(r,1,t[n[r]]),n.join(` `))}).join(`,`))})}}},ky=new WeakSet;function Ay(e,t){if(ky.has(t)||t.parent&&t.parent.type===`atrule`&&Dy.test(t.parent.name))return;ky.add(t);let n=!1,r=t.parent;for(;r&&r.type!==`root`;){if(r.__deep){n=!0;break}r=r.parent}t.selector=wy(r=>{r.each(i=>{jy(e,t,i,r,n)})}).processSync(t.selector)}function jy(e,t,n,r,i,a=!1){let o=null,s=!i,c=!1,l=!1;if(n.each(u=>{if(u.type===`combinator`&&(u.value===`>>>`||u.value===`/deep/`))return u.value=` `,u.spaces.before=u.spaces.after=``,Bh(`the >>> and /deep/ combinators have been deprecated. Use :deep() instead.`),!1;if(u.type===`pseudo`){let{value:d}=u;if(Py(u)&&u.nodes.some(e=>e.some(Ny))){let f=!!o,p=u.nodes.some(e=>!e.some(Ny)),m=n.index(u)<n.length-1;if(Fy(u)&&!i&&!f&&p&&m)return Iy(e,t,n,r,u,i,a),l=!0,!1;if(d===`:not`&&!i&&!f&&p&&m)return;u.nodes.forEach(n=>jy(e,t,n,r,i||f,a)),f||(o=u,s=!1),c=!0}if(d===`:deep`||d===`::v-deep`){if(t.__deep=!0,u.nodes.length){let e=u;u.nodes[0].each(t=>{n.insertAfter(e,t),e=t});let t=n.at(n.index(u)-1);(!t||!My(t))&&n.insertAfter(u,wy.combinator({value:` `})),n.removeChild(u)}else{Bh(`${d} usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of ${d} <inner-selector>.`);let e=n.at(n.index(u)-1);e&&My(e)&&n.removeChild(e),n.removeChild(u)}return!1}if(d===`:slotted`||d===`::v-slotted`){jy(e,t,u.nodes[0],r,i,!0);let a=u;return u.nodes[0].each(e=>{n.insertAfter(a,e),a=e}),n.removeChild(u),s=!1,!1}if(d===`:global`||d===`::v-global`)return n.replaceWith(u.nodes[0]),!1}if(u.type===`universal`){let e=n.at(n.index(u)-1),t=n.at(n.index(u)+1);if(!e)if(t){t.type===`combinator`&&t.value===` `&&n.removeChild(t),n.removeChild(u);return}else return o=wy.combinator({value:``}),n.insertBefore(u,o),n.removeChild(u),!1;if(o)return}!c&&(u.type!==`pseudo`&&u.type!==`combinator`||u.type===`pseudo`&&(u.value===`:is`||u.value===`:where`)&&!o)&&(o=u)}),!l){if(t.nodes.some(e=>e.type===`rule`)){let e=t.__deep;if(!e){Ly(t);let e=t.nodes.filter(e=>e.type===`atrule`);for(let t of e)Ly(t)}s=e}if(o&&!c){let{type:n,value:c}=o;n===`pseudo`&&(c===`:is`||c===`:where`)&&(o.nodes.forEach(n=>jy(e,t,n,r,i,a)),s=!1)}if(o?o.spaces.after=``:n.first.spaces.before=``,s){let t=a?e+`-s`:e;n.insertAfter(o,wy.attribute({attribute:t,value:t,raws:{},quoteMark:`"`}))}}}function My(e){return e.type===`combinator`&&/^\s+$/.test(e.value)}function Ny(e){return e.type===`pseudo`&&(e.value===`:deep`||e.value===`::v-deep`)?!0:!!e.nodes?.some(e=>Ny(e))}function Py(e){return e.type===`pseudo`&&(e.value===`:is`||e.value===`:where`||e.value===`:has`||e.value===`:not`)}function Fy(e){return e.value===`:is`||e.value===`:where`||e.value===`:has`}function Iy(e,t,n,r,i,a,o){let s=n.index(i),c=i.nodes.map((i,c)=>{let l=n.clone();l.first&&(l.first.spaces.before=c===0?n.first.spaces.before:` `);let u=l.at(s),d=i.clone();return d.first&&(d.first.spaces.before=``),u.removeAll(),u.append(d),jy(e,t,l,r,a,o),l});n.replaceWith(...c)}function Ly(e){if(!e.nodes)return;let t=e.nodes.filter(e=>e.type===`decl`||e.type===`comment`);if(t.length){for(let n of t)e.removeChild(n);let n=new R_({nodes:t,selector:`&`});e.prepend(n)}}Oy.postcss=!0;var Ry={},zy={},By={},Vy={},Hy;function Uy(){if(Hy)return Vy;Hy=1;var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);return Vy.encode=function(t){if(0<=t&&t<e.length)return e[t];throw TypeError(`Must be between 0 and 63: `+t)},Vy.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1},Vy}var Wy;function Gy(){if(Wy)return By;Wy=1;var e=Uy(),t=5,n=1<<t,r=n-1,i=n;function a(e){return e<0?(-e<<1)+1:(e<<1)+0}function o(e){var t=(e&1)==1,n=e>>1;return t?-n:n}return By.encode=function(n){var o=``,s,c=a(n);do s=c&r,c>>>=t,c>0&&(s|=i),o+=e.encode(s);while(c>0);return o},By.decode=function(n,a,s){var c=n.length,l=0,u=0,d,f;do{if(a>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=e.decode(n.charCodeAt(a++)),f===-1)throw Error(`Invalid base64 digit: `+n.charAt(a-1));d=!!(f&i),f&=r,l+=f<<u,u+=t}while(d);s.value=o(l),s.rest=a},By}var Ky={},qy;function Jy(){return qy?Ky:(qy=1,(function(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}e.computeSourceURL=y})(Ky),Ky)}var Yy={},Xy;function Zy(){if(Xy)return Yy;Xy=1;var e=Jy(),t=Object.prototype.hasOwnProperty,n=typeof Map<`u`;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,i){var a=n?r:e.toSetString(r),o=n?this.has(r):t.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(r),o||(n?this._set.set(r,s):this._set[a]=s)},r.prototype.has=function(r){if(n)return this._set.has(r);var i=e.toSetString(r);return t.call(this._set,i)},r.prototype.indexOf=function(r){if(n){var i=this._set.get(r);if(i>=0)return i}else{var a=e.toSetString(r);if(t.call(this._set,a))return this._set[a]}throw Error(`"`+r+`" is not in the set.`)},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},r.prototype.toArray=function(){return this._array.slice()},Yy.ArraySet=r,Yy}var Qy={},$y;function eb(){if($y)return Qy;$y=1;var e=Jy();function t(t,n){var r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||e.compareByGeneratedPositionsInflated(t,n)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){t(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||=(this._array.sort(e.compareByGeneratedPositionsInflated),!0),this._array},Qy.MappingList=n,Qy}var tb;function nb(){if(tb)return zy;tb=1;var e=Gy(),t=Jy(),n=Zy().ArraySet,r=eb().MappingList;function i(e){e||={},this._file=t.getArg(e,`file`,null),this._sourceRoot=t.getArg(e,`sourceRoot`,null),this._skipValidation=t.getArg(e,`skipValidation`,!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,n!=null&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;n!==null&&(a=t.relative(n,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},i.prototype.addMapping=function(e){var n=t.getArg(e,`generated`),r=t.getArg(e,`original`,null),i=t.getArg(e,`source`,null),a=t.getArg(e,`name`,null);this._skipValidation||this._validateMapping(n,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},i.prototype.setSourceContent=function(e,n){var r=e;this._sourceRoot!=null&&(r=t.relative(this._sourceRoot,r)),n==null?this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[t.toSetString(r)]=n)},i.prototype.applySourceMap=function(e,r,i){var a=r;if(r==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=t.relative(o,a));var s=new n,c=new n;this._mappings.unsortedForEach(function(n){if(n.source===a&&n.originalLine!=null){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});r.source!=null&&(n.source=r.source,i!=null&&(n.source=t.join(i,n.source)),o!=null&&(n.source=t.relative(o,n.source)),n.originalLine=r.line,n.originalColumn=r.column,r.name!=null&&(n.name=r.name))}var l=n.source;l!=null&&!s.has(l)&&s.add(l);var u=n.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(n){var r=e.sourceContentFor(n);r!=null&&(i!=null&&(n=t.join(i,n)),o!=null&&(n=t.relative(o,n)),this.setSourceContent(n,r))},this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var n=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(n=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!t.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=e.encode(u.generatedColumn-n),n=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=e.encode(f-s),s=f,l+=e.encode(u.originalLine-1-a),a=u.originalLine-1,l+=e.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=e.encode(d-o),o=d)),c+=l}return c},i.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;n!=null&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},zy.SourceMapGenerator=i,zy}var rb={},ib={},ab;function ob(){return ab?ib:(ab=1,(function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})(ib),ib)}var sb={},cb;function lb(){if(cb)return sb;cb=1;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(e,t){return Math.round(e+Math.random()*(t-e))}function n(r,i,a,o){if(a<o){var s=t(a,o),c=a-1;e(r,s,o);for(var l=r[o],u=a;u<o;u++)i(r[u],l)<=0&&(c+=1,e(r,c,u));e(r,c+1,u);var d=c+1;n(r,i,a,d-1),n(r,i,d+1,o)}}return sb.quickSort=function(e,t){n(e,t,0,e.length-1)},sb}var ub;function db(){if(ub)return rb;ub=1;var e=Jy(),t=ob(),n=Zy().ArraySet,r=Gy(),i=lb().quickSort;function a(t,n){var r=t;return typeof t==`string`&&(r=e.parseSourceMapInput(t)),r.sections==null?new o(r,n):new c(r,n)}a.fromSourceMap=function(e,t){return o.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},a.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(t,n,r){var i=n||null,o=r||a.GENERATED_ORDER,s;switch(o){case a.GENERATED_ORDER:s=this._generatedMappings;break;case a.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(t){var n=t.source===null?null:this._sources.at(t.source);return n=e.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:t.name===null?null:this._names.at(t.name)}},this).forEach(t,i)},a.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,`line`),i={source:e.getArg(n,`source`),originalLine:r,originalColumn:e.getArg(n,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(n.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:e.getArg(s,`generatedLine`,null),column:e.getArg(s,`generatedColumn`,null),lastColumn:e.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},rb.SourceMapConsumer=a;function o(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var a=e.getArg(i,`version`),o=e.getArg(i,`sources`),s=e.getArg(i,`names`,[]),c=e.getArg(i,`sourceRoot`,null),l=e.getArg(i,`sourcesContent`,null),u=e.getArg(i,`mappings`),d=e.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=e.normalize(c),o=o.map(String).map(e.normalize).map(function(t){return c&&e.isAbsolute(c)&&e.isAbsolute(t)?e.relative(c,t):t}),this._names=n.fromArray(s.map(String),!0),this._sources=n.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(t){return e.computeSourceURL(c,t,r)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=r,this.file=d}o.prototype=Object.create(a.prototype),o.prototype.consumer=a,o.prototype._findSourceIndex=function(t){var n=t;if(this.sourceRoot!=null&&(n=e.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1},o.fromSourceMap=function(t,r){var a=Object.create(o.prototype),c=a._names=n.fromArray(t._names.toArray(),!0),l=a._sources=n.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=r,a._absoluteSources=a._sources.toArray().map(function(t){return e.computeSourceURL(a.sourceRoot,t,r)});for(var u=t._mappings.toArray().slice(),d=a.__generatedMappings=[],f=a.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new s;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=c.indexOf(h.name)),f.push(g)),d.push(g)}return i(a.__originalMappings,e.compareByOriginalPositions),a},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}o.prototype._parseMappings=function(t,n){for(var a=1,o=0,c=0,l=0,u=0,d=0,f=t.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(t.charAt(p)===`;`)a++,p++,o=0;else if(t.charAt(p)===`,`)p++;else{for(v=new s,v.generatedLine=a,x=p;x<f&&!this._charIsMappingSeparator(t,x);x++);if(y=t.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)r.decode(t,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=c+b[2],c=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}i(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,i(g,e.compareByOriginalPositions),this.__originalMappings=g},o.prototype._findMapping=function(e,n,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return t.search(e,n,a,o)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,`line`),generatedColumn:e.getArg(t,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,e.compareByGeneratedPositionsDeflated,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var o=e.getArg(i,`source`,null);o!==null&&(o=this._sources.at(o),o=e.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=e.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:o,line:e.getArg(i,`originalLine`,null),column:e.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},o.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=e.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=e.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},o.prototype.generatedPositionFor=function(t){var n=e.getArg(t,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,`line`),originalColumn:e.getArg(t,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,e.compareByOriginalPositions,e.getArg(t,`bias`,a.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:e.getArg(o,`generatedLine`,null),column:e.getArg(o,`generatedColumn`,null),lastColumn:e.getArg(o,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},rb.BasicSourceMapConsumer=o;function c(t,r){var i=t;typeof t==`string`&&(i=e.parseSourceMapInput(t));var o=e.getArg(i,`version`),s=e.getArg(i,`sections`);if(o!=this._version)throw Error(`Unsupported version: `+o);this._sources=new n,this._names=new n;var c={line:-1,column:0};this._sections=s.map(function(t){if(t.url)throw Error(`Support for url field in sections not implemented.`);var n=e.getArg(t,`offset`),i=e.getArg(n,`line`),o=e.getArg(n,`column`);if(i<c.line||i===c.line&&o<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new a(e.getArg(t,`map`),r)}})}return c.prototype=Object.create(a.prototype),c.prototype.constructor=a,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),c.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,`line`),generatedColumn:e.getArg(n,`column`)},i=t.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},c.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(e.getArg(t,`source`))!==-1){var i=r.consumer.generatedPositionFor(t);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},c.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var a=this._sections[r],o=a.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=a.consumer._sources.at(c.source);l=e.computeSourceURL(a.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=a.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(a.generatedOffset.generatedLine===c.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},rb.IndexedSourceMapConsumer=c,rb}var fb={},pb;function mb(){if(pb)return fb;pb=1;var e=nb().SourceMapGenerator,t=Jy(),n=/(\r?\n)/,r=10,i=`$$$isSourceNode$$$`;function a(e,t,n,r,a){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=a??null,this[i]=!0,r!=null&&this.add(r)}return a.fromStringWithSourceMap=function(e,r,i){var o=new a,s=e.split(n),c=0,l=function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},u=1,d=0,f=null;return r.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)o.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;o.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),o.add(s.splice(c).join(``))),r.sources.forEach(function(e){var n=r.sourceContentFor(e);n!=null&&(i!=null&&(e=t.join(i,e)),o.setSourceContent(e,n))}),o;function p(e,n){if(e===null||e.source===void 0)o.add(n);else{var r=i?t.join(i,e.source):e.source;o.add(new a(e.originalLine,e.originalColumn,r,n,e.name))}}},a.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[i]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[i]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[i]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},a.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[i]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},a.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},a.prototype.walkSourceContents=function(e){for(var n=0,r=this.children.length;n<r;n++)this.children[n][i]&&this.children[n].walkSourceContents(e);for(var a=Object.keys(this.sourceContents),n=0,r=a.length;n<r;n++)e(t.fromSetString(a[n]),this.sourceContents[a[n]])},a.prototype.toString=function(){var e=``;return this.walk(function(t){e+=t}),e},a.prototype.toStringWithSourceMap=function(t){var n={code:``,line:1,column:0},i=new e(t),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(i.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===r?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){i.setSourceContent(e,t)}),{code:n.code,map:i}},fb.SourceNode=a,fb}var hb;function gb(){return hb?Ry:(hb=1,Ry.SourceMapGenerator=nb().SourceMapGenerator,Ry.SourceMapConsumer=db().SourceMapConsumer,Ry.SourceNode=mb().SourceNode,Ry)}var _b,vb;function yb(){if(vb)return _b;vb=1;var e=gb(),t=e.SourceMapConsumer,n=e.SourceMapGenerator;_b=r;function r(e,r){if(!e)return r;if(!r)return e;var i=new t(e),a=new t(r),o=new n;return a.eachMapping(function(e){if(e.originalLine!=null){var t=i.originalPositionFor({line:e.originalLine,column:e.originalColumn});t.source!=null&&o.addMapping({original:{line:t.line,column:t.column},generated:{line:e.generatedLine,column:e.generatedColumn},source:t.source,name:t.name})}}),[i,a].forEach(function(e){e.sources.forEach(function(t){o._sources.add(t);var n=e.sourceContentFor(t);n!=null&&o.setSourceContent(t,n)})}),o._sourceRoot=e.sourceRoot,o._file=e.file,JSON.parse(o.toString())}return _b}var bb=hi(yb()),xb=Object.defineProperty,Sb=Object.defineProperties,Cb=Object.getOwnPropertyDescriptors,wb=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Eb=Object.prototype.propertyIsEnumerable,Db=(e,t,n)=>t in e?xb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ob=(e,t)=>{for(var n in t||={})Tb.call(t,n)&&Db(e,n,t[n]);if(wb)for(var n of wb(t))Eb.call(t,n)&&Db(e,n,t[n]);return e},kb=(e,t)=>Sb(e,Cb(t)),Ab=(t,n,r,i=e)=>{let{compileString:a,renderSync:o}=i(`sass`),s=Pb(t,r.filename,r.additionalData),c,l,u;try{if(a){let{pathToFileURL:e,fileURLToPath:t}=i(`url`),o=a(s,kb(Ob({},r),{url:e(r.filename),sourceMap:!!n}));c=o.css,l=o.loadedUrls.map(e=>t(e)),u=n?o.sourceMap:void 0}else{let e=o(kb(Ob({},r),{data:s,file:r.filename,outFile:r.filename,sourceMap:!!n}));c=e.css.toString(),l=e.stats.includedFiles,u=n?JSON.parse(e.map.toString()):void 0}return n?{code:c,errors:[],dependencies:l,map:bb(n,u)}:{code:c,errors:[],dependencies:l}}catch(e){return{code:``,errors:[e],dependencies:[]}}},jb=(e,t,n,r)=>Ab(e,t,kb(Ob({},n),{indentedSyntax:!0}),r),Mb=(t,n,r,i=e)=>{let a=i(`less`),o,s=null;if(a.render(Pb(t,r.filename,r.additionalData),kb(Ob({},r),{syncImport:!0}),(e,t)=>{s=e,o=t}),s)return{code:``,errors:[s],dependencies:[]};let c=o.imports;return n?{code:o.css.toString(),map:bb(n,o.map),errors:[],dependencies:c}:{code:o.css.toString(),errors:[],dependencies:c}},Nb=(t,n,r,i=e)=>{let a=i(`stylus`);try{let e=a(t,r);n&&e.set(`sourcemap`,{inline:!1,comment:!1});let i=e.render(),o=e.deps();return n?{code:i,map:bb(n,e.sourcemap),errors:[],dependencies:o}:{code:i,errors:[],dependencies:o}}catch(e){return{code:``,errors:[e],dependencies:[]}}};function Pb(e,t,n){return n?fe(n)?n(e,t):n+e:e}var Fb={less:Mb,sass:jb,scss:Ab,styl:Nb,stylus:Nb},Ib=Object.defineProperty,Lb=Object.defineProperties,Rb=Object.getOwnPropertyDescriptors,zb=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Vb=Object.prototype.propertyIsEnumerable,Hb=(e,t,n)=>t in e?Ib(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ub=(e,t)=>{for(var n in t||={})Bb.call(t,n)&&Hb(e,n,t[n]);if(zb)for(var n of zb(t))Vb.call(t,n)&&Hb(e,n,t[n]);return e},Wb=(e,t)=>Lb(e,Rb(t));function Gb(e){return Kb(Wb(Ub({},e),{isAsync:!0}))}function Kb(e){let{filename:t,id:n,scoped:r=!1,trim:i=!0,isProd:a=!1,modules:o=!1,modulesOptions:s={},preprocessLang:c,postcssOptions:l,postcssPlugins:u}=e,d=c&&Fb[c],f=d&&qb(e,d),p=f?f.map:e.inMap||e.map,m=f?f.code:e.source,h=n.replace(/^data-v-/,``),g=`data-v-${h}`,_=(u||[]).slice();if(_.unshift(Vl({id:h,isProd:a})),i&&_.push(z_()),r&&_.push(Oy(g)),o)throw Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");let v=Wb(Ub({},l),{to:t,from:t});p&&(v.map={inline:!1,annotation:!1,prev:p});let y,b,x,S=new Set(f?f.dependencies:[]);S.delete(t);let C=[];f&&f.errors.length&&C.push(...f.errors);let w=e=>(e.forEach(e=>{e.type===`dependency`&&S.add(e.file)}),S);try{if(y=Y(_).process(m,v),e.isAsync)return y.then(e=>({code:e.css||``,map:e.map&&e.map.toJSON(),errors:C,modules:void 0,rawResult:e,dependencies:w(e.messages)})).catch(e=>({code:``,map:void 0,errors:[...C,e],rawResult:void 0,dependencies:S}));w(y.messages),b=y.css,x=y.map}catch(e){C.push(e)}return{code:b||``,map:x&&x.toJSON(),errors:C,rawResult:y,dependencies:S}}function qb(e,t){if(!e.preprocessCustomRequire)throw Error("[@vue/compiler-sfc] Style preprocessing in the browser build must provide the `preprocessCustomRequire` option to return the in-browser version of the preprocessor.");return t(e.source,e.inMap||e.map,Ub({filename:e.filename},e.preprocessOptions),e.preprocessCustomRequire)}var Jb=`Unknown`;function Yb(e,t){switch(e.type){case`StringLiteral`:case`NumericLiteral`:return String(e.value);case`Identifier`:if(!t)return e.name}}function Xb(e){return e.filter(e=>!!e).join(`, `)}function Zb(e){return e.type.endsWith(`Literal`)}function Qb(e,t){return!!(e&&t&&e.type===`CallExpression`&&e.callee.type===`Identifier`&&(typeof t==`string`?e.callee.name===t:t(e.callee.name)))}function $b(e){return e.length>1?`[${e.join(`, `)}]`:e[0]}function ex(e){return e.type===`ImportSpecifier`?e.imported.type===`Identifier`?e.imported.name:e.imported.value:e.type===`ImportNamespaceSpecifier`?`*`:`default`}function tx(e){return e.type===`Identifier`?e.name:e.type===`StringLiteral`?e.value:null}function nx(e){return e.computed?e.key.type===`TemplateLiteral`&&!e.key.expressions.length?e.key.quasis.map(e=>e.value.cooked).join(``):null:e.key.type===`Identifier`?e.key.name:e.key.type===`StringLiteral`?e.key.value:e.key.type===`NumericLiteral`?String(e.key.value):null}var rx=(bd.posix||bd).normalize,ix=/\\/g;function ax(e){return rx(e.replace(ix,`/`))}var ox=(bd.posix||bd).join,sx=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~\-]/;function cx(e){return sx.test(e)?JSON.stringify(e):e}var lx=(...e)=>e.some(e=>e===`js`||e===`jsx`),ux=(...e)=>e.some(e=>e===`ts`||e===`tsx`);function dx(e){for(let t of e)if(t.type===`ExportDefaultDeclaration`&&t.declaration.type===`ObjectExpression`)return fx(t.declaration);return{}}function fx(e){let t={};Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!1});for(let n of e.properties)if(n.type===`ObjectProperty`&&!n.computed&&n.key.type===`Identifier`){if(n.key.name===`props`)for(let e of hx(n.value))t[e]=`props`;else if(n.key.name===`inject`)for(let e of hx(n.value))t[e]=`options`;else if(n.value.type===`ObjectExpression`&&(n.key.name===`computed`||n.key.name===`methods`))for(let e of px(n.value))t[e]=`options`}else if(n.type===`ObjectMethod`&&n.key.type===`Identifier`&&(n.key.name===`setup`||n.key.name===`data`)){for(let e of n.body.body)if(e.type===`ReturnStatement`&&e.argument&&e.argument.type===`ObjectExpression`)for(let r of px(e.argument))t[r]=n.key.name===`setup`?`setup-maybe-ref`:`data`}return t}function px(e){let t=[];for(let n of e.properties){if(n.type===`SpreadElement`)continue;let e=Yb(n.key,n.computed);e&&t.push(String(e))}return t}function mx(e){let t=[];for(let n of e.elements)n&&n.type===`StringLiteral`&&t.push(n.value);return t}function hx(e){return e.type===`ArrayExpression`?mx(e):e.type===`ObjectExpression`?px(e):[]}var gx=44,_x=59,vx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,yx=new Uint8Array(64),bx=new Uint8Array(128);for(let e=0;e<vx.length;e++){let t=vx.charCodeAt(e);yx[e]=t,bx[t]=e}function xx(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(yx[t])}while(r>0);return t}var Sx=1024*16,Cx=typeof TextDecoder<`u`?new TextDecoder:ae.Buffer===void 0?{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}}:{decode(e){return ae.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}},wx=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(Sx)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===Sx&&(this.out+=Cx.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+Cx.decode(e.subarray(0,n)):t}};function Tx(e){let t=new wx,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(_x),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(gx),c=xx(t,o[0],c),o.length!==1&&(n=xx(t,o[1],n),r=xx(t,o[2],r),i=xx(t,o[3],i),o.length!==4&&(a=xx(t,o[4],a)))}}return t.flush()}var Ex=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Dx=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}else if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function Ox(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof ae.Buffer==`function`?e=>ae.Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var kx=Ox(),Ax=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Tx(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+kx(this.toString())}};function jx(e){let t=e.split(`
|
|
91
91
|
`),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function Mx(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}var Nx=Object.prototype.toString;function Px(e){return Nx.call(e)===`[object Object]`}function Fx(e){let t=e.split(`
|
|
92
92
|
`),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}var Ix=/\w/,Lx=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
|
|
93
93
|
`,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=a,a=t.indexOf(`
|
|
@@ -104,12 +104,12 @@ ${Pe(e.source,t.pos+n,t.pos+n+1)}`,t}}this.scriptAst=e.script&&l(e.script.conten
|
|
|
104
104
|
${(r||n.descriptor).filename}
|
|
105
105
|
${Pe((r||n.descriptor).source,t.start+i,t.end+i)}`}function Ux(e,t,n=!1){let r=[];return(!t||!t.some(e=>e===`importAssertions`||e===`importAttributes`||P(e)&&e[0]===`importAttributes`))&&r.push(`importAttributes`),e===`jsx`||e===`tsx`||e===`mtsx`?r.push(`jsx`):t&&=t.filter(e=>e!==`jsx`),(e===`ts`||e===`mts`||e===`tsx`||e===`cts`||e===`mtsx`)&&(r.push([`typescript`,{dts:n}],`explicitResourceManagement`),(!t||!t.includes(`decorators`))&&r.push(`decorators-legacy`)),t&&r.push(...t),r}function Wx(e,t,n){if(!Gx(e)){t.append(`
|
|
106
106
|
const ${n} = {}`);return}e.forEach(e=>{if(e.type===`ExportDefaultDeclaration`)if(e.declaration.type===`ClassDeclaration`&&e.declaration.id){let r=e.declaration.decorators&&e.declaration.decorators.length>0?e.declaration.decorators[e.declaration.decorators.length-1].end:e.start;t.overwrite(r,e.declaration.id.start,` class `),t.append(`
|
|
107
|
-
const ${n} = ${e.declaration.id.name}`)}else t.overwrite(e.start,e.declaration.start,`const ${n} = `);else if(e.type===`ExportNamedDeclaration`){for(let r of e.specifiers)if(r.type===`ExportSpecifier`&&r.exported.type===`Identifier`&&r.exported.name
|
|
107
|
+
const ${n} = ${e.declaration.id.name}`)}else t.overwrite(e.start,e.declaration.start,`const ${n} = `);else if(e.type===`ExportNamedDeclaration`){for(let r of e.specifiers)if(r.type===`ExportSpecifier`&&r.exported.type===`Identifier`&&r.exported.name==="default"){if(e.source)if(r.local.name==="default"){t.prepend(`import { default as __VUE_DEFAULT__ } from '${e.source.value}'
|
|
108
108
|
`);let i=Kx(t,r.local.end,e.end);t.remove(r.start,i),t.append(`
|
|
109
109
|
const ${n} = __VUE_DEFAULT__`);continue}else{t.prepend(`import { ${t.slice(r.local.start,r.local.end)} as __VUE_DEFAULT__ } from '${e.source.value}'
|
|
110
110
|
`);let i=Kx(t,r.exported.end,e.end);t.remove(r.start,i),t.append(`
|
|
111
111
|
const ${n} = __VUE_DEFAULT__`);continue}let i=Kx(t,r.end,e.end);t.remove(r.start,i),t.append(`
|
|
112
|
-
const ${n} = ${r.local.name}`)}}})}function Gx(e){for(let t of e)if(t.type===`ExportDefaultDeclaration`)return!0;else if(t.type===`ExportNamedDeclaration`&&t.specifiers.some(e=>e.exported.name
|
|
112
|
+
const ${n} = ${r.local.name}`)}}})}function Gx(e){for(let t of e)if(t.type===`ExportDefaultDeclaration`)return!0;else if(t.type===`ExportNamedDeclaration`&&t.specifiers.some(e=>e.exported.name==="default"))return!0;return!1}function Kx(e,t,n){let r=!1,i=t;for(;t<n;)if(/\s/.test(e.slice(t,t+1)))t++;else if(e.slice(t,t+1)===`,`){t++,r=!0;break}else if(e.slice(t,t+1)===`}`)break;return r?t:i}var qx=Object.defineProperty,Jx=Object.defineProperties,Yx=Object.getOwnPropertyDescriptors,Xx=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Qx=Object.prototype.propertyIsEnumerable,$x=(e,t,n)=>t in e?qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eS=(e,t)=>{for(var n in t||={})Zx.call(t,n)&&$x(e,n,t[n]);if(Xx)for(var n of Xx(t))Qx.call(t,n)&&$x(e,n,t[n]);return e},tS=(e,t)=>Jx(e,Yx(t)),nS=`__default__`;function rS(e,t){let n=e.descriptor.script;try{let r=n.content,i=n.map,a=e.scriptAst,o=dx(a.body),{cssVars:s}=e.descriptor,{genDefaultAs:c,isProd:l}=e.options;if(s.length||c){let n=c||nS,i=new Bx(r);Wx(a.body,i,n),r=i.toString(),s.length&&!e.options.templateOptions?.ssr&&(r+=Ul(s,o,t,!!l,n)),c||(r+=`
|
|
113
113
|
export default ${n}`)}return tS(eS({},n),{content:r,map:i,bindings:o,scriptAst:a.body})}catch{return n}}var iS=Object.defineProperty,aS=Object.defineProperties,oS=Object.getOwnPropertyDescriptors,sS=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,lS=Object.prototype.propertyIsEnumerable,uS=(e,t,n)=>t in e?iS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dS=(e,t)=>{for(var n in t||={})cS.call(t,n)&&uS(e,n,t[n]);if(sS)for(var n of sS(t))lS.call(t,n)&&uS(e,n,t[n]);return e},fS=(e,t)=>aS(e,oS(t)),pS=class{constructor(e,t,n=0,r=Object.create(null),i=Object.create(null),a=Object.create(null)){this.filename=e,this.source=t,this.offset=n,this.imports=r,this.types=i,this.declares=a,this.isGenericScope=!1,this.resolvedImportSources=Object.create(null),this.exportedTypes=Object.create(null),this.exportedDeclares=Object.create(null)}};function mS(e,t){t&&t.filename!==e.filename&&(e.deps||=new Set).add(t.filename)}function hS(e,{props:t}){for(let n in t)mS(e,t[n]._ownerScope)}function gS(e,t,n,r){let i=!r;if(i&&t._resolvedElements)return hS(e,t._resolvedElements),t._resolvedElements;let a=_S(e,t,t._ownerScope||n||WS(e),r);return i?t._resolvedElements=a:a}function _S(e,t,n,r){if(t.leadingComments&&t.leadingComments.some(e=>e.value.includes(`@vue-ignore`)))return{props:{}};switch(t.type){case`TSTypeLiteral`:return vS(e,t.members,n,r);case`TSInterfaceDeclaration`:return xS(e,t,n,r);case`TSTypeAliasDeclaration`:case`TSTypeAnnotation`:case`TSParenthesizedType`:return gS(e,t.typeAnnotation,n,r);case`TSFunctionType`:return{props:{},calls:[t]};case`TSUnionType`:case`TSIntersectionType`:return yS(t.types.map(t=>gS(e,t,n,r)),t.type);case`TSMappedType`:return SS(e,t,n,r);case`TSIndexedAccessType`:return yS(CS(e,t,n).map(t=>gS(e,t,t._ownerScope)),`TSUnionType`);case`TSExpressionWithTypeArguments`:case`TSTypeReference`:{let i=jS(t);if((i===`ExtractPropTypes`||i===`ExtractPublicPropTypes`)&&t.typeParameters&&n.imports[i]?.source===`vue`)return rC(gS(e,t.typeParameters.params[0],n,r),n);let a=kS(e,t,n);if(a){let n;return(a.type===`TSTypeAliasDeclaration`||a.type===`TSInterfaceDeclaration`)&&a.typeParameters&&t.typeParameters&&(n=Object.create(null),a.typeParameters.params.forEach((e,i)=>{let a=r&&r[e.name];a||=t.typeParameters.params[i],n[e.name]=a})),gS(e,a,a._ownerScope,n)}else{if(typeof i==`string`){if(r&&r[i])return gS(e,r[i],n,r);if(DS.has(i))return OS(e,t,i,n,r);if(i===`ReturnType`&&t.typeParameters){let r=sC(e,t.typeParameters.params[0],n);if(r)return gS(e,r,n)}}return e.error(`Unresolvable type reference or unsupported built-in utility type`,t,n)}}case`TSImportType`:{if(tx(t.argument)===`vue`&&t.qualifier?.type===`Identifier`&&t.qualifier.name===`ExtractPropTypes`&&t.typeParameters)return rC(gS(e,t.typeParameters.params[0],n),n);let r=kS(e,t,RS(e,t.argument,n,t.argument.value));if(r)return gS(e,r,r._ownerScope);break}case`TSTypeQuery`:{let r=kS(e,t,n);if(r)return gS(e,r,r._ownerScope)}break}return e.error(`Unresolvable type: ${t.type}`,t,n)}function vS(e,t,n=WS(e),r){let i={props:{}};for(let a of t)if(a.type===`TSPropertySignature`||a.type===`TSMethodSignature`){r&&(n=KS(n),n.isGenericScope=!0,Object.assign(n.types,r)),a._ownerScope=n;let t=nx(a);t===null?e.error(`Unsupported computed key in type referenced by a macro`,a.key,n):i.props[t]=a}else a.type===`TSCallSignatureDeclaration`&&(i.calls||=[]).push(a);return i}function yS(e,t){if(e.length===1)return e[0];let n={props:{}},{props:r}=n;for(let{props:i,calls:a}of e){for(let e in i)le(r,e)?r[e]=bS(r[e].key,{type:t,types:[r[e],i[e]]},r[e]._ownerScope,r[e].optional||i[e].optional):r[e]=i[e];a&&(n.calls||=[]).push(...a)}return n}function bS(e,t,n,r){return{type:`TSPropertySignature`,key:e,kind:`get`,optional:r,typeAnnotation:{type:`TSTypeAnnotation`,typeAnnotation:t},_ownerScope:n}}function xS(e,t,n,r){let i=vS(e,t.body.body,t._ownerScope,r);if(t.extends)for(let r of t.extends)try{let{props:t,calls:a}=gS(e,r,n);for(let e in t)le(i.props,e)||(i.props[e]=t[e]);a&&(i.calls||=[]).push(...a)}catch{e.silentOnExtendsFailure||e.error(`Failed to resolve extends base type.
|
|
114
114
|
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
|
|
115
115
|
|
|
@@ -131,11 +131,11 @@ Prefer using destructure default values, e.g. const { foo = 1 } = defineProps(..
|
|
|
131
131
|
${r?``:`__temp = `}await __temp,
|
|
132
132
|
__restore()${r?``:`,
|
|
133
133
|
__temp`}
|
|
134
|
-
)`)}var LC=Object.defineProperty,RC=Object.defineProperties,zC=Object.getOwnPropertyDescriptors,BC=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,UC=(e,t,n)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WC=(e,t)=>{for(var n in t||={})VC.call(t,n)&&UC(e,n,t[n]);if(BC)for(var n of BC(t))HC.call(t,n)&&UC(e,n,t[n]);return e},GC=(e,t)=>RC(e,zC(t)),KC=[fC,TC,AC,PC,MC,lC,pC];function qC(e,t){t.id||zh("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");let{script:n,scriptSetup:r,source:i,filename:a}=e,o=t.hoistStatic!==!1&&!n,s=t.id?t.id.replace(/^data-v-/,``):``,c=n&&n.lang,l=r&&r.lang,u=lx(c,l)||ux(c,l);if(n&&r&&c!==l)throw Error(`[@vue/compiler-sfc] <script> and <script setup> must have the same language type.`);if(!r){if(!n)throw Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`);return n.lang&&!u?n:rS(new Vx(e,t),s)}if(l&&!u)return r;let d=new Vx(e,t),f=Object.create(null),p=Object.create(null),m,h=!1,g=!1,_=d.startOffset,v=d.endOffset,y=n&&n.loc.start.offset,b=n&&n.loc.end.offset;function x(e){let t=e.start+_,n=e.end+_;for(e.trailingComments&&e.trailingComments.length>0&&(n=e.trailingComments[e.trailingComments.length-1].end+_);n<=i.length&&/\s/.test(i.charAt(n));)n++;d.s.move(t,n,0)}function S(t,n,r,i,a,o){let s=o;o&&d.isTS&&e.template&&!e.template.src&&!e.template.lang&&(s=Mu(n,e)),d.userImports[n]={isType:i,imported:r,local:n,source:t,isFromSetup:a,isUsedInTemplate:s}}function C(e,t){e&&wi(e,e=>{let n=p[e.name];n&&n!==`literal-const`&&d.error(`\`${t}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,e)})}let w=d.scriptAst,T=d.scriptSetupAst;if(w){for(let e of w.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers){let r=ex(n);S(e.source.value,n.local.name,r,e.importKind===`type`||n.type===`ImportSpecifier`&&n.importKind===`type`,!1,!t.inlineTemplate)}}for(let e of T.body)if(e.type===`ImportDeclaration`){x(e);let n=0,r=t=>{let r=t>n;n++;let i=e.specifiers[t],a=e.specifiers[t+1];d.s.remove(r?e.specifiers[t-1].end+_:i.start+_,a&&!r?a.start+_:i.end+_)};for(let n=0;n<e.specifiers.length;n++){let i=e.specifiers[n],a=i.local.name,o=ex(i),s=e.source.value,c=d.userImports[a];s===`vue`&&KC.includes(o)?(a===o?zh(`\`${o}\` is a compiler macro and no longer needs to be imported.`):d.error(`\`${o}\` is a compiler macro and cannot be aliased to a different name.`,i),r(n)):c?c.source===s&&c.imported===o?r(n):d.error(`different imports aliased to same local name.`,i):S(s,a,o,e.importKind===`type`||i.type===`ImportSpecifier`&&i.importKind===`type`,!0,!t.inlineTemplate)}e.specifiers.length&&n===e.specifiers.length&&d.s.remove(e.start+_,e.end+_)}let E={};for(let e in d.userImports){let{source:t,imported:n,local:r}=d.userImports[e];t===`vue`&&(E[n]=r)}if(n&&w){for(let e of w.body)if(e.type===`ExportDefaultDeclaration`){m=e;let t;if(m.declaration.type===`ObjectExpression`?t=m.declaration.properties:m.declaration.type===`CallExpression`&&m.declaration.arguments[0]&&m.declaration.arguments[0].type===`ObjectExpression`&&(t=m.declaration.arguments[0].properties),t)for(let e of t)e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`name`&&(d.hasDefaultExportName=!0),(e.type===`ObjectMethod`||e.type===`ObjectProperty`)&&e.key.type===`Identifier`&&e.key.name===`render`&&(d.hasDefaultExportRender=!0);let n=e.start+y,r=e.declaration.start+y;d.s.overwrite(n,r,`const ${nS} = `)}else if(e.type===`ExportNamedDeclaration`){let t=e.specifiers.find(e=>e.exported.type===`Identifier`&&e.exported.name
|
|
134
|
+
)`)}var LC=Object.defineProperty,RC=Object.defineProperties,zC=Object.getOwnPropertyDescriptors,BC=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,UC=(e,t,n)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WC=(e,t)=>{for(var n in t||={})VC.call(t,n)&&UC(e,n,t[n]);if(BC)for(var n of BC(t))HC.call(t,n)&&UC(e,n,t[n]);return e},GC=(e,t)=>RC(e,zC(t)),KC=[fC,TC,AC,PC,MC,lC,pC];function qC(e,t){t.id||zh("compileScript now requires passing the `id` option.\nUpgrade your vite or vue-loader version for compatibility with the latest experimental proposals.");let{script:n,scriptSetup:r,source:i,filename:a}=e,o=t.hoistStatic!==!1&&!n,s=t.id?t.id.replace(/^data-v-/,``):``,c=n&&n.lang,l=r&&r.lang,u=lx(c,l)||ux(c,l);if(n&&r&&c!==l)throw Error(`[@vue/compiler-sfc] <script> and <script setup> must have the same language type.`);if(!r){if(!n)throw Error(`[@vue/compiler-sfc] SFC contains no <script> tags.`);return n.lang&&!u?n:rS(new Vx(e,t),s)}if(l&&!u)return r;let d=new Vx(e,t),f=Object.create(null),p=Object.create(null),m,h=!1,g=!1,_=d.startOffset,v=d.endOffset,y=n&&n.loc.start.offset,b=n&&n.loc.end.offset;function x(e){let t=e.start+_,n=e.end+_;for(e.trailingComments&&e.trailingComments.length>0&&(n=e.trailingComments[e.trailingComments.length-1].end+_);n<=i.length&&/\s/.test(i.charAt(n));)n++;d.s.move(t,n,0)}function S(t,n,r,i,a,o){let s=o;o&&d.isTS&&e.template&&!e.template.src&&!e.template.lang&&(s=Mu(n,e)),d.userImports[n]={isType:i,imported:r,local:n,source:t,isFromSetup:a,isUsedInTemplate:s}}function C(e,t){e&&wi(e,e=>{let n=p[e.name];n&&n!==`literal-const`&&d.error(`\`${t}()\` in <script setup> cannot reference locally declared variables because it will be hoisted outside of the setup() function. If your component options require initialization in the module scope, use a separate normal <script> to export the options instead.`,e)})}let w=d.scriptAst,T=d.scriptSetupAst;if(w){for(let e of w.body)if(e.type===`ImportDeclaration`)for(let n of e.specifiers){let r=ex(n);S(e.source.value,n.local.name,r,e.importKind===`type`||n.type===`ImportSpecifier`&&n.importKind===`type`,!1,!t.inlineTemplate)}}for(let e of T.body)if(e.type===`ImportDeclaration`){x(e);let n=0,r=t=>{let r=t>n;n++;let i=e.specifiers[t],a=e.specifiers[t+1];d.s.remove(r?e.specifiers[t-1].end+_:i.start+_,a&&!r?a.start+_:i.end+_)};for(let n=0;n<e.specifiers.length;n++){let i=e.specifiers[n],a=i.local.name,o=ex(i),s=e.source.value,c=d.userImports[a];s===`vue`&&KC.includes(o)?(a===o?zh(`\`${o}\` is a compiler macro and no longer needs to be imported.`):d.error(`\`${o}\` is a compiler macro and cannot be aliased to a different name.`,i),r(n)):c?c.source===s&&c.imported===o?r(n):d.error(`different imports aliased to same local name.`,i):S(s,a,o,e.importKind===`type`||i.type===`ImportSpecifier`&&i.importKind===`type`,!0,!t.inlineTemplate)}e.specifiers.length&&n===e.specifiers.length&&d.s.remove(e.start+_,e.end+_)}let E={};for(let e in d.userImports){let{source:t,imported:n,local:r}=d.userImports[e];t===`vue`&&(E[n]=r)}if(n&&w){for(let e of w.body)if(e.type===`ExportDefaultDeclaration`){m=e;let t;if(m.declaration.type===`ObjectExpression`?t=m.declaration.properties:m.declaration.type===`CallExpression`&&m.declaration.arguments[0]&&m.declaration.arguments[0].type===`ObjectExpression`&&(t=m.declaration.arguments[0].properties),t)for(let e of t)e.type===`ObjectProperty`&&e.key.type===`Identifier`&&e.key.name===`name`&&(d.hasDefaultExportName=!0),(e.type===`ObjectMethod`||e.type===`ObjectProperty`)&&e.key.type===`Identifier`&&e.key.name===`render`&&(d.hasDefaultExportRender=!0);let n=e.start+y,r=e.declaration.start+y;d.s.overwrite(n,r,`const ${nS} = `)}else if(e.type===`ExportNamedDeclaration`){let t=e.specifiers.find(e=>e.exported.type===`Identifier`&&e.exported.name==="default");t&&(m=e,e.specifiers.length>1?d.s.remove(t.start+y,t.end+y):d.s.remove(e.start+y,e.end+y),e.source?d.s.prepend(`import { ${t.local.name} as ${nS} } from '${e.source.value}'
|
|
135
135
|
`):d.s.appendLeft(b,`
|
|
136
136
|
const ${nS} = ${t.local.name}
|
|
137
137
|
`)),e.declaration&&YC(`script`,e.declaration,f,E,o)}else (e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&YC(`script`,e,f,E,o);y>_&&(/\n$/.test(n.content.trim())||d.s.appendLeft(b,`
|
|
138
|
-
`),d.s.move(y,b,0))}for(let e of T.body){if(e.type===`ExpressionStatement`){let t=Vi(e.expression);if(mC(d,t)||EC(d,t)||FC(d,t)||NC(d,t))d.s.remove(e.start+_,e.end+_);else if(jC(d,t)){let e=t.callee;d.s.overwrite(e.start+_,e.end+_,`__expose`)}else uC(d,t)}if(e.type===`VariableDeclaration`&&!e.declare){let t=e.declarations.length,n=t,r;for(let i=0;i<t;i++){let a=e.declarations[i],o=a.init&&Vi(a.init);if(o){FC(d,o)&&d.error(`${PC}() has no returning value, it cannot be assigned.`,e);let s=mC(d,o,a.id);d.propsDestructureRestId&&(p[d.propsDestructureRestId]=`setup-reactive-const`);let c=!s&&EC(d,o,a.id);if(!c&&(NC(d,o,a.id)||uC(d,o,a.id)),s&&!d.propsDestructureRestId&&d.propsDestructureDecl)if(n===1)d.s.remove(e.start+_,e.end+_);else{let o=a.start+_,s=a.end+_;i===t-1?o=e.declarations[r].end+_:s=e.declarations[i+1].start+_,d.s.remove(o,s),n--}else c?d.s.overwrite(_+o.start,_+o.end,`__emit`):r=i}}}let t=!1;if((e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&(t=YC(`scriptSetup`,e,p,E,o,!!d.propsDestructureDecl)),o&&t&&x(e),e.type===`VariableDeclaration`&&!e.declare||e.type.endsWith(`Statement`)){let t=[T.body];Ci(e,{enter(e,n){Ii(e)&&this.skip(),e.type===`BlockStatement`&&t.push(e.body),e.type===`AwaitExpression`&&(h=!0,IC(d,e,t[t.length-1].some((n,r)=>(t.length===1||r>0)&&n.type===`ExpressionStatement`&&n.start===e.start),n.type===`ExpressionStatement`))},exit(e){e.type===`BlockStatement`&&t.pop()}})}(e.type===`ExportNamedDeclaration`&&e.exportKind!==`type`||e.type===`ExportAllDeclaration`||e.type===`ExportDefaultDeclaration`)&&d.error(`<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.`,e),d.isTS&&(e.type.startsWith(`TS`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`VariableDeclaration`&&e.declare)&&e.type!==`TSEnumDeclaration`&&x(e)}d.propsDestructureDecl&&wC(d,E),C(d.propsRuntimeDecl,fC),C(d.propsRuntimeDefaults,fC),C(d.propsDestructureDecl,fC),C(d.emitsRuntimeDecl,TC),C(d.optionsRuntimeDecl,PC);for(let{runtimeOptionNodes:e}of Object.values(d.modelDecls))for(let t of e)C(t,lC);n?_<y?(d.s.remove(0,_),d.s.remove(v,y),d.s.remove(b,i.length)):(d.s.remove(0,y),d.s.remove(b,_),d.s.remove(v,i.length)):(d.s.remove(0,_),d.s.remove(v,i.length)),w&&Object.assign(d.bindingMetadata,dx(w.body));for(let[e,{isType:t,imported:n,source:r}]of Object.entries(d.userImports))t||(d.bindingMetadata[e]=n===`*`||n
|
|
138
|
+
`),d.s.move(y,b,0))}for(let e of T.body){if(e.type===`ExpressionStatement`){let t=Vi(e.expression);if(mC(d,t)||EC(d,t)||FC(d,t)||NC(d,t))d.s.remove(e.start+_,e.end+_);else if(jC(d,t)){let e=t.callee;d.s.overwrite(e.start+_,e.end+_,`__expose`)}else uC(d,t)}if(e.type===`VariableDeclaration`&&!e.declare){let t=e.declarations.length,n=t,r;for(let i=0;i<t;i++){let a=e.declarations[i],o=a.init&&Vi(a.init);if(o){FC(d,o)&&d.error(`${PC}() has no returning value, it cannot be assigned.`,e);let s=mC(d,o,a.id);d.propsDestructureRestId&&(p[d.propsDestructureRestId]=`setup-reactive-const`);let c=!s&&EC(d,o,a.id);if(!c&&(NC(d,o,a.id)||uC(d,o,a.id)),s&&!d.propsDestructureRestId&&d.propsDestructureDecl)if(n===1)d.s.remove(e.start+_,e.end+_);else{let o=a.start+_,s=a.end+_;i===t-1?o=e.declarations[r].end+_:s=e.declarations[i+1].start+_,d.s.remove(o,s),n--}else c?d.s.overwrite(_+o.start,_+o.end,`__emit`):r=i}}}let t=!1;if((e.type===`VariableDeclaration`||e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`||e.type===`TSEnumDeclaration`)&&!e.declare&&(t=YC(`scriptSetup`,e,p,E,o,!!d.propsDestructureDecl)),o&&t&&x(e),e.type===`VariableDeclaration`&&!e.declare||e.type.endsWith(`Statement`)){let t=[T.body];Ci(e,{enter(e,n){Ii(e)&&this.skip(),e.type===`BlockStatement`&&t.push(e.body),e.type===`AwaitExpression`&&(h=!0,IC(d,e,t[t.length-1].some((n,r)=>(t.length===1||r>0)&&n.type===`ExpressionStatement`&&n.start===e.start),n.type===`ExpressionStatement`))},exit(e){e.type===`BlockStatement`&&t.pop()}})}(e.type===`ExportNamedDeclaration`&&e.exportKind!==`type`||e.type===`ExportAllDeclaration`||e.type===`ExportDefaultDeclaration`)&&d.error(`<script setup> cannot contain ES module exports. If you are using a previous version of <script setup>, please consult the updated RFC at https://github.com/vuejs/rfcs/pull/227.`,e),d.isTS&&(e.type.startsWith(`TS`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`VariableDeclaration`&&e.declare)&&e.type!==`TSEnumDeclaration`&&x(e)}d.propsDestructureDecl&&wC(d,E),C(d.propsRuntimeDecl,fC),C(d.propsRuntimeDefaults,fC),C(d.propsDestructureDecl,fC),C(d.emitsRuntimeDecl,TC),C(d.optionsRuntimeDecl,PC);for(let{runtimeOptionNodes:e}of Object.values(d.modelDecls))for(let t of e)C(t,lC);n?_<y?(d.s.remove(0,_),d.s.remove(v,y),d.s.remove(b,i.length)):(d.s.remove(0,y),d.s.remove(b,_),d.s.remove(v,i.length)):(d.s.remove(0,_),d.s.remove(v,i.length)),w&&Object.assign(d.bindingMetadata,dx(w.body));for(let[e,{isType:t,imported:n,source:r}]of Object.entries(d.userImports))t||(d.bindingMetadata[e]=n===`*`||n==="default"&&r.endsWith(`.vue`)||r===`vue`?`setup-const`:`setup-maybe-ref`);for(let e in f)d.bindingMetadata[e]=f[e];for(let e in p)d.bindingMetadata[e]=p[e];if(e.template&&!e.template.src&&e.template.ast){let t=Pu(e);if(t.size){let e=new Set;for(let n of t)p[n]===`setup-reactive-const`&&e.add(n);if(e.size){for(let t of T.body)if(t.type===`VariableDeclaration`&&t.kind===`const`&&!t.declare){let n=[];for(let r of t.declarations)r.id.type===`Identifier`&&e.has(r.id.name)&&n.push(r.id.name);if(n.length){d.s.overwrite(t.start+_,t.start+_+5,`let`);for(let e of n)p[e]=`setup-let`,d.bindingMetadata[e]=`setup-let`,zh(`\`v-model\` cannot update a \`const\` reactive binding \`${e}\`. The compiler has transformed it to \`let\` to make the update work.`)}}}}}e.cssVars.length&&!t.templateOptions?.ssr&&(d.helperImports.add(Pl),d.helperImports.add(`unref`),d.s.prependLeft(_,`
|
|
139
139
|
${Hl(e.cssVars,d.bindingMetadata,s,!!t.isProd)}
|
|
140
140
|
`));let ee=`__props`;if(d.propsTypeDecl&&(ee+=`: any`),d.propsDecl&&(d.propsDestructureRestId?(d.s.overwrite(_+d.propsCall.start,_+d.propsCall.end,`${d.helper(`createPropsRestProxy`)}(__props, ${JSON.stringify(Object.keys(d.propsDestructuredBindings))})`),d.s.overwrite(_+d.propsDestructureDecl.start,_+d.propsDestructureDecl.end,d.propsDestructureRestId)):d.propsDestructureDecl||d.s.overwrite(_+d.propsCall.start,_+d.propsCall.end,`__props`)),h){let e=d.isTS?`: any`:``;d.s.prependLeft(_,`
|
|
141
141
|
let __temp${e}, __restore${e}
|