UNPKG

pollen-css

Version:

Utility-first CSS for the future

14 lines (13 loc) 146 kB
var ei=Object.defineProperty;var jr=t=>{throw TypeError(t)};var Kr=(t,e)=>{for(var r in e)ei(t,r,{get:e[r],enumerable:!0});};var Qr=(t,e,r)=>e.has(t)||jr("Cannot "+r);var Q=(t,e,r)=>(Qr(t,e,"read from private field"),e.get(t)),Xr=(t,e,r)=>e.has(t)?jr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Jr=(t,e,r,n)=>(Qr(t,e,"write to private field"),e.set(t,r),r);var Wr={};Kr(Wr,{languages:()=>_s,options:()=>As,parsers:()=>Ur,printers:()=>Po});var ti=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=ti;var xe="string",ke="array",Be="cursor",ue="indent",le="align",Le="trim",te="group",ce="fill",pe="if-break",he="indent-if-break",Fe="line-suffix",Pe="line-suffix-boundary",Y="line",Ne="label",fe="break-parent",dt=new Set([Be,ue,le,Le,te,ce,pe,he,Fe,Pe,Y,Ne,fe]);function ri(t){if(typeof t=="string")return xe;if(Array.isArray(t))return ke;if(!t)return;let{type:e}=t;if(dt.has(e))return e}var Ie=ri;var ni=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function si(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return `Unexpected doc '${e}', Expected it to be 'string' or 'object'.`;if(Ie(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return `Unexpected doc '${r}'.`;let n=ni([...dt].map(s=>`'${s}'`));return `Unexpected doc.type '${t.type}'. Expected it to be ${n}.`}var nr=class extends Error{name="InvalidDocError";constructor(e){super(si(e)),this.doc=e;}},gt=nr;var Zr=()=>{},Ct=Zr;function L(t){return {type:ue,contents:t}}function en(t,e){return {type:le,contents:e,n:t}}function E(t,e={}){return Ct(e.expandedStates),{type:te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function tn(t){return en(Number.NEGATIVE_INFINITY,t)}function rn(t){return en({type:"root"},t)}function St(t){return {type:ce,parts:t}}function me(t,e="",r={}){return {type:pe,breakContents:t,flatContents:e,groupId:r.groupId}}function nn(t,e){return {type:he,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:fe};var ii={type:Y,hard:!0},ai={type:Y,hard:!0,literal:!0},A={type:Y},v={type:Y,soft:!0},S=[ii,ne],sn=[ai,ne];function M(t,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var oi=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},X=oi;function _t(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);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(Ie(i)){case ke:return e(i.map(n));case ce:return e({...i,parts:i.parts.map(n)});case pe: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 le:case ue:case he:case Ne:case Fe:return e({...i,contents:n(i.contents)});case xe:case Be:case Le:case Pe:case Y:case fe:return e(i);default:throw new gt(i)}}}function ui(t){switch(Ie(t)){case ce:if(t.parts.every(e=>e===""))return "";break;case te:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return "";if(t.contents.type===te&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case le:case ue:case he:case Fe:if(!t.contents)return "";break;case pe:if(!t.flatContents&&!t.breakContents)return "";break;case ke:{let e=[];for(let r of t){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof X(!1,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...s);}return e.length===0?"":e.length===1?e[0]:e}case xe:case Be:case Le:case Pe:case Y:case Ne:case fe:break;default:throw new gt(t)}return t}function an(t){return _t(t,e=>ui(e))}function T(t,e=sn){return _t(t,r=>typeof r=="string"?M(e,r.split(` `)):r)}var Et="'",on='"';function li(t,e){let r=e===!0||e===Et?Et:on,n=r===Et?on:Et,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var un=li;function sr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var q,ir=class{constructor(e){Xr(this,q);Jr(this,q,new Set(e));}getLeadingWhitespaceCount(e){let r=Q(this,q),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=Q(this,q),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 Q(this,q).has(e.charAt(0))}hasTrailingWhitespace(e){return Q(this,q).has(X(!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=`[${sr([...Q(this,q)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=Q(this,q);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Q(this,q);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Q(this,q);return Array.prototype.every.call(e,n=>r.has(n))}};q=new WeakMap;var ln=ir;var ci=[" ",` `,"\f","\r"," "],pi=new ln(ci),F=pi;var ar=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e;}},cn=ar;function hi(t){return (t==null?void 0:t.type)==="front-matter"}var Re=hi;var fi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),mi=new Set(["if","else if","for","switch","case"]);function pn(t,e){var r;if(t.type==="text"||t.type==="comment"||Re(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)mi.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim());}pn.ignoredProperties=fi;var hn=pn;async function di(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return rn([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var fn=di;function de(t,e=!0){return [L([v,t]),e?v:""]}function j(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;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 x(t,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(t,r,e);return s?E(i):de(i)}function gi(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return /^\s*$/.test(i)?"":x(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},j)}var mn=gi;var Ci=t=>String(t).split(/[/\\]/).pop();function dn(t,e){if(!e)return;let r=Ci(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function Si(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function _i(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Si(r,e.language)??dn(r,e.physicalFile)??dn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var $e=_i;var gn="inline",Cn={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",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Sn="normal",_n={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ei(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var ge=Ei;var Ai=t=>w(!1,t,/^[\t\f\r ]*\n/g,""),or=t=>Ai(F.trimEnd(t)),En=t=>{let e=t,r=F.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=F.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function At(t,e){return !!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||Ce(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||yt(t,e)&&!U(t)&&t.type!=="interpolation")}function Se(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Di(t.prev)}function Di(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function R(t){return t.type==="text"||t.type==="comment"}function U(t){return t.type==="element"&&(t.fullName==="script"||t.fullName==="style"||t.fullName==="svg:style"||t.fullName==="svg:script"||ge(t)&&(t.name==="script"||t.name==="style"))}function An(t){return t.children&&!U(t)}function Dn(t){return U(t)||t.type==="interpolation"||ur(t)}function ur(t){return Pn(t).startsWith("pre")}function vn(t,e){var s,i;let r=n();if(r&&!t.prev&&((i=(s=t.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf))return t.type==="interpolation";return r;function n(){return Re(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.prev&&(t.prev.type==="text"||t.prev.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:Ce(t.parent)?!0:!(!t.prev&&(t.parent.type==="root"||Ce(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!xi(t.parent.cssDisplay))||t.prev&&!Li(t.prev.cssDisplay))}}function yn(t,e){return Re(t)||t.type==="angularControlFlowBlock"?!1:(t.type==="text"||t.type==="interpolation")&&t.next&&(t.next.type==="text"||t.next.type==="interpolation")?!0:!t.parent||t.parent.cssDisplay==="none"?!1:Ce(t.parent)?!0:!(!t.next&&(t.parent.type==="root"||Ce(t)&&t.parent||U(t.parent)||Je(t.parent,e)||!ki(t.parent.cssDisplay))||t.next&&!Bi(t.next.cssDisplay))}function wn(t){return Fi(t.cssDisplay)&&!U(t)}function Qe(t){return Re(t)||t.next&&t.sourceSpan.end&&t.sourceSpan.end.line+1<t.next.sourceSpan.start.line}function bn(t){return lr(t)||t.type==="element"&&t.children.length>0&&(["body","script","style"].includes(t.name)||t.children.some(e=>yi(e)))||t.firstChild&&t.firstChild===t.lastChild&&t.firstChild.type!=="text"&&xn(t.firstChild)&&(!t.lastChild.isTrailingSpaceSensitive||kn(t.lastChild))}function lr(t){return t.type==="element"&&t.children.length>0&&(["html","head","ul","ol","select"].includes(t.name)||t.cssDisplay.startsWith("table")&&t.cssDisplay!=="table-cell")}function Dt(t){return Bn(t)||t.prev&&vi(t.prev)||Tn(t)}function vi(t){return Bn(t)||t.type==="element"&&t.fullName==="br"||Tn(t)}function Tn(t){return xn(t)&&kn(t)}function xn(t){return t.hasLeadingSpaces&&(t.prev?t.prev.sourceSpan.end.line<t.sourceSpan.start.line:t.parent.type==="root"||t.parent.startSourceSpan.end.line<t.sourceSpan.start.line)}function kn(t){return t.hasTrailingSpaces&&(t.next?t.next.sourceSpan.start.line>t.sourceSpan.end.line:t.parent.type==="root"||t.parent.endSourceSpan&&t.parent.endSourceSpan.start.line>t.sourceSpan.end.line)}function Bn(t){switch(t.type){case"ieConditionalComment":case"comment":case"directive":return !0;case"element":return ["script","select"].includes(t.name)}return !1}function vt(t){return t.lastChild?vt(t.lastChild):t}function yi(t){var e;return (e=t.children)==null?void 0:e.some(r=>r.type!=="text")}function Ln(t){if(t)switch(t){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(t.endsWith("json")||t.endsWith("importmap")||t==="speculationrules")return "json"}}function wi(t,e){let{name:r,attrMap:n}=t;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t.attrMap;return !i&&!s?"babel":$e(e,{language:i})??Ln(s)}function bi(t,e){if(!yt(t,e))return;let{attrMap:r}=t;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return $e(e,{language:s})??Ln(n)}function Ti(t,e){if(t.name!=="style")return;let{lang:r}=t.attrMap;return r?$e(e,{language:r}):"css"}function cr(t,e){return wi(t,e)??Ti(t,e)??bi(t,e)}function Xe(t){return t==="block"||t==="list-item"||t.startsWith("table")}function xi(t){return !Xe(t)&&t!=="inline-block"}function ki(t){return !Xe(t)&&t!=="inline-block"}function Bi(t){return !Xe(t)}function Li(t){return !Xe(t)}function Fi(t){return !Xe(t)&&t!=="inline-block"}function Ce(t){return Pn(t).startsWith("pre")}function Pi(t,e){let r=t;for(;r;){if(e(r))return !0;r=r.parent;}return !1}function Fn(t,e){var n;if(_e(t,e))return "block";if(((n=t.prev)==null?void 0:n.type)==="comment"){let s=t.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t.type==="element"&&t.namespace==="svg")if(Pi(t,s=>s.fullName==="svg:foreignObject"))r=!0;else return t.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return "inline";case"ignore":return "block";default:return t.type==="element"&&(!t.namespace||r||ge(t))&&Cn[t.name]||gn}}function Pn(t){return t.type==="element"&&(!t.namespace||ge(t))&&_n[t.name]||Sn}function Ni(t){let e=Number.POSITIVE_INFINITY;for(let r of t.split(` `)){if(r.length===0)continue;let n=F.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n);}return e===Number.POSITIVE_INFINITY?0:e}function pr(t,e=Ni(t)){return e===0?t:t.split(` `).map(r=>r.slice(e)).join(` `)}function hr(t){return w(!1,w(!1,t,"&apos;","'"),"&quot;",'"')}function P(t){return hr(t.value)}var Ii=new Set(["template","style","script"]);function Je(t,e){return _e(t,e)&&!Ii.has(t.fullName)}function _e(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function yt(t,e){return _e(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Nn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function In(t,e){let r=t.parent;if(!_e(r,e))return !1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function wt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?T(e):T(pr(or(e)),S):M(A,F.split(e))}function bt(t,e){return _e(t,e)&&t.name==="script"}var fr=/{{(.+?)}}/s;async function Rn(t,e){let r=[];for(let[n,s]of t.split(fr).entries())if(n%2===0)r.push(T(s));else try{r.push(E(["{{",L([A,await x(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),A,"}}"]));}catch{r.push("{{",T(s),"}}");}return r}function mr({parser:t}){return (e,r,n)=>x(P(n.node),e,{parser:t},j)}var Ri=mr({parser:"__ng_action"}),$i=mr({parser:"__ng_binding"}),Oi=mr({parser:"__ng_directive"});function Mi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Ri;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return $i;if(n.startsWith("*"))return Oi;let s=P(r);if(/^i18n(?:-.+)?$/.test(n))return ()=>de(St(wt(r,s.trim())),!s.includes("@@"));if(fr.test(s))return i=>Rn(s,i)}var $n=Mi;function qi(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return ()=>n.trim().split(/\s+/).join(" ")}var On=qi;function Mn(t){return t===" "||t===` `||t==="\f"||t==="\r"||t===" "}var Hi=/^[ \t\n\r\u000c]+/,Vi=/^[, \t\n\r\u000c]+/,Ui=/^[^ \t\n\r\u000c]+/,Wi=/[,]+$/,qn=/^\d+$/,zi=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Gi(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let _,D=C.exec(t.substring(o));if(D)return [_]=D,o+=_.length,_}let l=[];for(;;){if(p(Vi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Ui),n=[],r.slice(-1)===","?(r=r.replace(Wi,""),d()):m();}function m(){for(p(Hi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Mn(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"&&!Mn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1;}}function d(){let C=!1,_,D,I,B,c={},g,y,O,b,V;for(B=0;B<n.length;B++)g=n[B],y=g[g.length-1],O=g.substring(0,g.length-1),b=parseInt(O,10),V=parseFloat(O),qn.test(O)&&y==="w"?((_||D)&&(C=!0),b===0?C=!0:_=b):zi.test(O)&&y==="x"?((_||D||I)&&(C=!0),V<0?C=!0:D=V):qn.test(O)&&y==="h"?((I||D)&&(C=!0),b===0?C=!0:I=b):C=!0;if(!C)c.source={value:r,startOffset:u},_&&(c.width={value:_}),D&&(c.density={value:D}),I&&(c.height={value:I}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${g}".`)}}var Hn=Gi;function Yi(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return ()=>Ki(P(t.node))}var Vn={width:"w",height:"h",density:"x"},ji=Object.keys(Vn);function Ki(t){let e=Hn(t),r=ji.filter(l=>e.some(m=>Object.prototype.hasOwnProperty.call(m,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Vn[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 m=l.indexOf(".");return m===-1?l.length:m}),p=Math.max(...u);return de(M([",",A],i.map((l,m)=>{let d=[l],C=o[m];if(C){let _=a-l.length+1,D=p-u[m],I=" ".repeat(_+D);d.push(me(I," "),C+s);}return d})))}var Un=Yi;function Wn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>de(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var dr=new WeakMap;function Qi(t,e){let{root:r}=t;return dr.has(r)||dr.set(r,r.children.some(n=>bt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),dr.get(r)}var Oe=Qi;function zn(t,e,r){let{node:n}=r,s=P(n);return x(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},j)}function Gn(t,e,{parseWithTs:r}){return x(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Yn(t){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=t.trim();return e.test(n)||r.test(n)}async function jn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=Xi(s),u=Oe(r,n);return [E(await x(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function Xi(t){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t.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 Ji(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return jn;if(n==="generic"&&bt(r.parent,e))return zn;let s=P(r),i=Oe(t,e);if(Nn(r)||In(r,e))return a=>Gn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>Zi(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>ea(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Kn(s,a,{parseWithTs:i})}function Zi(t,e,{parseWithTs:r}){return Yn(t)?Kn(t,e,{parseWithTs:r}):x(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},j)}function ea(t,e,{parseWithTs:r}){return x(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},j)}function Kn(t,e,{parseWithTs:r}){return x(t,e,{parser:r?"__ts_expression":"__js_expression"},j)}var Qn=Ji;function ta(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.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 [Un,Wn,On,Qn,$n]){let s=n(t,e);if(s)return ra(s)}}}function ra(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=_t(i,a=>typeof a=="string"?w(!1,a,'"',"&quot;"):a),[n.node.rawName,'="',E(i),'"']}}var Xn=ta;var Jn=new Proxy(()=>{},{get:()=>Jn}),gr=Jn;function na(t){return Array.isArray(t)&&t.length>0}var Me=na;function se(t){return t.sourceSpan.start.offset}function ie(t){return t.sourceSpan.end.offset}function Ze(t,e){return [t.isSelfClosing?"":sa(t,e),Ee(t,e)]}function sa(t,e){return t.lastChild&&ve(t.lastChild)?"":[ia(t,e),Tt(t,e)]}function Ee(t,e){return (t.next?K(t.next):De(t.parent))?"":[Ae(t,e),W(t,e)]}function ia(t,e){return De(t)?Ae(t.lastChild,e):""}function W(t,e){return ve(t)?Tt(t.parent,e):et(t)?xt(t.next):""}function Tt(t,e){if(gr(!t.isSelfClosing),Zn(t,e))return "";switch(t.type){case"ieConditionalComment":return "<!";case"element":if(t.hasHtmComponentClosingTag)return "<//";default:return `</${t.rawName}`}}function Ae(t,e){if(Zn(t,e))return "";switch(t.type){case"ieConditionalComment":case"ieConditionalEndComment":return "[endif]-->";case"ieConditionalStartComment":return "]><!-->";case"interpolation":return "}}";case"angularIcuExpression":return "}";case"element":if(t.isSelfClosing)return "/>";default:return ">"}}function Zn(t,e){return !t.isSelfClosing&&!t.endSourceSpan&&(Se(t)||At(t.parent,e))}function K(t){return t.prev&&t.prev.type!=="docType"&&t.type!=="angularControlFlowBlock"&&!R(t.prev)&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function De(t){var e;return ((e=t.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t.lastChild.hasTrailingSpaces&&!R(vt(t.lastChild))&&!Ce(t)}function ve(t){return !t.next&&!t.hasTrailingSpaces&&t.isTrailingSpaceSensitive&&R(vt(t))}function et(t){return t.next&&!R(t.next)&&R(t)&&t.isTrailingSpaceSensitive&&!t.hasTrailingSpaces}function aa(t){let e=t.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function tt(t){return !t.prev&&t.isLeadingSpaceSensitive&&!t.hasLeadingSpaces}function oa(t,e,r){var m;let{node:n}=t;if(!Me(n.attrs))return n.isSelfClosing?" ":"";let s=((m=n.prev)==null?void 0:m.type)==="comment"&&aa(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t.map(({node:d})=>i(d)?T(e.originalText.slice(se(d),ie(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&&!_e(n,e)?S:A,l=[L([o?" ":A,M(p,a)])];return n.firstChild&&tt(n.firstChild)||n.isSelfClosing&&De(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?A:v),l}function ua(t){return t.firstChild&&tt(t.firstChild)?"":kt(t)}function rt(t,e,r){let{node:n}=t;return [ye(n,e),oa(t,e,r),n.isSelfClosing?"":ua(n)]}function ye(t,e){return t.prev&&et(t.prev)?"":[z(t,e),xt(t)]}function z(t,e){return tt(t)?kt(t.parent):K(t)?Ae(t.prev,e):""}function xt(t){switch(t.type){case"ieConditionalComment":case"ieConditionalStartComment":return `<!--[if ${t.condition}`;case"ieConditionalEndComment":return "<!--<!";case"interpolation":return "{{";case"docType":return t.value==="html"?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return "{";case"element":if(t.condition)return `<!--[if ${t.condition}]><!--><${t.rawName}`;default:return `<${t.rawName}`}}function kt(t){switch(gr(!t.isSelfClosing),t.type){case"ieConditionalComment":return "]>";case"element":if(t.condition)return "><!--<![endif]-->";default:return ">"}}function la(t,e){if(!t.endSourceSpan)return "";let r=t.startSourceSpan.end.offset;t.firstChild&&tt(t.firstChild)&&(r-=kt(t).length);let n=t.endSourceSpan.start.offset;return t.lastChild&&ve(t.lastChild)?n+=Tt(t,e).length:De(t)&&(n-=Ae(t.lastChild,e).length),e.originalText.slice(r,n)}var Bt=la;var ca=new Set(["if","else if","for","switch","case"]);function pa(t,e){let{node:r}=t;switch(r.type){case"element":if(U(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&yt(r,e)){let n=cr(r,e);return n?async(s,i)=>{let a=Bt(r,e),o=/^\s*$/.test(a),u="";return o||(u=await s(or(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[z(r,e),E(rt(t,e,i)),o?"":S,u,o?"":S,Ze(r,e),W(r,e)]}:void 0}break;case"text":if(U(r.parent)){let n=cr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?pr(r.value.replace(/^[^\S\n]*\n/,"")):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 [ne,z(r,e),await s(i,a),W(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=Oe(t,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[L([A,await n(r.value,s)]),r.parent.next&&K(r.parent.next)?" ":A]};break;case"attribute":return Xn(t,e);case"front-matter":return n=>fn(r,n);case"angularControlFlowBlockParameters":return ca.has(t.parent.name)?mn:void 0}}var es=pa;var nt=null;function st(t){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t??Object.create(null),new st}var ha=10;for(let t=0;t<=ha;t++)st();function Cr(t){return st(t)}function fa(t,e="type"){Cr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var ts=fa;var ma={"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:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},rs=ma;var da=ts(rs),ns=da;function ss(t){return /^\s*<!--\s*@(?:format|prettier)\s*-->/.test(t)}function is(t){return `<!-- @format --> `+t}var as=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 os(t){let e=ie(t);return t.type==="element"&&!t.endSourceSpan&&Me(t.children)?Math.max(e,os(X(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(Se(n)){let s=os(n);return [z(n,e),T(F.trimEnd(e.originalText.slice(se(n)+(n.prev&&et(n.prev)?xt(n).length:0),s-(n.next&&K(n.next)?Ae(n,e).length:0)))),W(n,e)]}return r()}function Lt(t,e){return R(t)&&R(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?Dt(e)?S:A:"":Dt(e)?S:v:et(t)&&(Se(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&K(e)?"":!e.isLeadingSpaceSensitive||Dt(e)||K(e)&&t.lastChild&&ve(t.lastChild)&&t.lastChild.lastChild&&ve(t.lastChild.lastChild)?S:e.hasLeadingSpaces?A:v}function qe(t,e,r){let{node:n}=t;if(lr(n))return [ne,...t.map(i=>{let a=i.node,o=a.prev?Lt(a.prev,a):"";return [o?[o,Qe(a.prev)?S:""]:"",it(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if(R(o)){if(o.prev&&R(o.prev)){let _=Lt(o.prev,o);if(_)return Qe(o.prev)?[S,S,it(i,e,r)]:[_,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],m=[],d=o.prev?Lt(o.prev,o):"",C=o.next?Lt(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):R(o.prev)?p.push(d):p.push(me("",v,{groupId:s[a-1]}))),C&&(Qe(o)?R(o.next)&&m.push(S,S):C===S?R(o.next)&&m.push(S):l.push(C)),[...u,E([...p,E([it(i,e,r),...l],{id:s[a]})]),...m]},"children")}function us(t,e,r){let{node:n}=t,s=[];ga(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=ls(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(L([S,qe(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function ls(t){var e,r;return !(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=as.get(t.name))!=null&&r.has(t.next.name)))}function ga(t){let{previous:e}=t;return (e==null?void 0:e.type)==="angularControlFlowBlock"&&!Se(e)&&!ls(e)}function cs(t,e,r){return [L([v,M([";",A],t.map(r,"children"))]),v]}function ps(t,e,r){let{node:n}=t;return [ye(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",L([A,M(A,t.map(r,"cases"))])]:"",v]),Ee(n,e)]}function hs(t,e,r){let{node:n}=t;return [n.value," {",E([L([v,t.map(({node:s})=>s.type==="text"&&!F.trim(s.value)?"":r(),"expression")]),v]),"}"]}function fs(t,e,r){let{node:n}=t;if(At(n,e))return [z(n,e),E(rt(t,e,r)),T(Bt(n,e)),...Ze(n,e),W(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(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?nn(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:L(l),u=()=>s?me(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?A:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?tn(v):v,p=()=>(n.next?K(n.next):De(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?me(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?A:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`).test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?A:""):a([bn(n)?ne:"",o([u(),qe(t,e,r)]),p()])}function Ft(t){return t>=9&&t<=32||t==160}function Sr(t){return 48<=t&&t<=57}function Pt(t){return t>=97&&t<=122||t>=65&&t<=90}function ms(t){return t>=97&&t<=102||t>=65&&t<=70||Sr(t)}function _r(t){return t===10||t===13}function Er(t){return 48<=t&&t<=55}function Ar(t){return t===39||t===34||t===96}var Ca=/-+([a-z0-9])/g;function gs(t){return t.replace(Ca,(...e)=>e[1].toUpperCase())}var ae=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(String.fromCharCode(10));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}},we=class{constructor(e,r){this.content=e,this.url=r;}},f=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)}},Nt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR";})(Nt||(Nt={}));var Ve=class{constructor(e,r,n=Nt.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}[${Nt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return `${this.contextualMessage()}: ${this.span.start}${e}`}};var Sa=[Ea,Aa,va,wa,ba,ka,Ta,xa,Ba,ya];function _a(t,e){for(let r of Sa)r(t,e);return t}function Ea(t){t.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 Aa(t){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};t.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 f(i.sourceSpan.start,a.sourceSpan.end),u=new f(o.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=u,s.startSourceSpan=o,s.removeChild(a);}});}function Da(t,e,r){t.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 f(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--);}});}function va(t){return Da(t,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function ya(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!F.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"};t.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 f(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a);}});}function wa(t,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t.walk(n=>{if(An(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 f(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new f(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new f(i.moveBy(2),a.moveBy(-2))}]});}n.removeChild(s);}});}function ba(t){t.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&F.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=Dn(e),n=ur(e);if(!r)for(let s=0;s<e.children.length;s++){let i=e.children[s];if(i.type!=="text")continue;let{leadingWhitespace:a,text:o,trailingWhitespace:u}=En(i.value),p=i.prev,l=i.next;o?(i.value=o,i.sourceSpan=new f(i.sourceSpan.start.moveBy(a.length),i.sourceSpan.end.moveBy(-u.length)),a&&(p&&(p.hasTrailingSpaces=!0),i.hasLeadingSpaces=!0),u&&(i.hasTrailingSpaces=!0,l&&(l.hasLeadingSpaces=!0))):(e.removeChild(i),s--,(a||u)&&(p&&(p.hasTrailingSpaces=!0),l&&(l.hasLeadingSpaces=!0)));}e.isWhitespaceSensitive=r,e.isIndentationSensitive=n;});}function Ta(t){t.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 xa(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)));});}function ka(t,e){t.walk(r=>{r.cssDisplay=Fn(r,e);});}function Ba(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=wn(r);return}for(let s of n)s.isLeadingSpaceSensitive=vn(s,e),s.isTrailingSpaceSensitive=yn(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 Cs=_a;function La(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(qe(t,e,r)),S];case"element":case"ieConditionalComment":return fs(t,e,r);case"angularControlFlowBlock":return us(t,e,r);case"angularControlFlowBlockParameters":return cs(t,e,r);case"angularControlFlowBlockParameter":return F.trim(n.expression);case"angularIcuExpression":return ps(t,e,r);case"angularIcuCase":return hs(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return [ye(n),Ee(n)];case"interpolation":return [ye(n,e),...t.map(r,"children"),Ee(n,e)];case"text":{if(n.parent.type==="interpolation"){let i=/\n[^\S\n]*$/,a=i.test(n.value),o=a?n.value.replace(i,""):n.value;return [T(o),a?S:""]}let s=an([z(n,e),...wt(n),W(n,e)]);return Array.isArray(s)?St(s):s}case"docType":return [E([ye(n,e)," ",w(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Ee(n,e)];case"comment":return [z(n,e),T(e.originalText.slice(se(n),ie(n))),W(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=hr(n.value),i=un(s,'"');return [n.rawName,"=",i,T(i==='"'?w(!1,s,'"',"&quot;"):w(!1,s,"'","&apos;")),i]}case"cdata":default:throw new cn(n,"HTML")}}var Fa={preprocess:Cs,print:La,insertPragma:is,massageAstNode:hn,embed:es,getVisitorKeys:ns},Ss=Fa;var _s=[{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"]}];var Dr={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},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."}};var Es="HTML",Pa={bracketSameLine:Dr.bracketSameLine,htmlWhitespaceSensitivity:{category:Es,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:Dr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Es,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},As=Pa;var Ur={};Kr(Ur,{angular:()=>Bo,html:()=>ko,lwc:()=>Fo,vue:()=>Lo});var Ds;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom";})(Ds||(Ds={}));var vs;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default";})(vs||(vs={}));var vr={name:"custom-elements"},yr={name:"no-errors-schema"};var J;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL";})(J||(J={}));var ys;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore";})(ys||(ys={}));var N;(function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA";})(N||(N={}));function at(t){if(t[0]!=":")return [null,t];let e=t.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return [t.slice(1,e),t.slice(e+1)]}function wr(t){return at(t)[1]==="ng-container"}function br(t){return at(t)[1]==="ng-content"}function Ue(t){return t===null?null:at(t)[0]}function We(t,e){return t?`:${t}:${e}`:e}var Rt;function Tr(){return Rt||(Rt={},It(J.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),It(J.STYLE,["*|style"]),It(J.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"]),It(J.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"])),Rt}function It(t,e){for(let r of e)Rt[r.toLowerCase()]=t;}var $t=class{};var Na="boolean",Ia="number",Ra="string",$a="object",Oa=["[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,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:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValu