hugo-batsite/node_modules/prettier/esm/parser-html.mjs

37 lines
158 KiB
JavaScript
Raw Normal View History

2022-05-27 15:11:53 +00:00
"use strict";var b=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var X=b((FD,Ur)=>{var Ne=function(e){return e&&e.Math==Math&&e};Ur.exports=Ne(typeof globalThis=="object"&&globalThis)||Ne(typeof window=="object"&&window)||Ne(typeof self=="object"&&self)||Ne(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var ae=b((AD,Gr)=>{Gr.exports=function(e){try{return!!e()}catch{return!0}}});var De=b((vD,Vr)=>{var ls=ae();Vr.exports=!ls(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Oe=b((_D,Xr)=>{var ps=ae();Xr.exports=!ps(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var le=b((SD,Hr)=>{var hs=Oe(),qe=Function.prototype.call;Hr.exports=hs?qe.bind(qe):function(){return qe.apply(qe,arguments)}});var Qr=b(Yr=>{"use strict";var zr={}.propertyIsEnumerable,Wr=Object.getOwnPropertyDescriptor,fs=Wr&&!zr.call({1:2},1);Yr.f=fs?function(r){var t=Wr(this,r);return!!t&&t.enumerable}:zr});var Ie=b((TD,Kr)=>{Kr.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var te=b((bD,et)=>{var Jr=Oe(),Zr=Function.prototype,Es=Zr.bind,Ze=Zr.call,ds=Jr&&Es.bind(Ze,Ze);et.exports=Jr?function(e){return e&&ds(e)}:function(e){return e&&function(){return Ze.apply(e,arguments)}}});var Re=b((BD,tt)=>{var rt=te(),Cs=rt({}.toString),ms=rt("".slice);tt.exports=function(e){return ms(Cs(e),8,-1)}});var nt=b((wD,ut)=>{var gs=X(),Fs=te(),As=ae(),vs=Re(),er=gs.Object,_s=Fs("".split);ut.exports=As(function(){return!er("z").propertyIsEnumerable(0)})?function(e){return vs(e)=="String"?_s(e,""):er(e)}:er});var rr=b((ND,st)=>{var Ss=X(),ys=Ss.TypeError;st.exports=function(e){if(e==null)throw ys("Can't call method on "+e);return e}});var xe=b((OD,at)=>{var Ts=nt(),bs=rr();at.exports=function(e){return Ts(bs(e))}});var ue=b((qD,it)=>{it.exports=function(e){return typeof e=="function"}});var pe=b((ID,ot)=>{var Bs=ue();ot.exports=function(e){return typeof e=="object"?e!==null:Bs(e)}});var Ae=b((RD,ct)=>{var tr=X(),ws=ue(),Ns=function(e){return ws(e)?e:void 0};ct.exports=function(e,r){return arguments.length<2?Ns(tr[e]):tr[e]&&tr[e][r]}});var ur=b((xD,Dt)=>{var Os=te();Dt.exports=Os({}.isPrototypeOf)});var pt=b((PD,lt)=>{var qs=Ae();lt.exports=qs("navigator","userAgent")||""});var gt=b((kD,mt)=>{var Ct=X(),nr=pt(),ht=Ct.process,ft=Ct.Deno,Et=ht&&ht.versions||ft&&ft.version,dt=Et&&Et.v8,ne,Pe;dt&&(ne=dt.split("."),Pe=ne[0]>0&&ne[0]<4?1:+(ne[0]+ne[1]));!Pe&&nr&&(ne=nr.match(/Edge\/(\d+)/),(!ne||ne[1]>=74)&&(ne=nr.match(/Chrome\/(\d+)/),ne&&(Pe=+ne[1])));mt.exports=Pe});var sr=b((LD,At)=>{var Ft=gt(),Is=ae();At.exports=!!Object.getOwnPropertySymbols&&!Is(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ft&&Ft<41})});var ar=b((MD,vt)=>{var Rs=sr();vt.exports=Rs&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ir=b((jD,_t)=>{var xs=X(),Ps=Ae(),ks=ue(),Ls=ur(),Ms=ar(),js=xs.Object;_t.exports=Ms?function(e){return typeof e=="symbol"}:function(e){var r=Ps("Symbol");return ks(r)&&Ls(r.prototype,js(e))}});var ke=b(($D,St)=>{var $s=X(),Us=$s.String;St.exports=function(e){try{return Us(e)}catch{return"Object"}}});var ve=b((UD,yt)=>{var Gs=X(),Vs=ue(),Xs=ke(),Hs=Gs.TypeError;yt.exports=function(e){if(Vs(e))return e;throw Hs(Xs(e)+" is not a function")}});var Le=b((GD,Tt)=>{var zs=ve();Tt.exports=function(e,r){var t=e[r];return t==null?void 0:zs(t)}});var Bt=b((VD,bt)=>{var Ws=X(),or=le(),cr=ue(),Dr=pe(),Ys=Ws.TypeError;bt.exports=function(e,r){var t,a;if(r==="string"&&cr(t=e.toString)&&!Dr(a=or(t,e))||cr(t=e.valueOf)&&!Dr(a=or(t,e))||r!=="string"&&cr(t=e.toString)&&!Dr(a=or(t,e)))return a;throw Ys("Can't convert object to primitive value")}});var Nt=b((XD,wt)=>{wt.exports=!1});var Me=b((HD,qt)=>{var Ot=X(),Qs=Object.defineProperty;qt.exports=function(e,r){try{Qs(Ot,e,{value:r,configurable:!0,writable:!0})}catch{Ot[e]=r}return r}});var je=b((zD,Rt)=>{var Ks=X(),Js=Me(),It="__core-js_shared__",Zs=Ks[It]||Js(It,{});Rt.exports=Zs});var lr=b((WD,Pt)=>{var ea=Nt(),xt=je(
`);return h===-1?d:d.substring(0,h)}e.stringify=m;function q(i){return typeof i=="function"&&i.hasOwnProperty("__forward_ref__")?i():i}e.resolveForwardRef=q;function w(i){return!!i&&typeof i.then=="function"}e.isPromise=w;var M=class{constructor(i){this.full=i;let d=i.split(".");this.major=d[0],this.minor=d[1],this.patch=d.slice(2).join(".")}};e.Version=M;var P=typeof window<"u"&&window,U=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,j=typeof globalThis<"u"&&globalThis,u=j||P||U;e.global=u}}),Lc=I({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(e){"use strict";x(),Object.defineProperty(e,"__esModule",{value:!0});var r=Pc(),t=kc(),a=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(h){return h.replace(/\W/g,"_")}e.sanitizeIdentifier=D;var n=0;function c(h){if(!h||!h.reference)return null;let v=h.reference;if(v instanceof r.StaticSymbol)return v.name;if(v.__anonymousType)return v.__anonymousType;let R=t.stringify(v);return R.indexOf("(")>=0?(R="anonymous_".concat(n++),v.__anonymousType=R):R=D(R),R}e.identifierName=c;function E(h){let v=h.reference;return v instanceof r.StaticSymbol?v.filePath:"./".concat(t.stringify(v))}e.identifierModuleUrl=E;function p(h,v){return"View_".concat(c({reference:h}),"_").concat(v)}e.viewClassName=p;function A(h){return"RenderType_".concat(c({reference:h}))}e.rendererTypeName=A;function s(h){return"HostView_".concat(c({reference:h}))}e.hostViewClassName=s;function o(h){return"".concat(c({reference:h}),"NgFactory")}e.componentFactoryName=o;var l;(function(h){h[h.Pipe=0]="Pipe",h[h.Directive=1]="Directive",h[h.NgModule=2]="NgModule",h[h.Injectable=3]="Injectable"})(l=e.CompileSummaryKind||(e.CompileSummaryKind={}));function g(h){return h.value!=null?D(h.value):c(h.identifier)}e.tokenName=g;function f(h){return h.identifier!=null?h.identifier.reference:h.value}e.tokenReference=f;var F=class{constructor(){let{moduleUrl:h,styles:v,styleUrls:R}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=h||null,this.styles=w(v),this.styleUrls=w(R)}};e.CompileStylesheetMetadata=F;var B=class{constructor(h){let{encapsulation:v,template:R,templateUrl:L,htmlAst:G,styles:H,styleUrls:K,externalStylesheets:z,animations:Y,ngContentSelectors:J,interpolation:Z,isInline:S,preserveWhitespaces:C}=h;if(this.encapsulation=v,this.template=R,this.templateUrl=L,this.htmlAst=G,this.styles=w(H),this.styleUrls=w(K),this.externalStylesheets=w(z),this.animations=Y?P(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=S,this.preserveWhitespaces=C}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};e.CompileTemplateMetadata=B;var N=class{static create(h){let{isHost:v,type:R,isComponent:L,selector:G,exportAs:H,changeDetection:K,inputs:z,outputs:Y,host:J,providers:Z,viewProviders:S,queries:C,guards:_,viewQueries:T,entryComponents:k,template:$,componentViewType:V,rendererType:W,componentFactory:Q}=h,se={},de={},Je={};J!=null&&Object.keys(J).forEach(ee=>{let re=J[ee],ie=ee.match(a);ie===null?Je[ee]=re:ie[1]!=null?de[ie[1]]=re:ie[2]!=null&&(se[ie[2]]=re)});let Fe={};z!=null&&z.forEach(ee=>{let re=t.splitAtColon(ee,[ee,ee]);Fe[re[0]]=re[1]});let we={};return Y!=null&&Y.forEach(ee=>{let re=t.splitAtColon(ee,[ee,ee]);we[re[0]]=re[1]}),new N({isHost:v,type:R,isComponent:!!L,selector:G,exportAs:H,changeDetection:K,inputs:Fe,outputs:we,hostListeners:se,hostProperties:de,hostAttributes:Je,providers:Z,viewProviders:S,queries:C,guards:_,viewQueries:T,entryComponents:k,template:$,componentViewType:V,rendererType:W,componentFactory:Q})}constructor(h){let{isHost:v,type:R,isComponent:L,selector:G,exportAs:H,changeDetection:K,inputs:z,outputs:Y,hostListeners:J,hostProperties:Z,hostAttributes:S,providers:C,viewProviders:_,queries:T,guards:k,viewQueries:$,entryComponents:V,template:W,componentViewType:Q,rendererType:se,componentFactory:de}=h;this.isHost=!!
`&&++B==o)););for(F=0,B=0;F<s&&f<l.length-1&&(f++,F++,!(l[f]==`
`&&++B==o)););return{before:l.substring(g,this.offset),after:l.substring(this.offset,f+1)}}return null}};e.ParseLocation=a;var D=class{constructor(s,o){this.content=s,this.url=o}};e.ParseSourceFile=D;var n=class{constructor(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=s,this.end=o,this.details=l}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};e.ParseSourceSpan=n,e.EMPTY_PARSE_LOCATION=new a(new D("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new n(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION);var c;(function(s){s[s.WARNING=0]="WARNING",s[s.ERROR=1]="ERROR"})(c=e.ParseErrorLevel||(e.ParseErrorLevel={}));var E=class{constructor(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.ERROR;this.span=s,this.msg=o,this.level=l}contextualMessage(){let s=this.span.start.getContext(100,3);return s?"".concat(this.msg,' ("').concat(s.before,"[").concat(c[this.level]," ->]").concat(s.after,'")'):this.msg}toString(){let s=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(s)}};e.ParseError=E;function p(s,o){let l=t.identifierModuleUrl(o),g=l!=null?"in ".concat(s," ").concat(t.identifierName(o)," in ").concat(l):"in ".concat(s," ").concat(t.identifierName(o)),f=new D("",g);return new n(new a(f,-1,-1,-1),new a(f,-1,-1,-1))}e.typeSourceSpan=p;function A(s,o,l){let g="in ".concat(s," ").concat(o," in ").concat(l),f=new D("",g);return new n(new a(f,-1,-1,-1),new a(f,-1,-1,-1))}e.r3JitTypeSourceSpan=A}}),Mc=I({"src/utils/front-matter/parse.js"(e,r){"use strict";x();var t=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function a(D){let n=D.match(t);if(!n)return{content:D};let{startDelimiter:c,language:E,value:p="",endDelimiter:A}=n.groups,s=E.trim()||"yaml";if(c==="+++"&&(s="toml"),s!=="yaml"&&c!==A)return{content:D};let[o]=n;return{frontMatter:{type:"front-matter",lang:s,value:p,startDelimiter:c,endDelimiter:A,raw:o.replace(/\n$/,"")},content:o.replace(/[^\n]/g," ")+D.slice(o.length)}}r.exports=a}}),Mr=I({"src/utils/get-last.js"(e,r){"use strict";x();var t=a=>a[a.length-1];r.exports=t}}),jc=I({"src/common/parser-create-error.js"(e,r){"use strict";x();function t(a,D){let n=new SyntaxError(a+" ("+D.start.line+":"+D.start.column+")");return n.loc=D,n}r.exports=t}}),$c=I({"vendors/escape-string-regexp.js"(e,r){x();var t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,c=(o,l)=>{for(var g in l)t(o,g,{get:l[g],enumerable:!0})},E=(o,l,g,f)=>{if(l&&typeof l=="object"||typeof l=="function")for(let F of D(l))!n.call(o,F)&&F!==g&&t(o,F,{get:()=>l[F],enumerable:!(f=a(l,F))||f.enumerable});return o},p=o=>E(t({},"__esModule",{value:!0}),o),A={};c(A,{default:()=>s}),r.exports=p(A);function s(o){if(typeof o!="string")throw new TypeError("Expected a string");return o.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}}}),ts=I({"node_modules/semver/internal/debug.js"(e,r){x();var t=typeof be=="object"&&be.env&&be.env.NODE_DEBUG&&/\bsemver\b/i.test(be.env.NODE_DEBUG)?function(){for(var a=arguments.length,D=new Array(a),n=0;n<a;n++)D[n]=arguments[n];return console.error("SEMVER",...D)}:()=>{};r.exports=t}}),us=I({"node_modules/semver/internal/constants.js"(e,r){x();var t="2.0.0",a=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,n=16;r.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:a,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:n}}}),Uc=I({"node_modules/semver/internal/re.js"(e,r){x();var{MAX_SAFE_COMPONENT_LENGTH:t}=us(),a=ts();e=r.exports={};var D=e.re=[],n=e.src=[],c=e.t={},E=0,p=(A,s,o)=>{let l=E++;a(l,s),c[A]=l,n[l]=s,D[l]=new RegExp(s,o?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","[0-9]+"),p("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),p("MAINVERSION","(".concat(n[c.NUMERICIDENTIFIER],")\\.(").concat(n[c.NUMERICIDENTIFIER],")\\.(").concat(n[c.NUMERICIDENTIFIER],")")),p("MAINVER
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:D},endOfLine:{since:"1.15.0",category:p,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(Xn||(Xn=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:A,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:c,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:A,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:c},parser:{since:"0.0.10",category:p,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:o=>typeof o=="string"||typeof o=="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:p,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:o=>typeof o=="string"||typeof o=="object",cliName:"plugin",cliCategory:a},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:p,description:t(Hn||(Hn=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:o=>typeof o=="string"||typeof o=="object",cliName:"plugin-search-dir",cliCategory:a},printWidth:{since:"0.0.0",category:p,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:A,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(zn||(zn=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:D},rangeStart:{since:"1.4.0",category:A,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:t(Wn||(Wn=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:D},requirePragma:{since:"1.7.0",category:A,type:"boolean",default:!1,description:t(Yn||(Yn=ge([`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`]))),cliCategory:c},tabWidth:{type:"int",category:p,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:p,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:p,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:a,CATEGORY_EDITOR:D,CATEGORY_FORMAT:n,CATEGORY_OTHER:c,CATEGORY_OUTPUT:E,CATEGORY_GLOBAL:p,CATEGORY_SPECIAL:A,options:s}}}),Jc=I({"src/main/support.js"(e,r){"use strict";x();var t={compare:jr(),lt:Hc(),gte:zc()},a=Wc(),D=Yc().version,n=Kc().options;function c(){let{plugins:p=[],showUnreleased:A=!1,showDeprecated:s=!1,showInternal:o=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=D.split("-",1)[0],g=p.flatMap(y=>y.languages||[]).filter(F),f=a(Object.assign({},...p.map(y=>{let{options:O}=y;return O}),n),"name").filter(y=>F(y)&&B(y)).sort((y,O)=>y.name===O.name?0:y.name<O.name?-1:1).map(N).map(y=>{y=Object.assign({},y),Array.isArray(y.default)&&(y.default=y.default.length===1?y.default[0].value:y.default.filter(F).sort((m,q)=>t.compare(q.since,m.since))[0].value),Array.isArray(y.choices)&&(y.choices=y.choices.filter(m=>F(m)&&B(m)),y.name==="parser"&&E(y,g,p));let O=Object.fromEntries(p.filter(m=>m.defaultOptions&&m.defaultOptions[y.name]!==void 0).map(m=>[m.name,m.defaultOptions[y.name]]));return Object.assign(Object.assign({},y),{},{pluginDefaults:O})});return{languages:g,options:f};function F(y){return A||!("since"in y)||y.since&&t.gte(l,y.since)}function B(y){return s||!("deprecated"in y)||y.deprecated&&t.lt(l,y.deprecated)}function N(y){if(o)return y;let{cliName:O,cliCategory:m,cliDescription:q}=y;return Ic(y,qc)}}function E(p,A,s){let o=new Set(p.choices.map(l=>l.value));for(let l of A)if(l.parsers){for(let g of l.parsers)if(!o.has(g)){o.add(g);let f=s.find(B=>B.parsers&&B.parsers[g]),F=l.name;f&&f.name&&(F+=" (plugin: ".concat(f.name,")")),p.choices.push({value:g,description:F})}}}r.exports={getSupportInfo:c}}}),Zc=I({"src/utils/is-non-empty-array.js"(e,r){"use strict";x();function t(a){return Array.isArray(a)&&a.length>0}r.exports=t}}),eD=I({"vendors/string-width.js"(e,r){x();var t=Object.create,a=Object.defineProperty,D=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,p=(m,q)=>function(){return q||(0,m[n(m)[0]])((q={exports:{}}).exports,q),q.exports},A=(m,q)=>{for(var w in q)a(m,w,{get:q[w],enumerable:!0})},s=(m,q,w,M)=>{if(q&&typeof q=="object"||typeof q=="function")for(let P of n(q))!E.call(m,P)&&P!==w&&a(m,P,{get:()=>q[P],enumerable:!(M=D(q,P))||M.enumerable});return m},o=(m,q,w)=>(w=m!=null?t(c(m)):{},s(q||!m||!m.__esModule?a(w,"default",{value:m,enumerable:!0}):w,m)),l=m=>s(a({},"__esModule",{value:!0}),m),g=p({"node_modules/emoji-regex/index.js"(m,q){"use strict";q.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[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC6
`)return D-2;if(E===`
`||E==="\r"||E==="\u2028"||E==="\u2029")return D-1}else{if(E==="\r"&&a.charAt(D+1)===`
`)return D+2;if(E===`
`||E==="\r"||E==="\u2028"||E==="\u2029")return D+1}return D}r.exports=t}}),tD=I({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(e,r){"use strict";x();var t=ns(),a=as(),D=ss(),{skipSpaces:n}=$r();function c(E,p){let A=null,s=p;for(;s!==A;)A=s,s=n(E,s),s=t(E,s),s=D(E,s),s=a(E,s);return s}r.exports=c}}),is=I({"src/common/util.js"(e,r){"use strict";x();var{default:t}=$c(),a=Mr(),{getSupportInfo:D}=Jc(),n=Zc(),c=rD(),{skipWhitespace:E,skipSpaces:p,skipToLineEnd:A,skipEverythingButNewLine:s}=$r(),o=ns(),l=ss(),g=as(),f=tD(),F=S=>S[S.length-2];function B(S){return(C,_,T)=>{let k=T&&T.backwards;if(_===!1)return!1;let{length:$}=C,V=_;for(;V>=0&&V<$;){let W=C.charAt(V);if(S instanceof RegExp){if(!S.test(W))return V}else if(!S.includes(W))return V;k?V--:V++}return V===-1||V===$?V:!1}}function N(S,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=p(S,_.backwards?C-1:C,_),k=g(S,T,_);return T!==k}function y(S,C,_){for(let T=C;T<_;++T)if(S.charAt(T)===`
`)return!0;return!1}function O(S,C,_){let T=_(C)-1;T=p(S,T,{backwards:!0}),T=g(S,T,{backwards:!0}),T=p(S,T,{backwards:!0});let k=g(S,T,{backwards:!0});return T!==k}function m(S,C){let _=null,T=C;for(;T!==_;)_=T,T=A(S,T),T=o(S,T),T=p(S,T);return T=l(S,T),T=g(S,T),T!==!1&&N(S,T)}function q(S,C,_){return m(S,_(C))}function w(S,C,_){return f(S,_(C))}function M(S,C,_){return S.charAt(w(S,C,_))}function P(S,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return p(S,_.backwards?C-1:C,_)!==C}function U(S,C){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=0;for(let k=_;k<S.length;++k)S[k]===" "?T=T+C-T%C:T++;return T}function j(S,C){let _=S.lastIndexOf(`
`);return _===-1?0:U(S.slice(_+1).match(/^[\t ]*/)[0],C)}function u(S,C){let _={quote:'"',regex:/"/g,escaped:"&quot;"},T={quote:"'",regex:/'/g,escaped:"&apos;"},k=C==="'"?T:_,$=k===T?_:T,V=k;if(S.includes(k.quote)||S.includes($.quote)){let W=(S.match(k.regex)||[]).length,Q=(S.match($.regex)||[]).length;V=W>Q?$:k}return V}function i(S,C){let _=S.slice(1,-1),T=C.parser==="json"||C.parser==="json5"&&C.quoteProps==="preserve"&&!C.singleQuote?'"':C.__isInHtmlAttribute?"'":u(_,C.singleQuote?"'":'"').quote;return d(_,T,!(C.parser==="css"||C.parser==="less"||C.parser==="scss"||C.__embeddedInHtml))}function d(S,C,_){let T=C==='"'?"'":'"',k=/\\(.)|(["'])/gs,$=S.replace(k,(V,W,Q)=>W===T?W:Q===C?"\\"+Q:Q||(_&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(W)?W:"\\"+W));return C+$+C}function h(S){return S.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function v(S,C){let _=S.match(new RegExp("(".concat(t(C),")+"),"g"));return _===null?0:_.reduce((T,k)=>Math.max(T,k.length/C.length),0)}function R(S,C){let _=S.match(new RegExp("(".concat(t(C),")+"),"g"));if(_===null)return 0;let T=new Map,k=0;for(let $ of _){let V=$.length/C.length;T.set(V,!0),V>k&&(k=V)}for(let $=1;$<k;$++)if(!T.get($))return $;return k+1}function L(S,C){(S.comments||(S.comments=[])).push(C),C.printed=!1,C.nodeDescription=Z(S)}function G(S,C){C.leading=!0,C.trailing=!1,L(S,C)}function H(S,C,_){C.leading=!1,C.trailing=!1,_&&(C.marker=_),L(S,C)}function K(S,C){C.leading=!1,C.trailing=!0,L(S,C)}function z(S,C){let{languages:_}=D({plugins:C.plugins}),T=_.find(k=>{let{name:$}=k;return $.toLowerCase()===S})||_.find(k=>{let{aliases:$}=k;return Array.isArray($)&&$.includes(S)})||_.find(k=>{let{extensions:$}=k;return Array.isArray($)&&$.includes(".".concat(S))});return T&&T.parsers[0]}function Y(S){return S&&S.type==="front-matter"}function J(S){let C=new WeakMap;return function(_){return C.has(_)||C.set(_,Symbol(S)),C.get(_)}}function Z(S){let C=S.type||S.kind||"(unknown type)",_=String(S.name||S.id&&(typeof S.id=="object"?S.id.name:S.id)||S.key&&(typeof S.key=="object"?S.key.name:S.key)||S.value&&(typeof S.value=="object"?"":String(S.value))||S.operator||"");return _.length>20&&(_=_.slice(0,19)+"\u2026"),C+(_?" "+_:"")}r.exports={inferParserByLanguage:z,getStringWidth:c,getMaxContinuousCount:v,getMinNotPresentContinuousCount:R,getPenultimate:F,getLast:a,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:f,getNextNonSpaceNonCommentCharacterIndex:w,getNextNonSpaceNonCommentCharacter:M,skip:B,skipWhitespace:E,skipSpaces:p,skipToLineEnd:A,skipEverythingButNewLine:s,skipInlineComment:o,skipTrailingComment:l,skipNewline:g,isNextLineEmptyAfterIndex:m,isNextLineEmpty:q,isPreviousLineEmpty:O,hasNewline:N,hasNewlineInRange:y,hasSpaces:P,getAlignmentSize:U,getIndentSize:j,getPreferredQuote:u,printString:i,printNumber:h,makeString:d,addLeadingComment:G,addDanglingComment:H,addTrailingComment:K,isFrontMatterNode:Y,isNonEmptyArray:n,createGroupIdMapper:J}}}),uD=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",
`+D.replace(/^\s*\n/,"")}r.exports={hasPragma:t,insertPragma:a}}}),DD=I({"src/language-html/ast.js"(e,r){"use strict";x();var{isNonEmptyArray:t}=is(),a=Mr(),D={attrs:!0,children:!0},n=class{constructor(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(let[s,o]of Object.entries(A))s in D?this._setNodes(s,o):this[s]=o}_setNodes(A,s){s!==this[A]&&(this[A]=E(s,this),A==="attrs"&&p(this,"attrMap",Object.fromEntries(this[A].map(o=>[o.fullName,o.value]))))}map(A){let s=null;for(let o in D){let l=this[o];if(l){let g=c(l,f=>f.map(A));s!==l&&(s||(s=new n({parent:this.parent})),s._setNodes(o,g))}}if(s)for(let o in this)o in D||(s[o]=this[o]);return A(s||this)}walk(A){for(let s in D){let o=this[s];if(o)for(let l=0;l<o.length;l++)o[l].walk(A)}A(this)}insertChildBefore(A,s){let o=new n(Object.assign(Object.assign({},s),{},{parent:this}));this.children.splice(this.children.indexOf(A),0,o)}removeChild(A){this.children.splice(this.children.indexOf(A),1)}replaceChild(A,s){let o=new n(Object.assign(Object.assign({},s),{},{parent:this}));this.children[this.children.indexOf(A)]=o}clone(){return new n(this)}setChildren(A){this._setNodes("children",A)}get firstChild(){return t(this.children)?this.children[0]:null}get lastChild(){return t(this.children)?a(this.children):null}get prev(){return this.parent?this.parent.children[this.parent.children.indexOf(this)-1]:null}get next(){return this.parent?this.parent.children[this.parent.children.indexOf(this)+1]:null}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}};function c(A,s){let o=A.map(s);return o.some((l,g)=>l!==A[g])?o:A}function E(A,s){let o=A.map(l=>l instanceof n?l.clone():new n(Object.assign(Object.assign({},l),{},{parent:s})));for(let l of o)l.parent=s;return o}function p(A,s,o){Object.defineProperty(A,s,{value:o,enumerable:!1})}r.exports={Node:n}}}),lD=I({"src/language-html/conditional-comment.js"(e,r){"use strict";x();var{ParseSourceSpan:t}=Be(),a=[{regex:/^(\[if([^\]]*)]>)(.*?)<!\s*\[endif]$/s,parse:n},{regex:/^\[if([^\]]*)]><!$/,parse:c},{regex:/^<!\s*\[endif]$/,parse:E}];function D(p,A){if(p.value)for(let{regex:s,parse:o}of a){let l=p.value.match(s);if(l)return o(p,A,l)}return null}function n(p,A,s){let[,o,l,g]=s,f=4+o.length,F=p.sourceSpan.start.moveBy(f),B=F.moveBy(g.length),[N,y]=(()=>{try{return[!0,A(g,F).children]}catch{let O={type:"text",value:g,sourceSpan:new t(F,B)};return[!1,[O]]}})();return{type:"ieConditionalComment",complete:N,children:y,condition:l.trim().replace(/\s+/g," "),sourceSpan:p.sourceSpan,startSourceSpan:new t(p.sourceSpan.start,F),endSourceSpan:new t(B,p.sourceSpan.end)}}function c(p,A,s){let[,o]=s;return{type:"ieConditionalStartComment",condition:o.trim().replace(/\s+/g," "),sourceSpan:p.sourceSpan}}function E(p){return{type:"ieConditionalEndComment",sourceSpan:p.sourceSpan}}r.exports={parseIeConditionalComment:D}}}),pD=I({"src/language-html/loc.js"(e,r){"use strict";x();function t(D){return D.sourceSpan.start.offset}function a(D){return D.sourceSpan.end.offset}r.exports={locStart:t,locEnd:a}}}),Ke=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/tags.js"(e){"use strict";x(),Object.defineProperty(e,"__esModule",{value:!0});var r;(function(p){p[p.RAW_TEXT=0]="RAW_TEXT",p[p.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",p[p.PARSABLE_DATA=2]="PARSABLE_DATA"})(r=e.TagContentType||(e.TagContentType={}));function t(p){if(p[0]!=":")return[null,p];let A=p.indexOf(":",1);if(A==-1)throw new Error('Unsupported format "'.concat(p,'" expecting ":namespace:name"'));return[p.slice(1,A),p.slice(A+1)]}e.splitNsName=t;function a(p){return t(p)[1]==="ng-container"}e.isNgContainer=a;function D(p){return t(p)[1]==="ng-content"}e.isNgContent=D;function n(p){return t(p)[1]==="ng-template"}e.isNgTemplate=n;function c(p){return p===null?null:t(p)[0]}e.getNsPrefix=c;function E(p,A){return p?":".concat(p,":").concat(A):A}e.mergeNsAndName=E,e.NAMED_ENTITIES={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u03
`,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 i=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=i,this._consumeBogusComment(u)):this._consumeTagOpen(u)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(i){this.handleError(i)}}return this._beginToken(n.EOF),this._endToken([]),new p(M(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(m(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 i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=u}_endToken(u){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._cursor.clone();if(this._currentTokenStart===null)throw new E("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(this._currentTokenType===null)throw new E("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let d=new c(this._currentTokenType,u,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(d),this._currentTokenStart=null,this._currentTokenType=null,d}_createError(u,i){this._isInExpansionForm()&&(u+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let d=new E(u,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new g(d)}handleError(u){if(u instanceof j&&(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 q(this._cursor.peek(),u)?(this._cursor.advance(),!0):!1}_requireCharCode(u){let i=this._cursor.clone();if(!this._attemptCharCode(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_attemptStr(u){let i=u.length;if(this._cursor.charsLeft()<i)return!1;let d=this._cursor.clone();for(let h=0;h<i;h++)if(!this._attemptCharCode(u.charCodeAt(h)))return this._cursor=d,!1;return!0}_attemptStrCaseInsensitive(u){for(let i=0;i<u.length;i++)if(!this._attemptCharCodeCaseInsensitive(u.charCodeAt(i)))return!1;return!0}_requireStr(u){let i=this._cursor.clone();if(!this._attemptStr(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_requireStrCaseInsensitive(u){let i=this._cursor.clone();if(!this._attemptStrCaseInsensitive(u))throw this._createError(o(this._cursor.peek()),this._cursor.getSpan(i))}_attemptCharCodeUntilFn(u){for(;!u(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(u,i){let d=this._cursor.clone();if(this._attemptCharCodeUntilFn(u),this._cursor.clone().diff(d)<i)throw this._createError(o(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 i=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),i}}_decodeEntity(){let u=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(r.$HASH)){let i=this._attemptCharCode(r.$x)||this._attemptCharCode(r.$X),d=this._cursor.clone();if(this._attemptCharCodeUntilFn(y),this._cursor.peek()!=r.$SEMICOLON)throw this._createError(o(this._cursor.peek()),this._cursor.getSpan()
`){let l=this._getParentElement();l!=null&&l.children.length==0&&this.getTagDefinition(l.name).ignoreFirstLf&&(o=o.substring(1))}return o}_consumeText(s){let o=this._getText(s);o.length>0&&this._addToParent(new t.Text(o,s.sourceSpan))}_closeVoidElement(){let s=this._getParentElement();s&&this.getTagDefinition(s.name).isVoid&&this._elementStack.pop()}_consumeStartTag(s){let o=s.parts[0],l=s.parts[1],g=[];for(;this._peek.type===a.TokenType.ATTR_NAME;)g.push(this._consumeAttr(this._advance()));let f=this._getElementFullName(o,l,this._getParentElement()),F=!1;if(this._peek.type===a.TokenType.TAG_OPEN_END_VOID){this._advance(),F=!0;let m=this.getTagDefinition(f);this.canSelfClose||m.canSelfClose||D.getNsPrefix(f)!==null||m.isVoid||this._errors.push(n.create(f,s.sourceSpan,'Only void and foreign elements can be self closed "'.concat(s.parts[1],'"')))}else this._peek.type===a.TokenType.TAG_OPEN_END&&(this._advance(),F=!1);let B=this._peek.sourceSpan.start,N=new r.ParseSourceSpan(s.sourceSpan.start,B),y=new r.ParseSourceSpan(s.sourceSpan.start.moveBy(1),s.sourceSpan.end),O=new t.Element(f,g,[],N,N,void 0,y);this._pushElement(O),F&&(this._popElement(f),O.endSourceSpan=N)}_pushElement(s){let o=this._getParentElement();o&&this.getTagDefinition(o.name).isClosedByChild(s.name)&&this._elementStack.pop(),this._addToParent(s),this._elementStack.push(s)}_consumeEndTag(s){let o=this.allowHtmComponentClosingTags&&s.parts.length===0?null:this._getElementFullName(s.parts[0],s.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=s.sourceSpan),o&&this.getTagDefinition(o).isVoid)this._errors.push(n.create(o,s.sourceSpan,'Void elements do not have end tags "'.concat(s.parts[1],'"')));else if(!this._popElement(o)){let l='Unexpected closing tag "'.concat(o,'". 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(o,s.sourceSpan,l))}}_popElement(s){for(let o=this._elementStack.length-1;o>=0;o--){let l=this._elementStack[o];if(!s||(D.getNsPrefix(l.name)?l.name==s:l.name.toLowerCase()==s.toLowerCase()))return this._elementStack.splice(o,this._elementStack.length-o),!0;if(!this.getTagDefinition(l.name).closedByParent)return!1}return!1}_consumeAttr(s){let o=D.mergeNsAndName(s.parts[0],s.parts[1]),l=s.sourceSpan.end,g="",f,F;if(this._peek.type===a.TokenType.ATTR_QUOTE&&(F=this._advance().sourceSpan.start),this._peek.type===a.TokenType.ATTR_VALUE){let B=this._advance();g=B.parts[0],l=B.sourceSpan.end,f=B.sourceSpan}return this._peek.type===a.TokenType.ATTR_QUOTE&&(l=this._advance().sourceSpan.end,f=new r.ParseSourceSpan(F,l)),new t.Attribute(o,g,new r.ParseSourceSpan(s.sourceSpan.start,l),f,s.sourceSpan)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_getParentElementSkippingContainers(){let s=null;for(let o=this._elementStack.length-1;o>=0;o--){if(!D.isNgContainer(this._elementStack[o].name))return{parent:this._elementStack[o],container:s};s=this._elementStack[o]}return{parent:null,container:s}}_addToParent(s){let o=this._getParentElement();o!=null?o.children.push(s):this._rootNodes.push(s)}_insertBeforeContainer(s,o,l){if(!o)this._addToParent(l),this._elementStack.push(l);else{if(s){let g=s.children.indexOf(o);s.children[g]=l}else this._rootNodes.push(l);l.children.push(o),this._elementStack.splice(this._elementStack.indexOf(o),0,l)}}_getElementFullName(s,o,l){return s===""&&(s=this.getTagDefinition(o).implicitNamespacePrefix||"",s===""&&l!=null&&(s=D.getNsPrefix(l.name))),D.mergeNsAndName(s,o)}};function A(s,o){return s.length>0&&s[s.length-1]===o}}}),CD=I({"node_modules/angular-html-parser/lib/compiler/src/ml_parser/html_parser.js"(e){"use strict";x(),Object.defineProperty(e,"__esModule",{value:!0});var r=cs(),t=Jn(),a=Jn();e.ParseTreeResult=a.ParseTreeResult,e.TreeError=a.TreeError;var D=class extends t.Parser{constructor(){super(r.getHtmlTagDefinition)}parse(n,c,E){let p=arguments.length>3&&argum