2024-11-28 11:00:59 -05:00
var ri = Object . defineProperty ; var Xr = t => { throw TypeError ( t ) } ; var Jr = ( t , e ) => { for ( var r in e ) ri ( t , r , { get : e [ r ] , enumerable : ! 0 } ) } ; var Zr = ( t , e , r ) => e . has ( t ) || Xr ( "Cannot " + r ) ; var K = ( t , e , r ) => ( Zr ( t , e , "read from private field" ) , r ? r . call ( t ) : e . get ( t ) ) , en = ( t , e , r ) => e . has ( t ) ? Xr ( "Cannot add the same private member more than once" ) : e instanceof WeakSet ? e . add ( t ) : e . set ( t , r ) , tn = ( t , e , r , n ) => ( Zr ( t , e , "write to private field" ) , n ? n . call ( t , r ) : e . set ( t , r ) , r ) ; var Yr = { } ; Jr ( Yr , { languages : ( ) => As , options : ( ) => vs , parsers : ( ) => Gr , printers : ( ) => Io } ) ; var ni = ( 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 = ni ; var Ve = "string" , Ue = "array" , We = "cursor" , De = "indent" , ve = "align" , ze = "trim" , ye = "group" , we = "fill" , be = "if-break" , Te = "indent-if-break" , Ge = "line-suffix" , Ye = "line-suffix-boundary" , Q = "line" , je = "label" , xe = "break-parent" , St = new Set ( [ We , De , ve , ze , ye , we , be , Te , Ge , Ye , Q , je , xe ] ) ; function si ( t ) { if ( typeof t == "string" ) return Ve ; if ( Array . isArray ( t ) ) return Ue ; if ( ! t ) return ; let { type : e } = t ; if ( St . has ( e ) ) return e } var Ke = si ; var ii = t => new Intl . ListFormat ( "en-US" , { type : "disjunction" } ) . format ( t ) ; function ai ( 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(Ke(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return ` Unexpected doc '${r}' . ` ;let n=ii([...St].map(s=> ` '${s}' ` ));return ` Unexpected doc . type '${t.type}' .
Expected it to be $ { n } . ` }var or=class extends Error{name="InvalidDocError";constructor(e){super(ai(e)),this.doc=e}},ur=or;var rn=()=>{},re=rn,_t=rn;function k(t){return re(t),{type:De,contents:t}}function nn(t,e){return re(e),{type:ve,contents:e,n:t}}function _(t,e={}){return re(t),_t(e.expandedStates,!0),{type:ye,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function sn(t){return nn(Number.NEGATIVE_INFINITY,t)}function an(t){return nn({type:"root"},t)}function Et(t){return _t(t),{type:we,parts:t}}function le(t,e="",r={}){return re(t),e!==""&&re(e),{type:be,breakContents:t,flatContents:e,groupId:r.groupId}}function on(t,e){return re(t),{type:Te,contents:t,groupId:e.groupId,negate:e.negate}}var ne={type:xe};var oi={type:Q,hard:!0},ui={type:Q,hard:!0,literal:!0},E={type:Q},v={type:Q,soft:!0},S=[oi,ne],un=[ui,ne];function q(t,e){re(t),_t(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var li=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},se=li;function lr(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(Ke(i)){case Ue:return e(i.map(n));case we:return e({...i,parts:i.parts.map(n)});case be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case ye:{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 ve:case De:case Te:case je:case Ge:return e({...i,contents:n(i.contents)});case Ve:case We:case ze:case Ye:case Q:case xe:return e(i);default:throw new ur(i)}}}function B(t,e=un){return lr(t,r=>typeof r=="string"?q(e,r.split( `
` )):r)}var At="'",ln='"';function ci(t,e){let r=e===!0||e===At?At:ln,n=r===At?ln:At,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var cn=ci;function cr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[| \\ {}()[ \] ^ $ +*?.]/g," \\ $ &").replace(/-/g," \\ x2d")}var H,pr=class{constructor(e){en(this,H);tn(this,H,new Set(e))}getLeadingWhitespaceCount(e){let r=K(this,H),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=K(this,H),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 K(this,H).has(e.charAt(0))}hasTrailingWhitespace(e){return K(this,H).has(se(!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= ` [ $ { cr ( [ ... K ( this , H ) ] . join ( "" ) ) } ] + ` ,s=new RegExp(r? ` ( $ { n } ) ` :n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=K(this,H);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=K(this,H);return Array.prototype.every.call(e,n=>r.has(n))}};H=new WeakMap;var pn=pr;var pi=[" ", `
` ," \f "," \r "," "],hi=new pn(pi),N=hi;var hr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super( ` Unexpected $ { r } node $ { n } : $ { JSON . stringify ( e [ n ] ) } . ` ),this.node=e}},hn=hr;function mi(t){return(t==null?void 0:t.type)==="front-matter"}var ke=mi;var fi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),di=new Set(["if","else if","for","switch","case"]);function mn(t,e){var r;if(t.type==="text"||t.type==="comment"||ke(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)di.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}mn.ignoredProperties=fi;var fn=mn;async function gi(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return an([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var dn=gi;function ce(t,e=!0){return[k([v,t]),e?v:""]}function Y(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 T(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?_(i):ce(i)}function Ci(t,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,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Y)}var gn=Ci;var Si=t=>String(t).split(/[/ \\ ]/u).pop();function Cn(t,e){if(!e)return;let r=Si(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 _i(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 Ei(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=_i(r,e.language)??Cn(r,e.physicalFile)??Cn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Be=Ei;var Sn="inline",_n={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"},En="normal",An={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",text
` )){if(r.length===0)continue;let n=N.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n)}return e===Number.POSITIVE_INFINITY?0:e}function Cr(t,e=Ii(t)){return e===0?t:t.split( `
2024-02-17 13:53:21 -05:00
` ).map(r=>r.slice(e)).join( `
2024-11-28 11:00:59 -05:00
` )}function Sr(t){return w(!1,w(!1,t,"'","'"),""",'"')}function P(t){return Sr(t.value)}var Ri=new Set(["template","style","script"]);function Je(t,e){return fe(t,e)&&!Ri.has(t.fullName)}function fe(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function wt(t,e){return fe(t,e)&&(Je(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Rn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function On(t,e){let r=t.parent;if(!fe(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function bt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Cr(mr(e)),S):q(E,N.split(e))}function Tt(t,e){return fe(t,e)&&t.name==="script"}var _r=/ \{ \{ (.+?) \} \} /su;async function $ n(t,e){let r=[];for(let[n,s]of t.split(_r).entries())if(n%2===0)r.push(B(s));else try{r.push(_(["{{",k([E,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),E,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function Er({parser:t}){return(e,r,n)=>T(P(n.node),e,{parser:t},Y)}var Oi=Er({parser:"__ng_action"}), $ i=Er({parser:"__ng_binding"}),Mi=Er({parser:"__ng_directive"});function qi(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Oi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style) $ /u.test(n))return $ i;if(n.startsWith("*"))return Mi;let s=P(r);if(/^i18n(?:-.+)? $ /u.test(n))return()=>ce(Et(bt(r,s.trim())),!s.includes("@@"));if(_r.test(s))return i=> $ n(s,i)}var Mn=qi;function Hi(t,e){let{node:r}=t,n=P(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/ \s +/u).join(" ")}var qn=Hi;function Hn(t){return t===" "||t=== `
` ||t===" \f "||t===" \r "||t===" "}var Vi=/^[ \t \n \r \u 000c]+/,Ui=/^[, \t \n \r \u 000c]+/,Wi=/^[^ \t \n \r \u 000c]+/,zi=/[,]+ $ /,Vn=/^ \d + $ /,Gi=/^-?(?:[0-9]+|[0-9]* \. [0-9]+)(?:[eE][+-]?[0-9]+)? $ /;function Yi(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Ui),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Wi),n=[],r.slice(-1)===","?(r=r.replace(zi,""),d()):f()}function f(){for(p(Vi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Hn(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"&&!Hn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,R,F,c={},g,y,M,x,V;for(F=0;F<n.length;F++)g=n[F],y=g[g.length-1],M=g.substring(0,g.length-1),x=parseInt(M,10),V=parseFloat(M),Vn.test(M)&&y==="w"?((A||D)&&(C=!0),x===0?C=!0:A=x):Gi.test(M)&&y==="x"?((A||D||R)&&(C=!0),V<0?C=!0:D=V):Vn.test(M)&&y==="h"?((R||D)&&(C=!0),x===0?C=!0:R=x):C=!0;if(!C)c.source={value:r,startOffset:u},A&&(c.width={value:A}),D&&(c.density={value:D}),R&&(c.height={value:R}),l.push(c);else throw new Error( ` Invalid srcset descriptor found in "${t}" at "${g}" . ` )}}var Un=Yi;function ji(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>Qi(P(t.node))}var Wn={width:"w",height:"h",density:"x"},Ki=Object.keys(Wn);function Qi(t){let e=Un(t),r=Ki.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=Wn[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 ce(q([",",E],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],R=" ".repeat(A+D);d.push(le(R," "),C+s)}return d})))}var zn=ji;function Gn(t,e){let{node:r}=t,n=P(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>ce(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Ar=new WeakMap;function Xi(t,e){let{root:r}=t;return Ar.has(r)||Ar.set(r,r.children.some(n=>Tt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Ar.get(r)}var Le=Xi;function Yn(t,e,r){let{node:n}=r,s=P(n);return T( ` type T < $ { s } > = any ` ,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Y)}function jn(t,e,{parseWithTs:r}){return T( ` function _ ( $ { t } ) { } ` ,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function Kn(t,e,r,n){let s=P(r.node),{left:i,operator:a,right:o}=Ji(s),u=Le(r,n);return[_(await T( ` function _ ( $ { i } ) { } ` ,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function Ji(t){let e=/(.*?) \s +(in|of) \s +(.*)/su,r=/,([^, \] }]*)(?:,([^, \] }]*))? $ /u,n=/^ \( | \) $ /gu,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 Zi(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return Kn;if(n==="generic"&&Tt(r.parent,e))return Yn;let s=P(r),i=Le(t,e);if(Rn(r)||On(r,e))return a=>jn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ea(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>ta(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Qn(s,a,{parseWithTs:i})}async function ea(t,e,{parseWithTs:r}){var n;try{return await Qn(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_
2024-02-17 13:53:21 -05:00
2024-11-28 11:00:59 -05:00
` +t}var us=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 ls(t){let e=J(t);return t.type==="element"&&!t.endSourceSpan&&Fe(t.children)?Math.max(e,ls(se(!1,t.children,-1))):e}function it(t,e,r){let n=t.node;if(me(n)){let s=ls(n);return[z(n,e),B(N.trimEnd(e.originalText.slice(X(n)+(n.prev&&et(n.prev)?kt(n).length:0),s-(n.next&&j(n.next)?ge(n,e).length:0)))),W(n,e)]}return r()}function Ft(t,e){return O(t)&&O(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?vt(e)?S:E:"":vt(e)?S:v:et(t)&&(me(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&j(e)?"":!e.isLeadingSpaceSensitive||vt(e)||j(e)&&t.lastChild&&Se(t.lastChild)&&t.lastChild.lastChild&&Se(t.lastChild.lastChild)?S:e.hasLeadingSpaces?E:v}function Ne(t,e,r){let{node:n}=t;if(dr(n))return[ne,...t.map(i=>{let a=i.node,o=a.prev?Ft(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(O(o)){if(o.prev&&O(o.prev)){let A=Ft(o.prev,o);if(A)return Qe(o.prev)?[S,S,it(i,e,r)]:[A,it(i,e,r)]}return it(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Ft(o.prev,o):"",C=o.next?Ft(o,o.next):"";return d&&(Qe(o.prev)?u.push(S,S):d===S?u.push(S):O(o.prev)?p.push(d):p.push(le("",v,{groupId:s[a-1]}))),C&&(Qe(o)?O(o.next)&&f.push(S,S):C===S?O(o.next)&&f.push(S):l.push(C)),[...u,_([...p,_([it(i,e,r),...l],{id:s[a]})]),...f]},"children")}function cs(t,e,r){let{node:n}=t,s=[];Ca(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",_(r("parameters")),")"),s.push(" {");let i=ps(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Ne(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),_(s,{shouldBreak:!0})}function ps(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=us.get(t.name))!=null&&r.has(t.next.name)))}function Ca(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!me(e)&&!ps(e)}function hs(t,e,r){return[k([v,q([";",E],t.map(r,"children"))]),v]}function ms(t,e,r){let{node:n}=t;return[_e(n,e),_([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([E,q(E,t.map(r,"cases"))])]:"",v]),de(n,e)]}function fs(t,e,r){let{node:n}=t;return[n.value," {",_([k([v,t.map(({node:s})=>s.type==="text"&&!N.trim(s.value)?"":r(),"expression")]),v]),"}"]}function ds(t,e,r){let{node:n}=t;if(Dt(n,e))return[z(n,e),_(rt(t,e,r)),B(Lt(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=>_([_(rt(t,e,r),{id:i}),l,Ze(n,e)]),o=l=>s?on(l,{groupId:i}):(U(n)||Je(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?le(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?E:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(v):v,p=()=>(n.next?j(n.next):Ce(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?le(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?E:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp( ` \ \ n [ \ \ t ] { $ { e . tabWidth * ( t . ancestors . length - 1 ) } } $ ` ,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?E:""):a([xn(n)?ne:"",o([u(),Ne(t,e,r)]),p()])}function at(t){return t>=9&&t<=32||t==160}function Nt(t){return 48<=t&&t<=57}function ot(t){return t>=97&&t<=122||t>=65&&t<=90}function gs(t){return t>=97&&t<=102||t>=65&&
2024-02-17 13:53:21 -05:00
` &&++o==r)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]== `
2024-11-28 11:00:59 -05:00
` &&++o==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},Ee=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)}},Rt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Rt||(Rt={}));var Ie=class{constructor(e,r,n=Rt.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}[${Rt[this.level]} ->]${e.after}" ) ` :this.msg}toString(){let e=this.span.details? ` , $ { this . span . details } ` :"";return ` $ { this . contextualMessage ( ) } : $ { this . span . start } $ { e } ` }};var _a=[Aa,Da,ya,ba,Ta,Ba,xa,ka,La,wa];function Ea(t,e){for(let r of _a)r(t,e);return t}function Aa(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 Da(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 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 va(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 h(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--)}})}function ya(t){return va(t,e=>e.type==="cdata",e=> ` < ! [ CDATA [ $ { e . value } ] ] > ` )}function wa(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!N.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 h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function ba(t,e){if(e.parser==="html")return;let r=/ \ { \ { ( . + ? ) \ } \ } / su ; t . walk ( n => { if ( vn ( 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 Ta ( t ) { t . walk ( e => { if ( ! e . children ) return ; if ( e . children . length === 0 || e . children . length === 1 && e . children [ 0 ] . type === "text" && N . trim ( e . children [ 0 ] . value ) . length === 0 ) { e . hasDanglingSpaces = e . children . length > 0 , e . children = [ ] ; return } let r = yn ( e ) , n = fr ( 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 } = Dn ( i . value ) , p = i . prev , l = i . next ; o ? ( i . value = o , i . sourceSpan = new h ( 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 xa ( 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 ka ( t , e ) { t . 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 Ba ( t , e ) { t . walk ( r => { r . cssDisplay = Pn ( r , e ) } ) } function La ( t , e ) { t . walk ( r => { let { children : n } = r ; if ( n ) { if ( n . length === 0 ) { r . isDanglingSpaceSensitive = Tn ( r ) ; return } for ( let s of n ) s . isLeadingSpaceSensitive = wn ( s , e ) , s . isTrailingSpaceSensitive = bn ( 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 . lengt
If '${e}' is a directive input , make sure the directive is imported by the current module . ` }:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg: ` Binding to event attribute '${e}' is disallowed for security reasons , please use ( $ { e . slice ( 2 ) } ) = ... ` }:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>qa.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Ss(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ha(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[ \d \. ]+([a-z]*) $ /);o&&o[1].length==0&&(a= ` Please provide a CSS unit value for $ { r } : $ { n } ` )}return{error:a,value:i+s}}};function Ha(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=I.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},ks,lt;function $ e(t){return lt||(ks=new m({canSelfClose:!0}),lt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:I.RAW_TEXT}),script:new m({contentType:I.RAW_TEXT}),title:new m({contentType:{default:I.ESCAPABLE_RA
` ,Nfr:" \u {1D511}",NoBreak:" \u 2060",NonBreakingSpace:" \x A0",nbsp:" \x A0",Nopf:" \u 2115",naturals:" \u 2115",Not:" \u 2AEC",NotCongruent:" \u 2262",nequiv:" \u 2262",NotCupCap:" \u 226D",NotDoubleVerticalBar:" \u 2226",npar:" \u 2226",nparallel:" \u 2226",nshortparallel:" \u 2226",nspar:" \u 2226",NotElement:" \u 2209",notin:" \u 2209",notinva:" \u 2209",NotEqual:" \u 2260",ne:" \u 2260",NotEqualTilde:" \u 2242 \u 0338",nesim:" \u 2242 \u 0338",NotExists:" \u 2204",nexist:" \u 2204",nexists:" \u 2204",NotGreater:" \u 226F",ngt:" \u 226F",ngtr:" \u 226F",NotGreaterEqual:" \u 2271",nge:" \u 2271",ngeq:" \u 2271",NotGreaterFullEqual:" \u 2267 \u 0338",ngE:" \u 2267 \u 0338",ngeqq:" \u 2267 \u 0338",NotGreaterGreater:" \u 226B \u 0338",nGtv:" \u 226B \u 0338",NotGreaterLess:" \u 2279",ntgl:" \u 2279",NotGreaterSlantEqual:" \u 2A7E \u 0338",ngeqslant:" \u 2A7E \u 0338",nges:" \u 2A7E \u 0338",NotGreaterTilde:" \u 2275",ngsim:" \u 2275",NotHumpDownHump:" \u 224E \u 0338",nbump:" \u 224E \u 0338",NotHumpEqual:" \u 224F \u 0338",nbumpe:" \u 224F \u 0338",NotLeftTriangle:" \u 22EA",nltri:" \u 22EA",ntriangleleft:" \u 22EA",NotLeftTriangleBar:" \u 29CF \u 0338",NotLeftTriangleEqual:" \u 22EC",nltrie:" \u 22EC",ntrianglelefteq:" \u 22EC",NotLess:" \u 226E",nless:" \u 226E",nlt:" \u 226E",NotLessEqual:" \u 2270",nle:" \u 2270",nleq:" \u 2270",NotLessGreater:" \u 2278",ntlg:" \u 2278",NotLessLess:" \u 226A \u 0338",nLtv:" \u 226A \u 0338",NotLessSlantEqual:" \u 2A7D \u 0338",nleqslant:" \u 2A7D \u 0338",nles:" \u 2A7D \u 0338",NotLessTilde:" \u 2274",nlsim:" \u 2274",NotNestedGreaterGreater:" \u 2AA2 \u 0338",NotNestedLessLess:" \u 2AA1 \u 0338",NotPrecedes:" \u 2280",npr:" \u 2280",nprec:" \u 2280",NotPrecedesEqual:" \u 2AAF \u 0338",npre:" \u 2AAF \u 0338",npreceq:" \u 2AAF \u 0338",NotPrecedesSlantEqual:" \u 22E0",nprcue:" \u 22E0",NotReverseElement:" \u 220C",notni:" \u 220C",notniva:" \u 220C",NotRightTriangle:" \u 22EB",nrtri:" \u 22EB",ntriangleright:" \u 22EB",NotRightTriangleBar:" \u 29D0 \u 0338",NotRightTriangleEqual:" \u 22ED",nrtrie:" \u 22ED",ntrianglerighteq:" \u 22ED",NotSquareSubset:" \u 228F \u 0338",NotSquareSubsetEqual:" \u 22E2",nsqsube:" \u 22E2",NotSquareSuperset:" \u 2290 \u 0338",NotSquareSupersetEqual:" \u 22E3",nsqsupe:" \u 22E3",NotSubset:" \u 2282 \u 20D2",nsubset:" \u 2282 \u 20D2",vnsub:" \u 2282 \u 20D2",NotSubsetEqual:" \u 2288",nsube:" \u 2288",nsubseteq:" \u 2288",NotSucceeds:" \u 2281",nsc:" \u 2281",nsucc:" \u 2281",NotSucceedsEqual:" \u 2AB0 \u 0338",nsce:" \u 2AB0 \u 0338",nsucceq:" \u 2AB0 \u 0338",NotSucceedsSlantEqual:" \u 22E1",nsccue:" \u 22E1",NotSucceedsTilde:" \u 227F \u 0338",NotSuperset:" \u 2283 \u 20D2",nsupset:" \u 2283 \u 20D2",vnsup:" \u 2283 \u 20D2",NotSupersetEqual:" \u 2289",nsupe:" \u 2289",nsupseteq:" \u 2289",NotTilde:" \u 2241",nsim:" \u 2241",NotTildeEqual:" \u 2244",nsime:" \u 2244",nsimeq:" \u 2244",NotTildeFullEqual:" \u 2247",ncong:" \u 2247",NotTildeTilde:" \u 2249",nap:" \u 2249",napprox:" \u 2249",NotVerticalBar:" \u 2224",nmid:" \u 2224",nshortmid:" \u 2224",nsmid:" \u 2224",Nscr:" \u {1D4A9}",Ntilde:" \x D1",Nu:" \u 039D",OElig:" \u 0152",Oacute:" \x D3",Ocirc:" \x D4",Ocy:" \u 041E",Odblac:" \u 0150",Ofr:" \u {1D512}",Ograve:" \x D2",Omacr:" \u 014C",Omega:" \u 03A9",ohm:" \u 03A9",Omicron:" \u 039F",Oopf:" \u {1D546}",OpenCurlyDoubleQuote:" \u 201C",ldquo:" \u 201C",OpenCurlyQuote:" \u 2018",lsquo:" \u 2018",Or:" \u 2A54",Oscr:" \u {1D4AA}",Oslash:" \x D8",Otilde:" \x D5",Otimes:" \u 2A37",Ouml:" \x D6",OverBar:" \u 203E",oline:" \u 203E",OverBrace:" \u 23DE",OverBracket:" \u 23B4",tbrk:" \u 23B4",OverParenthesis:" \u 23DC",PartialD:" \u 2202",part:" \u 2202",Pcy:" \u 041F",Pfr:" \u {1D513}",Phi:" \u 03A6",Pi:" \u 03A0",PlusMinus:" \x B1",plusmn:" \x B1",pm:" \x B1",Popf:" \u 2119",primes:" \u 2119",Pr:" \u 2ABB",Precedes:" \u 227A",pr:" \u 227A",prec:" \u 227A",PrecedesEqual:" \u 2AAF",pre:" \u 2AAF",preceq:" \u 2AAF",PrecedesSlantEqual:" \u 227C",prcue:" \u 227C",preccurlyeq:" \u 227C",PrecedesTilde:" \u 227E",precsim:" \u 227E",prsim:" \u 227E",Prime:" \u 2033",Product:" \u 220F",prod:" \u 220F",Proportional:" \u 221D",prop:" \u 221D",propto:" \u 221D",varpropto:" \u 221D",vprop:" \u 221D",Pscr:" \u {1D4AB}",Psi:" \u 03A8",QUOT:'"',quot:'"',Qfr:" \u {1D514}",Qopf:" \u 211A",rationals:" \u 211A",Qscr:" \u {1D4AC}",RBarr:" \u 2910",drbkarow:" \u 2910",REG:" \x AE",circledR:" \x AE",reg:" \x AE",Racute:" \u 0154",Rang:" \u 27EB",Rarr:" \u 21A0",twoheadrightarrow:" \u 21A0",Rarrtl:" \u 2916",Rcaron:" \u 0158",Rcedil:" \u 0156",Rcy:" \u 0420",Re:
` )}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>at(n)?!e: $ s(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ms);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&It(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ms)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),at(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Pt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>ot(n)||n===36||n===95||r&&Nt(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;It(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(fo(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new ft("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new ft("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(
2024-02-17 13:53:21 -05:00
` ){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]=== `
2024-11-28 11:00:59 -05:00
` ){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,zs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ht(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof G&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Re(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan, ` Only void , custom and foreign elements can be self closed "${e.parts[1]}" ` ))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new G(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof G&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,G,u):e.type===4&&(this._popContainer(i,G,null),this.errors.push(L.create(i,u, ` Opening tag "${i}" not terminated . ` )))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan, ` Void elements do not have end tags "${e.parts[1]}" ` ));else if(!this._popContainer(r,G,e.sourceSpan)){let n= ` Unexpected closing tag "${r}" . It may happen when the tag has already been closed by another tag . For more info see https : //www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Re(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof ee||a instanceof G&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=Oe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,zs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new zt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ct(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new ee(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,ee,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncomplete
` ,Ct);if(r===-1)return;let n=t.slice(Ct,r).trim(),s=t.indexOf( `
$ { e } ` ,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf( `
... ` ,r)),s===-1)return;let a=s+1+Ct,o=t.charAt(a+1);if(!/ \s ?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-Ct),raw:u}}function Ao(t){let e=Eo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^ \n ]/gu," ")+t.slice(r.length)}}var Ys=Ao;var nr={attrs:!0,children:!0,cases:!0,expression:!0},js=new Set(["parent"]),sr=class t{constructor(e={}){for(let r of new Set([...js,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in nr&&(r=r.map(n=>this.createChild(n))),!js.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in nr){let s=this[n];if(s){let i=Do(s,a=>a.map(e));r!==s&&(r||(r=new t({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in nr||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in nr){let n=this[r];if(n)for(let s=0;s<n.length;s++)n[s].walk(e)}e(this)}createChild(e){let r=e instanceof t?e.clone():new t(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){this.children.splice(this.children.indexOf(e),0,this.createChild(r))}removeChild(e){this.children.splice(this.children.indexOf(e),1)}replaceChild(e,r){this.children[this.children.indexOf(e)]=this.createChild(r)}clone(){return new t(this)}get firstChild(){var e;return(e=this.children)==null?void 0:e[0]}get lastChild(){var e;return(e=this.children)==null?void 0:e[this.children.length-1]}get prev(){var e,r;return(r=(e=this.parent)==null?void 0:e.children)==null?void 0:r[this.parent.children.indexOf(this)-1]}get next(){var e,r;return(r=(e=this.parent)==null?void 0:e.children)==null?void 0:r[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};function Do(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var vo=[{regex:/^( \[ if([^ \] ]*) \] >)(.*?)<! \s * \[ endif \] $ /su,parse:yo},{regex:/^ \[ if([^ \] ]*) \] ><! $ /u,parse:wo},{regex:/^<! \s * \[ endif \] $ /u,parse:bo}];function Ks(t,e){if(t.value)for(let{regex:r,parse:n}of vo){let s=t.value.match(r);if(s)return n(t,e,s)}return null}function yo(t,e,r){let[,n,s,i]=r,a=4+n.length,o=t.sourceSpan.start.moveBy(a),u=o.moveBy(i.length),[p,l]=(()=>{try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/ \s +/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function wo(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/ \s +/gu," "),sourceSpan:t.sourceSpan}}function bo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var ir=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertar