`}}}));function N(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function _a(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function va(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function ya(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ba(e,t){if(t){if(!js.test(e))return R}else if(!As.test(e))return R;let n=ya(e);return Number.isFinite(n)?n:R}function xa(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function Sa(e,t){if(t){if(!Ps.test(e))return R}else if(!Ns.test(e))return R;let n=xa(e);return Number.isFinite(n)?n:R}function Ca(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function wa(e){if(!Is.test(e))return R;let t=Ca(e);return Number.isFinite(t)?t:R}function Ta(e){if(!Rs.test(e))return R;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||zs.test(e)?r:R}function Ea(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function Da(e,t){if(t){if(!Hs.test(e))return R;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:R}if(!Vs.test(e))return R;let n=Number(e);return Number.isFinite(n)?n:R}function Oa(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function ka(e){if(!Ws.test(e))return R;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Gs.test(e)?r:R}function Aa(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}function ja(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!Js.test(t))return R;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e23||o>59||s>59)return R;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;c=+e}let l=Na(n,r,i,a,o,s,c);if(l.getUTCFullYear()!==n||l.getUTCMonth()!==r||l.getUTCDate()!==i)return R;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return R;let r=(e*60+n)*6e4;l.setTime(l.getTime()-(t[9]===`-`?-r:r))}return l}function Fa(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ia(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function La(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Ra(){return{scalar:[],sequence:[],mapping:[]}}function za(e){let t=[];for(let n of e){let e=t.length;for(let r=0;rs&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function Ha(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function Ua(e,t){if(!e.buffer)return null;let n={...cc,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=Va(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${Ha((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=Va(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${Ha((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=Va(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${Ha((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function Wa(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}function Ga(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return` `;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function Ka(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function qa(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Ja(e){return e===120?2:e===117?4:8}function Ya(e,t,n){let r=0;for(;t0;n--){i++;let t=qa(e.charCodeAt(i));a=(a<<4)+t}r+=Ka(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=Ya(e,i,n);r+=Xa(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function eo(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
+`.repeat(e-1)}function Za(e,t,n){let r=``,i=t,a=t,o=t;for(;i0;n--){i++;let t=qa(e.charCodeAt(i));a=(a<<4)+t}r+=Ka(a),i++}a=o=i}else if(t===10||t===13){r+=e.slice(a,o);let t=Ya(e,i,n);r+=Xa(t.breaks),i=a=o=t.position}else i++,t!==32&&t!==9&&(o=i)}return r+e.slice(a,n)}function eo(e,t,n,r,i,a){let o=r<0?0:r,s=e.slice(t,n).replace(/\r\n?/g,`
`),c=s===``?[]:(s.endsWith(`
`)?s.slice(0,-1):s).split(`
`),l=``,u=!1,d=0,f=!1;for(let e of c){let t=0;for(;t=e.length){d++;continue}let n=e.slice(o),i=n.charCodeAt(0);a?i===32||i===9?(f=!0,l+=`
`.repeat(u?1+d:d)):f?(f=!1,l+=`
`.repeat(d+1)):d===0?u&&(l+=` `):l+=`
`.repeat(d):l+=`
-`.repeat(u?1+d:d),l+=n,u=!0,d=0}return i===V.KEEP?l+=`
-`.repeat(u?1+d:d):i!==V.STRIP&&u&&(l+=`
-`),l}function to(e,t){if(t.valueStart===dc)return``;let{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case B.SINGLE_QUOTED:return Qa(e,n,r);case B.DOUBLE_QUOTED:return $a(e,n,r);case B.LITERAL_BLOCK:return eo(e,n,r,t.indent,t.chomping,!1);case B.FOLDED_BLOCK:return eo(e,n,r,t.indent,t.chomping,!0);default:return Za(e,n,r)}}function no(e,t){if(e.startsWith(`!<`)&&e.endsWith(`>`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??mc[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function ro(e){return`tagStart`in e&&e.tagStart!==hc?e.tagStart:`anchorStart`in e&&e.anchorStart!==hc?e.anchorStart:`valueStart`in e&&e.valueStart!==hc?e.valueStart:`start`in e?e.start:0}function P(e,t){lc.throwAt(e.source,e.position,t,e.filename)}function io(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof lc)throw n;lc.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function ao(e,t){let n=to(e.source,t),r=t.tagStart===hc?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=no(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===R&&P(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&P(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:io(e,e.position,o,r),tag:o}}P(e,`unknown scalar tag !<${t}>`)}return t.style===B.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function oo(e,t,n){let r=t.tagStart===hc?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:no(r,e.tagHandlers)}function so(e){return e.nodeKind===`mapping`}function co(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&P(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function lo(e,t,n,r){co(e);for(let i of r.keys(n)){if(co(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&P(e,a),t.overridable??=new Set,t.overridable.add(i)}}function uo(e,t,n,r){if(e.position=t.keyPosition,so(r))lo(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&P(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||P(e,`cannot merge mappings; the provided source object is unacceptable`),lo(e,t,r,n)}}else P(e,`cannot merge mappings; the provided source object is unacceptable`)}function fo(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){uo(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&P(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&P(e,a),t.overridable?.delete(n)}function po(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){so(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&P(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,fo(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===gc}function mo(e,t,n,r,i){if(t.anchorStart!==hc){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function ho(e,t){let n={..._c,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=mo(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case z.MAPPING:{let t=oo(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||P(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=mo(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case z.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&P(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||P(n,`unidentified alias "${t}"`),r.isValueFinal||P(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),po(n,r.value,r.tag);break}case z.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,P(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:io(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),po(n,t,e.tag)}break}}}return n.documents}function go(e,t,n){e.events.push({type:z.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function _o(e,t,n,r,i,a,o){e.events.push({type:z.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function vo(e,t,n,r,i,a,o){e.events.push({type:z.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function yo(e,t){e.events.splice(t.eventsLength,0,{type:z.MAPPING,start:t.position,anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H,style:uc.FLOW})}function bo(e,t,n,r,i,a,o,s,c=V.CLIP,l=-1,u=!1){e.events.push({type:z.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function xo(e,t,n){e.events.push({type:z.ALIAS,anchorStart:t,anchorEnd:n})}function So(e){e.events.push({type:z.POP})}function Co(e){bo(e,H,H,H,H,H,H,B.PLAIN)}function wo(){return{anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H}}function To(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Eo(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function F(e,t){lc.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function I(e){return e===10||e===13}function Do(e){return e===9||e===32}function Oo(e){return Do(e)||I(e)}function ko(e){return e===0||Oo(e)}function Ao(e){return e===44||e===91||e===93||e===123||e===125}function jo(e){return e>=48&&e<=57?e-48:-1}function Mo(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function No(e){return e===120?2:e===117?4:e===85?8:0}function Po(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function Fo(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function L(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Oo(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Do(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!I(r)&&r!==0);if(!I(r))break;for(Fo(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Io(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||Oo(n)}return!1}function Lo(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Ro(e){if(e.position!==e.lineStart)return!1;if(Io(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=To(e);Lo(e),L(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Io(e));return Eo(e,t),r}function zo(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!I(t);)t=e.input.charCodeAt(++e.position)}function Bo(e,t,n){Cc.test(e.input.slice(t,n))&&F(e,`the stream contains non-printable characters`)}function Vo(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==H&&F(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&F(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!Oo(s)&&!(n&&Ao(s));)s===33&&(a?F(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Tc.test(o)||F(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),wc.test(l)&&F(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?Oc.test(l):kc.test(l))&&F(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!vc.call(e.tagHandlers,o)&&F(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function Ho(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==H&&F(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position))&&!Ao(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&F(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Uo(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==H||t.tagStart!==H)&&F(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position))&&!Ao(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&F(e,`name of an alias node must contain at least one character`),xo(e,n,e.position),!0}function Wo(e,t){L(e,!1),e.lineIndent0;)e.position++,Mo(e.input.charCodeAt(e.position))<0&&F(e,`expected hexadecimal character`);e.position++}}else I(a)?(i=!1,Wo(e,t)):e.position===e.lineStart&&Io(e)?F(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?F(e,`expected valid JSON character`):e.position++}F(e,`unexpected end of the stream within a double quoted scalar`)}function qo(e,t,n){let r=e.input.charCodeAt(e.position),i=V.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?B.LITERAL_BLOCK:B.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=jo(n);if(n===43||n===45)i!==V.CLIP&&F(e,`repeat of a chomping mode identifier`),i=n===43?V.KEEP:V.STRIP,e.position++;else if(r>=0)r===0&&F(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&F(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;Do(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&zo(e),I(e.input.charCodeAt(e.position))?Fo(e):e.input.charCodeAt(e.position)!==0&&F(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(Ro(e))break;if(!o&&l===-1&&I(i)&&(u=Math.max(u,r)),!o&&l===-1&&!I(i)&&(i===9&&r=t&&r=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}Do(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(Bo(e,i,a),bo(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,B.PLAIN,V.CLIP,-1,!c),!0)}function Xo(e,t){let n=e.line;L(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&ko(e.input.charCodeAt(e.position+1))&&F(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?Co(e):es(e,t,xc,!1,!0),L(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&F(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&ko(e.input.charCodeAt(e.position+1))&&F(e,`bad indentation of a sequence entry`)}return So(e),!0}function $o(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,F(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&ko(l))o||=(vo(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,uc.BLOCK),!0),c===63?(i&&Co(e),a=!0,i=!0):i?i=!1:(Co(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(Co(e),!1);let t=To(e);if(!es(e,n,bc,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);Do(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),ko(c)||F(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:z.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:uc.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)F(e,`expected ':' after a mapping key`);else return r.anchorStart!==H||r.tagStart!==H?(Eo(e,t),!1):!0}else if(a)F(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==H||r.tagStart!==H?(Eo(e,t),!1):!0}if(es(e,t,Sc,!0,s)&&(s=!1),i||(s&&=(Co(e),!1)),L(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)F(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&F(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=wo(),d=n===Sc||n===xc,f=d,p=d;if(r&&L(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=To(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==H||u.anchorStart!==H)&&(r===33||r===38)){let n=To(e),r=t+1;if($o(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===z.MAPPING)return e.depth--,!0;Eo(e,n)}if(s&&(r===33&&u.tagStart!==H||r===38&&u.anchorStart!==H)||!Vo(e,u,n===yc)&&!Ho(e,u))break;l===null&&(l=i),L(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===Sc){let r=n===yc||n===bc?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Qo(e,i,u)||$o(e,i,r,u))||Zo(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=To(e),n=l.position-l.lineStart;Eo(e,l),$o(e,n,r,wo())&&e.events[t.eventsLength]?.type===z.MAPPING?c=!0:Eo(e,t)}!c&&(d&&qo(e,r,u)||Go(e,r,u)||Ko(e,r,u)||Uo(e,u)||Yo(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Qo(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==H||u.tagStart!==H||d)&&(bo(e,H,H,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,B.PLAIN),c=!0),e.depth--,c||u.anchorStart!==H||u.tagStart!==H}function ts(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&F(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!I(e.input.charCodeAt(e.position));){for(;Do(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||I(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(I(e.input.charCodeAt(e.position))&&Fo(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&F(e,`duplication of %YAML directive`),r.length!==1&&F(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&F(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&F(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&F(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Tc.test(t)||F(e,`ill-formed tag handle (first argument) of the TAG directive`),vc.call(e.tagHandlers,t)&&F(e,`there is a previously declared suffix for "${t}" tag handle`),Ac.test(n)||F(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function ns(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(L(e,!0);ts(e);)t=!0,L(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&ko(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,L(e,!0),i=e.line>t}else t&&F(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Io(e)){e.position+=3,L(e,!0);return}if(go(e,n,!1),es(e,e.lineIndent-1,Sc,!1,i,i)||Co(e),L(e,!0),e.position===e.lineStart&&Io(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,L(e,!0),e.line===t&&e.position=r.length));){let e=r.position;ns(r),r.position===e&&F(r,`can not read a document`)}return r.events}function is(e,t={}){let n={...Mc,...t},r=String(e),i=Object.keys(jc),a=Object.keys(_c);return ho(rs(r,Ia(n,i)),{...Ia(n,a),source:r})}function as(e,t){let n=is(e,t);if(n.length===0)throw new lc(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new lc(`expected a single document in the stream, but found more`)}function os(e,t){return!!(e&1<`))return decodeURIComponent(e.slice(2,-1));let n=e.indexOf(`!`,1),r=n===-1?`!`:e.slice(0,n+1),i=t?.[r]??hc[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function ro(e){return`tagStart`in e&&e.tagStart!==gc?e.tagStart:`anchorStart`in e&&e.anchorStart!==gc?e.anchorStart:`valueStart`in e&&e.valueStart!==gc?e.valueStart:`start`in e?e.start:0}function P(e,t){lc.throwAt(e.source,e.position,t,e.filename)}function io(e,t,n,r){try{return n.finalize(r)}catch(n){if(n instanceof lc)throw n;lc.throwAt(e.source,t,n instanceof Error?n.message:String(n),e.filename)}}function ao(e,t){let n=to(e.source,t),r=t.tagStart===gc?``:e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==``){if(r===`!`)return{value:n,tag:i};let t=no(r,e.tagHandlers),a=e.schema.lookupScalarTag(t);if(a){let r=a.resolve(n,!0,t);return r===R&&P(e,`cannot resolve a node with !<${t}> explicit tag`),{value:r,tag:a}}let o=e.schema.lookupMappingTag(t)??e.schema.lookupSequenceTag(t);if(o){n!==``&&P(e,`cannot resolve a node with !<${t}> explicit tag`);let r=o.create(t);return{value:o.carrierIsResult?r:io(e,e.position,o,r),tag:o}}P(e,`unknown scalar tag !<${t}>`)}return t.style===B.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function oo(e,t,n){let r=t.tagStart===gc?``:e.source.slice(t.tagStart,t.tagEnd);return r===``||r===`!`?n:no(r,e.tagHandlers)}function so(e){return e.nodeKind===`mapping`}function co(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&P(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function lo(e,t,n,r){co(e);for(let i of r.keys(n)){if(co(e),t.tag.has(t.value,i))continue;let a=t.tag.addPair(t.value,i,r.get(n,i));a&&P(e,a),t.overridable??=new Set,t.overridable.add(i)}}function uo(e,t,n,r){if(e.position=t.keyPosition,so(r))lo(e,t,n,r);else if(r.nodeKind===`sequence`&&Array.isArray(n)){n.length>100&&P(e,`abnormal merge sequence size`);for(let r of n){let n=e.nodeTags.get(r);n||P(e,`cannot merge mappings; the provided source object is unacceptable`),lo(e,t,r,n)}}else P(e,`cannot merge mappings; the provided source object is unacceptable`)}function fo(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){uo(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&P(e,`duplicated mapping key`);let a=t.tag.addPair(t.value,n,r);a&&P(e,a),t.overridable?.delete(n)}function po(e,t,n){let r=e.frames[e.frames.length-1];if(r.kind===`document`)r.value=t,r.hasValue=!0;else if(r.kind===`sequence`){so(n)&&e.nodeTags.set(t,n);let i=r.tag.addItem(r.value,t,r.index++);i&&P(e,i)}else if(r.hasKey){let i=r.key;r.key=void 0,r.hasKey=!1,fo(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===_c}function mo(e,t,n,r,i){if(t.anchorStart!==gc){let a={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),a),a}return null}function ho(e,t){let n={...vc,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex`);let i=r.create(t),a=mo(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`sequence`,position:n.position,value:i,tag:r,anchor:a,index:0});break}case z.MAPPING:{let t=oo(n,e,`tag:yaml.org,2002:map`),r=n.schema.lookupMappingTag(t);r||P(n,`unknown mapping tag !<${t}>`);let i=r.create(t),a=mo(n,e,i,r,r.carrierIsResult);n.frames.push({kind:`mapping`,position:n.position,value:i,tag:r,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case z.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&P(n,`aliases exceeded maxAliases (${n.maxAliases})`);let t=n.source.slice(e.anchorStart,e.anchorEnd),r=n.anchors.get(t);r||P(n,`unidentified alias "${t}"`),r.isValueFinal||P(n,`recursive alias "${t}" is not supported for tag ${r.tag.tagName} because it uses finalize()`),po(n,r.value,r.tag);break}case z.POP:{let e=n.frames.pop();if(e.kind===`mapping`&&e.hasKey&&(n.position=e.keyPosition,P(n,`incomplete mapping pair in event stream`)),e.kind===`document`)n.documents.push(e.value);else{let t=e.tag.carrierIsResult?e.value:io(n,e.position,e.tag,e.value);e.anchor&&(e.anchor.value=t,e.anchor.isValueFinal=!0),po(n,t,e.tag)}break}}}return n.documents}function go(e,t,n){e.events.push({type:z.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function _o(e,t,n,r,i,a,o){e.events.push({type:z.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function vo(e,t,n,r,i,a,o){e.events.push({type:z.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:a,style:o})}function yo(e,t){e.events.splice(t.eventsLength,0,{type:z.MAPPING,start:t.position,anchorStart:V,anchorEnd:V,tagStart:V,tagEnd:V,style:uc.FLOW})}function bo(e,t,n,r,i,a,o,s,c=dc.CLIP,l=-1,u=!1){e.events.push({type:z.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:a,tagEnd:o,style:s,chomping:c,indent:l,fast:u})}function xo(e,t,n){e.events.push({type:z.ALIAS,anchorStart:t,anchorEnd:n})}function So(e){e.events.push({type:z.POP})}function Co(e){bo(e,V,V,V,V,V,V,B.PLAIN)}function wo(){return{anchorStart:V,anchorEnd:V,tagStart:V,tagEnd:V}}function To(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Eo(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function F(e,t){lc.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function I(e){return e===10||e===13}function Do(e){return e===9||e===32}function Oo(e){return Do(e)||I(e)}function ko(e){return e===0||Oo(e)}function Ao(e){return e===44||e===91||e===93||e===123||e===125}function jo(e){return e>=48&&e<=57?e-48:-1}function Mo(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function No(e){return e===120?2:e===117?4:e===85?8:0}function Po(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function Fo(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function L(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||Oo(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Do(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!I(r)&&r!==0);if(!I(r))break;for(Fo(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Io(e,t=e.position){let n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||Oo(n)}return!1}function Lo(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Ro(e){if(e.position!==e.lineStart)return!1;if(Io(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=To(e);Lo(e),L(e,!0);let n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Io(e));return Eo(e,t),r}function zo(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!I(t);)t=e.input.charCodeAt(++e.position)}function Bo(e,t,n){wc.test(e.input.slice(t,n))&&F(e,`the stream contains non-printable characters`)}function Vo(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==V&&F(e,`duplication of a tag property`);let r=e.position,i=!1,a=!1,o=`!`,s=e.input.charCodeAt(++e.position);s===60?(i=!0,s=e.input.charCodeAt(++e.position)):s===33&&(a=!0,o=`!!`,s=e.input.charCodeAt(++e.position));let c=e.position,l;if(i){for(;s!==0&&s!==62;)s=e.input.charCodeAt(++e.position);s!==62&&F(e,`unexpected end of the stream within a verbatim tag`),l=e.input.slice(c,e.position),e.position++}else{for(;s!==0&&!Oo(s)&&!(n&&Ao(s));)s===33&&(a?F(e,`tag suffix cannot contain exclamation marks`):(o=e.input.slice(c-1,e.position+1),Ec.test(o)||F(e,`named tag handle cannot contain such characters`),a=!0,c=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),Tc.test(l)&&F(e,`tag suffix cannot contain flow indicator characters`)}return l&&!(i?kc.test(l):Ac.test(l))&&F(e,`tag name cannot contain such characters: ${l}`),!i&&o!==`!`&&o!==`!!`&&!yc.call(e.tagHandlers,o)&&F(e,`undeclared tag handle "${o}"`),t.tagStart=r,t.tagEnd=e.position,!0}function Ho(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==V&&F(e,`duplication of an anchor property`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position))&&!Ao(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&F(e,`name of an anchor node must contain at least one character`),t.anchorStart=n,t.anchorEnd=e.position,!0}function Uo(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==V||t.tagStart!==V)&&F(e,`alias node should not have any properties`),e.position++;let n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position))&&!Ao(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&F(e,`name of an alias node must contain at least one character`),xo(e,n,e.position),!0}function Wo(e,t){L(e,!1),e.lineIndent0;)e.position++,Mo(e.input.charCodeAt(e.position))<0&&F(e,`expected hexadecimal character`);e.position++}}else I(a)?(i=!1,Wo(e,t)):e.position===e.lineStart&&Io(e)?F(e,`unexpected end of the document within a double quoted scalar`):a!==9&&a<32?F(e,`expected valid JSON character`):e.position++}F(e,`unexpected end of the stream within a double quoted scalar`)}function qo(e,t,n){let r=e.input.charCodeAt(e.position),i=dc.CLIP,a=-1,o=!1;if(r!==124&&r!==62)return!1;let s=r===124?B.LITERAL_BLOCK:B.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let n=e.input.charCodeAt(e.position),r=jo(n);if(n===43||n===45)i!==dc.CLIP&&F(e,`repeat of a chomping mode identifier`),i=n===43?dc.KEEP:dc.STRIP,e.position++;else if(r>=0)r===0&&F(e,`bad explicit indentation width of a block scalar; it cannot be less than one`),o&&F(e,`repeat of an indentation width identifier`),a=t+r-1,o=!0,e.position++;else break}let c=!1;for(;Do(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&zo(e),I(e.input.charCodeAt(e.position))?Fo(e):e.input.charCodeAt(e.position)!==0&&F(e,`a line break is expected`);let l=o?a:-1,u=0,d=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let n=e.position,r=0;for(;e.input.charCodeAt(n+r)===32;)r++;let i=e.input.charCodeAt(n+r);if(i===0){l>=0?r>l&&(f=n+r):r>0&&(f=n+r);break}if(Ro(e))break;if(!o&&l===-1&&I(i)&&(u=Math.max(u,r)),!o&&l===-1&&!I(i)&&(i===9&&r=t&&r=t){c=!0,o=e.input.charCodeAt(e.position);continue}e.position=n,e.line=r,e.lineStart=i,e.lineIndent=a;break}Do(o)||(a=e.position+1),o=e.input.charCodeAt(++e.position)}return a!==i&&(Bo(e,i,a),bo(e,i,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,B.PLAIN,dc.CLIP,-1,!c),!0)}function Xo(e,t){let n=e.line;L(e,!0),(e.line>n&&e.lineIndent0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&ko(e.input.charCodeAt(e.position+1))&&F(e,`bad indentation of a sequence entry`),r&&e.lineIndent<=t?Co(e):es(e,t,Sc,!1,!0),L(e,!0),e.lineIndent=e.length)break;e.lineIndent>t&&F(e,`bad indentation of a sequence entry`),e.line===n&&e.input.charCodeAt(e.position)===45&&ko(e.input.charCodeAt(e.position+1))&&F(e,`bad indentation of a sequence entry`)}return So(e),!0}function $o(e,t,n,r){let i=!1,a=!1,o=!1,s=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,F(e,`tab characters must not be used in indentation`));let l=e.input.charCodeAt(e.position+1),u=e.line;if((c===63||c===58)&&ko(l))o||=(vo(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,uc.BLOCK),!0),c===63?(i&&Co(e),a=!0,i=!0):i?i=!1:(Co(e),a=!0,i=!1),e.position+=1,s=!0;else{i&&=(Co(e),!1);let t=To(e);if(!es(e,n,xc,!1,!0))break;if(e.line===u){for(c=e.input.charCodeAt(e.position);Do(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),ko(c)||F(e,`a whitespace character is expected after the key-value separator within a block mapping`),o||=(e.events.splice(t.eventsLength,0,{type:z.MAPPING,start:t.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:uc.BLOCK}),!0),a=!0,i=!1,s=!1;else if(a)F(e,`expected ':' after a mapping key`);else return r.anchorStart!==V||r.tagStart!==V?(Eo(e,t),!1):!0}else if(a)F(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return r.anchorStart!==V||r.tagStart!==V?(Eo(e,t),!1):!0}if(es(e,t,Cc,!0,s)&&(s=!1),i||(s&&=(Co(e),!1)),L(e,!0),c=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&c!==0)F(e,`bad indentation of a mapping entry`);else if(e.lineIndent=e.maxDepth&&F(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let o=1,s=!1,c=!1,l=null,u=wo(),d=n===Cc||n===Sc,f=d,p=d;if(r&&L(e,!0)&&(s=!0,o=e.lineIndent>t?1:e.lineIndent===t?0:-1),o===1)for(;;){let r=e.input.charCodeAt(e.position),i=To(e);if(s&&o!==1&&(r===33||r===38))break;if(s&&p&&(u.tagStart!==V||u.anchorStart!==V)&&(r===33||r===38)){let n=To(e),r=t+1;if($o(e,e.position-e.lineStart,r,u)&&e.events[n.eventsLength]?.type===z.MAPPING)return e.depth--,!0;Eo(e,n)}if(s&&(r===33&&u.tagStart!==V||r===38&&u.anchorStart!==V)||!Vo(e,u,n===bc)&&!Ho(e,u))break;l===null&&(l=i),L(e,!0)?(s=!0,f=p,o=e.lineIndent>t?1:e.lineIndent===t?0:-1):f=!1}if(f&&=s||i,o===1||n===Cc){let r=n===bc||n===xc?t:t+1,i=e.position-e.lineStart;if(o===1){if(f&&(Qo(e,i,u)||$o(e,i,r,u))||Zo(e,r,u))c=!0;else{let t=e.input.charCodeAt(e.position);if(l!==null&&a&&p&&!f&&t!==124&&t!==62){let t=To(e),n=l.position-l.lineStart;Eo(e,l),$o(e,n,r,wo())&&e.events[t.eventsLength]?.type===z.MAPPING?c=!0:Eo(e,t)}!c&&(d&&qo(e,r,u)||Go(e,r,u)||Ko(e,r,u)||Uo(e,u)||Yo(e,r,n,u))&&(c=!0)}}else o===0&&(c=f&&Qo(e,i,u))}return d&&=!c,!c&&(u.anchorStart!==V||u.tagStart!==V||d)&&(bo(e,V,V,u.anchorStart,u.anchorEnd,u.tagStart,u.tagEnd,B.PLAIN),c=!0),e.depth--,c||u.anchorStart!==V||u.tagStart!==V}function ts(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position));)e.position++;let n=e.input.slice(t,e.position),r=[];for(n.length===0&&F(e,`directive name must not be less than one character in length`);e.input.charCodeAt(e.position)!==0&&!I(e.input.charCodeAt(e.position));){for(;Do(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||I(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Oo(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(t,e.position))}if(I(e.input.charCodeAt(e.position))&&Fo(e),n===`YAML`){e.directives.some(e=>e.kind===`yaml`)&&F(e,`duplication of %YAML directive`),r.length!==1&&F(e,`YAML directive accepts exactly one argument`);let t=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);t===null&&F(e,`ill-formed argument of the YAML directive`),parseInt(t[1],10)!==1&&F(e,`unacceptable YAML version of the document`),e.directives.push({kind:`yaml`,version:r[0]})}else if(n===`TAG`){r.length!==2&&F(e,`TAG directive accepts exactly two arguments`);let[t,n]=r;Ec.test(t)||F(e,`ill-formed tag handle (first argument) of the TAG directive`),yc.call(e.tagHandlers,t)&&F(e,`there is a previously declared suffix for "${t}" tag handle`),jc.test(n)||F(e,`ill-formed tag prefix (second argument) of the TAG directive`),e.tagHandlers[t]=n,e.directives.push({kind:`tag`,handle:t,prefix:n})}return!0}function ns(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(L(e,!0);ts(e);)t=!0,L(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&ko(e.input.charCodeAt(e.position+3))){n=!0;let t=e.line;e.position+=3,L(e,!0),i=e.line>t}else t&&F(e,`directives end mark is expected`);let a=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Io(e)){e.position+=3,L(e,!0);return}if(go(e,n,!1),es(e,e.lineIndent-1,Cc,!1,i,i)||Co(e),L(e,!0),e.position===e.lineStart&&Io(e)&&(r=e.input.charCodeAt(e.position)===46,r)){let t=e.line;e.position+=3,L(e,!0),e.line===t&&e.position=r.length));){let e=r.position;ns(r),r.position===e&&F(r,`can not read a document`)}return r.events}function is(e,t={}){let n={...Nc,...t},r=String(e),i=Object.keys(Mc),a=Object.keys(vc);return ho(rs(r,Ia(n,i)),{...Ia(n,a),source:r})}function as(e,t){let n=is(e,t);if(n.length===0)throw new lc(`expected a document, but the input is empty`);if(n.length===1)return n[0];throw new lc(`expected a single document in the stream, but found more`)}function os(e,t){return!!(e&1<i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=B.FOLDED_BLOCK:n&&(e.style=B.LITERAL_BLOCK)}function ps(e){e.style===B.PLAIN&&!os(e.allowedStylesMask,B.PLAIN)&&(e.style=ss(e))}function ms(e){os(e.allowedStylesMask,e.style)||(e.style=B.DOUBLE_QUOTED)}var R,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,z,B,uc,V,dc,fc,pc,mc,hc,gc,_c,H,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol=o((()=>{R=Symbol(`NOT_RESOLVED`),hs=N(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),gs=[``,`~`,`null`,`Null`,`NULL`],_s=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>gs.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),vs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:R,identify:e=>e===null,represent:()=>`null`}),ys=[``,`~`,`null`,`Null`,`NULL`],bs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>ys.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),xs=[`true`,`True`,`TRUE`],Ss=[`false`,`False`,`FALSE`],Cs=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>xs.indexOf(e)!==-1||Ss.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),ws=[`true`],Ts=[`false`],Es=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>ws.indexOf(e)!==-1||Ts.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Ds=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],Os=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ks=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>Ds.indexOf(e)!==-1||Os.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),As=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),js=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Ms=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:ba,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ns=RegExp(`^-?(?:0|[1-9][0-9]*)$`),Ps=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Fs=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Sa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Is=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),Ls=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:wa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Rs=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),zs=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Bs=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Ta,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ea}),Vs=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Hs=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Us=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Da,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Oa}),Ws=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Gs=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ks=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:ka,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Aa}),qs=N(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:R,identify:()=>!1}),Js=/^[A-Za-z0-9+/]*={0,2}$/,Ys=N(`tag:yaml.org,2002:binary`,{resolve:ja,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Ma}),Xs=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Zs=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`),Qs=N(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Pa,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),$s=_a(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),ec=_a(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Fa(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),tc=_a(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),nc=va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),rc=va(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),ic=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=za(e),n=[],r=La(),i=Ra();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==R)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},ac=new ic([hs,$s,nc]),new ic([...ac.tags,vs,Es,Fs,Us]),oc=new ic([...ac.tags,_s,Cs,Ms,Bs]),sc=new ic([...ac.tags,bs,ks,Ls,Ks,Qs,qs,Ys,ec,tc,rc]),sc.withTags({...Ls,resolve:(e,t,n)=>{let r=Ls.resolve(e,t,n);return r===R?Ms.resolve(e,t,n):r}},{...Ks,resolve:(e,t,n)=>{let r=Ks.resolve(e,t,n);return r===R?Bs.resolve(e,t,n):r}}),va(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Fa(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Ba(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Ba(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),cc={maxLength:79,indent:1,linesBefore:3,linesAfter:2},lc=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Wa(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Wa(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,Hc=`[,\\[\\]{}]`,Uc=zc,Wc=`(?:(?!${Hc})${zc})`,Gc=`(?:(?:(?!${Vc})${zc})|[?:-](?=${Uc}))`,Kc=`(?:(?:(?!${Vc})${zc})|[?:-](?=${Wc}))`,qc=`(?:(?:(?![:#])${Uc})|:(?=${Uc}))#*`,Jc=`(?:(?:(?![:#])${Wc})|:(?=${Wc}))#*`,Yc=`(?:${Lc}*${qc})*`,Xc=`(?:${Lc}*${Jc})*`,Zc=`${Gc}#*${Yc}`,Qc=`${Kc}#*${Xc}`,$c=Zc,el=Qc,tl=`\\n+${qc}${Yc}`,nl=`\\n+${Jc}${Xc}`,rl=`${Zc}(?:${tl})*`,il=`${Qc}(?:${nl})*`,RegExp(`^(?:${rl})$`,`u`),RegExp(`^(?:${il})$`,`u`),RegExp(`^(?:${$c})$`,`u`),RegExp(`^(?:${el})$`,`u`),RegExp(`^(?:${Bc})*$`,`u`),RegExp(`^(?:${Bc}|\\n)*$`,`u`),RegExp(`^(?:${Rc}|\\n)*$`,`u`),al={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(Nc).map(e=>Reflect.get(Nc,e)),tagBeforeAnchor:!1},{...al},z.DOCUMENT,z.SEQUENCE,z.MAPPING,z.SCALAR,z.ALIAS,z.POP,B.PLAIN,B.SINGLE_QUOTED,B.DOUBLE_QUOTED,B.LITERAL_BLOCK,B.FOLDED_BLOCK,uc.BLOCK,uc.FLOW,V.CLIP,V.STRIP,V.KEEP})),sl=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var c,l,u,d,f,p,m,h=!1,g=e.bMarks[a]+e.tShift[a],_=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(c=g+1;c<=_;c++)if(n[(c-g)%i]!==e.src[c]){m=c+1;break}if(u=Math.floor((c-g)/i),u<3)return!1;if(c-=(c-g)%i,s)return!0;for(l=a;l++,!(l>=o||e.src.slice(g,_)===`...`||(g=e.bMarks[l]+e.tShift[l],_=e.eMarks[l],g<_&&e.sCount[l]=4)){for(c=g+1;c<=_&&n[(c-g)%i]===e.src[c];c++);if(!(Math.floor((c-g)/i){let t=``;e.use(ml.default,n=>{let r=ll(n);t=r===void 0?``:ul(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`
`}return t(String(e))}function fl(e){if(Number.isNaN(e.getTime()))return``;let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t}function pl(e){if(e==null||e instanceof Date)return!0;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===`bigint`}var ml,hl=o((()=>{ol(),ml=u(sl())}));function gl(e,t={}){return e??t}function _l(e,t=!0){return e??t}function vl(e){if(e){if(!Array.isArray(e)||!e.every(e=>typeof e==`object`&&!!e&&`left`in e&&typeof e.left==`string`&&`right`in e&&typeof e.right==`string`&&`display`in e&&typeof e.display==`boolean`))throw TypeError(`Invalid mathDelimiters setting: expected an array of { left: string, right: string, display: boolean }`);return e}}var yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl=o((()=>{yl={rootValueKey:`extension.markeditPreview`,defaultModes:[`edit`,`side-by-side`,`preview`,`syntax-hidden`],defaultPreset:`default`},bl=gl(gl(f.MarkEdit.userSettings)[yl.rootValueKey]),xl=gl(bl.changeMode),Sl=gl(bl.markdownIt),Cl=_l(bl.syncScroll),bl.hidePreviewButtons,bl.syntaxAutoDetect,wl=_l(bl.imageHoverPreview,!1),Tl=_l(bl.inlineImages,!1),El=Array.isArray(bl.inlineRendering)?bl.inlineRendering.filter(e=>e===`image`||e===`table`||e===`math`||e===`mermaid`||e===`html`):Tl?[`image`,`math`,`mermaid`]:[`math`,`mermaid`],Dl=bl.themeName??`github`,Ol=Dl===`none`,kl=bl.styledHtmlColorScheme??bl.styledHtmlTheme??`auto`,vl(bl.mathDelimiters),Al=xl.modes??yl.defaultModes,jl=gl(xl.hotKey),Ml=Sl.preset??yl.defaultPreset,Nl=gl(Sl.options)})),Fl,Il=o((()=>{Fl=`.markdown-body {
+`,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=B.FOLDED_BLOCK:n&&(e.style=B.LITERAL_BLOCK)}function ps(e){e.style===B.PLAIN&&!os(e.allowedStylesMask,B.PLAIN)&&(e.style=ss(e))}function ms(e){os(e.allowedStylesMask,e.style)||(e.style=B.DOUBLE_QUOTED)}var R,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,z,B,uc,dc,fc,pc,mc,hc,gc,_c,vc,V,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl=o((()=>{R=Symbol(`NOT_RESOLVED`),hs=N(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),gs=[``,`~`,`null`,`Null`,`NULL`],_s=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>gs.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),vs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:R,identify:e=>e===null,represent:()=>`null`}),ys=[``,`~`,`null`,`Null`,`NULL`],bs=N(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>ys.indexOf(e)===-1?R:null,identify:e=>e===null,represent:()=>`null`}),xs=[`true`,`True`,`TRUE`],Ss=[`false`,`False`,`FALSE`],Cs=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>xs.indexOf(e)!==-1||Ss.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),ws=[`true`],Ts=[`false`],Es=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>ws.indexOf(e)!==-1||Ts.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),Ds=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],Os=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],ks=N(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>Ds.indexOf(e)!==-1||Os.indexOf(e)===-1&&R,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),As=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),js=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Ms=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:ba,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ns=RegExp(`^-?(?:0|[1-9][0-9]*)$`),Ps=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Fs=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Sa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Is=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`),Ls=N(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:wa,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Rs=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),zs=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Bs=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Ta,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ea}),Vs=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Hs=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Us=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Da,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Oa}),Ws=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Gs=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Ks=N(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:ka,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Aa}),qs=N(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:R,identify:()=>!1}),Js=/^[A-Za-z0-9+/]*={0,2}$/,Ys=N(`tag:yaml.org,2002:binary`,{resolve:ja,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Ma}),Xs=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Zs=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`),Qs=N(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:Pa,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),$s=_a(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray}),ec=_a(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Fa(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),tc=_a(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),nc=va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),rc=va(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null}),ic=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=za(e),n=[],r=La(),i=Ra();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==R)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},ac=new ic([hs,$s,nc]),new ic([...ac.tags,vs,Es,Fs,Us]),oc=new ic([...ac.tags,_s,Cs,Ms,Bs]),sc=new ic([...ac.tags,bs,ks,Ls,Ks,Qs,qs,Ys,ec,tc,rc]),sc.withTags({...Ls,resolve:(e,t,n)=>{let r=Ls.resolve(e,t,n);return r===R?Ms.resolve(e,t,n):r}},{...Ks,resolve:(e,t,n)=>{let r=Ks.resolve(e,t,n);return r===R?Bs.resolve(e,t,n):r}}),va(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Fa(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}}),va(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Fa,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=Ba(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=Ba(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),cc={maxLength:79,indent:1,linesBefore:3,linesAfter:2},lc=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Wa(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Wa(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e'"%@\`]`,Uc=`[,\\[\\]{}]`,Wc=Bc,Gc=`(?:(?!${Uc})${Bc})`,Kc=`(?:(?:(?!${Hc})${Bc})|[?:-](?=${Wc}))`,qc=`(?:(?:(?!${Hc})${Bc})|[?:-](?=${Gc}))`,Jc=`(?:(?:(?![:#])${Wc})|:(?=${Wc}))#*`,Yc=`(?:(?:(?![:#])${Gc})|:(?=${Gc}))#*`,Xc=`(?:${Rc}*${Jc})*`,Zc=`(?:${Rc}*${Yc})*`,Qc=`${Kc}#*${Xc}`,$c=`${qc}#*${Zc}`,el=Qc,tl=$c,nl=`\\n+${Jc}${Xc}`,rl=`\\n+${Yc}${Zc}`,il=`${Qc}(?:${nl})*`,al=`${$c}(?:${rl})*`,RegExp(`^(?:${il})$`,`u`),RegExp(`^(?:${al})$`,`u`),RegExp(`^(?:${el})$`,`u`),RegExp(`^(?:${tl})$`,`u`),RegExp(`^(?:${Vc})*$`,`u`),RegExp(`^(?:${Vc}|\\n)*$`,`u`),RegExp(`^(?:${zc}|\\n)*$`,`u`),ol={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(Pc).map(e=>Reflect.get(Pc,e)),tagBeforeAnchor:!1},{...ol},z.DOCUMENT,z.SEQUENCE,z.MAPPING,z.SCALAR,z.ALIAS,z.POP,B.PLAIN,B.SINGLE_QUOTED,B.DOUBLE_QUOTED,B.LITERAL_BLOCK,B.FOLDED_BLOCK,uc.BLOCK,uc.FLOW,dc.CLIP,dc.STRIP,dc.KEEP})),cl=s(((e,t)=>{t.exports=function(e,t){var n=`-`,r=n.charCodeAt(0),i=n.length;function a(e,a,o,s){var c,l,u,d,f,p,m,h=!1,g=e.bMarks[a]+e.tShift[a],_=e.eMarks[a];if(a!==0||r!==e.src.charCodeAt(0))return!1;for(c=g+1;c<=_;c++)if(n[(c-g)%i]!==e.src[c]){m=c+1;break}if(u=Math.floor((c-g)/i),u<3)return!1;if(c-=(c-g)%i,s)return!0;for(l=a;l++,!(l>=o||e.src.slice(g,_)===`...`||(g=e.bMarks[l]+e.tShift[l],_=e.eMarks[l],g<_&&e.sCount[l]=4)){for(c=g+1;c<=_&&n[(c-g)%i]===e.src[c];c++);if(!(Math.floor((c-g)/i){let t=``;e.use(hl.default,n=>{let r=ul(n);t=r===void 0?``:dl(r,e.utils.escapeHtml)}),e.renderer.rules.front_matter=(e,n,r,i,a)=>t===``?``:`
`,t(Cu(kl)),t(Tu(kl)),t(Eu(kl)),t(Du()),``].join(`
-`)}var Hu,Uu,W,Wu,Gu,Ku,qu=o((()=>{Ri(),ea(),Hu=u(ta()),da(),Uu=u(fa()),ga(),hl(),Au(),Pu(),Iu(),Pl(),W=Li(Ml,{html:!0,breaks:!0,linkify:!0,...Nl}),W.linkify.set({fuzzyLink:!0,urlAuth:!0}),Wu=[],W.use(cl()),W.use(Gi),W.use(Hu.default,{matcher:e=>!e.startsWith(`#`),attrs:{target:`_blank`,rel:`noopener`}}),W.use(ua),W.use(Uu.default,{enabled:Fu(),label:!0}),W.use(ha),Gu=new Set([`paragraph_open`,`heading_open`,`blockquote_open`,`list_item_open`,`bullet_list_open`,`ordered_list_open`,`fence`,`code_block`,`table_open`,`html_block`,`front_matter`]),Ku=Promise.all(Wu).then(()=>{for(let e of Gu){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>{let o=e[n];return i?.lineInfo&&o.map?.length===2&&(o.attrSet(`data-line-from`,String(o.map[0])),o.attrSet(`data-line-to`,String(o.map[1]-1))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}for(let e of[`fence`,`code_block`]){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>`
+ }`)}return r}var Mu,Nu=o((()=>{ue(),Il(),zl(),Vl(),Ul(),Gl(),ql(),Yl(),Zl(),$l(),tu(),ru(),au(),su(),lu(),du(),pu(),hu(),_u(),yu(),xu(),Cu(),Tu(),Mu={github:{light:Bl,dark:Hl},cobalt:{dark:Wl},dracula:{dark:Kl},minimal:{light:Jl,dark:Xl},"night-owl":{dark:Ql},"rose-pine":{light:eu,dark:nu},solarized:{light:iu,dark:ou},synthwave84:{dark:cu},"winter-is-coming":{light:uu,dark:fu},xcode:{light:mu,dark:gu}}}));function U(e){return Iu[e]}var Pu,Fu,Iu,Lu=o((()=>{Pu={default:{viewMode:`View Mode`,changeMode:`Change Mode`,editMode:`Markdown Source`,sideBySideMode:`Preview (Side-by-Side)`,previewMode:`Preview (Overlay)`,syntaxHiddenMode:`Mixed (Syntax Hidden)`,saveCleanHtml:`Save Clean HTML`,saveStyledHtml:`Save Styled HTML`,copyHtml:`Copy HTML`,copyRichText:`Copy Rich Text`,copyCode:`Copy Code`,failedToCopy:`Failed to copy. Please try again.`,untitled:`Untitled`,version:`Version`,source:`Source`,preview:`Preview`,goToFootnoteDefinition:`Go to definition [%s]`,backToFootnoteReference:`Back to reference [%s]`},"zh-CN":{viewMode:`视图模式`,changeMode:`切换模式`,editMode:`Markdown 源码`,sideBySideMode:`预览(并排)`,previewMode:`预览(覆盖)`,syntaxHiddenMode:`混合(隐藏语法)`,saveCleanHtml:`保存无样式 HTML`,saveStyledHtml:`保存带样式 HTML`,copyHtml:`复制 HTML`,copyRichText:`复制富文本`,copyCode:`复制代码`,failedToCopy:`复制失败,请重试。`,untitled:`未命名`,version:`版本`,source:`源码`,preview:`预览`,goToFootnoteDefinition:`跳转到定义 [%s]`,backToFootnoteReference:`返回引用 [%s]`},"zh-TW":{viewMode:`視圖模式`,changeMode:`切換模式`,saveCleanHtml:`儲存無樣式 HTML`,saveStyledHtml:`儲存帶樣式 HTML`,copyHtml:`拷貝 HTML`,copyRichText:`複製富文字`,copyCode:`拷貝程式碼`,failedToCopy:`複製失敗,請再試一次。`,editMode:`Markdown 原始碼`,sideBySideMode:`預覽(並排)`,previewMode:`預覽(覆蓋)`,syntaxHiddenMode:`混合(隱藏語法)`,untitled:`未命名`,version:`版本`,source:`原始碼`,preview:`預覽`,goToFootnoteDefinition:`前往定義 [%s]`,backToFootnoteReference:`返回引用 [%s]`}},Fu=[`default`,`zh-CN`,`zh-TW`],Iu=Pu[(()=>{let e=navigator.language;return Fu.includes(e)?e:`default`})()]}));function Ru(){return typeof f.MarkEdit.addExtension==`function`}var zu=o((()=>{}));async function Bu(e,t=!0){return await Yu,W.render(e,{lineInfo:t})}async function Vu(e){await Yu;let t={lineInfo:!1},n=W.parse(e,t),r=[];for(let e=0;e{let n=i[t+1];if(e.type!==`heading_open`||n?.type!==`inline`||e.map===null)return!1;let o=a[e.map[0]],s=e.markup.startsWith(`#`)?o.slice(o.indexOf(e.markup)).replace(/ {0,3}#+ +/,``):n.content.split(`
+`)[0].trim(),c=(s.length>64?s.substring(0,64)+`...`:s).normalize(`NFKD`).trim().toLowerCase().replace(/[^\p{Letter}\p{Number}\s\-_]/gu,``).replace(/\s+/g,`-`);return W.normalizeLink(`#${c}`).substring(1).toLowerCase()===r})??i.find(e=>e.type===`heading_open`&&e.attrGet(`id`)===n))?.map?.[0]}function Uu(e,t){e()}async function Wu(e){let t=e=>``;return[``,`
\n${e}\n
`,t(Eu(jl)),t(Ou(jl)),t(ku(jl)),t(Au()),``].join(`
+`)}var Gu,Ku,W,qu,Ju,Yu,Xu=o((()=>{Ri(),ea(),Gu=u(ta()),da(),Ku=u(fa()),ga(),gl(),Ll(),Nu(),Lu(),zu(),Il(),W=Li(Pl,{html:!0,breaks:!0,linkify:!0,...Fl}),W.linkify.set({fuzzyLink:!0,urlAuth:!0}),qu=[],W.use(ll()),W.use(Gi),W.use(Gu.default,{matcher:e=>!e.startsWith(`#`),attrs:{target:`_blank`,rel:`noopener`}}),W.use(ua),W.use(Ku.default,{enabled:Ru(),label:!0}),W.use(ha),Ju=new Set([`paragraph_open`,`heading_open`,`blockquote_open`,`list_item_open`,`bullet_list_open`,`ordered_list_open`,`fence`,`code_block`,`table_open`,`html_block`,`front_matter`]),Yu=Promise.all(qu).then(()=>{for(let e of Ju){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>{let o=e[n];return i?.lineInfo&&o.map?.length===2&&(o.attrSet(`data-line-from`,String(o.map[0])),o.attrSet(`data-line-to`,String(o.map[1]-1))),t?t(e,n,r,i,a):a.renderToken(e,n,r)}}for(let e of[`fence`,`code_block`]){let t=W.renderer.rules[e];W.renderer.rules[e]=(e,n,r,i,a)=>`
${t===void 0?a.renderToken(e,n,r):t(e,n,r,i,a)}
-
`}})}));function Ju(e){let t=$u.parseFromString(e,`text/html`);return t.querySelectorAll(`img`).forEach(e=>{let t=e.getAttribute(`src`);t!==null&&(e.src=Yu(t))}),t.body.innerHTML}function Yu(e){return e.includes(`://`)||e.startsWith(`//`)||e.startsWith(`data:image/`)?e:`${ed}://${e}`}function Xu(e){typeof f.MarkEdit.getFileInfo==`function`&&(document.addEventListener(`mousemove`,e=>{rd.panelPresenter!==void 0&&(clearTimeout(rd.panelPresenter),rd.panelPresenter=void 0),rd.panelPresenter=setTimeout(()=>{let t=e.target,n=t?.closest(`.cm-md-link`),r=n?.dataset.linkUrl??n?.innerText??``;n!==null&&ae(r)?Zu(n,r):t?.classList.contains(td)||Qu()},600)}),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&Qu(!1)}),e.addEventListener(`scroll`,()=>Qu()))}async function Zu(e,t){if(e===rd.focusedElement)return;let n=(await f.MarkEdit.getFileInfo())?.parentPath;if(n===void 0)return;let r=oe(n,t),i=await f.MarkEdit.getFileObject(r);if(i===void 0)return;let a=e.getBoundingClientRect(),o=document.createElement(`img`);o.className=td,o.style.position=`fixed`,o.style.left=`${a.left}px`,o.style.zIndex=`10000`,o.style.borderRadius=`5px`,o.style.opacity=`0`,o.style.transition=`opacity 120ms`,o.style.cursor=`pointer`,o.onclick=()=>{Qu(),window.open(t,`_blank`)},o.onload=()=>{let e=Math.min(o.naturalHeight,240);o.style.height=`${e}px`,a.top>window.innerHeight-a.bottom?o.style.top=`${a.top-e-nd}px`:o.style.top=`${a.bottom+nd}px`,requestAnimationFrame(()=>{o.style.opacity=`1`})},o.src=`data:${i.mimeType??`image/png`};base64,${i.data}`,Qu(!1),rd.focusedElement=e,document.body.appendChild(o)}function Qu(e=!0){rd.focusedElement!==void 0&&(rd.focusedElement=void 0,document.querySelectorAll(`.${td}`).forEach(t=>{e?(t.style.opacity=`0`,t.addEventListener(`transitionend`,()=>t.remove(),{once:!0})):t.remove()}))}var $u,ed,td,nd,rd,id=o((()=>{ue(),$u=new DOMParser,ed=`image-loader`,td=`cm-md-image-preview`,nd=5,rd={panelPresenter:void 0,focusedElement:void 0}}));qu(),id(),ue(),Pl();function ad(e,t){if(!Cl)return;pd.scrollUpdater!==void 0&&clearTimeout(pd.scrollUpdater);let n=f.MarkEdit.editorView.state.doc,r=f.MarkEdit.editorView.state.selection;pd.lastSourceScrollTop=e.scrollTop;let i=()=>{let{doc:i,selection:a}=f.MarkEdit.editorView.state,o=i===n&&!a.eq(r);n=i,r=a,!(!o&&Math.abs(e.scrollTop-pd.lastSourceScrollTop)<.5)&&(pd.lastSourceScrollTop=e.scrollTop,(o||!t.classList.contains(`overlay`))&&od(e,t))};`onscrollend`in window?e.addEventListener(`scrollend`,i):e.addEventListener(`scroll`,()=>{pd.scrollUpdater!==void 0&&clearTimeout(pd.scrollUpdater),pd.scrollUpdater=setTimeout(i,100)})}function od(e,t,n=!0){let{line:r,progress:i}=sd(e);cd(t,r,i,n)}function sd(e,t=0){let n=f.MarkEdit.editorView,r=n.lineBlockAtHeight(e.scrollTop+t),i=n.state.doc.lineAt(r.from).number-1,a=te(n.domAtPos(r.from).node);if(a===null)return{line:i,progress:0};let o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),c=o.top-s.top-t;return{line:i,progress:s.height>0?fd(c/s.height):0}}function cd(e,t,n,r=!0){if(t===0&&n===0)return re(e,0,r);let i=Array.from(e.querySelectorAll(`[data-line-from]`)),a=ld(i,t);if(a!==void 0){let{from:i,to:o}=x(a);return S(e,a,ud(t,n,i,o),r)}if(t===0)return re(e,0,r);let{beforeBlock:o,afterBlock:s}=dd(i,t);if(o!==void 0&&s!==void 0){let i=x(o),a=x(s),c=ne(e,o)+o.offsetHeight,l=ne(e,s),u=a.from-i.to,d=t-i.to+n,f=u>0?fd(d/u):0;return re(e,c+(l-c)*f,r)}if(o!==void 0)return S(e,o,1,r);if(s!==void 0)return S(e,s,0,r)}function ld(e,t){return e.find(e=>{let{from:n,to:r}=x(e);return t>=n&&t<=r})}function ud(e,t,n,r){let i=r-n;return i<1?e===n?t:0:fd((e-n+t)/i)}function dd(e,t){let n,r;for(let i of e){let{from:e,to:a}=x(i);if(at){r=i;break}}return{beforeBlock:n,afterBlock:r}}function fd(e){return Math.max(0,Math.min(1,e))}var pd={lastSourceScrollTop:0,scrollUpdater:void 0};function md(e){let t=e.match(/^((?:\s{0,3}>\s*)*\s*(?:[-*+]|\d+[.)])\s+\[)([ xX])\](?= )/);return t===null?null:{offset:t[1].length,replacement:t[2]===` `?`x`:` `}}ue();function hd(e,t){let n=(t.target instanceof Element?t.target.closest(`a`):null)?.getAttribute(`href`)??``;if(!n.startsWith(`#`))return!1;let r=gd(e,n);return r&&t.preventDefault(),r}function gd(e,t){if(!t.startsWith(`#`))return!1;let n=_d(t.substring(1)),r=[...e.querySelectorAll(`[id]`)].find(e=>e.id===n);return r!==void 0&&(S(e,r,0,!1),!0)}function _d(e){try{return decodeURIComponent(e)}catch{return e}}var vd={containerClass:`markdown-container`,gutterViewClass:`markdown-gutter`,dividerViewClass:`markdown-divider`,previewPaneClass:`markdown-body`},yd={viewModeCacheKey:`ui.view-mode`,previewPageZoomKey:`ui.preview-page-zoom`};function bd(e,t,n){if(![`Link`,`Image`,`Autolink`].includes(e.name))return;let r=Od(e.node);if(e.name===`Autolink`){if(r.length<2)return;let n=t.sliceDoc(r[0].to,r[1].from);return/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//.test(n)?{hidden:r.map(e=>({from:e.from,to:e.to})),label:{from:r[0].to,to:r[1].from},image:!1,destination:n,highlightTags:Cd(e.node)}:void 0}if(r.length<2||xd(e,t).length>0)return;let i=e.node.getChild(`LinkLabel`);if(r.length===2&&(i===null||i.to-i.from===2))return;let a=e.node.getChild(`URL`);if(r.length>2&&a===null||[`(`,`[`].includes(t.sliceDoc(e.to,e.to+1)))return;let o=r[0],s=r[1],c=t.sliceDoc(o.to,s.from);if(!/\S/.test(c)||c.startsWith(`^`)&&e.to===s.to)return;let l=a===null?Td(i,t,n):t.sliceDoc(a.from,a.to);if(e.name!==`Image`||a!==null||l!==``)return{hidden:[{from:o.from,to:o.to},{from:s.from,to:e.to}],label:{from:o.to,to:s.from},image:e.name===`Image`,destination:l,highlightTags:Cd(e.node)}}function xd(e,t){if(e.name!==`Link`)return[];let n=t.sliceDoc(e.from,e.to),r=/\[\^[^\][\s]+\]/g,i=[];for(let e=r.exec(n);e!==null;e=r.exec(n))i.push(e);return i.map(e=>e[0]).join(``)===n?i.map(t=>({from:e.from+t.index,to:e.from+t.index+t[0].length,label:t[0].slice(1,-1),highlightTags:Cd(e.node)})):[]}function Sd(e,t){if(e.name===`LinkDefinition`&&!km(t,e.from,e.to+1)&&kd.test(t.sliceDoc(e.from,e.to))&&t.sliceDoc(e.to,e.to+1)===`:`)return{hidden:[{from:e.from+1,to:e.from+2}],label:t.sliceDoc(e.from+1,e.to-1),highlightTags:Cd(e.node),suffixPosition:e.to+1,suffix:/^[ \t]/.test(t.sliceDoc(e.to+1,e.to+2))?``:` `}}function Cd(e){let t=[];for(let n=e;n!==null;n=n.parent)t.unshift(n);let n=new Set;for(let r of t){let t=(0,h.getStyleTags)(r);t!==null&&(r===e||t.inherit)&&t.tags.forEach(e=>n.add(e))}return[...n]}function wd(e){let t=(0,m.syntaxTree)(e),n;return r=>{let i=Ad.get(t);return n??=i?.doc===e.doc?i.destinations:void 0,n===void 0&&(n=Ed(e,t),Ad.set(t,{doc:e.doc,destinations:n})),n.get(Dd(r))??``}}function Td(e,t,n){return e===null?``:n(t.sliceDoc(e.from+1,e.to-1))}function Ed(e,t){let n=new Map;return t.iterate({enter:t=>{if(t.name!==`LinkDefinitionID`)return;let r=Dd(e.sliceDoc(t.from,t.to));if(n.has(r))return;let i=e.doc.lineAt(t.to),a=e.sliceDoc(t.node.parent?.to??t.to,i.to),o=/^:\s*(?:<([^>]*)>|(\S+))/.exec(a),s=o?.[1]??o?.[2];s!==void 0&&n.set(r,s)}}),n}function Dd(e){return e.trim().replace(/\s+/g,` `).toLowerCase()}function Od(e){let t=[];for(let n=e.firstChild;n!==null;n=n.nextSibling)n.name===`LinkMark`&&t.push(n);return t}var kd,Ad,jd=o((()=>{Ym(),kd=/^\[\^[^\][\s]+\]$/,Ad=new WeakMap}));function Md(e,t){let n=Nd(e);if(n===void 0||Am(t,e.from,e.to))return[];let r=n.hidden.map(e=>Fd.range(e.from,e.to));if(e.name!==`InlineCode`)return r;let i=e.node.firstChild?.to,a=e.node.lastChild?.from;return i===void 0||a===void 0||i>=a||(a-i===1?r.push(zd.range(i,a)):(r.push(Ld.range(i,i+1)),r.push(Rd.range(a-1,a)))),r}function Nd(e){let t=Pd.get(e.name),n=t===void 0?[]:e.node.getChildren(t);if(n.length>0)return{hidden:n}}var Pd,Fd,Id,Ld,Rd,zd,Bd=o((()=>{Ym(),Pd=new Map([[`Emphasis`,`EmphasisMark`],[`StrongEmphasis`,`EmphasisMark`],[`Strikethrough`,`StrikethroughMark`],[`InlineCode`,`CodeMark`]]),Fd=d.Decoration.mark({class:`cm-md-syntaxHiddenSource`}),Id=`cm-md-syntaxHiddenInlineCodeBoundary`,Ld=d.Decoration.mark({class:`${Id} cm-md-syntaxHiddenInlineCodeStart`}),Rd=d.Decoration.mark({class:`${Id} cm-md-syntaxHiddenInlineCodeEnd`}),zd=d.Decoration.mark({class:`${Id} cm-md-syntaxHiddenInlineCodeStart cm-md-syntaxHiddenInlineCodeEnd`})})),Vd=o((()=>{})),Hd=o((()=>{qu()}));function Ud(e,t){this.v=e,this.k=t}function Wd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&arguments[2]!==void 0?arguments[2]:bf;if(of&&of(e,null),!yf(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(sf(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Qd(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:sp(),t=e=>rf(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==rp.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=tf(d,`cloneNode`),p=tf(d,`remove`),m=tf(d,`removeAttributeNode`),h=tf(d,`nextSibling`),g=tf(d,`childNodes`),_=tf(d,`parentNode`),v=tf(d,`shadowRoot`),y=tf(d,`attributes`),b=o&&o.prototype?tf(o.prototype,`nodeType`):null,ee=o&&o.prototype?tf(o.prototype,`nodeName`):null,te=o&&o.prototype?tf(o.prototype,`ownerDocument`):null,x=function(e){return b?b(e):e.nodeType},ne=function(e){return ee?ee(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,re=``,ie,ae=!1,oe=0,se=function(){if(oe>0)throw jf(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},ce=function(e){se(),oe++;try{return S.createHTML(e)}finally{oe--}},le=function(e){se(),oe++;try{return S.createScriptURL(e)}finally{oe--}},ue=function(){return ae||=(ie=cp(u,i),!0),ie},de=n,fe=de.implementation,pe=de.createNodeIterator,me=de.createDocumentFragment,he=de.getElementsByTagName,ge=r.importNode,C=lp();t.isSupported=typeof af==`function`&&typeof _==`function`&&fe&&fe.createHTMLDocument!==void 0;let _e=Uf,ve=Wf,ye=Gf,be=Kf,xe=qf,Se=Yf,Ce=Xf,we=Qf,Te=Jf,w=null,Ee=K({},[...Mf,...Nf,...Pf,...If,...Rf]),T=null,De=K({},[...zf,...Bf,...Vf,...Hf]),Oe=Object.seal(uf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ae=null,je=Object.seal(uf(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Me=!0,Ne=!0,Pe=!1,Fe=!0,Ie=!1,Le=!0,Re=!1,ze=!1,Be=null,Ve=null,He=!1,Ue=!1,We=!1,Ge=!1,Ke=!0,qe=!1,Je=`user-content-`,E=!0,Ye=!1,Xe={},Ze=null,D=K({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Qe=null,$e=K({},[`audio`,`video`,`img`,`source`,`image`,`track`]),et=null,tt=K({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),nt=`http://www.w3.org/1998/Math/MathML`,rt=`http://www.w3.org/2000/svg`,it=`http://www.w3.org/1999/xhtml`,at=it,ot=!1,st=null,ct=K({},[nt,rt,it],xf),O=q([`mi`,`mo`,`mn`,`ms`,`mtext`]),lt=K({},O),ut=q([`annotation-xml`]),dt=K({},ut),ft=K({},[`title`,`style`,`font`,`a`,`script`]),pt=null,mt=[`application/xhtml+xml`,`text/html`],k=null,ht=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ht&&ht===e)return;(!e||typeof e!=`object`)&&(e={}),e=$d(e),pt=mt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,k=pt===`application/xhtml+xml`?xf:bf,w=up(e,`ALLOWED_TAGS`,Ee,{transform:k}),T=up(e,`ALLOWED_ATTR`,De,{transform:k}),st=up(e,`ALLOWED_NAMESPACES`,ct,{transform:xf}),et=up(e,`ADD_URI_SAFE_ATTR`,tt,{transform:k,base:tt}),Qe=up(e,`ADD_DATA_URI_TAGS`,$e,{transform:k,base:$e}),Ze=up(e,`FORBID_CONTENTS`,D,{transform:k}),ke=up(e,`FORBID_TAGS`,$d({}),{transform:k}),Ae=up(e,`FORBID_ATTR`,$d({}),{transform:k}),Xe=Y(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?$d(e.USE_PROFILES):e.USE_PROFILES:!1,Me=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,Pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ie=e.SAFE_FOR_TEMPLATES||!1,Le=e.SAFE_FOR_XML!==!1,Re=e.WHOLE_DOCUMENT||!1,Ue=e.RETURN_DOM||!1,We=e.RETURN_DOM_FRAGMENT||!1,Ge=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,Ke=e.SANITIZE_DOM!==!1,qe=e.SANITIZE_NAMED_PROPS||!1,E=e.KEEP_CONTENT!==!1,Ye=e.IN_PLACE||!1,Te=nf(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Jf,at=typeof e.NAMESPACE==`string`?e.NAMESPACE:it,lt=dp(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>K({},O)),dt=dp(e,`HTML_INTEGRATION_POINTS`,()=>K({},ut));let t=dp(e,`CUSTOM_ELEMENT_HANDLING`,()=>uf(null));if(Oe=uf(null),Y(t,`tagNameCheck`)&&_t(t.tagNameCheck)&&(Oe.tagNameCheck=t.tagNameCheck),Y(t,`attributeNameCheck`)&&_t(t.attributeNameCheck)&&(Oe.attributeNameCheck=t.attributeNameCheck),Y(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Oe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),J(Oe),Ie&&(Ne=!1),We&&(Ue=!0),Xe&&(w=K({},Rf),T=uf(null),Xe.html===!0&&(K(w,Mf),K(T,zf)),Xe.svg===!0&&(K(w,Nf),K(T,Bf),K(T,Hf)),Xe.svgFilters===!0&&(K(w,Pf),K(T,Bf),K(T,Hf)),Xe.mathMl===!0&&(K(w,If),K(T,Vf),K(T,Hf))),je.tagCheck=null,je.attributeCheck=null,Y(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?je.tagCheck=e.ADD_TAGS:yf(e.ADD_TAGS)&&(w===Ee&&(w=$d(w)),K(w,e.ADD_TAGS,k))),Y(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?je.attributeCheck=e.ADD_ATTR:yf(e.ADD_ATTR)&&(T===De&&(T=$d(T)),K(T,e.ADD_ATTR,k))),Y(e,`ADD_FORBID_CONTENTS`)&&yf(e.ADD_FORBID_CONTENTS)&&(Ze===D&&(Ze=$d(Ze)),K(Ze,e.ADD_FORBID_CONTENTS,k)),E&&(w[`#text`]=!0),Re&&K(w,[`html`,`head`,`body`]),w.table&&(K(w,[`tbody`]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw jf(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw jf(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{re=ce(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,re=``):(S===void 0&&(S=ue()),S&&typeof re==`string`&&(re=ce(``)));q&&q(e),ht=e},yt=K({},[...Nf,...Pf,...Ff]),bt=K({},[...If,...Lf]),xt=function(e,t,n){return t.namespaceURI===it?e===`svg`:t.namespaceURI===nt?e===`svg`&&(n===`annotation-xml`||lt[n]):!!yt[e]},St=function(e,t,n){return t.namespaceURI===it?e===`math`:t.namespaceURI===rt?e===`math`&&dt[n]:!!bt[e]},Ct=function(e,t,n){return t.namespaceURI===rt&&!dt[n]||t.namespaceURI===nt&&!lt[n]?!1:!bt[e]&&(ft[e]||!yt[e])},wt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:at,tagName:`template`});let n=bf(e.tagName),r=bf(t.tagName);return st[e.namespaceURI]?e.namespaceURI===rt?xt(n,t,r):e.namespaceURI===nt?St(n,t,r):e.namespaceURI===it?Ct(n,t,r):!!(pt===`application/xhtml+xml`&&st[e.namespaceURI]):!1},Tt=function(e){_f(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw jf(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Et=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},Dt=function(e){At(e);let t=g(e);if(t){let e=[];mf(t,t=>{_f(e,t)}),mf(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Et(e,r,i)}},Ot=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}_f(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Ue||We)try{Tt(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},kt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||T[k(i)]||Et(e,r,i)}},At=function(e){let t=[e];for(;t.length>0;){let e=t.pop();x(e)===rp.element&&kt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},jt=function(e,t){return Le?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},Mt=function(e){if(!Le)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=x(e);if(n===rp.processingInstruction||n===rp.comment&&X(ep,e.data)){try{p(e)}catch{}continue}if(n===rp.element){let t=e,n=k(ne(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&jt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Nt=function(e){let t=null,r=null;if(He)e=``+e;else{let t=Sf(e,/^[\r\n\t ]+/);r=t&&t[0]}pt===`application/xhtml+xml`&&at===it&&(e=``+e+``);let i=S?ce(e):e;if(at===it)try{t=new l().parseFromString(i,pt)}catch{}if(!t||!t.documentElement){t=fe.createDocument(at,`template`,null);try{t.documentElement.innerHTML=ot?re:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),at===it?he.call(t,Re?`html`:`body`)[0]:Re?t.documentElement:a},Pt=function(e){let t=te?te(e):e.ownerDocument;return pe.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ft=function(e){return e=Cf(e,_e,` `),e=Cf(e,ve,` `),e=Cf(e,ye,` `),e},It=function(e){e.normalize();let t=te?te(e):e.ownerDocument,n=pe.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ft(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&mf(i,e=>{Rt(e.content)&&It(e.content)})},Lt=function(e){let t=ee?ee(e):null;return typeof t!=`string`||k(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Rt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===rp.documentFragment}catch{return!1}},zt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Bt(e,n,r){e.length!==0&&mf(e,e=>{e.call(t,n,r,ht)})}let Vt=function(e,t){return!!(Le&&e.hasChildNodes()&&!zt(e.firstElementChild)&&X($f,e.textContent)&&X($f,e.innerHTML)||Le&&e.namespaceURI===it&&ap[t]&&(zt(e.firstElementChild)||typeof e.textContent==`string`&&X(op[t],e.textContent))||e.nodeType===rp.processingInstruction||Le&&e.nodeType===rp.comment&&X(ep,e.data))},Ht=function(e,t){return e instanceof RegExp?X(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Ut=function(e,t,n){if(!ke[t]&&Jt(t)&&Ht(Oe.tagNameCheck,t))return!1;if(E&&!Ze[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return Tt(e),!0},Wt=function(e,t,n,r){return e.length===0?t:t===n||t===r?$d(t):t},A=function(e,t){return e===t||_(e)!==null?!1:(Ye&&At(e),!0)},Gt=function(e,n){if(Bt(C.beforeSanitizeElements,e,null),A(e,n))return!0;if(Lt(e))return Tt(e),!0;let r=k(ne(e));if(w=Wt(C.uponSanitizeElement,w,Ee,Be),Bt(C.uponSanitizeElement,e,{tagName:r,allowedTags:w}),A(e,n))return!0;if(Vt(e,r))return Tt(e),!0;if(ke[r]||!(je.tagCheck instanceof Function&&je.tagCheck(r))&&!w[r]){let t=Ut(e,r,n);return t===!1&&(Bt(C.afterSanitizeElements,e,null),A(e,n))?!0:t}if(x(e)===rp.element&&!wt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&X(tp,e.innerHTML))return Tt(e),!0;if(Ie&&e.nodeType===rp.text){let n=Ft(e.textContent);e.textContent!==n&&(_f(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Bt(C.afterSanitizeElements,e,null),A(e,n)},Kt=function(e,t,r){if(Ae[t]||jt(t,e)||Ke&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;let i=T[t]||je.attributeCheck instanceof Function&&je.attributeCheck(t,e);return Ne&&X(be,t)||Me&&X(xe,t)?!0:i?et[t]||X(Te,Cf(r,Ce,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&wf(r,`data:`)===0&&Qe[e]||Pe&&!X(Se,Cf(r,Ce,``))?!0:!r:Jt(e)&&Ht(Oe.tagNameCheck,e)&&Ht(Oe.attributeNameCheck,t,e)||t===`is`&&Oe.allowCustomizedBuiltInElements&&Ht(Oe.tagNameCheck,r)},qt=K({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Jt=function(e){return!qt[bf(e)]&&X(we,e)},Yt=function(e,t,n,r){if(S&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return ce(r);case`TrustedScriptURL`:return le(r)}return r},Xt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Lt(e)||(Tt(e),!1)}catch{return Ot(t,e),!1}},Zt=function(e,n){if(Bt(C.beforeSanitizeAttributes,e,null),A(e,n))return;let r=e.attributes;if(!r||Lt(e))return;T=Wt(C.uponSanitizeAttribute,T,De,Ve);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},a=r.length,o=k(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=k(s),d=l,f=s===`value`?d:Tf(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Bt(C.uponSanitizeAttribute,e,i),f=i.attrValue,qe&&(u===`id`||u===`name`)&&wf(f,Je)!==0&&(Ot(s,e,n),f=Je+f,p=!0),Le&&X(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Ot(s,e,n);continue}if(u===`attributename`&&Sf(f,`href`)){Ot(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){Ot(s,e,n);continue}if(!Fe&&X(np,f)){Ot(s,e,n);continue}if(Ie&&(f=Ft(f)),!Kt(o,u,f)){Ot(s,e,n);continue}f=Yt(o,u,c,f),f!==d&&Xt(e,s,c,f)&&p&&gf(t.removed)}}Bt(C.afterSanitizeAttributes,e,null),A(e,n)},Qt=function(e){let t=null,n=Pt(e);for(Bt(C.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Bt(C.uponSanitizeShadowNode,t,null),Gt(t,e),Zt(t,e),Rt(t.content)&&Qt(t.content),x(t)===rp.element){let e=v(t);Rt(e)&&($t(e),Qt(e))}Bt(C.afterSanitizeShadowDOM,e,null)},$t=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Qt(e.shadow);continue}let n=e.node,r=x(n)===rp.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=ee?ee(n):null;if(typeof e==`string`&&k(e)===`template`){let e=n.content;Rt(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Rt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(ot=!e,ot&&(e=``),typeof e!=`string`&&!zt(e)&&(e=ef(e),typeof e!=`string`))throw jf(`dirty is not a string, aborting`);if(!t.isSupported)return e;ze?(w=Be,T=Ve):vt(n),(C.uponSanitizeElement.length>0||C.uponSanitizeAttribute.length>0)&&(w=$d(w)),C.uponSanitizeAttribute.length>0&&(T=$d(T)),t.removed=[];let c=Ye&&typeof e!=`string`&&zt(e);if(c){Mt(e);let t=ne(e);if(typeof t==`string`){let n=k(t);if(!w[n]||ke[n])throw Dt(e),jf(`root node is forbidden and cannot be sanitized in-place`)}if(Lt(e))throw Dt(e),jf(`root node is clobbered and cannot be sanitized in-place`);try{$t(e)}catch(t){throw Dt(e),t}}else if(zt(e))i=Nt(``),a=i.ownerDocument.importNode(e,!0),a.nodeType===rp.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),$t(i);else{if(!Ue&&!Ie&&!Re&&e.indexOf(`<`)===-1)return S&&Ge?ce(e):e;if(i=Nt(e),!i)return Ue?null:Ge?re:``}i&&He&&Tt(i.firstChild);let l=c?e:i;try{let e=Pt(l);for(;o=e.nextNode();)Gt(o,l),Zt(o,l),Rt(o.content)&&Qt(o.content)}catch(n){throw c&&(Dt(e),mf(t.removed,e=>{e.element&&At(e.element)})),n}if(c){let n=!1;if(mf(t.removed,t=>{t.element&&(t.element===e&&(n=!0),At(t.element))}),n)throw jf(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return Ie&&It(e),e}if(Ue){if(Ie&&It(i),We)for(s=me.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(T.shadowroot||T.shadowrootmode)&&(s=ge.call(r,s,!0)),s}let u=Re?i.outerHTML:i.innerHTML;return Re&&w[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&X(Zf,i.ownerDocument.doctype.name)&&(u=`
-`+u),Ie&&(u=Ft(u)),S&&Ge?ce(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vt(e),ze=!0,Be=w,Ve=T},t.clearConfig=function(){ht=null,ze=!1,Be=null,Ve=null,S=ie,re=``},t.isValidAttribute=function(e,t,n){ht||vt({});let r=k(e),i=k(t);return Kt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Y(C,e)&&_f(C[e],t)},t.removeHook=function(e,t){if(Y(C,e)){if(t!==void 0){let n=hf(C[e],t);return n===-1?void 0:vf(C[e],n,1)[0]}return gf(C[e])}},t.removeHooks=function(e){Y(C,e)&&(C[e]=[])},t.removeAllHooks=function(){C=lp()},t}var af,of,sf,cf,lf,q,J,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Y,Af,X,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp,np,rp,ip,ap,op,sp,cp,lp,up,dp,fp,pp=o((()=>{Xd.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Xd.prototype.next=function(e){return this._invoke(`next`,e)},Xd.prototype.throw=function(e){return this._invoke(`throw`,e)},Xd.prototype.return=function(e){return this._invoke(`return`,e)},af=Object.entries,of=Object.setPrototypeOf,sf=Object.isFrozen,cf=Object.getPrototypeOf,lf=Object.getOwnPropertyDescriptor,q=Object.freeze,J=Object.seal,uf=Object.create,df=typeof Reflect<`u`&&Reflect,ff=df.apply,pf=df.construct,q||=function(e){return e},J||=function(e){return e},ff||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},pf||=function(e){return new e(...[...arguments].slice(1))},mf=G(Array.prototype.forEach),Array.prototype.indexOf,hf=G(Array.prototype.lastIndexOf),gf=G(Array.prototype.pop),_f=G(Array.prototype.push),Array.prototype.slice,vf=G(Array.prototype.splice),yf=Array.isArray,bf=G(String.prototype.toLowerCase),xf=G(String.prototype.toString),Sf=G(String.prototype.match),Cf=G(String.prototype.replace),wf=G(String.prototype.indexOf),Tf=G(String.prototype.trim),Ef=G(Number.prototype.toString),Df=G(Boolean.prototype.toString),Of=typeof BigInt>`u`?null:G(BigInt.prototype.toString),kf=typeof Symbol>`u`?null:G(Symbol.prototype.toString),Y=G(Object.prototype.hasOwnProperty),Af=G(Object.prototype.toString),X=G(RegExp.prototype.test),jf=Zd(TypeError),Mf=q(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Nf=q(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Pf=q([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ff=q([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),If=q(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Lf=q([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Rf=q([`#text`]),zf=q(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Bf=q(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Vf=q(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Hf=q([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Uf=J(/{{[\w\W]*|^[\w\W]*}}/g),Wf=J(/<%[\w\W]*|^[\w\W]*%>/g),Gf=J(/\${[\w\W]*/g),Kf=J(/^data-[\-\w.\u00B7-\uFFFF]+$/),qf=J(/^aria-[\-\w]+$/),Jf=J(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yf=J(/^(?:\w+script|data):/i),Xf=J(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zf=J(/^html$/i),Qf=J(/^[a-z][.\w]*(-[.\w]+)+$/i),$f=J(/<[/\w!]/g),ep=J(/<[/\w]/g),tp=J(/<\/no(script|embed|frames)/i),np=J(/\/>/i),rp={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ip=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],ap=q(K({},ip)),op=function(){let e={};return mf(ip,t=>{e[t]=J(RegExp(``+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),q(e)}(),sp=function(){return typeof window>`u`?null:window},cp=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},lp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},up=function(e,t,n,r){return Y(e,t)&&yf(e[t])?K(r.base?$d(r.base):{},e[t],r.transform):n},dp=function(e,t,n){let r=Y(e,t)?e[t]:void 0;return r&&typeof r==`object`?$d(r):n()},fp=rf()})),mp,hp,gp,_p=o((()=>{pp(),Au(),mp=p.StateEffect.define(),hp=class extends d.WidgetType{doc;from;to;render;referenceContext;constructor(e,t,n,r,i=``){super(),this.doc=e,this.from=t,this.to=n,this.render=r,this.referenceContext=i}get source(){return this.doc.sliceString(this.from,this.to)}toDOM(e){let t=document.createElement(`div`);t.className=`cm-md-syntaxHiddenTable`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`style`),i=()=>{r.textContent=wu(f.MarkEdit.editorConfig?.theme??`github`,e.state.facet(d.EditorView.darkTheme)),e.requestMeasure()};i(),window.addEventListener(`editor-colors-changed`,i);let a=document.createElement(`style`);a.textContent=`
+