n8n-editor-ui
Version:
Workflow Editor UI for n8n
1 lines • 952 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./chunk-legacy-TXBRODOR.js","./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./date-picker-legacy-uAA3gY1d.js","./users.store-legacy-OKuN0qAC.js","./dialog-legacy-2rrTvc09.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./useDebounce-legacy-CT3oYGrC.js","./RunData-legacy-5Sfz7IzF.js","./NDVEmptyState-legacy-CfqV96iU.js","./exports-legacy-BsKX_nf9.js","./externalSecrets.ee.store-legacy-C6uyA9v4.js","./uniqBy-legacy-DmwIYJPs.js","./useCanvasOperations-legacy-DHjpE9Af.js","./VueMarkdown-legacy-CWoKVTxo.js","./nodeTransforms-legacy-CEnqyD1g.js","./useQuickConnect-legacy-Joyt3P8m.js","./CredentialIcon-legacy-W6FyX5zO.js","./comlink-legacy-DWRhlxf2.js","./useDynamicCredentials-legacy-DYuGI0-p.js","./RunDataHtml-legacy-DYuZnk8K.js","./NodeIcon-legacy-B4uktMo3.js","./VirtualSchema-legacy-j9JfcIEe.js","./useCalloutHelpers-legacy-vHYCBchw.js","./useRunWorkflow-legacy-D--lDsti.js","./useInjectWorkflowId-legacy-Bqd7CF__.js","./vue-legacy-BRu5yuNI.js"],(function(e,t){var r,n,a,o,i,s,l,u,c,d,p,m,f,h,v,g,O,y,b,_,x,w,S,k,T,C,$,P,Q,E,q,V,R,I,N,W,A,D,j,z,B,M,X,L,U,Y,F,G,Z,H,K,J,ee,te,re,ne,ae,oe,ie,se,le,ue,ce,de,pe,me,fe,he,ve,ge,Oe,ye,be,_e,xe,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yw,bw;function _w(e){if("string"==typeof e)return Ss;if(Array.isArray(e))return ks;if(!e)return;let{type:t}=e;return Ds.has(t)?t:void 0}function xw(e){return Ls(e),{type:Cs,contents:e}}function ww(e,t){return Ls(t),{type:$s,contents:t,n:e}}function Sw(e,t={}){return Ls(e),Us(t.expandedStates,!0),{type:Qs,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function kw(e){return Us(e),{type:Es,parts:e}}function Tw(e,t="",r={}){return Ls(e),""!==t&&Ls(t),{type:qs,breakContents:e,flatContents:t,groupId:r.groupId}}function Cw(e,t){Ls(e),Us(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}function $w(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let a=function(e){switch(js(e)){case ks:return t(e.map(n));case Es:return t({...e,parts:e.parts.map(n)});case qs:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case Qs:{let{expandedStates:r,contents:a}=e;return r?(r=r.map(n),a=r[0]):a=n(a),t({...e,contents:a,expandedStates:r})}case $s:case Cs:case Vs:case Ws:case Rs:return t({...e,contents:n(e.contents)});case Ss:case Ts:case Ps:case Is:case Ns:case As:return t(e);default:throw new Ms(e)}}(e);return r.set(e,a),a}}function Pw(e){return $w(e,(e=>function(e){switch(js(e)){case Es:if(e.parts.every((e=>""===e)))return"";break;case Qs:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===Qs&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case $s:case Cs:case Vs:case Rs:if(!e.contents)return"";break;case qs:if(!e.flatContents&&!e.breakContents)return"";break;case ks:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof Js(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case Ss:case Ts:case Ps:case Is:case Ns:case Ws:case As:break;default:throw new Ms(e)}return e}(e)))}function Qw(e,t=Hs){return $w(e,(e=>"string"==typeof e?Cw(t,e.split("\n")):e))}function Ew(e,t){let r=!0===t||t===el?el:tl,n=r===el?tl:el,a=0,o=0;for(let i of e)i===r?a++:i===n&&o++;return a>o?n:r}function qw(e){return"front-matter"===(null==e?void 0:e.type)}function Vw(e,t){var r;if("text"===e.type||"comment"===e.type||ll(e)||"yaml"===e.type||"toml"===e.type)return null;if("attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value,"angularControlFlowBlock"===e.type&&null!=(r=e.parameters)&&r.children)for(let n of t.parameters.children)cl.has(e.name)?delete n.expression:n.expression=n.expression.trim();"angularIcuExpression"===e.type&&(t.switchValue=e.switchValue.trim()),"angularLetDeclarationInitializer"===e.type&&delete t.value}async function Rw(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return function(e){return ww({type:"root"},e)}([e.startDelimiter,e.explicitLanguage,Zs,n,n?Zs:"",e.endDelimiter])}}function Iw(e,t=!0){return[xw([Gs,e]),t?Gs:""]}function Nw(e,t){let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;return r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser)&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))}async function Ww(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(e,t)=>{a=n(e,t)});let o=await t(e,r,t);return a?Sw(o):Iw(o)}function Aw(e,t,r,n){let{node:a}=r,o=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/u.test(o)?"":Ww(o,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Nw)}function Dw(e,t){if(!t)return;let r=fl(t).toLowerCase();return e.find((({filenames:e})=>null==e?void 0:e.some((e=>e.toLowerCase()===r))))??e.find((({extensions:e})=>null==e?void 0:e.some((e=>r.endsWith(e)))))}function jw(e,t){let r=e.plugins.flatMap((e=>e.languages??[])),n=function(e,t){if(t)return e.find((({name:e})=>e.toLowerCase()===t))??e.find((({aliases:e})=>null==e?void 0:e.includes(t)))??e.find((({extensions:e})=>null==e?void 0:e.includes(`.${t}`)))}(r,t.language)??Dw(r,t.physicalFile)??Dw(r,t.file)??void t.physicalFile;return null==n?void 0:n.parsers[0]}function zw(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Bw(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||lS(e)&&e.children.some((e=>"text"!==e.type&&"interpolation"!==e.type))||hS(e,t)&&!Lw(e)&&"interpolation"!==e.type)}function Mw(e){return!("attribute"===e.type||!e.parent||!e.prev)&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.prev)}function Xw(e){return"text"===e.type||"comment"===e.type}function Lw(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||"svg:script"===e.fullName||bl(e)&&("script"===e.name||"style"===e.name))}function Uw(e){return uS(e).startsWith("pre")}function Yw(e,t){var r,n;let a=!(ll(e)||"angularControlFlowBlock"===e.type||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!lS(e.parent)&&(!e.prev&&("root"===e.parent.type||lS(e)&&e.parent||Lw(e.parent)||mS(e.parent,t)||!function(e){return!sS(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.prev&&!function(e){return!sS(e)}(e.prev.cssDisplay))));return a&&!e.prev&&null!=(n=null==(r=e.parent)?void 0:r.tagDefinition)&&n.ignoreFirstLf?"interpolation"===e.type:a}function Fw(e,t){return!(ll(e)||"angularControlFlowBlock"===e.type||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!lS(e.parent)&&(!e.next&&("root"===e.parent.type||lS(e)&&e.parent||Lw(e.parent)||mS(e.parent,t)||!function(e){return!sS(e)&&"inline-block"!==e}(e.parent.cssDisplay))||e.next&&!function(e){return!sS(e)}(e.next.cssDisplay))))}function Gw(e){return function(e){return!sS(e)&&"inline-block"!==e}(e.cssDisplay)&&!Lw(e)}function Zw(e){return ll(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function Hw(e){return Kw(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some((e=>function(e){var t;return null==(t=e.children)?void 0:t.some((e=>"text"!==e.type))}(e))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&tS(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||rS(e.lastChild))}function Kw(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Jw(e){return nS(e)||e.prev&&function(e){return nS(e)||"element"===e.type&&"br"===e.fullName||eS(e)}(e.prev)||eS(e)}function eS(e){return tS(e)&&rS(e)}function tS(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function rS(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function nS(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function aS(e){return e.lastChild?aS(e.lastChild):e}function oS(e){if(e)switch(e){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(e.endsWith("json")||e.endsWith("importmap")||"speculationrules"===e)return"json"}}function iS(e,t){return function(e,t){let{name:r,attrMap:n}=e;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:o}=e.attrMap;return o||a?hl(t,{language:o})??oS(a):"babel"}(e,t)??function(e,t){if("style"!==e.name)return;let{lang:r}=e.attrMap;return r?hl(t,{language:r}):"css"}(e,t)??function(e,t){if(!hS(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return hl(t,{language:a})??oS(n)}(e,t)}function sS(e){return"block"===e||"list-item"===e||e.startsWith("table")}function lS(e){return uS(e).startsWith("pre")}function uS(e){return"element"===e.type&&(!e.namespace||bl(e))&&yl[e.name]||Ol}function cS(e,t=function(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;let e=ol.getLeadingWhitespaceCount(r);if(0===e)return 0;r.length!==e&&e<t&&(t=e)}return t===Number.POSITIVE_INFINITY?0:t}(e)){return 0===t?e:e.split("\n").map((e=>e.slice(t))).join("\n")}function dS(e){return ws(!1,ws(!1,e,"'","'"),""",'"')}function pS(e){return dS(e.value)}function mS(e,t){return fS(e,t)&&!Sl.has(e.fullName)}function fS(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function hS(e,t){return fS(e,t)&&(mS(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function vS(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?Qw(t):Qw(cS(xl(t)),Zs):Cw(Fs,ol.split(t))}function gS(e,t){return fS(e,t)&&"script"===e.name}function OS({parser:e}){return(t,r,n)=>Ww(pS(n.node),t,{parser:e},Nw)}function yS(e,t){if("angular"!==t.parser)return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Tl;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Cl;if(n.startsWith("*"))return $l;let a=pS(r);return/^i18n(?:-.+)?$/u.test(n)?()=>Iw(kw(vS(r,a.trim())),!a.includes("@@")):kl.test(a)?e=>async function(e,t){let r=[];for(let[n,a]of e.split(kl).entries())if(n%2==0)r.push(Qw(a));else try{r.push(Sw(["{{",xw([Fs,await Ww(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),Fs,"}}"]))}catch{r.push("{{",Qw(a),"}}")}return r}(a,e):void 0}function bS(e,t){let{node:r}=e,n=pS(r);if("class"===r.fullName&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}function _S(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}function xS(e){let t,r,n,a,o,i,s=e.length,l=0;function u(t){let r,n=t.exec(e.substring(l));if(n)return[r]=n,l+=r.length,r}let c=[];for(;;){if(u(ql),l>=s){if(0===c.length)throw new Error("Must contain one or more image candidate strings.");return c}i=l,t=u(Vl),r=[],","===t.slice(-1)?(t=t.replace(Rl,""),p()):d()}function d(){for(u(El),n="",a="in descriptor";;){if(o=e.charAt(l),"in descriptor"===a)if(_S(o))n&&(r.push(n),n="",a="after descriptor");else{if(","===o)return l+=1,n&&r.push(n),void p();if("("===o)n+=o,a="in parens";else{if(""===o)return n&&r.push(n),void p();n+=o}}else if("in parens"===a)if(")"===o)n+=o,a="in descriptor";else{if(""===o)return r.push(n),void p();n+=o}else if("after descriptor"===a&&!_S(o)){if(""===o)return void p();a="in descriptor",l-=1}l+=1}}function p(){let n,a,o,s,l,u,d,p,m,f=!1,h={};for(s=0;s<r.length;s++)l=r[s],u=l[l.length-1],d=l.substring(0,l.length-1),p=parseInt(d,10),m=parseFloat(d),Il.test(d)&&"w"===u?((n||a)&&(f=!0),0===p?f=!0:n=p):Nl.test(d)&&"x"===u?((n||a||o)&&(f=!0),m<0?f=!0:a=m):Il.test(d)&&"h"===u?((o||a)&&(f=!0),0===p?f=!0:o=p):f=!0;if(f)throw new Error(`Invalid srcset descriptor found in "${e}" at "${l}".`);h.source={value:t,startOffset:i},n&&(h.width={value:n}),a&&(h.density={value:a}),o&&(h.height={value:o}),c.push(h)}}function wS(e){if("srcset"===e.node.fullName&&("img"===e.parent.fullName||"source"===e.parent.fullName))return()=>function(e){let t=Wl(e),r=Dl.filter((e=>t.some((t=>Object.prototype.hasOwnProperty.call(t,e)))));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,a=Al[n],o=t.map((e=>e.source.value)),i=Math.max(...o.map((e=>e.length))),s=t.map((e=>e[n]?String(e[n].value):"")),l=s.map((e=>{let t=e.indexOf(".");return-1===t?e.length:t})),u=Math.max(...l);return Iw(Cw([",",Fs],o.map(((e,t)=>{let r=[e],n=s[t];if(n){let o=i-e.length+1,s=u-l[t],c=" ".repeat(o+s);r.push(Tw(c," "),n+a)}return r}))))}(pS(e.node))}function SS(e,t){let{node:r}=e,n=pS(e.node).trim();if("style"===r.fullName&&!t.parentParser&&!n.includes("{{"))return async e=>Iw(await e(n,{parser:"css",__isHTMLStyleAttribute:!0}))}function kS(e,t){let{root:r}=e;return zl.has(r)||zl.set(r,r.children.some((e=>gS(e,t)&&["ts","typescript"].includes(e.attrMap.lang)))),zl.get(r)}function TS(e,t,r){let{node:n}=r;return Ww(`type T<${pS(n)}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Nw)}async function CS(e,t,r,n){let{left:a,operator:o,right:i}=function(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,a=e.match(t);if(!a)return;let o={};if(o.for=a[3].trim(),!o.for)return;let i=ws(!1,a[1].trim(),n,""),s=i.match(r);s?(o.alias=i.replace(r,""),o.iterator1=s[1].trim(),s[2]&&(o.iterator2=s[2].trim())):o.alias=i;let l=[o.alias,o.iterator1,o.iterator2];return l.some(((e,t)=>!e&&(0===t||l.slice(t+1).some(Boolean))))?void 0:{left:l.filter(Boolean).join(","),operator:a[2],right:o.for}}(pS(r.node)),s=Bl(r,n);return[Sw(await Ww(`function _(${a}) {}`,e,{parser:s?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",o," ",await Ww(i,e,{parser:s?"__ts_expression":"__js_expression"})]}function $S(e,t){if("vue"!==t.parser)return;let{node:r}=e,n=r.fullName;if("v-for"===n)return CS;if("generic"===n&&gS(r.parent,t))return TS;let a=pS(r),o=Bl(e,t);return function(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}(r)||function(e,t){let r=e.parent;if(!fS(r,t))return!1;let n=r.fullName,a=e.fullName;return"script"===n&&"setup"===a||"style"===n&&"vars"===a}(r,t)?e=>function(e,t,{parseWithTs:r}){return Ww(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}(a,e,{parseWithTs:o}):n.startsWith("@")||n.startsWith("v-on:")?e=>function(e,t,{parseWithTs:r}){return function(e){let t=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u.test(t)||/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu.test(t)}(e)?PS(e,t,{parseWithTs:r}):Ww(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Nw)}(a,e,{parseWithTs:o}):n.startsWith(":")||n.startsWith("v-bind:")?e=>function(e,t,{parseWithTs:r}){return Ww(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},Nw)}(a,e,{parseWithTs:o}):n.startsWith("v-")?e=>PS(a,e,{parseWithTs:o}):void 0}function PS(e,t,{parseWithTs:r}){return Ww(e,t,{parser:r?"__ts_expression":"__js_expression"},Nw)}function QS(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||"lwc"===t.parser&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let r of[jl,SS,Ql,Ml,Pl]){let n=r(e,t);if(n)return ES(n)}}}function ES(e){return async(t,r,n,a)=>{let o=await e(t,r,n,a);if(o)return o=$w(o,(e=>"string"==typeof e?ws(!1,e,'"',"""):e)),[n.node.rawName,'="',Sw(o),'"']}}function qS(e){return Array.isArray(e)&&e.length>0}function VS(e){return e.sourceSpan.start.offset}function RS(e){return e.sourceSpan.end.offset}function IS(e,t){return[e.isSelfClosing?"":NS(e,t),WS(e,t)]}function NS(e,t){return e.lastChild&&LS(e.lastChild)?"":[AS(e,t),jS(e,t)]}function WS(e,t){return(e.next?MS(e.next):XS(e.parent))?"":[zS(e,t),DS(e,t)]}function AS(e,t){return XS(e)?zS(e.lastChild,t):""}function DS(e,t){return LS(e)?jS(e.parent,t):US(e)?JS(e.next):""}function jS(e,t){if(Ul(!e.isSelfClosing),BS(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return`</${e.rawName}`}}function zS(e,t){if(BS(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]--\x3e";case"ieConditionalStartComment":return"]>\x3c!--\x3e";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function BS(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Mw(e)||Bw(e.parent,t))}function MS(e){return e.prev&&"docType"!==e.prev.type&&"angularControlFlowBlock"!==e.type&&!Xw(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function XS(e){var t;return(null==(t=e.lastChild)?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Xw(aS(e.lastChild))&&!lS(e)}function LS(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Xw(aS(e))}function US(e){return e.next&&!Xw(e.next)&&Xw(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function YS(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function FS(e,t,r){var n;let{node:a}=e;if(!Yl(a.attrs))return a.isSelfClosing?" ":"";let o="comment"===(null==(n=a.prev)?void 0:n.type)&&function(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return!!t&&(!t[1]||t[1].split(/\s+/u))}(a.prev.value),i="boolean"==typeof o?()=>o:Array.isArray(o)?e=>o.includes(e.rawName):()=>!1,s=e.map((({node:e})=>i(e)?Qw(t.originalText.slice(VS(e),RS(e))):r()),"attrs"),l="element"===a.type&&"script"===a.fullName&&1===a.attrs.length&&"src"===a.attrs[0].fullName&&0===a.children.length,u=t.singleAttributePerLine&&a.attrs.length>1&&!fS(a,t)?Zs:Fs,c=[xw([l?" ":Fs,Cw(u,s)])];return a.firstChild&&YS(a.firstChild)||a.isSelfClosing&&XS(a.parent)||l?c.push(a.isSelfClosing?" ":""):c.push(t.bracketSameLine?a.isSelfClosing?" ":"":a.isSelfClosing?Fs:Gs),c}function GS(e){return e.firstChild&&YS(e.firstChild)?"":ek(e)}function ZS(e,t,r){let{node:n}=e;return[HS(n,t),FS(e,t,r),n.isSelfClosing?"":GS(n)]}function HS(e,t){return e.prev&&US(e.prev)?"":[KS(e,t),JS(e)]}function KS(e,t){return YS(e)?ek(e.parent):MS(e)?zS(e.prev,t):""}function JS(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--<!";case"interpolation":return"{{";case"docType":return"html"===e.value?"<!doctype":"<!DOCTYPE";case"angularIcuExpression":return"{";case"element":if(e.condition)return`\x3c!--[if ${e.condition}]>\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function ek(e){switch(Ul(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--<![endif]--\x3e";default:return">"}}function tk(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&YS(e.firstChild)&&(r-=ek(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&LS(e.lastChild)?n+=jS(e,t).length:XS(e)&&(n-=zS(e.lastChild,t).length),t.originalText.slice(r,n)}function rk(e,t){let{node:r}=e;switch(r.type){case"element":if(Lw(r)||"interpolation"===r.type)return;if(!r.isSelfClosing&&hS(r,t)){let n=iS(r,t);return n?async(a,o)=>{let i=Fl(r,t),s=/^\s*$/u.test(i),l="";return s||(l=await a(xl(i),{parser:n,__embeddedInHtml:!0}),s=""===l),[KS(r,t),Sw(ZS(e,t,o)),s?"":Zs,l,s?"":Zs,IS(r,t),DS(r,t)]}:void 0}break;case"text":if(Lw(r.parent)){let e=iS(r.parent,t);if(e)return async n=>{let a="markdown"===e?cS(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,o={parser:e,__embeddedInHtml:!0};if("html"===t.parser&&"babel"===e){let e="script",{attrMap:t}=r.parent;t&&("module"===t.type||"text/babel"===t.type&&"module"===t["data-type"])&&(e="module"),o.__babelSourceType=e}return[Ys,KS(r,t),await n(a,o),DS(r,t)]}}else if("interpolation"===r.parent.type)return async n=>{let a={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===t.parser?a.parser="__ng_interpolation":"vue"===t.parser?a.parser=Bl(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[xw([Fs,await n(r.value,a)]),r.parent.next&&MS(r.parent.next)?" ":Fs]};break;case"attribute":return Xl(e,t);case"front-matter":return e=>pl(r,e);case"angularControlFlowBlockParameters":return Gl.has(e.parent.name)?ml:void 0;case"angularLetDeclarationInitializer":return e=>Ww(r.value,e,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}function nk(e){if(null!==Hl&&(Hl.property,1)){let e=Hl;return Hl=nk.prototype=null,e}return Hl=nk.prototype=e??Object.create(null),new nk}function ak(e,t="type"){return function(e){nk(e)}(e),function(r){let n=r[t],a=e[n];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:r});return a}}function ok(e){return/^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(e)}function ik(e){return"\x3c!-- @format --\x3e\n\n"+e}function sk(e){let t=RS(e);return"element"===e.type&&!e.endSourceSpan&&Yl(e.children)?Math.max(t,sk(Js(!1,e.children,-1))):t}function lk(e,t,r){let n=e.node;if(Mw(n)){let e=sk(n);return[KS(n,t),Qw(ol.trimEnd(t.originalText.slice(VS(n)+(n.prev&&US(n.prev)?JS(n).length:0),e-(n.next&&MS(n.next)?zS(n,t).length:0)))),DS(n,t)]}return r()}function uk(e,t){return Xw(e)&&Xw(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Jw(t)?Zs:Fs:"":Jw(t)?Zs:Gs:US(e)&&(Mw(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&MS(t)?"":!t.isLeadingSpaceSensitive||Jw(t)||MS(t)&&e.lastChild&&LS(e.lastChild)&&e.lastChild.lastChild&&LS(e.lastChild.lastChild)?Zs:t.hasLeadingSpaces?Fs:Gs}function ck(e,t,r){let{node:n}=e;if(Kw(n))return[Ys,...e.map((e=>{let n=e.node,a=n.prev?uk(n.prev,n):"";return[a?[a,Zw(n.prev)?Zs:""]:"",lk(e,t,r)]}),"children")];let a=n.children.map((()=>Symbol("")));return e.map(((e,n)=>{let o=e.node;if(Xw(o)){if(o.prev&&Xw(o.prev)){let n=uk(o.prev,o);if(n)return Zw(o.prev)?[Zs,Zs,lk(e,t,r)]:[n,lk(e,t,r)]}return lk(e,t,r)}let i=[],s=[],l=[],u=[],c=o.prev?uk(o.prev,o):"",d=o.next?uk(o,o.next):"";return c&&(Zw(o.prev)?i.push(Zs,Zs):c===Zs?i.push(Zs):Xw(o.prev)?s.push(c):s.push(Tw("",Gs,{groupId:a[n-1]}))),d&&(Zw(o)?Xw(o.next)&&u.push(Zs,Zs):d===Zs?Xw(o.next)&&u.push(Zs):l.push(d)),[...i,Sw([...s,Sw([lk(e,t,r),...l],{id:a[n]})]),...u]}),"children")}function dk(e,t,r){let{node:n}=e,a=[];(function(e){let{previous:t}=e;return"angularControlFlowBlock"===(null==t?void 0:t.type)&&!Mw(t)&&!pk(t)})(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",Sw(r("parameters")),")"),a.push(" {");let o=pk(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(xw([Zs,ck(e,t,r)])),o&&a.push(Zs,"}")):o&&a.push("}"),Sw(a,{shouldBreak:!0})}function pk(e){var t,r;return!("angularControlFlowBlock"===(null==(t=e.next)?void 0:t.type)&&null!=(r=Jl.get(e.name))&&r.has(e.next.name))}function mk(e,t,r){let{node:n}=e;if(Bw(n,t))return[KS(n,t),Sw(ZS(e,t,r)),Qw(Fl(n,t)),...IS(n,t),DS(n,t)];let a=1===n.children.length&&("interpolation"===n.firstChild.type||"angularIcuExpression"===n.firstChild.type)&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id"),i=a=>Sw([Sw(ZS(e,t,r),{id:o}),a,IS(n,t)]);return 0===n.children.length?i(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?Fs:""):i([Hw(n)?Ys:"",(s=[a?Tw(Gs,"",{groupId:o}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?Fs:"text"===n.firstChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive?function(e){return ww(Number.NEGATIVE_INFINITY,e)}(Gs):Gs,ck(e,t,r)],a?function(e,t){return Ls(e),{type:Vs,contents:e,groupId:t.groupId,negate:t.negate}}(s,{groupId:o}):!Lw(n)&&!mS(n,t)||"root"!==n.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?xw(s):s),(n.next?MS(n.next):XS(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?Tw(Gs,"",{groupId:o}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?Fs:("comment"===n.lastChild.type||"text"===n.lastChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Gs]);var s}function fk(e){return e>=9&&e<=32||160==e}function hk(e){return 48<=e&&e<=57}function vk(e){return e>=97&&e<=122||e>=65&&e<=90}function gk(e){return 10===e||13===e}function Ok(e){return 48<=e&&e<=55}function yk(e){return 39===e||34===e||96===e}function bk(e,t){for(let r of iu)r(e,t);return e}function _k(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){let t=e.children[0];1===t.value.length?e.removeChild(t):t.value=t.value.slice(1)}}))}function xk(e){let t=e=>{var t,r;return"element"===e.type&&"ieConditionalStartComment"===(null==(t=e.prev)?void 0:t.type)&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&"ieConditionalEndComment"===(null==(r=e.firstChild)?void 0:r.type)&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset};e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let a=n.prev,o=n.firstChild;e.removeChild(a),r--;let i=new nu(a.sourceSpan.start,o.sourceSpan.end),s=new nu(i.start,n.sourceSpan.end);n.condition=a.condition,n.sourceSpan=s,n.startSourceSpan=i,n.removeChild(o)}}))}function wk(e){return function(e,t,r){e.walk((e=>{if(e.children)for(let n=0;n<e.children.length;n++){let a=e.children[n];if("text"!==a.type&&!t(a))continue;"text"!==a.type&&(a.type="text",a.value=r(a));let o=a.prev;!o||"text"!==o.type||(o.value+=a.value,o.sourceSpan=new nu(o.sourceSpan.start,a.sourceSpan.end),e.removeChild(a),n--)}}))}(e,(e=>"cdata"===e.type),(e=>`<![CDATA[${e.value}]]>`))}function Sk(e){let t=e=>{var t,r;return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!ol.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&"text"===(null==(t=e.prev)?void 0:t.type)&&"text"===(null==(r=e.next)?void 0:r.type)};e.walk((e=>{if(e.children)for(let r=0;r<e.children.length;r++){let n=e.children[r];if(!t(n))continue;let a=n.prev,o=n.next;a.value+=`<${n.rawName}>`+n.firstChild.value+`</${n.rawName}>`+o.value,a.sourceSpan=new nu(a.sourceSpan.start,o.sourceSpan.end),a.isTrailingSpaceSensitive=o.isTrailingSpaceSensitive,a.hasTrailingSpaces=o.hasTrailingSpaces,e.removeChild(n),r--,e.removeChild(o)}}))}function kk(e,t){if("html"===t.parser)return;let r=/\{\{(.+?)\}\}/su;e.walk((e=>{if(function(e){return e.children&&!Lw(e)}(e))for(let t of e.children){if("text"!==t.type)continue;let n=t.sourceSpan.start,a=null,o=t.value.split(r);for(let r=0;r<o.length;r++,n=a){let i=o[r];r%2!=0?(a=n.moveBy(i.length+4),e.insertChildBefore(t,{type:"interpolation",sourceSpan:new nu(n,a),children:0===i.length?[]:[{type:"text",value:i,sourceSpan:new nu(n.moveBy(2),a.moveBy(-2))}]})):(a=n.moveBy(i.length),i.length>0&&e.insertChildBefore(t,{type:"text",value:i,sourceSpan:new nu(n,a)}))}e.removeChild(t)}}))}function Tk(e){e.walk((e=>{if(!e.children)return;if(0===e.children.length||1===e.children.length&&"text"===e.children[0].type&&0===ol.trim(e.children[0].value).length)return e.hasDanglingSpaces=e.children.length>0,void(e.children=[]);let t=function(e){return Lw(e)||"interpolation"===e.type||Uw(e)}(e),r=Uw(e);if(!t)for(let n=0;n<e.children.length;n++){let t=e.children[n];if("text"!==t.type)continue;let{leadingWhitespace:r,text:a,trailingWhitespace:o}=wl(t.value),i=t.prev,s=t.next;a?(t.value=a,t.sourceSpan=new nu(t.sourceSpan.start.moveBy(r.length),t.sourceSpan.end.moveBy(-o.length)),r&&(i&&(i.hasTrailingSpaces=!0),t.hasLeadingSpaces=!0),o&&(t.hasTrailingSpaces=!0,s&&(s.hasLeadingSpaces=!0))):(e.removeChild(t),n--,(r||o)&&(i&&(i.hasTrailingSpaces=!0),s&&(s.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=t,e.isIndentationSensitive=r}))}function Ck(e){e.walk((e=>{e.isSelfClosing=!e.children||"element"===e.type&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)}))}function $k(e,t){e.walk((e=>{"element"===e.type&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))}))}function Pk(e,t){e.walk((e=>{e.cssDisplay=function(e,t){var r;if(fS(e,t))return"block";if("comment"===(null==(r=e.prev)?void 0:r.type)){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}(e,(e=>"svg:foreignObject"===e.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||bl(e))&&gl[e.name]||vl}}(e,t)}))}function Qk(e,t){e.walk((e=>{let{children:r}=e;if(r){if(0===r.length)return void(e.isDanglingSpaceSensitive=Gw(e));for(let e of r)e.isLeadingSpaceSensitive=Yw(e,t),e.isTrailingSpaceSensitive=Fw(e,t);for(let e=0;e<r.length;e++){let t=r[e];t.isLeadingSpaceSensitive=(0===e||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===r.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}}))}function Ek(e,t,r){let{node:n}=e;switch(n.type){case"front-matter":return Qw(n.raw);case"root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[Sw(ck(e,t,r)),Zs];case"element":case"ieConditionalComment":return mk(e,t,r);case"angularControlFlowBlock":return dk(e,t,r);case"angularControlFlowBlockParameters":return function(e,t,r){return[xw([Gs,Cw([";",Fs],e.map(r,"children"))]),Gs]}(e,0,r);case"angularControlFlowBlockParameter":return ol.trim(n.expression);case"angularLetDeclaration":return Sw(["@let ",Sw([n.id," =",Sw(xw([Fs,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return function(e,t,r){let{node:n}=e;return[HS(n,t),Sw([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",xw([Fs,Cw(Fs,e.map(r,"cases"))])]:"",Gs]),WS(n,t)]}(e,t,r);case"angularIcuCase":return function(e,t,r){let{node:n}=e;return[n.value," {",Sw([xw([Gs,e.map((({node:e})=>"text"!==e.type||ol.trim(e.value)?r():""),"expression")]),Gs]),"}"]}(e,0,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[HS(n),WS(n)];case"interpolation":return[HS(n,t),...e.map(r,"children"),WS(n,t)];case"text":{if("interpolation"===n.parent.type){let e=/\n[^\S\n]*$/u,t=e.test(n.value);return[Qw(t?n.value.replace(e,""):n.value),t?Zs:""]}let e=Pw([KS(n,t),...vS(n),DS(n,t)]);return Array.isArray(e)?kw(e):e}case"docType":return[Sw([HS(n,t)," ",ws(!1,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),WS(n,t)];case"comment":return[KS(n,t),Qw(t.originalText.slice(VS(n),RS(n))),DS(n,t)];case"attribute":{if(null===n.value)return n.rawName;let e=dS(n.value),t=rl(e,'"');return[n.rawName,"=",t,Qw('"'===t?ws(!1,e,'"',"""):ws(!1,e,"'","'")),t]}default:throw new sl(n,"HTML")}}function qk(e,t=!0){if(":"!=e[0])return[null,e];let r=e.indexOf(":",1);if(-1===r){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,r),e.slice(r+1)]}function Vk(e){return"ng-container"===qk(e)[1]}function Rk(e){return"ng-content"===qk(e)[1]}function Ik(e){return null===e?null:qk(e)[0]}function Nk(e,t){return e?`:${e}:${t}`:t}function Wk(){return _u||(_u={},Ak(Ou.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Ak(Ou.STYLE,["*|style"]),Ak(Ou.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"]),Ak(Ou.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"])),_u}function Ak(e,t){for(let r of t)_u[r.toLowerCase()]=e}function Dk(e){return Pu||($u=new Cu({canSelfClose:!0}),Pu=Object.assign(Object.create(null),{base:new Cu({isVoid:!0}),meta:new Cu({isVoid:!0}),area:new Cu({isVoid:!0}),embed:new Cu({isVoid:!0}),link:new Cu({isVoid:!0}),img:new Cu({isVoid:!0}),input:new Cu({isVoid:!0}),param:new Cu({isVoid:!0}),hr:new Cu({isVoid:!0}),br:new Cu({isVoid:!0}),source:new Cu({isVoid:!0}),track:new Cu({isVoid:!0}),wbr:new Cu({isVoid:!0}),p:new Cu({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Cu({closedByChildren:["tbody","tfoot"]}),tbody:new Cu({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Cu({closedByChildren:["tbody"],closedByParent:!0}),tr:new Cu({closedByChildren:["tr"],closedByParent:!0}),td:new Cu({closedByChildren:["td","th"],closedByParent:!0}),th:new Cu({closedByChildren:["td","th"],closedByParent:!0}),col:new Cu({isVoid:!0}),svg:new Cu({implicitNamespacePrefix:"svg"}),foreignObject:new Cu({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new Cu({implicitNamespacePrefix:"math"}),li:new Cu({closedByChildren:["li"],closedByParent:!0}),dt:new Cu({closedByChildren:["dt","dd"]}),dd:new Cu({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Cu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Cu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Cu({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Cu({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Cu({closedByChildren:["optgroup"],closedByParent:!0}),option:new Cu({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Cu({ignoreFirstLf:!0}),listing:new Cu({ignoreFirstLf:!0}),style:new Cu({contentType:bu.RAW_TEXT}),script:new Cu({contentType:bu.RAW_TEXT}),title:new Cu({contentType:{default:bu.ESCAPABLE_RAW_TEXT,svg:bu.PARSABLE_DATA}}),textarea:new Cu({contentType:bu.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),(new Tu).allKnownElementNames().forEach((e=>{!Pu[e]&&null===Ik(e)&&(Pu[e]=new Cu({canSelfClose:!1}))}))),Pu[e]??$u}function jk(e,t,r=null){let n=[],a=e.visit?t=>e.visit(t,r)||t.visit(e,r):t=>t.visit(e,r);return t.forEach((e=>{let t=a(e);t&&n.push(t)})),n}function zk(e){return`Unexpected character "${0===e?"EOF":String.fromCharCode(e)}"`}function Bk(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function Mk(e){return!fk(e)||0===e}function Xk(e){return fk(e)||62===e||60===e||47===e||39===e||34===e||61===e||0===e}function Lk(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Uk(e){return 59===e||0===e||!function(e){return e>=97&&e<=102||e>=65&&e<=70||hk(e)}(e)}function Yk(e){return 59===e||0===e||!vk(e)}function Fk(e){return e>=97&&e<=122?e-97+65:e}function Gk(e){return vk(e)||hk(e)||95===e}function Zk(e){return 59!==e&&Mk(e)}function Hk(e,t){return e.length>0&&e[e.length-1]===t}function Kk(e,t){return void 0!==Mu[t]?Mu[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}function Jk(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:a=!1,getTagContentType:o,tokenizeAngularBlocks:i=!1,tokenizeAngularLetDeclaration:s=!1}=t;return sc().parse(e,"angular-html-parser",{tokenizeExpansionForms:i,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:i,tokenizeLet:s},a,o)}function eT(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function tT(e){let t=function(e){let t=e.slice(0,uc);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",uc);if(-1===r)return;let n=e.slice(uc,r).trim(),a=e.indexOf(`\n${t}`,r),o=n;if(o||(o="+++"===t?"toml":"yaml"),-1===a&&"---"===t&&"yaml"===o&&(a=e.indexOf("\n...",r)),-1===a)return;let i=a+1+uc,s=e.charAt(i+1);if(!/\s?/u.test(s))return;let l=e.slice(0,i);return{type:"front-matter",language:o,explicitLanguage:n,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:l.slice(-uc),raw:l}}(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:ws(!1,r,/[^\n]/gu," ")+e.slice(r.length)}}function rT(e,t){let r=e.map(t);return r.some(((t,r)=>t!==e[r]))?r:e}function nT(e,t,r){let[,n,a,o]=r,i=4+n.length,s=e.sourceSpan.start.moveBy(i),l=s.moveBy(o.length),[u,c]=(()=>{try{return[!0,t(o,s).children]}catch{return[!1,[{type:"text",value:o,sourceSpan:new nu(s,l)}]]}})();return{type:"ieConditionalComment",complete:u,children:c,condition:ws(!1,a.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new nu(e.sourceSpan.start,s),endSourceSpan:new nu(l,e.sourceSpan.end)}}function aT(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:ws(!1,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function oT(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function iT(e,t,r){let{name:n,canSelfClose:a=!0,normalizeTagName:o=!1,normalizeAttributeName:i=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:l=!1,shouldParseAsRawText:u}=t,{rootNodes:c,errors:d}=Jk(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:l,getTagContentType:u?(...e)=>u(...e)?bu.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:"angular"===n||void 0,tokenizeAngularLetDeclaration:"angular"===n||void 0});if("vue"===n){if(c.some((e=>"docType"===e.type&&"html"===e.value||"element"===e.type&&"html"===e.name.toLowerCase())))return iT(e,gc,r);let t,n=()=>t??(t=Jk(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:l})),o=e=>n().rootNodes.find((({startSourceSpan:t})=>t&&t.start.offset===e.startSourceSpan.start.offset))??e;for(let[e,a]of c.entries()){let{endSourceSpan:t,startSourceSpan:i}=a;if(null===t)d=n().errors,c[e]=o(a);else if(sT(a,r)){let r=n().errors.find((e=>e.span.start.offset>i.start.offset&&e.span.start.offset<t.end.offset));r&&lT(r),c[e]=o(a)}}}d.length>0&&lT(d[0]);let p=e=>{let t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,r=e.nameSpan.toString(),n=null!==t&&r.startsWith(`${t}:`);e.name=n?r.slice(t.length+1):r,e.namespace=t,e.hasExplicitNamespace=n},m=(e,t)=>{let r=e.toLowerCase();return t(r)?r:e};return jk(new class extends Bu{visitExpansionCase(e,t){"angular"===n&&this.visitChildren(t,(t=>{t(e.expression)}))}visit(e){(e=>{switch(e.type){case"element":p(e);for(let t of e.attrs)p(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case"comment":e.value=e.sourceSpan.toString().slice(4,-3);break;case"text":e.value=e.sourceSpan.toString()}})(e),(e=>{if("element"===e.type){let t=Dk(l?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||bl(e)?e.tagDefinition=t:e.tagDefinition=Dk("")}})(e),(e=>{if("element"===e.type&&(o&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||bl(e))&&(e.name=m(e.name,(e=>vc.has(e)))),i))for(let t of e.attrs)t.namespace||(t.name=m(t.name,(t=>hc.has(e.name)&&(hc.get("*").has(t)||hc.get(e.name).has(t)))))})(e),(e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new nu(e.sourceSpan.start,e.endSourceSpan.end))})(e)}},c),c}function sT(e,t){var r;if("element"!==e.type||"template"!==e.name)return!1;let n=null==(r=e.attrs.find((e=>"lang"===e.name)))?void 0:r.value;return!n||"html"===hl(t,{language:n})}function lT(e){let{msg:t,span:{start:r,end:n}}=e;throw lc(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function uT(e,t,r={},n=!0){let{frontMatter:a,content:o}=n?cc(e):{frontMatter:null,content:e},i=new ru(e,r.filepath),s=new tu(i,0,0,0),l={type:"root",sourceSpan:new nu(s,s.moveBy(e.length)),children:iT(o,t,r)};if(a){let e=new tu(i,0,0,0);a.sourceSpan=new nu(e,e.moveBy(a.raw.length)),l.children.unshift(a)}let u=new mc(l),c=(n,a)=>{let{offset:o}=a,i=uT(ws(!1,e.slice(0,o),/[^\n\r]/gu," ")+n,t,r,!1);i.sourceSpan=new nu(a,Js(!1,i.children,-1).sourceSpan.end);let s=i.children[0];return s.length===o?i.children.shift():(s.sourceSpan=new nu(s.sourceSpan.start.moveBy(o),s.sourceSpan.end),s.value=s.value.slice(o)),i};return u.walk((e=>{if("comment"===e.type){let t=function(e,t){if(e.value)for(let{regex:r,parse:n}of fc){let a=e.value.match(r);if(a)return n(e,t,a)}return null}(e,c);t&&e.parent.replaceChild(e,t)}(function(e){if("block"===e.type){if(e.name=ws(!1,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!Yl(e.parameters))return void delete e.parameters;for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new nu(e.parameters[0].sourceSpan.start,Js(!1,e.parameters,-1).sourceSpan.end)}}})(e),function(e){"letDeclaration"===e.type&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new nu(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}(e),function(e){("plural"===e.type||"select"===e.type)&&(e.clause=e.type,e.type="angularIcuExpression"),"expansionCase"===e.type&&(e.type="angularIcuCase")}(e)})),u}function cT(e){return{parse:(t,r)=>uT(t,e,r),hasPragma:ok,astFormat:"html",locStart:VS,locEnd:RS}}function dT(e){if("string"==typeof e)return Op;if(Array.isArray(e))return yp;if(!e)return;let{type:t}=e;return Vp.has(t)?t:void 0}function pT(e){return Dp(e),{type:_p,contents:e}}function mT(e,t){return Dp(t),{type:xp,contents:t,n:e}}function fT(e,t={}){return Dp(e),jp(t.expandedStates,!0),{type:Sp,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function hT(e){return mT(-1,e)}function vT(e){return jp(e),{type:kp,parts:e}}function gT(e,t="",r={}){return Dp(e),""!==t&&Dp(t),{type:Tp,breakContents:e,flatContents:t,groupId:r.groupId}}function OT(e,t){Dp(e),jp(t);let r=[];for(let n=0;n<t.length;n++)0!==n&&r.push(e),r.push(t[n]);return r}function yT(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(e){if(r.has(e))return r.get(e);let a=function(e){switch(Rp(e)){case yp:return t(e.map(n));case kp:return t({...e,parts:e.parts.map(n)});case Tp:return t({...e,breakContents:n(e.breakContents),flatContents:n(e.flatContents)});case Sp:{let{expandedStates:r,contents:a}=e;return r?(r=r.map(n),a=r[0]):a=n(a),t({...e,contents:a,expandedStates:r})}case xp:case _p:case Cp:case Ep:case $p:return t({...e,contents:n(e.contents)});case Op:case bp:case wp:case Pp:case Qp:case qp:return t(e);default:throw new Wp(e)}}(e);return r.set(e,a),a}}function bT(e){return e.type!==Qp||e.hard?e.type===Tp?e.flatContents:e:e.soft?"":" "}function _T(e){return Array.isArray(e)&&e.length>0}function xT(e,t){let r=!0===t||t===Fp?Fp:Gp,n=r===Fp?Gp:Fp,a=0,o=0;for(let i of e)i===r?a++:i===n&&o++;return a>o?n:r}function wT(e,t,r){let n='"'===t?"'":'"';return t+gp(!1,e,/\\(.)|(["'])/gsu,((e,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a)))+t}function ST(e,t){let r=e.slice(1,-1);return Hp(r,"json"===t.parser||"jsonc"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Zp(r,t.singleQuote),!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))}function kT(e){return"front-matter"===(null==e?void 0:e.type)}function TT(e,t,r){if(tm(e)&&"yaml"===e.language&&delete t.value,"css-comment"===e.type&&"css-root"===r.type&&r.nodes.length>0&&((r.nodes[0]===e||tm(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||"css-root"===r.type&&Up(!1,r.nodes,-1)===e))return null;if("value-root"===e.type&&delete t.text,("media-query"===e.type||"media-query-list"===e.type||"media-feature-expression"===e.type)&&delete t.value,"css-rule"===e.type&&delete t.params,("media-feature"===e.type||"media-keyword"===e.type||"media-type"===e.type||"media-unknown"===e.type||"media-url"===e.type||"media-value"===e.type||"selector-attribute"===e.type||"selector-string"===e.type||"selector-class"===e.type||"selector-combinator"===e.type||"value-string"===e.type)&&e.value&&(t.value=function(e){return gp(!1,gp(!1,e,"'",'"'),/\\([^\da-f])/giu,"$1")}(e.value)),"selector-combinator"===e.type&&(t.value=gp(!1,t.value,/\s+/gu," ")),"media-feature"===e.type&&(t.value=gp(!1,t.value," ","")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerC