@unocss/inspector 0.44.1 → 0.44.4
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/client/assets/_id_.6b1d1bd3.js +1 -0
- package/dist/client/assets/{index.025c0b6b.js → index.03bbe3c5.js} +1 -1
- package/dist/client/assets/{repl.80ad1a22.js → repl.404c239a.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/_id_.ba0ef298.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as V,m as I,d as M,p as O,t as W,r as C,u as D,q as U,s as Z,v as j,g as u,o as k,c as R,b as g,w as A,e as f,x as E,y as S,z as w,A as N,n as P,B as q,C as G,D as K,E as H,_ as J,h as L,F as Q,k as X,G as Y}from"./index.03bbe3c5.js";const tt=t=>t.split(/[\s'"`;=]+/g).filter(V),et={name:"split",order:0,extract({code:t}){return new Set(tt(t))}},B=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,st=(t={})=>{var i,h,d;const a=(i=t.prefix)!=null?i:"un-",c=(h=t.prefixedOnly)!=null?h:!1,_=(d=t.trueToNonValued)!=null?d:!1;return{name:"attributify",match(r){const o=I(r);if(!o)return;let e=o[1];if(e.startsWith(a))e=e.slice(a.length);else if(c)return;const p=o[2],[,l="",s=p]=p.match(B)||[];return s==="~"||_&&s==="true"||!s?`${l}${e}`:`${l}${e}-${s}`}}},lt=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,rt=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,z=/[\s'"`;>]+/,nt={name:"attributify",extract:({content:t,cursor:a})=>{const c=t.matchAll(lt);let _,i=0;for(const n of c){const[,x,y]=n,b=n.index+x.length;if(a>b&&a<=b+y.length){i=b,_=y;break}}if(!_)return null;const h=_.matchAll(rt);let d=0,r,o;for(const n of h){const[x,y,b]=n,$=i+n.index;if(a>$&&a<=$+x.length){d=$,r=y,o=b==null?void 0:b.slice(1);break}}if(!r||r==="class"||r==="className"||r===":class")return null;if(o===void 0)return{extracted:r,resolveReplacement(n){return{start:d,end:d+r.length,replacement:n}}};const e=d+r.length+2;let p=z.exec(o),l=0,s;for(;p;){const[n]=p;if(a>e+l&&a<=e+l+p.index){s=o.slice(l,l+p.index);break}l+=p.index+n.length,p=z.exec(o.slice(l))}s===void 0&&(s=o.slice(l));const[,m="",v]=s.match(B)||[];return{extracted:`${m}${r}-${v}`,transformSuggestions(n){return n.filter(x=>x.startsWith(`${m}${r}-`)).map(x=>m+x.slice(m.length+r.length+1))},resolveReplacement(n){return{start:l+e,end:l+e+s.length,replacement:m+n.slice(m.length+r.length+1)}}}}},at=["v-bind:",":"],F=/[\s'"`;]+/g,ct=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ot=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,T=["placeholder"],it=t=>{var i,h,d;const a=(i=t==null?void 0:t.ignoreAttributes)!=null?i:T,c=(h=t==null?void 0:t.nonValuedAttribute)!=null?h:!0,_=(d=t==null?void 0:t.trueToNonValued)!=null?d:!1;return{name:"attributify",extract({code:r}){const o=Array.from(r.matchAll(ct)).flatMap(e=>Array.from((e[1]||"").matchAll(ot))).flatMap(([,e,p,l])=>{if(a.includes(e))return[];for(const s of at)if(e.startsWith(s)){e=e.slice(s.length);break}if(!l){if(V(e)&&c!==!1){const s=[`[${e}=""]`];return _&&s.push(`[${e}="true"]`),s}return[]}return["class","className"].includes(e)?l.split(F).filter(V):l.split(F).filter(Boolean).map(s=>`[${e}~="${s}"]`)});return new Set(o)}}},ut=(t={})=>{var i,h,d,r,o;t.strict=(i=t.strict)!=null?i:!1,t.prefix=(h=t.prefix)!=null?h:"un-",t.prefixedOnly=(d=t.prefixedOnly)!=null?d:!1,t.nonValuedAttribute=(r=t.nonValuedAttribute)!=null?r:!0,t.ignoreAttributes=(o=t.ignoreAttributes)!=null?o:T;const a=[st(t)],c=[it(t)],_=[nt];return t.strict||c.unshift(et),{name:"@unocss/preset-attributify",variants:a,extractors:c,options:t,autocomplete:{extractors:_}}},dt={key:0,"h-full":"","of-hidden":""},ft=f("div",{op50:""}," Module ",-1),mt=f("div",{"i-carbon-launch":""},null,-1),ht=f("div",{op50:""}," Matched Rules ",-1),_t=f("div",{op50:""}," CSS Size ",-1),pt=f("span",{op50:""},"gzipped",-1),xt={key:0,"row-span-3":""},yt=f("div",{op50:""}," Potentially Unmatched ",-1),vt={"h-full":"","of-hidden":""},gt=E(" Prettify "),bt=M({__name:"ModuleInfo",props:{id:null},setup(t){const a=t,{data:c}=O(W(a,"id")),_=a.id.split(/\./g).pop(),i=C(null),h=D(i,"module-scrolls");function d(){fetch(`/__open-in-editor?file=${encodeURIComponent(a.id)}`)}const{extractors:r}=ut({strict:!0}),o=U(async()=>{var s;const l=new Set;if(r){const m={code:((s=c.value)==null?void 0:s.code)||""};for(const v of r){const n=await v.extract(m);n==null||n.forEach(x=>l.add(x))}}return Array.from(l).filter(m=>!m.startsWith("[")).filter(m=>{var v;return!((v=c.value)!=null&&v.matched.includes(m))})}),e=C(!1),p=Z(j(()=>{var l;return(l=c.value)==null?void 0:l.css}),e);return(l,s)=>{const m=H,v=J,n=L,x=Q;return u(c)?(k(),R("div",dt,[g(v,{ref_key:"status",ref:i,grid:"~ cols-3 gap-4"},{default:A(()=>{var y;return[f("div",null,[ft,f("a",{"cursor-pointer":"",op80:"","hover:op100":"",onClick:d},[g(m,{id:u(c).id,"mr-1":""},null,8,["id"]),mt])]),f("div",null,[ht,E(" "+S(u(c).matched.length),1)]),f("div",null,[_t,E(" "+S(((((y=u(c))==null?void 0:y.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),pt]),u(o).length?(k(),R("div",xt,[yt,f("code",null,S(u(o).join(", ")),1)])):w("",!0)]}),_:1},512),f("div",vt,[g(u(K),null,{default:A(()=>[g(u(N),{size:"50"},{default:A(()=>[g(n,{"h-full":"","model-value":u(c).code,"read-only":!0,mode:u(_),matched:u(c).matched,class:"scrolls module-scrolls",style:P(u(h))},null,8,["model-value","mode","matched","style"])]),_:1}),g(u(N),{size:"50"},{default:A(()=>[f("div",null,[g(x,{border:"l b gray-400/20",title:"Output CSS"},{default:A(()=>[f("label",null,[q(f("input",{"onUpdate:modelValue":s[0]||(s[0]=y=>e.value=y),type:"checkbox"},null,512),[[G,e.value]]),gt])]),_:1}),g(n,{"h-full":"",b:"l main","model-value":u(p),"read-only":!0,mode:"css",class:"scrolls module-scrolls",style:P(u(h))},null,8,["model-value","style"])])]),_:1})]),_:1})])])):w("",!0)}}}),$t=M({__name:"[id]",setup(t){const a=Y();return(c,_)=>{const i=bt;return k(),X(i,{id:u(a).params.id},null,8,["id"])}}});export{$t as default};
|
|
@@ -275,7 +275,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
275
275
|
`),cooked:D===null?null:D.slice(1,At)},pe.tail=Ze,this.next(),this.finishNode(pe,"TemplateElement"),this.resetEndLocation(pe,pn(this.state.lastTokEndLoc,At)),pe}parseTemplate(n){let t=this.startNode();t.expressions=[];let u=this.parseTemplateElement(n);for(t.quasis=[u];!u.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(u=this.parseTemplateElement(n));return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(n,t,u,p){u&&this.expectPlugin("recordAndTuple");let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let z=Object.create(null),pe=!0,Ze=this.startNode();for(Ze.properties=[],this.next();!this.match(n);){if(pe)pe=!1;else if(this.expect(12),this.match(n)){this.addTrailingCommaExtraToNode(Ze);break}let ar;t?ar=this.parseBindingProperty():(ar=this.parsePropertyDefinition(p),this.checkProto(ar,u,z,p)),u&&!this.isObjectProperty(ar)&&ar.type!=="SpreadElement"&&this.raise(dt.InvalidRecordProperty,{at:ar}),ar.shorthand&&this.addExtra(ar,"shorthand",!0),Ze.properties.push(ar)}this.next(),this.state.inFSharpPipelineDirectBody=D;let At="ObjectExpression";return t?At="ObjectPattern":u&&(At="RecordExpression"),this.finishNode(Ze,At)}addTrailingCommaExtraToNode(n){this.addExtra(n,"trailingComma",this.state.lastTokStart),this.addExtra(n,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(n){return!n.computed&&n.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(n){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(dt.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)t.push(this.parseDecorator());let u=this.startNode(),p=!1,D=!1,z,pe;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(u.decorators=t,t=[]),u.method=!1,n&&(z=this.state.start,pe=this.state.startLoc);let Ze=this.eat(55);this.parsePropertyNamePrefixOperator(u);let At=this.state.containsEsc,ar=this.parsePropertyName(u,n);if(!Ze&&!At&&this.maybeAsyncOrAccessorProp(u)){let m=ar.name;m==="async"&&!this.hasPrecedingLineBreak()&&(p=!0,this.resetPreviousNodeTrailingComments(ar),Ze=this.eat(55),this.parsePropertyName(u)),(m==="get"||m==="set")&&(D=!0,this.resetPreviousNodeTrailingComments(ar),u.kind=m,this.match(55)&&(Ze=!0,this.raise(dt.AccessorIsGenerator,{at:this.state.curPosition(),kind:m}),this.next()),this.parsePropertyName(u))}return this.parseObjPropValue(u,z,pe,Ze,p,!1,D,n),u}getGetterSetterExpectedParamCount(n){return n.kind==="get"?0:1}getObjectOrClassMethodParams(n){return n.params}checkGetterSetterParams(n){var t;let u=this.getGetterSetterExpectedParamCount(n),p=this.getObjectOrClassMethodParams(n);p.length!==u&&this.raise(n.kind==="get"?dt.BadGetterArity:dt.BadSetterArity,{at:n}),n.kind==="set"&&((t=p[p.length-1])==null?void 0:t.type)==="RestElement"&&this.raise(dt.BadSetterRestParameter,{at:n})}parseObjectMethod(n,t,u,p,D){if(D)return this.parseMethod(n,t,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(n),n;if(u||t||this.match(10))return p&&this.unexpected(),n.kind="method",n.method=!0,this.parseMethod(n,t,u,!1,!1,"ObjectMethod")}parseObjectProperty(n,t,u,p,D){if(n.shorthand=!1,this.eat(14))return n.value=p?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(D),this.finishNode(n,"ObjectProperty");if(!n.computed&&n.key.type==="Identifier"){if(this.checkReservedWord(n.key.name,n.key.loc.start,!0,!1),p)n.value=this.parseMaybeDefault(t,u,Y(n.key));else if(this.match(29)){let z=this.state.startLoc;D!=null?D.shorthandAssignLoc===null&&(D.shorthandAssignLoc=z):this.raise(dt.InvalidCoverInitializedName,{at:z}),n.value=this.parseMaybeDefault(t,u,Y(n.key))}else n.value=Y(n.key);return n.shorthand=!0,this.finishNode(n,"ObjectProperty")}}parseObjPropValue(n,t,u,p,D,z,pe,Ze){let At=this.parseObjectMethod(n,p,D,z,pe)||this.parseObjectProperty(n,t,u,z,Ze);return At||this.unexpected(),At}parsePropertyName(n,t){if(this.eat(0))n.computed=!0,n.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:u,value:p}=this.state,D;if(ps(u))D=this.parseIdentifier(!0);else switch(u){case 130:D=this.parseNumericLiteral(p);break;case 129:D=this.parseStringLiteral(p);break;case 131:D=this.parseBigIntLiteral(p);break;case 132:D=this.parseDecimalLiteral(p);break;case 134:{let z=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=z):this.raise(dt.UnexpectedPrivateField,{at:z}),D=this.parsePrivateName();break}default:throw this.unexpected()}n.key=D,u!==134&&(n.computed=!1)}return n.key}initFunction(n,t){n.id=null,n.generator=!1,n.async=!!t}parseMethod(n,t,u,p,D,z){let pe=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(n,u),n.generator=!!t;let Ze=p;return this.scope.enter(no|Mo|(pe?Eo:0)|(D?ru:0)),this.prodParam.enter(Po(u,n.generator)),this.parseFunctionParams(n,Ze),this.parseFunctionBodyAndFinish(n,z,!0),this.prodParam.exit(),this.scope.exit(),n}parseArrayLike(n,t,u,p){u&&this.expectPlugin("recordAndTuple");let D=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let z=this.startNode();return this.next(),z.elements=this.parseExprList(n,!u,p,z),this.state.inFSharpPipelineDirectBody=D,this.finishNode(z,u?"TupleExpression":"ArrayExpression")}parseArrowExpression(n,t,u,p){this.scope.enter(no|yo);let D=Po(u,!1);!this.match(5)&&this.prodParam.hasIn&&(D|=qo),this.prodParam.enter(D),this.initFunction(n,u);let z=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(n,t,p)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(n,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=z,this.finishNode(n,"ArrowFunctionExpression")}setArrowFunctionParameters(n,t,u){this.toAssignableList(t,u,!1),n.params=t}parseFunctionBodyAndFinish(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parseFunctionBody(n,!1,u),this.finishNode(n,t)}parseFunctionBody(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=t&&!this.match(5);if(this.expressionScope.enter(Qa()),p)n.body=this.parseMaybeAssign(),this.checkParams(n,!1,t,!1);else{let D=this.state.strict,z=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|dl),n.body=this.parseBlock(!0,!1,pe=>{let Ze=!this.isSimpleParamList(n.params);pe&&Ze&&this.raise(dt.IllegalLanguageModeDirective,{at:(n.kind==="method"||n.kind==="constructor")&&!!n.key?n.key.loc.end:n});let At=!D&&this.state.strict;this.checkParams(n,!this.state.strict&&!t&&!u&&!Ze,t,At),this.state.strict&&n.id&&this.checkIdentifier(n.id,ou,At)}),this.prodParam.exit(),this.state.labels=z}this.expressionScope.exit()}isSimpleParameter(n){return n.type==="Identifier"}isSimpleParamList(n){for(let t=0,u=n.length;t<u;t++)if(!this.isSimpleParameter(n[t]))return!1;return!0}checkParams(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,D=!t&&new Set,z={type:"FormalParameters"};for(let pe of n.params)this.checkLVal(pe,{in:z,binding:ao,checkClashes:D,strictModeChanged:p})}parseExprList(n,t,u,p){let D=[],z=!0;for(;!this.eat(n);){if(z)z=!1;else if(this.expect(12),this.match(n)){p&&this.addTrailingCommaExtraToNode(p),this.next();break}D.push(this.parseExprListItem(t,u))}return D}parseExprListItem(n,t,u){let p;if(this.match(12))n||this.raise(dt.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),p=null;else if(this.match(21)){let D=this.state.start,z=this.state.startLoc;p=this.parseParenItem(this.parseSpread(t),D,z)}else if(this.match(17)){this.expectPlugin("partialApplication"),u||this.raise(dt.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let D=this.startNode();this.next(),p=this.finishNode(D,"ArgumentPlaceholder")}else p=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return p}parseIdentifier(n){let t=this.startNode(),u=this.parseIdentifierName(t.start,n);return this.createIdentifier(t,u)}createIdentifier(n,t){return n.name=t,n.loc.identifierName=t,this.finishNode(n,"Identifier")}parseIdentifierName(n,t){let u,{startLoc:p,type:D}=this.state;if(ps(D))u=this.state.value;else throw this.unexpected();let z=Ui(D);return t?z&&this.replaceToken(128):this.checkReservedWord(u,p,z,!1),this.next(),u}checkReservedWord(n,t,u,p){if(!(n.length>10||!za(n))){if(n==="yield"){if(this.prodParam.hasYield){this.raise(dt.YieldBindingIdentifier,{at:t});return}}else if(n==="await"){if(this.prodParam.hasAwait){this.raise(dt.AwaitBindingIdentifier,{at:t});return}if(this.scope.inStaticBlock){this.raise(dt.AwaitBindingIdentifierInStaticBlock,{at:t});return}this.expressionScope.recordAsyncArrowParametersError({at:t})}else if(n==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(dt.ArgumentsInClass,{at:t});return}if(u&&ga(n)){this.raise(dt.UnexpectedKeyword,{at:t,keyword:n});return}(this.state.strict?p?ma:tu:eu)(n,this.inModule)&&this.raise(dt.UnexpectedReservedWord,{at:t,reservedWord:n})}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(n,t){let u=this.startNodeAt(n,t);return this.expressionScope.recordParameterInitializerError(dt.AwaitExpressionFormalParameter,{at:u}),this.eat(55)&&this.raise(dt.ObsoleteAwaitStar,{at:u}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(u.argument=this.parseMaybeUnary(null,!0)),this.finishNode(u,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:n}=this.state;return n===53||n===10||n===0||ws(n)||n===133||n===56||this.hasPlugin("v8intrinsic")&&n===54}parseYield(){let n=this.startNode();this.expressionScope.recordParameterInitializerError(dt.YieldInParameter,{at:n}),this.next();let t=!1,u=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:u=this.parseMaybeAssign()}return n.delegate=t,n.argument=u,this.finishNode(n,"YieldExpression")}checkPipelineAtInfixOperator(n,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&n.type==="SequenceExpression"&&this.raise(dt.PipelineHeadSequenceExpression,{at:t})}parseSmartPipelineBodyInStyle(n,t,u){let p=this.startNodeAt(t,u);return this.isSimpleReference(n)?(p.callee=n,this.finishNode(p,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(u),p.expression=n,this.finishNode(p,"PipelineTopicExpression"))}isSimpleReference(n){switch(n.type){case"MemberExpression":return!n.computed&&this.isSimpleReference(n.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(n){if(this.match(19))throw this.raise(dt.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(dt.PipelineTopicUnused,{at:n})}withTopicBindingContext(n){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return n()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(n){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return n()}finally{this.state.topicContext=t}}else return n()}withSoloAwaitPermittingContext(n){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return n()}finally{this.state.soloAwait=t}}allowInAnd(n){let t=this.prodParam.currentFlags();if(qo&~t){this.prodParam.enter(t|qo);try{return n()}finally{this.prodParam.exit()}}return n()}disallowInAnd(n){let t=this.prodParam.currentFlags();if(qo&t){this.prodParam.enter(t&~qo);try{return n()}finally{this.prodParam.exit()}}return n()}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(n){let t=this.state.start,u=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let p=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let D=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,u,n);return this.state.inFSharpPipelineDirectBody=p,D}parseModuleExpression(){this.expectPlugin("moduleBlocks");let n=this.startNode();this.next(),this.eat(5);let t=this.initializeScopes(!0);this.enterInitialScopes();let u=this.startNode();try{n.body=this.parseProgram(u,8,"module")}finally{t()}return this.eat(8),this.finishNode(n,"ModuleExpression")}parsePropertyNamePrefixOperator(n){}},ra={kind:"loop"},na={kind:"switch"},Os=0,Aa=1,va=2,Qs=4,La=/[\uD800-\uDFFF]/u,ia=/in(?:stanceof)?/y;function Zs(n,t){for(let u=0;u<n.length;u++){let p=n[u],{type:D}=p;if(typeof D=="number"){{if(D===134){let{loc:z,start:pe,value:Ze,end:At}=p,ar=pe+1,m=pn(z.start,1);n.splice(u,1,new So({type:Ts(27),value:"#",start:pe,end:ar,startLoc:z.start,endLoc:m}),new So({type:Ts(128),value:Ze,start:ar,end:At,startLoc:m,endLoc:z.end})),u++;continue}if(ws(D)){let{loc:z,start:pe,value:Ze,end:At}=p,ar=pe+1,m=pn(z.start,1),E;t.charCodeAt(pe)===96?E=new So({type:Ts(22),value:"`",start:pe,end:ar,startLoc:z.start,endLoc:m}):E=new So({type:Ts(8),value:"}",start:pe,end:ar,startLoc:z.start,endLoc:m});let g,A,C,y;D===24?(A=At-1,C=pn(z.end,-1),g=Ze===null?null:Ze.slice(1,-1),y=new So({type:Ts(22),value:"`",start:A,end:At,startLoc:C,endLoc:z.end})):(A=At-2,C=pn(z.end,-2),g=Ze===null?null:Ze.slice(1,-2),y=new So({type:Ts(23),value:"${",start:A,end:At,startLoc:C,endLoc:z.end})),n.splice(u,1,E,new So({type:Ts(20),value:g,start:ar,end:A,startLoc:m,endLoc:C}),y),u+=2;continue}}p.type=Ts(D)}}return n}var sa=class extends Xn{parseTopLevel(n,t){return n.program=this.parseProgram(t),n.comments=this.state.comments,this.options.tokens&&(n.tokens=Zs(this.tokens,this.input)),this.finishNode(n,"File")}parseProgram(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:135,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(n.sourceType=u,n.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(n,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[p,D]of Array.from(this.scope.undefinedExports))this.raise(dt.ModuleExportUndefined,{at:D,localName:p});return this.finishNode(n,"Program")}stmtToDirective(n){let t=n;t.type="Directive",t.value=t.expression,delete t.expression;let u=t.value,p=u.value,D=this.input.slice(u.start,u.end),z=u.value=D.slice(1,-1);return this.addExtra(u,"raw",D),this.addExtra(u,"rawValue",z),this.addExtra(u,"expressionValue",p),u.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let n=this.startNode();return n.value=this.state.value,this.next(),this.finishNode(n,"InterpreterDirective")}isLet(n){return this.isContextual(99)?this.isLetKeyword(n):!1}isLetKeyword(n){let t=this.nextTokenStart(),u=this.codePointAtPos(t);if(u===92||u===91)return!0;if(n)return!1;if(u===123)return!0;if(Ss(u)){if(ia.lastIndex=t,ia.test(this.input)){let p=this.codePointAtPos(ia.lastIndex);if(!Ks(p)&&p!==92)return!1}return!0}return!1}parseStatement(n,t){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(n,t)}parseStatementContent(n,t){let u=this.state.type,p=this.startNode(),D;switch(this.isLet(n)&&(u=74,D="let"),u){case 60:return this.parseBreakContinueStatement(p,!0);case 63:return this.parseBreakContinueStatement(p,!1);case 64:return this.parseDebuggerStatement(p);case 90:return this.parseDoStatement(p);case 91:return this.parseForStatement(p);case 68:if(this.lookaheadCharCode()===46)break;return n&&(this.state.strict?this.raise(dt.StrictFunction,{at:this.state.startLoc}):n!=="if"&&n!=="label"&&this.raise(dt.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(p,!1,!n);case 80:return n&&this.unexpected(),this.parseClass(p,!0);case 69:return this.parseIfStatement(p);case 70:return this.parseReturnStatement(p);case 71:return this.parseSwitchStatement(p);case 72:return this.parseThrowStatement(p);case 73:return this.parseTryStatement(p);case 75:case 74:return D=D||this.state.value,n&&D!=="var"&&this.raise(dt.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(p,D);case 92:return this.parseWhileStatement(p);case 76:return this.parseWithStatement(p);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(p);case 83:{let Ze=this.lookaheadCharCode();if(Ze===40||Ze===46)break}case 82:{!this.options.allowImportExportEverywhere&&!t&&this.raise(dt.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let Ze;return u===83?(Ze=this.parseImport(p),Ze.type==="ImportDeclaration"&&(!Ze.importKind||Ze.importKind==="value")&&(this.sawUnambiguousESM=!0)):(Ze=this.parseExport(p),(Ze.type==="ExportNamedDeclaration"&&(!Ze.exportKind||Ze.exportKind==="value")||Ze.type==="ExportAllDeclaration"&&(!Ze.exportKind||Ze.exportKind==="value")||Ze.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(p),Ze}default:if(this.isAsyncFunction())return n&&this.raise(dt.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(p,!0,!n)}let z=this.state.value,pe=this.parseExpression();return Ln(u)&&pe.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(p,z,pe,n):this.parseExpressionStatement(p,pe)}assertModuleNodeAllowed(n){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(dt.ImportOutsideModule,{at:n})}takeDecorators(n){let t=this.state.decoratorStack[this.state.decoratorStack.length-1];t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(n){let t=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let u=this.parseDecorator();t.push(u)}if(this.match(82))n||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(dt.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(dt.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let n=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let t=this.state.start,u=this.state.startLoc,p;if(this.match(10)){let D=this.state.start,z=this.state.startLoc;this.next(),p=this.parseExpression(),this.expect(11),p=this.wrapParenthesis(D,z,p)}else for(p=this.parseIdentifier(!1);this.eat(16);){let D=this.startNodeAt(t,u);D.object=p,D.property=this.parseIdentifier(!0),D.computed=!1,p=this.finishNode(D,"MemberExpression")}n.expression=this.parseMaybeDecoratorArguments(p),this.state.decoratorStack.pop()}else n.expression=this.parseExprSubscripts();return this.finishNode(n,"Decorator")}parseMaybeDecoratorArguments(n){if(this.eat(10)){let t=this.startNodeAtNode(n);return t.callee=n,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return n}parseBreakContinueStatement(n,t){return this.next(),this.isLineTerminator()?n.label=null:(n.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(n,t),this.finishNode(n,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(n,t){let u;for(u=0;u<this.state.labels.length;++u){let p=this.state.labels[u];if((n.label==null||p.name===n.label.name)&&(p.kind!=null&&(t||p.kind==="loop")||n.label&&t))break}if(u===this.state.labels.length){let p=t?"BreakStatement":"ContinueStatement";this.raise(dt.IllegalBreakContinue,{at:n,type:p})}}parseDebuggerStatement(n){return this.next(),this.semicolon(),this.finishNode(n,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let n=this.parseExpression();return this.expect(11),n}parseDoStatement(n){return this.next(),this.state.labels.push(ra),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),n.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(n,"DoWhileStatement")}parseForStatement(n){this.next(),this.state.labels.push(ra);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(Co),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(n,null);let u=this.isContextual(99),p=u&&this.isLetKeyword();if(this.match(74)||this.match(75)||p){let At=this.startNode(),ar=p?"let":this.state.value;return this.next(),this.parseVar(At,!0,ar),this.finishNode(At,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&At.declarations.length===1?this.parseForIn(n,At,t):(t!==null&&this.unexpected(t),this.parseFor(n,At))}let D=this.isContextual(95),z=new lu,pe=this.parseExpression(!0,z),Ze=this.isContextual(101);if(Ze&&(u&&this.raise(dt.ForOfLet,{at:pe}),t===null&&D&&pe.type==="Identifier"&&this.raise(dt.ForOfAsync,{at:pe})),Ze||this.match(58)){this.checkDestructuringPrivate(z),this.toAssignable(pe,!0);let At=Ze?"ForOfStatement":"ForInStatement";return this.checkLVal(pe,{in:{type:At}}),this.parseForIn(n,pe,t)}else this.checkExpressionErrors(z,!0);return t!==null&&this.unexpected(t),this.parseFor(n,pe)}parseFunctionStatement(n,t,u){return this.next(),this.parseFunction(n,Aa|(u?0:va),t)}parseIfStatement(n){return this.next(),n.test=this.parseHeaderExpression(),n.consequent=this.parseStatement("if"),n.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(n,"IfStatement")}parseReturnStatement(n){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(dt.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,"ReturnStatement")}parseSwitchStatement(n){this.next(),n.discriminant=this.parseHeaderExpression();let t=n.cases=[];this.expect(5),this.state.labels.push(na),this.scope.enter(Co);let u;for(let p;!this.match(8);)if(this.match(61)||this.match(65)){let D=this.match(61);u&&this.finishNode(u,"SwitchCase"),t.push(u=this.startNode()),u.consequent=[],this.next(),D?u.test=this.parseExpression():(p&&this.raise(dt.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),p=!0,u.test=null),this.expect(14)}else u?u.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),u&&this.finishNode(u,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(n,"SwitchStatement")}parseThrowStatement(n){return this.next(),this.hasPrecedingLineBreak()&&this.raise(dt.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,"ThrowStatement")}parseCatchClauseParam(){let n=this.parseBindingAtom(),t=n.type==="Identifier";return this.scope.enter(t?Ru:0),this.checkLVal(n,{in:{type:"CatchClause"},binding:so,allowingSloppyLetBinding:!0}),n}parseTryStatement(n){if(this.next(),n.block=this.parseBlock(),n.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(Co)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),n.handler=this.finishNode(t,"CatchClause")}return n.finalizer=this.eat(67)?this.parseBlock():null,!n.handler&&!n.finalizer&&this.raise(dt.NoCatchOrFinally,{at:n}),this.finishNode(n,"TryStatement")}parseVarStatement(n,t){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(n,!1,t,u),this.semicolon(),this.finishNode(n,"VariableDeclaration")}parseWhileStatement(n){return this.next(),n.test=this.parseHeaderExpression(),this.state.labels.push(ra),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(n,"WhileStatement")}parseWithStatement(n){return this.state.strict&&this.raise(dt.StrictWith,{at:this.state.startLoc}),this.next(),n.object=this.parseHeaderExpression(),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(n,"WithStatement")}parseEmptyStatement(n){return this.next(),this.finishNode(n,"EmptyStatement")}parseLabeledStatement(n,t,u,p){for(let z of this.state.labels)z.name===t&&this.raise(dt.LabelRedeclaration,{at:u,labelName:t});let D=Ke(this.state.type)?"loop":this.match(71)?"switch":null;for(let z=this.state.labels.length-1;z>=0;z--){let pe=this.state.labels[z];if(pe.statementStart===n.start)pe.statementStart=this.state.start,pe.kind=D;else break}return this.state.labels.push({name:t,kind:D,statementStart:this.state.start}),n.body=this.parseStatement(p?p.indexOf("label")===-1?p+"label":p:"label"),this.state.labels.pop(),n.label=u,this.finishNode(n,"LabeledStatement")}parseExpressionStatement(n,t){return n.expression=t,this.semicolon(),this.finishNode(n,"ExpressionStatement")}parseBlock(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2?arguments[2]:void 0,p=this.startNode();return n&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(Co),this.parseBlockBody(p,n,!1,8,u),t&&this.scope.exit(),this.finishNode(p,"BlockStatement")}isValidDirective(n){return n.type==="ExpressionStatement"&&n.expression.type==="StringLiteral"&&!n.expression.extra.parenthesized}parseBlockBody(n,t,u,p,D){let z=n.body=[],pe=n.directives=[];this.parseBlockOrModuleBlockBody(z,t?pe:void 0,u,p,D)}parseBlockOrModuleBlockBody(n,t,u,p,D){let z=this.state.strict,pe=!1,Ze=!1;for(;!this.match(p);){let At=this.parseStatement(null,u);if(t&&!Ze){if(this.isValidDirective(At)){let ar=this.stmtToDirective(At);t.push(ar),!pe&&ar.value.value==="use strict"&&(pe=!0,this.setStrict(!0));continue}Ze=!0,this.state.strictErrors.clear()}n.push(At)}D&&D.call(this,pe),z||this.setStrict(!1),this.next()}parseFor(n,t){return n.init=t,this.semicolon(!1),n.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),n.update=this.match(11)?null:this.parseExpression(),this.expect(11),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(n,"ForStatement")}parseForIn(n,t,u){let p=this.match(58);return this.next(),p?u!==null&&this.unexpected(u):n.await=u!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!p||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(dt.ForInOfLoopInitializer,{at:t,type:p?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(dt.InvalidLhs,{at:t,ancestor:{type:"ForStatement"}}),n.left=t,n.right=p?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),n.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(n,p?"ForInStatement":"ForOfStatement")}parseVar(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,D=n.declarations=[];for(n.kind=u;;){let z=this.startNode();if(this.parseVarId(z,u),z.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,z.init===null&&!p&&(z.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(101)))?this.raise(dt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):u==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(dt.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),D.push(this.finishNode(z,"VariableDeclarator")),!this.eat(12))break}return n}parseVarId(n,t){n.id=this.parseBindingAtom(),this.checkLVal(n.id,{in:{type:"VariableDeclarator"},binding:t==="var"?ao:so})}parseFunction(n){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Os,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=t&Aa,D=t&va,z=!!p&&!(t&Qs);this.initFunction(n,u),this.match(55)&&D&&this.raise(dt.GeneratorInSingleStatementContext,{at:this.state.startLoc}),n.generator=this.eat(55),p&&(n.id=this.parseFunctionId(z));let pe=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(no),this.prodParam.enter(Po(u,n.generator)),p||(n.id=this.parseFunctionId()),this.parseFunctionParams(n,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(n,p?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),p&&!D&&this.registerFunctionStatementId(n),this.state.maybeInArrowParameters=pe,n}parseFunctionId(n){return n||Ln(this.state.type)?this.parseIdentifier():null}parseFunctionParams(n,t){this.expect(10),this.expressionScope.enter(Tl()),n.params=this.parseBindingList(11,41,!1,t),this.expressionScope.exit()}registerFunctionStatementId(n){!n.id||this.scope.declareName(n.id.name,this.state.strict||n.generator||n.async?this.scope.treatFunctionsAsVar?ao:so:wu,n.id.loc.start)}parseClass(n,t,u){this.next(),this.takeDecorators(n);let p=this.state.strict;return this.state.strict=!0,this.parseClassId(n,t,u),this.parseClassSuper(n),n.body=this.parseClassBody(!!n.superClass,p),this.finishNode(n,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(n){return!n.computed&&!n.static&&(n.key.name==="constructor"||n.key.value==="constructor")}parseClassBody(n,t){this.classScope.enter();let u={hadConstructor:!1,hadSuperClass:n},p=[],D=this.startNode();if(D.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(p.length>0)throw this.raise(dt.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){p.push(this.parseDecorator());continue}let z=this.startNode();p.length&&(z.decorators=p,this.resetStartLocationFromNode(z,p[0]),p=[]),this.parseClassMember(D,z,u),z.kind==="constructor"&&z.decorators&&z.decorators.length>0&&this.raise(dt.DecoratorConstructor,{at:z})}}),this.state.strict=t,this.next(),p.length)throw this.raise(dt.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(D,"ClassBody")}parseClassMemberFromModifier(n,t){let u=this.parseIdentifier(!0);if(this.isClassMethod()){let p=t;return p.kind="method",p.computed=!1,p.key=u,p.static=!1,this.pushClassMethod(n,p,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let p=t;return p.computed=!1,p.key=u,p.static=!1,n.body.push(this.parseClassProperty(p)),!0}return this.resetPreviousNodeTrailingComments(u),!1}parseClassMember(n,t,u){let p=this.isContextual(104);if(p){if(this.parseClassMemberFromModifier(n,t))return;if(this.eat(5)){this.parseClassStaticBlock(n,t);return}}this.parseClassMemberWithIsStatic(n,t,u,p)}parseClassMemberWithIsStatic(n,t,u,p){let D=t,z=t,pe=t,Ze=t,At=t,ar=D,m=D;if(t.static=p,this.parsePropertyNamePrefixOperator(t),this.eat(55)){ar.kind="method";let y=this.match(134);if(this.parseClassElementName(ar),y){this.pushClassPrivateMethod(n,z,!0,!1);return}this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsGenerator,{at:D.key}),this.pushClassMethod(n,D,!0,!1,!1,!1);return}let E=Ln(this.state.type)&&!this.state.containsEsc,g=this.match(134),A=this.parseClassElementName(t),C=this.state.startLoc;if(this.parsePostMemberNameModifiers(m),this.isClassMethod()){if(ar.kind="method",g){this.pushClassPrivateMethod(n,z,!1,!1);return}let y=this.isNonstaticConstructor(D),x=!1;y&&(D.kind="constructor",u.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(dt.DuplicateConstructor,{at:A}),y&&this.hasPlugin("typescript")&&t.override&&this.raise(dt.OverrideOnConstructor,{at:A}),u.hadConstructor=!0,x=u.hadSuperClass),this.pushClassMethod(n,D,!1,!1,y,x)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(n,Ze):this.pushClassProperty(n,pe);else if(E&&A.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(A);let y=this.eat(55);m.optional&&this.unexpected(C),ar.kind="method";let x=this.match(134);this.parseClassElementName(ar),this.parsePostMemberNameModifiers(m),x?this.pushClassPrivateMethod(n,z,y,!0):(this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsAsync,{at:D.key}),this.pushClassMethod(n,D,y,!0,!1,!1))}else if(E&&(A.name==="get"||A.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(A),ar.kind=A.name;let y=this.match(134);this.parseClassElementName(D),y?this.pushClassPrivateMethod(n,z,!1,!1):(this.isNonstaticConstructor(D)&&this.raise(dt.ConstructorIsAccessor,{at:D.key}),this.pushClassMethod(n,D,!1,!1,!1,!1)),this.checkGetterSetterParams(D)}else if(E&&A.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(A);let y=this.match(134);this.parseClassElementName(pe),this.pushClassAccessorProperty(n,At,y)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(n,Ze):this.pushClassProperty(n,pe):this.unexpected()}parseClassElementName(n){let{type:t,value:u}=this.state;if((t===128||t===129)&&n.static&&u==="prototype"&&this.raise(dt.StaticPrototype,{at:this.state.startLoc}),t===134){u==="constructor"&&this.raise(dt.ConstructorClassPrivateField,{at:this.state.startLoc});let p=this.parsePrivateName();return n.key=p,p}return this.parsePropertyName(n)}parseClassStaticBlock(n,t){var u;this.scope.enter(Eo|nu|Mo);let p=this.state.labels;this.state.labels=[],this.prodParam.enter(uu);let D=t.body=[];this.parseBlockOrModuleBlockBody(D,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=p,n.body.push(this.finishNode(t,"StaticBlock")),(u=t.decorators)!=null&&u.length&&this.raise(dt.DecoratorStaticBlock,{at:t})}pushClassProperty(n,t){!t.computed&&(t.key.name==="constructor"||t.key.value==="constructor")&&this.raise(dt.ConstructorClassField,{at:t.key}),n.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(n,t){let u=this.parseClassPrivateProperty(t);n.body.push(u),this.classScope.declarePrivateName(this.getPrivateNameSV(u.key),Su,u.key.loc.start)}pushClassAccessorProperty(n,t,u){if(!u&&!t.computed){let D=t.key;(D.name==="constructor"||D.value==="constructor")&&this.raise(dt.ConstructorClassField,{at:D})}let p=this.parseClassAccessorProperty(t);n.body.push(p),u&&this.classScope.declarePrivateName(this.getPrivateNameSV(p.key),Su,p.key.loc.start)}pushClassMethod(n,t,u,p,D,z){n.body.push(this.parseMethod(t,u,p,D,z,"ClassMethod",!0))}pushClassPrivateMethod(n,t,u,p){let D=this.parseMethod(t,u,p,!1,!1,"ClassPrivateMethod",!0);n.body.push(D);let z=D.kind==="get"?D.static?Hu:jl:D.kind==="set"?D.static?bl:tc:Su;this.declareClassPrivateMethodInScope(D,z)}declareClassPrivateMethodInScope(n,t){this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),t,n.key.loc.start)}parsePostMemberNameModifiers(n){}parseClassPrivateProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassPrivateProperty")}parseClassProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassProperty")}parseClassAccessorProperty(n){return this.parseInitializer(n),this.semicolon(),this.finishNode(n,"ClassAccessorProperty")}parseInitializer(n){this.scope.enter(Eo|Mo),this.expressionScope.enter(Qa()),this.prodParam.enter(uu),n.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(n,t,u){let p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:wo;if(Ln(this.state.type))n.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(n.id,p);else if(u||!t)n.id=null;else throw this.raise(dt.MissingClassName,{at:this.state.startLoc})}parseClassSuper(n){n.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(n){let t=this.maybeParseExportDefaultSpecifier(n),u=!t||this.eat(12),p=u&&this.eatExportStar(n),D=p&&this.maybeParseExportNamespaceSpecifier(n),z=u&&(!D||this.eat(12)),pe=t||p;if(p&&!D)return t&&this.unexpected(),this.parseExportFrom(n,!0),this.finishNode(n,"ExportAllDeclaration");let Ze=this.maybeParseExportNamedSpecifiers(n);if(t&&u&&!p&&!Ze||D&&z&&!Ze)throw this.unexpected(null,5);let At;if(pe||Ze?(At=!1,this.parseExportFrom(n,pe)):At=this.maybeParseExportDeclaration(n),pe||Ze||At)return this.checkExport(n,!0,!1,!!n.source),this.finishNode(n,"ExportNamedDeclaration");if(this.eat(65))return n.declaration=this.parseExportDefaultExpression(),this.checkExport(n,!0,!0),this.finishNode(n,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(n){return this.eat(55)}maybeParseExportDefaultSpecifier(n){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let t=this.startNode();return t.exported=this.parseIdentifier(!0),n.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(n){if(this.isContextual(93)){n.specifiers||(n.specifiers=[]);let t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),n.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(n){if(this.match(5)){n.specifiers||(n.specifiers=[]);let t=n.exportKind==="type";return n.specifiers.push(...this.parseExportSpecifiers(t)),n.source=null,n.declaration=null,this.hasPlugin("importAssertions")&&(n.assertions=[]),!0}return!1}maybeParseExportDeclaration(n){return this.shouldParseExportDeclaration()?(n.specifiers=[],n.source=null,this.hasPlugin("importAssertions")&&(n.assertions=[]),n.declaration=this.parseExportDeclaration(n),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let n=this.nextTokenStart();return!$u.test(this.input.slice(this.state.pos,n))&&this.isUnparsedContextual(n,"function")}parseExportDefaultExpression(){let n=this.startNode(),t=this.isAsyncFunction();if(this.match(68)||t)return this.next(),t&&this.next(),this.parseFunction(n,Aa|Qs,t);if(this.match(80))return this.parseClass(n,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(dt.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(n,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(dt.UnsupportedDefaultExport,{at:this.state.startLoc});let u=this.parseMaybeAssignAllowIn();return this.semicolon(),u}parseExportDeclaration(n){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:n}=this.state;if(Ln(n)){if(n===95&&!this.state.containsEsc||n===99)return!1;if((n===126||n===125)&&!this.state.containsEsc){let{type:p}=this.lookahead();if(Ln(p)&&p!==97||p===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),u=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Ln(this.state.type)&&u)return!0;if(this.match(65)&&u){let p=this.input.charCodeAt(this.nextTokenStartSince(t+4));return p===34||p===39}return!1}parseExportFrom(n,t){if(this.eatContextual(97)){n.source=this.parseImportSource(),this.checkExport(n);let u=this.maybeParseImportAssertions();u&&(n.assertions=u)}else t&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:n}=this.state;if(n===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(dt.DecoratorBeforeExport,{at:this.state.startLoc});return!0}return n===74||n===75||n===68||n===80||this.isLet()||this.isAsyncFunction()}checkExport(n,t,u,p){if(t){if(u){if(this.checkDuplicateExports(n,"default"),this.hasPlugin("exportDefaultFrom")){var D;let z=n.declaration;z.type==="Identifier"&&z.name==="from"&&z.end-z.start===4&&!((D=z.extra)!=null&&D.parenthesized)&&this.raise(dt.ExportDefaultFromAsIdentifier,{at:z})}}else if(n.specifiers&&n.specifiers.length)for(let z of n.specifiers){let{exported:pe}=z,Ze=pe.type==="Identifier"?pe.name:pe.value;if(this.checkDuplicateExports(z,Ze),!p&&z.local){let{local:At}=z;At.type!=="Identifier"?this.raise(dt.ExportBindingIsString,{at:z,localName:At.value,exportName:Ze}):(this.checkReservedWord(At.name,At.loc.start,!0,!1),this.scope.checkLocalExport(At))}}else if(n.declaration){if(n.declaration.type==="FunctionDeclaration"||n.declaration.type==="ClassDeclaration"){let z=n.declaration.id;if(!z)throw new Error("Assertion failure");this.checkDuplicateExports(n,z.name)}else if(n.declaration.type==="VariableDeclaration")for(let z of n.declaration.declarations)this.checkDeclaration(z.id)}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(dt.UnsupportedDecoratorExport,{at:n})}checkDeclaration(n){if(n.type==="Identifier")this.checkDuplicateExports(n,n.name);else if(n.type==="ObjectPattern")for(let t of n.properties)this.checkDeclaration(t);else if(n.type==="ArrayPattern")for(let t of n.elements)t&&this.checkDeclaration(t);else n.type==="ObjectProperty"?this.checkDeclaration(n.value):n.type==="RestElement"?this.checkDeclaration(n.argument):n.type==="AssignmentPattern"&&this.checkDeclaration(n.left)}checkDuplicateExports(n,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(dt.DuplicateDefaultExport,{at:n}):this.raise(dt.DuplicateExport,{at:n,exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(n){let t=[],u=!0;for(this.expect(5);!this.eat(8);){if(u)u=!1;else if(this.expect(12),this.eat(8))break;let p=this.isContextual(126),D=this.match(129),z=this.startNode();z.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(z,D,n,p))}return t}parseExportSpecifier(n,t,u,p){return this.eatContextual(93)?n.exported=this.parseModuleExportName():t?n.exported=oe(n.local):n.exported||(n.exported=Y(n.local)),this.finishNode(n,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let n=this.parseStringLiteral(this.state.value),t=n.value.match(La);return t&&this.raise(dt.ModuleExportNameHasLoneSurrogate,{at:n,surrogateCharCode:t[0].charCodeAt(0)}),n}return this.parseIdentifier(!0)}parseImport(n){if(n.specifiers=[],!this.match(129)){let u=!this.maybeParseDefaultImportSpecifier(n)||this.eat(12),p=u&&this.maybeParseStarImportSpecifier(n);u&&!p&&this.parseNamedImportSpecifiers(n),this.expectContextual(97)}n.source=this.parseImportSource();let t=this.maybeParseImportAssertions();if(t)n.assertions=t;else{let u=this.maybeParseModuleAttributes();u&&(n.attributes=u)}return this.semicolon(),this.finishNode(n,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(n){return Ln(this.state.type)}parseImportSpecifierLocal(n,t,u){t.local=this.parseIdentifier(),n.specifiers.push(this.finishImportSpecifier(t,u))}finishImportSpecifier(n,t){return this.checkLVal(n.local,{in:n,binding:so}),this.finishNode(n,t)}parseAssertEntries(){let n=[],t=new Set;do{if(this.match(8))break;let u=this.startNode(),p=this.state.value;if(t.has(p)&&this.raise(dt.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:p}),t.add(p),this.match(129)?u.key=this.parseStringLiteral(p):u.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(dt.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),n.push(u)}while(this.eat(12));return n}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let n=[],t=new Set;do{let u=this.startNode();if(u.key=this.parseIdentifier(!0),u.key.name!=="type"&&this.raise(dt.ModuleAttributeDifferentFromType,{at:u.key}),t.has(u.key.name)&&this.raise(dt.ModuleAttributesWithDuplicateKeys,{at:u.key,key:u.key.name}),t.add(u.key.name),this.expect(14),!this.match(129))throw this.raise(dt.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),n.push(u)}while(this.eat(12));return n}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let n=this.parseAssertEntries();return this.eat(8),n}maybeParseDefaultImportSpecifier(n){return this.shouldParseDefaultImport(n)?(this.parseImportSpecifierLocal(n,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(n){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(n,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(n){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(dt.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let u=this.startNode(),p=this.match(129),D=this.isContextual(126);u.imported=this.parseModuleExportName();let z=this.parseImportSpecifier(u,p,n.importKind==="type"||n.importKind==="typeof",D);n.specifiers.push(z)}}parseImportSpecifier(n,t,u,p){if(this.eatContextual(93))n.local=this.parseIdentifier();else{let{imported:D}=n;if(t)throw this.raise(dt.ImportBindingIsString,{at:n,importName:D.value});this.checkReservedWord(D.name,n.loc.start,!0,!0),n.local||(n.local=Y(D))}return this.finishImportSpecifier(n,"ImportSpecifier")}isThisParam(n){return n.type==="Identifier"&&n.name==="this"}},Sl=class extends sa{constructor(n,t){n=_r(n),super(n,t),this.options=n,this.initializeScopes(),this.plugins=Ju(this.options.plugins),this.filename=n.sourceFilename}getScopeHandler(){return ku}parse(){this.enterInitialScopes();let n=this.startNode(),t=this.startNode();return this.nextToken(),n.errors=null,this.parseTopLevel(n,t),n.errors=this.state.errors,n}};function Ju(n){let t=new Map;for(let u of n){let[p,D]=Array.isArray(u)?u:[u,{}];t.has(p)||t.set(p,D||{})}return t}function Nc(n,t){var u;if(((u=t)==null?void 0:u.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let p=cu(t,n),D=p.parse();if(p.sawUnambiguousESM)return D;if(p.ambiguousScriptDifferentAst)try{return t.sourceType="script",cu(t,n).parse()}catch{}else D.program.sourceType="script";return D}catch(p){try{return t.sourceType="script",cu(t,n).parse()}catch{}throw p}}else return cu(t,n).parse()}function Pu(n,t){let u=cu(t,n);return u.options.strictMode&&(u.state.strict=!0),u.getExpression()}function Fl(n){let t={};for(let u of Object.keys(n))t[u]=Ts(n[u]);return t}var $l=Fl(In);function cu(n,t){let u=Sl;return n!=null&&n.plugins&&(Fi(n.plugins),u=Bc(n.plugins)),new u(n,t)}var $o={};function Bc(n){let t=Ut.filter(D=>ts(n,D)),u=t.join("/"),p=$o[u];if(!p){p=Sl;for(let D of t)p=ki[D](p);$o[u]=p}return p}Vn.parse=Nc,Vn.parseExpression=Pu,Vn.tokTypes=$l}}),rl=Ce({"src/language-js/parse/json.js"(Vn,Cn){Dt();var xn=du(),sn=mo(),pn=fo(),ri=Jo();function ii(){let Yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:ji=!0}=Yn;return function(as){let{parseExpression:Ri}=Ga(),Es;try{Es=Ri(as,{tokens:!0,ranges:!0})}catch(da){throw ri(da)}if(!ji&&xn(Es.comments))throw Zn(Es.comments[0],"Comment");return vi(Es),Es}}function Zn(Yn,ji){let[as,Ri]=[Yn.loc.start,Yn.loc.end].map(Es=>{let{line:da,column:Ji}=Es;return{line:da,column:Ji+1}});return sn("".concat(ji," is not allowed in JSON."),{start:as,end:Ri})}function vi(Yn){switch(Yn.type){case"ArrayExpression":for(let ji of Yn.elements)ji!==null&&vi(ji);return;case"ObjectExpression":for(let ji of Yn.properties)vi(ji);return;case"ObjectProperty":if(Yn.computed)throw Zn(Yn.key,"Computed key");if(Yn.shorthand)throw Zn(Yn.key,"Shorthand property");Yn.key.type!=="Identifier"&&vi(Yn.key),vi(Yn.value);return;case"UnaryExpression":{let{operator:ji,argument:as}=Yn;if(ji!=="+"&&ji!=="-")throw Zn(Yn,"Operator '".concat(Yn.operator,"'"));if(as.type==="NumericLiteral"||as.type==="Identifier"&&(as.name==="Infinity"||as.name==="NaN"))return;throw Zn(as,"Operator '".concat(ji,"' before '").concat(as.type,"'"))}case"Identifier":if(Yn.name!=="Infinity"&&Yn.name!=="NaN"&&Yn.name!=="undefined")throw Zn(Yn,"Identifier '".concat(Yn.name,"'"));return;case"TemplateLiteral":if(xn(Yn.expressions))throw Zn(Yn.expressions[0],"'TemplateLiteral' with expression");for(let ji of Yn.quasis)vi(ji);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw Zn(Yn,"'".concat(Yn.type,"'"))}}var Wi=ii(),Zi={json:pn({parse:Wi,hasPragma(){return!0}}),json5:pn(Wi),"json-stringify":pn({parse:ii({allowComments:!1}),astFormat:"estree-json"})};Cn.exports=Zi}});Dt();var Lu=Wt(),vu=nr(),Oo=kr(),Na=fo(),nl=Jo(),Mu=Ou(),il=rl(),ju={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},sl=["recordAndTuple",{syntaxType:"hash"}],xu="v8intrinsic",Ba=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],Ws=function(Vn){let Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ju;return Object.assign(Object.assign({},Cn),{},{plugins:[...Cn.plugins,...Vn]})},fa=/@(?:no)?flow\b/;function Ta(Vn,Cn){if(Cn.filepath&&Cn.filepath.endsWith(".js.flow"))return!0;let xn=vu(Vn);xn&&(Vn=Vn.slice(xn.length));let sn=Oo(Vn,0);return sn!==!1&&(Vn=Vn.slice(0,sn)),fa.test(Vn)}function Xa(Vn,Cn,xn){let sn=Ga()[Vn](Cn,xn),pn=sn.errors.find(ri=>!Cu.has(ri.reasonCode));if(pn)throw pn;return sn}function _a(Vn){for(var Cn=arguments.length,xn=new Array(Cn>1?Cn-1:0),sn=1;sn<Cn;sn++)xn[sn-1]=arguments[sn];return function(pn,ri){let ii=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((ii.parser==="babel"||ii.parser==="__babel_estree")&&Ta(pn,ii))return ii.parser="babel-flow",Lo(pn,ri,ii);let Zn=xn;ii.__babelSourceType==="script"&&(Zn=Zn.map(Yn=>Object.assign(Object.assign({},Yn),{},{sourceType:"script"}))),/#[[{]/.test(pn)&&(Zn=Zn.map(Yn=>Ws([sl],Yn)));let vi=/%[A-Z]/.test(pn);pn.includes("|>")?Zn=(vi?[...Ba,xu]:Ba).flatMap(Yn=>Zn.map(ji=>Ws([Yn],ji))):vi&&(Zn=Zn.map(Yn=>Ws([xu],Yn)));let{result:Wi,error:Zi}=Lu(...Zn.map(Yn=>()=>Xa(Vn,pn,Yn)));if(!Wi)throw nl(Zi);return ii.originalText=pn,Mu(Wi,ii)}}var Yo=_a("parse",Ws(["jsx","flow"])),Lo=_a("parse",Ws(["jsx",["flow",{all:!0,enums:!0}]])),Qi=_a("parse",Ws(["jsx","typescript"]),Ws(["typescript"])),bu=_a("parse",Ws(["jsx","flow","estree"])),Sa=_a("parseExpression",Ws(["jsx"])),Qo=_a("parseExpression",Ws(["typescript"])),Cu=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),bo=Na(Yo),Zo=Na(Qi),ja=Na(Sa),go=Na(Qo);Pt.exports={parsers:Object.assign(Object.assign({babel:bo,"babel-flow":Na(Lo),"babel-ts":Zo},il),{},{__js_expression:ja,__vue_expression:ja,__vue_ts_expression:go,__vue_event_binding:bo,__vue_ts_event_binding:Zo,__babel_estree:Na(bu)})}});return Kn()})})(ym);var BD=Up(ym.exports);function _D(i,c,l){const f={css:PD,html:ND,babel:BD};return pa(()=>{if(!Oi(c))return Oi(i)||"/* empty */";try{return kD.format(Oi(i)||"",{parser:l,plugins:[f[l]],singleQuote:!0,semi:!1})}catch(v){return console.error(v),`/* Error on prettifying: ${v.message} */
|
|
276
276
|
${Oi(i)||""}`}})}function ID(i,c=!0){return _D(i,c,"css")}const OD={"h-full":""},LD={p:"x4 y2",grid:"~ cols-4 gap-4"},MD=Xi("div",{op80:""}," Presets ",-1),jD={op50:"","ws-pre":""},RD={overflow:"auto"},zD=Xi("div",{op80:""}," Rules ",-1),UD=Xi("span",{op50:""},"dynamic",-1),HD=Xi("br",null,null,-1),qD=Xi("span",{op50:""},"static",-1),$D=Xi("div",{op80:""}," Variants ",-1),WD=Xi("div",{op80:""}," Shortcuts ",-1),VD={key:0},GD=Xi("div",{op80:""}," Config File ",-1),XD=Xi("div",{op80:""}," Version ",-1),JD={op50:"","ws-pre":""},KD={b:"t main",p:"x4 y2",grid:"~ cols-4 gap-4"},YD=Xi("div",{op80:""}," Included Files ",-1),QD=Xi("div",{op80:""}," CSS Size ",-1),ZD=Xi("span",{op50:""},"gzipped",-1),ev=Xi("div",{op80:""}," Matched Rules ",-1),tv=Xi("div",{op80:""}," Layers ",-1),rv={op50:"","ws-pre":""},nv=Ku(" Prettify "),iv=tl({__name:"Overview",setup(i){const c=Va(null),l=FD(c,"overview-scrolls");Rh.execute();const f=Va(!1),v=ID(pa(()=>{var B;return(B=op.value)==null?void 0:B.css}),f);return(B,K)=>{const de=SD,De=bD,Le=yD,ze=fD;return xa(),ho("div",OD,[ea(Le,{ref_key:"status",ref:c,p0:""},{default:Nl(()=>{var it,mt,Bt,Qt,Cr,Rr,St,$t,Vt,Pr,nn,Sn,Wn,Mi,mi,Un,Nn,Ai;return[Xi("div",LD,[Xi("div",null,[MD,Xi("div",jD,Bo((Bt=(mt=(it=Oi(Za))==null?void 0:it.config)==null?void 0:mt.presets)==null?void 0:Bt.map(Dr=>Dr.name).join(`
|
|
277
277
|
`)),1)]),Xi("div",RD,[zD,Ku(" "+Bo((Rr=(Cr=(Qt=Oi(Za))==null?void 0:Qt.config)==null?void 0:Cr.rulesDynamic)==null?void 0:Rr.filter(Boolean).length)+" ",1),UD,HD,Ku(" "+Bo(Object.keys((($t=(St=Oi(Za))==null?void 0:St.config)==null?void 0:$t.rulesStaticMap)||{}).length)+" ",1),qD]),Xi("div",null,[$D,Ku(" "+Bo((nn=(Pr=(Vt=Oi(Za))==null?void 0:Vt.config)==null?void 0:Pr.variants)==null?void 0:nn.length),1)]),Xi("div",null,[WD,Ku(" "+Bo((Sn=Oi(Za))==null?void 0:Sn.config.shortcuts.length),1)]),(Wn=Oi(Za))!=null&&Wn.configPath?(xa(),ho("div",VD,[GD,ea(de,{id:Oi(Za).configPath},null,8,["id"])])):Cp("",!0),Xi("div",null,[XD,Xi("div",JD,Bo((Mi=Oi(Za))==null?void 0:Mi.version),1)])]),Xi("div",KD,[Xi("div",null,[YD,Ku(" "+Bo((mi=Oi(Za))==null?void 0:mi.modules.length),1)]),Xi("div",null,[QD,Ku(" "+Bo(((((Un=Oi(op))==null?void 0:Un.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),ZD]),Xi("div",null,[ev,Ku(" "+Bo((Nn=Oi(op))==null?void 0:Nn.matched.length),1)]),Xi("div",null,[tv,Xi("div",rv,Bo((Ai=Oi(op))==null?void 0:Ai.layers.join(`
|
|
278
|
-
`)),1)])]),ea(De,{border:"t gray-400/20",title:"Output CSS"},{default:Nl(()=>[Xi("label",null,[r0(Xi("input",{"onUpdate:modelValue":K[0]||(K[0]=Dr=>f.value=Dr),type:"checkbox"},null,512),[[ey,f.value]]),nv])]),_:1})]}),_:1},512),ea(ze,{"model-value":Oi(v),"read-only":!0,mode:"css",class:"scrolls overview-scrolls",style:ep(Oi(l))},null,8,["model-value","style"])])}}}),sv={};function av(i,c){const l=iv;return xa(),xc(l)}var ov=lm(sv,[["render",av]]);const uv=()=>Dh(()=>import("./repl.
|
|
278
|
+
`)),1)])]),ea(De,{border:"t gray-400/20",title:"Output CSS"},{default:Nl(()=>[Xi("label",null,[r0(Xi("input",{"onUpdate:modelValue":K[0]||(K[0]=Dr=>f.value=Dr),type:"checkbox"},null,512),[[ey,f.value]]),nv])]),_:1})]}),_:1},512),ea(ze,{"model-value":Oi(v),"read-only":!0,mode:"css",class:"scrolls overview-scrolls",style:ep(Oi(l))},null,8,["model-value","style"])])}}}),sv={};function av(i,c){const l=iv;return xa(),xc(l)}var ov=lm(sv,[["render",av]]);const uv=()=>Dh(()=>import("./repl.404c239a.js"),[]),lv=()=>Dh(()=>import("./_id_.6b1d1bd3.js"),[]),cv=[{name:"index",path:"/",component:ov,props:!0},{name:"repl",path:"/repl",component:uv,props:!0},{name:"module-id",path:"/module/:id",component:lv,props:!0}];/*!
|
|
279
279
|
* vue-router v4.0.16
|
|
280
280
|
* (c) 2022 Eduardo San Martin Morote
|
|
281
281
|
* @license MIT
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as h,r as y,u as g,a as v,f as x,o as i,c as S,b as l,w as k,e as n,g as e,i as B,n as u,_ as R,h as V,j as b,k as w}from"./index.
|
|
1
|
+
import{d as h,r as y,u as g,a as v,f as x,o as i,c as S,b as l,w as k,e as n,g as e,i as B,n as u,_ as R,h as V,j as b,k as w}from"./index.03bbe3c5.js";const C={"h-full":"",grid:"~ rows-[max-content_1fr]","of-hidden":""},P=n("div",null," REPL Playground ",-1),E=n("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),L={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},N=h({__name:"ReplPlayground",setup(m){const t=y(null),s=g(t,"rpel-scrolls"),o=v("unocss:inspector:repl",`<div class="text-sm hover:text-red">
|
|
2
2
|
Hello World
|
|
3
3
|
</div>`),{data:a}=x(o);return(j,r)=>{var d,_;const p=R,c=V;return i(),S("div",C,[l(p,{ref_key:"status",ref:t},{default:k(()=>[P,E]),_:1},512),n("div",L,[l(c,{modelValue:e(o),"onUpdate:modelValue":r[0]||(r[0]=f=>B(o)?o.value=f:null),mode:"html",matched:((d=e(a))==null?void 0:d.matched)||[],class:"scrolls rpel-scrolls",style:u(e(s))},null,8,["modelValue","matched","style"]),l(c,{"b-l":"","b-main":"","model-value":((_=e(a))==null?void 0:_.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls rpel-scrolls",style:u(e(s))},null,8,["model-value","style"])])])}}}),U={};function $(m,t){const s=N;return i(),w(s)}var H=b(U,[["render",$]]);export{H as default};
|
package/dist/client/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
9
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
10
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400&family=Fira+Code&display=swap" rel="stylesheet" />
|
|
11
|
-
<script type="module" crossorigin src="/__unocss/assets/index.
|
|
11
|
+
<script type="module" crossorigin src="/__unocss/assets/index.03bbe3c5.js"></script>
|
|
12
12
|
<link rel="stylesheet" href="/__unocss/assets/index.3b46dce8.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as V,m as T,d as M,p as O,t as I,r as C,u as W,q as D,s as U,v as Z,g as u,o as k,c as R,b as g,w as A,e as f,x as E,y as S,z as w,A as N,n as P,B as j,C as q,D as G,E as K,_ as H,h as J,F as L,k as Q,G as X}from"./index.025c0b6b.js";const Y=t=>t.split(/[\s'"`;=]+/g).filter(V),tt={name:"split",order:0,extract({code:t}){return new Set(Y(t))}},B=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,et=(t={})=>{var i,h,d;const a=(i=t.prefix)!=null?i:"un-",c=(h=t.prefixedOnly)!=null?h:!1,_=(d=t.trueToNonValued)!=null?d:!1;return{name:"attributify",match(r){const o=T(r);if(!o)return;let e=o[1];if(e.startsWith(a))e=e.slice(a.length);else if(c)return;const p=o[2],[,l="",s=p]=p.match(B)||[];return s==="~"||_&&s==="true"||!s?`${l}${e}`:`${l}${e}-${s}`}}},st=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,lt=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,z=/[\s'"`;>]+/,rt={name:"attributify",extract:({content:t,cursor:a})=>{const c=t.matchAll(st);let _,i=0;for(const n of c){const[,x,y]=n,b=n.index+x.length;if(a>b&&a<=b+y.length){i=b,_=y;break}}if(!_)return null;const h=_.matchAll(lt);let d=0,r,o;for(const n of h){const[x,y,b]=n,$=i+n.index;if(a>$&&a<=$+x.length){d=$,r=y,o=b==null?void 0:b.slice(1);break}}if(!r||r==="class"||r==="className"||r===":class")return null;if(o===void 0)return{extracted:r,resolveReplacement(n){return{start:d,end:d+r.length,replacement:n}}};const e=d+r.length+2;let p=z.exec(o),l=0,s;for(;p;){const[n]=p;if(a>e+l&&a<=e+l+p.index){s=o.slice(l,l+p.index);break}l+=p.index+n.length,p=z.exec(o.slice(l))}s===void 0&&(s=o.slice(l));const[,m="",v]=s.match(B)||[];return{extracted:`${m}${r}-${v}`,transformSuggestions(n){return n.filter(x=>x.startsWith(`${m}${r}-`)).map(x=>m+x.slice(m.length+r.length+1))},resolveReplacement(n){return{start:l+e,end:l+e+s.length,replacement:m+n.slice(m.length+r.length+1)}}}}},nt=["v-bind:",":"],F=/[\s'"`;]+/g,at=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ct=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,ot=t=>{var i,h,d;const a=(i=t==null?void 0:t.ignoreAttributes)!=null?i:[],c=(h=t==null?void 0:t.nonValuedAttribute)!=null?h:!0,_=(d=t==null?void 0:t.trueToNonValued)!=null?d:!1;return{name:"attributify",extract({code:r}){const o=Array.from(r.matchAll(at)).flatMap(e=>Array.from((e[1]||"").matchAll(ct))).flatMap(([,e,p,l])=>{if(a.includes(e))return[];for(const s of nt)if(e.startsWith(s)){e=e.slice(s.length);break}if(!l){if(V(e)&&c!==!1){const s=[`[${e}=""]`];return _&&s.push(`[${e}="true"]`),s}return[]}return["class","className"].includes(e)?l.split(F).filter(V):l.split(F).filter(Boolean).map(s=>`[${e}~="${s}"]`)});return new Set(o)}}},it=(t={})=>{var i,h,d,r,o;t.strict=(i=t.strict)!=null?i:!1,t.prefix=(h=t.prefix)!=null?h:"un-",t.prefixedOnly=(d=t.prefixedOnly)!=null?d:!1,t.nonValuedAttribute=(r=t.nonValuedAttribute)!=null?r:!0,t.ignoreAttributes=(o=t.ignoreAttributes)!=null?o:[];const a=[et(t)],c=[ot(t)],_=[rt];return t.strict||c.unshift(tt),{name:"@unocss/preset-attributify",variants:a,extractors:c,options:t,autocomplete:{extractors:_}}},ut={key:0,"h-full":"","of-hidden":""},dt=f("div",{op50:""}," Module ",-1),ft=f("div",{"i-carbon-launch":""},null,-1),mt=f("div",{op50:""}," Matched Rules ",-1),ht=f("div",{op50:""}," CSS Size ",-1),_t=f("span",{op50:""},"gzipped",-1),pt={key:0,"row-span-3":""},xt=f("div",{op50:""}," Potentially Unmatched ",-1),yt={"h-full":"","of-hidden":""},vt=E(" Prettify "),gt=M({__name:"ModuleInfo",props:{id:null},setup(t){const a=t,{data:c}=O(I(a,"id")),_=a.id.split(/\./g).pop(),i=C(null),h=W(i,"module-scrolls");function d(){fetch(`/__open-in-editor?file=${encodeURIComponent(a.id)}`)}const{extractors:r}=it({strict:!0}),o=D(async()=>{var s;const l=new Set;if(r){const m={code:((s=c.value)==null?void 0:s.code)||""};for(const v of r){const n=await v.extract(m);n==null||n.forEach(x=>l.add(x))}}return Array.from(l).filter(m=>!m.startsWith("[")).filter(m=>{var v;return!((v=c.value)!=null&&v.matched.includes(m))})}),e=C(!1),p=U(Z(()=>{var l;return(l=c.value)==null?void 0:l.css}),e);return(l,s)=>{const m=K,v=H,n=J,x=L;return u(c)?(k(),R("div",ut,[g(v,{ref_key:"status",ref:i,grid:"~ cols-3 gap-4"},{default:A(()=>{var y;return[f("div",null,[dt,f("a",{"cursor-pointer":"",op80:"","hover:op100":"",onClick:d},[g(m,{id:u(c).id,"mr-1":""},null,8,["id"]),ft])]),f("div",null,[mt,E(" "+S(u(c).matched.length),1)]),f("div",null,[ht,E(" "+S(((((y=u(c))==null?void 0:y.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),_t]),u(o).length?(k(),R("div",pt,[xt,f("code",null,S(u(o).join(", ")),1)])):w("",!0)]}),_:1},512),f("div",yt,[g(u(G),null,{default:A(()=>[g(u(N),{size:"50"},{default:A(()=>[g(n,{"h-full":"","model-value":u(c).code,"read-only":!0,mode:u(_),matched:u(c).matched,class:"scrolls module-scrolls",style:P(u(h))},null,8,["model-value","mode","matched","style"])]),_:1}),g(u(N),{size:"50"},{default:A(()=>[f("div",null,[g(x,{border:"l b gray-400/20",title:"Output CSS"},{default:A(()=>[f("label",null,[j(f("input",{"onUpdate:modelValue":s[0]||(s[0]=y=>e.value=y),type:"checkbox"},null,512),[[q,e.value]]),vt])]),_:1}),g(n,{"h-full":"",b:"l main","model-value":u(p),"read-only":!0,mode:"css",class:"scrolls module-scrolls",style:P(u(h))},null,8,["model-value","style"])])]),_:1})]),_:1})])])):w("",!0)}}}),At=M({__name:"[id]",setup(t){const a=X();return(c,_)=>{const i=gt;return k(),Q(i,{id:u(a).params.id},null,8,["id"])}}});export{At as default};
|