UNPKG

create-storybook

Version:

Storybook installer: Develop, document, and test UI components in isolation

21 lines (19 loc) • 152 kB
import ESM_COMPAT_Module1 from 'node:module'; import 'node:url'; import 'node:path'; import './chunk-VASF4FB5.js'; ESM_COMPAT_Module1.createRequire(import.meta.url); var sn=Object.defineProperty,an=t7=>{throw TypeError(t7)},li=(t7,e,r)=>e in t7?sn(t7,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t7[e]=r,on=(t7,e)=>{for(var r in e)sn(t7,r,{get:e[r],enumerable:!0});},lr=(t7,e,r)=>li(t7,typeof e!="symbol"?e+"":e,r),un=(t7,e,r)=>e.has(t7)||an("Cannot "+r),R=(t7,e,r)=>(un(t7,e,"read from private field"),r?r.call(t7):e.get(t7)),Et=(t7,e,r)=>e.has(t7)?an("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t7):e.set(t7,r),ln=(t7,e,r,n)=>(un(t7,e,"write to private field"),n?n.call(t7,r):e.set(t7,r),r),en={};on(en,{languages:()=>xs,options:()=>Bs,parsers:()=>Zr,printers:()=>Uo});var ci=(t7,e,r,n)=>{if(!(t7&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=ci,ye="string",Ge="array",Ye="cursor",we="indent",be="align",je="trim",Te="group",xe="fill",ce="if-break",ke="indent-if-break",Ke="line-suffix",Qe="line-suffix-boundary",j="line",Xe="label",Be="break-parent",At=new Set([Ye,we,be,je,Te,xe,ce,ke,Ke,Qe,j,Xe,Be]),pi=(t7,e,r)=>{if(!(t7&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},K=pi;function hi(t7){if(typeof t7=="string")return ye;if(Array.isArray(t7))return Ge;if(!t7)return;let{type:e}=t7;if(At.has(e))return e}var Le=hi,fi=t7=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t7);function mi(t7){let e=t7===null?"null":typeof t7;if(e!=="string"&&e!=="object")return `Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Le(t7))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t7);if(r!=="[object Object]")return `Unexpected doc '${r}'.`;let n=fi([...At].map(s=>`'${s}'`));return `Unexpected doc.type '${t7.type}'. Expected it to be ${n}.`}var cr=class extends Error{name="InvalidDocError";constructor(e){super(mi(e)),this.doc=e;}},pr=cr;function hr(t7,e){if(typeof t7=="string")return e(t7);let r=new Map;return n(t7);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Le(i)){case Ge:return e(i.map(n));case xe:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Te:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case be:case we:case ke:case Xe:case Ke:return e({...i,contents:n(i.contents)});case ye:case Ye:case je:case Qe:case j:case Be:return e(i);default:throw new pr(i)}}}function B(t7,e=cn){return hr(t7,r=>typeof r=="string"?H(e,r.split(` `)):r)}var fr=()=>{},mr=fr;function k(t7){return {type:we,contents:t7}}function hn(t7,e){return {type:be,contents:e,n:t7}}function E(t7,e={}){return mr(e.expandedStates),{type:Te,id:e.id,contents:t7,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function fn(t7){return hn(Number.NEGATIVE_INFINITY,t7)}function mn(t7){return hn({type:"root"},t7)}function Dt(t7){return {type:xe,parts:t7}}function pe(t7,e="",r={}){return {type:ce,breakContents:t7,flatContents:e,groupId:r.groupId}}function dn(t7,e){return {type:ke,contents:t7,groupId:e.groupId,negate:e.negate}}var se={type:Be},gi={type:j,hard:!0},Ci={type:j,hard:!0,literal:!0},_={type:j},v={type:j,soft:!0},S=[gi,se],cn=[Ci,se];function H(t7,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t7),r.push(e[n]);return r}var vt="'",gn='"';function Si(t7,e){let r=e===!0||e===vt?vt:gn,n=r===vt?gn:vt,s=0,i=0;for(let a of t7)a===r?s++:a===n&&i++;return s>i?n:r}var Cn=Si;function dr(t7){if(typeof t7!="string")throw new TypeError("Expected a string");return t7.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var V,gr=class{constructor(e){Et(this,V),ln(this,V,new Set(e));}getLeadingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return R(this,V).has(e.charAt(0))}hasTrailingWhitespace(e){return R(this,V).has(K(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${dr([...R(this,V)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=R(this,V);return Array.prototype.every.call(e,n=>r.has(n))}};V=new WeakMap;var Sn=gr,_i=[" ",` `,"\f","\r"," "],Ei=new Sn(_i),O=Ei,Cr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e;}},_n=Cr;function Ai(t7){return t7?.type==="front-matter"}var Fe=Ai,Di=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),vi=new Set(["if","else if","for","switch","case"]);function En(t7,e){var r;if(t7.type==="text"||t7.type==="comment"||Fe(t7)||t7.type==="yaml"||t7.type==="toml")return null;if(t7.type==="attribute"&&delete e.value,t7.type==="docType"&&delete e.value,t7.type==="angularControlFlowBlock"&&(r=t7.parameters)!=null&&r.children)for(let n of e.parameters.children)vi.has(t7.name)?delete n.expression:n.expression=n.expression.trim();t7.type==="angularIcuExpression"&&(e.switchValue=t7.switchValue.trim()),t7.type==="angularLetDeclarationInitializer"&&delete e.value;}En.ignoredProperties=Di;var An=En;async function yi(t7,e){if(t7.language==="yaml"){let r=t7.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return mn([t7.startDelimiter,t7.explicitLanguage,S,n,n?S:"",t7.endDelimiter])}}var Dn=yi;function he(t7,e=!0){return [k([v,t7]),e?v:""]}function Q(t7,e){let r=t7.type==="NGRoot"?t7.node.type==="NGMicrosyntax"&&t7.node.body.length===1&&t7.node.body[0].type==="NGMicrosyntaxExpression"?t7.node.body[0].expression:t7.node:t7.type==="JsExpressionRoot"?t7.node:t7;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t7,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o);});let i=await e(t7,r,e);return s?E(i):he(i)}function wi(t7,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return /^\s*$/u.test(i)?"":T(i,t7,{parser:"__ng_directive",__isInHtmlAttribute:!1},Q)}var vn=wi,bi=t7=>String(t7).split(/[/\\]/u).pop();function yn(t7,e){if(!e)return;let r=bi(e).toLowerCase();return t7.find(({filenames:n})=>n?.some(s=>s.toLowerCase()===r))??t7.find(({extensions:n})=>n?.some(s=>r.endsWith(s)))}function Ti(t7,e){if(e)return t7.find(({name:r})=>r.toLowerCase()===e)??t7.find(({aliases:r})=>r?.includes(e))??t7.find(({extensions:r})=>r?.includes(`.${e}`))}function xi(t7,e){let r=t7.plugins.flatMap(s=>s.languages??[]),n=Ti(r,e.language)??yn(r,e.physicalFile)??yn(r,e.file)??(e.physicalFile,void 0);return n?.parsers[0]}var Ne=xi,wn="inline",bn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Tn="normal",xn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ki(t7){return t7.type==="element"&&!t7.hasExplicitNamespace&&!["html","svg"].includes(t7.namespace)}var fe=ki,Bi=t7=>w(!1,t7,/^[\t\f\r ]*\n/gu,""),Sr=t7=>Bi(O.trimEnd(t7)),kn=t7=>{let e=t7,r=O.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=O.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function yt(t7,e){return !!(t7.type==="ieConditionalComment"&&t7.lastChild&&!t7.lastChild.isSelfClosing&&!t7.lastChild.endSourceSpan||t7.type==="ieConditionalComment"&&!t7.complete||me(t7)&&t7.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Tt(t7,e)&&!W(t7)&&t7.type!=="interpolation")}function de(t7){return t7.type==="attribute"||!t7.parent||!t7.prev?!1:Li(t7.prev)}function Li(t7){return t7.type==="comment"&&t7.value.trim()==="prettier-ignore"}function $(t7){return t7.type==="text"||t7.type==="comment"}function W(t7){return t7.type==="element"&&(t7.fullName==="script"||t7.fullName==="style"||t7.fullName==="svg:style"||t7.fullName==="svg:script"||fe(t7)&&(t7.name==="script"||t7.name==="style"))}function Bn(t7){return t7.children&&!W(t7)}function Ln(t7){return W(t7)||t7.type==="interpolation"||_r(t7)}function _r(t7){return Vn(t7).startsWith("pre")}function Fn(t7,e){var s,i;let r=n();if(r&&!t7.prev&&(i=(s=t7.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf)return t7.type==="interpolation";return r;function n(){return Fe(t7)||t7.type==="angularControlFlowBlock"?!1:(t7.type==="text"||t7.type==="interpolation")&&t7.prev&&(t7.prev.type==="text"||t7.prev.type==="interpolation")?!0:!t7.parent||t7.parent.cssDisplay==="none"?!1:me(t7.parent)?!0:!(!t7.prev&&(t7.parent.type==="root"||me(t7)&&t7.parent||W(t7.parent)||et(t7.parent,e)||!$i(t7.parent.cssDisplay))||t7.prev&&!qi(t7.prev.cssDisplay))}}function Nn(t7,e){return Fe(t7)||t7.type==="angularControlFlowBlock"?!1:(t7.type==="text"||t7.type==="interpolation")&&t7.next&&(t7.next.type==="text"||t7.next.type==="interpolation")?!0:!t7.parent||t7.parent.cssDisplay==="none"?!1:me(t7.parent)?!0:!(!t7.next&&(t7.parent.type==="root"||me(t7)&&t7.parent||W(t7.parent)||et(t7.parent,e)||!Oi(t7.parent.cssDisplay))||t7.next&&!Mi(t7.next.cssDisplay))}function Pn(t7){return Hi(t7.cssDisplay)&&!W(t7)}function Je(t7){return Fe(t7)||t7.next&&t7.sourceSpan.end&&t7.sourceSpan.end.line+1<t7.next.sourceSpan.start.line}function In(t7){return Er(t7)||t7.type==="element"&&t7.children.length>0&&(["body","script","style"].includes(t7.name)||t7.children.some(e=>Ni(e)))||t7.firstChild&&t7.firstChild===t7.lastChild&&t7.firstChild.type!=="text"&&$n(t7.firstChild)&&(!t7.lastChild.isTrailingSpaceSensitive||On(t7.lastChild))}function Er(t7){return t7.type==="element"&&t7.children.length>0&&(["html","head","ul","ol","select"].includes(t7.name)||t7.cssDisplay.startsWith("table")&&t7.cssDisplay!=="table-cell")}function wt(t7){return Mn(t7)||t7.prev&&Fi(t7.prev)||Rn(t7)}function Fi(t7){return Mn(t7)||t7.type==="element"&&t7.fullName==="br"||Rn(t7)}function Rn(t7){return $n(t7)&&On(t7)}function $n(t7){return t7.hasLeadingSpaces&&(t7.prev?t7.prev.sourceSpan.end.line<t7.sourceSpan.start.line:t7.parent.type==="root"||t7.parent.startSourceSpan.end.line<t7.sourceSpan.start.line)}function On(t7){return t7.hasTrailingSpaces&&(t7.next?t7.next.sourceSpan.start.line>t7.sourceSpan.end.line:t7.parent.type==="root"||t7.parent.endSourceSpan&&t7.parent.endSourceSpan.start.line>t7.sourceSpan.end.line)}function Mn(t7){switch(t7.type){case"ieConditionalComment":case"comment":case"directive":return !0;case"element":return ["script","select"].includes(t7.name)}return !1}function bt(t7){return t7.lastChild?bt(t7.lastChild):t7}function Ni(t7){var e;return (e=t7.children)==null?void 0:e.some(r=>r.type!=="text")}function qn(t7){if(t7)switch(t7){case"module":case"text/javascript":case"text/babel":case"application/javascript":return "babel";case"application/x-typescript":return "typescript";case"text/markdown":return "markdown";case"text/html":return "html";case"text/x-handlebars-template":return "glimmer";default:if(t7.endsWith("json")||t7.endsWith("importmap")||t7==="speculationrules")return "json"}}function Pi(t7,e){let{name:r,attrMap:n}=t7;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t7.attrMap;return !i&&!s?"babel":Ne(e,{language:i})??qn(s)}function Ii(t7,e){if(!Tt(t7,e))return;let{attrMap:r}=t7;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Ne(e,{language:s})??qn(n)}function Ri(t7,e){if(t7.name!=="style")return;let{lang:r}=t7.attrMap;return r?Ne(e,{language:r}):"css"}function Ar(t7,e){return Pi(t7,e)??Ri(t7,e)??Ii(t7,e)}function Ze(t7){return t7==="block"||t7==="list-item"||t7.startsWith("table")}function $i(t7){return !Ze(t7)&&t7!=="inline-block"}function Oi(t7){return !Ze(t7)&&t7!=="inline-block"}function Mi(t7){return !Ze(t7)}function qi(t7){return !Ze(t7)}function Hi(t7){return !Ze(t7)&&t7!=="inline-block"}function me(t7){return Vn(t7).startsWith("pre")}function Vi(t7,e){let r=t7;for(;r;){if(e(r))return !0;r=r.parent;}return !1}function Hn(t7,e){var n;if(ge(t7,e))return "block";if(((n=t7.prev)==null?void 0:n.type)==="comment"){let s=t7.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(s)return s[1]}let r=!1;if(t7.type==="element"&&t7.namespace==="svg")if(Vi(t7,s=>s.fullName==="svg:foreignObject"))r=!0;else return t7.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return "inline";case"ignore":return "block";default:return t7.type==="element"&&(!t7.namespace||r||fe(t7))&&bn[t7.name]||wn}}function Vn(t7){return t7.type==="element"&&(!t7.namespace||fe(t7))&&xn[t7.name]||Tn}function Ui(t7){let e=Number.POSITIVE_INFINITY;for(let r of t7.split(` `)){if(r.length===0)continue;let n=O.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n);}return e===Number.POSITIVE_INFINITY?0:e}function Dr(t7,e=Ui(t7)){return e===0?t7:t7.split(` `).map(r=>r.slice(e)).join(` `)}function vr(t7){return w(!1,w(!1,t7,"&apos;","'"),"&quot;",'"')}function N(t7){return vr(t7.value)}var Wi=new Set(["template","style","script"]);function et(t7,e){return ge(t7,e)&&!Wi.has(t7.fullName)}function ge(t7,e){return e.parser==="vue"&&t7.type==="element"&&t7.parent.type==="root"&&t7.fullName.toLowerCase()!=="html"}function Tt(t7,e){return ge(t7,e)&&(et(t7,e)||t7.attrMap.lang&&t7.attrMap.lang!=="html")}function Un(t7){let e=t7.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function Wn(t7,e){let r=t7.parent;if(!ge(r,e))return !1;let n=r.fullName,s=t7.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function xt(t7,e=t7.value){return t7.parent.isWhitespaceSensitive?t7.parent.isIndentationSensitive?B(e):B(Dr(Sr(e)),S):H(_,O.split(e))}function kt(t7,e){return ge(t7,e)&&t7.name==="script"}var yr=/\{\{(.+?)\}\}/su;async function zn(t7,e){let r=[];for(let[n,s]of t7.split(yr).entries())if(n%2===0)r.push(B(s));else try{r.push(E(["{{",k([_,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]));}catch{r.push("{{",B(s),"}}");}return r}function wr({parser:t7}){return (e,r,n)=>T(N(n.node),e,{parser:t7},Q)}var zi=wr({parser:"__ng_action"}),Gi=wr({parser:"__ng_binding"}),Yi=wr({parser:"__ng_directive"});function ji(t7,e){if(e.parser!=="angular")return;let{node:r}=t7,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return zi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Gi;if(n.startsWith("*"))return Yi;let s=N(r);if(/^i18n(?:-.+)?$/u.test(n))return ()=>he(Dt(xt(r,s.trim())),!s.includes("@@"));if(yr.test(s))return i=>zn(s,i)}var Gn=ji;function Ki(t7,e){let{node:r}=t7,n=N(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return ()=>n.trim().split(/\s+/u).join(" ")}var Yn=Ki;function jn(t7){return t7===" "||t7===` `||t7==="\f"||t7==="\r"||t7===" "}var Qi=/^[ \t\n\r\u000c]+/,Xi=/^[, \t\n\r\u000c]+/,Ji=/^[^ \t\n\r\u000c]+/,Zi=/[,]+$/,Kn=/^\d+$/,ea=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ta(t7){let e=t7.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t7.substring(o));if(D)return [A]=D,o+=A.length,A}let l=[];for(;;){if(p(Xi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Ji),n=[],r.slice(-1)===","?(r=r.replace(Zi,""),d()):f();}function f(){for(p(Qi),s="",i="in descriptor";;){if(a=t7.charAt(o),i==="in descriptor")if(jn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!jn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1;}}function d(){let C=!1,A,D,I,F,c={},g,y,q,x,U;for(F=0;F<n.length;F++)g=n[F],y=g[g.length-1],q=g.substring(0,g.length-1),x=parseInt(q,10),U=parseFloat(q),Kn.test(q)&&y==="w"?((A||D)&&(C=!0),x===0?C=!0:A=x):ea.test(q)&&y==="x"?((A||D||I)&&(C=!0),U<0?C=!0:D=U):Kn.test(q)&&y==="h"?((I||D)&&(C=!0),x===0?C=!0:I=x):C=!0;if(!C)c.source={value:r,startOffset:u},A&&(c.width={value:A}),D&&(c.density={value:D}),I&&(c.height={value:I}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${t7}" at "${g}".`)}}var Qn=ta;function ra(t7){if(t7.node.fullName==="srcset"&&(t7.parent.fullName==="img"||t7.parent.fullName==="source"))return ()=>sa(N(t7.node))}var Xn={width:"w",height:"h",density:"x"},na=Object.keys(Xn);function sa(t7){let e=Qn(t7),r=na.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Xn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return he(H([",",_],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],I=" ".repeat(A+D);d.push(pe(I," "),C+s);}return d})))}var Jn=ra;function Zn(t7,e){let{node:r}=t7,n=N(t7.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>he(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var br=new WeakMap;function ia(t7,e){let{root:r}=t7;return br.has(r)||br.set(r,r.children.some(n=>kt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),br.get(r)}var Pe=ia;function es(t7,e,r){let{node:n}=r,s=N(n);return T(`type T<${s}> = any`,t7,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Q)}function ts(t7,e,{parseWithTs:r}){return T(`function _(${t7}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function rs(t7,e,r,n){let s=N(r.node),{left:i,operator:a,right:o}=aa(s),u=Pe(r,n);return [E(await T(`function _(${i}) {}`,t7,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t7,{parser:u?"__ts_expression":"__js_expression"})]}function aa(t7){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t7.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return {left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function oa(t7,e){if(e.parser!=="vue")return;let{node:r}=t7,n=r.fullName;if(n==="v-for")return rs;if(n==="generic"&&kt(r.parent,e))return es;let s=N(r),i=Pe(t7,e);if(Un(r)||Wn(r,e))return a=>ts(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ua(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return a=>la(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>ns(s,a,{parseWithTs:i})}async function ua(t7,e,{parseWithTs:r}){var n;try{return await ns(t7,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t7,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Q)}function la(t7,e,{parseWithTs:r}){return T(t7,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Q)}function ns(t7,e,{parseWithTs:r}){return T(t7,e,{parser:r?"__ts_expression":"__js_expression"},Q)}var ss=oa;function ca(t7,e){let{node:r}=t7;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return [r.rawName,"=",r.value];for(let n of [Jn,Zn,Yn,ss,Gn]){let s=n(t7,e);if(s)return pa(s)}}}function pa(t7){return async(e,r,n,s)=>{let i=await t7(e,r,n,s);if(i)return i=hr(i,a=>typeof a=="string"?w(!1,a,'"',"&quot;"):a),[n.node.rawName,'="',E(i),'"']}}var is=ca,as=new Proxy(()=>{},{get:()=>as}),Tr=as;function ha(t7){return Array.isArray(t7)&&t7.length>0}var Ie=ha;function J(t7){return t7.sourceSpan.start.offset}function Z(t7){return t7.sourceSpan.end.offset}function tt(t7,e){return [t7.isSelfClosing?"":fa(t7,e),Ce(t7,e)]}function fa(t7,e){return t7.lastChild&&Ee(t7.lastChild)?"":[ma(t7,e),Bt(t7,e)]}function Ce(t7,e){return (t7.next?X(t7.next):_e(t7.parent))?"":[Se(t7,e),z(t7,e)]}function ma(t7,e){return _e(t7)?Se(t7.lastChild,e):""}function z(t7,e){return Ee(t7)?Bt(t7.parent,e):rt(t7)?Lt(t7.next,e):""}function Bt(t7,e){if(Tr.ok(!t7.isSelfClosing),us(t7,e))return "";switch(t7.type){case"ieConditionalComment":return "<!";case"element":if(t7.hasHtmComponentClosingTag)return "<//";default:return `</${t7.rawName}`}}function Se(t7,e){if(us(t7,e))return "";switch(t7.type){case"ieConditionalComment":case"ieConditionalEndComment":return "[endif]-->";case"ieConditionalStartComment":return "]><!-->";case"interpolation":return "}}";case"angularIcuExpression":return "}";case"element":if(t7.isSelfClosing)return "/>";default:return ">"}}function us(t7,e){return !t7.isSelfClosing&&!t7.endSourceSpan&&(de(t7)||yt(t7.parent,e))}function X(t7){return t7.prev&&t7.prev.type!=="docType"&&t7.type!=="angularControlFlowBlock"&&!$(t7.prev)&&t7.isLeadingSpaceSensitive&&!t7.hasLeadingSpaces}function _e(t7){var e;return ((e=t7.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t7.lastChild.hasTrailingSpaces&&!$(bt(t7.lastChild))&&!me(t7)}function Ee(t7){return !t7.next&&!t7.hasTrailingSpaces&&t7.isTrailingSpaceSensitive&&$(bt(t7))}function rt(t7){return t7.next&&!$(t7.next)&&$(t7)&&t7.isTrailingSpaceSensitive&&!t7.hasTrailingSpaces}function da(t7){let e=t7.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return e?e[1]?e[1].split(/\s+/u):!0:!1}function nt(t7){return !t7.prev&&t7.isLeadingSpaceSensitive&&!t7.hasLeadingSpaces}function ga(t7,e,r){var f;let{node:n}=t7;if(!Ie(n.attrs))return n.isSelfClosing?" ":"";let s=((f=n.prev)==null?void 0:f.type)==="comment"&&da(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t7.map(({node:d})=>i(d)?B(e.originalText.slice(J(d),Z(d))):r(),"attrs"),o=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,p=e.singleAttributePerLine&&n.attrs.length>1&&!ge(n,e)?S:_,l=[k([o?" ":_,H(p,a)])];return n.firstChild&&nt(n.firstChild)||n.isSelfClosing&&_e(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:v),l}function Ca(t7){return t7.firstChild&&nt(t7.firstChild)?"":Ft(t7)}function st(t7,e,r){let{node:n}=t7;return [Ae(n,e),ga(t7,e,r),n.isSelfClosing?"":Ca(n)]}function Ae(t7,e){return t7.prev&&rt(t7.prev)?"":[G(t7,e),Lt(t7,e)]}function G(t7,e){return nt(t7)?Ft(t7.parent):X(t7)?Se(t7.prev,e):""}var os="<!doctype";function Lt(t7,e){switch(t7.type){case"ieConditionalComment":case"ieConditionalStartComment":return `<!--[if ${t7.condition}`;case"ieConditionalEndComment":return "<!--<!";case"interpolation":return "{{";case"docType":{if(t7.value==="html"){let n=e.filepath??"";if(/\.html?$/u.test(n))return os}return e.originalText.slice(J(t7),Z(t7)).slice(0,os.length)}case"angularIcuExpression":return "{";case"element":if(t7.condition)return `<!--[if ${t7.condition}]><!--><${t7.rawName}`;default:return `<${t7.rawName}`}}function Ft(t7){switch(Tr.ok(!t7.isSelfClosing),t7.type){case"ieConditionalComment":return "]>";case"element":if(t7.condition)return "><!--<![endif]-->";default:return ">"}}function Sa(t7,e){if(!t7.endSourceSpan)return "";let r=t7.startSourceSpan.end.offset;t7.firstChild&&nt(t7.firstChild)&&(r-=Ft(t7).length);let n=t7.endSourceSpan.start.offset;return t7.lastChild&&Ee(t7.lastChild)?n+=Bt(t7,e).length:_e(t7)&&(n-=Se(t7.lastChild,e).length),e.originalText.slice(r,n)}var Nt=Sa,_a=new Set(["if","else if","for","switch","case"]);function Ea(t7,e){let{node:r}=t7;switch(r.type){case"element":if(W(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Tt(r,e)){let n=Ar(r,e);return n?async(s,i)=>{let a=Nt(r,e),o=/^\s*$/u.test(a),u="";return o||(u=await s(Sr(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[G(r,e),E(st(t7,e,i)),o?"":S,u,o?"":S,tt(r,e),z(r,e)]}:void 0}break;case"text":if(W(r.parent)){let n=Ar(r.parent,e);if(n)return async s=>{let i=n==="markdown"?Dr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(e.parser==="html"&&n==="babel"){let o="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(o="module"),a.__babelSourceType=o;}return [se,G(r,e),await s(i,a),z(r,e)]}}else if(r.parent.type==="interpolation")return async n=>{let s={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return e.parser==="angular"?s.parser="__ng_interpolation":e.parser==="vue"?s.parser=Pe(t7,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[k([_,await n(r.value,s)]),r.parent.next&&X(r.parent.next)?" ":_]};break;case"attribute":return is(t7,e);case"front-matter":return n=>Dn(r,n);case"angularControlFlowBlockParameters":return _a.has(t7.parent.name)?vn:void 0;case"angularLetDeclarationInitializer":return n=>T(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ls=Ea,it=null;function at(t7){if(it!==null&&typeof it.property){let e=it;return it=at.prototype=null,e}return it=at.prototype=t7??Object.create(null),new at}var Aa=10;for(let t7=0;t7<=Aa;t7++)at();function xr(t7){return at(t7)}function Da(t7,e="type"){xr(t7);function r(n){let s=n[e],i=t7[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var cs=Da,va={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},ps=va,ya=cs(ps),hs=ya;function fs(t7){return /^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(t7)}function ms(t7){return `<!-- @format --> `+t7}var ds=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function gs(t7){let e=Z(t7);return t7.type==="element"&&!t7.endSourceSpan&&Ie(t7.children)?Math.max(e,gs(K(!1,t7.children,-1))):e}function ot(t7,e,r){let n=t7.node;if(de(n)){let s=gs(n);return [G(n,e),B(O.trimEnd(e.originalText.slice(J(n)+(n.prev&&rt(n.prev)?Lt(n).length:0),s-(n.next&&X(n.next)?Se(n,e).length:0)))),z(n,e)]}return r()}function Pt(t7,e){return $(t7)&&$(e)?t7.isTrailingSpaceSensitive?t7.hasTrailingSpaces?wt(e)?S:_:"":wt(e)?S:v:rt(t7)&&(de(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t7.type==="element"&&t7.isSelfClosing&&X(e)?"":!e.isLeadingSpaceSensitive||wt(e)||X(e)&&t7.lastChild&&Ee(t7.lastChild)&&t7.lastChild.lastChild&&Ee(t7.lastChild.lastChild)?S:e.hasLeadingSpaces?_:v}function Re(t7,e,r){let{node:n}=t7;if(Er(n))return [se,...t7.map(i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return [o?[o,Je(a.prev)?S:""]:"",ot(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t7.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=Pt(o.prev,o);if(A)return Je(o.prev)?[S,S,ot(i,e,r)]:[A,ot(i,e,r)]}return ot(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Je(o.prev)?u.push(S,S):d===S?u.push(S):$(o.prev)?p.push(d):p.push(pe("",v,{groupId:s[a-1]}))),C&&(Je(o)?$(o.next)&&f.push(S,S):C===S?$(o.next)&&f.push(S):l.push(C)),[...u,E([...p,E([ot(i,e,r),...l],{id:s[a]})]),...f]},"children")}function Cs(t7,e,r){let{node:n}=t7,s=[];wa(t7)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=Ss(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Re(t7,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function Ss(t7){var e,r;return !(((e=t7.next)==null?void 0:e.type)==="angularControlFlowBlock"&&(r=ds.get(t7.name))!=null&&r.has(t7.next.name))}function wa(t7){let{previous:e}=t7;return e?.type==="angularControlFlowBlock"&&!de(e)&&!Ss(e)}function _s(t7,e,r){return [k([v,H([";",_],t7.map(r,"children"))]),v]}function Es(t7,e,r){let{node:n}=t7;return [Ae(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([_,H(_,t7.map(r,"cases"))])]:"",v]),Ce(n,e)]}function As(t7,e,r){let{node:n}=t7;return [n.value," {",E([k([v,t7.map(({node:s,isLast:i})=>{let a=[r()];return s.type==="text"&&(s.hasLeadingSpaces&&a.unshift(_),s.hasTrailingSpaces&&!i&&a.push(_)),a},"expression")]),v]),"}"]}function Ds(t7,e,r){let{node:n}=t7;if(yt(n,e))return [G(n,e),E(st(t7,e,r)),B(Nt(n,e)),...tt(n,e),z(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(st(t7,e,r),{id:i}),l,tt(n,e)]),o=l=>s?dn(l,{groupId:i}):(W(n)||et(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?pe(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?fn(v):v,p=()=>(n.next?X(n.next):_e(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?pe(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t7.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([In(n)?se:"",o([u(),Re(t7,e,r)]),p()])}function ut(t7){return t7>=9&&t7<=32||t7==160}function It(t7){return 48<=t7&&t7<=57}function lt(t7){return t7>=97&&t7<=122||t7>=65&&t7<=90}function vs(t7){return t7>=97&&t7<=102||t7>=65&&t7<=70||It(t7)}function Rt(t7){return t7===10||t7===13}function kr(t7){return 48<=t7&&t7<=55}function $t(t7){return t7===39||t7===34||t7===96}var ba=/-+([a-z0-9])/g;function ws(t7){return t7.replace(ba,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s;}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(` `);a=u>0?s-u:s;}else a--;for(;s<n&&e>0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++;}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a<e&&s>0&&(s--,a++,!(n[s]==` `&&++o==r)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==` `&&++o==r)););return {before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},De=class{constructor(e,r){this.content=e,this.url=r;}},h=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s;}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ot;(function(t7){t7[t7.WARNING=0]="WARNING",t7[t7.ERROR=1]="ERROR";})(Ot||(Ot={}));var Oe=class{constructor(e,r,n=Ot.ERROR){this.span=e,this.msg=r,this.level=n;}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Ot[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return `${this.contextualMessage()}: ${this.span.start}${e}`}},Ta=[ka,Ba,Fa,Pa,Ia,Oa,Ra,$a,Ma,Na];function xa(t7,e){for(let r of Ta)r(t7,e);return t7}function ka(t7){t7.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===` `){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1);}});}function Ba(t7){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t7.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.firstChild;r.removeChild(i),n--;let o=new h(i.sourceSpan.start,a.sourceSpan.end),u=new h(o.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=u,s.startSourceSpan=o,s.removeChild(a);}});}function La(t7,e,r){t7.walk(n=>{if(n.children)for(let s=0;s<n.children.length;s++){let i=n.children[s];if(i.type!=="text"&&!e(i))continue;i.type!=="text"&&(i.type="text",i.value=r(i));let a=i.prev;!a||a.type!=="text"||(a.value+=i.value,a.sourceSpan=new h(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--);}});}function Fa(t7){return La(t7,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function Na(t7){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!O.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t7.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.next;i.value+=`<${s.rawName}>`+s.firstChild.value+`</${s.rawName}>`+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a);}});}function Pa(t7,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t7.walk(n=>{if(Bn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u<o.length;u++,i=a){let p=o[u];if(u%2===0){a=i.moveBy(p.length),p.length>0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]});}n.removeChild(s);}});}function Ia(t7){t7.walk(e=>{let r=e.$children;if(!r)return;if(r.length===0||r.length===1&&r[0].type==="text"&&O.trim(r[0].value).length===0){e.hasDanglingSpaces=r.length>0,e.$children=[];return}let n=Ln(e),s=_r(e);if(!n)for(let i=0;i<r.length;i++){let a=r[i];if(a.type!=="text")continue;let{leadingWhitespace:o,text:u,trailingWhitespace:p}=kn(a.value),l=a.prev,f=a.next;u?(a.value=u,a.sourceSpan=new h(a.sourceSpan.start.moveBy(o.length),a.sourceSpan.end.moveBy(-p.length)),o&&(l&&(l.hasTrailingSpaces=!0),a.hasLeadingSpaces=!0),p&&(a.hasTrailingSpaces=!0,f&&(f.hasLeadingSpaces=!0))):(e.removeChild(a),i--,(o||p)&&(l&&(l.hasTrailingSpaces=!0),f&&(f.hasLeadingSpaces=!0)));}e.isWhitespaceSensitive=n,e.isIndentationSensitive=s;});}function Ra(t7){t7.walk(e=>{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end);});}function $a(t7,e){t7.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)));});}function Oa(t7,e){t7.walk(r=>{r.cssDisplay=Hn(r,e);});}function Ma(t7,e){t7.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Pn(r);return}for(let s of n)s.isLeadingSpaceSensitive=Fn(s,e),s.isTrailingSpaceSensitive=Nn(s,e);for(let s=0;s<n.length;s++){let i=n[s];i.isLeadingSpaceSensitive=(s===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(s===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive;}}});}var bs=xa;function qa(t7,e,r){let{node:n}=t7;switch(n.type){case"front-matter":return B(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(Re(t7,e,r)),S];case"element":case"ieConditionalComment":return Ds(t7,e,r);case"angularControlFlowBlock":return Cs(t7,e,r);case"angularControlFlowBlockParameters":return _s(t7,e,r);case"angularControlFlowBlockParameter":return O.trim(n.expression);case"angularLetDeclaration":return E(["@let ",E([n.id," =",E(k([_,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return Es(t7,e,r);case"angularIcuCase":return As(t7,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return [Ae(n),Ce(n)];case"interpolation":return [Ae(n,e),...t7.map(r,"children"),Ce(n,e)];case"text":{if(n.parent.type==="interpolation"){let o=/\n[^\S\n]*$/u,u=o.test(n.value),p=u?n.value.replace(o,""):n.value;return [B(p),u?S:""]}let s=G(n,e),i=xt(n),a=z(n,e);return i[0]=[s,i[0]],i.push([i.pop(),a]),Dt(i)}case"docType":return [E([Ae(n,e)," ",w(!1,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),Ce(n,e)];case"comment":return [G(n,e),B(e.originalText.slice(J(n),Z(n))),z(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=vr(n.value),i=Cn(s,'"');return [n.rawName,"=",i,B(i==='"'?w(!1,s,'"',"&quot;"):w(!1,s,"'","&apos;")),i]}case"cdata":default:throw new _n(n,"HTML")}}var Ha={preprocess:bs,print:qa,insertPragma:ms,massageAstNode:An,embed:ls,getVisitorKeys:hs},Ts=Ha,xs=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Br={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ks="HTML",Va={bracketSameLine:Br.bracketSameLine,htmlWhitespaceSensitivity:{category:ks,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Br.singleAttributePerLine,vueIndentScriptAndStyle:{category:ks,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Bs=Va,Zr={};on(Zr,{angular:()=>qo,html:()=>Mo,lwc:()=>Vo,vue:()=>Ho});var Ls;(function(t7){t7[t7.Emulated=0]="Emulated",t7[t7.None=2]="None",t7[t7.ShadowDom=3]="ShadowDom";})(Ls||(Ls={}));var Fs;(function(t7){t7[t7.OnPush=0]="OnPush",t7[t7.Default=1]="Default";})(Fs||(Fs={}));var Ns;(function(t7){t7[t7.None=0]="None",t7[t7.SignalBased=1]="SignalBased",t7[t7.HasDecoratorInputTransform=2]="HasDecoratorInputTransform";})(Ns||(Ns={}));var Lr={name:"custom-elements"},Fr={name:"no-errors-schema"},ee;(function(t7){t7[t7.NONE=0]="NONE",t7[t7.HTML=1]="HTML",t7[t7.STYLE=2]="STYLE",t7[t7.SCRIPT=3]="SCRIPT",t7[t7.URL=4]="URL",t7[t7.RESOURCE_URL=5]="RESOURCE_URL";})(ee||(ee={}));var Ps;(function(t7){t7[t7.Error=0]="Error",t7[t7.Warning=1]="Warning",t7[t7.Ignore=2]="Ignore";})(Ps||(Ps={}));var P;(function(t7){t7[t7.RAW_TEXT=0]="RAW_TEXT",t7[t7.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t7[t7.PARSABLE_DATA=2]="PARSABLE_DATA";})(P||(P={}));function ct(t7,e=!0){if(t7[0]!=":")return [null,t7];let r=t7.indexOf(":",1);if(r===-1){if(e)throw new Error(`Unsupported format "${t7}" expecting ":namespace:name"`);return [null,t7]}return [t7.slice(1,r),t7.slice(r+1)]}function Nr(t7){return ct(t7)[1]==="ng-container"}function Pr(t7){return ct(t7)[1]==="ng-content"}function Me(t7){return t7===null?null:ct(t7)[0]}function qe(t7,e){return t7?`:${t7}:${e}`:e}var qt;function Ir(){return qt||(qt={},Mt(ee.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mt(ee.STYLE,["*|style"]),Mt(ee.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Mt(ee.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),qt}function Mt(t7,e){for(let r of e)qt[r.toLowerCase()]=t7;}var Ht=class{},Ua="boolean",Wa="number",za="string",Ga="object",Ya=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg: