webhook-action/node_modules/prettier/esm/parser-html.mjs

37 lines
158 KiB
JavaScript
Raw Normal View History

2022-11-10 10:43:16 +00:00
"use strict";var T=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var X=T(($D,Vr)=>{var Oe=function(e){return e&&e.Math==Math&&e};Vr.exports=Oe(typeof globalThis=="object"&&globalThis)||Oe(typeof window=="object"&&window)||Oe(typeof self=="object"&&self)||Oe(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var ae=T((UD,Xr)=>{Xr.exports=function(e){try{return!!e()}catch{return!0}}});var De=T((GD,Hr)=>{var ms=ae();Hr.exports=!ms(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var qe=T((VD,zr)=>{var gs=ae();zr.exports=!gs(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var le=T((XD,Wr)=>{var Fs=qe(),Ie=Function.prototype.call;Wr.exports=Fs?Ie.bind(Ie):function(){return Ie.apply(Ie,arguments)}});var Jr=T(Kr=>{"use strict";var Yr={}.propertyIsEnumerable,Qr=Object.getOwnPropertyDescriptor,As=Qr&&!Yr.call({1:2},1);Kr.f=As?function(r){var t=Qr(this,r);return!!t&&t.enumerable}:Yr});var Re=T((zD,Zr)=>{Zr.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var te=T((WD,tt)=>{var et=qe(),rt=Function.prototype,vs=rt.bind,rr=rt.call,_s=et&&vs.bind(rr,rr);tt.exports=et?function(e){return e&&_s(e)}:function(e){return e&&function(){return rr.apply(e,arguments)}}});var xe=T((YD,nt)=>{var ut=te(),Ss=ut({}.toString),ys=ut("".slice);nt.exports=function(e){return ys(Ss(e),8,-1)}});var at=T((QD,st)=>{var Ts=X(),Bs=te(),bs=ae(),ws=xe(),tr=Ts.Object,Ns=Bs("".split);st.exports=bs(function(){return!tr("z").propertyIsEnumerable(0)})?function(e){return ws(e)=="String"?Ns(e,""):tr(e)}:tr});var ur=T((KD,it)=>{var Os=X(),qs=Os.TypeError;it.exports=function(e){if(e==null)throw qs("Can't call method on "+e);return e}});var Pe=T((JD,ot)=>{var Is=at(),Rs=ur();ot.exports=function(e){return Is(Rs(e))}});var ue=T((ZD,ct)=>{ct.exports=function(e){return typeof e=="function"}});var he=T((el,Dt)=>{var xs=ue();Dt.exports=function(e){return typeof e=="object"?e!==null:xs(e)}});var ve=T((rl,lt)=>{var nr=X(),Ps=ue(),ks=function(e){return Ps(e)?e:void 0};lt.exports=function(e,r){return arguments.length<2?ks(nr[e]):nr[e]&&nr[e][r]}});var sr=T((tl,ht)=>{var Ls=te();ht.exports=Ls({}.isPrototypeOf)});var ft=T((ul,pt)=>{var Ms=ve();pt.exports=Ms("navigator","userAgent")||""});var At=T((nl,Ft)=>{var gt=X(),ar=ft(),dt=gt.process,Et=gt.Deno,Ct=dt&&dt.versions||Et&&Et.version,mt=Ct&&Ct.v8,ne,ke;mt&&(ne=mt.split("."),ke=ne[0]>0&&ne[0]<4?1:+(ne[0]+ne[1]));!ke&&ar&&(ne=ar.match(/Edge\/(\d+)/),(!ne||ne[1]>=74)&&(ne=ar.match(/Chrome\/(\d+)/),ne&&(ke=+ne[1])));Ft.exports=ke});var ir=T((sl,_t)=>{var vt=At(),js=ae();_t.exports=!!Object.getOwnPropertySymbols&&!js(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})});var or=T((al,St)=>{var $s=ir();St.exports=$s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var cr=T((il,yt)=>{var Us=X(),Gs=ve(),Vs=ue(),Xs=sr(),Hs=or(),zs=Us.Object;yt.exports=Hs?function(e){return typeof e=="symbol"}:function(e){var r=Gs("Symbol");return Vs(r)&&Xs(r.prototype,zs(e))}});var Le=T((ol,Tt)=>{var Ws=X(),Ys=Ws.String;Tt.exports=function(e){try{return Ys(e)}catch{return"Object"}}});var _e=T((cl,Bt)=>{var Qs=X(),Ks=ue(),Js=Le(),Zs=Qs.TypeError;Bt.exports=function(e){if(Ks(e))return e;throw Zs(Js(e)+" is not a function")}});var Me=T((Dl,bt)=>{var ea=_e();bt.exports=function(e,r){var t=e[r];return t==null?void 0:ea(t)}});var Nt=T((ll,wt)=>{var ra=X(),Dr=le(),lr=ue(),hr=he(),ta=ra.TypeError;wt.exports=function(e,r){var t,s;if(r==="string"&&lr(t=e.toString)&&!hr(s=Dr(t,e))||lr(t=e.valueOf)&&!hr(s=Dr(t,e))||r!=="string"&&lr(t=e.toString)&&!hr(s=Dr(t,e)))return s;throw ta("Can't convert object to primitive value")}});var qt=T((hl,Ot)=>{Ot.exports=!1});var je=T((pl,Rt)=>{var It=X(),ua=Object.defineProperty;Rt.exports=function(e,r){try{ua(It,e,{value:r,configurable:!0,writable:!0})}catch{It[e]=r}return r}});var $e=T((fl,Pt)=>{var na=X(),sa=je(),xt="__core-js_shared__",aa=na[xt]||sa(xt,{});Pt.exports=aa});var pr=T((dl,Lt)=>{var ia=qt(),kt=$e(
`);return h===-1?d:d.substring(0,h)}e.stringify=b;function j(o){return typeof o=="function"&&o.hasOwnProperty("__forward_ref__")?o():o}e.resolveForwardRef=j;function R(o){return!!o&&typeof o.then=="function"}e.isPromise=R;var U=class{constructor(o){this.full=o;let d=o.split(".");this.major=d[0],this.minor=d[1],this.patch=d.slice(2).join(".")}};e.Version=U;var k=typeof window<"u"&&window,$=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,L=typeof globalThis<"u"&&globalThis,u=L||k||$;e.global=u}}),Yc=I({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";O(),Object.defineProperty(e,"__esModule",{value:!0});var r=zc(),t=Wc(),s=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function c(h){return h.replace(/\W/g,"_")}e.sanitizeIdentifier=c;var n=0;function a(h){if(!h||!h.reference)return null;let F=h.reference;if(F instanceof r.StaticSymbol)return F.name;if(F.__anonymousType)return F.__anonymousType;let q=t.stringify(F);return q.indexOf("(")>=0?(q="anonymous_".concat(n++),F.__anonymousType=q):q=c(q),q}e.identifierName=a;function f(h){let F=h.reference;return F instanceof r.StaticSymbol?F.filePath:"./".concat(t.stringify(F))}e.identifierModuleUrl=f;function D(h,F){return"View_".concat(a({reference:h}),"_").concat(F)}e.viewClassName=D;function v(h){return"RenderType_".concat(a({reference:h}))}e.rendererTypeName=v;function i(h){return"HostView_".concat(a({reference:h}))}e.hostViewClassName=i;function l(h){return"".concat(a({reference:h}),"NgFactory")}e.componentFactoryName=l;var p;(function(h){h[h.Pipe=0]="Pipe",h[h.Directive=1]="Directive",h[h.NgModule=2]="NgModule",h[h.Injectable=3]="Injectable"})(p=e.CompileSummaryKind||(e.CompileSummaryKind={}));function g(h){return h.value!=null?c(h.value):a(h.identifier)}e.tokenName=g;function C(h){return h.identifier!=null?h.identifier.reference:h.value}e.tokenReference=C;var m=class{constructor(){let{moduleUrl:h,styles:F,styleUrls:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=h||null,this.styles=R(F),this.styleUrls=R(q)}};e.CompileStylesheetMetadata=m;var B=class{constructor(h){let{encapsulation:F,template:q,templateUrl:P,htmlAst:G,styles:H,styleUrls:K,externalStylesheets:z,animations:Y,ngContentSelectors:J,interpolation:Z,isInline:_,preserveWhitespaces:E}=h;if(this.encapsulation=F,this.template=q,this.templateUrl=P,this.htmlAst=G,this.styles=R(H),this.styleUrls=R(K),this.externalStylesheets=R(z),this.animations=Y?k(Y):[],this.ngContentSelectors=J||[],Z&&Z.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Z,this.isInline=_,this.preserveWhitespaces=E}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=B;var w=class{static create(h){let{isHost:F,type:q,isComponent:P,selector:G,exportAs:H,changeDetection:K,inputs:z,outputs:Y,host:J,providers:Z,viewProviders:_,queries:E,guards:A,viewQueries:y,entryComponents:x,template:M,componentViewType:V,rendererType:W,componentFactory:Q}=h,se={},Ee={},er={};J!=null&&Object.keys(J).forEach(ee=>{let re=J[ee],ie=ee.match(s);ie===null?er[ee]=re:ie[1]!=null?Ee[ie[1]]=re:ie[2]!=null&&(se[ie[2]]=re)});let Ae={};z!=null&&z.forEach(ee=>{let re=t.splitAtColon(ee,[ee,ee]);Ae[re[0]]=re[1]});let Ne={};return Y!=null&&Y.forEach(ee=>{let re=t.splitAtColon(ee,[ee,ee]);Ne[re[0]]=re[1]}),new w({isHost:F,type:q,isComponent:!!P,selector:G,exportAs:H,changeDetection:K,inputs:Ae,outputs:Ne,hostListeners:se,hostProperties:Ee,hostAttributes:er,providers:Z,viewProviders:_,queries:E,guards:A,viewQueries:y,entryComponents:x,template:M,componentViewType:V,rendererType:W,componentFactory:Q})}constructor(h){let{isHost:F,type:q,isComponent:P,selector:G,exportAs:H,changeDetection:K,inputs:z,outputs:Y,hostListeners:J,hostProperties:Z,hostAttributes:_,providers:E,viewProviders:A,queries:y,guards:x,viewQueries:M,entryComponents:V,template:W,componentViewType:Q,rendererType:se,componentFactory:Ee}=h;this.isHost=!!
`&&++B==l)););for(m=0,B=0;m<i&&C<p.length-1&&(C++,m++,!(p[C]==`
`&&++B==l)););return{before:p.substring(g,this.offset),after:p.substring(this.offset,C+1)}}return null}};e.ParseLocation=s;var c=class{constructor(i,l){this.content=i,this.url=l}};e.ParseSourceFile=c;var n=class{constructor(i,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=i,this.end=l,this.details=p}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=n,e.EMPTY_PARSE_LOCATION=new s(new c("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var a;(function(i){i[i.WARNING=0]="WARNING",i[i.ERROR=1]="ERROR"})(a=e.ParseErrorLevel||(e.ParseErrorLevel={}));var f=class{constructor(i,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.ERROR;this.span=i,this.msg=l,this.level=p}contextualMessage(){let i=this.span.start.getContext(100,3);return i?"".concat(this.msg,' ("').concat(i.before,"[").concat(a[this.level]," ->]").concat(i.after,'")'):this.msg}toString(){let i=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(i)}};e.ParseError=f;function D(i,l){let p=t.identifierModuleUrl(l),g=p!=null?"in ".concat(i," ").concat(t.identifierName(l)," in ").concat(p):"in ".concat(i," ").concat(t.identifierName(l)),C=new c("",g);return new n(new s(C,-1,-1,-1),new s(C,-1,-1,-1))}e.typeSourceSpan=D;function v(i,l,p){let g="in ".concat(i," ").concat(l," in ").concat(p),C=new c("",g);return new n(new s(C,-1,-1,-1),new s(C,-1,-1,-1))}e.r3JitTypeSourceSpan=v}}),Qc=I({"src/utils/front-matter/parse.js"(e,r){"use strict";O();var t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function s(c){let n=c.match(t);if(!n)return{content:c};let{startDelimiter:a,language:f,value:D="",endDelimiter:v}=n.groups,i=f.trim()||"yaml";if(a==="+++"&&(i="toml"),i!=="yaml"&&a!==v)return{content:c};let[l]=n;return{frontMatter:{type:"front-matter",lang:i,value:D,startDelimiter:a,endDelimiter:v,raw:l.replace(/\n$/,"")},content:l.replace(/[^\n]/g," ")+c.slice(l.length)}}r.exports=s}}),as=I({"src/utils/get-last.js"(e,r){"use strict";O();var t=s=>s[s.length-1];r.exports=t}}),Kc=I({"src/common/parser-create-error.js"(e,r){"use strict";O();function t(s,c){let n=new SyntaxError(s+" ("+c.start.line+":"+c.start.column+")");return n.loc=c,n}r.exports=t}}),is={};ts(is,{default:()=>Jc});function Jc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Zc=Fe({"node_modules/escape-string-regexp/index.js"(){O()}}),os=I({"node_modules/semver/internal/debug.js"(e,r){O();var t=typeof be=="object"&&be.env&&be.env.NODE_DEBUG&&/\bsemver\b/i.test(be.env.NODE_DEBUG)?function(){for(var s=arguments.length,c=new Array(s),n=0;n<s;n++)c[n]=arguments[n];return console.error("SEMVER",...c)}:()=>{};r.exports=t}}),cs=I({"node_modules/semver/internal/constants.js"(e,r){O();var t="2.0.0",s=256,c=Number.MAX_SAFE_INTEGER||9007199254740991,n=16;r.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:s,MAX_SAFE_INTEGER:c,MAX_SAFE_COMPONENT_LENGTH:n}}}),eD=I({"node_modules/semver/internal/re.js"(e,r){O();var{MAX_SAFE_COMPONENT_LENGTH:t}=cs(),s=os();e=r.exports={};var c=e.re=[],n=e.src=[],a=e.t={},f=0,D=(v,i,l)=>{let p=f++;s(v,p,i),a[v]=p,n[p]=i,c[p]=new RegExp(i,l?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*"),D("NUMERICIDENTIFIERLOOSE","[0-9]+"),D("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),D("MAINVERSION","(".concat(n[a.NUMERICIDENTIFIER],")\\.(").concat(n[a.NUMERICIDENTIFIER],")\\.(").concat(n[a.NUMERICIDENTIFIER],")")),D("MAINVERSIONLOOSE","(".concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(n[a.NUMERICIDENTIFIERLOOSE],")\\.(").concat(n[a.NUMERICIDENTIFIERLOOSE],")")),D("PRERELEASEIDENTIFIER","(?:".concat(n[a.NUMERICIDENTIFIER],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),D("PRERELEASEIDENTIFIERLOOSE","(?:".concat(n[a.NUMERICIDENTIFIERLOOSE],"|").concat(n[a.NONNUMERICIDENTIFIER],")")),D("PRERELEASE","(?:-(".c
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`]))),cliCategory:c},endOfLine:{since:"1.15.0",category:D,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:t(zn||(zn=ge([`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`])))}]},filepath:{since:"1.4.0",category:v,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:a,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:v,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:a},parser:{since:"0.0.10",category:D,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:l=>typeof l=="string"||typeof l=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:D,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:l=>typeof l=="string"||typeof l=="object",cliName:"plugin",cliCategory:s},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:D,description:t(Wn||(Wn=ge([`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`]))),exception:l=>typeof l=="string"||typeof l=="object",cliName:"plugin-search-dir",cliCategory:s},printWidth:{since:"0.0.0",category:D,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:v,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(Yn||(Yn=ge([`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:c},rangeStart:{since:"1.4.0",category:v,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(Qn||(Qn=ge([`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`]))),cliCategory:c},requirePragma:{since:"1.7.0",category:v,type:"boolean",default:!1,description:t(Kn||(Kn=ge([`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`]))),cliCategory:a},tabWidth:{type:"int",category:D,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:D,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:D,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};r.exports={CATEGORY_CONFIG:s,CATEGORY_EDITOR:c,CATEGORY_FORMAT:n,CATEGORY_OTHER:a,CATEGORY_OUTPUT:f,CATEGORY_GLOBAL:D,CATEGORY_SPECIAL:v,options:i}}}),DD=I({"src/main/support.js"(e,r){"use strict";O();var t={compare:Ur(),lt:nD(),gte:sD()},s=aD(),c=iD().version,n=cD().options;function a(){let{plugins:D=[],showUnreleased:v=!1,showDeprecated:i=!1,showInternal:l=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=c.split("-",1)[0],g=D.flatMap(S=>S.languages||[]).filter(m),C=s(Object.assign({},...D.map(S=>{let{options:N}=S;return N}),n),"name").filter(S=>m(S)&&B(S)).sort((S,N)=>S.name===N.name?0:S.name<N.name?-1:1).map(w).map(S=>{S=Object.assign({},S),Array.isArray(S.default)&&(S.default=S.default.length===1?S.default[0].value:S.default.filter(m).sort((b,j)=>t.compare(j.since,b.since))[0].value),Array.isArray(S.choices)&&(S.choices=S.choices.filter(b=>m(b)&&B(b)),S.name==="parser"&&f(S,g,D));let N=Object.fromEntries(D.filter(b=>b.defaultOptions&&b.defaultOptions[S.name]!==void 0).map(b=>[b.name,b.defaultOptions[S.name]]));return Object.assign(Object.assign({},S),{},{pluginDefaults:N})});return{languages:g,options:C};function m(S){return v||!("since"in S)||S.since&&t.gte(p,S.since)}function B(S){return i||!("deprecated"in S)||S.deprecated&&t.lt(p,S.deprecated)}function w(S){if(l)return S;let{cliName:N,cliCategory:b,cliDescription:j}=S;return jc(S,Mc)}}function f(D,v,i){let l=new Set(D.choices.map(p=>p.value));for(let p of v)if(p.parsers){for(let g of p.parsers)if(!l.has(g)){l.add(g);let C=i.find(B=>B.parsers&&B.parsers[g]),m=p.name;C&&C.name&&(m+=" (plugin: ".concat(C.name,")")),D.choices.push({value:g,description:m})}}}r.exports={getSupportInfo:a}}}),lD=I({"src/utils/is-non-empty-array.js"(e,r){"use strict";O();function t(s){return Array.isArray(s)&&s.length>0}r.exports=t}});function hD(){let{onlyFirst:e=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var pD=Fe({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){O()}});function fD(e){if(typeof e!="string")throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(hD(),"")}var dD=Fe({"node_modules/strip-ansi/index.js"(){O(),pD()}});function ED(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}var CD=Fe({"node_modules/is-fullwidth-code-point/index.js"(){O()}}),mD=I({"node_modules/emoji-regex/index.js"(e,r){"use strict";O(),r.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[
`)return c-2;if(f===`
`||f==="\r"||f==="\u2028"||f==="\u2029")return c-1}else{if(f==="\r"&&s.charAt(c+1)===`
`)return c+2;if(f===`
`||f==="\r"||f==="\u2028"||f==="\u2029")return c+1}return c}r.exports=t}}),vD=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";O();var t=hs(),s=fs(),c=ps(),{skipSpaces:n}=Gr();function a(f,D){let v=null,i=D;for(;i!==v;)v=i,i=n(f,i),i=t(f,i),i=c(f,i),i=s(f,i);return i}r.exports=a}}),_D=I({"src/common/util.js"(e,r){"use strict";O();var{default:t}=(Zc(),ns(is)),s=as(),{getSupportInfo:c}=DD(),n=lD(),a=AD(),{skipWhitespace:f,skipSpaces:D,skipToLineEnd:v,skipEverythingButNewLine:i}=Gr(),l=hs(),p=ps(),g=fs(),C=vD(),m=_=>_[_.length-2];function B(_){return(E,A,y)=>{let x=y&&y.backwards;if(A===!1)return!1;let{length:M}=E,V=A;for(;V>=0&&V<M;){let W=E.charAt(V);if(_ instanceof RegExp){if(!_.test(W))return V}else if(!_.includes(W))return V;x?V--:V++}return V===-1||V===M?V:!1}}function w(_,E){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=D(_,A.backwards?E-1:E,A),x=g(_,y,A);return y!==x}function S(_,E,A){for(let y=E;y<A;++y)if(_.charAt(y)===`
`)return!0;return!1}function N(_,E,A){let y=A(E)-1;y=D(_,y,{backwards:!0}),y=g(_,y,{backwards:!0}),y=D(_,y,{backwards:!0});let x=g(_,y,{backwards:!0});return y!==x}function b(_,E){let A=null,y=E;for(;y!==A;)A=y,y=v(_,y),y=l(_,y),y=D(_,y);return y=p(_,y),y=g(_,y),y!==!1&&w(_,y)}function j(_,E,A){return b(_,A(E))}function R(_,E,A){return C(_,A(E))}function U(_,E,A){return _.charAt(R(_,E,A))}function k(_,E){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D(_,A.backwards?E-1:E,A)!==E}function $(_,E){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,y=0;for(let x=A;x<_.length;++x)_[x]===" "?y=y+E-y%E:y++;return y}function L(_,E){let A=_.lastIndexOf(`
`);return A===-1?0:$(_.slice(A+1).match(/^[\t ]*/)[0],E)}function u(_,E){let A={quote:'"',regex:/"/g,escaped:"&quot;"},y={quote:"'",regex:/'/g,escaped:"&apos;"},x=E==="'"?y:A,M=x===y?A:y,V=x;if(_.includes(x.quote)||_.includes(M.quote)){let W=(_.match(x.regex)||[]).length,Q=(_.match(M.regex)||[]).length;V=W>Q?M:x}return V}function o(_,E){let A=_.slice(1,-1),y=E.parser==="json"||E.parser==="json5"&&E.quoteProps==="preserve"&&!E.singleQuote?'"':E.__isInHtmlAttribute?"'":u(A,E.singleQuote?"'":'"').quote;return d(A,y,!(E.parser==="css"||E.parser==="less"||E.parser==="scss"||E.__embeddedInHtml))}function d(_,E,A){let y=E==='"'?"'":'"',x=/\\(.)|(["'])/gs,M=_.replace(x,(V,W,Q)=>W===y?W:Q===E?"\\"+Q:Q||(A&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(W)?W:"\\"+W));return E+M+E}function h(_){return _.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function F(_,E){let A=_.match(new RegExp("(".concat(t(E),")+"),"g"));return A===null?0:A.reduce((y,x)=>Math.max(y,x.length/E.length),0)}function q(_,E){let A=_.match(new RegExp("(".concat(t(E),")+"),"g"));if(A===null)return 0;let y=new Map,x=0;for(let M of A){let V=M.length/E.length;y.set(V,!0),V>x&&(x=V)}for(let M=1;M<x;M++)if(!y.get(M))return M;return x+1}function P(_,E){(_.comments||(_.comments=[])).push(E),E.printed=!1,E.nodeDescription=Z(_)}function G(_,E){E.leading=!0,E.trailing=!1,P(_,E)}function H(_,E,A){E.leading=!1,E.trailing=!1,A&&(E.marker=A),P(_,E)}function K(_,E){E.leading=!1,E.trailing=!0,P(_,E)}function z(_,E){let{languages:A}=c({plugins:E.plugins}),y=A.find(x=>{let{name:M}=x;return M.toLowerCase()===_})||A.find(x=>{let{aliases:M}=x;return Array.isArray(M)&&M.includes(_)})||A.find(x=>{let{extensions:M}=x;return Array.isArray(M)&&M.includes(".".concat(_))});return y&&y.parsers[0]}function Y(_){return _&&_.type==="front-matter"}function J(_){let E=new WeakMap;return function(A){return E.has(A)||E.set(A,Symbol(_)),E.get(A)}}function Z(_){let E=_.type||_.kind||"(unknown type)",A=String(_.name||_.id&&(typeof _.id=="object"?_.id.name:_.id)||_.key&&(typeof _.key=="object"?_.key.name:_.key)||_.value&&(typeof _.value=="object"?"":String(_.value))||_.operator||"");return A.length>20&&(A=A.slice(0,19)+"\u2026"),E+(A?" "+A:"")}r.exports={inferParserByLanguage:z,getStringWidth:a,getMaxContinuousCount:F,getMinNotPresentContinuousCount:q,getPenultimate:m,getLast:s,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:C,getNextNonSpaceNonCommentCharacterIndex:R,getNextNonSpaceNonCommentCharacter:U,skip:B,skipWhitespace:f,skipSpaces:D,skipToLineEnd:v,skipEverythingButNewLine:i,skipInlineComment:l,skipTrailingComment:p,skipNewline:g,isNextLineEmptyAfterIndex:b,isNextLineEmpty:j,isPreviousLineEmpty:N,hasNewline:w,hasNewlineInRange:S,hasSpaces:k,getAlignmentSize:$,getIndentSize:L,getPreferredQuote:u,printString:o,printNumber:h,makeString:d,addLeadingComment:G,addDanglingComment:H,addTrailingComment:K,isFrontMatterNode:Y,isNonEmptyArray:n,createGroupIdMapper:J}}}),SD=I({"vendors/html-tag-names.json"(e,r){r.exports={htmlTagNames:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer",
`+c.replace(/^\s*\n/,"")}r.exports={hasPragma:t,insertPragma:s}}}),OD=I({"src/language-html/ast.js"(e,r){"use strict";O();var t={attrs:!0,children:!0},s=new Set(["parent"]),c=class{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let f of new Set([...s,...Object.keys(a)]))this.setProperty(f,a[f])}setProperty(a,f){if(this[a]!==f){if(a in t&&(f=f.map(D=>this.createChild(D))),!s.has(a)){this[a]=f;return}Object.defineProperty(this,a,{value:f,enumerable:!1,configurable:!0})}}map(a){let f;for(let D in t){let v=this[D];if(v){let i=n(v,l=>l.map(a));f!==v&&(f||(f=new c({parent:this.parent})),f.setProperty(D,i))}}if(f)for(let D in this)D in t||(f[D]=this[D]);return a(f||this)}walk(a){for(let f in t){let D=this[f];if(D)for(let v=0;v<D.length;v++)D[v].walk(a)}a(this)}createChild(a){let f=a instanceof c?a.clone():new c(a);return f.setProperty("parent",this),f}insertChildBefore(a,f){this.children.splice(this.children.indexOf(a),0,this.createChild(f))}removeChild(a){this.children.splice(this.children.indexOf(a),1)}replaceChild(a,f){this.children[this.children.indexOf(a)]=this.createChild(f)}clone(){return new c(this)}get firstChild(){var a;return(a=this.children)===null||a===void 0?void 0:a[0]}get lastChild(){var a;return(a=this.children)===null||a===void 0?void 0:a[this.children.length-1]}get prev(){var a;return(a=this.parent)===null||a===void 0?void 0:a.children[this.parent.children.indexOf(this)-1]}get next(){var a;return(a=this.parent)===null||a===void 0?void 0:a.children[this.parent.children.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(a=>[a.fullName,a.value]))}};function n(a,f){let D=a.map(f);return D.some((v,i)=>v!==a[i])?D:a}r.exports={Node:c}}}),qD=I({"src/language-html/conditional-comment.js"(e,r){"use strict";O();var{ParseSourceSpan:t}=we(),s=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:n},{regex:/^\[if([^\]]*)]><!$/,parse:a},{regex:/^<!\s*\[endif]$/,parse:f}];function c(D,v){if(D.value)for(let{regex:i,parse:l}of s){let p=D.value.match(i);if(p)return l(D,v,p)}return null}function n(D,v,i){let[,l,p,g]=i,C=4+l.length,m=D.sourceSpan.start.moveBy(C),B=m.moveBy(g.length),[w,S]=(()=>{try{return[!0,v(g,m).children]}catch{let N={type:"text",value:g,sourceSpan:new t(m,B)};return[!1,[N]]}})();return{type:"ieConditionalComment",complete:w,children:S,condition:p.trim().replace(/\s+/g," "),sourceSpan:D.sourceSpan,startSourceSpan:new t(D.sourceSpan.start,m),endSourceSpan:new t(B,D.sourceSpan.end)}}function a(D,v,i){let[,l]=i;return{type:"ieConditionalStartComment",condition:l.trim().replace(/\s+/g," "),sourceSpan:D.sourceSpan}}function f(D){return{type:"ieConditionalEndComment",sourceSpan:D.sourceSpan}}r.exports={parseIeConditionalComment:c}}}),ID=I({"src/language-html/loc.js"(e,r){"use strict";O();function t(c){return c.sourceSpan.start.offset}function s(c){return c.sourceSpan.end.offset}r.exports={locStart:t,locEnd:s}}}),Ze=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){"use strict";O(),Object.defineProperty(e,"__esModule",{value:!0});var r;(function(D){D[D.RAW_TEXT=0]="RAW_TEXT",D[D.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",D[D.PARSABLE_DATA=2]="PARSABLE_DATA"})(r=e.TagContentType||(e.TagContentType={}));function t(D){if(D[0]!=":")return[null,D];let v=D.indexOf(":",1);if(v==-1)throw new Error('Unsupported format "'.concat(D,'" expecting ":namespace:name"'));return[D.slice(1,v),D.slice(v+1)]}e.splitNsName=t;function s(D){return t(D)[1]==="ng-container"}e.isNgContainer=s;function c(D){return t(D)[1]==="ng-content"}e.isNgContent=c;function n(D){return t(D)[1]==="ng-template"}e.isNgTemplate=n;function a(D){return D===null?null:t(D)[0]}e.getNsPrefix=a;function f(D,v){return D?":".concat(D,":").concat(v):v}e.mergeNsAndName=f,e.NAMED_ENTITIES={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
`)}tokenize(){for(;this._cursor.peek()!==r.$EOF;){let u=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(u):this._attemptStr("--")?this._consumeComment(u):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(u):this._consumeBogusComment(u);else if(this._attemptCharCode(r.$SLASH))this._consumeTagClose(u);else{let o=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=o,this._consumeBogusComment(u)):this._consumeTagOpen(u)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(o){this.handleError(o)}}return this._beginToken(n.EOF),this._endToken([]),new D(U(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(b(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===r.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=o,this._currentTokenType=u}_endToken(u){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new f("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(o));if(this._currentTokenType===null)throw new f("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let d=new a(this._currentTokenType,u,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(d),this._currentTokenStart=null,this._currentTokenType=null,d}_createError(u,o){this._isInExpansionForm()&&(u+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let d=new f(u,this._currentTokenType,o);return this._currentTokenStart=null,this._currentTokenType=null,new g(d)}handleError(u){if(u instanceof L&&(u=this._createError(u.msg,this._cursor.getSpan(u.cursor))),u instanceof g)this.errors.push(u.error);else throw u}_attemptCharCode(u){return this._cursor.peek()===u?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(u){return j(this._cursor.peek(),u)?(this._cursor.advance(),!0):!1}_requireCharCode(u){let o=this._cursor.clone();if(!this._attemptCharCode(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_attemptStr(u){let o=u.length;if(this._cursor.charsLeft()<o)return!1;let d=this._cursor.clone();for(let h=0;h<o;h++)if(!this._attemptCharCode(u.charCodeAt(h)))return this._cursor=d,!1;return!0}_attemptStrCaseInsensitive(u){for(let o=0;o<u.length;o++)if(!this._attemptCharCodeCaseInsensitive(u.charCodeAt(o)))return!1;return!0}_requireStr(u){let o=this._cursor.clone();if(!this._attemptStr(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_requireStrCaseInsensitive(u){let o=this._cursor.clone();if(!this._attemptStrCaseInsensitive(u))throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(o))}_attemptCharCodeUntilFn(u){for(;!u(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(u,o){let d=this._cursor.clone();if(this._attemptCharCodeUntilFn(u),this._cursor.clone().diff(d)<o)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan(d))}_attemptUntilChar(u){for(;this._cursor.peek()!==u;)this._cursor.advance()}_readChar(u){if(u&&this._cursor.peek()===r.$AMPERSAND)return this._decodeEntity();{let o=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),o}}_decodeEntity(){let u=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(r.$HASH)){let o=this._attemptCharCode(r.$x)||this._attemptCharCode(r.$X),d=this._cursor.clone();if(this._attemptCharCodeUntilFn(S),this._cursor.peek()!=r.$SEMICOLON)throw this._createError(l(this._cursor.peek()),this._cursor.getSpan()
`){let p=this._getParentElement();p!=null&&p.children.length==0&&this.getTagDefinition(p.name).ignoreFirstLf&&(l=l.substring(1))}return l}_consumeText(i){let l=this._getText(i);l.length>0&&this._addToParent(new t.Text(l,i.sourceSpan))}_closeVoidElement(){let i=this._getParentElement();i&&this.getTagDefinition(i.name).isVoid&&this._elementStack.pop()}_consumeStartTag(i){let l=i.parts[0],p=i.parts[1],g=[];for(;this._peek.type===s.TokenType.ATTR_NAME;)g.push(this._consumeAttr(this._advance()));let C=this._getElementFullName(l,p,this._getParentElement()),m=!1;if(this._peek.type===s.TokenType.TAG_OPEN_END_VOID){this._advance(),m=!0;let b=this.getTagDefinition(C);this.canSelfClose||b.canSelfClose||c.getNsPrefix(C)!==null||b.isVoid||this._errors.push(n.create(C,i.sourceSpan,'Only void and foreign elements can be self closed "'.concat(i.parts[1],'"')))}else this._peek.type===s.TokenType.TAG_OPEN_END&&(this._advance(),m=!1);let B=this._peek.sourceSpan.start,w=new r.ParseSourceSpan(i.sourceSpan.start,B),S=new r.ParseSourceSpan(i.sourceSpan.start.moveBy(1),i.sourceSpan.end),N=new t.Element(C,g,[],w,w,void 0,S);this._pushElement(N),m&&(this._popElement(C),N.endSourceSpan=w)}_pushElement(i){let l=this._getParentElement();l&&this.getTagDefinition(l.name).isClosedByChild(i.name)&&this._elementStack.pop(),this._addToParent(i),this._elementStack.push(i)}_consumeEndTag(i){let l=this.allowHtmComponentClosingTags&&i.parts.length===0?null:this._getElementFullName(i.parts[0],i.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=i.sourceSpan),l&&this.getTagDefinition(l).isVoid)this._errors.push(n.create(l,i.sourceSpan,'Void elements do not have end tags "'.concat(i.parts[1],'"')));else if(!this._popElement(l)){let p='Unexpected closing tag "'.concat(l,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this._errors.push(n.create(l,i.sourceSpan,p))}}_popElement(i){for(let l=this._elementStack.length-1;l>=0;l--){let p=this._elementStack[l];if(!i||(c.getNsPrefix(p.name)?p.name==i:p.name.toLowerCase()==i.toLowerCase()))return this._elementStack.splice(l,this._elementStack.length-l),!0;if(!this.getTagDefinition(p.name).closedByParent)return!1}return!1}_consumeAttr(i){let l=c.mergeNsAndName(i.parts[0],i.parts[1]),p=i.sourceSpan.end,g="",C,m;if(this._peek.type===s.TokenType.ATTR_QUOTE&&(m=this._advance().sourceSpan.start),this._peek.type===s.TokenType.ATTR_VALUE){let B=this._advance();g=B.parts[0],p=B.sourceSpan.end,C=B.sourceSpan}return this._peek.type===s.TokenType.ATTR_QUOTE&&(p=this._advance().sourceSpan.end,C=new r.ParseSourceSpan(m,p)),new t.Attribute(l,g,new r.ParseSourceSpan(i.sourceSpan.start,p),C,i.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let i=null;for(let l=this._elementStack.length-1;l>=0;l--){if(!c.isNgContainer(this._elementStack[l].name))return{parent:this._elementStack[l],container:i};i=this._elementStack[l]}return{parent:null,container:i}}_addToParent(i){let l=this._getParentElement();l!=null?l.children.push(i):this._rootNodes.push(i)}_insertBeforeContainer(i,l,p){if(!l)this._addToParent(p),this._elementStack.push(p);else{if(i){let g=i.children.indexOf(l);i.children[g]=p}else this._rootNodes.push(p);p.children.push(l),this._elementStack.splice(this._elementStack.indexOf(l),0,p)}}_getElementFullName(i,l,p){return i===""&&(i=this.getTagDefinition(l).implicitNamespacePrefix||"",i===""&&p!=null&&(i=c.getNsPrefix(p.name))),c.mergeNsAndName(i,l)}};function v(i,l){return i.length>0&&i[i.length-1]===l}}}),LD=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){"use strict";O(),Object.defineProperty(e,"__esModule",{value:!0});var r=Es(),t=es(),s=es();e.ParseTreeResult=s.ParseTreeResult,e.TreeError=s.TreeError;var c=class extends t.Parser{constructor(){super(r.getHtmlTagDefinition)}parse(n,a,f){let D=arguments.length>3&&argum