@unocss/inspector 0.56.1 → 0.56.3
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_-b381cd51.js → _id_-b9d3c833.js} +1 -1
- package/dist/client/assets/{index-5d526d08.js → index-8c054389.js} +2 -2
- package/dist/client/assets/{repl-3d8664ea.js → repl-f67fca75.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as U,t as N,d as W,x as Z,y as q,r as R,u as G,z as H,A as K,B as J,j as s,c as P,g as A,w as k,q as I,C as z,_ as L,D as Q,o as S,e as f,k as w,E as C,i as M,F as B,n as F,h as X,v as Y,M as ee,G as te,H as re,m as le,l as se,I as ne}from"./index-
|
|
1
|
+
import{s as U,t as N,d as W,x as Z,y as q,r as R,u as G,z as H,A as K,B as J,j as s,c as P,g as A,w as k,q as I,C as z,_ as L,D as Q,o as S,e as f,k as w,E as C,i as M,F as B,n as F,h as X,v as Y,M as ee,G as te,H as re,m as le,l as se,I as ne}from"./index-8c054389.js";const j=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function ae(e={}){const m=e.prefix??"un-",r=e.prefixedOnly??!1,v=e.trueToNonValued??!1;let c;return{name:"attributify",match(n,{generator:b}){var h,a;const o=U(n);if(!o)return;let t=o[1];if(t.startsWith(m))t=t.slice(m.length);else if(r)return;const i=o[2],[,_="",x=i]=i.match(j)||[];if(x==="~"||v&&x==="true"||!x)return`${_}${t}`;if(c==null){const l=(a=(h=b==null?void 0:b.config)==null?void 0:h.separators)==null?void 0:a.join("|");l?c=new RegExp(`^(.*\\](?:${l}))(\\[[^\\]]+?\\])$`):c=!1}if(c){const[,l,u]=i.match(c)||[];if(u)return`${l}${_}${t}-${u}`}return`${_}${t}-${x}`}}}const ce=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,oe=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,O=/[\s'"`;>]+/;function ie(e){return{name:"attributify",extract:({content:m,cursor:r})=>{const v=m.matchAll(ce);let c,n=0;for(const d of v){const[,y,g]=d,$=d.index+y.length;if(r>$&&r<=$+g.length){n=$,c=g;break}}if(!c)return null;const b=c.matchAll(oe);let o=0,t,i;for(const d of b){const[y,g,$]=d,E=n+d.index;if(r>E&&r<=E+y.length){o=E,t=g,i=$==null?void 0:$.slice(1);break}}if(!t||t==="class"||t==="className"||t===":class")return null;const _=!!(e!=null&&e.prefix)&&t.startsWith(e.prefix);if(e!=null&&e.prefixedOnly&&!_)return null;const x=_?t.slice(e.prefix.length):t;if(i===void 0)return{extracted:x,resolveReplacement(d){const y=_?e.prefix.length:0;return{start:o+y,end:o+t.length,replacement:d}}};const h=o+t.length+2;let a=O.exec(i),l=0,u;for(;a;){const[d]=a;if(r>h+l&&r<=h+l+a.index){u=i.slice(l,l+a.index);break}l+=a.index+d.length,a=O.exec(i.slice(l))}u===void 0&&(u=i.slice(l));const[,p="",V]=u.match(j)||[];return{extracted:`${p}${x}-${V}`,transformSuggestions(d){return d.filter(y=>y.startsWith(`${p}${x}-`)).map(y=>p+y.slice(p.length+x.length+1))},resolveReplacement(d){return{start:l+h,end:l+h+u.length,replacement:p+d.slice(p.length+x.length+1)}}}}}}const ue=["v-bind:",":"],T=/[\s'"`;]+/g,de=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,fe=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,D=["placeholder","fill","opacity","stroke-opacity"];function me(e){const m=(e==null?void 0:e.ignoreAttributes)??D,r=(e==null?void 0:e.nonValuedAttribute)??!0,v=(e==null?void 0:e.trueToNonValued)??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:c}){return Array.from(c.matchAll(de)).flatMap(n=>Array.from((n[1]||"").matchAll(fe))).flatMap(([,n,...b])=>{const o=b.filter(Boolean).join("");if(m.includes(n))return[];for(const t of ue)if(n.startsWith(t)){n=n.slice(t.length);break}if(!o){if(N(n)&&r!==!1){const t=[`[${n}=""]`];return v&&t.push(`[${n}="true"]`),t}return[]}return["class","className"].includes(n)?o.split(T).filter(N):e!=null&&e.prefixedOnly&&e.prefix&&!n.startsWith(e.prefix)?[]:o.split(T).filter(t=>!!t&&t!==":").map(t=>`[${n}~="${t}"]`)})}}}const he=(e={})=>{e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??D;const m=[ae(e)],r=[me(e)],v=[ie(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:m,extractors:r,options:e,autocomplete:{extractors:v},extractorDefault:e.strict?!1:void 0}},_e={key:0,"h-full":"","of-hidden":"",flex:"","flex-col":""},xe={p:"4",grid:"~ cols-4 gap-4"},pe=f("div",{op50:""}," Module ",-1),ye=f("div",{"i-carbon-launch":""},null,-1),ve=f("div",{op50:""}," Matched Rules ",-1),be=f("div",{op50:""}," CSS Size ",-1),ge=f("span",{op50:""},"gzipped",-1),$e={key:0,"row-span-3":""},Ae=f("div",{op50:""}," Potentially Unmatched ",-1),Ve={key:0,"h-full":"","of-hidden":""},ke=W({__name:"ModuleInfo",props:{id:{}},setup(e){const m=e,{data:r}=Z(q(m,"id")),v=m.id.split(/\./g).pop(),c=R(null),n=G(c,"module-scrolls");function b(){fetch(`/__open-in-editor?file=${encodeURIComponent(m.id)}`)}const{extractors:o}=he({strict:!0}),t=H(async()=>{var a;const h=new Set;if(o){const l={code:((a=r.value)==null?void 0:a.code)||""};for(const u of o){const p=await u.extract(l);p==null||p.forEach(V=>h.add(V))}}return Array.from(h).filter(l=>!l.startsWith("[")).filter(l=>{var u;return!((u=r.value)!=null&&u.matched.includes(l))})}),i=R(!1),_=R("source"),x=K(J(()=>{var h;return(h=r.value)==null?void 0:h.css}),i);return(h,a)=>{const l=te,u=re,p=L,V=le,d=se,y=Q;return s(r)?(S(),P("div",_e,[A(p,{ref_key:"status",ref:c,p0:""},{default:k(()=>{var g;return[f("div",xe,[f("div",null,[pe,f("a",{"cursor-pointer":"",op80:"","hover:op100":"",onClick:b},[A(l,{id:s(r).id,"mr-1":""},null,8,["id"]),ye])]),f("div",null,[ve,w(" "+C(s(r).matched.length),1)]),f("div",null,[be,w(" "+C(((((g=s(r))==null?void 0:g.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),ge]),s(t).length?(S(),P("div",$e,[Ae,f("code",null,C(s(t).join(", ")),1)])):z("",!0)]),A(u,{modelValue:s(_),"onUpdate:modelValue":a[0]||(a[0]=$=>M(_)?_.value=$:null)},null,8,["modelValue"])]}),_:1},512),s(_)==="source"?(S(),P("div",Ve,[A(s(ee),null,{default:k(()=>[A(s(B),{size:"50"},{default:k(()=>[A(V,{"h-full":"","model-value":s(r).code,"read-only":!0,mode:s(v),matched:s(r).matched,class:"scrolls module-scrolls",style:F(s(n))},null,8,["model-value","mode","matched","style"])]),_:1}),A(s(B),{size:"50"},{default:k(()=>[f("div",null,[A(d,{border:"l b gray-400/20",title:"Output CSS"},{default:k(()=>[f("label",null,[X(f("input",{"onUpdate:modelValue":a[1]||(a[1]=g=>M(i)?i.value=g:null),type:"checkbox"},null,512),[[Y,s(i)]]),w(" Prettify ")])]),_:1}),A(V,{"h-full":"",border:"l main","model-value":s(x),"read-only":!0,mode:"css",class:"scrolls module-scrolls",style:F(s(n))},null,8,["model-value","style"])])]),_:1})]),_:1})])):(S(),I(y,{key:1,"flex-grow":"","overflow-y-auto":"",selectors:s(r).matched,colors:s(r).colors},null,8,["selectors","colors"]))])):z("",!0)}}}),Ee=W({__name:"[id]",setup(e){const m=ne();return(r,v)=>{const c=ke;return S(),I(c,{id:s(m).params.id},null,8,["id"])}}});export{Ee as default};
|
|
@@ -276,8 +276,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
276
276
|
`),cooked:f===null?null:f.slice(1,O)},y.tail=D,this.next();let v=this.finishNode(y,"TemplateElement");return this.resetEndLocation(v,wi(this.state.lastTokEndLoc,O)),v}parseTemplate(c){let o=this.startNode();o.expressions=[];let u=this.parseTemplateElement(c);for(o.quasis=[u];!u.tail;)o.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),o.quasis.push(u=this.parseTemplateElement(c));return this.finishNode(o,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(c,o,u,h){u&&this.expectPlugin("recordAndTuple");let f=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let m=Object.create(null),y=!0,D=this.startNode();for(D.properties=[],this.next();!this.match(c);){if(y)y=!1;else if(this.expect(12),this.match(c)){this.addTrailingCommaExtraToNode(D);break}let x;o?x=this.parseBindingProperty():(x=this.parsePropertyDefinition(h),this.checkProto(x,u,m,h)),u&&!this.isObjectProperty(x)&&x.type!=="SpreadElement"&&this.raise(Qe.InvalidRecordProperty,{at:x}),x.shorthand&&this.addExtra(x,"shorthand",!0),D.properties.push(x)}this.next(),this.state.inFSharpPipelineDirectBody=f;let O="ObjectExpression";return o?O="ObjectPattern":u&&(O="RecordExpression"),this.finishNode(D,O)}addTrailingCommaExtraToNode(c){this.addExtra(c,"trailingComma",this.state.lastTokStart),this.addExtra(c,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(c){return!c.computed&&c.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(c){let o=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Qe.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());let u=this.startNode(),h=!1,f=!1,m;if(this.match(21))return o.length&&this.unexpected(),this.parseSpread();o.length&&(u.decorators=o,o=[]),u.method=!1,c&&(m=this.state.startLoc);let y=this.eat(55);this.parsePropertyNamePrefixOperator(u);let D=this.state.containsEsc,O=this.parsePropertyName(u,c);if(!y&&!D&&this.maybeAsyncOrAccessorProp(u)){let x=O.name;x==="async"&&!this.hasPrecedingLineBreak()&&(h=!0,this.resetPreviousNodeTrailingComments(O),y=this.eat(55),this.parsePropertyName(u)),(x==="get"||x==="set")&&(f=!0,this.resetPreviousNodeTrailingComments(O),u.kind=x,this.match(55)&&(y=!0,this.raise(Qe.AccessorIsGenerator,{at:this.state.curPosition(),kind:x}),this.next()),this.parsePropertyName(u))}return this.parseObjPropValue(u,m,y,h,!1,f,c)}getGetterSetterExpectedParamCount(c){return c.kind==="get"?0:1}getObjectOrClassMethodParams(c){return c.params}checkGetterSetterParams(c){var o;let u=this.getGetterSetterExpectedParamCount(c),h=this.getObjectOrClassMethodParams(c);h.length!==u&&this.raise(c.kind==="get"?Qe.BadGetterArity:Qe.BadSetterArity,{at:c}),c.kind==="set"&&((o=h[h.length-1])==null?void 0:o.type)==="RestElement"&&this.raise(Qe.BadSetterRestParameter,{at:c})}parseObjectMethod(c,o,u,h,f){if(f){let m=this.parseMethod(c,o,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(m),m}if(u||o||this.match(10))return h&&this.unexpected(),c.kind="method",c.method=!0,this.parseMethod(c,o,u,!1,!1,"ObjectMethod")}parseObjectProperty(c,o,u,h){if(c.shorthand=!1,this.eat(14))return c.value=u?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(h),this.finishNode(c,"ObjectProperty");if(!c.computed&&c.key.type==="Identifier"){if(this.checkReservedWord(c.key.name,c.key.loc.start,!0,!1),u)c.value=this.parseMaybeDefault(o,V(c.key));else if(this.match(29)){let f=this.state.startLoc;h!=null?h.shorthandAssignLoc===null&&(h.shorthandAssignLoc=f):this.raise(Qe.InvalidCoverInitializedName,{at:f}),c.value=this.parseMaybeDefault(o,V(c.key))}else c.value=V(c.key);return c.shorthand=!0,this.finishNode(c,"ObjectProperty")}}parseObjPropValue(c,o,u,h,f,m,y){let D=this.parseObjectMethod(c,u,h,f,m)||this.parseObjectProperty(c,o,f,y);return D||this.unexpected(),D}parsePropertyName(c,o){if(this.eat(0))c.computed=!0,c.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:u,value:h}=this.state,f;if(qe(u))f=this.parseIdentifier(!0);else switch(u){case 132:f=this.parseNumericLiteral(h);break;case 131:f=this.parseStringLiteral(h);break;case 133:f=this.parseBigIntLiteral(h);break;case 134:f=this.parseDecimalLiteral(h);break;case 136:{let m=this.state.startLoc;o!=null?o.privateKeyLoc===null&&(o.privateKeyLoc=m):this.raise(Qe.UnexpectedPrivateField,{at:m}),f=this.parsePrivateName();break}default:this.unexpected()}c.key=f,u!==136&&(c.computed=!1)}return c.key}initFunction(c,o){c.id=null,c.generator=!1,c.async=o}parseMethod(c,o,u,h,f,m){let y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(c,u),c.generator=o,this.scope.enter(va|cu|(y?Ma:0)|(f?Nl:0)),this.prodParam.enter(de(u,c.generator)),this.parseFunctionParams(c,h);let D=this.parseFunctionBodyAndFinish(c,m,!0);return this.prodParam.exit(),this.scope.exit(),D}parseArrayLike(c,o,u,h){u&&this.expectPlugin("recordAndTuple");let f=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let m=this.startNode();return this.next(),m.elements=this.parseExprList(c,!u,h,m),this.state.inFSharpPipelineDirectBody=f,this.finishNode(m,u?"TupleExpression":"ArrayExpression")}parseArrowExpression(c,o,u,h){this.scope.enter(va|Bl);let f=de(u,!1);!this.match(5)&&this.prodParam.hasIn&&(f|=pe),this.prodParam.enter(f),this.initFunction(c,u);let m=this.state.maybeInArrowParameters;return o&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(c,o,h)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(c,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=m,this.finishNode(c,"ArrowFunctionExpression")}setArrowFunctionParameters(c,o,u){this.toAssignableList(o,u,!1),c.params=o}parseFunctionBodyAndFinish(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.parseFunctionBody(c,!1,u),this.finishNode(c,o)}parseFunctionBody(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=o&&!this.match(5);if(this.expressionScope.enter(w()),h)c.body=this.parseMaybeAssign(),this.checkParams(c,!1,o,!1);else{let f=this.state.strict,m=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|oe),c.body=this.parseBlock(!0,!1,y=>{let D=!this.isSimpleParamList(c.params);y&&D&&this.raise(Qe.IllegalLanguageModeDirective,{at:(c.kind==="method"||c.kind==="constructor")&&c.key?c.key.loc.end:c});let O=!f&&this.state.strict;this.checkParams(c,!this.state.strict&&!o&&!u&&!D,o,O),this.state.strict&&c.id&&this.checkIdentifier(c.id,sp,O)}),this.prodParam.exit(),this.state.labels=m}this.expressionScope.exit()}isSimpleParameter(c){return c.type==="Identifier"}isSimpleParamList(c){for(let o=0,u=c.length;o<u;o++)if(!this.isSimpleParameter(c[o]))return!1;return!0}checkParams(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,f=!o&&new Set,m={type:"FormalParameters"};for(let y of c.params)this.checkLVal(y,{in:m,binding:Gu,checkClashes:f,strictModeChanged:h})}parseExprList(c,o,u,h){let f=[],m=!0;for(;!this.eat(c);){if(m)m=!1;else if(this.expect(12),this.match(c)){h&&this.addTrailingCommaExtraToNode(h),this.next();break}f.push(this.parseExprListItem(o,u))}return f}parseExprListItem(c,o,u){let h;if(this.match(12))c||this.raise(Qe.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),h=null;else if(this.match(21)){let f=this.state.startLoc;h=this.parseParenItem(this.parseSpread(o),f)}else if(this.match(17)){this.expectPlugin("partialApplication"),u||this.raise(Qe.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let f=this.startNode();this.next(),h=this.finishNode(f,"ArgumentPlaceholder")}else h=this.parseMaybeAssignAllowIn(o,this.parseParenItem);return h}parseIdentifier(c){let o=this.startNode(),u=this.parseIdentifierName(c);return this.createIdentifier(o,u)}createIdentifier(c,o){return c.name=o,c.loc.identifierName=o,this.finishNode(c,"Identifier")}parseIdentifierName(c){let o,{startLoc:u,type:h}=this.state;qe(h)?o=this.state.value:this.unexpected();let f=Pt(h);return c?f&&this.replaceToken(130):this.checkReservedWord(o,u,f,!1),this.next(),o}checkReservedWord(c,o,u,h){if(!(c.length>10||!np(c))){if(u&&Vu(c)){this.raise(Qe.UnexpectedKeyword,{at:o,keyword:c});return}if((this.state.strict?h?os:Ya:ch)(c,this.inModule)){this.raise(Qe.UnexpectedReservedWord,{at:o,reservedWord:c});return}else if(c==="yield"){if(this.prodParam.hasYield){this.raise(Qe.YieldBindingIdentifier,{at:o});return}}else if(c==="await"){if(this.prodParam.hasAwait){this.raise(Qe.AwaitBindingIdentifier,{at:o});return}if(this.scope.inStaticBlock){this.raise(Qe.AwaitBindingIdentifierInStaticBlock,{at:o});return}this.expressionScope.recordAsyncArrowParametersError({at:o})}else if(c==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(Qe.ArgumentsInClass,{at:o});return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(c){let o=this.startNodeAt(c);return this.expressionScope.recordParameterInitializerError(Qe.AwaitExpressionFormalParameter,{at:o}),this.eat(55)&&this.raise(Qe.ObsoleteAwaitStar,{at:o}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(o.argument=this.parseMaybeUnary(null,!0)),this.finishNode(o,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:c}=this.state;return c===53||c===10||c===0||rs(c)||c===101&&!this.state.containsEsc||c===135||c===56||this.hasPlugin("v8intrinsic")&&c===54}parseYield(){let c=this.startNode();this.expressionScope.recordParameterInitializerError(Qe.YieldInParameter,{at:c}),this.next();let o=!1,u=null;if(!this.hasPrecedingLineBreak())switch(o=this.eat(55),this.state.type){case 13:case 137:case 8:case 11:case 3:case 9:case 14:case 12:if(!o)break;default:u=this.parseMaybeAssign()}return c.delegate=o,c.argument=u,this.finishNode(c,"YieldExpression")}checkPipelineAtInfixOperator(c,o){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&c.type==="SequenceExpression"&&this.raise(Qe.PipelineHeadSequenceExpression,{at:o})}parseSmartPipelineBodyInStyle(c,o){if(this.isSimpleReference(c)){let u=this.startNodeAt(o);return u.callee=c,this.finishNode(u,"PipelineBareFunction")}else{let u=this.startNodeAt(o);return this.checkSmartPipeTopicBodyEarlyErrors(o),u.expression=c,this.finishNode(u,"PipelineTopicExpression")}}isSimpleReference(c){switch(c.type){case"MemberExpression":return!c.computed&&this.isSimpleReference(c.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(c){if(this.match(19))throw this.raise(Qe.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(Qe.PipelineTopicUnused,{at:c})}withTopicBindingContext(c){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return c()}finally{this.state.topicContext=o}}withSmartMixTopicForbiddingContext(c){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let o=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return c()}finally{this.state.topicContext=o}}else return c()}withSoloAwaitPermittingContext(c){let o=this.state.soloAwait;this.state.soloAwait=!0;try{return c()}finally{this.state.soloAwait=o}}allowInAnd(c){let o=this.prodParam.currentFlags();if(pe&~o){this.prodParam.enter(o|pe);try{return c()}finally{this.prodParam.exit()}}return c()}disallowInAnd(c){let o=this.prodParam.currentFlags();if(pe&o){this.prodParam.enter(o&~pe);try{return c()}finally{this.prodParam.exit()}}return c()}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(c){let o=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let u=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let h=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),o,c);return this.state.inFSharpPipelineDirectBody=u,h}parseModuleExpression(){this.expectPlugin("moduleBlocks");let c=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let o=this.startNodeAt(this.state.endLoc);this.next();let u=this.initializeScopes(!0);this.enterInitialScopes();try{c.body=this.parseProgram(o,8,"module")}finally{u()}return this.finishNode(c,"ModuleExpression")}parsePropertyNamePrefixOperator(c){}},Ac={kind:"loop"},xp={kind:"switch"},o0=/[\uD800-\uDFFF]/u,pf=/in(?:stanceof)?/y;function a0(c,o){for(let u=0;u<c.length;u++){let h=c[u],{type:f}=h;if(typeof f=="number"){{if(f===136){let{loc:m,start:y,value:D,end:O}=h,x=y+1,v=wi(m.start,1);c.splice(u,1,new na({type:Er(27),value:"#",start:y,end:x,startLoc:m.start,endLoc:v}),new na({type:Er(130),value:D,start:x,end:O,startLoc:v,endLoc:m.end})),u++;continue}if(rs(f)){let{loc:m,start:y,value:D,end:O}=h,x=y+1,v=wi(m.start,1),E;o.charCodeAt(y)===96?E=new na({type:Er(22),value:"`",start:y,end:x,startLoc:m.start,endLoc:v}):E=new na({type:Er(8),value:"}",start:y,end:x,startLoc:m.start,endLoc:v});let F,k,N,T;f===24?(k=O-1,N=wi(m.end,-1),F=D===null?null:D.slice(1,-1),T=new na({type:Er(22),value:"`",start:k,end:O,startLoc:N,endLoc:m.end})):(k=O-2,N=wi(m.end,-2),F=D===null?null:D.slice(1,-2),T=new na({type:Er(23),value:"${",start:k,end:O,startLoc:N,endLoc:m.end})),c.splice(u,1,E,new na({type:Er(20),value:F,start:x,end:k,startLoc:v,endLoc:N}),T),u+=2;continue}}h.type=Er(f)}}return c}var u0=class extends so{parseTopLevel(c,o){return c.program=this.parseProgram(o),c.comments=this.state.comments,this.options.tokens&&(c.tokens=a0(this.tokens,this.input)),this.finishNode(c,"File")}parseProgram(c){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:137,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(c.sourceType=u,c.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(c,!0,!0,o),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[f,m]of Array.from(this.scope.undefinedExports))this.raise(Qe.ModuleExportUndefined,{at:m,localName:f});let h;return o===137?h=this.finishNode(c,"Program"):h=this.finishNodeAt(c,"Program",wi(this.state.startLoc,-1)),h}stmtToDirective(c){let o=c;o.type="Directive",o.value=o.expression,delete o.expression;let u=o.value,h=u.value,f=this.input.slice(u.start,u.end),m=u.value=f.slice(1,-1);return this.addExtra(u,"raw",f),this.addExtra(u,"rawValue",m),this.addExtra(u,"expressionValue",h),u.type="DirectiveLiteral",o}parseInterpreterDirective(){if(!this.match(28))return null;let c=this.startNode();return c.value=this.state.value,this.next(),this.finishNode(c,"InterpreterDirective")}isLet(){return this.isContextual(99)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(c,o){if(Lo(c)){if(pf.lastIndex=o,pf.test(this.input)){let u=this.codePointAtPos(pf.lastIndex);if(!ba(u)&&u!==92)return!1}return!0}else return c===92}chStartsBindingPattern(c){return c===91||c===123}hasFollowingBindingAtom(){let c=this.nextTokenStart(),o=this.codePointAtPos(c);return this.chStartsBindingPattern(o)||this.chStartsBindingIdentifier(o,c)}hasFollowingBindingIdentifier(){let c=this.nextTokenStart(),o=this.codePointAtPos(c);return this.chStartsBindingIdentifier(o,c)}startsUsingForOf(){let c=this.lookahead();return c.type===101&&!c.containsEsc?!1:(this.expectPlugin("explicitResourceManagement"),!0)}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=0;return this.options.annexB&&!this.state.strict&&(o|=4,c&&(o|=8)),this.parseStatementLike(o)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(c){let o=null;return this.match(26)&&(o=this.parseDecorators(!0)),this.parseStatementContent(c,o)}parseStatementContent(c,o){let u=this.state.type,h=this.startNode(),f=!!(c&2),m=!!(c&4),y=c&1;switch(u){case 60:return this.parseBreakContinueStatement(h,!0);case 63:return this.parseBreakContinueStatement(h,!1);case 64:return this.parseDebuggerStatement(h);case 90:return this.parseDoWhileStatement(h);case 91:return this.parseForStatement(h);case 68:if(this.lookaheadCharCode()===46)break;return m||this.raise(this.state.strict?Qe.StrictFunction:this.options.annexB?Qe.SloppyFunctionAnnexB:Qe.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(h,!1,!f&&m);case 80:return f||this.unexpected(),this.parseClass(this.maybeTakeDecorators(o,h),!0);case 69:return this.parseIfStatement(h);case 70:return this.parseReturnStatement(h);case 71:return this.parseSwitchStatement(h);case 72:return this.parseThrowStatement(h);case 73:return this.parseTryStatement(h);case 105:if(this.hasFollowingLineBreak()||this.state.containsEsc||!this.hasFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(Qe.UnexpectedUsingDeclaration,{at:this.state.startLoc}):f||this.raise(Qe.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(h,"using");case 99:{if(this.state.containsEsc)break;let x=this.nextTokenStart(),v=this.codePointAtPos(x);if(v!==91&&(!f&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(v,x)&&v!==123))break}case 75:f||this.raise(Qe.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let x=this.state.value;return this.parseVarStatement(h,x)}case 92:return this.parseWhileStatement(h);case 76:return this.parseWithStatement(h);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(h);case 83:{let x=this.lookaheadCharCode();if(x===40||x===46)break}case 82:{!this.options.allowImportExportEverywhere&&!y&&this.raise(Qe.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let x;return u===83?(x=this.parseImport(h),x.type==="ImportDeclaration"&&(!x.importKind||x.importKind==="value")&&(this.sawUnambiguousESM=!0)):(x=this.parseExport(h,o),(x.type==="ExportNamedDeclaration"&&(!x.exportKind||x.exportKind==="value")||x.type==="ExportAllDeclaration"&&(!x.exportKind||x.exportKind==="value")||x.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(x),x}default:if(this.isAsyncFunction())return f||this.raise(Qe.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(h,!0,!f&&m)}let D=this.state.value,O=this.parseExpression();return at(u)&&O.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(h,D,O,c):this.parseExpressionStatement(h,O,o)}assertModuleNodeAllowed(c){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(Qe.ImportOutsideModule,{at:c})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(c,o,u){return c&&(o.decorators&&o.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(Qe.DecoratorsBeforeAfterExport,{at:o.decorators[0]}),o.decorators.unshift(...c)):o.decorators=c,this.resetStartLocationFromNode(o,c[0]),u&&this.resetStartLocationFromNode(u,o)),o}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(c){let o=[];do o.push(this.parseDecorator());while(this.match(26));if(this.match(82))c||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(Qe.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(Qe.UnexpectedLeadingDecorator,{at:this.state.startLoc});return o}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let c=this.startNode();if(this.next(),this.hasPlugin("decorators")){let o=this.state.startLoc,u;if(this.match(10)){let h=this.state.startLoc;this.next(),u=this.parseExpression(),this.expect(11),u=this.wrapParenthesis(h,u);let f=this.state.startLoc;c.expression=this.parseMaybeDecoratorArguments(u),this.getPluginOption("decorators","allowCallParenthesized")===!1&&c.expression!==u&&this.raise(Qe.DecoratorArgumentsOutsideParentheses,{at:f})}else{for(u=this.parseIdentifier(!1);this.eat(16);){let h=this.startNodeAt(o);h.object=u,this.match(136)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),h.property=this.parsePrivateName()):h.property=this.parseIdentifier(!0),h.computed=!1,u=this.finishNode(h,"MemberExpression")}c.expression=this.parseMaybeDecoratorArguments(u)}}else c.expression=this.parseExprSubscripts();return this.finishNode(c,"Decorator")}parseMaybeDecoratorArguments(c){if(this.eat(10)){let o=this.startNodeAtNode(c);return o.callee=c,o.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(o.arguments),this.finishNode(o,"CallExpression")}return c}parseBreakContinueStatement(c,o){return this.next(),this.isLineTerminator()?c.label=null:(c.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(c,o),this.finishNode(c,o?"BreakStatement":"ContinueStatement")}verifyBreakContinue(c,o){let u;for(u=0;u<this.state.labels.length;++u){let h=this.state.labels[u];if((c.label==null||h.name===c.label.name)&&(h.kind!=null&&(o||h.kind==="loop")||c.label&&o))break}if(u===this.state.labels.length){let h=o?"BreakStatement":"ContinueStatement";this.raise(Qe.IllegalBreakContinue,{at:c,type:h})}}parseDebuggerStatement(c){return this.next(),this.semicolon(),this.finishNode(c,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let c=this.parseExpression();return this.expect(11),c}parseDoWhileStatement(c){return this.next(),this.state.labels.push(Ac),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),c.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(c,"DoWhileStatement")}parseForStatement(c){this.next(),this.state.labels.push(Ac);let o=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(o=this.state.lastTokStartLoc),this.scope.enter(Uu),this.expect(10),this.match(13))return o!==null&&this.unexpected(o),this.parseFor(c,null);let u=this.isContextual(99),h=this.isContextual(105)&&!this.hasFollowingLineBreak(),f=u&&this.hasFollowingBindingAtom()||h&&this.hasFollowingBindingIdentifier()&&this.startsUsingForOf();if(this.match(74)||this.match(75)||f){let x=this.startNode(),v=this.state.value;this.next(),this.parseVar(x,!0,v);let E=this.finishNode(x,"VariableDeclaration"),F=this.match(58);return F&&h&&this.raise(Qe.ForInUsing,{at:E}),(F||this.isContextual(101))&&E.declarations.length===1?this.parseForIn(c,E,o):(o!==null&&this.unexpected(o),this.parseFor(c,E))}let m=this.isContextual(95),y=new fe,D=this.parseExpression(!0,y),O=this.isContextual(101);if(O&&(u&&this.raise(Qe.ForOfLet,{at:D}),o===null&&m&&D.type==="Identifier"&&this.raise(Qe.ForOfAsync,{at:D})),O||this.match(58)){this.checkDestructuringPrivate(y),this.toAssignable(D,!0);let x=O?"ForOfStatement":"ForInStatement";return this.checkLVal(D,{in:{type:x}}),this.parseForIn(c,D,o)}else this.checkExpressionErrors(y,!0);return o!==null&&this.unexpected(o),this.parseFor(c,D)}parseFunctionStatement(c,o,u){return this.next(),this.parseFunction(c,1|(u?2:0)|(o?8:0))}parseIfStatement(c){return this.next(),c.test=this.parseHeaderExpression(),c.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),c.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(c,"IfStatement")}parseReturnStatement(c){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(Qe.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?c.argument=null:(c.argument=this.parseExpression(),this.semicolon()),this.finishNode(c,"ReturnStatement")}parseSwitchStatement(c){this.next(),c.discriminant=this.parseHeaderExpression();let o=c.cases=[];this.expect(5),this.state.labels.push(xp),this.scope.enter(Uu);let u;for(let h;!this.match(8);)if(this.match(61)||this.match(65)){let f=this.match(61);u&&this.finishNode(u,"SwitchCase"),o.push(u=this.startNode()),u.consequent=[],this.next(),f?u.test=this.parseExpression():(h&&this.raise(Qe.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),h=!0,u.test=null),this.expect(14)}else u?u.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),u&&this.finishNode(u,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(c,"SwitchStatement")}parseThrowStatement(c){return this.next(),this.hasPrecedingLineBreak()&&this.raise(Qe.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),c.argument=this.parseExpression(),this.semicolon(),this.finishNode(c,"ThrowStatement")}parseCatchClauseParam(){let c=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&c.type==="Identifier"?zu:0),this.checkLVal(c,{in:{type:"CatchClause"},binding:Oc}),c}parseTryStatement(c){if(this.next(),c.block=this.parseBlock(),c.handler=null,this.match(62)){let o=this.startNode();this.next(),this.match(10)?(this.expect(10),o.param=this.parseCatchClauseParam(),this.expect(11)):(o.param=null,this.scope.enter(Uu)),o.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),c.handler=this.finishNode(o,"CatchClause")}return c.finalizer=this.eat(67)?this.parseBlock():null,!c.handler&&!c.finalizer&&this.raise(Qe.NoCatchOrFinally,{at:c}),this.finishNode(c,"TryStatement")}parseVarStatement(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(c,!1,o,u),this.semicolon(),this.finishNode(c,"VariableDeclaration")}parseWhileStatement(c){return this.next(),c.test=this.parseHeaderExpression(),this.state.labels.push(Ac),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(c,"WhileStatement")}parseWithStatement(c){return this.state.strict&&this.raise(Qe.StrictWith,{at:this.state.startLoc}),this.next(),c.object=this.parseHeaderExpression(),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(c,"WithStatement")}parseEmptyStatement(c){return this.next(),this.finishNode(c,"EmptyStatement")}parseLabeledStatement(c,o,u,h){for(let m of this.state.labels)m.name===o&&this.raise(Qe.LabelRedeclaration,{at:u,labelName:o});let f=wt(this.state.type)?"loop":this.match(71)?"switch":null;for(let m=this.state.labels.length-1;m>=0;m--){let y=this.state.labels[m];if(y.statementStart===c.start)y.statementStart=this.state.start,y.kind=f;else break}return this.state.labels.push({name:o,kind:f,statementStart:this.state.start}),c.body=h&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),c.label=u,this.finishNode(c,"LabeledStatement")}parseExpressionStatement(c,o,u){return c.expression=o,this.semicolon(),this.finishNode(c,"ExpressionStatement")}parseBlock(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2?arguments[2]:void 0,h=this.startNode();return c&&this.state.strictErrors.clear(),this.expect(5),o&&this.scope.enter(Uu),this.parseBlockBody(h,c,!1,8,u),o&&this.scope.exit(),this.finishNode(h,"BlockStatement")}isValidDirective(c){return c.type==="ExpressionStatement"&&c.expression.type==="StringLiteral"&&!c.expression.extra.parenthesized}parseBlockBody(c,o,u,h,f){let m=c.body=[],y=c.directives=[];this.parseBlockOrModuleBlockBody(m,o?y:void 0,u,h,f)}parseBlockOrModuleBlockBody(c,o,u,h,f){let m=this.state.strict,y=!1,D=!1;for(;!this.match(h);){let O=u?this.parseModuleItem():this.parseStatementListItem();if(o&&!D){if(this.isValidDirective(O)){let x=this.stmtToDirective(O);o.push(x),!y&&x.value.value==="use strict"&&(y=!0,this.setStrict(!0));continue}D=!0,this.state.strictErrors.clear()}c.push(O)}f&&f.call(this,y),m||this.setStrict(!1),this.next()}parseFor(c,o){return c.init=o,this.semicolon(!1),c.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),c.update=this.match(11)?null:this.parseExpression(),this.expect(11),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(c,"ForStatement")}parseForIn(c,o,u){let h=this.match(58);return this.next(),h?u!==null&&this.unexpected(u):c.await=u!==null,o.type==="VariableDeclaration"&&o.declarations[0].init!=null&&(!h||!this.options.annexB||this.state.strict||o.kind!=="var"||o.declarations[0].id.type!=="Identifier")&&this.raise(Qe.ForInOfLoopInitializer,{at:o,type:h?"ForInStatement":"ForOfStatement"}),o.type==="AssignmentPattern"&&this.raise(Qe.InvalidLhs,{at:o,ancestor:{type:"ForStatement"}}),c.left=o,c.right=h?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),c.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(c,h?"ForInStatement":"ForOfStatement")}parseVar(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,f=c.declarations=[];for(c.kind=u;;){let m=this.startNode();if(this.parseVarId(m,u),m.init=this.eat(29)?o?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,m.init===null&&!h&&(m.id.type!=="Identifier"&&!(o&&(this.match(58)||this.isContextual(101)))?this.raise(Qe.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):u==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(Qe.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),f.push(this.finishNode(m,"VariableDeclarator")),!this.eat(12))break}return c}parseVarId(c,o){o==="using"&&!this.inModule&&this.match(96)&&this.raise(Qe.AwaitInUsingBinding,{at:this.state.startLoc});let u=this.parseBindingAtom();this.checkLVal(u,{in:{type:"VariableDeclarator"},binding:o==="var"?Gu:Ra}),c.id=u}parseAsyncFunctionExpression(c){return this.parseFunction(c,8)}parseFunction(c){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=o&2,h=!!(o&1),f=h&&!(o&4),m=!!(o&8);this.initFunction(c,m),this.match(55)&&(u&&this.raise(Qe.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),c.generator=!0),h&&(c.id=this.parseFunctionId(f));let y=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(va),this.prodParam.enter(de(m,c.generator)),h||(c.id=this.parseFunctionId()),this.parseFunctionParams(c,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(c,h?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),h&&!u&&this.registerFunctionStatementId(c),this.state.maybeInArrowParameters=y,c}parseFunctionId(c){return c||at(this.state.type)?this.parseIdentifier():null}parseFunctionParams(c,o){this.expect(10),this.expressionScope.enter(vh()),c.params=this.parseBindingList(11,41,2|(o?4:0)),this.expressionScope.exit()}registerFunctionStatementId(c){c.id&&this.scope.declareName(c.id.name,!this.options.annexB||this.state.strict||c.generator||c.async?this.scope.treatFunctionsAsVar?Gu:Ra:xc,c.id.loc.start)}parseClass(c,o,u){this.next();let h=this.state.strict;return this.state.strict=!0,this.parseClassId(c,o,u),this.parseClassSuper(c),c.body=this.parseClassBody(!!c.superClass,h),this.finishNode(c,o?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(c){return!c.computed&&!c.static&&(c.key.name==="constructor"||c.key.value==="constructor")}parseClassBody(c,o){this.classScope.enter();let u={hadConstructor:!1,hadSuperClass:c},h=[],f=this.startNode();if(f.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(h.length>0)throw this.raise(Qe.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){h.push(this.parseDecorator());continue}let m=this.startNode();h.length&&(m.decorators=h,this.resetStartLocationFromNode(m,h[0]),h=[]),this.parseClassMember(f,m,u),m.kind==="constructor"&&m.decorators&&m.decorators.length>0&&this.raise(Qe.DecoratorConstructor,{at:m})}}),this.state.strict=o,this.next(),h.length)throw this.raise(Qe.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(f,"ClassBody")}parseClassMemberFromModifier(c,o){let u=this.parseIdentifier(!0);if(this.isClassMethod()){let h=o;return h.kind="method",h.computed=!1,h.key=u,h.static=!1,this.pushClassMethod(c,h,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let h=o;return h.computed=!1,h.key=u,h.static=!1,c.body.push(this.parseClassProperty(h)),!0}return this.resetPreviousNodeTrailingComments(u),!1}parseClassMember(c,o,u){let h=this.isContextual(104);if(h){if(this.parseClassMemberFromModifier(c,o))return;if(this.eat(5)){this.parseClassStaticBlock(c,o);return}}this.parseClassMemberWithIsStatic(c,o,u,h)}parseClassMemberWithIsStatic(c,o,u,h){let f=o,m=o,y=o,D=o,O=o,x=f,v=f;if(o.static=h,this.parsePropertyNamePrefixOperator(o),this.eat(55)){x.kind="method";let T=this.match(136);if(this.parseClassElementName(x),T){this.pushClassPrivateMethod(c,m,!0,!1);return}this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsGenerator,{at:f.key}),this.pushClassMethod(c,f,!0,!1,!1,!1);return}let E=at(this.state.type)&&!this.state.containsEsc,F=this.match(136),k=this.parseClassElementName(o),N=this.state.startLoc;if(this.parsePostMemberNameModifiers(v),this.isClassMethod()){if(x.kind="method",F){this.pushClassPrivateMethod(c,m,!1,!1);return}let T=this.isNonstaticConstructor(f),_=!1;T&&(f.kind="constructor",u.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(Qe.DuplicateConstructor,{at:k}),T&&this.hasPlugin("typescript")&&o.override&&this.raise(Qe.OverrideOnConstructor,{at:k}),u.hadConstructor=!0,_=u.hadSuperClass),this.pushClassMethod(c,f,!1,!1,T,_)}else if(this.isClassProperty())F?this.pushClassPrivateProperty(c,D):this.pushClassProperty(c,y);else if(E&&k.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(k);let T=this.eat(55);v.optional&&this.unexpected(N),x.kind="method";let _=this.match(136);this.parseClassElementName(x),this.parsePostMemberNameModifiers(v),_?this.pushClassPrivateMethod(c,m,T,!0):(this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsAsync,{at:f.key}),this.pushClassMethod(c,f,T,!0,!1,!1))}else if(E&&(k.name==="get"||k.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(k),x.kind=k.name;let T=this.match(136);this.parseClassElementName(f),T?this.pushClassPrivateMethod(c,m,!1,!1):(this.isNonstaticConstructor(f)&&this.raise(Qe.ConstructorIsAccessor,{at:f.key}),this.pushClassMethod(c,f,!1,!1,!1,!1)),this.checkGetterSetterParams(f)}else if(E&&k.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(k);let T=this.match(136);this.parseClassElementName(y),this.pushClassAccessorProperty(c,O,T)}else this.isLineTerminator()?F?this.pushClassPrivateProperty(c,D):this.pushClassProperty(c,y):this.unexpected()}parseClassElementName(c){let{type:o,value:u}=this.state;if((o===130||o===131)&&c.static&&u==="prototype"&&this.raise(Qe.StaticPrototype,{at:this.state.startLoc}),o===136){u==="constructor"&&this.raise(Qe.ConstructorClassPrivateField,{at:this.state.startLoc});let h=this.parsePrivateName();return c.key=h,h}return this.parsePropertyName(c)}parseClassStaticBlock(c,o){var u;this.scope.enter(Ma|Wu|cu);let h=this.state.labels;this.state.labels=[],this.prodParam.enter(ee);let f=o.body=[];this.parseBlockOrModuleBlockBody(f,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=h,c.body.push(this.finishNode(o,"StaticBlock")),(u=o.decorators)!=null&&u.length&&this.raise(Qe.DecoratorStaticBlock,{at:o})}pushClassProperty(c,o){!o.computed&&(o.key.name==="constructor"||o.key.value==="constructor")&&this.raise(Qe.ConstructorClassField,{at:o.key}),c.body.push(this.parseClassProperty(o))}pushClassPrivateProperty(c,o){let u=this.parseClassPrivateProperty(o);c.body.push(u),this.classScope.declarePrivateName(this.getPrivateNameSV(u.key),Ku,u.key.loc.start)}pushClassAccessorProperty(c,o,u){if(!u&&!o.computed){let f=o.key;(f.name==="constructor"||f.value==="constructor")&&this.raise(Qe.ConstructorClassField,{at:f})}let h=this.parseClassAccessorProperty(o);c.body.push(h),u&&this.classScope.declarePrivateName(this.getPrivateNameSV(h.key),Ku,h.key.loc.start)}pushClassMethod(c,o,u,h,f,m){c.body.push(this.parseMethod(o,u,h,f,m,"ClassMethod",!0))}pushClassPrivateMethod(c,o,u,h){let f=this.parseMethod(o,u,h,!1,!1,"ClassPrivateMethod",!0);c.body.push(f);let m=f.kind==="get"?f.static?vc:Cc:f.kind==="set"?f.static?Ju:Ul:Ku;this.declareClassPrivateMethodInScope(f,m)}declareClassPrivateMethodInScope(c,o){this.classScope.declarePrivateName(this.getPrivateNameSV(c.key),o,c.key.loc.start)}parsePostMemberNameModifiers(c){}parseClassPrivateProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassPrivateProperty")}parseClassProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassProperty")}parseClassAccessorProperty(c){return this.parseInitializer(c),this.semicolon(),this.finishNode(c,"ClassAccessorProperty")}parseInitializer(c){this.scope.enter(Ma|cu),this.expressionScope.enter(w()),this.prodParam.enter(ee),c.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(c,o,u){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ip;if(at(this.state.type))c.id=this.parseIdentifier(),o&&this.declareNameFromIdentifier(c.id,h);else if(u||!o)c.id=null;else throw this.raise(Qe.MissingClassName,{at:this.state.startLoc})}parseClassSuper(c){c.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(c,o){let u=this.maybeParseExportDefaultSpecifier(c),h=!u||this.eat(12),f=h&&this.eatExportStar(c),m=f&&this.maybeParseExportNamespaceSpecifier(c),y=h&&(!m||this.eat(12)),D=u||f;if(f&&!m){if(u&&this.unexpected(),o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.parseExportFrom(c,!0),this.finishNode(c,"ExportAllDeclaration")}let O=this.maybeParseExportNamedSpecifiers(c);u&&h&&!f&&!O&&this.unexpected(null,5),m&&y&&this.unexpected(null,97);let x;if(D||O){if(x=!1,o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});this.parseExportFrom(c,D)}else x=this.maybeParseExportDeclaration(c);if(D||O||x){var v;let E=c;if(this.checkExport(E,!0,!1,!!E.source),((v=E.declaration)==null?void 0:v.type)==="ClassDeclaration")this.maybeTakeDecorators(o,E.declaration,E);else if(o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.finishNode(E,"ExportNamedDeclaration")}if(this.eat(65)){let E=c,F=this.parseExportDefaultExpression();if(E.declaration=F,F.type==="ClassDeclaration")this.maybeTakeDecorators(o,F,E);else if(o)throw this.raise(Qe.UnsupportedDecoratorExport,{at:c});return this.checkExport(E,!0,!0),this.finishNode(E,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(c){return this.eat(55)}maybeParseExportDefaultSpecifier(c){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let o=this.startNode();return o.exported=this.parseIdentifier(!0),c.specifiers=[this.finishNode(o,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(c){if(this.isContextual(93)){c.specifiers||(c.specifiers=[]);let o=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),o.exported=this.parseModuleExportName(),c.specifiers.push(this.finishNode(o,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(c){if(this.match(5)){c.specifiers||(c.specifiers=[]);let o=c.exportKind==="type";return c.specifiers.push(...this.parseExportSpecifiers(o)),c.source=null,c.declaration=null,this.hasPlugin("importAssertions")&&(c.assertions=[]),!0}return!1}maybeParseExportDeclaration(c){return this.shouldParseExportDeclaration()?(c.specifiers=[],c.source=null,this.hasPlugin("importAssertions")&&(c.assertions=[]),c.declaration=this.parseExportDeclaration(c),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let c=this.nextTokenStart();return!dh.test(this.input.slice(this.state.pos,c))&&this.isUnparsedContextual(c,"function")}parseExportDefaultExpression(){let c=this.startNode();if(this.match(68))return this.next(),this.parseFunction(c,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(c,13);if(this.match(80))return this.parseClass(c,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Qe.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(Qe.UnsupportedDefaultExport,{at:this.state.startLoc});let o=this.parseMaybeAssignAllowIn();return this.semicolon(),o}parseExportDeclaration(c){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:c}=this.state;if(at(c)){if(c===95&&!this.state.containsEsc||c===99)return!1;if((c===128||c===127)&&!this.state.containsEsc){let{type:h}=this.lookahead();if(at(h)&&h!==97||h===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let o=this.nextTokenStart(),u=this.isUnparsedContextual(o,"from");if(this.input.charCodeAt(o)===44||at(this.state.type)&&u)return!0;if(this.match(65)&&u){let h=this.input.charCodeAt(this.nextTokenStartSince(o+4));return h===34||h===39}return!1}parseExportFrom(c,o){if(this.eatContextual(97)){c.source=this.parseImportSource(),this.checkExport(c);let u=this.maybeParseImportAssertions();u&&(c.assertions=u,this.checkJSONModuleImport(c))}else o&&this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:c}=this.state;return c===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(Qe.DecoratorBeforeExport,{at:this.state.startLoc}),!0):c===74||c===75||c===68||c===80||this.isLet()||this.isAsyncFunction()}checkExport(c,o,u,h){if(o){if(u){if(this.checkDuplicateExports(c,"default"),this.hasPlugin("exportDefaultFrom")){var f;let m=c.declaration;m.type==="Identifier"&&m.name==="from"&&m.end-m.start===4&&!((f=m.extra)!=null&&f.parenthesized)&&this.raise(Qe.ExportDefaultFromAsIdentifier,{at:m})}}else if(c.specifiers&&c.specifiers.length)for(let m of c.specifiers){let{exported:y}=m,D=y.type==="Identifier"?y.name:y.value;if(this.checkDuplicateExports(m,D),!h&&m.local){let{local:O}=m;O.type!=="Identifier"?this.raise(Qe.ExportBindingIsString,{at:m,localName:O.value,exportName:D}):(this.checkReservedWord(O.name,O.loc.start,!0,!1),this.scope.checkLocalExport(O))}}else if(c.declaration){if(c.declaration.type==="FunctionDeclaration"||c.declaration.type==="ClassDeclaration"){let m=c.declaration.id;if(!m)throw new Error("Assertion failure");this.checkDuplicateExports(c,m.name)}else if(c.declaration.type==="VariableDeclaration")for(let m of c.declaration.declarations)this.checkDeclaration(m.id)}}}checkDeclaration(c){if(c.type==="Identifier")this.checkDuplicateExports(c,c.name);else if(c.type==="ObjectPattern")for(let o of c.properties)this.checkDeclaration(o);else if(c.type==="ArrayPattern")for(let o of c.elements)o&&this.checkDeclaration(o);else c.type==="ObjectProperty"?this.checkDeclaration(c.value):c.type==="RestElement"?this.checkDeclaration(c.argument):c.type==="AssignmentPattern"&&this.checkDeclaration(c.left)}checkDuplicateExports(c,o){this.exportedIdentifiers.has(o)&&(o==="default"?this.raise(Qe.DuplicateDefaultExport,{at:c}):this.raise(Qe.DuplicateExport,{at:c,exportName:o})),this.exportedIdentifiers.add(o)}parseExportSpecifiers(c){let o=[],u=!0;for(this.expect(5);!this.eat(8);){if(u)u=!1;else if(this.expect(12),this.eat(8))break;let h=this.isContextual(128),f=this.match(131),m=this.startNode();m.local=this.parseModuleExportName(),o.push(this.parseExportSpecifier(m,f,c,h))}return o}parseExportSpecifier(c,o,u,h){return this.eatContextual(93)?c.exported=this.parseModuleExportName():o?c.exported=we(c.local):c.exported||(c.exported=V(c.local)),this.finishNode(c,"ExportSpecifier")}parseModuleExportName(){if(this.match(131)){let c=this.parseStringLiteral(this.state.value),o=c.value.match(o0);return o&&this.raise(Qe.ModuleExportNameHasLoneSurrogate,{at:c,surrogateCharCode:o[0].charCodeAt(0)}),c}return this.parseIdentifier(!0)}isJSONModuleImport(c){return c.assertions!=null?c.assertions.some(o=>{let{key:u,value:h}=o;return h.value==="json"&&(u.type==="Identifier"?u.name==="type":u.value==="type")}):!1}checkImportReflection(c){if(c.module){var o;(c.specifiers.length!==1||c.specifiers[0].type!=="ImportDefaultSpecifier")&&this.raise(Qe.ImportReflectionNotBinding,{at:c.specifiers[0].loc.start}),((o=c.assertions)==null?void 0:o.length)>0&&this.raise(Qe.ImportReflectionHasAssertion,{at:c.specifiers[0].loc.start})}}checkJSONModuleImport(c){if(this.isJSONModuleImport(c)&&c.type!=="ExportAllDeclaration"){let{specifiers:o}=c;if(o!=null){let u=o.find(h=>{let f;if(h.type==="ExportSpecifier"?f=h.local:h.type==="ImportSpecifier"&&(f=h.imported),f!==void 0)return f.type==="Identifier"?f.name!=="default":f.value!=="default"});u!==void 0&&this.raise(Qe.ImportJSONBindingNotDefault,{at:u.loc.start})}}}parseMaybeImportReflection(c){let o=!1;if(this.isContextual(125)){let u=this.lookahead(),h=u.type;at(h)?(h!==97||this.input.charCodeAt(this.nextTokenStartSince(u.end))===102)&&(o=!0):h!==12&&(o=!0)}o?(this.expectPlugin("importReflection"),this.next(),c.module=!0):this.hasPlugin("importReflection")&&(c.module=!1)}parseImport(c){if(c.specifiers=[],!this.match(131)){this.parseMaybeImportReflection(c);let u=!this.maybeParseDefaultImportSpecifier(c)||this.eat(12),h=u&&this.maybeParseStarImportSpecifier(c);u&&!h&&this.parseNamedImportSpecifiers(c),this.expectContextual(97)}c.source=this.parseImportSource();let o=this.maybeParseImportAssertions();if(o)c.assertions=o;else{let u=this.maybeParseModuleAttributes();u&&(c.attributes=u)}return this.checkImportReflection(c),this.checkJSONModuleImport(c),this.semicolon(),this.finishNode(c,"ImportDeclaration")}parseImportSource(){return this.match(131)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(c){return at(this.state.type)}parseImportSpecifierLocal(c,o,u){o.local=this.parseIdentifier(),c.specifiers.push(this.finishImportSpecifier(o,u))}finishImportSpecifier(c,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ra;return this.checkLVal(c.local,{in:{type:o},binding:u}),this.finishNode(c,o)}parseAssertEntries(){let c=[],o=new Set;do{if(this.match(8))break;let u=this.startNode(),h=this.state.value;if(o.has(h)&&this.raise(Qe.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:h}),o.add(h),this.match(131)?u.key=this.parseStringLiteral(h):u.key=this.parseIdentifier(!0),this.expect(14),!this.match(131))throw this.raise(Qe.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),c.push(this.finishNode(u,"ImportAttribute"))}while(this.eat(12));return c}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let c=[],o=new Set;do{let u=this.startNode();if(u.key=this.parseIdentifier(!0),u.key.name!=="type"&&this.raise(Qe.ModuleAttributeDifferentFromType,{at:u.key}),o.has(u.key.name)&&this.raise(Qe.ModuleAttributesWithDuplicateKeys,{at:u.key,key:u.key.name}),o.add(u.key.name),this.expect(14),!this.match(131))throw this.raise(Qe.ModuleAttributeInvalidValue,{at:this.state.startLoc});u.value=this.parseStringLiteral(this.state.value),this.finishNode(u,"ImportAttribute"),c.push(u)}while(this.eat(12));return c}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let c=this.parseAssertEntries();return this.eat(8),c}maybeParseDefaultImportSpecifier(c){return this.shouldParseDefaultImport(c)?(this.parseImportSpecifierLocal(c,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(c){if(this.match(55)){let o=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(c,o,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(c){let o=!0;for(this.expect(5);!this.eat(8);){if(o)o=!1;else{if(this.eat(14))throw this.raise(Qe.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let u=this.startNode(),h=this.match(131),f=this.isContextual(128);u.imported=this.parseModuleExportName();let m=this.parseImportSpecifier(u,h,c.importKind==="type"||c.importKind==="typeof",f,void 0);c.specifiers.push(m)}}parseImportSpecifier(c,o,u,h,f){if(this.eatContextual(93))c.local=this.parseIdentifier();else{let{imported:m}=c;if(o)throw this.raise(Qe.ImportBindingIsString,{at:c,importName:m.value});this.checkReservedWord(m.name,c.loc.start,!0,!0),c.local||(c.local=V(m))}return this.finishImportSpecifier(c,"ImportSpecifier",f)}isThisParam(c){return c.type==="Identifier"&&c.name==="this"}},$d=class extends u0{constructor(c,o){c=Ur(c),super(c,o),this.options=c,this.initializeScopes(),this.plugins=l0(this.options.plugins),this.filename=c.sourceFilename}getScopeHandler(){return mu}parse(){this.enterInitialScopes();let c=this.startNode(),o=this.startNode();return this.nextToken(),c.errors=null,this.parseTopLevel(c,o),c.errors=this.state.errors,c}};function l0(c){let o=new Map;for(let u of c){let[h,f]=Array.isArray(u)?u:[u,{}];o.has(h)||o.set(h,f||{})}return o}function c0(c,o){var u;if(((u=o)==null?void 0:u.sourceType)==="unambiguous"){o=Object.assign({},o);try{o.sourceType="module";let h=Eh(o,c),f=h.parse();if(h.sawUnambiguousESM)return f;if(h.ambiguousScriptDifferentAst)try{return o.sourceType="script",Eh(o,c).parse()}catch{}else f.program.sourceType="script";return f}catch(h){try{return o.sourceType="script",Eh(o,c).parse()}catch{}throw h}}else return Eh(o,c).parse()}function h0(c,o){let u=Eh(o,c);return u.options.strictMode&&(u.state.strict=!0),u.getExpression()}function Tc(c){let o={};for(let u of Object.keys(c))o[u]=Er(c[u]);return o}var p0=Tc(ot);function Eh(c,o){let u=$d;return c!=null&&c.plugins&&(No(c.plugins),u=f0(c.plugins)),new u(c,o)}var Bd={};function f0(c){let o=Vs.filter(f=>Ui(c,f)),u=o.join("/"),h=Bd[u];if(!h){h=$d;for(let f of o)h=ks[f](h);Bd[u]=h}return h}bn.parse=c0,bn.parseExpression=h0,bn.tokTypes=p0}}),Fl=Ie({"src/language-js/parse/json.js"(bn,qr){ae();var Ur=Al(),Ar=su(),mr=Tl(),Nr=$a();function rr(){let Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:Ti=!0}=Fn;return function(Qr){let{parseExpression:Ni}=Nu(),Fs;try{Fs=Ni(Qr,{tokens:!0,ranges:!0})}catch(qn){throw Nr(qn)}if(!Ti&&Ur(Fs.comments))throw vn(Fs.comments[0],"Comment");return ui(Fs),Fs}}function vn(Fn,Ti){let[Qr,Ni]=[Fn.loc.start,Fn.loc.end].map(Fs=>{let{line:qn,column:ki}=Fs;return{line:qn,column:ki+1}});return Ar(`${Ti} is not allowed in JSON.`,{start:Qr,end:Ni})}function ui(Fn){switch(Fn.type){case"ArrayExpression":for(let Ti of Fn.elements)Ti!==null&&ui(Ti);return;case"ObjectExpression":for(let Ti of Fn.properties)ui(Ti);return;case"ObjectProperty":if(Fn.computed)throw vn(Fn.key,"Computed key");if(Fn.shorthand)throw vn(Fn.key,"Shorthand property");Fn.key.type!=="Identifier"&&ui(Fn.key),ui(Fn.value);return;case"UnaryExpression":{let{operator:Ti,argument:Qr}=Fn;if(Ti!=="+"&&Ti!=="-")throw vn(Fn,`Operator '${Fn.operator}'`);if(Qr.type==="NumericLiteral"||Qr.type==="Identifier"&&(Qr.name==="Infinity"||Qr.name==="NaN"))return;throw vn(Qr,`Operator '${Ti}' before '${Qr.type}'`)}case"Identifier":if(Fn.name!=="Infinity"&&Fn.name!=="NaN"&&Fn.name!=="undefined")throw vn(Fn,`Identifier '${Fn.name}'`);return;case"TemplateLiteral":if(Ur(Fn.expressions))throw vn(Fn.expressions[0],"'TemplateLiteral' with expression");for(let Ti of Fn.quasis)ui(Ti);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw vn(Fn,`'${Fn.type}'`)}}var vi=rr(),gi={json:mr({parse:vi,hasPragma(){return!0}}),json5:mr(vi),"json-stringify":mr({parse:rr({allowComments:!1}),astFormat:"estree-json"})};qr.exports=gi}});ae();var uh=Ee(),pc=be(),fc=Ct(),Oa=Tl(),Iu=$a(),xa=kl(),dc=Fl(),mc={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},lh=["recordAndTuple",{syntaxType:"hash"}],Mu="v8intrinsic",Ru=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],mo=function(bn){let qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mc;return Object.assign(Object.assign({},qr),{},{plugins:[...qr.plugins,...bn]})},Ko=/@(?:no)?flow\b/;function ea(bn,qr){if(qr.filepath&&qr.filepath.endsWith(".js.flow"))return!0;let Ur=pc(bn);Ur&&(bn=bn.slice(Ur.length));let Ar=fc(bn,0);return Ar!==!1&&(bn=bn.slice(0,Ar)),Ko.test(bn)}function jo(bn,qr,Ur){let Ar=Nu()[bn],mr=Ar(qr,Ur),Nr=mr.errors.find(rr=>!ju.has(rr.reasonCode));if(Nr)throw Nr;return mr}function Fo(bn){for(var qr=arguments.length,Ur=new Array(qr>1?qr-1:0),Ar=1;Ar<qr;Ar++)Ur[Ar-1]=arguments[Ar];return function(mr,Nr){let rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((rr.parser==="babel"||rr.parser==="__babel_estree")&&ea(mr,rr))return rr.parser="babel-flow",Ba(mr,Nr,rr);let vn=Ur;rr.__babelSourceType==="script"&&(vn=vn.map(Fn=>Object.assign(Object.assign({},Fn),{},{sourceType:"script"}))),/#[[{]/.test(mr)&&(vn=vn.map(Fn=>mo([lh],Fn)));let ui=/%[A-Z]/.test(mr);mr.includes("|>")?vn=(ui?[...Ru,Mu]:Ru).flatMap(Fn=>vn.map(Ti=>mo([Fn],Ti))):ui&&(vn=vn.map(Fn=>mo([Mu],Fn)));let{result:vi,error:gi}=uh(...vn.map(Fn=>()=>jo(bn,mr,Fn)));if(!vi)throw Iu(gi);return rr.originalText=mr,xa(vi,rr)}}var fi=Fo("parse",mo(["jsx","flow"])),Ba=Fo("parse",mo(["jsx",["flow",{all:!0,enums:!0}]])),_l=Fo("parse",mo(["jsx","typescript"]),mo(["typescript"])),ou=Fo("parse",mo(["jsx","flow","estree"])),Qu=Fo("parseExpression",mo(["jsx"])),Na=Fo("parseExpression",mo(["typescript"])),ju=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"]),Lu=Oa(fi),au=Oa(_l),Xu=Oa(Qu),$l=Oa(Na);xt.exports={parsers:Object.assign(Object.assign({babel:Lu,"babel-flow":Oa(Ba),"babel-ts":au},dc),{},{__js_expression:Xu,__vue_expression:Xu,__vue_ts_expression:$l,__vue_event_binding:Lu,__vue_ts_event_binding:au,__babel_estree:Oa(ou)})}});return mi()})})(Sw);var l6=Sw.exports;const c6=Qg(l6);function h6(r,e,t){const n={css:o6,html:u6,babel:c6};return ps(()=>{if(!Do(e))return Do(r)||"/* empty */";try{return i6.format(Do(r)||"",{parser:t,plugins:[n[t]],singleQuote:!0,semi:!1})}catch(i){return console.error(i),`/* Error on prettifying: ${i.message} */
|
|
277
277
|
${Do(r)||""}`}})}function p6(r,e=!0){return h6(r,e,"css")}const f6=bo({__name:"Copy",setup(r){const{copy:e,copied:t}=Y3();return(n,i)=>tc(n.$slots,"default",{copy:Ai(e),copied:Ai(t)})}}),d6=["top","right","bottom","left"],sv=["start","end"],ov=d6.reduce((r,e)=>r.concat(e,e+"-"+sv[0],e+"-"+sv[1]),[]),pd=Math.min,kh=Math.max,m6={left:"right",right:"left",bottom:"top",top:"bottom"},g6={start:"end",end:"start"};function yD(r,e,t){return kh(r,pd(e,t))}function Kh(r,e){return typeof r=="function"?r(e):r}function Cl(r){return r.split("-")[0]}function Tu(r){return r.split("-")[1]}function Ew(r){return r==="x"?"y":"x"}function RO(r){return r==="y"?"height":"width"}function _d(r){return["top","bottom"].includes(Cl(r))?"y":"x"}function QO(r){return Ew(_d(r))}function ww(r,e,t){t===void 0&&(t=!1);const n=Tu(r),i=QO(r),s=RO(i);let a=i==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=bg(a)),[a,bg(a)]}function y6(r){const e=bg(r);return[xg(r),e,xg(e)]}function xg(r){return r.replace(/start|end/g,e=>g6[e])}function D6(r,e,t){const n=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(r){case"top":case"bottom":return t?e?i:n:e?n:i;case"left":case"right":return e?s:a;default:return[]}}function O6(r,e,t,n){const i=Tu(r);let s=D6(Cl(r),t==="start",n);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(xg)))),s}function bg(r){return r.replace(/left|right|bottom|top/g,e=>m6[e])}function x6(r){return{top:0,right:0,bottom:0,left:0,...r}}function Aw(r){return typeof r!="number"?x6(r):{top:r,right:r,bottom:r,left:r}}function Mf(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function av(r,e,t){let{reference:n,floating:i}=r;const s=_d(e),a=QO(e),l=RO(a),p=Cl(e),d=s==="y",g=n.x+n.width/2-i.width/2,b=n.y+n.height/2-i.height/2,S=n[l]/2-i[l]/2;let I;switch(p){case"top":I={x:g,y:n.y-i.height};break;case"bottom":I={x:g,y:n.y+n.height};break;case"right":I={x:n.x+n.width,y:b};break;case"left":I={x:n.x-i.width,y:b};break;default:I={x:n.x,y:n.y}}switch(Tu(e)){case"start":I[a]-=S*(t&&d?-1:1);break;case"end":I[a]+=S*(t&&d?-1:1);break}return I}const b6=async(r,e,t)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=t,l=s.filter(Boolean),p=await(a.isRTL==null?void 0:a.isRTL(e));let d=await a.getElementRects({reference:r,floating:e,strategy:i}),{x:g,y:b}=av(d,n,p),S=n,I={},H=0;for(let ge=0;ge<l.length;ge++){const{name:ke,fn:Oe}=l[ge],{x:Ue,y:Ot,data:pt,reset:vt}=await Oe({x:g,y:b,initialPlacement:n,placement:S,strategy:i,middlewareData:I,rects:d,platform:a,elements:{reference:r,floating:e}});if(g=Ue??g,b=Ot??b,I={...I,[ke]:{...I[ke],...pt}},vt&&H<=50){H++,typeof vt=="object"&&(vt.placement&&(S=vt.placement),vt.rects&&(d=vt.rects===!0?await a.getElementRects({reference:r,floating:e,strategy:i}):vt.rects),{x:g,y:b}=av(d,S,p)),ge=-1;continue}}return{x:g,y:b,placement:S,strategy:i,middlewareData:I}};async function t0(r,e){var t;e===void 0&&(e={});const{x:n,y:i,platform:s,rects:a,elements:l,strategy:p}=r,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:S=!1,padding:I=0}=Kh(e,r),H=Aw(I),ke=l[S?b==="floating"?"reference":"floating":b],Oe=Mf(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(ke)))==null||t?ke:ke.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:g,strategy:p})),Ue=b==="floating"?{...a.floating,x:n,y:i}:a.reference,Ot=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),pt=await(s.isElement==null?void 0:s.isElement(Ot))?await(s.getScale==null?void 0:s.getScale(Ot))||{x:1,y:1}:{x:1,y:1},vt=Mf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:Ue,offsetParent:Ot,strategy:p}):Ue);return{top:(Oe.top-vt.top+H.top)/pt.y,bottom:(vt.bottom-Oe.bottom+H.bottom)/pt.y,left:(Oe.left-vt.left+H.left)/pt.x,right:(vt.right-Oe.right+H.right)/pt.x}}const v6=r=>({name:"arrow",options:r,async fn(e){const{x:t,y:n,placement:i,rects:s,platform:a,elements:l}=e,{element:p,padding:d=0}=Kh(r,e)||{};if(p==null)return{};const g=Aw(d),b={x:t,y:n},S=QO(i),I=RO(S),H=await a.getDimensions(p),ge=S==="y",ke=ge?"top":"left",Oe=ge?"bottom":"right",Ue=ge?"clientHeight":"clientWidth",Ot=s.reference[I]+s.reference[S]-b[S]-s.floating[I],pt=b[S]-s.reference[S],vt=await(a.getOffsetParent==null?void 0:a.getOffsetParent(p));let Yt=vt?vt[Ue]:0;(!Yt||!await(a.isElement==null?void 0:a.isElement(vt)))&&(Yt=l.floating[Ue]||s.floating[I]);const ir=Ot/2-pt/2,Cr=Yt/2-H[I]/2-1,Tr=pd(g[ke],Cr),Xr=pd(g[Oe],Cr),ln=Tr,Ln=Yt-H[I]-Xr,hi=Yt/2-H[I]/2+ir,$i=yD(ln,hi,Ln),Pn=Tu(i)!=null&&hi!=$i&&s.reference[I]/2-(hi<ln?Tr:Xr)-H[I]/2<0?hi<ln?ln-hi:Ln-hi:0;return{[S]:b[S]-Pn,data:{[S]:$i,centerOffset:hi-$i+Pn}}}});function C6(r,e,t){return(r?[...t.filter(i=>Tu(i)===r),...t.filter(i=>Tu(i)!==r)]:t.filter(i=>Cl(i)===i)).filter(i=>r?Tu(i)===r||(e?xg(i)!==i:!1):!0)}const S6=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,n,i;const{rects:s,middlewareData:a,placement:l,platform:p,elements:d}=e,{crossAxis:g=!1,alignment:b,allowedPlacements:S=ov,autoAlignment:I=!0,...H}=Kh(r,e),ge=b!==void 0||S===ov?C6(b||null,I,S):S,ke=await t0(e,H),Oe=((t=a.autoPlacement)==null?void 0:t.index)||0,Ue=ge[Oe];if(Ue==null)return{};const Ot=ww(Ue,s,await(p.isRTL==null?void 0:p.isRTL(d.floating)));if(l!==Ue)return{reset:{placement:ge[0]}};const pt=[ke[Cl(Ue)],ke[Ot[0]],ke[Ot[1]]],vt=[...((n=a.autoPlacement)==null?void 0:n.overflows)||[],{placement:Ue,overflows:pt}],Yt=ge[Oe+1];if(Yt)return{data:{index:Oe+1,overflows:vt},reset:{placement:Yt}};const ir=vt.map(Xr=>{const ln=Tu(Xr.placement);return[Xr.placement,ln&&g?Xr.overflows.slice(0,2).reduce((Ln,hi)=>Ln+hi,0):Xr.overflows[0],Xr.overflows]}).sort((Xr,ln)=>Xr[1]-ln[1]),Tr=((i=ir.filter(Xr=>Xr[2].slice(0,Tu(Xr[0])?2:3).every(ln=>ln<=0))[0])==null?void 0:i[0])||ir[0][0];return Tr!==l?{data:{index:Oe+1,overflows:vt},reset:{placement:Tr}}:{}}}},E6=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t;const{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:p}=e,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:I="none",flipAlignment:H=!0,...ge}=Kh(r,e),ke=Cl(n),Oe=Cl(a)===a,Ue=await(l.isRTL==null?void 0:l.isRTL(p.floating)),Ot=b||(Oe||!H?[bg(a)]:y6(a));!b&&I!=="none"&&Ot.push(...O6(a,H,I,Ue));const pt=[a,...Ot],vt=await t0(e,ge),Yt=[];let ir=((t=i.flip)==null?void 0:t.overflows)||[];if(d&&Yt.push(vt[ke]),g){const ln=ww(n,s,Ue);Yt.push(vt[ln[0]],vt[ln[1]])}if(ir=[...ir,{placement:n,overflows:Yt}],!Yt.every(ln=>ln<=0)){var Cr,Tr;const ln=(((Cr=i.flip)==null?void 0:Cr.index)||0)+1,Ln=pt[ln];if(Ln)return{data:{index:ln,overflows:ir},reset:{placement:Ln}};let hi=(Tr=ir.filter($i=>$i.overflows[0]<=0).sort(($i,Nn)=>$i.overflows[1]-Nn.overflows[1])[0])==null?void 0:Tr.placement;if(!hi)switch(S){case"bestFit":{var Xr;const $i=(Xr=ir.map(Nn=>[Nn.placement,Nn.overflows.filter(Pn=>Pn>0).reduce((Pn,Vn)=>Pn+Vn,0)]).sort((Nn,Pn)=>Nn[1]-Pn[1])[0])==null?void 0:Xr[0];$i&&(hi=$i);break}case"initialPlacement":hi=a;break}if(n!==hi)return{reset:{placement:hi}}}return{}}}};async function w6(r,e){const{placement:t,platform:n,elements:i}=r,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Cl(t),l=Tu(t),p=_d(t)==="y",d=["left","top"].includes(a)?-1:1,g=s&&p?-1:1,b=Kh(e,r);let{mainAxis:S,crossAxis:I,alignmentAxis:H}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return l&&typeof H=="number"&&(I=l==="end"?H*-1:H),p?{x:I*g,y:S*d}:{x:S*d,y:I*g}}const A6=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){const{x:t,y:n}=e,i=await w6(e,r);return{x:t+i.x,y:n+i.y,data:i}}}},T6=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:ke=>{let{x:Oe,y:Ue}=ke;return{x:Oe,y:Ue}}},...p}=Kh(r,e),d={x:t,y:n},g=await t0(e,p),b=_d(Cl(i)),S=Ew(b);let I=d[S],H=d[b];if(s){const ke=S==="y"?"top":"left",Oe=S==="y"?"bottom":"right",Ue=I+g[ke],Ot=I-g[Oe];I=yD(Ue,I,Ot)}if(a){const ke=b==="y"?"top":"left",Oe=b==="y"?"bottom":"right",Ue=H+g[ke],Ot=H-g[Oe];H=yD(Ue,H,Ot)}const ge=l.fn({...e,[S]:I,[b]:H});return{...ge,data:{x:ge.x-t,y:ge.y-n}}}}},P6=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){const{placement:t,rects:n,platform:i,elements:s}=e,{apply:a=()=>{},...l}=Kh(r,e),p=await t0(e,l),d=Cl(t),g=Tu(t),b=_d(t)==="y",{width:S,height:I}=n.floating;let H,ge;d==="top"||d==="bottom"?(H=d,ge=g===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(ge=d,H=g==="end"?"top":"bottom");const ke=I-p[H],Oe=S-p[ge],Ue=!e.middlewareData.shift;let Ot=ke,pt=Oe;if(b){const Yt=S-p.left-p.right;pt=g||Ue?pd(Oe,Yt):Yt}else{const Yt=I-p.top-p.bottom;Ot=g||Ue?pd(ke,Yt):Yt}if(Ue&&!g){const Yt=kh(p.left,0),ir=kh(p.right,0),Cr=kh(p.top,0),Tr=kh(p.bottom,0);b?pt=S-2*(Yt!==0||ir!==0?Yt+ir:kh(p.left,p.right)):Ot=I-2*(Cr!==0||Tr!==0?Cr+Tr:kh(p.top,p.bottom))}await a({...e,availableWidth:pt,availableHeight:Ot});const vt=await i.getDimensions(s.floating);return S!==vt.width||I!==vt.height?{reset:{rects:!0}}:{}}}};function eu(r){var e;return((e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ol(r){return eu(r).getComputedStyle(r)}const uv=Math.min,Rf=Math.max,vg=Math.round;function Tw(r){const e=Ol(r);let t=parseFloat(e.width),n=parseFloat(e.height);const i=r.offsetWidth,s=r.offsetHeight,a=vg(t)!==i||vg(n)!==s;return a&&(t=i,n=s),{width:t,height:n,fallback:a}}function sh(r){return kw(r)?(r.nodeName||"").toLowerCase():""}let pm;function Pw(){if(pm)return pm;const r=navigator.userAgentData;return r&&Array.isArray(r.brands)?(pm=r.brands.map(e=>e.brand+"/"+e.version).join(" "),pm):navigator.userAgent}function xl(r){return r instanceof eu(r).HTMLElement}function Zc(r){return r instanceof eu(r).Element}function kw(r){return r instanceof eu(r).Node}function lv(r){return typeof ShadowRoot>"u"?!1:r instanceof eu(r).ShadowRoot||r instanceof ShadowRoot}function r0(r){const{overflow:e,overflowX:t,overflowY:n,display:i}=Ol(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(i)}function k6(r){return["table","td","th"].includes(sh(r))}function DD(r){const e=/firefox/i.test(Pw()),t=Ol(r),n=t.backdropFilter||t.WebkitBackdropFilter;return t.transform!=="none"||t.perspective!=="none"||!!n&&n!=="none"||e&&t.willChange==="filter"||e&&!!t.filter&&t.filter!=="none"||["transform","perspective"].some(i=>t.willChange.includes(i))||["paint","layout","strict","content"].some(i=>{const s=t.contain;return s!=null&&s.includes(i)})}function Fw(){return!/^((?!chrome|android).)*safari/i.test(Pw())}function jO(r){return["html","body","#document"].includes(sh(r))}function _w(r){return Zc(r)?r:r.contextElement}const $w={x:1,y:1};function Xp(r){const e=_w(r);if(!xl(e))return $w;const t=e.getBoundingClientRect(),{width:n,height:i,fallback:s}=Tw(e);let a=(s?vg(t.width):t.width)/n,l=(s?vg(t.height):t.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function fd(r,e,t,n){var i,s;e===void 0&&(e=!1),t===void 0&&(t=!1);const a=r.getBoundingClientRect(),l=_w(r);let p=$w;e&&(n?Zc(n)&&(p=Xp(n)):p=Xp(r));const d=l?eu(l):window,g=!Fw()&&t;let b=(a.left+(g&&((i=d.visualViewport)==null?void 0:i.offsetLeft)||0))/p.x,S=(a.top+(g&&((s=d.visualViewport)==null?void 0:s.offsetTop)||0))/p.y,I=a.width/p.x,H=a.height/p.y;if(l){const ge=eu(l),ke=n&&Zc(n)?eu(n):n;let Oe=ge.frameElement;for(;Oe&&n&&ke!==ge;){const Ue=Xp(Oe),Ot=Oe.getBoundingClientRect(),pt=getComputedStyle(Oe);Ot.x+=(Oe.clientLeft+parseFloat(pt.paddingLeft))*Ue.x,Ot.y+=(Oe.clientTop+parseFloat(pt.paddingTop))*Ue.y,b*=Ue.x,S*=Ue.y,I*=Ue.x,H*=Ue.y,b+=Ot.x,S+=Ot.y,Oe=eu(Oe).frameElement}}return{width:I,height:H,top:S,right:b+I,bottom:S+H,left:b,x:b,y:S}}function Yc(r){return((kw(r)?r.ownerDocument:r.document)||window.document).documentElement}function n0(r){return Zc(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Bw(r){return fd(Yc(r)).left+n0(r).scrollLeft}function dd(r){if(sh(r)==="html")return r;const e=r.assignedSlot||r.parentNode||lv(r)&&r.host||Yc(r);return lv(e)?e.host:e}function Nw(r){const e=dd(r);return jO(e)?e.ownerDocument.body:xl(e)&&r0(e)?e:Nw(e)}function Cg(r,e){var t;e===void 0&&(e=[]);const n=Nw(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),s=eu(n);return i?e.concat(s,s.visualViewport||[],r0(n)?n:[]):e.concat(n,Cg(n))}function cv(r,e,t){return e==="viewport"?Mf(function(n,i){const s=eu(n),a=Yc(n),l=s.visualViewport;let p=a.clientWidth,d=a.clientHeight,g=0,b=0;if(l){p=l.width,d=l.height;const S=Fw();(S||!S&&i==="fixed")&&(g=l.offsetLeft,b=l.offsetTop)}return{width:p,height:d,x:g,y:b}}(r,t)):Zc(e)?Mf(function(n,i){const s=fd(n,!0,i==="fixed"),a=s.top+n.clientTop,l=s.left+n.clientLeft,p=xl(n)?Xp(n):{x:1,y:1};return{width:n.clientWidth*p.x,height:n.clientHeight*p.y,x:l*p.x,y:a*p.y}}(e,t)):Mf(function(n){const i=Yc(n),s=n0(n),a=n.ownerDocument.body,l=Rf(i.scrollWidth,i.clientWidth,a.scrollWidth,a.clientWidth),p=Rf(i.scrollHeight,i.clientHeight,a.scrollHeight,a.clientHeight);let d=-s.scrollLeft+Bw(n);const g=-s.scrollTop;return Ol(a).direction==="rtl"&&(d+=Rf(i.clientWidth,a.clientWidth)-l),{width:l,height:p,x:d,y:g}}(Yc(r)))}function hv(r){return xl(r)&&Ol(r).position!=="fixed"?r.offsetParent:null}function pv(r){const e=eu(r);let t=hv(r);for(;t&&k6(t)&&Ol(t).position==="static";)t=hv(t);return t&&(sh(t)==="html"||sh(t)==="body"&&Ol(t).position==="static"&&!DD(t))?e:t||function(n){let i=dd(n);for(;xl(i)&&!jO(i);){if(DD(i))return i;i=dd(i)}return null}(r)||e}function F6(r,e,t){const n=xl(e),i=Yc(e),s=fd(r,!0,t==="fixed",e);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(n||!n&&t!=="fixed")if((sh(e)!=="body"||r0(i))&&(a=n0(e)),xl(e)){const p=fd(e,!0);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else i&&(l.x=Bw(i));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}const _6={getClippingRect:function(r){let{element:e,boundary:t,rootBoundary:n,strategy:i}=r;const s=t==="clippingAncestors"?function(d,g){const b=g.get(d);if(b)return b;let S=Cg(d).filter(ke=>Zc(ke)&&sh(ke)!=="body"),I=null;const H=Ol(d).position==="fixed";let ge=H?dd(d):d;for(;Zc(ge)&&!jO(ge);){const ke=Ol(ge),Oe=DD(ge);(H?Oe||I:Oe||ke.position!=="static"||!I||!["absolute","fixed"].includes(I.position))?I=ke:S=S.filter(Ue=>Ue!==ge),ge=dd(ge)}return g.set(d,S),S}(e,this._c):[].concat(t),a=[...s,n],l=a[0],p=a.reduce((d,g)=>{const b=cv(e,g,i);return d.top=Rf(b.top,d.top),d.right=uv(b.right,d.right),d.bottom=uv(b.bottom,d.bottom),d.left=Rf(b.left,d.left),d},cv(e,l,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(r){let{rect:e,offsetParent:t,strategy:n}=r;const i=xl(t),s=Yc(t);if(t===s)return e;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const p={x:0,y:0};if((i||!i&&n!=="fixed")&&((sh(t)!=="body"||r0(s))&&(a=n0(t)),xl(t))){const d=fd(t);l=Xp(t),p.x=d.x+t.clientLeft,p.y=d.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+p.x,y:e.y*l.y-a.scrollTop*l.y+p.y}},isElement:Zc,getDimensions:function(r){return xl(r)?Tw(r):r.getBoundingClientRect()},getOffsetParent:pv,getDocumentElement:Yc,getScale:Xp,async getElementRects(r){let{reference:e,floating:t,strategy:n}=r;const i=this.getOffsetParent||pv,s=this.getDimensions;return{reference:F6(e,await i(t),n),floating:{x:0,y:0,...await s(t)}}},getClientRects:r=>Array.from(r.getClientRects()),isRTL:r=>Ol(r).direction==="rtl"},$6=(r,e,t)=>{const n=new Map,i={platform:_6,...t},s={...i.platform,_c:n};return b6(r,e,{...i,platform:s})},Lh={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:r=>[...r,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function OD(r,e){let t=Lh.themes[r]||{},n;do n=t[e],typeof n>"u"?t.$extend?t=Lh.themes[t.$extend]||{}:(t=null,n=Lh[e]):t=null;while(t);return n}function B6(r){const e=[r];let t=Lh.themes[r]||{};do t.$extend&&!t.$resetCss?(e.push(t.$extend),t=Lh.themes[t.$extend]||{}):t=null;while(t);return e.map(n=>`v-popper--theme-${n}`)}function fv(r){const e=[r];let t=Lh.themes[r]||{};do t.$extend?(e.push(t.$extend),t=Lh.themes[t.$extend]||{}):t=null;while(t);return e}let Hp=!1;if(typeof window<"u"){Hp=!1;try{const r=Object.defineProperty({},"passive",{get(){Hp=!0}});window.addEventListener("test",null,r)}catch{}}let Iw=!1;typeof window<"u"&&typeof navigator<"u"&&(Iw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const N6=["auto","top","bottom","left","right"].reduce((r,e)=>r.concat([e,`${e}-start`,`${e}-end`]),[]),dv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},mv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function gv(r,e){const t=r.indexOf(e);t!==-1&&r.splice(t,1)}function ny(){return new Promise(r=>requestAnimationFrame(()=>{requestAnimationFrame(r)}))}const bu=[];let Ph=null;const yv={};function Dv(r){let e=yv[r];return e||(e=yv[r]=[]),e}let xD=function(){};typeof window<"u"&&(xD=window.Element);function hs(r){return function(e){return OD(e.theme,r)}}const iy="__floating-vue__popper",Mw=()=>bo({name:"VPopper",provide(){return{[iy]:{parentPopper:this}}},inject:{[iy]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:hs("disabled")},positioningDisabled:{type:Boolean,default:hs("positioningDisabled")},placement:{type:String,default:hs("placement"),validator:r=>N6.includes(r)},delay:{type:[String,Number,Object],default:hs("delay")},distance:{type:[Number,String],default:hs("distance")},skidding:{type:[Number,String],default:hs("skidding")},triggers:{type:Array,default:hs("triggers")},showTriggers:{type:[Array,Function],default:hs("showTriggers")},hideTriggers:{type:[Array,Function],default:hs("hideTriggers")},popperTriggers:{type:Array,default:hs("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:hs("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:hs("popperHideTriggers")},container:{type:[String,Object,xD,Boolean],default:hs("container")},boundary:{type:[String,xD],default:hs("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),default:hs("strategy")},autoHide:{type:[Boolean,Function],default:hs("autoHide")},handleResize:{type:Boolean,default:hs("handleResize")},instantMove:{type:Boolean,default:hs("instantMove")},eagerMount:{type:Boolean,default:hs("eagerMount")},popperClass:{type:[String,Array,Object],default:hs("popperClass")},computeTransformOrigin:{type:Boolean,default:hs("computeTransformOrigin")},autoMinSize:{type:Boolean,default:hs("autoMinSize")},autoSize:{type:[Boolean,String],default:hs("autoSize")},autoMaxSize:{type:Boolean,default:hs("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:hs("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:hs("preventOverflow")},overflowPadding:{type:[Number,String],default:hs("overflowPadding")},arrowPadding:{type:[Number,String],default:hs("arrowPadding")},arrowOverflow:{type:Boolean,default:hs("arrowOverflow")},flip:{type:Boolean,default:hs("flip")},shift:{type:Boolean,default:hs("shift")},shiftCrossAxis:{type:Boolean,default:hs("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:hs("noAutoFocus")},disposeTimeout:{type:Number,default:hs("disposeTimeout")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var r;return(r=this[iy])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,e;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},...["triggers","positioningDisabled"].reduce((r,e)=>(r[e]="$_refreshListeners",r),{}),...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,e)=>(r[e]="$_computePosition",r),{})},created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:r=null,skipDelay:e=!1,force:t=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(t||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:e=!1}={}){var t;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((t=this.parentPopper)==null?void 0:t.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((r=this.referenceNode)==null?void 0:r.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.$_isDisposed||this.positioningDisabled)return;const r={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&r.middleware.push(A6({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?r.middleware.push(S6({alignment:this.placement.split("-")[1]??""})):r.placement=this.placement,this.preventOverflow&&(this.shift&&r.middleware.push(T6({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&r.middleware.push(E6({padding:this.overflowPadding,boundary:this.boundary}))),r.middleware.push(v6({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&r.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:i,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return n.startsWith("top")||n.startsWith("bottom")?a=Math.abs(l)>i.reference.width/2:a=Math.abs(l)>i.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;r.middleware.push({name:"autoSize",fn:({rects:i,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let p,d;return s.startsWith("top")||s.startsWith("bottom")?p=i.reference.width:d=i.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=p!=null?`${p}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=d!=null?`${d}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,r.middleware.push(P6({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:n,availableHeight:i})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=i!=null?`${i}px`:null}})));const t=await $6(this.$_referenceNode,this.$_popperNode,r);Object.assign(this.result,{x:t.x,y:t.y,placement:t.placement,strategy:t.strategy,arrow:{...t.middlewareData.arrow,...t.middlewareData.arrowOverflow}})},$_scheduleShow(r=null,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Ph&&this.instantMove&&Ph.instantMove&&Ph!==this.parentPopper){Ph.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Ph=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const e=this.delay;return parseInt(e&&e[r]||e||0)},async $_applyShow(r=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),await ny(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Cg(this.$_referenceNode),...Cg(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(".v-popper__wrapper"),n=t.parentNode.getBoundingClientRect(),i=e.x+e.width/2-(n.left+t.offsetLeft),s=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${i}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let e;for(let t=0;t<bu.length;t++)e=bu[t],e.showGroup!==r&&(e.hide(),e.$emit("close-group"))}bu.push(this),document.body.classList.add("v-popper--some-open");for(const e of fv(this.theme))Dv(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ny(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(r=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,gv(bu,this),bu.length===0&&document.body.classList.remove("v-popper--some-open");for(const t of fv(this.theme)){const n=Dv(t);gv(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${t}`)}Ph===this&&(Ph=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ny(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=t=>{this.isShown&&!this.$_hideInProgress||(t.usedByTooltip=!0,!this.$_preventShow&&this.show({event:t}))};this.$_registerTriggerListeners(this.$_targetNodes,dv,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],dv,this.popperTriggers,this.popperShowTriggers,r);const e=t=>{t.usedByTooltip||this.hide({event:t})};this.$_registerTriggerListeners(this.$_targetNodes,mv,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],mv,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(r,e,t){this.$_events.push({targetNodes:r,eventType:e,handler:t}),r.forEach(n=>n.addEventListener(e,t,Hp?{passive:!0}:void 0))},$_registerTriggerListeners(r,e,t,n,i){let s=t;n!=null&&(s=typeof n=="function"?n(s):n),s.forEach(a=>{const l=e[a];l&&this.$_registerEventListeners(r,l,i)})},$_removeEventListeners(r){const e=[];this.$_events.forEach(t=>{const{targetNodes:n,eventType:i,handler:s}=t;!r||r===i?n.forEach(a=>a.removeEventListener(i,s)):e.push(t)}),this.$_events=e},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,e=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,e){for(const t of this.$_targetNodes){const n=t.getAttribute(r);n&&(t.removeAttribute(r),t.setAttribute(e,n))}},$_applyAttrsToTarget(r){for(const e of this.$_targetNodes)for(const t in r){const n=r[t];n==null?e.removeAttribute(t):e.setAttribute(t,n)}},$_updateParentShownChildren(r){let e=this.parentPopper;for(;e;)r?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.$_pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(Qf>=r.left&&Qf<=r.right&&jf>=r.top&&jf<=r.bottom){const e=this.$_popperNode.getBoundingClientRect(),t=Qf-$c,n=jf-Bc,i=e.left+e.width/2-$c+(e.top+e.height/2)-Bc+e.width+e.height,s=$c+t*i,a=Bc+n*i;return fm($c,Bc,s,a,e.left,e.top,e.left,e.bottom)||fm($c,Bc,s,a,e.left,e.top,e.right,e.top)||fm($c,Bc,s,a,e.right,e.top,e.right,e.bottom)||fm($c,Bc,s,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Iw?(document.addEventListener("touchstart",Ov,Hp?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",M6,Hp?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Ov,!0),window.addEventListener("click",I6,!0)),window.addEventListener("resize",j6));function Ov(r){for(let e=0;e<bu.length;e++){const t=bu[e];try{const n=t.popperNode();t.$_mouseDownContains=n.contains(r.target)}catch{}}}function I6(r){Rw(r)}function M6(r){Rw(r,!0)}function Rw(r,e=!1){const t={};for(let n=bu.length-1;n>=0;n--){const i=bu[n];try{const s=i.$_containsGlobalTarget=R6(i,r);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!t[i.randomId]&&xv(i,s,r)){if(i.$_handleGlobalClose(r,e),!r.closeAllPopover&&r.closePopover&&s){let l=i.parentPopper;for(;l;)t[l.randomId]=!0,l=l.parentPopper;return}let a=i.parentPopper;for(;a&&xv(a,a.$_containsGlobalTarget,r);)a.$_handleGlobalClose(r,e),a=a.parentPopper}})}catch{}}}function R6(r,e){const t=r.popperNode();return r.$_mouseDownContains||t.contains(e.target)}function xv(r,e,t){return t.closeAllPopover||t.closePopover&&e||Q6(r,t)&&!e}function Q6(r,e){if(typeof r.autoHide=="function"){const t=r.autoHide(e);return r.lastAutoHide=t,t}return r.autoHide}function j6(r){for(let e=0;e<bu.length;e++)bu[e].$_computePosition(r)}let $c=0,Bc=0,Qf=0,jf=0;typeof window<"u"&&window.addEventListener("mousemove",r=>{$c=Qf,Bc=jf,Qf=r.clientX,jf=r.clientY},Hp?{passive:!0}:void 0);function fm(r,e,t,n,i,s,a,l){const p=((a-i)*(e-s)-(l-s)*(r-i))/((l-s)*(t-r)-(a-i)*(n-e)),d=((t-r)*(e-s)-(n-e)*(r-i))/((l-s)*(t-r)-(a-i)*(n-e));return p>=0&&p<=1&&d>=0&&d<=1}const L6={extends:Mw()},LO=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};function X6(r,e,t,n,i,s){return bi(),is("div",{ref:"reference",class:Fa(["v-popper",{"v-popper--shown":r.slotData.isShown}])},[tc(r.$slots,"default",fA(PC(r.slotData)))],2)}const V6=LO(L6,[["render",X6]]);function U6(){var r=window.navigator.userAgent,e=r.indexOf("MSIE ");if(e>0)return parseInt(r.substring(e+5,r.indexOf(".",e)),10);var t=r.indexOf("Trident/");if(t>0){var n=r.indexOf("rv:");return parseInt(r.substring(n+3,r.indexOf(".",n)),10)}var i=r.indexOf("Edge/");return i>0?parseInt(r.substring(i+5,r.indexOf(".",i)),10):-1}let $m;function bD(){bD.init||(bD.init=!0,$m=U6()!==-1)}var i0={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){bD(),Gh(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const r=document.createElement("object");this._resizeObject=r,r.setAttribute("aria-hidden","true"),r.setAttribute("tabindex",-1),r.onload=this.addResizeHandlers,r.type="text/html",$m&&this.$el.appendChild(r),r.data="about:blank",$m||this.$el.appendChild(r)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!$m&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const q6=hT();lT("data-v-b329ee4c");const z6={class:"resize-observer",tabindex:"-1"};cT();const W6=q6((r,e,t,n,i,s)=>(bi(),Yo("div",z6)));i0.render=W6;i0.__scopeId="data-v-b329ee4c";i0.__file="src/components/ResizeObserver.vue";const Qw=(r="theme")=>({computed:{themeClass(){return B6(this[r])}}}),Z6=bo({name:"VPopperContent",components:{ResizeObserver:i0},mixins:[Qw()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(r){return r!=null&&!isNaN(r)?`${r}px`:null}}}),Y6=["id","aria-hidden","tabindex","data-popper-placement"],G6={ref:"inner",class:"v-popper__inner"},H6=nn("div",{class:"v-popper__arrow-outer"},null,-1),J6=nn("div",{class:"v-popper__arrow-inner"},null,-1),K6=[H6,J6];function e9(r,e,t,n,i,s){const a=Xh("ResizeObserver");return bi(),is("div",{id:r.popperId,ref:"popover",class:Fa(["v-popper__popper",[r.themeClass,r.classes.popperClass,{"v-popper__popper--shown":r.shown,"v-popper__popper--hidden":!r.shown,"v-popper__popper--show-from":r.classes.showFrom,"v-popper__popper--show-to":r.classes.showTo,"v-popper__popper--hide-from":r.classes.hideFrom,"v-popper__popper--hide-to":r.classes.hideTo,"v-popper__popper--skip-transition":r.skipTransition,"v-popper__popper--arrow-overflow":r.result&&r.result.arrow.overflow,"v-popper__popper--no-positioning":!r.result}]]),style:ml(r.result?{position:r.result.strategy,transform:`translate3d(${Math.round(r.result.x)}px,${Math.round(r.result.y)}px,0)`}:void 0),"aria-hidden":r.shown?"false":"true",tabindex:r.autoHide?0:void 0,"data-popper-placement":r.result?r.result.placement:void 0,onKeyup:e[2]||(e[2]=kP(l=>r.autoHide&&r.$emit("hide"),["esc"]))},[nn("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=l=>r.autoHide&&r.$emit("hide"))}),nn("div",{class:"v-popper__wrapper",style:ml(r.result?{transformOrigin:r.result.transformOrigin}:void 0)},[nn("div",G6,[r.mounted?(bi(),is(co,{key:0},[nn("div",null,[tc(r.$slots,"default")]),r.handleResize?(bi(),Yo(a,{key:0,onNotify:e[1]||(e[1]=l=>r.$emit("resize",l))})):wu("",!0)],64)):wu("",!0)],512),nn("div",{ref:"arrow",class:"v-popper__arrow-container",style:ml(r.result?{left:r.toPx(r.result.arrow.x),top:r.toPx(r.result.arrow.y)}:void 0)},K6,4)],4)],46,Y6)}const jw=LO(Z6,[["render",e9]]),Lw={methods:{show(...r){return this.$refs.popper.show(...r)},hide(...r){return this.$refs.popper.hide(...r)},dispose(...r){return this.$refs.popper.dispose(...r)},onResize(...r){return this.$refs.popper.onResize(...r)}}},t9=bo({name:"VPopperWrapper",components:{Popper:V6,PopperContent:jw},mixins:[Lw,Qw("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(r=>r!==this.$refs.popperContent.$el)}}});function r9(r,e,t,n,i,s){const a=Xh("PopperContent"),l=Xh("Popper");return bi(),Yo(l,{ref:"popper",theme:r.finalTheme,"target-nodes":r.getTargetNodes,"popper-node":()=>r.$refs.popperContent.$el,class:Fa([r.themeClass])},{default:fa(({popperId:p,isShown:d,shouldMountContent:g,skipTransition:b,autoHide:S,show:I,hide:H,handleResize:ge,onResize:ke,classes:Oe,result:Ue})=>[tc(r.$slots,"default",{shown:d,show:I,hide:H}),xs(a,{ref:"popperContent","popper-id":p,theme:r.finalTheme,shown:d,mounted:g,"skip-transition":b,"auto-hide":S,"handle-resize":ge,classes:Oe,result:Ue,onHide:H,onResize:ke},{default:fa(()=>[tc(r.$slots,"popper",{shown:d,hide:H})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}const XO=LO(t9,[["render",r9]]),n9={...XO,name:"VDropdown",vPopperTheme:"dropdown"};({...XO});({...XO});bo({name:"VTooltipDirective",components:{Popper:Mw(),PopperContent:jw},mixins:[Lw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:r=>OD(r.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:r=>OD(r.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(r){if(typeof this.content=="function"&&this.$_isShown&&(r||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const e=++this.$_fetchId,t=this.content(this);t.then?t.then(n=>this.onResult(e,n)):this.onResult(e,t)}},onResult(r,e){r===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=e)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const i9=n9,s9={"font-mono":"","text-sm":"","cursor-pointer":"",border:"b transparent hover:current",op:"50 hover:100"},o9={"text-sm":"","of-ellipsis":""},a9={"text-xs":"","ml-0.5":"",op30:""},u9={"space-x-4":"",px4:"",py3:""},l9=["onClick"],c9=["href"],h9=nn("div",{"i-carbon-notebook":""},null,-1),p9={border:"t gray-400/20","max-h-60":"","of-auto":"",px4:"",py3:"","text-sm":""},f9=nn("span",{op50:""},"It has been referenced ",-1),d9=nn("span",{op50:""}," times by:",-1),m9={flex:"~ col gap-2","items-start":"",pt3:""},g9=["onClick"],y9=nn("div",{"i-carbon-launch":""},null,-1),D9=bo({__name:"AnalyzerItem",props:{item:{}},setup(r){const e=r,t=ps(()=>BC(e.item.name)),n=ps(()=>t.value?`[${e.item.name.slice(1,-1).replace(/=""$/,"").replace(/~="/,'="')}]`:e.item.name);function i(s){fetch(`/__open-in-editor?file=${encodeURIComponent(s)}`)}return(s,a)=>{const l=f6,p=xw;return bi(),Yo(Ai(i9),{distance:10},{popper:fa(()=>[nn("div",u9,[xs(l,null,{default:fa(({copy:d,copied:g})=>[nn("button",{class:Fa(g?"text-green":"text-dark:50 hover:text-dark dark:text-white:50 dark:hover:text-white"),"text-sm":"",onClick:b=>d(s.item.name)},[nn("div",{class:Fa(g?"i-carbon-checkmark-outline":"i-carbon-copy")},null,2),pa(" "+Zs(g?"Copied":"Copy"),1)],10,l9)]),_:1}),s.item?(bi(),is("a",{key:0,href:`https://unocss.dev/interactive/?s=${s.item.name}`,target:"_blank","text-sm":"","text-dark:50":"","hover:text-dark":"","dark:text-white:50":"","dark:hover:text-white":""},[h9,pa(" Docs ")],8,c9)):wu("",!0)]),nn("div",p9,[nn("div",null,[f9,nn("strong",null,Zs(s.item.count),1),d9]),nn("div",m9,[(bi(!0),is(co,null,jc(s.item.modules,d=>(bi(),is("a",{key:d,"text-sm":"","cursor-pointer":"",op80:"","hover:op100":"",onClick:g=>i(d)},[xs(p,{id:d,"mr-1":""},null,8,["id"]),y9],8,g9))),128))])])]),default:fa(()=>[nn("span",s9,[nn("span",o9,Zs(n.value),1)]),nn("sup",a9,Zs(s.item.count),1)]),_:1})}}}),O9={"p-4":"","space-y-8":""},x9={key:0},b9=nn("div",{"mb-4":"",op50:"",uppercase:"","text-sm":""}," Top 10 Utilities ",-1),v9={"p-4":"","bg-active":""},C9={flex:"~ wrap",gap:"x-2 y-2"},S9={key:1},E9={uppercase:"","text-sm":"","mb-4":"",op50:""},w9={op50:"","text-sm":""},A9={flex:"","flex-wrap":"","gap-2":""},T9={"p-2":"","w-25":"","inline-block":"","of-hidden":"","bg-active":""},P9={"font-mono":"","text-sm":"",op50:"","ws-nowrap":"","of-ellipsis":"","of-hidden":""},k9=nn("div",{"mb-4":"",op50:"",uppercase:"","text-sm":""}," Utilities Usage ",-1),F9={key:0,grid:"~ cols-1 md:cols-2 gap-4"},_9={"text-sm":"","pb-4":""},$9={capitalize:""},B9={op50:"","ml-1":""},N9={flex:"","flex-wrap":"","gap-x-2":"","gap-y-2":""},I9={key:1,op50:""},M9=bo({__name:"Analyzer",props:{selectors:{},colors:{}},setup(r){const e=r,t=ps(()=>[...e.selectors].sort((s,a)=>a.count-s.count)),n=ps(()=>(e.colors||[]).map(s=>({...s,name:s.no==="DEFAULT"?`${s.name}`:`${s.name}-${s.no}`})).sort((s,a)=>a.count-s.count)),i=ps(()=>t.value.reduce((s,a)=>{const l=a.category,p=s.find(d=>d.name===l);return p?(p.items.push(a),p.count+=a.count):s.push({name:l,count:a.count,items:[a]}),s},[]).sort((s,a)=>a.count-s.count));return(s,a)=>{const l=D9;return bi(),is("div",O9,[t.value.length>10?(bi(),is("div",x9,[b9,nn("div",v9,[nn("div",C9,[(bi(!0),is(co,null,jc(t.value.slice(0,10),(p,d)=>(bi(),Yo(l,{key:d,item:p},null,8,["item"]))),128))])])])):wu("",!0),n.value.length?(bi(),is("div",S9,[nn("div",E9,[pa(" Color Palette "),nn("sup",w9,Zs(n.value.length),1)]),nn("div",A9,[(bi(!0),is(co,null,jc(n.value,(p,d)=>(bi(),is("span",{key:d},[nn("div",T9,[xs(l,{item:p},null,8,["item"]),nn("div",P9,Zs(p.color),1),nn("div",{"h-10":"","mt-1":"",style:ml({background:p.color})},null,4)])]))),128))])])):wu("",!0),nn("div",null,[k9,i.value.length?(bi(),is("div",F9,[(bi(!0),is(co,null,jc(i.value,(p,d)=>(bi(),is("div",{key:d,"p-4":"","bg-active":""},[nn("div",_9,[nn("span",$9,Zs(p.name),1),nn("sup",B9,Zs(p.count),1)]),nn("div",N9,[(bi(!0),is(co,null,jc(p.items,(g,b)=>(bi(),Yo(l,{key:b,item:g},null,8,["item"]))),128))])]))),128))])):(bi(),is("div",I9," No utilities found. "))])])}}}),R9={"h-full":"",flex:"","flex-col":""},Q9={p:"4",grid:"~ cols-4 gap-4"},j9=nn("div",{op80:""}," Presets ",-1),L9={op50:"","ws-pre":""},X9={overflow:"auto"},V9=nn("div",{op80:""}," Rules ",-1),U9=nn("span",{op50:""},"dynamic",-1),q9=nn("br",null,null,-1),z9=nn("span",{op50:""},"static",-1),W9=nn("div",{op80:""}," Variants ",-1),Z9=nn("div",{op80:""}," Shortcuts ",-1),Y9={key:0},G9=nn("div",{op80:""}," Config File ",-1),H9=nn("div",{op80:""}," Version ",-1),J9={op50:"","ws-pre":""},K9={border:"t main",p:"x4 y2",grid:"~ cols-4 gap-4"},e4=nn("div",{op80:""}," Included Files ",-1),t4=nn("div",{op80:""}," CSS Size ",-1),r4=nn("span",{op50:""},"gzipped",-1),n4=nn("div",{op80:""}," Matched Rules ",-1),i4=nn("div",{op80:""}," Layers ",-1),s4={op50:"","ws-pre":""},o4=bo({__name:"Overview",setup(r){const e=Gs(null),t=r6(e,"overview-scrolls");MO.execute();const n=Gs(!1),i=Gs("source"),s=p6(ps(()=>{var a;return(a=Cp.value)==null?void 0:a.css}),n);return(a,l)=>{const p=xw,d=G5,g=z5,b=X5,S=R5;return bi(),is("div",R9,[xs(b,{ref_key:"status",ref:e,p0:""},{default:fa(()=>{var I,H,ge,ke,Oe,Ue,Ot,pt,vt,Yt,ir,Cr,Tr,Xr,ln,Ln,hi,$i;return[nn("div",Q9,[nn("div",null,[j9,nn("div",L9,Zs((ge=(H=(I=Ai(Uo))==null?void 0:I.config)==null?void 0:H.presets)==null?void 0:ge.map(Nn=>Nn.name).join(`
|
|
278
278
|
`)),1)]),nn("div",X9,[V9,pa(" "+Zs((Ue=(Oe=(ke=Ai(Uo))==null?void 0:ke.config)==null?void 0:Oe.rulesDynamic)==null?void 0:Ue.length)+" ",1),U9,q9,pa(" "+Zs(Object.keys(((pt=(Ot=Ai(Uo))==null?void 0:Ot.config)==null?void 0:pt.rulesStaticMap)||{}).length)+" ",1),z9]),nn("div",null,[W9,pa(" "+Zs((ir=(Yt=(vt=Ai(Uo))==null?void 0:vt.config)==null?void 0:Yt.variants)==null?void 0:ir.length),1)]),nn("div",null,[Z9,pa(" "+Zs((Cr=Ai(Uo))==null?void 0:Cr.config.shortcuts.length),1)]),(Tr=Ai(Uo))!=null&&Tr.configPath?(bi(),is("div",Y9,[G9,xs(p,{id:Ai(Uo).configPath},null,8,["id"])])):wu("",!0),nn("div",null,[H9,nn("div",J9,Zs((Xr=Ai(Uo))==null?void 0:Xr.version),1)])]),nn("div",K9,[nn("div",null,[e4,pa(" "+Zs((ln=Ai(Uo))==null?void 0:ln.modules.length),1)]),nn("div",null,[t4,pa(" "+Zs(((((Ln=Ai(Cp))==null?void 0:Ln.gzipSize)||0)/1024).toFixed(2))+" KiB ",1),r4]),nn("div",null,[n4,pa(" "+Zs((hi=Ai(Cp))==null?void 0:hi.matched.length),1)]),nn("div",null,[i4,nn("div",s4,Zs(($i=Ai(Cp))==null?void 0:$i.layers.join(`
|
|
279
|
-
`)),1)])]),xs(d,{modelValue:Ai(i),"onUpdate:modelValue":l[0]||(l[0]=Nn=>Ys(i)?i.value=Nn:null)},null,8,["modelValue"]),Ai(i)==="source"?(bi(),Yo(g,{key:0,border:"t gray-400/20",title:"Output CSS"},{default:fa(()=>[nn("label",null,[OT(nn("input",{"onUpdate:modelValue":l[1]||(l[1]=Nn=>Ys(n)?n.value=Nn:null),type:"checkbox"},null,512),[[AP,Ai(n)]]),pa(" Prettify ")])]),_:1})):wu("",!0)]}),_:1},512),Ai(i)==="source"?(bi(),Yo(S,{key:0,"model-value":Ai(s),"read-only":!0,mode:"css",class:"overview-scrolls",style:ml(Ai(t))},null,8,["model-value","style"])):(bi(),Yo(M9,{key:1,"flex-grow":"","overflow-y-auto":"",selectors:Ai(Cp).matched,colors:Ai(Cp).colors},null,8,["selectors","colors"]))])}}}),a4={};function u4(r,e){const t=o4;return bi(),Yo(t)}const l4=mw(a4,[["render",u4]]),c4=()=>ED(()=>import("./repl-
|
|
280
|
-
* vue-router v4.2.
|
|
279
|
+
`)),1)])]),xs(d,{modelValue:Ai(i),"onUpdate:modelValue":l[0]||(l[0]=Nn=>Ys(i)?i.value=Nn:null)},null,8,["modelValue"]),Ai(i)==="source"?(bi(),Yo(g,{key:0,border:"t gray-400/20",title:"Output CSS"},{default:fa(()=>[nn("label",null,[OT(nn("input",{"onUpdate:modelValue":l[1]||(l[1]=Nn=>Ys(n)?n.value=Nn:null),type:"checkbox"},null,512),[[AP,Ai(n)]]),pa(" Prettify ")])]),_:1})):wu("",!0)]}),_:1},512),Ai(i)==="source"?(bi(),Yo(S,{key:0,"model-value":Ai(s),"read-only":!0,mode:"css",class:"overview-scrolls",style:ml(Ai(t))},null,8,["model-value","style"])):(bi(),Yo(M9,{key:1,"flex-grow":"","overflow-y-auto":"",selectors:Ai(Cp).matched,colors:Ai(Cp).colors},null,8,["selectors","colors"]))])}}}),a4={};function u4(r,e){const t=o4;return bi(),Yo(t)}const l4=mw(a4,[["render",u4]]),c4=()=>ED(()=>import("./repl-f67fca75.js"),[]),h4=()=>ED(()=>import("./_id_-b9d3c833.js"),[]),p4=[{name:"repl",path:"/repl",component:c4,props:!0},{name:"index",path:"/",component:l4,props:!0},{name:"module-id",path:"/module/:id",component:h4,props:!0}];/*!
|
|
280
|
+
* vue-router v4.2.5
|
|
281
281
|
* (c) 2023 Eduardo San Martin Morote
|
|
282
282
|
* @license MIT
|
|
283
283
|
*/const Ap=typeof window<"u";function f4(r){return r.__esModule||r[Symbol.toStringTag]==="Module"}const ws=Object.assign;function sy(r,e){const t={};for(const n in e){const i=e[n];t[n]=ku(i)?i.map(r):r(i)}return t}const Lf=()=>{},ku=Array.isArray,d4=/\/$/,m4=r=>r.replace(d4,"");function oy(r,e,t="/"){let n,i={},s="",a="";const l=e.indexOf("#");let p=e.indexOf("?");return l<p&&l>=0&&(p=-1),p>-1&&(n=e.slice(0,p),s=e.slice(p+1,l>-1?l:e.length),i=r(s)),l>-1&&(n=n||e.slice(0,l),a=e.slice(l,e.length)),n=O4(n??e,t),{fullPath:n+(s&&"?")+s+a,path:n,query:i,hash:a}}function g4(r,e){const t=e.query?r(e.query):"";return e.path+(t&&"?")+t+(e.hash||"")}function bv(r,e){return!e||!r.toLowerCase().startsWith(e.toLowerCase())?r:r.slice(e.length)||"/"}function y4(r,e,t){const n=e.matched.length-1,i=t.matched.length-1;return n>-1&&n===i&&Jp(e.matched[n],t.matched[i])&&Xw(e.params,t.params)&&r(e.query)===r(t.query)&&e.hash===t.hash}function Jp(r,e){return(r.aliasOf||r)===(e.aliasOf||e)}function Xw(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(!D4(r[t],e[t]))return!1;return!0}function D4(r,e){return ku(r)?vv(r,e):ku(e)?vv(e,r):r===e}function vv(r,e){return ku(e)?r.length===e.length&&r.every((t,n)=>t===e[n]):r.length===1&&r[0]===e}function O4(r,e){if(r.startsWith("/"))return r;if(!r)return e;const t=e.split("/"),n=r.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let s=t.length-1,a,l;for(a=0;a<n.length;a++)if(l=n[a],l!==".")if(l==="..")s>1&&s--;else break;return t.slice(0,s).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var md;(function(r){r.pop="pop",r.push="push"})(md||(md={}));var Xf;(function(r){r.back="back",r.forward="forward",r.unknown=""})(Xf||(Xf={}));function x4(r){if(!r)if(Ap){const e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^\w+:\/\/[^\/]+/,"")}else r="/";return r[0]!=="/"&&r[0]!=="#"&&(r="/"+r),m4(r)}const b4=/^[^#]+#/;function v4(r,e){return r.replace(b4,"#")+e}function C4(r,e){const t=document.documentElement.getBoundingClientRect(),n=r.getBoundingClientRect();return{behavior:e.behavior,left:n.left-t.left-(e.left||0),top:n.top-t.top-(e.top||0)}}const s0=()=>({left:window.pageXOffset,top:window.pageYOffset});function S4(r){let e;if("el"in r){const t=r.el,n=typeof t=="string"&&t.startsWith("#"),i=typeof t=="string"?n?document.getElementById(t.slice(1)):document.querySelector(t):t;if(!i)return;e=C4(i,r)}else e=r;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function Cv(r,e){return(history.state?history.state.position-e:-1)+r}const vD=new Map;function E4(r,e){vD.set(r,e)}function w4(r){const e=vD.get(r);return vD.delete(r),e}let A4=()=>location.protocol+"//"+location.host;function Vw(r,e){const{pathname:t,search:n,hash:i}=e,s=r.indexOf("#");if(s>-1){let l=i.includes(r.slice(s))?r.slice(s).length:1,p=i.slice(l);return p[0]!=="/"&&(p="/"+p),bv(p,"")}return bv(t,r)+n+i}function T4(r,e,t,n){let i=[],s=[],a=null;const l=({state:S})=>{const I=Vw(r,location),H=t.value,ge=e.value;let ke=0;if(S){if(t.value=I,e.value=S,a&&a===H){a=null;return}ke=ge?S.position-ge.position:0}else n(I);i.forEach(Oe=>{Oe(t.value,H,{delta:ke,type:md.pop,direction:ke?ke>0?Xf.forward:Xf.back:Xf.unknown})})};function p(){a=t.value}function d(S){i.push(S);const I=()=>{const H=i.indexOf(S);H>-1&&i.splice(H,1)};return s.push(I),I}function g(){const{history:S}=window;S.state&&S.replaceState(ws({},S.state,{scroll:s0()}),"")}function b(){for(const S of s)S();s=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",g)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",g,{passive:!0}),{pauseListeners:p,listen:d,destroy:b}}function Sv(r,e,t,n=!1,i=!1){return{back:r,current:e,forward:t,replaced:n,position:window.history.length,scroll:i?s0():null}}function P4(r){const{history:e,location:t}=window,n={value:Vw(r,t)},i={value:e.state};i.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(p,d,g){const b=r.indexOf("#"),S=b>-1?(t.host&&document.querySelector("base")?r:r.slice(b))+p:A4()+r+p;try{e[g?"replaceState":"pushState"](d,"",S),i.value=d}catch(I){console.error(I),t[g?"replace":"assign"](S)}}function a(p,d){const g=ws({},e.state,Sv(i.value.back,p,i.value.forward,!0),d,{position:i.value.position});s(p,g,!0),n.value=p}function l(p,d){const g=ws({},i.value,e.state,{forward:p,scroll:s0()});s(g.current,g,!0);const b=ws({},Sv(n.value,p,null),{position:g.position+1},d);s(p,b,!1),n.value=p}return{location:n,state:i,push:l,replace:a}}function k4(r){r=x4(r);const e=P4(r),t=T4(r,e.state,e.location,e.replace);function n(s,a=!0){a||t.pauseListeners(),history.go(s)}const i=ws({location:"",base:r,go:n,createHref:v4.bind(null,r)},e,t);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function F4(r){return r=location.host?r||location.pathname+location.search:"",r.includes("#")||(r+="#"),k4(r)}function _4(r){return typeof r=="string"||r&&typeof r=="object"}function Uw(r){return typeof r=="string"||typeof r=="symbol"}const _c={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qw=Symbol("");var Ev;(function(r){r[r.aborted=4]="aborted",r[r.cancelled=8]="cancelled",r[r.duplicated=16]="duplicated"})(Ev||(Ev={}));function Kp(r,e){return ws(new Error,{type:r,[qw]:!0},e)}function Gl(r,e){return r instanceof Error&&qw in r&&(e==null||!!(r.type&e))}const wv="[^/]+?",$4={sensitive:!1,strict:!1,start:!0,end:!0},B4=/[.+*?^${}()[\]/\\]/g;function N4(r,e){const t=ws({},$4,e),n=[];let i=t.start?"^":"";const s=[];for(const d of r){const g=d.length?[]:[90];t.strict&&!d.length&&(i+="/");for(let b=0;b<d.length;b++){const S=d[b];let I=40+(t.sensitive?.25:0);if(S.type===0)b||(i+="/"),i+=S.value.replace(B4,"\\$&"),I+=40;else if(S.type===1){const{value:H,repeatable:ge,optional:ke,regexp:Oe}=S;s.push({name:H,repeatable:ge,optional:ke});const Ue=Oe||wv;if(Ue!==wv){I+=10;try{new RegExp(`(${Ue})`)}catch(pt){throw new Error(`Invalid custom RegExp for param "${H}" (${Ue}): `+pt.message)}}let Ot=ge?`((?:${Ue})(?:/(?:${Ue}))*)`:`(${Ue})`;b||(Ot=ke&&d.length<2?`(?:/${Ot})`:"/"+Ot),ke&&(Ot+="?"),i+=Ot,I+=20,ke&&(I+=-8),ge&&(I+=-20),Ue===".*"&&(I+=-50)}g.push(I)}n.push(g)}if(t.strict&&t.end){const d=n.length-1;n[d][n[d].length-1]+=.7000000000000001}t.strict||(i+="/?"),t.end?i+="$":t.strict&&(i+="(?:/|$)");const a=new RegExp(i,t.sensitive?"":"i");function l(d){const g=d.match(a),b={};if(!g)return null;for(let S=1;S<g.length;S++){const I=g[S]||"",H=s[S-1];b[H.name]=I&&H.repeatable?I.split("/"):I}return b}function p(d){let g="",b=!1;for(const S of r){(!b||!g.endsWith("/"))&&(g+="/"),b=!1;for(const I of S)if(I.type===0)g+=I.value;else if(I.type===1){const{value:H,repeatable:ge,optional:ke}=I,Oe=H in d?d[H]:"";if(ku(Oe)&&!ge)throw new Error(`Provided param "${H}" is an array but it is not repeatable (* or + modifiers)`);const Ue=ku(Oe)?Oe.join("/"):Oe;if(!Ue)if(ke)S.length<2&&(g.endsWith("/")?g=g.slice(0,-1):b=!0);else throw new Error(`Missing required param "${H}"`);g+=Ue}}return g||"/"}return{re:a,score:n,keys:s,parse:l,stringify:p}}function I4(r,e){let t=0;for(;t<r.length&&t<e.length;){const n=e[t]-r[t];if(n)return n;t++}return r.length<e.length?r.length===1&&r[0]===40+40?-1:1:r.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function M4(r,e){let t=0;const n=r.score,i=e.score;for(;t<n.length&&t<i.length;){const s=I4(n[t],i[t]);if(s)return s;t++}if(Math.abs(i.length-n.length)===1){if(Av(n))return 1;if(Av(i))return-1}return i.length-n.length}function Av(r){const e=r[r.length-1];return r.length>0&&e[e.length-1]<0}const R4={type:0,value:""},Q4=/[a-zA-Z0-9_]/;function j4(r){if(!r)return[[]];if(r==="/")return[[R4]];if(!r.startsWith("/"))throw new Error(`Invalid path "${r}"`);function e(I){throw new Error(`ERR (${t})/"${d}": ${I}`)}let t=0,n=t;const i=[];let s;function a(){s&&i.push(s),s=[]}let l=0,p,d="",g="";function b(){d&&(t===0?s.push({type:0,value:d}):t===1||t===2||t===3?(s.length>1&&(p==="*"||p==="+")&&e(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:d,regexp:g,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):e("Invalid state to consume buffer"),d="")}function S(){d+=p}for(;l<r.length;){if(p=r[l++],p==="\\"&&t!==2){n=t,t=4;continue}switch(t){case 0:p==="/"?(d&&b(),a()):p===":"?(b(),t=1):S();break;case 4:S(),t=n;break;case 1:p==="("?t=2:Q4.test(p)?S():(b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--);break;case 2:p===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+p:t=3:g+=p;break;case 3:b(),t=0,p!=="*"&&p!=="?"&&p!=="+"&&l--,g="";break;default:e("Unknown state");break}}return t===2&&e(`Unfinished custom RegExp for param "${d}"`),b(),a(),i}function L4(r,e,t){const n=N4(j4(r.path),t),i=ws(n,{record:r,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function X4(r,e){const t=[],n=new Map;e=kv({strict:!1,end:!0,sensitive:!1},e);function i(g){return n.get(g)}function s(g,b,S){const I=!S,H=V4(g);H.aliasOf=S&&S.record;const ge=kv(e,g),ke=[H];if("alias"in g){const Ot=typeof g.alias=="string"?[g.alias]:g.alias;for(const pt of Ot)ke.push(ws({},H,{components:S?S.record.components:H.components,path:pt,aliasOf:S?S.record:H}))}let Oe,Ue;for(const Ot of ke){const{path:pt}=Ot;if(b&&pt[0]!=="/"){const vt=b.record.path,Yt=vt[vt.length-1]==="/"?"":"/";Ot.path=b.record.path+(pt&&Yt+pt)}if(Oe=L4(Ot,b,ge),S?S.alias.push(Oe):(Ue=Ue||Oe,Ue!==Oe&&Ue.alias.push(Oe),I&&g.name&&!Pv(Oe)&&a(g.name)),H.children){const vt=H.children;for(let Yt=0;Yt<vt.length;Yt++)s(vt[Yt],Oe,S&&S.children[Yt])}S=S||Oe,(Oe.record.components&&Object.keys(Oe.record.components).length||Oe.record.name||Oe.record.redirect)&&p(Oe)}return Ue?()=>{a(Ue)}:Lf}function a(g){if(Uw(g)){const b=n.get(g);b&&(n.delete(g),t.splice(t.indexOf(b),1),b.children.forEach(a),b.alias.forEach(a))}else{const b=t.indexOf(g);b>-1&&(t.splice(b,1),g.record.name&&n.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function l(){return t}function p(g){let b=0;for(;b<t.length&&M4(g,t[b])>=0&&(g.record.path!==t[b].record.path||!zw(g,t[b]));)b++;t.splice(b,0,g),g.record.name&&!Pv(g)&&n.set(g.record.name,g)}function d(g,b){let S,I={},H,ge;if("name"in g&&g.name){if(S=n.get(g.name),!S)throw Kp(1,{location:g});ge=S.record.name,I=ws(Tv(b.params,S.keys.filter(Ue=>!Ue.optional).map(Ue=>Ue.name)),g.params&&Tv(g.params,S.keys.map(Ue=>Ue.name))),H=S.stringify(I)}else if("path"in g)H=g.path,S=t.find(Ue=>Ue.re.test(H)),S&&(I=S.parse(H),ge=S.record.name);else{if(S=b.name?n.get(b.name):t.find(Ue=>Ue.re.test(b.path)),!S)throw Kp(1,{location:g,currentLocation:b});ge=S.record.name,I=ws({},b.params,g.params),H=S.stringify(I)}const ke=[];let Oe=S;for(;Oe;)ke.unshift(Oe.record),Oe=Oe.parent;return{name:ge,path:H,params:I,matched:ke,meta:q4(ke)}}return r.forEach(g=>s(g)),{addRoute:s,resolve:d,removeRoute:a,getRoutes:l,getRecordMatcher:i}}function Tv(r,e){const t={};for(const n of e)n in r&&(t[n]=r[n]);return t}function V4(r){return{path:r.path,redirect:r.redirect,name:r.name,meta:r.meta||{},aliasOf:void 0,beforeEnter:r.beforeEnter,props:U4(r),children:r.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in r?r.components||null:r.component&&{default:r.component}}}function U4(r){const e={},t=r.props||!1;if("component"in r)e.default=t;else for(const n in r.components)e[n]=typeof t=="object"?t[n]:t;return e}function Pv(r){for(;r;){if(r.record.aliasOf)return!0;r=r.parent}return!1}function q4(r){return r.reduce((e,t)=>ws(e,t.meta),{})}function kv(r,e){const t={};for(const n in r)t[n]=n in e?e[n]:r[n];return t}function zw(r,e){return e.children.some(t=>t===r||zw(r,t))}const Ww=/#/g,z4=/&/g,W4=/\//g,Z4=/=/g,Y4=/\?/g,Zw=/\+/g,G4=/%5B/g,H4=/%5D/g,Yw=/%5E/g,J4=/%60/g,Gw=/%7B/g,K4=/%7C/g,Hw=/%7D/g,e7=/%20/g;function VO(r){return encodeURI(""+r).replace(K4,"|").replace(G4,"[").replace(H4,"]")}function t7(r){return VO(r).replace(Gw,"{").replace(Hw,"}").replace(Yw,"^")}function CD(r){return VO(r).replace(Zw,"%2B").replace(e7,"+").replace(Ww,"%23").replace(z4,"%26").replace(J4,"`").replace(Gw,"{").replace(Hw,"}").replace(Yw,"^")}function r7(r){return CD(r).replace(Z4,"%3D")}function n7(r){return VO(r).replace(Ww,"%23").replace(Y4,"%3F")}function i7(r){return r==null?"":n7(r).replace(W4,"%2F")}function Sg(r){try{return decodeURIComponent(""+r)}catch{}return""+r}function s7(r){const e={};if(r===""||r==="?")return e;const n=(r[0]==="?"?r.slice(1):r).split("&");for(let i=0;i<n.length;++i){const s=n[i].replace(Zw," "),a=s.indexOf("="),l=Sg(a<0?s:s.slice(0,a)),p=a<0?null:Sg(s.slice(a+1));if(l in e){let d=e[l];ku(d)||(d=e[l]=[d]),d.push(p)}else e[l]=p}return e}function Fv(r){let e="";for(let t in r){const n=r[t];if(t=r7(t),n==null){n!==void 0&&(e+=(e.length?"&":"")+t);continue}(ku(n)?n.map(s=>s&&CD(s)):[n&&CD(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+t,s!=null&&(e+="="+s))})}return e}function o7(r){const e={};for(const t in r){const n=r[t];n!==void 0&&(e[t]=ku(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return e}const a7=Symbol(""),_v=Symbol(""),UO=Symbol(""),qO=Symbol(""),SD=Symbol("");function xf(){let r=[];function e(n){return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}function t(){r=[]}return{add:e,list:()=>r.slice(),reset:t}}function Rc(r,e,t,n,i){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const p=b=>{b===!1?l(Kp(4,{from:t,to:e})):b instanceof Error?l(b):_4(b)?l(Kp(2,{from:e,to:b})):(s&&n.enterCallbacks[i]===s&&typeof b=="function"&&s.push(b),a())},d=r.call(n&&n.instances[i],e,t,p);let g=Promise.resolve(d);r.length<3&&(g=g.then(p)),g.catch(b=>l(b))})}function ay(r,e,t,n){const i=[];for(const s of r)for(const a in s.components){let l=s.components[a];if(!(e!=="beforeRouteEnter"&&!s.instances[a]))if(u7(l)){const d=(l.__vccOpts||l)[e];d&&i.push(Rc(d,t,n,s,a))}else{let p=l();i.push(()=>p.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${s.path}"`));const g=f4(d)?d.default:d;s.components[a]=g;const S=(g.__vccOpts||g)[e];return S&&Rc(S,t,n,s,a)()}))}}return i}function u7(r){return typeof r=="object"||"displayName"in r||"props"in r||"__vccOpts"in r}function $v(r){const e=gl(UO),t=gl(qO),n=ps(()=>e.resolve(Ai(r.to))),i=ps(()=>{const{matched:p}=n.value,{length:d}=p,g=p[d-1],b=t.matched;if(!g||!b.length)return-1;const S=b.findIndex(Jp.bind(null,g));if(S>-1)return S;const I=Bv(p[d-2]);return d>1&&Bv(g)===I&&b[b.length-1].path!==I?b.findIndex(Jp.bind(null,p[d-2])):S}),s=ps(()=>i.value>-1&&p7(t.params,n.value.params)),a=ps(()=>i.value>-1&&i.value===t.matched.length-1&&Xw(t.params,n.value.params));function l(p={}){return h7(p)?e[Ai(r.replace)?"replace":"push"](Ai(r.to)).catch(Lf):Promise.resolve()}return{route:n,href:ps(()=>n.value.href),isActive:s,isExactActive:a,navigate:l}}const l7=bo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$v,setup(r,{slots:e}){const t=yd($v(r)),{options:n}=gl(UO),i=ps(()=>({[Nv(r.activeClass,n.linkActiveClass,"router-link-active")]:t.isActive,[Nv(r.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:t.isExactActive}));return()=>{const s=e.default&&e.default(t);return r.custom?s:WD("a",{"aria-current":t.isExactActive?r.ariaCurrentValue:null,href:t.href,onClick:t.navigate,class:i.value},s)}}}),c7=l7;function h7(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){const e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function p7(r,e){for(const t in e){const n=e[t],i=r[t];if(typeof n=="string"){if(n!==i)return!1}else if(!ku(i)||i.length!==n.length||n.some((s,a)=>s!==i[a]))return!1}return!0}function Bv(r){return r?r.aliasOf?r.aliasOf.path:r.path:""}const Nv=(r,e,t)=>r??e??t,f7=bo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(r,{attrs:e,slots:t}){const n=gl(SD),i=ps(()=>r.route||n.value),s=gl(_v,0),a=ps(()=>{let d=Ai(s);const{matched:g}=i.value;let b;for(;(b=g[d])&&!b.components;)d++;return d}),l=ps(()=>i.value.matched[a.value]);gm(_v,ps(()=>a.value+1)),gm(a7,l),gm(SD,i);const p=Gs();return Ro(()=>[p.value,l.value,r.name],([d,g,b],[S,I,H])=>{g&&(g.instances[b]=d,I&&I!==g&&d&&d===S&&(g.leaveGuards.size||(g.leaveGuards=I.leaveGuards),g.updateGuards.size||(g.updateGuards=I.updateGuards))),d&&g&&(!I||!Jp(g,I)||!S)&&(g.enterCallbacks[b]||[]).forEach(ge=>ge(d))},{flush:"post"}),()=>{const d=i.value,g=r.name,b=l.value,S=b&&b.components[g];if(!S)return Iv(t.default,{Component:S,route:d});const I=b.props[g],H=I?I===!0?d.params:typeof I=="function"?I(d):I:null,ke=WD(S,ws({},H,e,{onVnodeUnmounted:Oe=>{Oe.component.isUnmounted&&(b.instances[g]=null)},ref:p}));return Iv(t.default,{Component:ke,route:d})||ke}}});function Iv(r,e){if(!r)return null;const t=r(e);return t.length===1?t[0]:t}const d7=f7;function m7(r){const e=X4(r.routes,r),t=r.parseQuery||s7,n=r.stringifyQuery||Fv,i=r.history,s=xf(),a=xf(),l=xf(),p=Bp(_c);let d=_c;Ap&&r.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=sy.bind(null,Sr=>""+Sr),b=sy.bind(null,i7),S=sy.bind(null,Sg);function I(Sr,cn){let zr,Mn;return Uw(Sr)?(zr=e.getRecordMatcher(Sr),Mn=cn):Mn=Sr,e.addRoute(Mn,zr)}function H(Sr){const cn=e.getRecordMatcher(Sr);cn&&e.removeRoute(cn)}function ge(){return e.getRoutes().map(Sr=>Sr.record)}function ke(Sr){return!!e.getRecordMatcher(Sr)}function Oe(Sr,cn){if(cn=ws({},cn||p.value),typeof Sr=="string"){const Zt=oy(t,Sr,cn.path),dr=e.resolve({path:Zt.path},cn),Fr=i.createHref(Zt.fullPath);return ws(Zt,dr,{params:S(dr.params),hash:Sg(Zt.hash),redirectedFrom:void 0,href:Fr})}let zr;if("path"in Sr)zr=ws({},Sr,{path:oy(t,Sr.path,cn.path).path});else{const Zt=ws({},Sr.params);for(const dr in Zt)Zt[dr]==null&&delete Zt[dr];zr=ws({},Sr,{params:b(Zt)}),cn.params=b(cn.params)}const Mn=e.resolve(zr,cn),Ki=Sr.hash||"";Mn.params=g(S(Mn.params));const tt=g4(n,ws({},Sr,{hash:t7(Ki),path:Mn.path})),gt=i.createHref(tt);return ws({fullPath:tt,hash:Ki,query:n===Fv?o7(Sr.query):Sr.query||{}},Mn,{redirectedFrom:void 0,href:gt})}function Ue(Sr){return typeof Sr=="string"?oy(t,Sr,p.value.path):ws({},Sr)}function Ot(Sr,cn){if(d!==Sr)return Kp(8,{from:cn,to:Sr})}function pt(Sr){return ir(Sr)}function vt(Sr){return pt(ws(Ue(Sr),{replace:!0}))}function Yt(Sr){const cn=Sr.matched[Sr.matched.length-1];if(cn&&cn.redirect){const{redirect:zr}=cn;let Mn=typeof zr=="function"?zr(Sr):zr;return typeof Mn=="string"&&(Mn=Mn.includes("?")||Mn.includes("#")?Mn=Ue(Mn):{path:Mn},Mn.params={}),ws({query:Sr.query,hash:Sr.hash,params:"path"in Mn?{}:Sr.params},Mn)}}function ir(Sr,cn){const zr=d=Oe(Sr),Mn=p.value,Ki=Sr.state,tt=Sr.force,gt=Sr.replace===!0,Zt=Yt(zr);if(Zt)return ir(ws(Ue(Zt),{state:typeof Zt=="object"?ws({},Ki,Zt.state):Ki,force:tt,replace:gt}),cn||zr);const dr=zr;dr.redirectedFrom=cn;let Fr;return!tt&&y4(n,Mn,zr)&&(Fr=Kp(16,{to:dr,from:Mn}),ji(Mn,Mn,!0,!1)),(Fr?Promise.resolve(Fr):Xr(dr,Mn)).catch(Lr=>Gl(Lr)?Gl(Lr,2)?Lr:Bi(Lr):Un(Lr,dr,Mn)).then(Lr=>{if(Lr){if(Gl(Lr,2))return ir(ws({replace:gt},Ue(Lr.to),{state:typeof Lr.to=="object"?ws({},Ki,Lr.to.state):Ki,force:tt}),cn||dr)}else Lr=Ln(dr,Mn,!0,gt,Ki);return ln(dr,Mn,Lr),Lr})}function Cr(Sr,cn){const zr=Ot(Sr,cn);return zr?Promise.reject(zr):Promise.resolve()}function Tr(Sr){const cn=ms.values().next().value;return cn&&typeof cn.runWithContext=="function"?cn.runWithContext(Sr):Sr()}function Xr(Sr,cn){let zr;const[Mn,Ki,tt]=g7(Sr,cn);zr=ay(Mn.reverse(),"beforeRouteLeave",Sr,cn);for(const Zt of Mn)Zt.leaveGuards.forEach(dr=>{zr.push(Rc(dr,Sr,cn))});const gt=Cr.bind(null,Sr,cn);return zr.push(gt),Ts(zr).then(()=>{zr=[];for(const Zt of s.list())zr.push(Rc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>{zr=ay(Ki,"beforeRouteUpdate",Sr,cn);for(const Zt of Ki)Zt.updateGuards.forEach(dr=>{zr.push(Rc(dr,Sr,cn))});return zr.push(gt),Ts(zr)}).then(()=>{zr=[];for(const Zt of tt)if(Zt.beforeEnter)if(ku(Zt.beforeEnter))for(const dr of Zt.beforeEnter)zr.push(Rc(dr,Sr,cn));else zr.push(Rc(Zt.beforeEnter,Sr,cn));return zr.push(gt),Ts(zr)}).then(()=>(Sr.matched.forEach(Zt=>Zt.enterCallbacks={}),zr=ay(tt,"beforeRouteEnter",Sr,cn),zr.push(gt),Ts(zr))).then(()=>{zr=[];for(const Zt of a.list())zr.push(Rc(Zt,Sr,cn));return zr.push(gt),Ts(zr)}).catch(Zt=>Gl(Zt,8)?Zt:Promise.reject(Zt))}function ln(Sr,cn,zr){l.list().forEach(Mn=>Tr(()=>Mn(Sr,cn,zr)))}function Ln(Sr,cn,zr,Mn,Ki){const tt=Ot(Sr,cn);if(tt)return tt;const gt=cn===_c,Zt=Ap?history.state:{};zr&&(Mn||gt?i.replace(Sr.fullPath,ws({scroll:gt&&Zt&&Zt.scroll},Ki)):i.push(Sr.fullPath,Ki)),p.value=Sr,ji(Sr,cn,zr,gt),Bi()}let hi;function $i(){hi||(hi=i.listen((Sr,cn,zr)=>{if(!vo.listening)return;const Mn=Oe(Sr),Ki=Yt(Mn);if(Ki){ir(ws(Ki,{replace:!0}),Mn).catch(Lf);return}d=Mn;const tt=p.value;Ap&&E4(Cv(tt.fullPath,zr.delta),s0()),Xr(Mn,tt).catch(gt=>Gl(gt,12)?gt:Gl(gt,2)?(ir(gt.to,Mn).then(Zt=>{Gl(Zt,20)&&!zr.delta&&zr.type===md.pop&&i.go(-1,!1)}).catch(Lf),Promise.reject()):(zr.delta&&i.go(-zr.delta,!1),Un(gt,Mn,tt))).then(gt=>{gt=gt||Ln(Mn,tt,!1),gt&&(zr.delta&&!Gl(gt,8)?i.go(-zr.delta,!1):zr.type===md.pop&&Gl(gt,20)&&i.go(-1,!1)),ln(Mn,tt,gt)}).catch(Lf)}))}let Nn=xf(),Pn=xf(),Vn;function Un(Sr,cn,zr){Bi(Sr);const Mn=Pn.list();return Mn.length?Mn.forEach(Ki=>Ki(Sr,cn,zr)):console.error(Sr),Promise.reject(Sr)}function kn(){return Vn&&p.value!==_c?Promise.resolve():new Promise((Sr,cn)=>{Nn.add([Sr,cn])})}function Bi(Sr){return Vn||(Vn=!Sr,$i(),Nn.list().forEach(([cn,zr])=>Sr?zr(Sr):cn()),Nn.reset()),Sr}function ji(Sr,cn,zr,Mn){const{scrollBehavior:Ki}=r;if(!Ap||!Ki)return Promise.resolve();const tt=!zr&&w4(Cv(Sr.fullPath,0))||(Mn||!zr)&&history.state&&history.state.scroll||null;return Gh().then(()=>Ki(Sr,cn,tt)).then(gt=>gt&&S4(gt)).catch(gt=>Un(gt,Sr,cn))}const ts=Sr=>i.go(Sr);let As;const ms=new Set,vo={currentRoute:p,listening:!0,addRoute:I,removeRoute:H,hasRoute:ke,getRoutes:ge,resolve:Oe,options:r,push:pt,replace:vt,go:ts,back:()=>ts(-1),forward:()=>ts(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:Pn.add,isReady:kn,install(Sr){const cn=this;Sr.component("RouterLink",c7),Sr.component("RouterView",d7),Sr.config.globalProperties.$router=cn,Object.defineProperty(Sr.config.globalProperties,"$route",{enumerable:!0,get:()=>Ai(p)}),Ap&&!As&&p.value===_c&&(As=!0,pt(i.location).catch(Ki=>{}));const zr={};for(const Ki in _c)Object.defineProperty(zr,Ki,{get:()=>p.value[Ki],enumerable:!0});Sr.provide(UO,cn),Sr.provide(qO,tC(zr)),Sr.provide(SD,p);const Mn=Sr.unmount;ms.add(Sr),Sr.unmount=function(){ms.delete(Sr),ms.size<1&&(d=_c,hi&&hi(),hi=null,p.value=_c,As=!1,Vn=!1),Mn()}}};function Ts(Sr){return Sr.reduce((cn,zr)=>cn.then(()=>Tr(zr)),Promise.resolve())}return vo}function g7(r,e){const t=[],n=[],i=[],s=Math.max(e.matched.length,r.matched.length);for(let a=0;a<s;a++){const l=e.matched[a];l&&(r.matched.find(d=>Jp(d,l))?n.push(l):t.push(l));const p=r.matched[a];p&&(e.matched.find(d=>Jp(d,p))||i.push(p))}return[t,n,i]}function y7(){return gl(qO)}const D7=bo({__name:"FileIcon",props:{id:{}},setup(r){const e=r,t=ps(()=>e.id.toLowerCase().replace(/\?.*$/,"").split(/\./g).pop()),n=ps(()=>{switch(t.value){case"vue":return"i-vscode-icons-file-type-vue";case"html":case"htm":return"i-vscode-icons-file-type-html";case"svelte":return"i-vscode-icons-file-type-svelte";case"ts":case"mts":case"tsx":case"cts":return"i-vscode-icons-file-type-typescript-official";case"js":case"jsx":case"mjs":case"cjs":return"i-vscode-icons-file-type-js-official";case"json":return"i-vscode-icons-file-type-json-official";case"md":case"markdown":return"i-vscode-icons-file-type-markdown";default:return"i-carbon-document-blank"}});return(i,s)=>(bi(),is("div",{class:Fa(Ai(n))},null,2))}}),O7={open:""},x7={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},b7={"ml-1":""},v7=bo({__name:"ModuleTreeNode",props:{node:{},icon:{default:"i-carbon-folder"}},setup(r){const e=y7();return(t,n)=>{const i=Xh("ModuleTreeNode",!0),s=D7,a=Xh("RouterLink");return bi(),is("details",O7,[nn("summary",x7,[nn("div",{class:Fa(t.icon)},null,2),pa(" "+Zs(t.node.name),1)]),(bi(!0),is(co,null,jc(Object.entries(t.node.children),l=>(bi(),Yo(i,{key:l[0],ml4:"",node:l[1]},null,8,["node"]))),128)),(bi(!0),is(co,null,jc(t.node.items,l=>(bi(),is("div",{key:l.full,ml4:"","ws-nowrap":""},[xs(a,{block:"","text-sm":"",p:"x2 y1",ml1:"",rounded:"",to:`/module/${encodeURIComponent(l.full)}`,class:Fa({"bg-active":l.full===Ai(e).params.id})},{default:fa(()=>[xs(s,{id:l.path},null,8,["id"]),nn("span",b7,Zs(l.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}}),C7="/__unocss/favicon.svg",S7={p:"x4 y3",border:"b main",flex:"","children:my-auto":""},E7=nn("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[nn("img",{src:C7,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),nn("div",{"of-hidden":""},[pa(" Inspector "),nn("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),w7=bo({__name:"NarBar",setup(r){const e=n_(),t=document.startViewTransition&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches;function n(i){if(!t||!i){e.value=!e.value;return}const s=i.clientX,a=i.clientY,l=Math.hypot(Math.max(s,innerWidth-s),Math.max(a,innerHeight-a));document.startViewTransition(async()=>{e.value=!e.value,await Gh()}).ready.then(()=>{const d=[`circle(0px at ${s}px ${a}px)`,`circle(${l}px at ${s}px ${a}px)`];document.documentElement.animate({clipPath:e.value?[...d].reverse():d},{duration:400,easing:"ease-in",pseudoElement:e.value?"::view-transition-old(root)":"::view-transition-new(root)"})})}return(i,s)=>(bi(),is("nav",S7,[E7,nn("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:n})]))}}),A7={"h-full":"",border:"r main"},T7={"of-hidden":""},P7={pt:"4",flex:"~ col gap-3"},k7=nn("div",{"i-carbon-dashboard":""},null,-1),F7=nn("span",null," Overview ",-1),_7=nn("div",{"i-carbon-terminal":""},null,-1),$7=nn("span",null," REPL ",-1),B7=nn("div",{border:"b main"},null,-1),N7={class:"scrolls scrolls-sidebar"},I7=bo({__name:"Sidebar",setup(r){return(e,t)=>{const n=w7,i=Xh("RouterLink"),s=v7;return bi(),is("div",A7,[nn("div",T7,[xs(n),nn("div",P7,[xs(i,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:fa(()=>[k7,F7]),_:1}),xs(i,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:fa(()=>[_7,$7]),_:1}),B7])]),nn("div",N7,[Object.keys(Ai(Sp).workspace.children).length?(bi(),Yo(s,{key:0,node:Ai(Sp).workspace,p:"l3 t4",icon:"i-carbon-portfolio"},null,8,["node"])):wu("",!0),Object.keys(Ai(Sp).root.children).length?(bi(),Yo(s,{key:1,node:Ai(Sp).root,p:"l3 t4",icon:"i-carbon-vmdk-disk"},null,8,["node"])):wu("",!0),Object.keys(Ai(Sp).nodeModules.children).length?(bi(),Yo(s,{key:2,node:Ai(Sp).nodeModules,p:"l3 t4",icon:"i-carbon-categories"},null,8,["node"])):wu("",!0)])])}}}),M7={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((r,e)=>(r[e.id]=e)&&r,{})}},methods:{updatePaneComponents(){this.panes.forEach(r=>{r.update&&r.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[r.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(r,e){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=e},onMouseMove(r){this.touch.mouseDown&&(r.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(r)),this.$emit("resize",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(r=>({min:r.min,max:r.max,size:r.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(r,e){"ontouchstart"in window&&(r.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===e?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(r,e),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=e,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[e])},onSplitterDblClick(r,e){let t=0;this.panes=this.panes.map((n,i)=>(n.size=i===e?n.max:n.min,i!==e&&(t+=n.min),n)),this.panes[e].size-=t,this.$emit("pane-maximize",this.panes[e]),this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},onPaneClick(r,e){this.$emit("pane-click",this.indexedPanes[e])},getCurrentMouseDrag(r){const e=this.container.getBoundingClientRect(),{clientX:t,clientY:n}="ontouchstart"in window&&r.touches?r.touches[0]:r;return{x:t-e.left,y:n-e.top}},getCurrentDragPercentage(r){r=r[this.horizontal?"y":"x"];const e=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(r=e-r),r*100/e},calculatePanesSize(r){const e=this.touch.activeSplitter;let t={prevPanesSize:this.sumPrevPanesSize(e),nextPanesSize:this.sumNextPanesSize(e),prevReachedMinPanes:0,nextReachedMinPanes:0};const n=0+(this.pushOtherPanes?0:t.prevPanesSize),i=100-(this.pushOtherPanes?0:t.nextPanesSize),s=Math.max(Math.min(this.getCurrentDragPercentage(r),i),n);let a=[e,e+1],l=this.panes[a[0]]||null,p=this.panes[a[1]]||null;const d=l.max<100&&s>=l.max+t.prevPanesSize,g=p.max<100&&s<=100-(p.max+this.sumNextPanesSize(e+1));if(d||g){d?(l.size=l.max,p.size=Math.max(100-l.max-t.prevPanesSize-t.nextPanesSize,0)):(l.size=Math.max(100-p.max-t.prevPanesSize-this.sumNextPanesSize(e+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(t,s);if(!b)return;({sums:t,panesToResize:a}=b),l=this.panes[a[0]]||null,p=this.panes[a[1]]||null}l!==null&&(l.size=Math.min(Math.max(s-t.prevPanesSize-t.prevReachedMinPanes,l.min),l.max)),p!==null&&(p.size=Math.min(Math.max(100-s-t.nextPanesSize-t.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(r,e){const t=this.touch.activeSplitter,n=[t,t+1];return e<r.prevPanesSize+this.panes[n[0]].min&&(n[0]=this.findPrevExpandedPane(t).index,r.prevReachedMinPanes=0,n[0]<t&&this.panes.forEach((i,s)=>{s>n[0]&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),r.prevPanesSize=this.sumPrevPanesSize(n[0]),n[0]===void 0)?(r.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((i,s)=>{s>0&&s<=t&&(i.size=i.min,r.prevReachedMinPanes+=i.min)}),this.panes[n[1]].size=100-r.prevReachedMinPanes-this.panes[0].min-r.prevPanesSize-r.nextPanesSize,null):e>100-r.nextPanesSize-this.panes[n[1]].min&&(n[1]=this.findNextExpandedPane(t).index,r.nextReachedMinPanes=0,n[1]>t+1&&this.panes.forEach((i,s)=>{s>t&&s<n[1]&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),r.nextPanesSize=this.sumNextPanesSize(n[1]-1),n[1]===void 0)?(r.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((i,s)=>{s<this.panesCount-1&&s>=t+1&&(i.size=i.min,r.nextReachedMinPanes+=i.min)}),this.panes[n[0]].size=100-r.prevPanesSize-r.nextReachedMinPanes-this.panes[this.panesCount-1].min-r.nextPanesSize,null):{sums:r,panesToResize:n}},sumPrevPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n<r?t.size:0),0)},sumNextPanesSize(r){return this.panes.reduce((e,t,n)=>e+(n>r+1?t.size:0),0)},findPrevExpandedPane(r){return[...this.panes].reverse().find(e=>e.index<r&&e.size>e.min)||{}},findNextExpandedPane(r){return this.panes.find(e=>e.index>r+1&&e.size>e.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(r=>{const e=r.classList.contains("splitpanes__pane"),t=r.classList.contains("splitpanes__splitter");!e&&!t&&(r.parentNode.removeChild(r),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(r,e,t=!1){const n=r-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),t||(i.onmousedown=s=>this.onMouseDown(s,n),typeof window<"u"&&"ontouchstart"in window&&(i.ontouchstart=s=>this.onMouseDown(s,n)),i.onclick=s=>this.onSplitterClick(s,n+1)),this.dblClickSplitter&&(i.ondblclick=s=>this.onSplitterDblClick(s,n+1)),e.parentNode.insertBefore(i,e)},removeSplitter(r){r.onmousedown=void 0,r.onclick=void 0,r.ondblclick=void 0,r.parentNode.removeChild(r)},redoSplitters(){const r=Array.from(this.container.children);r.forEach(t=>{t.className.includes("splitpanes__splitter")&&this.removeSplitter(t)});let e=0;r.forEach(t=>{t.className.includes("splitpanes__pane")&&(!e&&this.firstSplitter?this.addSplitter(e,t,!0):e&&this.addSplitter(e,t),e++)})},requestUpdate({target:r,...e}){const t=this.indexedPanes[r._.uid];Object.entries(e).forEach(([n,i])=>t[n]=i)},onPaneAdd(r){let e=-1;Array.from(r.$el.parentNode.children).some(i=>(i.className.includes("splitpanes__pane")&&e++,i===r.$el));const t=parseFloat(r.minSize),n=parseFloat(r.maxSize);this.panes.splice(e,0,{id:r._.uid,index:e,min:isNaN(t)?0:t,max:isNaN(n)?100:n,size:r.size===null?null:parseFloat(r.size),givenSize:r.size,update:r.update}),this.panes.forEach((i,s)=>i.index=s),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[e]}),this.$emit("pane-add",{index:e,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},onPaneRemove(r){const e=this.panes.findIndex(n=>n.id===r._.uid),t=this.panes.splice(e,1)[0];this.panes.forEach((n,i)=>n.index=i),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...t,index:e}}),this.$emit("pane-remove",{removed:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},resetPaneSizes(r={}){!r.addedPane&&!r.removedPane?this.initialPanesSizing():this.panes.some(e=>e.givenSize!==null||e.min||e.max<100)?this.equalizeAfterAddOrRemove(r):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size})))},equalize(){const r=100/this.panesCount;let e=0;const t=[],n=[];this.panes.forEach(i=>{i.size=Math.max(Math.min(r,i.max),i.min),e-=i.size,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)}),e>.1&&this.readjustSizes(e,t,n)},initialPanesSizing(){let r=100;const e=[],t=[];let n=0;this.panes.forEach(s=>{r-=s.size,s.size!==null&&n++,s.size>=s.max&&e.push(s.id),s.size<=s.min&&t.push(s.id)});let i=100;r>.1&&(this.panes.forEach(s=>{s.size===null&&(s.size=Math.max(Math.min(r/(this.panesCount-n),s.max),s.min)),i-=s.size}),i>.1&&this.readjustSizes(r,e,t))},equalizeAfterAddOrRemove({addedPane:r,removedPane:e}={}){let t=100/this.panesCount,n=0;const i=[],s=[];r&&r.givenSize!==null&&(t=(100-r.givenSize)/(this.panesCount-1)),this.panes.forEach(a=>{n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),!(Math.abs(n)<.1)&&(this.panes.forEach(a=>{r&&r.givenSize!==null&&r.id===a.id||(a.size=Math.max(Math.min(t,a.max),a.min)),n-=a.size,a.size>=a.max&&i.push(a.id),a.size<=a.min&&s.push(a.id)}),n>.1&&this.readjustSizes(n,i,s))},readjustSizes(r,e,t){let n;r>0?n=r/(this.panesCount-e.length):n=r/(this.panesCount-t.length),this.panes.forEach((i,s)=>{if(r>0&&!e.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}else if(!t.includes(i.id)){const a=Math.max(Math.min(i.size+n,i.max),i.min),l=a-i.size;r-=l,i.size=a}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})}),Math.abs(r)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(r){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((e,t)=>{e.ondblclick=r?n=>this.onSplitterDblClick(n,t):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return WD("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},R7=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},Q7={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(r){this.style=r}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(r){this.requestUpdate({target:this,size:r})},minSizeNumber(r){this.requestUpdate({target:this,min:r})},maxSizeNumber(r){this.requestUpdate({target:this,max:r})}}};function j7(r,e,t,n,i,s){return bi(),is("div",{class:"splitpanes__pane",onClick:e[0]||(e[0]=a=>s.onPaneClick(a,r._.uid)),style:ml(r.style)},[tc(r.$slots,"default")],4)}const Mv=R7(Q7,[["render",j7]]),L7={"h-screen":"","w-screen":"","of-hidden":""},X7={"h-full":"","of-hidden":""},V7=bo({__name:"App",setup(r){return(e,t)=>{const n=I7,i=Xh("RouterView");return bi(),is("div",L7,[xs(Ai(M7),null,{default:fa(()=>[xs(Ai(Mv),{size:"20","push-other-panes":!1},{default:fa(()=>[xs(n)]),_:1}),xs(Ai(Mv),{size:"80"},{default:fa(()=>[nn("div",X7,[xs(i)])]),_:1})]),_:1})])}}}),Jw=$P(V7);Jw.use(m7({history:F4(),routes:p4}));Jw.mount("#app");export{p6 as A,ps as B,wu as C,M9 as D,Zs as E,Mv as F,xw as G,G5 as H,y7 as I,M7 as M,X5 as _,W7 as a,l2 as b,is as c,bo as d,nn as e,J7 as f,xs as g,OT as h,Ys as i,Ai as j,pa as k,z5 as l,R5 as m,ml as n,bi as o,mw as p,Yo as q,Gs as r,BC as s,U7 as t,r6 as u,AP as v,fa as w,H7 as x,eT as y,z7 as z};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as x,r as S,u as b,a as k,b as V,f as B,o as h,c as w,e as s,g as a,w as m,h as C,i as p,v as R,j as e,k as P,n as f,_ as E,l as N,m as U,p as $,q as I}from"./index-
|
|
1
|
+
import{d as x,r as S,u as b,a as k,b as V,f as B,o as h,c as w,e as s,g as a,w as m,h as C,i as p,v as R,j as e,k as P,n as f,_ as E,l as N,m as U,p as $,q as I}from"./index-8c054389.js";const L={"h-full":"",grid:"~ rows-[max-content_1fr]","of-hidden":""},M=s("div",null," REPL Playground ",-1),T=s("div",{op60:""}," Edit your code below to test and play UnoCSS's matching and generating. ",-1),j={"h-full":"","of-hidden":"",grid:"","grid-cols-2":""},q=x({__name:"ReplPlayground",setup(y){const r=S(null),l=b(r,"repl-scrolls"),t=k("unocss:inspector:repl",`<div class="text-sm hover:text-red">
|
|
2
2
|
Hello World
|
|
3
3
|
</div>`),o=V("unocss-inspector-safelist",!1),{data:d}=B(t,o);return(H,n)=>{var i,_;const v=E,g=N,u=U;return h(),w("div",L,[s("div",{ref_key:"status",ref:r},[a(v,null,{default:m(()=>[M,T]),_:1}),a(g,{border:"b gray-400/20",title:""},{default:m(()=>[s("label",null,[C(s("input",{"onUpdate:modelValue":n[0]||(n[0]=c=>p(o)?o.value=c:null),type:"checkbox"},null,512),[[R,e(o)]]),P(" Include safelist ")])]),_:1})],512),s("div",j,[a(u,{modelValue:e(t),"onUpdate:modelValue":n[1]||(n[1]=c=>p(t)?t.value=c:null),mode:"html",matched:((i=e(d))==null?void 0:i.matched)||[],class:"scrolls repl-scrolls",style:f(e(l))},null,8,["modelValue","matched","style"]),a(u,{border:"l main","model-value":((_=e(d))==null?void 0:_.css)||"/* empty */","read-only":!0,mode:"css",class:"scrolls repl-scrolls",style:f(e(l))},null,8,["model-value","style"])])])}}}),z={};function D(y,r){const l=q;return h(),I(l)}const A=$(z,[["render",D]]);export{A 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-8c054389.js"></script>
|
|
12
12
|
<link rel="stylesheet" href="/__unocss/assets/index-b22884c3.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/dist/index.cjs
CHANGED
|
@@ -489,6 +489,8 @@ const staticUtilities = {
|
|
|
489
489
|
"justify-between": "justifyContent",
|
|
490
490
|
"justify-around": "justifyContent",
|
|
491
491
|
"justify-evenly": "justifyContent",
|
|
492
|
+
"justify-left": "justifyContent",
|
|
493
|
+
"justify-right": "justifyContent",
|
|
492
494
|
"justify-items-auto": "justifyItems",
|
|
493
495
|
"justify-items-start": "justifyItems",
|
|
494
496
|
"justify-items-end": "justifyItems",
|
package/dist/index.mjs
CHANGED
|
@@ -481,6 +481,8 @@ const staticUtilities = {
|
|
|
481
481
|
"justify-between": "justifyContent",
|
|
482
482
|
"justify-around": "justifyContent",
|
|
483
483
|
"justify-evenly": "justifyContent",
|
|
484
|
+
"justify-left": "justifyContent",
|
|
485
|
+
"justify-right": "justifyContent",
|
|
484
486
|
"justify-items-auto": "justifyItems",
|
|
485
487
|
"justify-items-start": "justifyItems",
|
|
486
488
|
"justify-items-end": "justifyItems",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/inspector",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.3",
|
|
4
4
|
"description": "The inspector UI for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"gzip-size": "^6.0.0",
|
|
38
38
|
"sirv": "^2.0.3",
|
|
39
|
-
"@unocss/rule-utils": "0.56.
|
|
39
|
+
"@unocss/rule-utils": "0.56.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|