hljs.registerLanguage("xml",(()=>{"use strict";function e(e){ return e?"string"==typeof e?e:e.source:null}function n(e){return a("(?=",e,")")} function a(...n){return n.map((n=>e(n))).join("")}function s(...n){ return"("+((e=>{const n=e[e.length-1] ;return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{} })(n).capture?"":"?:")+n.map((n=>e(n))).join("|")+")"}return e=>{ const t=a(/[A-Z_]/,a("(?:",/[A-Z0-9_.-]*:/,")?"),/[A-Z0-9_.-]*/),i={ className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/, contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}] },r=e.inherit(c,{begin:/\(/,end:/\)/}),l=e.inherit(e.APOS_STRING_MODE,{ className:"string"}),g=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),m={ endsWithParent:!0,illegal:/`]+/}]}]}]};return{ name:"HTML, XML", aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"], case_insensitive:!0,contains:[{className:"meta",begin://, relevance:10,contains:[c,g,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta", begin://,contains:[c,r,g,l]}]}]},e.COMMENT(//,{ relevance:10}),{begin://,relevance:10},i,{ className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag", begin:/)/,end:/>/,keywords:{name:"style"},contains:[m],starts:{ end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag", begin:/)/,end:/>/,keywords:{name:"script"},contains:[m],starts:{ end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{ className:"tag",begin:/<>|<\/>/},{className:"tag", begin:a(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name", begin:t,relevance:0,starts:m}]},{className:"tag",begin:a(/<\//,n(a(t,/>/))), contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0, endsParent:!0}]}]}}})());