prettier
Version:
Prettier is an opinionated code formatter
16 lines (15 loc) • 167 kB
JavaScript
var Kr=Object.defineProperty;var Qr=e=>{throw TypeError(e)};var vs=(e,t,r)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jr=(e,t)=>{for(var r in t)Kr(e,r,{get:t[r],enumerable:!0})};var rr=(e,t,r)=>vs(e,typeof t!="symbol"?t+"":t,r),Ts=(e,t,r)=>t.has(e)||Qr("Cannot "+r);var Ge=(e,t,r)=>(Ts(e,t,"read from private field"),r?r.call(e):t.get(e)),Zr=(e,t,r)=>t.has(e)?Qr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);var Cs={};Jr(Cs,{languages:()=>cs,options:()=>ps,parsers:()=>jr,printers:()=>Tl});var ke=(e,t)=>(r,n,...i)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,i);var bs=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},ws=ke("replaceAll",function(){if(typeof this=="string")return bs}),w=ws;function ks(e){return this[e<0?this.length+e:e]}var ys=ke("at",function(){if(Array.isArray(this)||typeof this=="string")return ks}),B=ys;var As=()=>{},$e=As;var ze="string",Ye="array",gt="cursor",ye="indent",Ae="align",_t="trim",xe="group",Ne="fill",Le="if-break",Pe="indent-if-break",St="line-suffix",Et="line-suffix-boundary",z="line",Ct="label",Oe="break-parent",vt=new Set([gt,ye,Ae,_t,xe,Ne,Le,Pe,St,Et,z,Ct,Oe]);function xs(e){if(typeof e=="string")return ze;if(Array.isArray(e))return Ye;if(!e)return;let{type:t}=e;if(vt.has(t))return t}var Tt=xs;var Ns=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Ls(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(Tt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Ns([...vt].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var nr=class extends Error{name="InvalidDocError";constructor(t){super(Ls(t)),this.doc=t}},en=nr;function ir(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let a=i(s);return r.set(s,a),a}function i(s){switch(Tt(s)){case Ye:return t(s.map(n));case Ne:return t({...s,parts:s.parts.map(n)});case Le:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case xe:{let{expandedStates:a,contents:o}=s;return a?(a=a.map(n),o=a[0]):o=n(o),t({...s,contents:o,expandedStates:a})}case Ae:case ye:case Pe:case Ct:case St:return t({...s,contents:n(s.contents)});case ze:case gt:case _t:case Et:case z:case Oe:return t(s);default:throw new en(s)}}}function L(e,t=tn){return ir(e,r=>typeof r=="string"?F(t,r.split(`
`)):r)}var D=$e,bt=$e,rn=$e,nn=$e;function A(e){return D(e),{type:ye,contents:e}}function Ps(e,t){return nn(e),D(t),{type:Ae,contents:t,n:e}}function sn(e){return Ps(Number.NEGATIVE_INFINITY,e)}var Y={type:Oe};function wt(e){return rn(e),{type:Ne,parts:e}}function C(e,t={}){return D(e),bt(t.expandedStates,!0),{type:xe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function X(e,t="",r={}){return D(e),t!==""&&D(t),{type:Le,breakContents:e,flatContents:t,groupId:r.groupId}}function an(e,t){return D(e),{type:Pe,contents:e,groupId:t.groupId,negate:t.negate}}function F(e,t){D(e),bt(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var _={type:z},k={type:z,soft:!0},Os={type:z,hard:!0},v=[Os,Y],Ds={type:z,hard:!0,literal:!0},tn=[Ds,Y];function Rs(e,t){let r=t===!0||t==="'"?"'":'"',n=r==="'"?'"':"'",i=0,s=0;for(let a of e)a===r?i++:a===n&&s++;return i>s?n:r}var on=Rs;function sr(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ar=class{#e;constructor(t){this.#e=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#e,n=0;for(let i=0;i<t.length&&r.has(t.charAt(i));i++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#e,n=0;for(let i=t.length-1;i>=0&&r.has(t.charAt(i));i--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return this.#e.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#e.has(B(0,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${sr([...this.#e].join(""))}]+`,i=new RegExp(r?`(${n})`:n,"u");return t.split(i)}hasWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#e;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#e;return Array.prototype.every.call(t,n=>r.has(n))}#t(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
`)){if(n.length===0)continue;let i=this.getLeadingWhitespaceCount(n);if(i===0)return 0;n.length!==i&&i<r&&(r=i)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#t(t);return r===0?t:t.split(`
`).map(n=>n.slice(r)).join(`
`)}},ln=ar;var Is=[" ",`
`,"\f","\r"," "],Ms=new ln(Is),x=Ms;var or=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},cn=or;var Bs=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Fs=new Set(["if","else if","for","switch","case"]);function un(e,t,r){if(e.kind==="text"||e.kind==="comment")return null;if(e.kind==="yaml"&&delete t.value,e.kind==="attribute"){let{fullName:n,value:i}=e;n==="style"||n==="class"||n==="srcset"&&(r.fullName==="img"||r.fullName==="source")||n==="allow"&&r.fullName==="iframe"||n.startsWith("on")||n.startsWith("@")||n.startsWith(":")||n.startsWith(".")||n.startsWith("#")||n.startsWith("v-")||n==="vars"&&r.fullName==="style"||(n==="setup"||n==="generic")&&r.fullName==="script"||n==="slot-scope"||n.startsWith("(")||n.startsWith("[")||n.startsWith("*")||n.startsWith("bind")||n.startsWith("i18n")||n.startsWith("on-")||n.startsWith("ng-")||i?.includes("{{")?delete t.value:i&&(t.value=w(0,i,/'|"|'/gu,'"'))}if(e.kind==="docType"&&(t.value=w(0,e.value.toLowerCase(),/\s+/gu," ")),e.kind==="angularControlFlowBlock"&&e.parameters?.children)for(let n of t.parameters.children)Fs.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.kind==="angularLetDeclarationInitializer"&&delete t.value,e.kind==="element"&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}un.ignoredProperties=Bs;var pn=un;function j(e,t=!0){return[A([k,e]),t?k:""]}function U(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function y(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let i=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{i=n(a,o)});let s=await t(e,r,t);return i?C(s):j(s)}function qs(e,t,r,n){let{node:i}=r,s=n.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(s)?"":y(s,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},U)}var hn=qs;var Hs=Array.prototype.toReversed??function(){return[...this].reverse()},Vs=ke("toReversed",function(){if(Array.isArray(this))return Hs}),mn=Vs;function Us(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var Ws=Us();function fn(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Gs(e){return e=fn(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function $s(e){e=fn(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function lr(e){return Ws?$s(e):Gs(e)}var dn=e=>String(e).split(/[/\\]/u).pop(),gn=e=>String(e).startsWith("file:");function zs(e){return Array.isArray(e)&&e.length>0}var De=zs;function _n(e,t){if(!t)return;let r=dn(t).toLowerCase();return e.find(({filenames:n})=>n?.some(i=>i.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(i=>r.endsWith(i)))}function Ys(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var Xs=void 0;function Sn(e,t){if(t){if(gn(t))try{t=lr(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function js(e,t){let r=mn(0,e.plugins).flatMap(i=>i.languages??[]);return(Ys(r,t.language)??_n(r,t.physicalFile)??_n(r,t.file)??Sn(r,t.physicalFile)??Sn(r,t.file)??Xs?.(r,t.physicalFile))?.parsers[0]}var kt=js;var yt=Symbol.for("PRETTIER_IS_FRONT_MATTER");function Ks(e){return!!e?.[yt]}var oe=Ks;var Xe=3;function Qs(e){let t=e.slice(0,Xe);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
`,Xe);if(r===-1)return;let n=e.slice(Xe,r).trim(),i=e.indexOf(`
${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),i===-1&&t==="---"&&s==="yaml"&&(i=e.indexOf(`
...`,r)),i===-1)return;let a=i+1+Xe,o=e.charAt(a+1);if(!/\s?/u.test(o))return;let c=e.slice(0,a),u;return{language:s,explicitLanguage:n||null,value:e.slice(r+1,i),startDelimiter:t,endDelimiter:c.slice(-Xe),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return u??(u=c.split(`
`)),u.length},get column(){return u??(u=c.split(`
`)),B(0,u,-1).length}},[yt]:!0}}function Js(e){let t=Qs(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return w(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var cr=Js;var En="inline",ur={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",select:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",option:"block",optgroup:"block"},Cn="normal",pr={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Zs(e){return e.kind==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var le=Zs;var ea=e=>w(0,e,/^[\t\f\r ]*\n/gu,""),hr=e=>ea(x.trimEnd(e)),vn=e=>{let t=e,r=x.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=x.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function At(e,t){return!!(e.kind==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind==="ieConditionalComment"&&!e.complete||ce(e)&&e.children.some(r=>r.kind!=="text"&&r.kind!=="interpolation")||Lt(e,t)&&!q(e,t)&&e.kind!=="interpolation")}function ue(e){return e.kind==="attribute"||!e.parent||!e.prev?!1:ta(e.prev)}function ta(e){return e.kind==="comment"&&e.value.trim()==="prettier-ignore"}function O(e){return e.kind==="text"||e.kind==="comment"}function q(e,t){return e.kind==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||e.fullName==="mj-style"&&t.parser==="mjml"||le(e)&&(e.name==="script"||e.name==="style"))}function Tn(e,t){return e.children&&!q(e,t)}function bn(e,t){return q(e,t)||e.kind==="interpolation"||mr(e)}function mr(e){return Rn(e).startsWith("pre")}function wn(e,t){let r=n();if(r&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind==="interpolation";return r;function n(){return oe(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.prev&&(e.prev.kind==="text"||e.prev.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ce(e.parent)?!0:!(!e.prev&&(e.parent.kind==="root"||ce(e)&&e.parent||q(e.parent,t)||Qe(e.parent,t)||!oa(e.parent.cssDisplay))||e.prev&&!ua(e.prev.cssDisplay))}}function kn(e,t){return oe(e)||e.kind==="angularControlFlowBlock"?!1:(e.kind==="text"||e.kind==="interpolation")&&e.next&&(e.next.kind==="text"||e.next.kind==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:ce(e.parent)?!0:!(!e.next&&(e.parent.kind==="root"||ce(e)&&e.parent||q(e.parent,t)||Qe(e.parent,t)||!la(e.parent.cssDisplay))||e.next&&!ca(e.next.cssDisplay))}function yn(e,t){return pa(e.cssDisplay)&&!q(e,t)}function je(e){return oe(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function An(e){return fr(e)||e.kind==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>na(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!=="text"&&Nn(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Ln(e.lastChild))}function fr(e){return e.kind==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function xt(e){return Pn(e)||e.prev&&ra(e.prev)||xn(e)}function ra(e){return Pn(e)||e.kind==="element"&&e.fullName==="br"||xn(e)}function xn(e){return Nn(e)&&Ln(e)}function Nn(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Ln(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Pn(e){switch(e.kind){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function Nt(e){return e.lastChild?Nt(e.lastChild):e}function na(e){return e.children?.some(t=>t.kind!=="text")}function On(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"text/jsx":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(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function ia(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:i,lang:s}=e.attrMap;return!s&&!i?"babel":kt(t,{language:s})??On(i)}function sa(e,t){if(!Lt(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:i}=r;return kt(t,{language:i})??On(n)}function aa(e,t){if(e.name==="style"){let{lang:r}=e.attrMap;return r?kt(t,{language:r}):"css"}if(e.name==="mj-style"&&t.parser==="mjml")return"css"}function dr(e,t){return ia(e,t)??aa(e,t)??sa(e,t)}function Ke(e){return e==="block"||e==="list-item"||e.startsWith("table")}function oa(e){return!Ke(e)&&e!=="inline-block"}function la(e){return!Ke(e)&&e!=="inline-block"}function ca(e){return!Ke(e)}function ua(e){return!Ke(e)}function pa(e){return!Ke(e)&&e!=="inline-block"}function ce(e){return Rn(e).startsWith("pre")}function ha(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function Dn(e,t){if(pe(e,t))return"block";if(e.prev?.kind==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(n)return n[1]}let r=!1;if(e.kind==="element"&&e.namespace==="svg")if(ha(e,n=>n.fullName==="svg:foreignObject"))r=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:if(e.kind==="element"&&(!e.namespace||r||le(e))&&Object.prototype.hasOwnProperty.call(ur,e.name))return ur[e.name]}return En}function Rn(e){return e.kind==="element"&&(!e.namespace||le(e))&&Object.prototype.hasOwnProperty.call(pr,e.name)?pr[e.name]:Cn}function gr(e){return w(0,w(0,e,"'","'"),""",'"')}function b(e){return gr(e.value)}var ma=new Set(["template","style","script"]);function Qe(e,t){return pe(e,t)&&!ma.has(e.fullName)}function pe(e,t){return t.parser==="vue"&&e.kind==="element"&&e.parent.kind==="root"&&e.fullName.toLowerCase()!=="html"}function Lt(e,t){return pe(e,t)&&(Qe(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function In(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Mn(e,t){let r=e.parent;if(!pe(r,t))return!1;let n=r.fullName,i=e.fullName;return n==="script"&&i==="setup"||n==="style"&&i==="vars"}function Pt(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?L(t):L(x.dedentString(hr(t)),v):F(_,x.split(t))}function Ot(e,t){return pe(e,t)&&e.name==="script"}var Bn=/\{\{(.+?)\}\}/su,Fn=({node:{value:e}})=>Bn.test(e);async function qn(e,t,r){let n=b(r.node),i=[];for(let[s,a]of n.split(Bn).entries())if(s%2===0)i.push(L(a));else try{i.push(C(["{{",A([_,await y(a,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]))}catch{i.push("{{",L(a),"}}")}return i}var _r=e=>(t,r,n)=>y(b(n.node),t,{parser:e},U),fa=[{test(e){let t=e.node.fullName;return t.startsWith("(")&&t.endsWith(")")||t.startsWith("on-")},print:_r("__ng_action")},{test(e){let t=e.node.fullName;return t.startsWith("[")&&t.endsWith("]")||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:_r("__ng_binding")},{test:e=>e.node.fullName.startsWith("*"),print:_r("__ng_directive")},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:da},{test:Fn,print:qn}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="angular"&&e(r),print:t}));function da(e,t,{node:r}){let n=b(r);return j(wt(Pt(r,n.trim())),!n.includes("@@"))}var Hn=fa;var Vn=({node:e},t)=>!t.parentParser&&e.fullName==="class"&&!e.value.includes("{{"),Un=(e,t,r)=>b(r.node).trim().split(/\s+/u).join(" ");var Sr=["onabort","onafterprint","onauxclick","onbeforeinput","onbeforematch","onbeforeprint","onbeforetoggle","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"];var _a=new Set(Sr),Wn=({node:e},t)=>_a.has(e.fullName)&&!t.parentParser&&!e.value.includes("{{"),Gn=(e,t,r)=>y(b(r.node),e,{parser:"babel",__isHtmlInlineEventHandler:!0},()=>!1);function Sa(e){let t=[];for(let r of e.split(";")){if(r=x.trim(r),!r)continue;let[n,...i]=x.split(r);t.push({name:n,value:i})}return t}var $n=Sa;var zn=({node:e},t)=>e.fullName==="allow"&&!t.parentParser&&e.parent.fullName==="iframe"&&!e.value.includes("{{");function Yn(e,t,r){let{node:n}=r,i=$n(b(n));return i.length===0?[""]:j(i.map(({name:s,value:a},o)=>[[s,...a].join(" "),o===i.length-1?X(";"):[";",_]]))}function Xn(e){return e===" "||e===`
`||e==="\f"||e==="\r"||e===" "}var Ea=/^[ \t\n\r\u000c]+/,Ca=/^[, \t\n\r\u000c]+/,va=/^[^ \t\n\r\u000c]+/,Ta=/[,]+$/,jn=/^\d+$/,ba=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function wa(e){let t=e.length,r,n,i,s,a,o=0,c;function u(m){let g,E=m.exec(e.substring(o));if(E)return[g]=E,o+=g.length,g}let p=[];for(;;){if(u(Ca),o>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}c=o,r=u(va),n=[],r.slice(-1)===","?(r=r.replace(Ta,""),S()):d()}function d(){for(u(Ea),i="",s="in descriptor";;){if(a=e.charAt(o),s==="in descriptor")if(Xn(a))i&&(n.push(i),i="",s="after descriptor");else if(a===","){o+=1,i&&n.push(i),S();return}else if(a==="(")i+=a,s="in parens";else if(a===""){i&&n.push(i),S();return}else i+=a;else if(s==="in parens")if(a===")")i+=a,s="in descriptor";else if(a===""){n.push(i),S();return}else i+=a;else if(s==="after descriptor"&&!Xn(a))if(a===""){S();return}else s="in descriptor",o-=1;o+=1}}function S(){let m=!1,g,E,P,$,ae={},Z,dt,we,We,tr;for($=0;$<n.length;$++)Z=n[$],dt=Z[Z.length-1],we=Z.substring(0,Z.length-1),We=parseInt(we,10),tr=parseFloat(we),jn.test(we)&&dt==="w"?((g||E)&&(m=!0),We===0?m=!0:g=We):ba.test(we)&&dt==="x"?((g||E||P)&&(m=!0),tr<0?m=!0:E=tr):jn.test(we)&&dt==="h"?((P||E)&&(m=!0),We===0?m=!0:P=We):m=!0;if(!m)ae.source={value:r,startOffset:c},g&&(ae.width={value:g}),E&&(ae.density={value:E}),P&&(ae.height={value:P}),p.push(ae);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${Z}".`)}}var Kn=wa;var Qn=e=>e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"),Jn={width:"w",height:"h",density:"x"},ka=Object.keys(Jn);function Zn(e,t,r){let n=b(r.node),i=Kn(n),s=ka.filter(m=>i.some(g=>Object.prototype.hasOwnProperty.call(g,m)));if(s.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[a]=s,o=Jn[a],c=i.map(m=>m.source.value),u=Math.max(...c.map(m=>m.length)),p=i.map(m=>m[a]?String(m[a].value):""),d=p.map(m=>{let g=m.indexOf(".");return g===-1?m.length:g}),S=Math.max(...d);return j(F([",",_],c.map((m,g)=>{let E=[m],P=p[g];if(P){let $=u-m.length+1,ae=S-d[g],Z=" ".repeat($+ae);E.push(X(Z," "),P+o)}return E})))}var ei=({node:e},t)=>e.fullName==="style"&&!t.parentParser&&!e.value.includes("{{"),ti=async(e,t,r)=>j(await e(b(r.node),{parser:"css",__isHTMLStyleAttribute:!0}));var Er=new WeakMap;function ya(e,t){let{root:r}=e;return Er.has(r)||Er.set(r,r.children.some(n=>Ot(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),Er.get(r)}var W=ya;function ri(e,t,r){let n=b(r.node);return y(`type T<${n}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},U)}function ni(e,t,r,n){let i=b(r.node),s=W(r,n)?"babel-ts":"babel";return y(`function _(${i}) {}`,e,{parser:s,__isVueBindings:!0})}async function ii(e,t,r,n){let i=b(r.node),{left:s,operator:a,right:o}=Aa(i),c=W(r,n);return[C(await y(`function _(${s}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await y(o,e,{parser:c?"__ts_expression":"__js_expression"})]}function Aa(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,i=e.match(t);if(!i)return;let s={for:i[3].trim()};if(!s.for)return;let a=w(0,i[1].trim(),n,""),o=a.match(r);o?(s.alias=a.replace(r,""),s.iterator1=o[1].trim(),o[2]&&(s.iterator2=o[2].trim())):s.alias=a;let c=[s.alias,s.iterator1,s.iterator2];if(!c.some((u,p)=>!u&&(p===0||c.slice(p+1).some(Boolean))))return{left:c.filter(Boolean).join(","),operator:i[2],right:s.for}}var xa=[{test:e=>e.node.fullName==="v-for",print:ii},{test:(e,t)=>e.node.fullName==="generic"&&Ot(e.parent,t),print:ri},{test:({node:e},t)=>In(e)||Mn(e,t),print:ni},{test(e){let t=e.node.fullName;return t.startsWith("@")||t.startsWith("v-on:")},print:Na},{test(e){let t=e.node.fullName;return t.startsWith(":")||t.startsWith(".")||t.startsWith("v-bind:")},print:La},{test:e=>e.node.fullName.startsWith("v-"),print:si}].map(({test:e,print:t})=>({test:(r,n)=>n.parser==="vue"&&e(r,n),print:t}));async function Na(e,t,r,n){try{return await si(e,t,r,n)}catch(a){if(a.cause?.code!=="BABEL_PARSER_SYNTAX_ERROR")throw a}let i=b(r.node),s=W(r,n)?"__vue_ts_event_binding":"__vue_event_binding";return y(i,e,{parser:s},U)}function La(e,t,r,n){let i=b(r.node),s=W(r,n)?"__vue_ts_expression":"__vue_expression";return y(i,e,{parser:s},U)}function si(e,t,r,n){let i=b(r.node),s=W(r,n)?"__ts_expression":"__js_expression";return y(i,e,{parser:s},U)}var ai=xa;var Pa=[{test:Qn,print:Zn},{test:ei,print:ti},{test:Wn,print:Gn},{test:Vn,print:Un},{test:zn,print:Yn},...ai,...Hn].map(({test:e,print:t})=>({test:e,print:Da(t)}));function Oa(e,t){let{node:r}=e,{value:n}=r;if(!n)return;let{valueSpan:i}=r;return!(i.end.offset-i.start.offset===n.length+2)&&(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n)||t.parser==="lwc"&&n.startsWith("{")&&n.endsWith("}"))?[r.rawName,"=",n]:Pa.find(({test:a})=>a(e,t))?.print}function Da(e){return async(t,r,n,i)=>{let s=await e(t,r,n,i);if(s)return s=ir(s,a=>typeof a=="string"?w(0,a,'"',"""):a),[n.node.rawName,'="',C(s),'"']}}var oi=Oa;var K=e=>e.sourceSpan.start.offset,ee=e=>e.sourceSpan.end.offset;function Je(e,t){return[e.isSelfClosing?"":Ra(e,t),he(e,t)]}function Ra(e,t){return e.lastChild&&de(e.lastChild)?"":[Ia(e,t),Dt(e,t)]}function he(e,t){return(e.next?G(e.next):fe(e.parent))?"":[me(e,t),H(e,t)]}function Ia(e,t){return fe(e)?me(e.lastChild,t):""}function H(e,t){return de(e)?Dt(e.parent,t):Ze(e)?Rt(e.next,t):""}function Dt(e,t){if(ci(e,t))return"";switch(e.kind){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function me(e,t){if(ci(e,t))return"";switch(e.kind){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function ci(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(ue(e)||At(e.parent,t))}function G(e){return e.prev&&e.prev.kind!=="docType"&&e.kind!=="angularControlFlowBlock"&&!O(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function fe(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!O(Nt(e.lastChild))&&!ce(e)}function de(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&O(Nt(e))}function Ze(e){return e.next&&!O(e.next)&&O(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Ma(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function et(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Ba(e,t,r){let{node:n}=e;if(!De(n.attrs))return n.isSelfClosing?" ":"";let i=n.prev?.kind==="comment"&&Ma(n.prev.value),s=typeof i=="boolean"?()=>i:Array.isArray(i)?d=>i.includes(d.rawName):()=>!1,a=e.map(({node:d})=>s(d)?L(t.originalText.slice(K(d),ee(d))):r(),"attrs"),o=n.kind==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,u=t.singleAttributePerLine&&n.attrs.length>1&&!pe(n,t)?v:_,p=[A([o?" ":_,F(u,a)])];return n.firstChild&&et(n.firstChild)||n.isSelfClosing&&fe(n.parent)||o?p.push(n.isSelfClosing?" ":""):p.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?_:k),p}function Fa(e){return e.firstChild&&et(e.firstChild)?"":It(e)}function tt(e,t,r){let{node:n}=e;return[ge(n,t),Ba(e,t,r),n.isSelfClosing?"":Fa(n)]}function ge(e,t){return e.prev&&Ze(e.prev)?"":[V(e,t),Rt(e,t)]}function V(e,t){return et(e)?It(e.parent):G(e)?me(e.prev,t):""}var li="<!doctype";function Rt(e,t){switch(e.kind){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${e.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":{if(e.value==="html"){let{filepath:n}=t;if(n&&/\.html?$/u.test(n))return li}let r=K(e);return t.originalText.slice(r,r+li.length)}case"angularIcuExpression":return"{";case"element":if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function It(e){switch(e.kind){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}function qa(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&et(e.firstChild)&&(r-=It(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&de(e.lastChild)?n+=Dt(e,t).length:fe(e)&&(n-=me(e.lastChild,t).length),t.originalText.slice(r,n)}var Mt=qa;var Ha=new Set(["if","else if","for","switch","case"]);function Va(e,t){let{node:r}=e;switch(r.kind){case"element":if(q(r,t)||r.kind==="interpolation")return;if(!r.isSelfClosing&&Lt(r,t)){let n=dr(r,t);return n?async(i,s)=>{let a=Mt(r,t),o=/^\s*$/u.test(a),c="";return o||(c=await i(hr(a),{parser:n,__embeddedInHtml:!0}),o=c===""),[V(r,t),C(tt(e,t,s)),o?"":v,c,o?"":v,Je(r,t),H(r,t)]}:void 0}break;case"text":if(q(r.parent,t)){let n=dr(r.parent,t);if(n)return async i=>{let s=n==="markdown"?x.dedentString(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,a={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let o="script",{attrMap:c}=r.parent;c&&(c.type==="module"||(c.type==="text/babel"||c.type==="text/jsx")&&c["data-type"]==="module")&&(o="module"),a.__babelSourceType=o}return[Y,V(r,t),await i(s,a),H(r,t)]}}else if(r.parent.kind==="interpolation")return async n=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?i.parser="__ng_interpolation":t.parser==="vue"?i.parser=W(e,t)?"__vue_ts_expression":"__vue_expression":i.parser="__js_expression",[A([_,await n(r.value,i)]),r.parent.next&&G(r.parent.next)?" ":_]};break;case"attribute":return oi(e,t);case"angularControlFlowBlockParameters":return Ha.has(e.parent.name)?hn:void 0;case"angularLetDeclarationInitializer":return n=>y(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}var ui=Va;var rt=null;function nt(e){if(rt!==null&&typeof rt.property){let t=rt;return rt=nt.prototype=null,t}return rt=nt.prototype=e??Object.create(null),new nt}var Ua=10;for(let e=0;e<=Ua;e++)nt();function Cr(e){return nt(e)}function Wa(e,t="type"){Cr(e);function r(n){let i=n[t],s=e[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return s}return r}var pi=Wa;var Ga={root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},hi=Ga;var $a=pi(hi,"kind"),mi=$a;var fi="format";var di=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,gi=/^\s*<!--\s*@(?:format|prettier)\s*-->/u;var _i=e=>gi.test(e),Si=e=>di.test(e),Ei=e=>`<!-- @${fi} -->
${e}`;var Ci=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 vi(e){let t=ee(e);return e.kind==="element"&&!e.endSourceSpan&&De(e.children)?Math.max(t,vi(B(0,e.children,-1))):t}function it(e,t,r){let n=e.node;if(ue(n)){let i=vi(n);return[V(n,t),L(x.trimEnd(t.originalText.slice(K(n)+(n.prev&&Ze(n.prev)?Rt(n).length:0),i-(n.next&&G(n.next)?me(n,t).length:0)))),H(n,t)]}return r()}function Bt(e,t){return O(e)&&O(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?xt(t)?v:_:"":xt(t)?v:k:Ze(e)&&(ue(t)||t.firstChild||t.isSelfClosing||t.kind==="element"&&t.attrs.length>0)||e.kind==="element"&&e.isSelfClosing&&G(t)?"":!t.isLeadingSpaceSensitive||xt(t)||G(t)&&e.lastChild&&de(e.lastChild)&&e.lastChild.lastChild&&de(e.lastChild.lastChild)?v:t.hasLeadingSpaces?_:k}function Re(e,t,r){let{node:n}=e;if(fr(n))return[Y,...e.map(()=>{let s=e.node,a=s.prev?Bt(s.prev,s):"";return[a?[a,je(s.prev)?v:""]:"",it(e,t,r)]},"children")];let i=n.children.map(()=>Symbol(""));return e.map(({node:s,index:a})=>{if(O(s)){if(s.prev&&O(s.prev)){let m=Bt(s.prev,s);if(m)return je(s.prev)?[v,v,it(e,t,r)]:[m,it(e,t,r)]}return it(e,t,r)}let o=[],c=[],u=[],p=[],d=s.prev?Bt(s.prev,s):"",S=s.next?Bt(s,s.next):"";return d&&(je(s.prev)?o.push(v,v):d===v?o.push(v):O(s.prev)?c.push(d):c.push(X("",k,{groupId:i[a-1]}))),S&&(je(s)?O(s.next)&&p.push(v,v):S===v?O(s.next)&&p.push(v):u.push(S)),[...o,C([...c,C([it(e,t,r),...u],{id:i[a]})]),...p]},"children")}function Ti(e,t,r){let{node:n}=e,i=[];za(e)&&i.push("} "),i.push("@",n.name),n.parameters&&i.push(" (",C(r("parameters")),")"),i.push(" {");let s=bi(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,i.push(A([v,Re(e,t,r)])),s&&i.push(v,"}")):s&&i.push("}"),C(i,{shouldBreak:!0})}function bi(e){return!(e.next?.kind==="angularControlFlowBlock"&&Ci.get(e.name)?.has(e.next.name))}function za(e){let{previous:t}=e;return t?.kind==="angularControlFlowBlock"&&!ue(t)&&!bi(t)}function wi(e,t,r){return[A([k,F([";",_],e.map(r,"children"))]),k]}function ki(e,t,r){let{node:n}=e;return[ge(n,t),C([n.switchValue.trim(),", ",n.type,n.cases.length>0?[",",A([_,F(_,e.map(r,"cases"))])]:"",k]),he(n,t)]}function yi(e,t,r){let{node:n}=e;return[n.value," {",C([A([k,e.map(({node:i,isLast:s})=>{let a=[r()];return i.kind==="text"&&(i.hasLeadingSpaces&&a.unshift(_),i.hasTrailingSpaces&&!s&&a.push(_)),a},"expression")]),k]),"}"]}function Ai(e,t,r){let{node:n}=e;if(At(n,t))return[V(n,t),C(tt(e,t,r)),L(Mt(n,t)),...Je(n,t),H(n,t)];let i=n.children.length===1&&(n.firstChild.kind==="interpolation"||n.firstChild.kind==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),a=p=>C([C(tt(e,t,r),{id:s}),p,Je(n,t)]),o=p=>i?an(p,{groupId:s}):(q(n,t)||Qe(n,t))&&n.parent.kind==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:A(p),c=()=>i?X(k,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?sn(k):k,u=()=>(n.next?G(n.next):fe(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":i?X(k,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.kind==="comment"||n.lastChild.kind==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":k;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([An(n)?Y:"",o([c(),Re(e,t,r)]),u()])}var R=(function(e){return e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA",e})({});function st(e,t=!0){if(e[0]!=":")return[null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function vr(e){return st(e)[1]==="ng-container"}function Tr(e){return st(e)[1]==="ng-content"}function Ie(e){return e===null?null:st(e)[0]}function _e(e,t){return e?`:${e}:${t}`:t}var br={name:"custom-elements"},wr={name:"no-errors-schema"},Se=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})({});var Ya=/-+([a-z0-9])/g;function xi(e){return e.replace(Ya,(...t)=>t[1].toUpperCase())}var qt;function kr(){return qt||(qt={},Ft(Se.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ft(Se.STYLE,["*|style"]),Ft(Se.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"]),Ft(Se.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),qt}function Ft(e,t){for(let r of t)qt[r.toLowerCase()]=e}var Ni=class{};var Xa="boolean",ja="number",Ka="string",Qa="object",Ja=["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,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,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","selectedcontent^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","search^[HTMLELement]|","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,c