@storybook/components
Version:
Core Storybook Components
18 lines (16 loc) • 225 kB
JavaScript
import './chunk-GN5PWX3D.mjs';
import memoize from 'memoizerific';
var Ks=Object.defineProperty,Yr=(t8,e)=>{for(var r in e)Ks(t8,r,{get:e[r],enumerable:!0});},jr=(t8,e,r)=>{if(!e.has(t8))throw TypeError("Cannot "+r)},Q=(t8,e,r)=>(jr(t8,e,"read from private field"),r?r.call(t8):e.get(t8)),Kr=(t8,e,r)=>{if(e.has(t8))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t8):e.set(t8,r);},Qr=(t8,e,r,n)=>(jr(t8,e,"write to private field"),n?n.call(t8,r):e.set(t8,r),r),Ur={};Yr(Ur,{languages:()=>zs,options:()=>Ys,parsers:()=>Hr,printers:()=>To});var Qs=(t8,e,r,n)=>{if(!(t8&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},v=Qs,we="string",be="array",Te="cursor",oe="indent",ue="align",xe="trim",ee="group",le="fill",ce="if-break",pe="indent-if-break",ke="line-suffix",Be="line-suffix-boundary",G="line",Le="label",he="break-parent",ft=new Set([Te,oe,ue,xe,ee,le,ce,pe,ke,Be,G,Le,he]);function Xs(t8){if(typeof t8=="string")return we;if(Array.isArray(t8))return be;if(!t8)return;let{type:e}=t8;if(ft.has(e))return e}var Fe=Xs,Js=t8=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t8);function Zs(t8){let e=t8===null?"null":typeof t8;if(e!=="string"&&e!=="object")return `Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(Fe(t8))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t8);if(r!=="[object Object]")return `Unexpected doc '${r}'.`;let n=Js([...ft].map(s=>`'${s}'`));return `Unexpected doc.type '${t8.type}'.
Expected it to be ${n}.`}var rr=class extends Error{name="InvalidDocError";constructor(e){super(Zs(e)),this.doc=e;}},mt=rr,Xr=()=>{},dt=Xr;function R(t8){return {type:oe,contents:t8}}function Jr(t8,e){return {type:ue,contents:e,n:t8}}function E(t8,e={}){return dt(e.expandedStates),{type:ee,id:e.id,contents:t8,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Zr(t8){return Jr(Number.NEGATIVE_INFINITY,t8)}function en(t8){return Jr({type:"root"},t8)}function gt(t8){return {type:le,parts:t8}}function fe(t8,e="",r={}){return {type:ce,breakContents:t8,flatContents:e,groupId:r.groupId}}function tn(t8,e){return {type:pe,contents:t8,groupId:e.groupId,negate:e.negate}}var re={type:he},ei={type:G,hard:!0},ti={type:G,hard:!0,literal:!0},A={type:G},b={type:G,soft:!0},S=[ei,re],rn=[ti,re];function Y(t8,e){let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t8),r.push(e[n]);return r}var ri=(t8,e,r)=>{if(!(t8&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},me=ri;function Ct(t8,e){if(typeof t8=="string")return e(t8);let r=new Map;return n(t8);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(Fe(i)){case be:return e(i.map(n));case le:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case ee:{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 ue:case oe:case pe:case Le:case ke:return e({...i,contents:n(i.contents)});case we:case Te:case xe:case Be:case G:case he:return e(i);default:throw new mt(i)}}}function ni(t8){switch(Fe(t8)){case le:if(t8.parts.every(e=>e===""))return "";break;case ee:if(!t8.contents&&!t8.id&&!t8.break&&!t8.expandedStates)return "";if(t8.contents.type===ee&&t8.contents.id===t8.id&&t8.contents.break===t8.break&&t8.contents.expandedStates===t8.expandedStates)return t8.contents;break;case ue:case oe:case pe:case ke:if(!t8.contents)return "";break;case ce:if(!t8.flatContents&&!t8.breakContents)return "";break;case be:{let e=[];for(let r of t8){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof me(!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 we:case Te:case xe:case Be:case G:case Le:case he:break;default:throw new mt(t8)}return t8}function nn(t8){return Ct(t8,e=>ni(e))}function T(t8,e=rn){return Ct(t8,r=>typeof r=="string"?Y(e,r.split(`
`)):r)}var nr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e;}},sn=nr,St="'",an='"';function si(t8,e){let r=e===!0||e===St?St:an,n=r===St?an:St,s=0,i=0;for(let a of t8)a===r?s++:a===n&&i++;return s>i?n:r}var on=si;function sr(t8){if(typeof t8!="string")throw new TypeError("Expected a string");return t8.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var O,ir=class{constructor(e){Kr(this,O,void 0),Qr(this,O,new Set(e));}getLeadingWhitespaceCount(e){let r=Q(this,O),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=Q(this,O),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,O).has(e.charAt(0))}hasTrailingWhitespace(e){return Q(this,O).has(me(!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,O)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=Q(this,O);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=Q(this,O);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=Q(this,O);return Array.prototype.every.call(e,n=>r.has(n))}};O=new WeakMap;var un=ir,ii=[" ",`
`,"\f","\r"," "],ai=new un(ii),H=ai;function oi(t8){return t8?.type==="front-matter"}var Pe=oi,ui=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens"]),li=new Set(["if","else if","for","switch","case"]);function ln(t8,e){var r;if(t8.type==="text"||t8.type==="comment"||Pe(t8)||t8.type==="yaml"||t8.type==="toml")return null;if(t8.type==="attribute"&&delete e.value,t8.type==="docType"&&delete e.value,t8.type==="angularControlFlowBlock"&&(r=e.parameters)!=null&&r.children)for(let n of e.parameters.children)li.has(t8.name)?delete n.expression:n.expression=n.expression.trim();}ln.ignoredProperties=ui;var cn=ln,ci=t8=>String(t8).split(/[/\\]/).pop();function pn(t8,e){if(!e)return;let r=ci(e).toLowerCase();return t8.find(n=>{var s,i;return ((s=n.extensions)==null?void 0:s.some(a=>r.endsWith(a)))||((i=n.filenames)==null?void 0:i.some(a=>a.toLowerCase()===r))})}function pi(t8,e){if(e)return t8.find(({name:r})=>r.toLowerCase()===e)??t8.find(({aliases:r})=>r?.includes(e))??t8.find(({extensions:r})=>r?.includes(`.${e}`))}function hi(t8,e){let r=t8.plugins.flatMap(s=>s.languages??[]),n=pi(r,e.language)??pn(r,e.physicalFile)??pn(r,e.file)??(e.physicalFile,void 0);return n?.parsers[0]}var Ne=hi,hn="inline",fn={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"},mn="normal",dn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function fi(t8){return t8.type==="element"&&!t8.hasExplicitNamespace&&!["html","svg"].includes(t8.namespace)}var de=fi,mi=t8=>v(!1,t8,/^[\t\f\r ]*\n/g,""),ar=t8=>mi(H.trimEnd(t8)),gn=t8=>{let e=t8,r=H.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=H.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function _t(t8,e){return !!(t8.type==="ieConditionalComment"&&t8.lastChild&&!t8.lastChild.isSelfClosing&&!t8.lastChild.endSourceSpan||t8.type==="ieConditionalComment"&&!t8.complete||ge(t8)&&t8.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Dt(t8,e)&&!V(t8)&&t8.type!=="interpolation")}function Ge(t8){return t8.type==="attribute"||!t8.parent||!t8.prev?!1:di(t8.prev)}function di(t8){return t8.type==="comment"&&t8.value.trim()==="prettier-ignore"}function N(t8){return t8.type==="text"||t8.type==="comment"}function V(t8){return t8.type==="element"&&(t8.fullName==="script"||t8.fullName==="style"||t8.fullName==="svg:style"||t8.fullName==="svg:script"||de(t8)&&(t8.name==="script"||t8.name==="style"))}function Cn(t8){return t8.children&&!V(t8)}function Sn(t8){return V(t8)||t8.type==="interpolation"||or(t8)}function or(t8){return kn(t8).startsWith("pre")}function _n(t8,e){var s,i;let r=n();if(r&&!t8.prev&&(i=(s=t8.parent)==null?void 0:s.tagDefinition)!=null&&i.ignoreFirstLf)return t8.type==="interpolation";return r;function n(){return Pe(t8)||t8.type==="angularControlFlowBlock"?!1:(t8.type==="text"||t8.type==="interpolation")&&t8.prev&&(t8.prev.type==="text"||t8.prev.type==="interpolation")?!0:!t8.parent||t8.parent.cssDisplay==="none"?!1:ge(t8.parent)?!0:!(!t8.prev&&(t8.parent.type==="root"||ge(t8)&&t8.parent||V(t8.parent)||Ke(t8.parent,e)||!Ai(t8.parent.cssDisplay))||t8.prev&&!yi(t8.prev.cssDisplay))}}function En(t8,e){return Pe(t8)||t8.type==="angularControlFlowBlock"?!1:(t8.type==="text"||t8.type==="interpolation")&&t8.next&&(t8.next.type==="text"||t8.next.type==="interpolation")?!0:!t8.parent||t8.parent.cssDisplay==="none"?!1:ge(t8.parent)?!0:!(!t8.next&&(t8.parent.type==="root"||ge(t8)&&t8.parent||V(t8.parent)||Ke(t8.parent,e)||!Di(t8.parent.cssDisplay))||t8.next&&!vi(t8.next.cssDisplay))}function An(t8){return wi(t8.cssDisplay)&&!V(t8)}function Ye(t8){return Pe(t8)||t8.next&&t8.sourceSpan.end&&t8.sourceSpan.end.line+1<t8.next.sourceSpan.start.line}function Dn(t8){return ur(t8)||t8.type==="element"&&t8.children.length>0&&(["body","script","style"].includes(t8.name)||t8.children.some(e=>Ci(e)))||t8.firstChild&&t8.firstChild===t8.lastChild&&t8.firstChild.type!=="text"&&yn(t8.firstChild)&&(!t8.lastChild.isTrailingSpaceSensitive||wn(t8.lastChild))}function ur(t8){return t8.type==="element"&&t8.children.length>0&&(["html","head","ul","ol","select"].includes(t8.name)||t8.cssDisplay.startsWith("table")&&t8.cssDisplay!=="table-cell")}function Et(t8){return bn(t8)||t8.prev&&gi(t8.prev)||vn(t8)}function gi(t8){return bn(t8)||t8.type==="element"&&t8.fullName==="br"||vn(t8)}function vn(t8){return yn(t8)&&wn(t8)}function yn(t8){return t8.hasLeadingSpaces&&(t8.prev?t8.prev.sourceSpan.end.line<t8.sourceSpan.start.line:t8.parent.type==="root"||t8.parent.startSourceSpan.end.line<t8.sourceSpan.start.line)}function wn(t8){return t8.hasTrailingSpaces&&(t8.next?t8.next.sourceSpan.start.line>t8.sourceSpan.end.line:t8.parent.type==="root"||t8.parent.endSourceSpan&&t8.parent.endSourceSpan.start.line>t8.sourceSpan.end.line)}function bn(t8){switch(t8.type){case"ieConditionalComment":case"comment":case"directive":return !0;case"element":return ["script","select"].includes(t8.name)}return !1}function At(t8){return t8.lastChild?At(t8.lastChild):t8}function Ci(t8){var e;return (e=t8.children)==null?void 0:e.some(r=>r.type!=="text")}function Tn(t8){if(t8)switch(t8){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(t8.endsWith("json")||t8.endsWith("importmap")||t8==="speculationrules")return "json"}}function Si(t8,e){let{name:r,attrMap:n}=t8;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:s,lang:i}=t8.attrMap;return !i&&!s?"babel":Ne(e,{language:i})??Tn(s)}function _i(t8,e){if(!Dt(t8,e))return;let{attrMap:r}=t8;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:s}=r;return Ne(e,{language:s})??Tn(n)}function Ei(t8,e){if(t8.name!=="style")return;let{lang:r}=t8.attrMap;return r?Ne(e,{language:r}):"css"}function lr(t8,e){return Si(t8,e)??Ei(t8,e)??_i(t8,e)}function je(t8){return t8==="block"||t8==="list-item"||t8.startsWith("table")}function Ai(t8){return !je(t8)&&t8!=="inline-block"}function Di(t8){return !je(t8)&&t8!=="inline-block"}function vi(t8){return !je(t8)}function yi(t8){return !je(t8)}function wi(t8){return !je(t8)&&t8!=="inline-block"}function ge(t8){return kn(t8).startsWith("pre")}function bi(t8,e){let r=t8;for(;r;){if(e(r))return !0;r=r.parent;}return !1}function xn(t8,e){var n;if(Ce(t8,e))return "block";if(((n=t8.prev)==null?void 0:n.type)==="comment"){let s=t8.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(s)return s[1]}let r=!1;if(t8.type==="element"&&t8.namespace==="svg")if(bi(t8,s=>s.fullName==="svg:foreignObject"))r=!0;else return t8.name==="svg"?"inline-block":"block";switch(e.htmlWhitespaceSensitivity){case"strict":return "inline";case"ignore":return "block";default:return t8.type==="element"&&(!t8.namespace||r||de(t8))&&fn[t8.name]||hn}}function kn(t8){return t8.type==="element"&&(!t8.namespace||de(t8))&&dn[t8.name]||mn}function Ti(t8){let e=Number.POSITIVE_INFINITY;for(let r of t8.split(`
`)){if(r.length===0)continue;let n=H.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n);}return e===Number.POSITIVE_INFINITY?0:e}function cr(t8,e=Ti(t8)){return e===0?t8:t8.split(`
`).map(r=>r.slice(e)).join(`
`)}function pr(t8){return v(!1,v(!1,t8,"'","'"),""",'"')}function L(t8){return pr(t8.value)}var xi=new Set(["template","style","script"]);function Ke(t8,e){return Ce(t8,e)&&!xi.has(t8.fullName)}function Ce(t8,e){return e.parser==="vue"&&t8.type==="element"&&t8.parent.type==="root"&&t8.fullName.toLowerCase()!=="html"}function Dt(t8,e){return Ce(t8,e)&&(Ke(t8,e)||t8.attrMap.lang&&t8.attrMap.lang!=="html")}function Bn(t8){let e=t8.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function Ln(t8,e){let r=t8.parent;if(!Ce(r,e))return !1;let n=r.fullName,s=t8.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function vt(t8,e=t8.value){return t8.parent.isWhitespaceSensitive?t8.parent.isIndentationSensitive?T(e):T(cr(ar(e)),S):Y(A,H.split(e))}function yt(t8,e){return Ce(t8,e)&&t8.name==="script"}function wt(t8){return t8>=9&&t8<=32||t8==160}function hr(t8){return 48<=t8&&t8<=57}function bt(t8){return t8>=97&&t8<=122||t8>=65&&t8<=90}function Fn(t8){return t8>=97&&t8<=102||t8>=65&&t8<=70||hr(t8)}function fr(t8){return t8===10||t8===13}function mr(t8){return 48<=t8&&t8<=55}function dr(t8){return t8===39||t8===34||t8===96}var ki=/-+([a-z0-9])/g;function Nn(t8){return t8.replace(ki,(...e)=>e[1].toUpperCase())}var ne=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s;}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(`
`);a=u>0?s-u:s;}else a--;for(;s<n&&e>0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++;}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a<e&&s>0&&(s--,a++,!(n[s]==`
`&&++o==r)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==`
`&&++o==r)););return {before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},Se=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)}},Tt;(function(t8){t8[t8.WARNING=0]="WARNING",t8[t8.ERROR=1]="ERROR";})(Tt||(Tt={}));var Re=class{constructor(e,r,n=Tt.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}[${Tt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return `${this.contextualMessage()}: ${this.span.start}${e}`}},Bi=[Fi,Pi,Ii,$i,Oi,Hi,Mi,qi,Vi,Ri];function Li(t8,e){for(let r of Bi)r(t8,e);return t8}function Fi(t8){t8.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 Pi(t8){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};t8.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 Ni(t8,e,r){t8.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 Ii(t8){return Ni(t8,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function Ri(t8){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!H.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"};t8.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 $i(t8,e){if(e.parser==="html")return;let r=/{{(.+?)}}/s;t8.walk(n=>{if(Cn(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 Oi(t8){t8.walk(e=>{if(!e.children)return;if(e.children.length===0||e.children.length===1&&e.children[0].type==="text"&&H.trim(e.children[0].value).length===0){e.hasDanglingSpaces=e.children.length>0,e.children=[];return}let r=Sn(e),n=or(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}=gn(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 Mi(t8){t8.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 qi(t8,e){t8.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 Hi(t8,e){t8.walk(r=>{r.cssDisplay=xn(r,e);});}function Vi(t8,e){t8.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=An(r);return}for(let s of n)s.isLeadingSpaceSensitive=_n(s,e),s.isTrailingSpaceSensitive=En(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 In=Li;function Rn(t8){return /^\s*<!--\s*@(?:format|prettier)\s*-->/.test(t8)}function $n(t8){return `<!-- @format -->
`+t8}function se(t8){return t8.sourceSpan.start.offset}function ie(t8){return t8.sourceSpan.end.offset}async function Ui(t8,e){if(t8.lang==="yaml"){let r=t8.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return en([t8.startDelimiter,S,n,n?S:"",t8.endDelimiter])}}var On=Ui,Mn=new Proxy(()=>{},{get:()=>Mn}),gr=Mn;function Wi(t8){return Array.isArray(t8)&&t8.length>0}var xt=Wi;function Qe(t8,e){return [t8.isSelfClosing?"":zi(t8,e),Xe(t8,e)]}function zi(t8,e){return t8.lastChild&&Ae(t8.lastChild)?"":[Gi(t8,e),kt(t8,e)]}function Xe(t8,e){return (t8.next?j(t8.next):Ee(t8.parent))?"":[_e(t8,e),U(t8,e)]}function Gi(t8,e){return Ee(t8)?_e(t8.lastChild,e):""}function U(t8,e){return Ae(t8)?kt(t8.parent,e):Je(t8)?Bt(t8.next):""}function kt(t8,e){if(gr(!t8.isSelfClosing),qn(t8,e))return "";switch(t8.type){case"ieConditionalComment":return "<!";case"element":if(t8.hasHtmComponentClosingTag)return "<//";default:return `</${t8.rawName}`}}function _e(t8,e){if(qn(t8,e))return "";switch(t8.type){case"ieConditionalComment":case"ieConditionalEndComment":return "[endif]-->";case"ieConditionalStartComment":return "]><!-->";case"interpolation":return "}}";case"element":if(t8.isSelfClosing)return "/>";default:return ">"}}function qn(t8,e){return !t8.isSelfClosing&&!t8.endSourceSpan&&(Ge(t8)||_t(t8.parent,e))}function j(t8){return t8.prev&&t8.prev.type!=="docType"&&t8.type!=="angularControlFlowBlock"&&!N(t8.prev)&&t8.isLeadingSpaceSensitive&&!t8.hasLeadingSpaces}function Ee(t8){var e;return ((e=t8.lastChild)==null?void 0:e.isTrailingSpaceSensitive)&&!t8.lastChild.hasTrailingSpaces&&!N(At(t8.lastChild))&&!ge(t8)}function Ae(t8){return !t8.next&&!t8.hasTrailingSpaces&&t8.isTrailingSpaceSensitive&&N(At(t8))}function Je(t8){return t8.next&&!N(t8.next)&&N(t8)&&t8.isTrailingSpaceSensitive&&!t8.hasTrailingSpaces}function Yi(t8){let e=t8.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return e?e[1]?e[1].split(/\s+/):!0:!1}function Ze(t8){return !t8.prev&&t8.isLeadingSpaceSensitive&&!t8.hasLeadingSpaces}function ji(t8,e,r){var m;let{node:n}=t8;if(!xt(n.attrs))return n.isSelfClosing?" ":"";let s=((m=n.prev)==null?void 0:m.type)==="comment"&&Yi(n.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?d=>s.includes(d.rawName):()=>!1,a=t8.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&&!Ce(n,e)?S:A,l=[R([o?" ":A,Y(p,a)])];return n.firstChild&&Ze(n.firstChild)||n.isSelfClosing&&Ee(n.parent)||o?l.push(n.isSelfClosing?" ":""):l.push(e.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?A:b),l}function Ki(t8){return t8.firstChild&&Ze(t8.firstChild)?"":Lt(t8)}function et(t8,e,r){let{node:n}=t8;return [tt(n,e),ji(t8,e,r),n.isSelfClosing?"":Ki(n)]}function tt(t8,e){return t8.prev&&Je(t8.prev)?"":[W(t8,e),Bt(t8)]}function W(t8,e){return Ze(t8)?Lt(t8.parent):j(t8)?_e(t8.prev,e):""}function Bt(t8){switch(t8.type){case"ieConditionalComment":case"ieConditionalStartComment":return `<!--[if ${t8.condition}`;case"ieConditionalEndComment":return "<!--<!";case"interpolation":return "{{";case"docType":return t8.value==="html"?"<!doctype":"<!DOCTYPE";case"element":if(t8.condition)return `<!--[if ${t8.condition}]><!--><${t8.rawName}`;default:return `<${t8.rawName}`}}function Lt(t8){switch(gr(!t8.isSelfClosing),t8.type){case"ieConditionalComment":return "]>";case"element":if(t8.condition)return "><!--<![endif]-->";default:return ">"}}var Cr=new WeakMap;function Qi(t8,e){let{root:r}=t8;return Cr.has(r)||Cr.set(r,r.children.some(n=>yt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Cr.get(r)}var $e=Qi;function Xi(t8,e){if(!t8.endSourceSpan)return "";let r=t8.startSourceSpan.end.offset;t8.firstChild&&Ze(t8.firstChild)&&(r-=Lt(t8).length);let n=t8.endSourceSpan.start.offset;return t8.lastChild&&Ae(t8.lastChild)?n+=kt(t8,e).length:Ee(t8)&&(n-=_e(t8.lastChild,e).length),e.originalText.slice(r,n)}var Ft=Xi;function Hn(t8){return t8===" "||t8===`
`||t8==="\f"||t8==="\r"||t8===" "}var Ji=/^[ \t\n\r\u000c]+/,Zi=/^[, \t\n\r\u000c]+/,ea=/^[^ \t\n\r\u000c]+/,ta=/[,]+$/,Vn=/^\d+$/,ra=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function na(t8){let e=t8.length,r,n,s,i,a,o=0,u;function p(C){let _2,D=C.exec(t8.substring(o));if(D)return [_2]=D,o+=_2.length,_2}let l=[];for(;;){if(p(Zi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(ea),n=[],r.slice(-1)===","?(r=r.replace(ta,""),d()):m();}function m(){for(p(Ji),s="",i="in descriptor";;){if(a=t8.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,_2,D,P2,B,c={},g,y2,$,w2,q2;for(B=0;B<n.length;B++)g=n[B],y2=g[g.length-1],$=g.substring(0,g.length-1),w2=parseInt($,10),q2=parseFloat($),Vn.test($)&&y2==="w"?((_2||D)&&(C=!0),w2===0?C=!0:_2=w2):ra.test($)&&y2==="x"?((_2||D||P2)&&(C=!0),q2<0?C=!0:D=q2):Vn.test($)&&y2==="h"?((P2||D)&&(C=!0),w2===0?C=!0:P2=w2):C=!0;if(!C)c.source={value:r,startOffset:u},_2&&(c.width={value:_2}),D&&(c.density={value:D}),P2&&(c.height={value:P2}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${t8}" at "${g}".`)}}var Un=na;function De(t8,e=!0){return [R([b,t8]),e?b:""]}function K(t8,e){let r=t8.type==="NGRoot"?t8.node.type==="NGMicrosyntax"&&t8.node.body.length===1&&t8.node.body[0].type==="NGMicrosyntaxExpression"?t8.node.body[0].expression:t8.node:t8.type==="JsExpressionRoot"?t8.node:t8;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(t8,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(t8,r,e);return s?E(i):De(i)}function sa(t8){if(t8.node.fullName==="srcset"&&(t8.parent.fullName==="img"||t8.parent.fullName==="source"))return ()=>aa(L(t8.node))}var Wn={width:"w",height:"h",density:"x"},ia=Object.keys(Wn);function aa(t8){let e=Un(t8),r=ia.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=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 m=l.indexOf(".");return m===-1?l.length:m}),p=Math.max(...u);return De(Y([",",A],i.map((l,m)=>{let d=[l],C=o[m];if(C){let _2=a-l.length+1,D=p-u[m],P2=" ".repeat(_2+D);d.push(fe(P2," "),C+s);}return d})))}var zn=sa;function oa(t8,e){let{node:r}=t8,n=L(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return ()=>n.trim().split(/\s+/).join(" ")}var Gn=oa;function Yn(t8,e){let{node:r}=t8,n=L(t8.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>De(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}async function jn(t8,e,r,n){let s=L(r.node),{left:i,operator:a,right:o}=ua(s),u=$e(r,n);return [E(await x(`function _(${i}) {}`,t8,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await x(o,t8,{parser:u?"__ts_expression":"__js_expression"})]}function ua(t8){let e=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,s=t8.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=v(!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 Kn(t8,e,r){let{node:n}=r,s=L(n);return x(`type T<${s}> = any`,t8,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},K)}function Qn(t8,e,{parseWithTs:r}){return x(`function _(${t8}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Xn(t8){let e=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=t8.trim();return e.test(n)||r.test(n)}function la(t8,e){if(e.parser!=="vue")return;let{node:r}=t8,n=r.fullName;if(n==="v-for")return jn;if(n==="generic"&&yt(r.parent,e))return Kn;let s=L(r),i=$e(t8,e);if(Bn(r)||Ln(r,e))return a=>Qn(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ca(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith("v-bind:"))return a=>pa(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>Jn(s,a,{parseWithTs:i})}function ca(t8,e,{parseWithTs:r}){return Xn(t8)?Jn(t8,e,{parseWithTs:r}):x(t8,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},K)}function pa(t8,e,{parseWithTs:r}){return x(t8,e,{parser:r?"__vue_ts_expression":"__vue_expression"},K)}function Jn(t8,e,{parseWithTs:r}){return x(t8,e,{parser:r?"__ts_expression":"__js_expression"},K)}var Zn=la,Sr=/{{(.+?)}}/s;async function es(t8,e){let r=[];for(let[n,s]of t8.split(Sr).entries())if(n%2===0)r.push(T(s));else try{r.push(E(["{{",R([A,await x(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),A,"}}"]));}catch{r.push("{{",T(s),"}}");}return r}function _r({parser:t8}){return (e,r,n)=>x(L(n.node),e,{parser:t8,trailingComma:"none"},K)}var ha=_r({parser:"__ng_action"}),fa=_r({parser:"__ng_binding"}),ma=_r({parser:"__ng_directive"});function da(t8,e){if(e.parser!=="angular")return;let{node:r}=t8,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return ha;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return fa;if(n.startsWith("*"))return ma;let s=L(r);if(/^i18n(?:-.+)?$/.test(n))return ()=>De(gt(vt(r,s.trim())),!s.includes("@@"));if(Sr.test(s))return i=>es(s,i)}var ts=da;function ga(t8,e){let{node:r}=t8;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 [zn,Yn,Gn,Zn,ts]){let s=n(t8,e);if(s)return Ca(s)}}}function Ca(t8){return async(e,r,n,s)=>{let i=await t8(e,r,n,s);if(i)return i=Ct(i,a=>typeof a=="string"?v(!1,a,'"',"""):a),[n.node.rawName,'="',E(i),'"']}}var rs=ga;function Sa(t8,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,t8,{parser:"__ng_directive",__isInHtmlAttribute:!1,trailingComma:"none"},K)}var ns=Sa,_a=new Set(["if","else if","for","switch","case"]);function Ea(t8,e){let{node:r}=t8;switch(r.type){case"element":if(V(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&Dt(r,e)){let n=lr(r,e);return n?async(s,i)=>{let a=Ft(r,e),o=/^\s*$/.test(a),u="";return o||(u=await s(ar(a),{parser:n,__embeddedInHtml:!0}),o=u===""),[W(r,e),E(et(t8,e,i)),o?"":S,u,o?"":S,Qe(r,e),U(r,e)]}:void 0}break;case"text":if(V(r.parent)){let n=lr(r.parent,e);if(n)return async s=>{let i=n==="markdown"?cr(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 [re,W(r,e),await s(i,a,{stripTrailingHardline:!0}),U(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",s.trailingComma="none"):e.parser==="vue"?s.parser=$e(t8,e)?"__vue_ts_expression":"__vue_expression":s.parser="__js_expression",[R([A,await n(r.value,s)]),r.parent.next&&j(r.parent.next)?" ":A]};break;case"attribute":return rs(t8,e);case"front-matter":return n=>On(r,n);case"angularControlFlowBlockParameters":return _a.has(t8.parent.name)?ns:void 0}}var ss=Ea;function rt(t8,e,r){let n=t8.node;return Ge(n)?[W(n,e),T(e.originalText.slice(se(n)+(n.prev&&Je(n.prev)?Bt(n).length:0),ie(n)-(n.next&&j(n.next)?_e(n,e).length:0))),U(n,e)]:r()}function Pt(t8,e){return N(t8)&&N(e)?t8.isTrailingSpaceSensitive?t8.hasTrailingSpaces?Et(e)?S:A:"":Et(e)?S:b:Je(t8)&&(Ge(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t8.type==="element"&&t8.isSelfClosing&&j(e)?"":!e.isLeadingSpaceSensitive||Et(e)||j(e)&&t8.lastChild&&Ae(t8.lastChild)&&t8.lastChild.lastChild&&Ae(t8.lastChild.lastChild)?S:e.hasLeadingSpaces?A:b}function Oe(t8,e,r){let{node:n}=t8;if(ur(n))return [re,...t8.map(i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return [o?[o,Ye(a.prev)?S:""]:"",rt(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t8.map((i,a)=>{let o=i.node;if(N(o)){if(o.prev&&N(o.prev)){let _2=Pt(o.prev,o);if(_2)return Ye(o.prev)?[S,S,rt(i,e,r)]:[_2,rt(i,e,r)]}return rt(i,e,r)}let u=[],p=[],l=[],m=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Ye(o.prev)?u.push(S,S):d===S?u.push(S):N(o.prev)?p.push(d):p.push(fe("",b,{groupId:s[a-1]}))),C&&(Ye(o)?N(o.next)&&m.push(S,S):C===S?N(o.next)&&m.push(S):l.push(C)),[...u,E([...p,E([rt(i,e,r),...l],{id:s[a]})]),...m]},"children")}function is(t8,e,r){let{node:n}=t8;if(_t(n,e))return [W(n,e),E(et(t8,e,r)),T(Ft(n,e)),...Qe(n,e),U(n,e)];let s=n.children.length===1&&n.firstChild.type==="interpolation"&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(et(t8,e,r),{id:i}),l,Qe(n,e)]),o=l=>s?tn(l,{groupId:i}):(V(n)||Ke(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:R(l),u=()=>s?fe(b,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?A:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Zr(b):b,p=()=>(n.next?j(n.next):Ee(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?fe(b,"",{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*(t8.ancestors.length-1)}}$`).test(n.lastChild.value)?"":b;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?A:""):a([Dn(n)?re:"",o([u(),Oe(t8,e,r)]),p()])}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(t8,e,r){let{node:n}=t8,s=[];Aa(t8)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=us(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(R([S,Oe(t8,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function us(t8){var e,r;return !(((e=t8.next)==null?void 0:e.type)==="angularControlFlowBlock"&&(r=as.get(t8.name))!=null&&r.has(t8.next.name))}function Aa(t8){let{previous:e}=t8;return e?.type==="angularControlFlowBlock"&&!us(t8.previous)}function ls(t8,e,r){return [R([b,Y([";",A],t8.map(r,"children"))]),b]}var nt=null;function st(t8){if(nt!==null&&typeof nt.property){let e=nt;return nt=st.prototype=null,e}return nt=st.prototype=t8??Object.create(null),new st}var Da=10;for(let t8=0;t8<=Da;t8++)st();function Er(t8){return st(t8)}function va(t8,e="type"){Er(t8);function r(n){let s=n[e],i=t8[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var cs=va,ya={"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:[]},ps=ya,wa=cs(ps),hs=wa;function ba(t8,e,r){let{node:n}=t8;switch(n.type){case"front-matter":return T(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(Oe(t8,e,r)),S];case"element":case"ieConditionalComment":return is(t8,e,r);case"angularControlFlowBlock":return os(t8,e,r);case"angularControlFlowBlockParameters":return ls(t8,e,r);case"angularControlFlowBlockParameter":return H.trim(n.expression);case"ieConditionalStartComment":case"ieConditionalEndComment":return [tt(n),Xe(n)];case"interpolation":return [tt(n,e),...t8.map(r,"children"),Xe(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=nn([W(n,e),...vt(n),U(n,e)]);return Array.isArray(s)?gt(s):s}case"docType":return [E([tt(n,e)," ",v(!1,n.value.replace(/^html\b/i,"html"),/\s+/g," ")]),Xe(n,e)];case"comment":return [W(n,e),T(e.originalText.slice(se(n),ie(n))),U(n,e)];case"attribute":{if(n.value===null)return n.rawName;let s=pr(n.value),i=on(s,'"');return [n.rawName,"=",i,T(i==='"'?v(!1,s,'"',"""):v(!1,s,"'","'")),i]}case"cdata":default:throw new sn(n,"HTML")}}var Ta={preprocess:In,print:ba,insertPragma:$n,massageAstNode:cn,embed:ss,getVisitorKeys:hs},fs=Ta,Hr={};Yr(Hr,{angular:()=>vo,html:()=>Do,lwc:()=>wo,vue:()=>yo});var ms;(function(t8){t8[t8.Emulated=0]="Emulated",t8[t8.None=2]="None",t8[t8.ShadowDom=3]="ShadowDom";})(ms||(ms={}));var ds;(function(t8){t8[t8.OnPush=0]="OnPush",t8[t8.Default=1]="Default";})(ds||(ds={}));var Ar={name:"custom-elements"},Dr={name:"no-errors-schema"},X;(function(t8){t8[t8.NONE=0]="NONE",t8[t8.HTML=1]="HTML",t8[t8.STYLE=2]="STYLE",t8[t8.SCRIPT=3]="SCRIPT",t8[t8.URL=4]="URL",t8[t8.RESOURCE_URL=5]="RESOURCE_URL";})(X||(X={}));var gs;(function(t8){t8[t8.Error=0]="Error",t8[t8.Warning=1]="Warning",t8[t8.Ignore=2]="Ignore";})(gs||(gs={}));var F;(function(t8){t8[t8.RAW_TEXT=0]="RAW_TEXT",t8[t8.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t8[t8.PARSABLE_DATA=2]="PARSABLE_DATA";})(F||(F={}));function it(t8){if(t8[0]!=":")return [null,t8];let e=t8.indexOf(":",1);if(e===-1)throw new Error(`Unsupported format "${t8}" expecting ":namespace:name"`);return [t8.slice(1,e),t8.slice(e+1)]}function vr(t8){return it(t8)[1]==="ng-container"}function yr(t8){return it(t8)[1]==="ng-content"}function Me(t8){return t8===null?null:it(t8)[0]}function qe(t8,e){return t8?`:${t8}:${e}`:e}var It;function wr(){return It||(It={},Nt(X.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Nt(X.STYLE,["*|style"]),Nt(X.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"]),Nt(X.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"])),It}function Nt(t8,e){for(let r of e)It[r.toLowerCase()]=t8;}var Rt=class{},xa="boolean",ka="number",Ba="string",La="object",Fa=["[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,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,valu