mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-26 01:16:56 +01:00
114 lines
154 KiB
JavaScript
114 lines
154 KiB
JavaScript
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=t((function(e,t){function n(e){return t.$0<=e&&e<=t.$9}
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$BSPACE=8,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$7=55,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$b=98,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(e){return e>=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)},t.isNewLine=function(e){return e===t.$LF||e===t.$CR},t.isOctalDigit=function(e){return t.$0<=e&&e<=t.$7}})),r=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}t.StaticSymbol=n;t.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,t,r){const s=(r=r||[]).length?".".concat(r.join(".")):"",i='"'.concat(e,'".').concat(t).concat(s);let o=this.cache.get(i);return o||(o=new n(e,t,r),this.cache.set(i,o)),o}}})),s=t((function(t,n){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(n,"__esModule",{value:!0});const r=/-+([a-z0-9])/g;function s(e,t,n){const r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function i(e,t,n){return Array.isArray(e)?t.visitArray(e,n):"object"==typeof(r=e)&&null!==r&&Object.getPrototypeOf(r)===u?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n);var r}n.dashCaseToCamelCase=function(e){return e.replace(r,((...e)=>e[1].toUpperCase()))},n.splitAtColon=function(e,t){return s(e,":",t)},n.splitAtPeriod=function(e,t){return s(e,".",t)},n.visitValue=i,n.isDefined=function(e){return null!=e},n.noUndefined=function(e){return void 0===e?null:e};n.ValueTransformer=class{visitArray(e,t){return e.map((e=>i(e,this,t)))}visitStringMap(e,t){const n={};return Object.keys(e).forEach((r=>{n[r]=i(e[r],this,t)})),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}},n.SyncAsync={assertSync:e=>{if(c(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>c(e)?e.then(t):t(e),all:e=>e.some(c)?Promise.all(e):e},n.error=function(e){throw new Error("Internal Error: ".concat(e))},n.syntaxError=function(e,t){const n=Error(e);return n[o]=!0,t&&(n[a]=t),n};const o="ngSyntaxError",a="ngParseErrors";n.isSyntaxError=function(e){return e[o]},n.getParseErrors=function(e){return e[a]||[]},n.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};const u=Object.getPrototypeOf({});function c(e){return!!e&&"function"==typeof e.then}n.utf8Encode=function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t},n.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";const n=t.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},n.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},n.isPromise=c;n.Version=class{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};const l="undefined"!=typeof window&&window,p="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,D=void 0!==e&&e||l||p;n.global=D})),i=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});const n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function i(e){return e.replace(/\W/g,"_")}t.sanitizeIdentifier=i;let o=0;function a(e){if(!e||!e.reference)return null;const t=e.reference;if(t instanceof r.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;let n=s.stringify(t);return n.indexOf("(")>=0?(n="anonymous_".concat(o++),t.__anonymousType=n):n=i(n),n}var u;t.identifierName=a,t.identifierModuleUrl=function(e){const t=e.reference;return t instanceof r.StaticSymbol?t.filePath:"./".concat(s.stringify(t))},t.viewClassName=function(e,t){return"View_".concat(a({reference:e}),"_").concat(t)},t.rendererTypeName=function(e){return"RenderType_".concat(a({reference:e}))},t.hostViewClassName=function(e){return"HostView_".concat(a({reference:e}))},t.componentFactoryName=function(e){return"".concat(a({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(u=t.CompileSummaryKind||(t.CompileSummaryKind={})),t.tokenName=function(e){return null!=e.value?i(e.value):a(e.identifier)},t.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};t.CompileStylesheetMetadata=class{constructor({moduleUrl:e,styles:t,styleUrls:n}={}){this.moduleUrl=e||null,this.styles=l(t),this.styleUrls=l(n)}};t.CompileTemplateMetadata=class{constructor({encapsulation:e,template:t,templateUrl:n,htmlAst:r,styles:s,styleUrls:i,externalStylesheets:o,animations:a,ngContentSelectors:u,interpolation:c,isInline:D,preserveWhitespaces:h}){if(this.encapsulation=e,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=l(s),this.styleUrls=l(i),this.externalStylesheets=l(o),this.animations=a?p(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=D,this.preserveWhitespaces=h}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class c{static create({isHost:e,type:t,isComponent:r,selector:i,exportAs:o,changeDetection:a,inputs:u,outputs:l,host:p,providers:D,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:g,template:E,componentViewType:C,rendererType:T,componentFactory:y}){const S={},_={},b={};null!=p&&Object.keys(p).forEach((e=>{const t=p[e],r=e.match(n);null===r?b[e]=t:null!=r[1]?_[r[1]]=t:null!=r[2]&&(S[r[2]]=t)}));const F={};null!=u&&u.forEach((e=>{const t=s.splitAtColon(e,[e,e]);F[t[0]]=t[1]}));const A={};return null!=l&&l.forEach((e=>{const t=s.splitAtColon(e,[e,e]);A[t[0]]=t[1]})),new c({isHost:e,type:t,isComponent:!!r,selector:i,exportAs:o,changeDetection:a,inputs:F,outputs:A,hostListeners:S,hostProperties:_,hostAttributes:b,providers:D,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:g,template:E,componentViewType:C,rendererType:T,componentFactory:y})}constructor({isHost:e,type:t,isComponent:n,selector:r,exportAs:s,changeDetection:i,inputs:o,outputs:a,hostListeners:u,hostProperties:c,hostAttributes:p,providers:D,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:g,template:E,componentViewType:C,rendererType:T,componentFactory:y}){this.isHost=!!e,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=s,this.changeDetection=i,this.inputs=o,this.outputs=a,this.hostListeners=u,this.hostProperties=c,this.hostAttributes=p,this.providers=l(D),this.viewProviders=l(h),this.queries=l(d),this.guards=f,this.viewQueries=l(m),this.entryComponents=l(g),this.template=E,this.componentViewType=C,this.rendererType=T,this.componentFactory=y}toSummary(){return{summaryKind:u.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueri
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
class r{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(e){const t=this.file.content,s=t.length;let i=this.offset,o=this.line,a=this.col;for(;i>0&&e<0;){i--,e++;if(t.charCodeAt(i)==n.$LF){o--;const e=t.substr(0,i-1).lastIndexOf(String.fromCharCode(n.$LF));a=e>0?i-e:i}else a--}for(;i<s&&e>0;){const r=t.charCodeAt(i);i++,e--,r==n.$LF?(o++,a=0):a++}return new r(this.file,i,o,a)}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let s=r,i=0,o=0;for(;i<e&&r>0&&(r--,i++,"\n"!=n[r]||++o!=t););for(i=0,o=0;i<e&&s<n.length-1&&(s++,i++,"\n"!=n[s]||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,s+1)}}return null}}t.ParseLocation=r;class s{constructor(e,t){this.content=e,this.url=t}}t.ParseSourceFile=s;class o{constructor(e,t,n=null){this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var a;t.ParseSourceSpan=o,t.EMPTY_PARSE_LOCATION=new r(new s("",""),0,0,0),t.EMPTY_SOURCE_SPAN=new o(t.EMPTY_PARSE_LOCATION,t.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(a=t.ParseErrorLevel||(t.ParseErrorLevel={}));t.ParseError=class{constructor(e,t,n=a.ERROR){this.span=e,this.msg=t,this.level=n}contextualMessage(){const e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(a[this.level]," ->]").concat(e.after,'")'):this.msg}toString(){const e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}},t.typeSourceSpan=function(e,t){const n=i.identifierModuleUrl(t),a=null!=n?"in ".concat(e," ").concat(i.identifierName(t)," in ").concat(n):"in ".concat(e," ").concat(i.identifierName(t)),u=new s("",a);return new o(new r(u,-1,-1,-1),new r(u,-1,-1,-1))},t.r3JitTypeSourceSpan=function(e,t,n){const i="in ".concat(e," ").concat(t," in ").concat(n),a=new s("",i);return new o(new r(a,-1,-1,-1),new r(a,-1,-1,-1))}})),a=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function u(e){return{type:"concat",parts:e}}function c(e){return{type:"indent",contents:e}}function l(e,t){return{type:"align",contents:t,n:e}}function p(e,t){return{type:"group",id:(t=t||{}).id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}const D={type:"break-parent"},h=u([{type:"line",hard:!0},D]),d=u([{type:"line",hard:!0,literal:!0},D]);var f={concat:u,join:function(e,t){const n=[];for(let r=0;r<t.length;r++)0!==r&&n.push(e),n.push(t[r]);return u(n)},line:{type:"line"},softline:{type:"line",soft:!0},hardline:h,literalline:d,group:p,conditionalGroup:function(e,t){return p(e[0],Object.assign({},t,{expandedStates:e}))},fill:function(e){return{type:"fill",parts:e}},lineSuffix:function(e){return{type:"line-suffix",contents:e}},lineSuffixBoundary:{type:"line-suffix-boundary"},cursor:{type:"cursor",placeholder:Symbol("cursor")},breakParent:D,ifBreak:function(e,t,n){return{type:"if-break",breakContents:e,flatContents:t,groupId:(n=n||{}).groupId}},trim:{type:"trim"},indent:c,align:l,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=c(r);r=l(t%n,r),r=l(-1/0,r)}return r},markAsRoot:function(e){return l({type:"root"},e)},dedentToRoot:function(e){return l(-1/0,e)},dedent:function(e){return l(-1,e)}},m=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const g=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||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<
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(t.TagContentType||(t.TagContentType={})),t.splitNsName=n,t.isNgContainer=function(e){return"ng-container"===n(e)[1]},t.isNgContent=function(e){return"ng-content"===n(e)[1]},t.isNgTemplate=function(e){return"ng-template"===n(e)[1]},t.getNsPrefix=function(e){return null===e?null:n(e)[0]},t.mergeNsAndName=function(e,t){return e?":".concat(e,":").concat(t):t},t.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:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",AMP:"&",amp:"&",And:"\u2a53",and:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",ap:"\u2248",apacir:"\u2a6f",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250c",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252c",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxUL:"\u255d",boxUl:"\u255c",boxuL:"\u255b",boxul:"\u2518",boxUR:"\u255a",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256c",boxVh:"\u256b",boxvH:"\u256a",boxvh:"\u253c",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255f",boxvR:"\u255e",boxvr:"\u251c",bprime:"\u2035",Breve:"\u02d8",breve:"\u02d8",brvbar:"\xa6",Bscr:"\u212c",bscr:"\ud835\udcb7",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22d2",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});class n{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=Dn.TagContentType.PARSABLE_DATA,closedByParent:r=!1,isVoid:s=!1,ignoreFirstLf:i=!1}={}){this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,e&&e.length>0&&e.forEach((e=>this.closedByChildren[e]=!0)),this.isVoid=s,this.closedByParent=r||s,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}}let r,s;t.HtmlTagDefinition=n,t.getHtmlTagDefinition=function(e){return s||(r=new n,s={base:new n({isVoid:!0}),meta:new n({isVoid:!0}),area:new n({isVoid:!0}),embed:new n({isVoid:!0}),link:new n({isVoid:!0}),img:new n({isVoid:!0}),input:new n({isVoid:!0}),param:new n({isVoid:!0}),hr:new n({isVoid:!0}),br:new n({isVoid:!0}),source:new n({isVoid:!0}),track:new n({isVoid:!0}),wbr:new n({isVoid:!0}),p:new n({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 n({closedByChildren:["tbody","tfoot"]}),tbody:new n({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new n({closedByChildren:["tbody"],closedByParent:!0}),tr:new n({closedByChildren:["tr"],closedByParent:!0}),td:new n({closedByChildren:["td","th"],closedByParent:!0}),th:new n({closedByChildren:["td","th"],closedByParent:!0}),col:new n({isVoid:!0}),svg:new n({implicitNamespacePrefix:"svg"}),math:new n({implicitNamespacePrefix:"math"}),li:new n({closedByChildren:["li"],closedByParent:!0}),dt:new n({closedByChildren:["dt","dd"]}),dd:new n({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new n({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new n({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new n({closedByChildren:["optgroup"],closedByParent:!0}),option:new n({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new n({ignoreFirstLf:!0}),listing:new n({ignoreFirstLf:!0}),style:new n({contentType:Dn.TagContentType.RAW_TEXT}),script:new n({contentType:Dn.TagContentType.RAW_TEXT}),title:new n({contentType:Dn.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new n({contentType:Dn.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),s[e]||r}})),dn=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});t.AstPath=class{constructor(e,t=-1){this.path=e,this.position=t}get empty(){return!this.path||!this.path.length}get head(){return this.path[0]}get tail(){return this.path[this.path.length-1]}parentOf(e){return e&&this.path[this.path.indexOf(e)-1]}childOf(e){return this.path[this.path.indexOf(e)+1]}first(e){for(let t=this.path.length-1;t>=0;t--){let n=this.path[t];if(n instanceof e)return n}}push(e){this.path.push(e)}pop(){return this.path.pop()}}})),fn=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});t.Text=class{constructor(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}visit(e,t){return e.visitText(this,t)}};t.CDATA=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitCdata(this,t)}};t.Expansion=class{constructor(e,t,n,r,s,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=s,this.i18n=i}visit(e,t){return e.visitExpansion(this,t)}};t.ExpansionCase=class{constructor(e,t,n,r,s){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=s}visit(e,t){return e.visitExpansionCase(this,t)}};t.Attribute=class{constructor(e,t,n,r=null,s=null,i=null){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.nameSpan=s,this.i18n=i}visit(e,t){return e.visitAttribute(this,t)}};class n{constructor(e,t,n,r,s=null,i=null,o=null,a=null){this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=s,this.endSourceSpan=i,this.nameSpan=o,this.i18n=a}visit(e,t){return e.visitElement(this,t)}}t.Element=n;t.Comment=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}};function r(e,t,n=null){const r=[],s=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach((e=>{const t=s(e);t&&r.push(t)})),r}t.DocType=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitDocType(this,t)}},t.visitAll=r;class s{constructor(){}visitElement(e,t){this.visitChildren(t,(t=>{t(e.attrs),t(e.children)}))}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,(t=>{t(e.cases)}))}visitExpansionCase(e,t){}visitChildren(e,t){let n=[],s=this;return t((function(t){t&&n.push(r(s,t,e))})),Array.prototype.concat.apply([],n)}}function i(e){const t=e.sourceSpan.start.offset;let r=e.sourceSpan.end.offset;return e instanceof n&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=i(e.children[e.children.length-1]).end)),{start:t,end:r}}t.RecursiveVisitor=s,t.findNode=function(e,t){const n=[];return r(new class extends s{visit(e,r){const s=i(e);if(!(s.start<=t&&t<s.end))return!0;n.push(e)}},e),new dn.AstPath(n,t)}})),mn=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayOfStrings=function(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '".concat(e,"' to be an array of strings."));for(let n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '".concat(e,"' to be an array of strings."))}};const n=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];t.assertInterpolationSymbols=function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){const e=t[0],r=t[1];n.forEach((t=>{if(t.test(e)||t.test(r))throw new Error("['".concat(e,"', '").concat(r,"'] contains unusable interpolation symbol."))}))}}})),gn=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(mn.assertInterpolationSymbols("interpolation",e),new n(e[0],e[1])):t.DEFAULT_INTERPOLATION_CONFIG}}t.InterpolationConfig=n,t.DEFAULT_INTERPOLATION_CONFIG=new n("{{","}}")})),En=t((function(e,t){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});const r=n;var s;!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE_START=14]="DOC_TYPE_START",e[e.DOC_TYPE_END=15]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",e[e.EOF=21]="EOF"}(s=t.TokenType||(t.TokenType={}));class i{constructor(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n}}t.Token=i;class a extends o.ParseError{constructor(e,t,n){super(n,e),this.tokenType=t}}t.TokenError=a;class u{constructor(e,t){this.tokens=e,this.errors=t}}t.TokenizeResult=u,t.tokenize=function(e,t,n,r={}){return new h(new o.ParseSourceFile(e,t),n,r).tokenize()};const c=/\r\n?/g;function l(e){const t=e===r.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}function p(e){return'Unknown entity "'.concat(e,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}class D{constructor(e){this.error=e}}class h{constructor(e,t,n){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||gn.DEFAULT_INTERPOLATION_CONFIG,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((e=>e.codePointAt(0)||0)),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;const r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new T(e,r):new C(e,r);try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return e.replace(c,"\n")}tokenize(){for(;this._cursor.peek()!==r.$EOF;){const e=this._cursor.clone();try{if(this._attemptCharCode(r.$LT))if(this._attemptCharCode(r.$BANG))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(r.$SLASH))this._consumeTagClose(e);else{const t=this._cursor.clone();this._attemptCharCode(r.$QUESTION)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(s.EOF),this._endToken([]),new u(function(e){const t=[];let n=void 0;for(let r=0;r<e.length;r++){const i=e[r];n&&n.type==s.TEXT&&i.type==s.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}(this.tokens),this.errors)}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(((e=this._cursor.peek())===r.$EQ||r.isAsciiLetter(e)||r.isDigit(e))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var e;if(this._cursor.peek()===r.$RBRACE){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t=this._cursor.clone()){if(null===this._currentTokenStart)throw new a("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new a("Programming error - attempted to end a token which has no
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});class n extends o.ParseError{constructor(e,t,n){super(t,n),this.elementName=e}static create(e,t,r){return new n(e,t,r)}}t.TreeError=n;class r{constructor(e,t){this.rootNodes=e,this.errors=t}}t.ParseTreeResult=r;t.Parser=class{constructor(e){this.getTagDefinition=e}parse(e,t,n,i=!1,o){const a=e=>(t,...n)=>e(t.toLowerCase(),...n),u=i?this.getTagDefinition:a(this.getTagDefinition),c=e=>u(e).contentType,l=i?o:a(o),p=o?(e,t,n,r)=>{const s=l(e,t,n,r);return void 0!==s?s:c(e)}:c,D=En.tokenize(e,t,p,n),h=n&&n.canSelfClose||!1,d=n&&n.allowHtmComponentClosingTags||!1,f=new s(D.tokens,u,h,d,i).build();return new r(f.rootNodes,D.errors.concat(f.errors))}};class s{constructor(e,t,n,r,s){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=n,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=s,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}build(){for(;this._peek.type!==En.TokenType.EOF;)this._peek.type===En.TokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===En.TokenType.TAG_CLOSE?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===En.TokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===En.TokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===En.TokenType.TEXT||this._peek.type===En.TokenType.RAW_TEXT||this._peek.type===En.TokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===En.TokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===En.TokenType.DOC_TYPE_START?this._consumeDocType(this._advance()):this._advance();return new r(this._rootNodes,this._errors)}_advance(){const e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){const t=this._advance(),n=this._getText(t),r=this._advanceIf(En.TokenType.CDATA_END);this._addToParent(new fn.CDATA(n,new o.ParseSourceSpan(e.sourceSpan.start,(r||t).sourceSpan.end)))}_consumeComment(e){const t=this._advanceIf(En.TokenType.RAW_TEXT),n=this._advanceIf(En.TokenType.COMMENT_END),r=null!=t?t.parts[0].trim():null,s=new o.ParseSourceSpan(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new fn.Comment(r,s))}_consumeDocType(e){const t=this._advanceIf(En.TokenType.RAW_TEXT),n=this._advanceIf(En.TokenType.DOC_TYPE_END),r=null!=t?t.parts[0].trim():null,s=new o.ParseSourceSpan(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new fn.DocType(r,s))}_consumeExpansion(e){const t=this._advance(),r=this._advance(),s=[];for(;this._peek.type===En.TokenType.EXPANSION_CASE_VALUE;){const e=this._parseExpansionCase();if(!e)return;s.push(e)}if(this._peek.type!==En.TokenType.EXPANSION_FORM_END)return void this._errors.push(n.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const i=new o.ParseSourceSpan(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new fn.Expansion(t.parts[0],r.parts[0],s,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){const e=this._advance();if(this._peek.type!==En.TokenType.EXPANSION_CASE_EXP_START)return this._errors.push(n.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const t=this._advance(),r=this._collectExpansionExpTokens(t);if(!r)return null;const i=this._advance();r.push(new En.Token(En.TokenType.EOF,[],i.sourceSpan));const a=new s(r,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive).build();if(a.errors.length>0)return this._errors=this._errors.concat(a.errors),null;const u=new o.ParseSourceSpan(e.sourceSpan.start,i.sourceSpan.end),c=new o.ParseSourceSpan(t.sourceSpan.start,i.sourceSpan.end);return new fn.ExpansionCase(e.parts[0],a.rootNodes,u,e.sourceSpan,c)}_collectExpansionExpTokens(e){const t=[],r=[En.TokenType.EXPANSION_CASE_EXP_START];for(;;){if(this._peek.
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(t,"__esModule",{value:!0});var n=Cn;t.ParseTreeResult=n.ParseTreeResult,t.TreeError=n.TreeError;class r extends Cn.Parser{constructor(){super(hn.getHtmlTagDefinition)}parse(e,t,n,r=!1,s){return super.parse(e,t,n,r,s)}}t.HtmlParser=r})),yn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TagContentType=Dn.TagContentType;let n=null;t.parse=function(e,t={}){const{canSelfClose:r=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:i=!1,getTagContentType:o}=t;return(n||(n=new Tn.HtmlParser),n).parse(e,"angular-html-parser",{tokenizeExpansionForms:!1,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:s},i,o)}}));const{ParseSourceSpan:Sn,ParseLocation:_n,ParseSourceFile:bn}=o,{parse:Fn}=yt,{inferParserByLanguage:An}=Ve,{HTML_ELEMENT_ATTRIBUTES:vn,HTML_TAGS:wn,isUnknownNamespace:kn}=en,{hasPragma:Nn}=tn,{Node:xn}=an,{parseIeConditionalComment:On}=ln,{locStart:Rn,locEnd:Ln}=pn;function Pn(e,{recognizeSelfClosing:t,normalizeTagName:n,normalizeAttributeName:r,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i,getTagContentType:a},u){const c=yn,{RecursiveVisitor:l,visitAll:p,Attribute:D,CDATA:h,Comment:d,DocType:f,Element:m,Text:g}=fn,{ParseSourceSpan:E}=o,{getHtmlTagDefinition:C}=hn;let{rootNodes:T,errors:y}=c.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i,getTagContentType:a});const S="vue"===u.parser&&T.some((e=>e instanceof f&&"html"===e.value||e instanceof m&&"html"===e.name.toLowerCase()));if("vue"!==u.parser||S){if(S){t=!0,n=!0,r=!0,s=!0,i=!1;const o=c.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i});T=o.rootNodes,y=o.errors}}else{const n=e=>{if(!e)return!1;if("template"!==e.name)return!1;const t=e.attrs.find((e=>"lang"===e.name)),n=t&&t.value;return null==n||"html"===An(n,u)};if(T.some(n)){let r;const o=()=>c.parse(e,{canSelfClose:t,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:i}),a=()=>r||(r=o()),u=e=>a().rootNodes.find((({startSourceSpan:t})=>t&&t.start.offset===e.startSourceSpan.start.offset));for(let e=0;e<T.length;e++){const t=T[e],{endSourceSpan:r,startSourceSpan:s}=t;if(null===r){y=a().errors,T[e]=u(t)||t}else if(n(t)){const n=a(),i=s.end.offset,o=r.start.offset;for(const e of n.errors){const{offset:t}=e.span.start;if(i<t&&t<o){y=[e];break}}T[e]=u(t)||t}}}}if(0!==y.length){const{msg:e,span:{start:t,end:n}}=y[0];throw St(e,{start:{line:t.line+1,column:t.col+1},end:{line:n.line+1,column:n.col+1}})}const _=e=>{const t=e.name.startsWith(":")?e.name.slice(1).split(":")[0]:null,n=e.nameSpan.toString(),r=n.startsWith("".concat(t,":")),s=r?n.slice(t.length+1):n;e.name=s,e.namespace=t,e.hasExplicitNamespace=r},b=(e,t)=>{const n=e.toLowerCase();return t(n)?n:e};return p(new class extends l{visit(e){(e=>{if(e instanceof D)e.type="attribute";else if(e instanceof h)e.type="cdata";else if(e instanceof d)e.type="comment";else if(e instanceof f)e.type="docType";else if(e instanceof m)e.type="element";else{if(!(e instanceof g))throw new Error("Unexpected node ".concat(JSON.stringify(e)));e.type="text"}})(e),(e=>{e instanceof m?(_(e),e.attrs.forEach((e=>{_(e),e.valueSpan?(e.value=e.valueSpan.toString(),/["']/.test(e.value[0])&&(e.value=e.value.slice(1,-1))):e.value=null}))):e instanceof d?e.value=e.sourceSpan.toString().slice("\x3c!--".length,-"--\x3e".length):e instanceof g&&(e.value=e.sourceSpan.toString())})(e),(e=>{if(e instanceof m){const t=C(i?e.name:e.name.toLowerCase());!e.namespace||e.namespace===t.implicitNamespacePrefix||kn(e)?e.tagDefinition=t:e.tagDefinition=C("")}})(e),(e=>{if(e instanceof m&&(!n||e.namespace&&e.namespace!==e.tagDefinition.implicitNamespacePrefix&&!kn(e)||(e.name=b(e.name,(e=>e in wn))),r)){const t=vn[e.name]||Object.create(null);e.attrs.forEach((n=>{n.namespace||(n.name=b(n.name,(n=>e.name in vn&&(n in vn["*"]||n in t))))}))}})(e),(e=>{e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new E(e.sourceSpan.start,e.endSourceSpan.end))})(e)}},T),T}function Bn(e,t,n,r=!0){const{frontMatter:s,content:i}=r?Fn(e):{frontMatter:null,content:e},o=new bn(e,t.filepath),a=new _
|