Viewing File: /usr/local/cpanel/base/frontend/jupiter/koality/_nuxt/DmaBc2ES.js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./qAE_Bbcx.js","./EJiqiqZX.js","./entry.D7E-n75W.css","./88opOQSr.js","./iik6CYzq.js","./D7qtAg9b.js"])))=>i.map(i=>d[i]);
import{cf as Kl,be as qs,ac as bu}from"./EJiqiqZX.js";import{k as An}from"./88opOQSr.js";import{n as ii,T as Vl,f as Wl,i as Ql,a as Gl,b as Xl,u as Jl}from"./iik6CYzq.js";import{f as $s,n as Tu,h as Oi,s as Li,b as Zl}from"./D7qtAg9b.js";function Au(e){if(e)throw e}var Or,Cu;function ec(){if(Cu)return Or;Cu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},u=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!f)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},s=function(c,h){n&&h.name==="__proto__"?n(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},a=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(r)return r(c,h).value}else return;return c[h]};return Or=function o(){var c,h,f,p,d,g,m=arguments[0],T=1,C=arguments.length,k=!1;for(typeof m=="boolean"&&(k=m,m=arguments[1]||{},T=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});T<C;++T)if(c=arguments[T],c!=null)for(h in c)f=a(m,h),p=a(c,h),m!==p&&(k&&p&&(u(p)||(d=i(p)))?(d?(d=!1,g=f&&i(f)?f:[]):g=f&&u(f)?f:{},s(m,{name:h,newValue:o(k,g,p)})):typeof p<"u"&&s(m,{name:h,newValue:p}));return m},Or}var tc=ec();const Lr=Kl(tc);function ui(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function nc(){const e=[],t={run:n,use:r};return t;function n(...i){let u=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(o,...c){const h=e[++u];let f=-1;if(o){s(o);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,h?rc(h,a)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function rc(e,t){let n;return r;function r(...s){const a=e.length>s.length;let o;a&&s.push(i);try{o=e.apply(this,s)}catch(c){const h=c;if(a&&n)throw h;return i(h)}a||(o&&o.then&&typeof o.then=="function"?o.then(u,i):o instanceof Error?i(o):u(o))}function i(s,...a){n||(n=!0,t(s,...a))}function u(s){i(null,s)}}function fn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?yu(e.position):"start"in e||"end"in e?yu(e):"line"in e||"column"in e?si(e):""}function si(e){return Du(e&&e.line)+":"+Du(e&&e.column)}function yu(e){return si(e&&e.start)+"-"+si(e&&e.end)}function Du(e){return e&&typeof e=="number"?e:1}class ke extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",u={},s=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?i=t:!u.cause&&t&&(s=!0,i=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?u.ruleId=r:(u.source=r.slice(0,o),u.ruleId=r.slice(o+1))}if(!u.place&&u.ancestors&&u.ancestors){const o=u.ancestors[u.ancestors.length-1];o&&(u.place=o.position)}const a=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=fn(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=s&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual,this.expected,this.note,this.url}}ke.prototype.file="";ke.prototype.name="";ke.prototype.reason="";ke.prototype.message="";ke.prototype.stack="";ke.prototype.column=void 0;ke.prototype.line=void 0;ke.prototype.ancestors=void 0;ke.prototype.cause=void 0;ke.prototype.fatal=void 0;ke.prototype.place=void 0;ke.prototype.ruleId=void 0;ke.prototype.source=void 0;const qe={basename:ic,dirname:uc,extname:sc,join:ac,sep:"/"};function ic(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');kn(e);let n=0,r=-1,i=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else r<0&&(u=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else s<0&&(u=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function uc(e){if(kn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function sc(e){kn(e);let t=e.length,n=-1,r=0,i=-1,u=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:u!==1&&(u=1):i>-1&&(u=-1)}return i<0||n<0||u===0||u===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ac(...e){let t=-1,n;for(;++t<e.length;)kn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":oc(n)}function oc(e){kn(e);const t=e.codePointAt(0)===47;let n=lc(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function lc(e,t){let n="",r=0,i=-1,u=0,s=-1,a,o;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||u===1))if(i!==s-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=s,u=0;continue}}else if(n.length>0){n="",r=0,i=s,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,u=0}else a===46&&u>-1?u++:u=-1}return n}function kn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cc={cwd:fc};function fc(){return"/"}function ai(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function hc(e){if(typeof e=="string")e=new URL(e);else if(!ai(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return dc(e)}function dc(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Fr=["history","path","basename","stem","extname","dirname"];class pc{constructor(t){let n;t?ai(t)?n={path:t}:typeof t=="string"||mc(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":cc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Fr.length;){const u=Fr[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let i;for(i in n)Fr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?qe.basename(this.path):void 0}set basename(t){Rr(t,"basename"),wr(t,"basename"),this.path=qe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qe.dirname(this.path):void 0}set dirname(t){_u(this.basename,"dirname"),this.path=qe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qe.extname(this.path):void 0}set extname(t){if(wr(t,"extname"),_u(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=qe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ai(t)&&(t=hc(t)),Rr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qe.basename(this.path,this.extname):void 0}set stem(t){Rr(t,"stem"),wr(t,"stem"),this.path=qe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new ke(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function wr(e,t){if(e&&e.includes(qe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qe.sep+"`")}function Rr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _u(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gc=(function(e){const r=this.constructor.prototype,i=r[e],u=function(){return i.apply(u,arguments)};return Object.setPrototypeOf(u,r),u}),Ec={}.hasOwnProperty;class Fi extends gc{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=nc()}copy(){const t=new Fi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Lr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Mr("data",this.frozen),this.namespace[t]=n,this):Ec.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Mr("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Un(t),r=this.parser||this.Parser;return Pr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Pr("process",this.parser||this.Parser),Br("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(u,s){const a=Un(t),o=r.parse(a);r.run(o,a,function(h,f,p){if(h||!f||!p)return c(h);const d=f,g=r.stringify(d,p);Ac(g)?p.value=g:p.result=g,c(h,p)});function c(h,f){h||!f?s(h):u?u(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Pr("processSync",this.parser||this.Parser),Br("processSync",this.compiler||this.Compiler),this.process(t,i),ku("processSync","process",n),r;function i(u,s){n=!0,Au(u),r=s}}run(t,n,r){Su(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(s,a){const o=Un(n);i.run(t,o,c);function c(h,f,p){const d=f||t;h?a(h):s?s(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,u),ku("runSync","run",r),i;function u(s,a){Au(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Un(n),i=this.compiler||this.Compiler;return Br("stringify",i),Su(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Mr("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...f]=c;o(h,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=Lr(!0,i.settings,c.settings))}function a(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const f=c[h];u(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,h){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...h]);else if(h.length>0){let[d,...g]=h;const m=r[p][1];ui(m)&&ui(d)&&(d=Lr(!0,m,d)),r[p]=[c,d,...g]}}}}const bc=new Fi().freeze();function Pr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Br(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Mr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Su(e){if(!ui(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ku(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Un(e){return Tc(e)?e:new pc(e)}function Tc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ac(e){return typeof e=="string"||Cc(e)}function Cc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yc={};function wi(e,t){const n=yc,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ys(e,r,i)}function Ys(e,t,n){if(Dc(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Iu(e.children,t,n)}return Array.isArray(e)?Iu(e,t,n):""}function Iu(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ys(e[i],t,n);return r.join("")}function Dc(e){return!!(e&&typeof e=="object")}const Nu=document.createElement("i");function Cn(e){const t="&"+e+";";Nu.innerHTML=t;const n=Nu.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function xe(e,t,n,r){const i=e.length;let u=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);u<r.length;)s=r.slice(u,u+1e4),s.unshift(t,0),e.splice(...s),u+=1e4,t+=1e4}function Oe(e,t){return e.length>0?(xe(e,e.length,0,t),e):t}const xu={}.hasOwnProperty;function js(e){const t={};let n=-1;for(;++n<e.length;)_c(t,e[n]);return t}function _c(e,t){let n;for(n in t){const i=(xu.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let s;if(u)for(s in u){xu.call(i,s)||(i[s]=[]);const a=u[s];Sc(i[s],Array.isArray(a)?a:a?[a]:[])}}}function Sc(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);xe(e,0,0,r)}function Ks(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ee=ct(/[A-Za-z]/),me=ct(/[\dA-Za-z]/),kc=ct(/[#-'*+\--9=?A-Z^-~]/);function tr(e){return e!==null&&(e<32||e===127)}const oi=ct(/\d/),Ic=ct(/[\dA-Fa-f]/),Nc=ct(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function ne(e){return e!==null&&(e<0||e===32)}function G(e){return e===-2||e===-1||e===32}const fr=ct(new RegExp("\\p{P}|\\p{S}","u")),At=ct(/\s/);function ct(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ft(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const u=e.charCodeAt(n);let s="";if(u===37&&me(e.charCodeAt(n+1))&&me(e.charCodeAt(n+2)))i=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(s=String.fromCharCode(u));else if(u>55295&&u<57344){const a=e.charCodeAt(n+1);u<56320&&a>56319&&a<57344?(s=String.fromCharCode(u,a),i=1):s="�"}else s=String.fromCharCode(u);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function W(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let u=0;return s;function s(o){return G(o)?(e.enter(n),a(o)):t(o)}function a(o){return G(o)&&u++<i?(e.consume(o),a):(e.exit(n),t(o))}}const xc={tokenize:Oc};function Oc(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),W(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),u(a)}function u(a){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return V(a)?(e.consume(a),e.exit("chunkText"),u):(e.consume(a),s)}}const Lc={tokenize:Fc},Ou={tokenize:wc};function Fc(e){const t=this,n=[];let r=0,i,u,s;return a;function a(N){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,o,c)(N)}return c(N)}function o(N){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const L=t.events.length;let B=L,_;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){_=t.events[B][1].end;break}C(r);let M=L;for(;M<t.events.length;)t.events[M][1].end={..._},M++;return xe(t.events,B+1,0,t.events.slice(L)),t.events.length=M,c(N)}return a(N)}function c(N){if(r===n.length){if(!i)return p(N);if(i.currentConstruct&&i.currentConstruct.concrete)return g(N);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ou,h,f)(N)}function h(N){return i&&k(),C(r),p(N)}function f(N){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(N)}function p(N){return t.containerState={},e.attempt(Ou,d,g)(N)}function d(N){return r++,n.push([t.currentConstruct,t.containerState]),p(N)}function g(N){if(N===null){i&&k(),C(0),e.consume(N);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:u}),m(N)}function m(N){if(N===null){T(e.exit("chunkFlow"),!0),C(0),e.consume(N);return}return V(N)?(e.consume(N),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(N),m)}function T(N,L){const B=t.sliceStream(N);if(L&&B.push(null),N.previous=u,u&&(u.next=N),u=N,i.defineSkip(N.start),i.write(B),t.parser.lazy[N.start.line]){let _=i.events.length;for(;_--;)if(i.events[_][1].start.offset<s&&(!i.events[_][1].end||i.events[_][1].end.offset>s))return;const M=t.events.length;let P=M,K,O;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(K){O=t.events[P][1].end;break}K=!0}for(C(r),_=M;_<t.events.length;)t.events[_][1].end={...O},_++;xe(t.events,P+1,0,t.events.slice(M)),t.events.length=_}}function C(N){let L=n.length;for(;L-- >N;){const B=n[L];t.containerState=B[1],B[0].exit.call(t,e)}n.length=N}function k(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}function wc(e,t,n){return W(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ht(e){if(e===null||ne(e)||At(e))return 1;if(fr(e))return 2}function hr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const u=e[i].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}const li={name:"attention",resolveAll:Rc,tokenize:Pc};function Rc(e,t){let n=-1,r,i,u,s,a,o,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};Lu(f,-o),Lu(p,o),s={type:o>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},u={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Oe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Oe(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",u,t]]),c=Oe(c,hr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Oe(c,[["exit",u,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=Oe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,xe(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Pc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ht(r);let u;return s;function s(o){return u=o,e.enter("attentionSequence"),a(o)}function a(o){if(o===u)return e.consume(o),a;const c=e.exit("attentionSequence"),h=Ht(o),f=!h||h===2&&i||n.includes(o),p=!i||i===2&&h||n.includes(r);return c._open=!!(u===42?f:f&&(i||!p)),c._close=!!(u===42?p:p&&(h||!f)),t(o)}}function Lu(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Bc={name:"autolink",tokenize:Mc};function Mc(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(d){return Ee(d)?(e.consume(d),s):d===64?n(d):c(d)}function s(d){return d===43||d===45||d===46||me(d)?(r=1,a(d)):c(d)}function a(d){return d===58?(e.consume(d),r=0,o):(d===43||d===45||d===46||me(d))&&r++<32?(e.consume(d),a):(r=0,c(d))}function o(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||tr(d)?n(d):(e.consume(d),o)}function c(d){return d===64?(e.consume(d),h):kc(d)?(e.consume(d),c):n(d)}function h(d){return me(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,h):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||me(d))&&r++<63){const g=d===45?p:f;return e.consume(d),g}return n(d)}}const In={partial:!0,tokenize:Uc};function Uc(e,t,n){return r;function r(u){return G(u)?W(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||V(u)?t(u):n(u)}}const Vs={continuation:{tokenize:vc},exit:zc,name:"blockQuote",tokenize:Hc};function Hc(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),u}return n(s)}function u(s){return G(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function vc(e,t,n){const r=this;return i;function i(s){return G(s)?W(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):u(s)}function u(s){return e.attempt(Vs,t,n)(s)}}function zc(e){e.exit("blockQuote")}const Ws={name:"characterEscape",tokenize:qc};function qc(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return Nc(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}const Qs={name:"characterReference",tokenize:$c};function $c(e,t,n){const r=this;let i=0,u,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),o}function o(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),u=31,s=me,h(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,s=Ic,h):(e.enter("characterReferenceValue"),u=7,s=oi,h(f))}function h(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return s===me&&!Cn(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<u?(e.consume(f),h):n(f)}}const Fu={partial:!0,tokenize:jc},ci={concrete:!0,name:"codeFenced",tokenize:Yc};function Yc(e,t,n){const r=this,i={partial:!0,tokenize:B};let u=0,s=0,a;return o;function o(_){return c(_)}function c(_){const M=r.events[r.events.length-1];return u=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(_)}function h(_){return _===a?(s++,e.consume(_),h):s<3?n(_):(e.exit("codeFencedFenceSequence"),G(_)?W(e,f,"whitespace")(_):f(_))}function f(_){return _===null||V(_)?(e.exit("codeFencedFence"),r.interrupt?t(_):e.check(Fu,m,L)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||V(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(_)):G(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),W(e,d,"whitespace")(_)):_===96&&_===a?n(_):(e.consume(_),p)}function d(_){return _===null||V(_)?f(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===null||V(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(_)):_===96&&_===a?n(_):(e.consume(_),g)}function m(_){return e.attempt(i,L,T)(_)}function T(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),C}function C(_){return u>0&&G(_)?W(e,k,"linePrefix",u+1)(_):k(_)}function k(_){return _===null||V(_)?e.check(Fu,m,L)(_):(e.enter("codeFlowValue"),N(_))}function N(_){return _===null||V(_)?(e.exit("codeFlowValue"),k(_)):(e.consume(_),N)}function L(_){return e.exit("codeFenced"),t(_)}function B(_,M,P){let K=0;return O;function O(Q){return _.enter("lineEnding"),_.consume(Q),_.exit("lineEnding"),I}function I(Q){return _.enter("codeFencedFence"),G(Q)?W(_,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===a?(_.enter("codeFencedFenceSequence"),Y(Q)):P(Q)}function Y(Q){return Q===a?(K++,_.consume(Q),Y):K>=s?(_.exit("codeFencedFenceSequence"),G(Q)?W(_,X,"whitespace")(Q):X(Q)):P(Q)}function X(Q){return Q===null||V(Q)?(_.exit("codeFencedFence"),M(Q)):P(Q)}}}function jc(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ur={name:"codeIndented",tokenize:Vc},Kc={partial:!0,tokenize:Wc};function Vc(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),W(e,u,"linePrefix",5)(c)}function u(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?o(c):V(c)?e.attempt(Kc,s,o)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||V(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function o(c){return e.exit("codeIndented"),t(c)}}function Wc(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):W(e,u,"linePrefix",5)(s)}function u(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):V(s)?i(s):n(s)}}const Qc={name:"codeText",previous:Xc,resolve:Gc,tokenize:Jc};function Gc(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Xc(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jc(e,t,n){let r=0,i,u;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),o(f))}function o(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),o):f===96?(u=e.enter("codeTextSequence"),i=0,h(f)):V(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||V(f)?(e.exit("codeTextData"),o(f)):(e.consume(f),c)}function h(f){return f===96?(e.consume(f),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(u.type="codeTextData",c(f))}}class Zc{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&en(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),en(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),en(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);en(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);en(this.left,n.reverse())}}}function en(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Gs(e){const t={};let n=-1,r,i,u,s,a,o,c;const h=new Zc(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,u=0,u<o.length&&o[u][1].type==="lineEndingBlank"&&(u+=2),u<o.length&&o[u][1].type==="content"))for(;++u<o.length&&o[u][1].type!=="content";)o[u][1].type==="chunkText"&&(o[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ef(h,n)),n=t[n],c=!0);else if(r[1]._container){for(u=n,i=void 0;u--;)if(s=h.get(u),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=u);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},a=h.slice(i,n),a.unshift(r),h.splice(i,n-i+1,a))}}return xe(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function ef(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const u=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,o=[],c={};let h,f,p=-1,d=n,g=0,m=0;const T=[m];for(;d;){for(;e.get(++i)[1]!==d;);u.push(i),d._tokenizer||(h=r.sliceStream(d),d.next||h.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,T.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):T.pop(),p=T.length;p--;){const C=a.slice(T[p],T[p+1]),k=u.pop();o.push([k,k+C.length-1]),e.splice(k,2,C)}for(o.reverse(),p=-1;++p<o.length;)c[g+o[p][0]]=g+o[p][1],g+=o[p][1]-o[p][0]-1;return c}const tf={resolve:rf,tokenize:uf},nf={partial:!0,tokenize:sf};function rf(e){return Gs(e),e}function uf(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?u(a):V(a)?e.check(nf,s,u)(a):(e.consume(a),i)}function u(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function sf(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),W(e,u,"linePrefix")}function u(s){if(s===null||V(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Xs(e,t,n,r,i,u,s,a,o){const c=o||Number.POSITIVE_INFINITY;let h=0;return f;function f(C){return C===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(C),e.exit(u),p):C===null||C===32||C===41||tr(C)?n(C):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(C))}function p(C){return C===62?(e.enter(u),e.consume(C),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(C))}function d(C){return C===62?(e.exit("chunkString"),e.exit(a),p(C)):C===null||C===60||V(C)?n(C):(e.consume(C),C===92?g:d)}function g(C){return C===60||C===62||C===92?(e.consume(C),d):d(C)}function m(C){return!h&&(C===null||C===41||ne(C))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(C)):h<c&&C===40?(e.consume(C),h++,m):C===41?(e.consume(C),h--,m):C===null||C===32||C===40||tr(C)?n(C):(e.consume(C),C===92?T:m)}function T(C){return C===40||C===41||C===92?(e.consume(C),m):m(C)}}function Js(e,t,n,r,i,u){const s=this;let a=0,o;return c;function c(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(u),h}function h(d){return a>999||d===null||d===91||d===93&&!o||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(u),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||V(d)||a++>999?(e.exit("chunkString"),h(d)):(e.consume(d),o||(o=!G(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function Zs(e,t,n,r,i,u){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,o):n(p)}function o(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(u),c(p))}function c(p){return p===s?(e.exit(u),o(s)):p===null?n(p):V(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),W(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===s||p===null||V(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:h)}function f(p){return p===s||p===92?(e.consume(p),h):h(p)}}function Ye(e,t){let n;return r;function r(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):G(i)?W(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const af={name:"definition",tokenize:lf},of={partial:!0,tokenize:cf};function lf(e,t,n){const r=this;let i;return u;function u(d){return e.enter("definition"),s(d)}function s(d){return Js.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),o):n(d)}function o(d){return ne(d)?Ye(e,c)(d):c(d)}function c(d){return Xs(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function h(d){return e.attempt(of,f,f)(d)}function f(d){return G(d)?W(e,p,"whitespace")(d):p(d)}function p(d){return d===null||V(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function cf(e,t,n){return r;function r(a){return ne(a)?Ye(e,i)(a):n(a)}function i(a){return Zs(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function u(a){return G(a)?W(e,s,"whitespace")(a):s(a)}function s(a){return a===null||V(a)?t(a):n(a)}}const ff={name:"hardBreakEscape",tokenize:hf};function hf(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return V(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}const df={name:"headingAtx",resolve:pf,tokenize:mf};function pf(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},xe(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}function mf(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),u(h)}function u(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||ne(h)?(e.exit("atxHeadingSequence"),a(h)):n(h)}function a(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||V(h)?(e.exit("atxHeading"),t(h)):G(h)?W(e,a,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),a(h))}function c(h){return h===null||h===35||ne(h)?(e.exit("atxHeadingText"),a(h)):(e.consume(h),c)}}const gf=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wu=["pre","script","style","textarea"],Ef={concrete:!0,name:"htmlFlow",resolveTo:Af,tokenize:Cf},bf={partial:!0,tokenize:Df},Tf={partial:!0,tokenize:yf};function Af(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Cf(e,t,n){const r=this;let i,u,s,a,o;return c;function c(D){return h(D)}function h(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),f}function f(D){return D===33?(e.consume(D),p):D===47?(e.consume(D),u=!0,m):D===63?(e.consume(D),i=3,r.interrupt?t:y):Ee(D)?(e.consume(D),s=String.fromCharCode(D),T):n(D)}function p(D){return D===45?(e.consume(D),i=2,d):D===91?(e.consume(D),i=5,a=0,g):Ee(D)?(e.consume(D),i=4,r.interrupt?t:y):n(D)}function d(D){return D===45?(e.consume(D),r.interrupt?t:y):n(D)}function g(D){const Be="CDATA[";return D===Be.charCodeAt(a++)?(e.consume(D),a===Be.length?r.interrupt?t:U:g):n(D)}function m(D){return Ee(D)?(e.consume(D),s=String.fromCharCode(D),T):n(D)}function T(D){if(D===null||D===47||D===62||ne(D)){const Be=D===47,ht=s.toLowerCase();return!Be&&!u&&wu.includes(ht)?(i=1,r.interrupt?t(D):U(D)):gf.includes(s.toLowerCase())?(i=6,Be?(e.consume(D),C):r.interrupt?t(D):U(D)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):u?k(D):N(D))}return D===45||me(D)?(e.consume(D),s+=String.fromCharCode(D),T):n(D)}function C(D){return D===62?(e.consume(D),r.interrupt?t:U):n(D)}function k(D){return G(D)?(e.consume(D),k):O(D)}function N(D){return D===47?(e.consume(D),O):D===58||D===95||Ee(D)?(e.consume(D),L):G(D)?(e.consume(D),N):O(D)}function L(D){return D===45||D===46||D===58||D===95||me(D)?(e.consume(D),L):B(D)}function B(D){return D===61?(e.consume(D),_):G(D)?(e.consume(D),B):N(D)}function _(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),o=D,M):G(D)?(e.consume(D),_):P(D)}function M(D){return D===o?(e.consume(D),o=null,K):D===null||V(D)?n(D):(e.consume(D),M)}function P(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||ne(D)?B(D):(e.consume(D),P)}function K(D){return D===47||D===62||G(D)?N(D):n(D)}function O(D){return D===62?(e.consume(D),I):n(D)}function I(D){return D===null||V(D)?U(D):G(D)?(e.consume(D),I):n(D)}function U(D){return D===45&&i===2?(e.consume(D),ie):D===60&&i===1?(e.consume(D),v):D===62&&i===4?(e.consume(D),le):D===63&&i===3?(e.consume(D),y):D===93&&i===5?(e.consume(D),S):V(D)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(bf,De,Y)(D)):D===null||V(D)?(e.exit("htmlFlowData"),Y(D)):(e.consume(D),U)}function Y(D){return e.check(Tf,X,De)(D)}function X(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),Q}function Q(D){return D===null||V(D)?Y(D):(e.enter("htmlFlowData"),U(D))}function ie(D){return D===45?(e.consume(D),y):U(D)}function v(D){return D===47?(e.consume(D),s="",j):U(D)}function j(D){if(D===62){const Be=s.toLowerCase();return wu.includes(Be)?(e.consume(D),le):U(D)}return Ee(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),j):U(D)}function S(D){return D===93?(e.consume(D),y):U(D)}function y(D){return D===62?(e.consume(D),le):D===45&&i===2?(e.consume(D),y):U(D)}function le(D){return D===null||V(D)?(e.exit("htmlFlowData"),De(D)):(e.consume(D),le)}function De(D){return e.exit("htmlFlow"),t(D)}}function yf(e,t,n){const r=this;return i;function i(s){return V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),u):n(s)}function u(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Df(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(In,t,n)}}const _f={name:"htmlText",tokenize:Sf};function Sf(e,t,n){const r=this;let i,u,s;return a;function a(y){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(y),o}function o(y){return y===33?(e.consume(y),c):y===47?(e.consume(y),B):y===63?(e.consume(y),N):Ee(y)?(e.consume(y),P):n(y)}function c(y){return y===45?(e.consume(y),h):y===91?(e.consume(y),u=0,g):Ee(y)?(e.consume(y),k):n(y)}function h(y){return y===45?(e.consume(y),d):n(y)}function f(y){return y===null?n(y):y===45?(e.consume(y),p):V(y)?(s=f,v(y)):(e.consume(y),f)}function p(y){return y===45?(e.consume(y),d):f(y)}function d(y){return y===62?ie(y):y===45?p(y):f(y)}function g(y){const le="CDATA[";return y===le.charCodeAt(u++)?(e.consume(y),u===le.length?m:g):n(y)}function m(y){return y===null?n(y):y===93?(e.consume(y),T):V(y)?(s=m,v(y)):(e.consume(y),m)}function T(y){return y===93?(e.consume(y),C):m(y)}function C(y){return y===62?ie(y):y===93?(e.consume(y),C):m(y)}function k(y){return y===null||y===62?ie(y):V(y)?(s=k,v(y)):(e.consume(y),k)}function N(y){return y===null?n(y):y===63?(e.consume(y),L):V(y)?(s=N,v(y)):(e.consume(y),N)}function L(y){return y===62?ie(y):N(y)}function B(y){return Ee(y)?(e.consume(y),_):n(y)}function _(y){return y===45||me(y)?(e.consume(y),_):M(y)}function M(y){return V(y)?(s=M,v(y)):G(y)?(e.consume(y),M):ie(y)}function P(y){return y===45||me(y)?(e.consume(y),P):y===47||y===62||ne(y)?K(y):n(y)}function K(y){return y===47?(e.consume(y),ie):y===58||y===95||Ee(y)?(e.consume(y),O):V(y)?(s=K,v(y)):G(y)?(e.consume(y),K):ie(y)}function O(y){return y===45||y===46||y===58||y===95||me(y)?(e.consume(y),O):I(y)}function I(y){return y===61?(e.consume(y),U):V(y)?(s=I,v(y)):G(y)?(e.consume(y),I):K(y)}function U(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),i=y,Y):V(y)?(s=U,v(y)):G(y)?(e.consume(y),U):(e.consume(y),X)}function Y(y){return y===i?(e.consume(y),i=void 0,Q):y===null?n(y):V(y)?(s=Y,v(y)):(e.consume(y),Y)}function X(y){return y===null||y===34||y===39||y===60||y===61||y===96?n(y):y===47||y===62||ne(y)?K(y):(e.consume(y),X)}function Q(y){return y===47||y===62||ne(y)?K(y):n(y)}function ie(y){return y===62?(e.consume(y),e.exit("htmlTextData"),e.exit("htmlText"),t):n(y)}function v(y){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),j}function j(y){return G(y)?W(e,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):S(y)}function S(y){return e.enter("htmlTextData"),s(y)}}const Ri={name:"labelEnd",resolveAll:xf,resolveTo:Of,tokenize:Lf},kf={tokenize:Ff},If={tokenize:wf},Nf={tokenize:Rf};function xf(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&xe(e,0,e.length,n),e}function Of(e,t){let n=e.length,r=0,i,u,s,a;for(;n--;)if(i=e[n][1],u){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(u=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const o={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[u][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",o,t],["enter",c,t]],a=Oe(a,e.slice(u+1,u+r+3)),a=Oe(a,[["enter",h,t]]),a=Oe(a,hr(t.parser.constructs.insideSpan.null,e.slice(u+r+4,s-3),t)),a=Oe(a,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),a=Oe(a,e.slice(s+1)),a=Oe(a,[["exit",o,t]]),xe(e,u,e.length,a),e}function Lf(e,t,n){const r=this;let i=r.events.length,u,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return a;function a(p){return u?u._inactive?f(p):(s=r.parser.defined.includes(He(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),o):n(p)}function o(p){return p===40?e.attempt(kf,h,s?h:f)(p):p===91?e.attempt(If,h,s?c:f)(p):s?h(p):f(p)}function c(p){return e.attempt(Nf,h,f)(p)}function h(p){return t(p)}function f(p){return u._balanced=!0,n(p)}}function Ff(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ne(f)?Ye(e,u)(f):u(f)}function u(f){return f===41?h(f):Xs(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return ne(f)?Ye(e,o)(f):h(f)}function a(f){return n(f)}function o(f){return f===34||f===39||f===40?Zs(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function c(f){return ne(f)?Ye(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function wf(e,t,n){const r=this;return i;function i(a){return Js.call(r,e,u,s,"reference","referenceMarker","referenceString")(a)}function u(a){return r.parser.defined.includes(He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Rf(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}const Pf={name:"labelStartImage",resolveAll:Ri.resolveAll,tokenize:Bf};function Bf(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),u}function u(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Mf={name:"labelStartLink",resolveAll:Ri.resolveAll,tokenize:Uf};function Uf(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),u}function u(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Hr={name:"lineEnding",tokenize:Hf};function Hf(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),W(e,t,"linePrefix")}}const Qn={name:"thematicBreak",tokenize:vf};function vf(e,t,n){let r=0,i;return u;function u(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),o(c)):r>=3&&(c===null||V(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===i?(e.consume(c),r++,o):(e.exit("thematicBreakSequence"),G(c)?W(e,a,"whitespace")(c):a(c))}}const Se={continuation:{tokenize:Yf},exit:Kf,name:"list",tokenize:$f},zf={partial:!0,tokenize:Vf},qf={partial:!0,tokenize:jf};function $f(e,t,n){const r=this,i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:oi(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Qn,n,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(d)}return n(d)}function o(d){return oi(d)&&++s<10?(e.consume(d),o):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):n(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(In,r.interrupt?n:h,e.attempt(zf,p,f))}function h(d){return r.containerState.initialBlankLine=!0,u++,p(d)}function f(d){return G(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function Yf(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(In,i,u);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,W(e,t,"listItemIndent",r.containerState.size+1)(a)}function u(a){return r.containerState.furtherBlankLines||!G(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qf,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,W(e,e.attempt(Se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function jf(e,t,n){const r=this;return W(e,i,"listItemIndent",r.containerState.size+1);function i(u){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(u):n(u)}}function Kf(e){e.exit(this.containerState.type)}function Vf(e,t,n){const r=this;return W(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){const s=r.events[r.events.length-1];return!G(u)&&s&&s[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}const Ru={name:"setextUnderline",resolveTo:Wf,tokenize:Qf};function Wf(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",s,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end={...e[u][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Qf(e,t,n){const r=this;let i;return u;function u(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),G(c)?W(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||V(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Gf={tokenize:Xf};function Xf(e){const t=this,n=e.attempt(In,r,e.attempt(this.parser.constructs.flowInitial,i,W(e,e.attempt(this.parser.constructs.flow,i,e.attempt(tf,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jf={resolveAll:ta()},Zf=ea("string"),eh=ea("text");function ea(e){return{resolveAll:ta(e==="text"?th:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],u=n.attempt(i,s,a);return s;function s(h){return c(h)?u(h):a(h)}function a(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),o}function o(h){return c(h)?(n.exit("data"),u(h)):(n.consume(h),o)}function c(h){if(h===null)return!0;const f=i[h];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function ta(e){return t;function t(n,r){let i=-1,u;for(;++i<=n.length;)u===void 0?n[i]&&n[i][1].type==="data"&&(u=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==u+2&&(n[u][1].end=n[i-1][1].end,n.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(n,r):n}}function th(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let u=i.length,s=-1,a=0,o;for(;u--;){const c=i[u];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)o=!0,a++;else if(c!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||o||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?s:r.start._bufferIndex+s,_index:r.start._index+u,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const nh={42:Se,43:Se,45:Se,48:Se,49:Se,50:Se,51:Se,52:Se,53:Se,54:Se,55:Se,56:Se,57:Se,62:Vs},rh={91:af},ih={[-2]:Ur,[-1]:Ur,32:Ur},uh={35:df,42:Qn,45:[Ru,Qn],60:Ef,61:Ru,95:Qn,96:ci,126:ci},sh={38:Qs,92:Ws},ah={[-5]:Hr,[-4]:Hr,[-3]:Hr,33:Pf,38:Qs,42:li,60:[Bc,_f],91:Mf,92:[ff,Ws],93:Ri,95:li,96:Qc},oh={null:[li,Jf]},lh={null:[42,95]},ch={null:[]},fh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:lh,contentInitial:rh,disable:ch,document:nh,flow:uh,flowInitial:ih,insideSpan:oh,string:sh,text:ah},Symbol.toStringTag,{value:"Module"}));function hh(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},u=[];let s=[],a=[];const o={attempt:M(B),check:M(_),consume:k,enter:N,exit:L,interrupt:M(_,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let h=t.tokenize.call(c,o);return t.resolveAll&&u.push(t),c;function f(I){return s=Oe(s,I),T(),s[s.length-1]!==null?[]:(P(t,0),c.events=hr(u,c.events,c),c.events)}function p(I,U){return ph(d(I),U)}function d(I){return dh(s,I)}function g(){const{_bufferIndex:I,_index:U,line:Y,column:X,offset:Q}=r;return{_bufferIndex:I,_index:U,line:Y,column:X,offset:Q}}function m(I){i[I.line]=I.column,O()}function T(){let I;for(;r._index<s.length;){const U=s[r._index];if(typeof U=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<U.length;)C(U.charCodeAt(r._bufferIndex));else C(U)}}function C(I){h=h(I)}function k(I){V(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,O()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function N(I,U){const Y=U||{};return Y.type=I,Y.start=g(),c.events.push(["enter",Y,c]),a.push(Y),Y}function L(I){const U=a.pop();return U.end=g(),c.events.push(["exit",U,c]),U}function B(I,U){P(I,U.from)}function _(I,U){U.restore()}function M(I,U){return Y;function Y(X,Q,ie){let v,j,S,y;return Array.isArray(X)?De(X):"tokenize"in X?De([X]):le(X);function le(Te){return Xt;function Xt(nt){const St=nt!==null&&Te[nt],kt=nt!==null&&Te.null,Mn=[...Array.isArray(St)?St:St?[St]:[],...Array.isArray(kt)?kt:kt?[kt]:[]];return De(Mn)(nt)}}function De(Te){return v=Te,j=0,Te.length===0?ie:D(Te[j])}function D(Te){return Xt;function Xt(nt){return y=K(),S=Te,Te.partial||(c.currentConstruct=Te),Te.name&&c.parser.constructs.disable.null.includes(Te.name)?ht():Te.tokenize.call(U?Object.assign(Object.create(c),U):c,o,Be,ht)(nt)}}function Be(Te){return I(S,y),Q}function ht(Te){return y.restore(),++j<v.length?D(v[j]):ie}}}function P(I,U){I.resolveAll&&!u.includes(I)&&u.push(I),I.resolve&&xe(c.events,U,c.events.length-U,I.resolve(c.events.slice(U),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function K(){const I=g(),U=c.previous,Y=c.currentConstruct,X=c.events.length,Q=Array.from(a);return{from:X,restore:ie};function ie(){r=I,c.previous=U,c.currentConstruct=Y,c.events.length=X,a=Q,O()}}function O(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dh(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,u)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}u>0&&s.push(e[i].slice(0,u))}return s}function ph(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const u=e[n];let s;if(typeof u=="string")s=u;else switch(u){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(u)}i=u===-2,r.push(s)}return r.join("")}function mh(e){const r={constructs:js([fh,...(e||{}).extensions||[]]),content:i(xc),defined:[],document:i(Lc),flow:i(Gf),lazy:{},string:i(Zf),text:i(eh)};return r;function i(u){return s;function s(a){return hh(r,u,a)}}}function gh(e){for(;!Gs(e););return e}const Pu=/[\0\t\n\r]/g;function Eh(){let e=1,t="",n=!0,r;return i;function i(u,s,a){const o=[];let c,h,f,p,d;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(s||void 0).decode(u)),f=0,t="",n&&(u.charCodeAt(0)===65279&&f++,n=void 0);f<u.length;){if(Pu.lastIndex=f,c=Pu.exec(u),p=c&&c.index!==void 0?c.index:u.length,d=u.charCodeAt(p),!c){t=u.slice(f);break}if(d===10&&f===p&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),f<p&&(o.push(u.slice(f,p)),e+=p-f),d){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return a&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const bh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Th(e){return e.replace(bh,Ah)}function Ah(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),u=i===120||i===88;return Ks(n.slice(u?2:1),u?16:10)}return Cn(n)||e}const na={}.hasOwnProperty;function Ch(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yh(n)(gh(mh(n).document().write(Eh()(e,t,!0))))}function yh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(gu),autolinkProtocol:K,autolinkEmail:K,atxHeading:u(du),blockQuote:u(kt),characterEscape:K,characterReference:K,codeFenced:u(Mn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:u(Mn,s),codeText:u(Ml,s),codeTextData:K,data:K,codeFlowValue:K,definition:u(Ul),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:u(Hl),hardBreakEscape:u(pu),hardBreakTrailing:u(pu),htmlFlow:u(mu,s),htmlFlowData:K,htmlText:u(mu,s),htmlTextData:K,image:u(vl),label:s,link:u(gu),listItem:u(zl),listItemValue:p,listOrdered:u(Eu,f),listUnordered:u(Eu),paragraph:u(ql),reference:D,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:u(du),strong:u($l),thematicBreak:u(jl)},exit:{atxHeading:o(),atxHeadingSequence:B,autolink:o(),autolinkEmail:St,autolinkProtocol:nt,blockQuote:o(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ht,characterReferenceMarkerNumeric:ht,characterReferenceValue:Te,characterReference:Xt,codeFenced:o(T),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:o(C),codeText:o(Q),codeTextData:O,data:O,definition:o(),definitionDestinationString:L,definitionLabelString:k,definitionTitleString:N,emphasis:o(),hardBreakEscape:o(U),hardBreakTrailing:o(U),htmlFlow:o(Y),htmlFlowData:O,htmlText:o(X),htmlTextData:O,image:o(v),label:S,labelText:j,lineEnding:I,link:o(ie),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Be,resourceDestinationString:y,resourceTitleString:le,resource:De,setextHeading:o(P),setextHeadingLineSequence:M,setextHeadingText:_,strong:o(),thematicBreak:o()}};ra(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let $={type:"root",children:[]};const J={stack:[$],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:h,data:n},re=[];let ue=-1;for(;++ue<w.length;)if(w[ue][1].type==="listOrdered"||w[ue][1].type==="listUnordered")if(w[ue][0]==="enter")re.push(ue);else{const Me=re.pop();ue=i(w,Me,ue)}for(ue=-1;++ue<w.length;){const Me=t[w[ue][0]];na.call(Me,w[ue][1].type)&&Me[w[ue][1].type].call(Object.assign({sliceSerialize:w[ue][2].sliceSerialize},J),w[ue][1])}if(J.tokenStack.length>0){const Me=J.tokenStack[J.tokenStack.length-1];(Me[1]||Bu).call(J,void 0,Me[0])}for($.position={start:rt(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:rt(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)$=t.transforms[ue]($)||$;return $}function i(w,$,J){let re=$-1,ue=-1,Me=!1,dt,We,Jt,Zt;for(;++re<=J;){const Ie=w[re];switch(Ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ie[0]==="enter"?ue++:ue--,Zt=void 0;break}case"lineEndingBlank":{Ie[0]==="enter"&&(dt&&!Zt&&!ue&&!Jt&&(Jt=re),Zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zt=void 0}if(!ue&&Ie[0]==="enter"&&Ie[1].type==="listItemPrefix"||ue===-1&&Ie[0]==="exit"&&(Ie[1].type==="listUnordered"||Ie[1].type==="listOrdered")){if(dt){let It=re;for(We=void 0;It--;){const Qe=w[It];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;We&&(w[We][1].type="lineEndingBlank",Me=!0),Qe[1].type="lineEnding",We=It}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}Jt&&(!We||Jt<We)&&(dt._spread=!0),dt.end=Object.assign({},We?w[We][1].start:Ie[1].end),w.splice(We||re,0,["exit",dt,Ie[2]]),re++,J++}if(Ie[1].type==="listItemPrefix"){const It={type:"listItem",_spread:!1,start:Object.assign({},Ie[1].start),end:void 0};dt=It,w.splice(re,0,["enter",It,Ie[2]]),re++,J++,Jt=void 0,Zt=!0}}}return w[$][1]._spread=Me,J}function u(w,$){return J;function J(re){a.call(this,w(re),re),$&&$.call(this,re)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(w,$,J){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([$,J||void 0]),w.position={start:rt($.start),end:void 0}}function o(w){return $;function $(J){w&&w.call(this,J),c.call(this,J)}}function c(w,$){const J=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==w.type&&($?$.call(this,w,re[0]):(re[1]||Bu).call(this,w,re[0]));else throw new Error("Cannot close `"+w.type+"` ("+fn({start:w.start,end:w.end})+"): it’s not open");J.position.end=rt(w.end)}function h(){return wi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(w){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function d(){const w=this.resume(),$=this.stack[this.stack.length-1];$.lang=w}function g(){const w=this.resume(),$=this.stack[this.stack.length-1];$.meta=w}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const w=this.resume(),$=this.stack[this.stack.length-1];$.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function C(){const w=this.resume(),$=this.stack[this.stack.length-1];$.value=w.replace(/(\r?\n|\r)$/g,"")}function k(w){const $=this.resume(),J=this.stack[this.stack.length-1];J.label=$,J.identifier=He(this.sliceSerialize(w)).toLowerCase()}function N(){const w=this.resume(),$=this.stack[this.stack.length-1];$.title=w}function L(){const w=this.resume(),$=this.stack[this.stack.length-1];$.url=w}function B(w){const $=this.stack[this.stack.length-1];if(!$.depth){const J=this.sliceSerialize(w).length;$.depth=J}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function M(w){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function K(w){const J=this.stack[this.stack.length-1].children;let re=J[J.length-1];(!re||re.type!=="text")&&(re=Yl(),re.position={start:rt(w.start),end:void 0},J.push(re)),this.stack.push(re)}function O(w){const $=this.stack.pop();$.value+=this.sliceSerialize(w),$.position.end=rt(w.end)}function I(w){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=$.children[$.children.length-1];J.position.end=rt(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(K.call(this,w),O.call(this,w))}function U(){this.data.atHardBreak=!0}function Y(){const w=this.resume(),$=this.stack[this.stack.length-1];$.value=w}function X(){const w=this.resume(),$=this.stack[this.stack.length-1];$.value=w}function Q(){const w=this.resume(),$=this.stack[this.stack.length-1];$.value=w}function ie(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=$,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function v(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=$,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function j(w){const $=this.sliceSerialize(w),J=this.stack[this.stack.length-2];J.label=Th($),J.identifier=He($).toLowerCase()}function S(){const w=this.stack[this.stack.length-1],$=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const re=w.children;J.children=re}else J.alt=$}function y(){const w=this.resume(),$=this.stack[this.stack.length-1];$.url=w}function le(){const w=this.resume(),$=this.stack[this.stack.length-1];$.title=w}function De(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function Be(w){const $=this.resume(),J=this.stack[this.stack.length-1];J.label=$,J.identifier=He(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function ht(w){this.data.characterReferenceType=w.type}function Te(w){const $=this.sliceSerialize(w),J=this.data.characterReferenceType;let re;J?(re=Ks($,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=Cn($);const ue=this.stack[this.stack.length-1];ue.value+=re}function Xt(w){const $=this.stack.pop();$.position.end=rt(w.end)}function nt(w){O.call(this,w);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(w)}function St(w){O.call(this,w);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(w)}function kt(){return{type:"blockquote",children:[]}}function Mn(){return{type:"code",lang:null,meta:null,value:""}}function Ml(){return{type:"inlineCode",value:""}}function Ul(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Hl(){return{type:"emphasis",children:[]}}function du(){return{type:"heading",depth:0,children:[]}}function pu(){return{type:"break"}}function mu(){return{type:"html",value:""}}function vl(){return{type:"image",title:null,url:"",alt:null}}function gu(){return{type:"link",title:null,url:"",children:[]}}function Eu(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function zl(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function ql(){return{type:"paragraph",children:[]}}function $l(){return{type:"strong",children:[]}}function Yl(){return{type:"text",value:""}}function jl(){return{type:"thematicBreak"}}}function rt(e){return{line:e.line,column:e.column,offset:e.offset}}function ra(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ra(e,r):Dh(e,r)}}function Dh(e,t){let n;for(n in t)if(na.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Bu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fn({start:t.start,end:t.end})+") is still open")}function _h(e){const t=this;t.parser=n;function n(r){return Ch(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sh(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function kh(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function Ih(e,t){const n=t.value?t.value+`
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Nh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xh(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Oh(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=ft(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=u+1,a+=1,e.footnoteCounts.set(r,a);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,o);const c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)}function Lh(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Fh(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ia(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),u=i[0];u&&u.type==="text"?u.value="["+u.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function wh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ia(e,t);const i={src:ft(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,u),e.applyData(t,u)}function Rh(e,t){const n={src:ft(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ph(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ia(e,t);const i={href:ft(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}function Mh(e,t){const n={href:ft(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uh(e,t,n){const r=e.all(t),i=n?Hh(n):ua(t),u={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const h=r[a];(i||a!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
`}),h.type==="element"&&h.tagName==="p"&&!i?s.push(...h.children):s.push(h)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&s.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:u,children:s};return e.patch(t,c),e.applyData(t,c)}function Hh(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ua(n[r])}return t}function ua(e){const t=e.spread;return t??e.children.length>1}function vh(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function zh(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qh(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $h(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const dr=sa("end"),et=sa("start");function sa(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Yh(e){const t=et(e),n=dr(e);if(t&&n)return{start:t,end:n}}function jh(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=et(t.children[1]),o=dr(t.children[t.children.length-1]);a&&o&&(s.position={start:a,end:o}),i.push(s)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,u),e.applyData(t,u)}function Kh(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let o=-1;const c=[];for(;++o<a;){const f=t.children[o],p={},d=s?s[o]:void 0;d&&(p.align=d);let g={type:"element",tagName:u,properties:p,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),c.push(g)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function Vh(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Mu=9,Uu=32;function Wh(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const u=[];for(;r;)u.push(Hu(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return u.push(Hu(t.slice(i),i>0,!1)),u.join("")}function Hu(e,t,n){let r=0,i=e.length;if(t){let u=e.codePointAt(r);for(;u===Mu||u===Uu;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(i-1);for(;u===Mu||u===Uu;)i--,u=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qh(e,t){const n={type:"text",value:Wh(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Gh(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Xh={blockquote:Sh,break:kh,code:Ih,delete:Nh,emphasis:xh,footnoteReference:Oh,heading:Lh,html:Fh,imageReference:wh,image:Rh,inlineCode:Ph,linkReference:Bh,link:Mh,listItem:Uh,list:vh,paragraph:zh,root:qh,strong:$h,table:jh,tableCell:Vh,tableRow:Kh,text:Qh,thematicBreak:Gh,toml:Hn,yaml:Hn,definition:Hn,footnoteDefinition:Hn};function Hn(){}const aa=-1,pr=0,hn=1,nr=2,Pi=3,Bi=4,Mi=5,Ui=6,oa=7,la=8,vu=typeof self=="object"?self:globalThis,Jh=(e,t)=>{const n=(i,u)=>(e.set(u,i),i),r=i=>{if(e.has(i))return e.get(i);const[u,s]=t[i];switch(u){case pr:case aa:return n(s,i);case hn:{const a=n([],i);for(const o of s)a.push(r(o));return a}case nr:{const a=n({},i);for(const[o,c]of s)a[r(o)]=r(c);return a}case Pi:return n(new Date(s),i);case Bi:{const{source:a,flags:o}=s;return n(new RegExp(a,o),i)}case Mi:{const a=n(new Map,i);for(const[o,c]of s)a.set(r(o),r(c));return a}case Ui:{const a=n(new Set,i);for(const o of s)a.add(r(o));return a}case oa:{const{name:a,message:o}=s;return n(new vu[a](o),i)}case la:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new vu[u](s),i)};return r},zu=e=>Jh(new Map,e)(0),Nt="",{toString:Zh}={},{keys:e0}=Object,tn=e=>{const t=typeof e;if(t!=="object"||!e)return[pr,t];const n=Zh.call(e).slice(8,-1);switch(n){case"Array":return[hn,Nt];case"Object":return[nr,Nt];case"Date":return[Pi,Nt];case"RegExp":return[Bi,Nt];case"Map":return[Mi,Nt];case"Set":return[Ui,Nt];case"DataView":return[hn,n]}return n.includes("Array")?[hn,n]:n.includes("Error")?[oa,n]:[nr,n]},vn=([e,t])=>e===pr&&(t==="function"||t==="symbol"),t0=(e,t,n,r)=>{const i=(s,a)=>{const o=r.push(s)-1;return n.set(a,o),o},u=s=>{if(n.has(s))return n.get(s);let[a,o]=tn(s);switch(a){case pr:{let h=s;switch(o){case"bigint":a=la,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([aa],s)}return i([a,h],s)}case hn:{if(o){let p=s;return o==="DataView"?p=new Uint8Array(s.buffer):o==="ArrayBuffer"&&(p=new Uint8Array(s)),i([o,[...p]],s)}const h=[],f=i([a,h],s);for(const p of s)h.push(u(p));return f}case nr:{if(o)switch(o){case"BigInt":return i([o,s.toString()],s);case"Boolean":case"Number":case"String":return i([o,s.valueOf()],s)}if(t&&"toJSON"in s)return u(s.toJSON());const h=[],f=i([a,h],s);for(const p of e0(s))(e||!vn(tn(s[p])))&&h.push([u(p),u(s[p])]);return f}case Pi:return i([a,s.toISOString()],s);case Bi:{const{source:h,flags:f}=s;return i([a,{source:h,flags:f}],s)}case Mi:{const h=[],f=i([a,h],s);for(const[p,d]of s)(e||!(vn(tn(p))||vn(tn(d))))&&h.push([u(p),u(d)]);return f}case Ui:{const h=[],f=i([a,h],s);for(const p of s)(e||!vn(tn(p)))&&h.push(u(p));return f}}const{message:c}=s;return i([a,{name:o,message:c}],s)};return u},qu=(e,{json:t,lossy:n}={})=>{const r=[];return t0(!(t||n),!!t,new Map,r)(e),r},Je=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zu(qu(e,t)):structuredClone(e):(e,t)=>zu(qu(e,t));function n0(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function r0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function i0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||n0,r=e.options.footnoteBackLabel||r0,i=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let o=-1;for(;++o<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[o]);if(!c)continue;const h=e.all(c),f=String(c.identifier).toUpperCase(),p=ft(f.toLowerCase());let d=0;const g=[],m=e.footnoteCounts.get(f);for(;m!==void 0&&++d<=m;){g.length>0&&g.push({type:"text",value:" "});let k=typeof n=="string"?n:n(o,d);typeof k=="string"&&(k={type:"text",value:k}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,d),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const T=h[h.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const k=T.children[T.children.length-1];k&&k.type==="text"?k.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...g)}else h.push(...g);const C={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(h,!0)};e.patch(c,C),a.push(C)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Je(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
`}]}}const mr=(function(e){if(e==null)return o0;if(typeof e=="function")return gr(e);if(typeof e=="object")return Array.isArray(e)?u0(e):s0(e);if(typeof e=="string")return a0(e);throw new Error("Expected function, string, or object as test")});function u0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=mr(e[n]);return gr(r);function r(...i){let u=-1;for(;++u<t.length;)if(t[u].apply(this,i))return!0;return!1}}function s0(e){const t=e;return gr(n);function n(r){const i=r;let u;for(u in e)if(i[u]!==t[u])return!1;return!0}}function a0(e){return gr(t);function t(n){return n&&n.type===e}}function gr(e){return t;function t(n,r,i){return!!(l0(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function o0(){return!0}function l0(e){return e!==null&&typeof e=="object"&&"type"in e}const ca=[],c0=!0,fi=!1,f0="skip";function fa(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const u=mr(i),s=r?-1:1;a(e,void 0,[])();function a(o,c,h){const f=o&&typeof o=="object"?o:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(o.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=ca,g,m,T;if((!t||u(o,c,h[h.length-1]||void 0))&&(d=h0(n(o,h)),d[0]===fi))return d;if("children"in o&&o.children){const C=o;if(C.children&&d[0]!==f0)for(m=(r?C.children.length:-1)+s,T=h.concat(C);m>-1&&m<C.children.length;){const k=C.children[m];if(g=a(k,m,T)(),g[0]===fi)return g;m=typeof g[1]=="number"?g[1]:m+s}}return d}}}function h0(e){return Array.isArray(e)?e:typeof e=="number"?[c0,e]:e==null?ca:[e]}function je(e,t,n,r){let i,u,s;typeof t=="function"&&typeof n!="function"?(u=void 0,s=t,i=n):(u=t,s=n,i=r),fa(e,u,a,i);function a(o,c){const h=c[c.length-1],f=h?h.children.indexOf(o):void 0;return s(o,f,h)}}const hi={}.hasOwnProperty,d0={};function p0(e,t){const n=t||d0,r=new Map,i=new Map,u=new Map,s={...Xh,...n.handlers},a={all:c,applyData:g0,definitionById:r,footnoteById:i,footnoteCounts:u,footnoteOrder:[],handlers:s,one:o,options:n,patch:m0,wrap:b0};return je(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?r:i,p=String(h.identifier).toUpperCase();f.has(p)||f.set(p,h)}}),a;function o(h,f){const p=h.type,d=a.handlers[p];if(hi.call(a.handlers,p)&&d)return d(a,h,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in h){const{children:m,...T}=h,C=Je(T);return C.children=a.all(h),C}return Je(h)}return(a.options.unknownHandler||E0)(a,h,f)}function c(h){const f=[];if("children"in h){const p=h.children;let d=-1;for(;++d<p.length;){const g=a.one(p[d],h);if(g){if(d&&p[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=$u(g.value)),!Array.isArray(g)&&g.type==="element")){const m=g.children[0];m&&m.type==="text"&&(m.value=$u(m.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function m0(e,t){e.position&&(t.position=Yh(e))}function g0(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&u&&Object.assign(n.properties,Je(u)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function E0(e,t){const n=t.data||{},r="value"in t&&!(hi.call(n,"hProperties")||hi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function b0(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function $u(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Yu(e,t){const n=p0(e,t),r=n.one(e,void 0),i=i0(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&u.children.push({type:"text",value:`
`},i),u}function T0(e,t){return e&&"run"in e?async function(n,r){const i=Yu(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Yu(n,{file:r,...e||t})}}const Hi=Symbol.for("yaml.alias"),di=Symbol.for("yaml.document"),lt=Symbol.for("yaml.map"),ha=Symbol.for("yaml.pair"),Ke=Symbol.for("yaml.scalar"),$t=Symbol.for("yaml.seq"),Re=Symbol.for("yaml.node.type"),yt=e=>!!e&&typeof e=="object"&&e[Re]===Hi,Nn=e=>!!e&&typeof e=="object"&&e[Re]===di,xn=e=>!!e&&typeof e=="object"&&e[Re]===lt,de=e=>!!e&&typeof e=="object"&&e[Re]===ha,ae=e=>!!e&&typeof e=="object"&&e[Re]===Ke,On=e=>!!e&&typeof e=="object"&&e[Re]===$t;function ce(e){if(e&&typeof e=="object")switch(e[Re]){case lt:case $t:return!0}return!1}function he(e){if(e&&typeof e=="object")switch(e[Re]){case Hi:case lt:case Ke:case $t:return!0}return!1}const da=e=>(ae(e)||ce(e))&&!!e.anchor,mt=Symbol("break visit"),A0=Symbol("skip children"),dn=Symbol("remove node");function Yt(e,t){const n=C0(t);Nn(e)?Ft(null,e.contents,n,Object.freeze([e]))===dn&&(e.contents=null):Ft(null,e,n,Object.freeze([]))}Yt.BREAK=mt;Yt.SKIP=A0;Yt.REMOVE=dn;function Ft(e,t,n,r){const i=y0(e,t,n,r);if(he(i)||de(i))return D0(e,r,i),Ft(e,i,n,r);if(typeof i!="symbol"){if(ce(t)){r=Object.freeze(r.concat(t));for(let u=0;u<t.items.length;++u){const s=Ft(u,t.items[u],n,r);if(typeof s=="number")u=s-1;else{if(s===mt)return mt;s===dn&&(t.items.splice(u,1),u-=1)}}}else if(de(t)){r=Object.freeze(r.concat(t));const u=Ft("key",t.key,n,r);if(u===mt)return mt;u===dn&&(t.key=null);const s=Ft("value",t.value,n,r);if(s===mt)return mt;s===dn&&(t.value=null)}}return i}function C0(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function y0(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(xn(t))return n.Map?.(e,t,r);if(On(t))return n.Seq?.(e,t,r);if(de(t))return n.Pair?.(e,t,r);if(ae(t))return n.Scalar?.(e,t,r);if(yt(t))return n.Alias?.(e,t,r)}function D0(e,t,n){const r=t[t.length-1];if(ce(r))r.items[e]=n;else if(de(r))e==="key"?r.key=n:r.value=n;else if(Nn(r))r.contents=n;else{const i=yt(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const _0={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},S0=e=>e.replace(/[!,[\]{}]/g,t=>_0[t]);class Ce{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ce.defaultYaml,t),this.tags=Object.assign({},Ce.defaultTags,n)}clone(){const t=new Ce(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Ce(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ce.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ce.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Ce.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ce.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[u,s]=r;return this.tags[u]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[u]=r;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const s=/^\d+\.\d+$/.test(u);return n(6,`Unsupported YAML version ${u}`,s),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),s)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const u=this.tags[r];if(u)try{return u+decodeURIComponent(i)}catch(s){return n(String(s)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+S0(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&he(t.contents)){const u={};Yt(t.contents,(s,a)=>{he(a)&&a.tag&&(u[a.tag]=!0)}),i=Object.keys(u)}else i=[];for(const[u,s]of r)u==="!!"&&s==="tag:yaml.org,2002:"||(!t||i.some(a=>a.startsWith(s)))&&n.push(`%TAG ${u} ${s}`);return n.join(`
`)}}Ce.defaultYaml={explicit:!1,version:"1.2"};Ce.defaultTags={"!!":"tag:yaml.org,2002:"};function pa(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function ma(e){const t=new Set;return Yt(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function ga(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function k0(e,t){const n=[],r=new Map;let i=null;return{onAnchor:u=>{n.push(u),i??(i=ma(e));const s=ga(t,i);return i.add(s),s},setAnchors:()=>{for(const u of n){const s=r.get(u);if(typeof s=="object"&&s.anchor&&(ae(s.node)||ce(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=u,a}}},sourceObjects:r}}function wt(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,u=r.length;i<u;++i){const s=r[i],a=wt(e,r,String(i),s);a===void 0?delete r[i]:a!==s&&(r[i]=a)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const u=r.get(i),s=wt(e,r,i,u);s===void 0?r.delete(i):s!==u&&r.set(i,s)}else if(r instanceof Set)for(const i of Array.from(r)){const u=wt(e,r,i,i);u===void 0?r.delete(i):u!==i&&(r.delete(i),r.add(u))}else for(const[i,u]of Object.entries(r)){const s=wt(e,r,i,u);s===void 0?delete r[i]:s!==u&&(r[i]=s)}return e.call(t,n,r)}function we(e,t,n){if(Array.isArray(e))return e.map((r,i)=>we(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!da(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=u=>{r.res=u,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!n?.keep?Number(e):e}class vi{constructor(t){Object.defineProperty(this,Re,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:u}={}){if(!Nn(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=we(this,"",s);if(typeof i=="function")for(const{count:o,res:c}of s.anchors.values())i(c,o);return typeof u=="function"?wt(u,{"":a},"",a):a}}class zi extends vi{constructor(t){super(Hi),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],Yt(t,{Node:(u,s)=>{(yt(s)||da(s))&&r.push(s)}}),n&&(n.aliasResolveCache=r));let i;for(const u of r){if(u===this)break;u.anchor===this.source&&(i=u)}return i}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:u}=n,s=this.resolve(i,n);if(!s){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(o)}let a=r.get(s);if(a||(we(s,null,n),a=r.get(s)),a?.res===void 0){const o="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(o)}if(u>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Gn(i,s,r)),a.count*a.aliasCount>u)){const o="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(o)}return a.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(pa(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(u)}if(t.implicitKey)return`${i} `}return i}}function Gn(e,t,n){if(yt(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(ce(t)){let r=0;for(const i of t.items){const u=Gn(e,i,n);u>r&&(r=u)}return r}else if(de(t)){const r=Gn(e,t.key,n),i=Gn(e,t.value,n);return Math.max(r,i)}return 1}const Ea=e=>!e||typeof e!="function"&&typeof e!="object";class Z extends vi{constructor(t){super(Ke),this.value=t}toJSON(t,n){return n?.keep?this.value:we(this.value,t,n)}toString(){return String(this.value)}}Z.BLOCK_FOLDED="BLOCK_FOLDED";Z.BLOCK_LITERAL="BLOCK_LITERAL";Z.PLAIN="PLAIN";Z.QUOTE_DOUBLE="QUOTE_DOUBLE";Z.QUOTE_SINGLE="QUOTE_SINGLE";const I0="tag:yaml.org,2002:";function N0(e,t,n){if(t){const r=n.filter(u=>u.tag===t),i=r.find(u=>!u.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>r.identify?.(e)&&!r.format)}function yn(e,t,n){if(Nn(e)&&(e=e.contents),he(e))return e;if(de(e)){const f=n.schema[lt].createNode?.(n.schema,null,n);return f.items.push(e),f}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:u,schema:s,sourceObjects:a}=n;let o;if(r&&e&&typeof e=="object"){if(o=a.get(e),o)return o.anchor??(o.anchor=i(e)),new zi(o.anchor);o={anchor:null,node:null},a.set(e,o)}t?.startsWith("!!")&&(t=I0+t.slice(2));let c=N0(e,t,s.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const f=new Z(e);return o&&(o.node=f),f}c=e instanceof Map?s[lt]:Symbol.iterator in Object(e)?s[$t]:s[lt]}u&&(u(c),delete n.onTagObj);const h=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new Z(e);return t?h.tag=t:c.default||(h.tag=c.tag),o&&(o.node=h),h}function rr(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const u=t[i];if(typeof u=="number"&&Number.isInteger(u)&&u>=0){const s=[];s[u]=r,r=s}else r=new Map([[u,r]])}return yn(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const on=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ba extends vi{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>he(r)||de(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(on(t))this.add(n);else{const[r,...i]=t,u=this.get(r,!0);if(ce(u))u.addIn(i,n);else if(u===void 0&&this.schema)this.set(r,rr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(ce(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,u=this.get(r,!0);return i.length===0?!n&&ae(u)?u.value:u:ce(u)?u.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!de(n))return!1;const r=n.value;return r==null||t&&ae(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return ce(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const u=this.get(r,!0);if(ce(u))u.setIn(i,n);else if(u===void 0&&this.schema)this.set(r,rr(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const x0=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Xe(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const gt=(e,t,n)=>e.endsWith(`
`)?Xe(n,t):n.includes(`
`)?`
`+Xe(n,t):(e.endsWith(" ")?"":" ")+n,Ta="flow",pi="block",Xn="quoted";function Er(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:u=20,onFold:s,onOverflow:a}={}){if(!i||i<0)return e;i<u&&(u=0);const o=Math.max(1+u,1+i-t.length);if(e.length<=o)return e;const c=[],h={};let f=i-t.length;typeof r=="number"&&(r>i-Math.max(2,u)?c.push(0):f=i-r);let p,d,g=!1,m=-1,T=-1,C=-1;n===pi&&(m=ju(e,m,t.length),m!==-1&&(f=m+o));for(let N;N=e[m+=1];){if(n===Xn&&N==="\\"){switch(T=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}C=m}if(N===`
`)n===pi&&(m=ju(e,m,t.length)),f=m+t.length+o,p=void 0;else{if(N===" "&&d&&d!==" "&&d!==`
`&&d!==" "){const L=e[m+1];L&&L!==" "&&L!==`
`&&L!==" "&&(p=m)}if(m>=f)if(p)c.push(p),f=p+o,p=void 0;else if(n===Xn){for(;d===" "||d===" ";)d=N,N=e[m+=1],g=!0;const L=m>C+1?m-2:T-1;if(h[L])return e;c.push(L),h[L]=!0,f=L+o,p=void 0}else g=!0}d=N}if(g&&a&&a(),c.length===0)return e;s&&s();let k=e.slice(0,c[0]);for(let N=0;N<c.length;++N){const L=c[N],B=c[N+1]||e.length;L===0?k=`
${t}${e.slice(0,B)}`:(n===Xn&&h[L]&&(k+=`${e[L]}\\`),k+=`
${t}${e.slice(L+1,B)}`)}return k}function ju(e,t,n){let r=t,i=t+1,u=e[i];for(;u===" "||u===" ";)if(t<i+n)u=e[++t];else{do u=e[++t];while(u&&u!==`
`);r=t,i=t+1,u=e[i]}return r}const br=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Tr=e=>/^(%|---|\.\.\.)/m.test(e);function O0(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let u=0,s=0;u<i;++u)if(e[u]===`
`){if(u-s>r)return!0;if(s=u+1,i-s<=r)return!1}return!0}function pn(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,u=t.indent||(Tr(e)?" ":"");let s="",a=0;for(let o=0,c=n[o];c;c=n[++o])if(c===" "&&n[o+1]==="\\"&&n[o+2]==="n"&&(s+=n.slice(a,o)+"\\ ",o+=1,a=o,c="\\"),c==="\\")switch(n[o+1]){case"u":{s+=n.slice(a,o);const h=n.substr(o+2,4);switch(h){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:h.substr(0,2)==="00"?s+="\\x"+h.substr(2):s+=n.substr(o,6)}o+=5,a=o+1}break;case"n":if(r||n[o+2]==='"'||n.length<i)o+=1;else{for(s+=n.slice(a,o)+`
`;n[o+2]==="\\"&&n[o+3]==="n"&&n[o+4]!=='"';)s+=`
`,o+=2;s+=u,n[o+2]===" "&&(s+="\\"),o+=1,a=o+1}break;default:o+=1}return s=a?s+n.slice(a):n,r?s:Er(s,u,Xn,br(t,!1))}function mi(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return pn(e,t);const n=t.indent||(Tr(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?r:Er(r,n,Ta,br(t,!1))}function Rt(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=pn;else{const i=e.includes('"'),u=e.includes("'");i&&!u?r=mi:u&&!i?r=pn:r=n?mi:pn}return r(e,t)}let gi;try{gi=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{gi=/\n+(?!\n|$)/g}function Jn({comment:e,type:t,value:n},r,i,u){const{blockQuote:s,commentString:a,lineWidth:o}=r.options;if(!s||/\n[\t ]+$/.test(n))return Rt(n,r);const c=r.indent||(r.forceBlockIndent||Tr(n)?" ":""),h=s==="literal"?!0:s==="folded"||t===Z.BLOCK_FOLDED?!1:t===Z.BLOCK_LITERAL?!0:!O0(n,o,c.length);if(!n)return h?`|
`:`>
`;let f,p;for(p=n.length;p>0;--p){const B=n[p-1];if(B!==`
`&&B!==" "&&B!==" ")break}let d=n.substring(p);const g=d.indexOf(`
`);g===-1?f="-":n===d||g!==d.length-1?(f="+",u&&u()):f="",d&&(n=n.slice(0,-d.length),d[d.length-1]===`
`&&(d=d.slice(0,-1)),d=d.replace(gi,`$&${c}`));let m=!1,T,C=-1;for(T=0;T<n.length;++T){const B=n[T];if(B===" ")m=!0;else if(B===`
`)C=T;else break}let k=n.substring(0,C<T?C+1:T);k&&(n=n.substring(k.length),k=k.replace(/\n+/g,`$&${c}`));let L=(m?c?"2":"1":"")+f;if(e&&(L+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!h){const B=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let _=!1;const M=br(r,!0);s!=="folded"&&t!==Z.BLOCK_FOLDED&&(M.onOverflow=()=>{_=!0});const P=Er(`${k}${B}${d}`,c,pi,M);if(!_)return`>${L}
${c}${P}`}return n=n.replace(/\n+/g,`$&${c}`),`|${L}
${c}${k}${n}${d}`}function L0(e,t,n,r){const{type:i,value:u}=e,{actualString:s,implicitKey:a,indent:o,indentStep:c,inFlow:h}=t;if(a&&u.includes(`
`)||h&&/[[\]{},]/.test(u))return Rt(u,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return a||h||!u.includes(`
`)?Rt(u,t):Jn(e,t,n,r);if(!a&&!h&&i!==Z.PLAIN&&u.includes(`
`))return Jn(e,t,n,r);if(Tr(u)){if(o==="")return t.forceBlockIndent=!0,Jn(e,t,n,r);if(a&&o===c)return Rt(u,t)}const f=u.replace(/\n+/g,`$&
${o}`);if(s){const p=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(f),{compat:d,tags:g}=t.doc.schema;if(g.some(p)||d?.some(p))return Rt(u,t)}return a?f:Er(f,o,Ta,br(t,!1))}function qi(e,t,n,r){const{implicitKey:i,inFlow:u}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==Z.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=Z.QUOTE_DOUBLE);const o=h=>{switch(h){case Z.BLOCK_FOLDED:case Z.BLOCK_LITERAL:return i||u?Rt(s.value,t):Jn(s,t,n,r);case Z.QUOTE_DOUBLE:return pn(s.value,t);case Z.QUOTE_SINGLE:return mi(s.value,t);case Z.PLAIN:return L0(s,t,n,r);default:return null}};let c=o(a);if(c===null){const{defaultKeyType:h,defaultStringType:f}=t.options,p=i&&h||f;if(c=o(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}function Aa(e,t){const n=Object.assign({blockQuote:!0,commentString:x0,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function F0(e,t){if(t.tag){const i=e.filter(u=>u.tag===t.tag);if(i.length>0)return i.find(u=>u.format===t.format)??i[0]}let n,r;if(ae(t)){r=t.value;let i=e.filter(u=>u.identify?.(r));if(i.length>1){const u=i.filter(s=>s.test);u.length>0&&(i=u)}n=i.find(u=>u.format===t.format)??i.find(u=>!u.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function w0(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],u=(ae(e)||ce(e))&&e.anchor;u&&pa(u)&&(n.add(u),i.push(`&${u}`));const s=e.tag??(t.default?null:t.tag);return s&&i.push(r.directives.tagString(s)),i.join(" ")}function vt(e,t,n,r){if(de(e))return e.toString(t,n,r);if(yt(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const u=he(e)?e:t.doc.createNode(e,{onTagObj:o=>i=o});i??(i=F0(t.doc.schema.tags,u));const s=w0(u,i,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof i.stringify=="function"?i.stringify(u,t,n,r):ae(u)?qi(u,t,n,r):u.toString(t,n,r);return s?ae(u)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
${t.indent}${a}`:a}function R0({key:e,value:t},n,r,i){const{allNullValues:u,doc:s,indent:a,indentStep:o,options:{commentString:c,indentSeq:h,simpleKeys:f}}=n;let p=he(e)&&e.comment||null;if(f){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(ce(e)||!he(e)&&typeof e=="object"){const M="With simple keys, collection cannot be used as a key value";throw new Error(M)}}let d=!f&&(!e||p&&t==null&&!n.inFlow||ce(e)||(ae(e)?e.type===Z.BLOCK_FOLDED||e.type===Z.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(f||!u),indent:a+o});let g=!1,m=!1,T=vt(e,n,()=>g=!0,()=>m=!0);if(!d&&!n.inFlow&&T.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(u||t==null)return g&&r&&r(),T===""?"?":d?`? ${T}`:T}else if(u&&!f||t==null&&d)return T=`? ${T}`,p&&!g?T+=gt(T,n.indent,c(p)):m&&i&&i(),T;g&&(p=null),d?(p&&(T+=gt(T,n.indent,c(p))),T=`? ${T}
${a}:`):(T=`${T}:`,p&&(T+=gt(T,n.indent,c(p))));let C,k,N;he(t)?(C=!!t.spaceBefore,k=t.commentBefore,N=t.comment):(C=!1,k=null,N=null,t&&typeof t=="object"&&(t=s.createNode(t))),n.implicitKey=!1,!d&&!p&&ae(t)&&(n.indentAtStart=T.length+1),m=!1,!h&&o.length>=2&&!n.inFlow&&!d&&On(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let L=!1;const B=vt(t,n,()=>L=!0,()=>m=!0);let _=" ";if(p||C||k){if(_=C?`
`:"",k){const M=c(k);_+=`
${Xe(M,n.indent)}`}B===""&&!n.inFlow?_===`
`&&N&&(_=`
`):_+=`
${n.indent}`}else if(!d&&ce(t)){const M=B[0],P=B.indexOf(`
`),K=P!==-1,O=n.inFlow??t.flow??t.items.length===0;if(K||!O){let I=!1;if(K&&(M==="&"||M==="!")){let U=B.indexOf(" ");M==="&"&&U!==-1&&U<P&&B[U+1]==="!"&&(U=B.indexOf(" ",U+1)),(U===-1||P<U)&&(I=!0)}I||(_=`
${n.indent}`)}}else(B===""||B[0]===`
`)&&(_="");return T+=_+B,n.inFlow?L&&r&&r():N&&!L?T+=gt(T,n.indent,c(N)):m&&i&&i(),T}function Ca(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const zn="<<",Ze={identify:e=>e===zn||typeof e=="symbol"&&e.description===zn,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Z(Symbol(zn)),{addToJSMap:ya}),stringify:()=>zn},P0=(e,t)=>(Ze.identify(t)||ae(t)&&(!t.type||t.type===Z.PLAIN)&&Ze.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Ze.tag&&n.default);function ya(e,t,n){if(n=e&&yt(n)?n.resolve(e.doc):n,On(n))for(const r of n.items)vr(e,t,r);else if(Array.isArray(n))for(const r of n)vr(e,t,r);else vr(e,t,n)}function vr(e,t,n){const r=e&&yt(n)?n.resolve(e.doc):n;if(!xn(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[u,s]of i)t instanceof Map?t.has(u)||t.set(u,s):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||Object.defineProperty(t,u,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function Da(e,t,{key:n,value:r}){if(he(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(P0(e,n))ya(e,t,r);else{const i=we(n,"",e);if(t instanceof Map)t.set(i,we(r,i,e));else if(t instanceof Set)t.add(i);else{const u=B0(n,i,e),s=we(r,u,e);u in t?Object.defineProperty(t,u,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[u]=s}}return t}function B0(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(he(e)&&n?.doc){const r=Aa(n.doc,{});r.anchors=new Set;for(const u of n.anchors.keys())r.anchors.add(u.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let u=JSON.stringify(i);u.length>40&&(u=u.substring(0,36)+'..."'),Ca(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${u}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function $i(e,t,n){const r=yn(e,void 0,n),i=yn(t,void 0,n);return new ye(r,i)}class ye{constructor(t,n=null){Object.defineProperty(this,Re,{value:ha}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return he(n)&&(n=n.clone(t)),he(r)&&(r=r.clone(t)),new ye(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return Da(n,r,this)}toString(t,n,r){return t?.doc?R0(this,t,n,r):JSON.stringify(this)}}function _a(e,t,n){return(t.inFlow??e.flow?U0:M0)(e,t,n)}function M0({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:u,onChompKeep:s,onComment:a}){const{indent:o,options:{commentString:c}}=n,h=Object.assign({},n,{indent:u,type:null});let f=!1;const p=[];for(let g=0;g<t.length;++g){const m=t[g];let T=null;if(he(m))!f&&m.spaceBefore&&p.push(""),ir(n,p,m.commentBefore,f),m.comment&&(T=m.comment);else if(de(m)){const k=he(m.key)?m.key:null;k&&(!f&&k.spaceBefore&&p.push(""),ir(n,p,k.commentBefore,f))}f=!1;let C=vt(m,h,()=>T=null,()=>f=!0);T&&(C+=gt(C,u,c(T))),f&&T&&(f=!1),p.push(r+C)}let d;if(p.length===0)d=i.start+i.end;else{d=p[0];for(let g=1;g<p.length;++g){const m=p[g];d+=m?`
${o}${m}`:`
`}}return e?(d+=`
`+Xe(c(e),o),a&&a()):f&&s&&s(),d}function U0({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:u,flowCollectionPadding:s,options:{commentString:a}}=t;r+=u;const o=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let g=0;g<e.length;++g){const m=e[g];let T=null;if(he(m))m.spaceBefore&&f.push(""),ir(t,f,m.commentBefore,!1),m.comment&&(T=m.comment);else if(de(m)){const k=he(m.key)?m.key:null;k&&(k.spaceBefore&&f.push(""),ir(t,f,k.commentBefore,!1),k.comment&&(c=!0));const N=he(m.value)?m.value:null;N?(N.comment&&(T=N.comment),N.commentBefore&&(c=!0)):m.value==null&&k?.comment&&(T=k.comment)}T&&(c=!0);let C=vt(m,o,()=>T=null);g<e.length-1&&(C+=","),T&&(C+=gt(C,r,a(T))),!c&&(f.length>h||C.includes(`
`))&&(c=!0),f.push(C),h=f.length}const{start:p,end:d}=n;if(f.length===0)return p+d;if(!c){const g=f.reduce((m,T)=>m+T.length+2,2);c=t.options.lineWidth>0&&g>t.options.lineWidth}if(c){let g=p;for(const m of f)g+=m?`
${u}${i}${m}`:`
`;return`${g}
${i}${d}`}else return`${p}${s}${f.join(" ")}${s}${d}`}function ir({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const u=Xe(t(r),e);n.push(u.trimStart())}}function Et(e,t){const n=ae(t)?t.value:t;for(const r of e)if(de(r)&&(r.key===t||r.key===n||ae(r.key)&&r.key.value===n))return r}class Fe extends ba{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(lt,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:u}=r,s=new this(t),a=(o,c)=>{if(typeof u=="function")c=u.call(n,o,c);else if(Array.isArray(u)&&!u.includes(o))return;(c!==void 0||i)&&s.items.push($i(o,c,r))};if(n instanceof Map)for(const[o,c]of n)a(o,c);else if(n&&typeof n=="object")for(const o of Object.keys(n))a(o,n[o]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,n){let r;de(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new ye(t,t?.value):r=new ye(t.key,t.value);const i=Et(this.items,r.key),u=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);ae(i.value)&&Ea(r.value)?i.value.value=r.value:i.value=r.value}else if(u){const s=this.items.findIndex(a=>u(r,a)<0);s===-1?this.items.push(r):this.items.splice(s,0,r)}else this.items.push(r)}delete(t){const n=Et(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=Et(this.items,t)?.value;return(!n&&ae(i)?i.value:i)??void 0}has(t){return!!Et(this.items,t)}set(t,n){this.add(new ye(t,n),!0)}toJSON(t,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const u of this.items)Da(n,i,u);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!de(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),_a(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const jt={collection:"map",default:!0,nodeClass:Fe,tag:"tag:yaml.org,2002:map",resolve(e,t){return xn(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Fe.from(e,t,n)};class Ct extends ba{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super($t,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=qn(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=qn(t);if(typeof r!="number")return;const i=this.items[r];return!n&&ae(i)?i.value:i}has(t){const n=qn(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=qn(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];ae(i)&&Ea(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const u of this.items)r.push(we(u,String(i++),n));return r}toString(t,n,r){return t?_a(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,u=new this(t);if(n&&Symbol.iterator in Object(n)){let s=0;for(let a of n){if(typeof i=="function"){const o=n instanceof Set?a:String(s++);a=i.call(n,o,a)}u.items.push(yn(a,void 0,r))}}return u}}function qn(e){let t=ae(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Kt={collection:"seq",default:!0,nodeClass:Ct,tag:"tag:yaml.org,2002:seq",resolve(e,t){return On(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Ct.from(e,t,n)},Ar={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),qi(e,t,n,r)}},Cr={identify:e=>e==null,createNode:()=>new Z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Z(null),stringify:({source:e},t)=>typeof e=="string"&&Cr.test.test(e)?e:t.options.nullStr},Yi={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Z(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Yi.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function ve({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let u=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(u)){let s=u.indexOf(".");s<0&&(s=u.length,u+=".");let a=t-(u.length-s-1);for(;a-- >0;)u+="0"}return u}const Sa={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ve},ka={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ve(e)}},Ia={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Z(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:ve},yr=e=>typeof e=="bigint"||Number.isInteger(e),ji=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Na(e,t,n){const{value:r}=e;return yr(r)&&r>=0?n+r.toString(t):ve(e)}const xa={identify:e=>yr(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>ji(e,2,8,n),stringify:e=>Na(e,8,"0o")},Oa={identify:yr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>ji(e,0,10,n),stringify:ve},La={identify:e=>yr(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>ji(e,2,16,n),stringify:e=>Na(e,16,"0x")},H0=[jt,Kt,Ar,Cr,Yi,xa,Oa,La,Sa,ka,Ia];function Ku(e){return typeof e=="bigint"||Number.isInteger(e)}const $n=({value:e})=>JSON.stringify(e),v0=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:$n},{identify:e=>e==null,createNode:()=>new Z(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:$n},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:$n},{identify:Ku,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ku(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:$n}],z0={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},q0=[jt,Kt].concat(v0,z0),Ki={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,u){if(!n)return"";const s=n;let a;if(typeof btoa=="function"){let o="";for(let c=0;c<s.length;++c)o+=String.fromCharCode(s[c]);a=btoa(o)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Z.BLOCK_LITERAL),t!==Z.QUOTE_DOUBLE){const o=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/o),h=new Array(c);for(let f=0,p=0;f<c;++f,p+=o)h[f]=a.substr(p,o);a=h.join(t===Z.BLOCK_LITERAL?`
`:" ")}return qi({comment:e,type:t,value:a},r,i,u)}};function Fa(e,t){if(On(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!de(r)){if(xn(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new ye(new Z(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
${i.key.commentBefore}`:r.commentBefore),r.comment){const u=i.value??i.key;u.comment=u.comment?`${r.comment}
${u.comment}`:r.comment}r=i}e.items[n]=de(r)?r:new ye(r)}}else t("Expected a sequence for this tag");return e}function wa(e,t,n){const{replacer:r}=n,i=new Ct(e);i.tag="tag:yaml.org,2002:pairs";let u=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof r=="function"&&(s=r.call(t,String(u++),s));let a,o;if(Array.isArray(s))if(s.length===2)a=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const c=Object.keys(s);if(c.length===1)a=c[0],o=s[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=s;i.items.push($i(a,o,n))}return i}const Vi={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Fa,createNode:wa};class Bt extends Ct{constructor(){super(),this.add=Fe.prototype.add.bind(this),this.delete=Fe.prototype.delete.bind(this),this.get=Fe.prototype.get.bind(this),this.has=Fe.prototype.has.bind(this),this.set=Fe.prototype.set.bind(this),this.tag=Bt.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let u,s;if(de(i)?(u=we(i.key,"",n),s=we(i.value,u,n)):u=we(i,"",n),r.has(u))throw new Error("Ordered maps must not include duplicate keys");r.set(u,s)}return r}static from(t,n,r){const i=wa(t,n,r),u=new this;return u.items=i.items,u}}Bt.tag="tag:yaml.org,2002:omap";const Wi={collection:"seq",identify:e=>e instanceof Map,nodeClass:Bt,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Fa(e,t),r=[];for(const{key:i}of n.items)ae(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Bt,n)},createNode:(e,t,n)=>Bt.from(e,t,n)};function Ra({value:e,source:t},n){return t&&(e?Pa:Ba).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Pa={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Z(!0),stringify:Ra},Ba={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Z(!1),stringify:Ra},$0={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ve},Y0={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ve(e)}},j0={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Z(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:ve},Ln=e=>typeof e=="bigint"||Number.isInteger(e);function Dr(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return i==="-"?BigInt(-1)*s:s}const u=parseInt(e,n);return i==="-"?-1*u:u}function Qi(e,t,n){const{value:r}=e;if(Ln(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return ve(e)}const K0={identify:Ln,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Dr(e,2,2,n),stringify:e=>Qi(e,2,"0b")},V0={identify:Ln,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Dr(e,1,8,n),stringify:e=>Qi(e,8,"0")},W0={identify:Ln,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Dr(e,0,10,n),stringify:ve},Q0={identify:Ln,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Dr(e,2,16,n),stringify:e=>Qi(e,16,"0x")};class Mt extends Fe{constructor(t){super(t),this.tag=Mt.tag}add(t){let n;de(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new ye(t.key,null):n=new ye(t,null),Et(this.items,n.key)||this.items.push(n)}get(t,n){const r=Et(this.items,t);return!n&&de(r)?ae(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Et(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new ye(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,u=new this(t);if(n&&Symbol.iterator in Object(n))for(let s of n)typeof i=="function"&&(s=i.call(n,s,s)),u.items.push($i(s,null,r));return u}}Mt.tag="tag:yaml.org,2002:set";const Gi={collection:"map",identify:e=>e instanceof Set,nodeClass:Mt,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Mt.from(e,t,n),resolve(e,t){if(xn(e)){if(e.hasAllNullValues(!0))return Object.assign(new Mt,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Xi(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=s=>t?BigInt(s):Number(s),u=r.replace(/_/g,"").split(":").reduce((s,a)=>s*i(60)+i(a),i(0));return n==="-"?i(-1)*u:u}function Ma(e){let{value:t}=e,n=s=>s;if(typeof t=="bigint")n=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return ve(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),u=[t%i];return t<60?u.unshift(0):(t=(t-u[0])/i,u.unshift(t%i),t>=60&&(t=(t-u[0])/i,u.unshift(t))),r+u.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Ua={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Xi(e,n),stringify:Ma},Ha={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Xi(e,!1),stringify:Ma},_r={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(_r.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,u,s,a]=t.map(Number),o=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,u||0,s||0,a||0,o);const h=t[8];if(h&&h!=="Z"){let f=Xi(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Vu=[jt,Kt,Ar,Cr,Pa,Ba,K0,V0,W0,Q0,$0,Y0,j0,Ki,Ze,Wi,Vi,Gi,Ua,Ha,_r],Wu=new Map([["core",H0],["failsafe",[jt,Kt,Ar]],["json",q0],["yaml11",Vu],["yaml-1.1",Vu]]),Qu={binary:Ki,bool:Yi,float:Ia,floatExp:ka,floatNaN:Sa,floatTime:Ha,int:Oa,intHex:La,intOct:xa,intTime:Ua,map:jt,merge:Ze,null:Cr,omap:Wi,pairs:Vi,seq:Kt,set:Gi,timestamp:_r},G0={"tag:yaml.org,2002:binary":Ki,"tag:yaml.org,2002:merge":Ze,"tag:yaml.org,2002:omap":Wi,"tag:yaml.org,2002:pairs":Vi,"tag:yaml.org,2002:set":Gi,"tag:yaml.org,2002:timestamp":_r};function zr(e,t,n){const r=Wu.get(t);if(r&&!e)return n&&!r.includes(Ze)?r.concat(Ze):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{const u=Array.from(Wu.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${u} or define customTags array`)}if(Array.isArray(e))for(const u of e)i=i.concat(u);else typeof e=="function"&&(i=e(i.slice()));return n&&(i=i.concat(Ze)),i.reduce((u,s)=>{const a=typeof s=="string"?Qu[s]:s;if(!a){const o=JSON.stringify(s),c=Object.keys(Qu).map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown custom tag ${o}; use one of ${c}`)}return u.includes(a)||u.push(a),u},[])}const X0=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let J0=class va{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:u,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?zr(t,"compat"):t?zr(null,t):null,this.name=typeof u=="string"&&u||"core",this.knownTags=i?G0:{},this.tags=zr(n,this.name,r),this.toStringOptions=a??null,Object.defineProperty(this,lt,{value:jt}),Object.defineProperty(this,Ke,{value:Ar}),Object.defineProperty(this,$t,{value:Kt}),this.sortMapEntries=typeof s=="function"?s:s===!0?X0:null}clone(){const t=Object.create(va.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function Z0(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const o=e.directives.toString(e);o?(n.push(o),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Aa(e,t),{commentString:u}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const o=u(e.commentBefore);n.unshift(Xe(o,""))}let s=!1,a=null;if(e.contents){if(he(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const h=u(e.contents.commentBefore);n.push(Xe(h,""))}i.forceBlockIndent=!!e.comment,a=e.contents.comment}const o=a?void 0:()=>s=!0;let c=vt(e.contents,i,()=>a=null,o);a&&(c+=gt(c,"",u(a))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(vt(e.contents,i));if(e.directives?.docEnd)if(e.comment){const o=u(e.comment);o.includes(`
`)?(n.push("..."),n.push(Xe(o,""))):n.push(`... ${o}`)}else n.push("...");else{let o=e.comment;o&&s&&(o=o.replace(/^\n+/,"")),o&&((!s||a)&&n[n.length-1]!==""&&n.push(""),n.push(Xe(u(o),"")))}return n.join(`
`)+`
`}class Fn{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Re,{value:di});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const u=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=u;let{version:s}=u;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Ce({version:s}),this.setSchema(s,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Fn.prototype,{[Re]:{value:di}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=he(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){xt(this.contents)&&this.contents.add(t)}addIn(t,n){xt(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=ma(this);t.anchor=!n||r.has(n)?ga(n||"a",r):n}return new zi(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const T=k=>typeof k=="number"||k instanceof String||k instanceof Number,C=n.filter(T).map(String);C.length>0&&(n=n.concat(C)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:u,anchorPrefix:s,flow:a,keepUndefined:o,onTagObj:c,tag:h}=r??{},{onAnchor:f,setAnchors:p,sourceObjects:d}=k0(this,s||"a"),g={aliasDuplicateObjects:u??!0,keepUndefined:o??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:d},m=yn(t,h,g);return a&&ce(m)&&(m.flow=!0),p(),m}createPair(t,n,r={}){const i=this.createNode(t,null,r),u=this.createNode(n,null,r);return new ye(i,u)}delete(t){return xt(this.contents)?this.contents.delete(t):!1}deleteIn(t){return on(t)?this.contents==null?!1:(this.contents=null,!0):xt(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return ce(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return on(t)?!n&&ae(this.contents)?this.contents.value:this.contents:ce(this.contents)?this.contents.getIn(t,n):void 0}has(t){return ce(this.contents)?this.contents.has(t):!1}hasIn(t){return on(t)?this.contents!==void 0:ce(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=rr(this.schema,[t],n):xt(this.contents)&&this.contents.set(t,n)}setIn(t,n){on(t)?this.contents=n:this.contents==null?this.contents=rr(this.schema,Array.from(t),n):xt(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ce({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Ce({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new J0(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:u,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},o=we(this.contents,n??"",a);if(typeof u=="function")for(const{count:c,res:h}of a.anchors.values())u(h,c);return typeof s=="function"?wt(s,{"":o},"",o):o}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Z0(this,t)}}function xt(e){if(ce(e))return!0;throw new Error("Expected a YAML collection as document contents")}class za extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class ln extends za{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class ed extends za{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Gu=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(a=>t.linePos(a));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let u=i-1,s=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(u>=60&&s.length>80){const a=Math.min(u-39,s.length-79);s="…"+s.substring(a),u-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),r>1&&/^ *$/.test(s.substring(0,u))){let a=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`…
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const o=n.linePos[1];o?.line===r&&o.col>i&&(a=Math.max(1,Math.min(o.col-i,80-u)));const c=" ".repeat(u)+"^".repeat(a);n.message+=`:
${s}
${c}
`}};function zt(e,{flow:t,indicator:n,next:r,offset:i,onError:u,parentIndent:s,startOnNewline:a}){let o=!1,c=a,h=a,f="",p="",d=!1,g=!1,m=null,T=null,C=null,k=null,N=null,L=null,B=null;for(const P of e)switch(g&&(P.type!=="space"&&P.type!=="newline"&&P.type!=="comma"&&u(P.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),m&&(c&&P.type!=="comment"&&P.type!=="newline"&&u(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),P.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&P.source.includes(" ")&&(m=P),h=!0;break;case"comment":{h||u(P,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const K=P.source.substring(1)||" ";f?f+=p+K:f=K,p="",c=!1;break}case"newline":c?f?f+=P.source:(!L||n!=="seq-item-ind")&&(o=!0):p+=P.source,c=!0,d=!0,(T||C)&&(k=P),h=!0;break;case"anchor":T&&u(P,"MULTIPLE_ANCHORS","A node can have at most one anchor"),P.source.endsWith(":")&&u(P.offset+P.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),T=P,B??(B=P.offset),c=!1,h=!1,g=!0;break;case"tag":{C&&u(P,"MULTIPLE_TAGS","A node can have at most one tag"),C=P,B??(B=P.offset),c=!1,h=!1,g=!0;break}case n:(T||C)&&u(P,"BAD_PROP_ORDER",`Anchors and tags must be after the ${P.source} indicator`),L&&u(P,"UNEXPECTED_TOKEN",`Unexpected ${P.source} in ${t??"collection"}`),L=P,c=n==="seq-item-ind"||n==="explicit-key-ind",h=!1;break;case"comma":if(t){N&&u(P,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),N=P,c=!1,h=!1;break}default:u(P,"UNEXPECTED_TOKEN",`Unexpected ${P.type} token`),c=!1,h=!1}const _=e[e.length-1],M=_?_.offset+_.source.length:i;return g&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&u(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(c&&m.indent<=s||r?.type==="block-map"||r?.type==="block-seq")&&u(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:N,found:L,spaceBefore:o,comment:f,hasNewline:d,anchor:T,tag:C,newlineAfterProp:k,end:M,start:B??M}}function Dn(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Dn(t.key)||Dn(t.value))return!0}return!1;default:return!0}}function Ei(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Dn(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function qa(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(u,s)=>u===s||ae(u)&&ae(s)&&u.value===s.value;return t.some(u=>i(u.key,n))}const Xu="All mapping items must start at the same column";function td({composeNode:e,composeEmptyNode:t},n,r,i,u){const s=u?.nodeClass??Fe,a=new s(n.schema);n.atRoot&&(n.atRoot=!1);let o=r.offset,c=null;for(const h of r.items){const{start:f,key:p,sep:d,value:g}=h,m=zt(f,{indicator:"explicit-key-ind",next:p??d?.[0],offset:o,onError:i,parentIndent:r.indent,startOnNewline:!0}),T=!m.found;if(T){if(p&&(p.type==="block-seq"?i(o,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&i(o,"BAD_INDENT",Xu)),!m.anchor&&!m.tag&&!d){c=m.end,m.comment&&(a.comment?a.comment+=`
`+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||Dn(p))&&i(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==r.indent&&i(o,"BAD_INDENT",Xu);n.atKey=!0;const C=m.end,k=p?e(n,p,m,i):t(n,C,f,null,m,i);n.schema.compat&&Ei(r.indent,p,i),n.atKey=!1,qa(n,a.items,k)&&i(C,"DUPLICATE_KEY","Map keys must be unique");const N=zt(d??[],{indicator:"map-value-ind",next:g,offset:k.range[2],onError:i,parentIndent:r.indent,startOnNewline:!p||p.type==="block-scalar"});if(o=N.end,N.found){T&&(g?.type==="block-map"&&!N.hasNewline&&i(o,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&m.start<N.found.offset-1024&&i(k.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const L=g?e(n,g,N,i):t(n,o,d,null,N,i);n.schema.compat&&Ei(r.indent,g,i),o=L.range[2];const B=new ye(k,L);n.options.keepSourceTokens&&(B.srcToken=h),a.items.push(B)}else{T&&i(k.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(k.comment?k.comment+=`
`+N.comment:k.comment=N.comment);const L=new ye(k);n.options.keepSourceTokens&&(L.srcToken=h),a.items.push(L)}}return c&&c<o&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,o,c??o],a}function nd({composeNode:e,composeEmptyNode:t},n,r,i,u){const s=u?.nodeClass??Ct,a=new s(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let o=r.offset,c=null;for(const{start:h,value:f}of r.items){const p=zt(h,{indicator:"seq-item-ind",next:f,offset:o,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||f)f?.type==="block-seq"?i(p.end,"BAD_INDENT","All sequence items must start at the same column"):i(o,"MISSING_CHAR","Sequence item without - indicator");else{c=p.end,p.comment&&(a.comment=p.comment);continue}const d=f?e(n,f,p,i):t(n,p.end,h,null,p,i);n.schema.compat&&Ei(r.indent,f,i),o=d.range[2],a.items.push(d)}return a.range=[r.offset,o,c??o],a}function wn(e,t,n,r){let i="";if(e){let u=!1,s="";for(const a of e){const{source:o,type:c}=a;switch(c){case"space":u=!0;break;case"comment":{n&&!u&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=o.substring(1)||" ";i?i+=s+h:i=h,s="";break}case"newline":i&&(s+=o),u=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=o.length}}return{comment:i,offset:t}}const qr="Block collections are not allowed within flow collections",$r=e=>e&&(e.type==="block-map"||e.type==="block-seq");function rd({composeNode:e,composeEmptyNode:t},n,r,i,u){const s=r.start.source==="{",a=s?"flow map":"flow sequence",o=u?.nodeClass??(s?Fe:Ct),c=new o(n.schema);c.flow=!0;const h=n.atRoot;h&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let f=r.offset+r.start.source.length;for(let T=0;T<r.items.length;++T){const C=r.items[T],{start:k,key:N,sep:L,value:B}=C,_=zt(k,{flow:a,indicator:"explicit-key-ind",next:N??L?.[0],offset:f,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!_.found){if(!_.anchor&&!_.tag&&!L&&!B){T===0&&_.comma?i(_.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):T<r.items.length-1&&i(_.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),_.comment&&(c.comment?c.comment+=`
`+_.comment:c.comment=_.comment),f=_.end;continue}!s&&n.options.strict&&Dn(N)&&i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(T===0)_.comma&&i(_.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(_.comma||i(_.start,"MISSING_CHAR",`Missing , between ${a} items`),_.comment){let M="";e:for(const P of k)switch(P.type){case"comma":case"space":break;case"comment":M=P.source.substring(1);break e;default:break e}if(M){let P=c.items[c.items.length-1];de(P)&&(P=P.value??P.key),P.comment?P.comment+=`
`+M:P.comment=M,_.comment=_.comment.substring(M.length+1)}}if(!s&&!L&&!_.found){const M=B?e(n,B,_,i):t(n,_.end,L,null,_,i);c.items.push(M),f=M.range[2],$r(B)&&i(M.range,"BLOCK_IN_FLOW",qr)}else{n.atKey=!0;const M=_.end,P=N?e(n,N,_,i):t(n,M,k,null,_,i);$r(N)&&i(P.range,"BLOCK_IN_FLOW",qr),n.atKey=!1;const K=zt(L??[],{flow:a,indicator:"map-value-ind",next:B,offset:P.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(K.found){if(!s&&!_.found&&n.options.strict){if(L)for(const U of L){if(U===K.found)break;if(U.type==="newline"){i(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}_.start<K.found.offset-1024&&i(K.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else B&&("source"in B&&B.source?.[0]===":"?i(B,"MISSING_CHAR",`Missing space after : in ${a}`):i(K.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const O=B?e(n,B,K,i):K.found?t(n,K.end,L,null,K,i):null;O?$r(B)&&i(O.range,"BLOCK_IN_FLOW",qr):K.comment&&(P.comment?P.comment+=`
`+K.comment:P.comment=K.comment);const I=new ye(P,O);if(n.options.keepSourceTokens&&(I.srcToken=C),s){const U=c;qa(n,U.items,P)&&i(M,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(I)}else{const U=new Fe(n.schema);U.flow=!0,U.items.push(I);const Y=(O??P).range;U.range=[P.range[0],Y[1],Y[2]],c.items.push(U)}f=O?O.range[2]:K.end}}const p=s?"}":"]",[d,...g]=r.end;let m=f;if(d?.source===p)m=d.offset+d.source.length;else{const T=a[0].toUpperCase()+a.substring(1),C=h?`${T} must end with a ${p}`:`${T} in block collection must be sufficiently indented and end with a ${p}`;i(f,h?"MISSING_CHAR":"BAD_INDENT",C),d&&d.source.length!==1&&g.unshift(d)}if(g.length>0){const T=wn(g,m,n.options.strict,i);T.comment&&(c.comment?c.comment+=`
`+T.comment:c.comment=T.comment),c.range=[r.offset,m,T.offset]}else c.range=[r.offset,m,m];return c}function Yr(e,t,n,r,i,u){const s=n.type==="block-map"?td(e,t,n,r,u):n.type==="block-seq"?nd(e,t,n,r,u):rd(e,t,n,r,u),a=s.constructor;return i==="!"||i===a.tagName?(s.tag=a.tagName,s):(i&&(s.tag=i),s)}function id(e,t,n,r,i){const u=r.tag,s=u?t.directives.tagName(u.source,p=>i(u,"TAG_RESOLVE_FAILED",p)):null;if(n.type==="block-seq"){const{anchor:p,newlineAfterProp:d}=r,g=p&&u?p.offset>u.offset?p:u:p??u;g&&(!d||d.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}const a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!u||!s||s==="!"||s===Fe.tagName&&a==="map"||s===Ct.tagName&&a==="seq")return Yr(e,t,n,i,s);let o=t.schema.tags.find(p=>p.tag===s&&p.collection===a);if(!o){const p=t.schema.knownTags[s];if(p?.collection===a)t.schema.tags.push(Object.assign({},p,{default:!1})),o=p;else return p?i(u,"BAD_COLLECTION_TYPE",`${p.tag} used for ${a} collection, but expects ${p.collection??"scalar"}`,!0):i(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),Yr(e,t,n,i,s)}const c=Yr(e,t,n,i,s,o),h=o.resolve?.(c,p=>i(u,"TAG_RESOLVE_FAILED",p),t.options)??c,f=he(h)?h:new Z(h);return f.range=c.range,f.tag=s,o?.format&&(f.format=o.format),f}function ud(e,t,n){const r=t.offset,i=sd(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const u=i.mode===">"?Z.BLOCK_FOLDED:Z.BLOCK_LITERAL,s=t.source?ad(t.source):[];let a=s.length;for(let m=s.length-1;m>=0;--m){const T=s[m][1];if(T===""||T==="\r")a=m;else break}if(a===0){const m=i.chomp==="+"&&s.length>0?`
`.repeat(Math.max(1,s.length-1)):"";let T=r+i.length;return t.source&&(T+=t.source.length),{value:m,type:u,comment:i.comment,range:[r,T,T]}}let o=t.indent+i.indent,c=t.offset+i.length,h=0;for(let m=0;m<a;++m){const[T,C]=s[m];if(C===""||C==="\r")i.indent===0&&T.length>o&&(o=T.length);else{T.length<o&&n(c+T.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(o=T.length),h=m,o===0&&!e.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=T.length+C.length+1}for(let m=s.length-1;m>=a;--m)s[m][0].length>o&&(a=m+1);let f="",p="",d=!1;for(let m=0;m<h;++m)f+=s[m][0].slice(o)+`
`;for(let m=h;m<a;++m){let[T,C]=s[m];c+=T.length+C.length+1;const k=C[C.length-1]==="\r";if(k&&(C=C.slice(0,-1)),C&&T.length<o){const L=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-C.length-(k?2:1),"BAD_INDENT",L),T=""}u===Z.BLOCK_LITERAL?(f+=p+T.slice(o)+C,p=`
`):T.length>o||C[0]===" "?(p===" "?p=`
`:!d&&p===`
`&&(p=`
`),f+=p+T.slice(o)+C,p=`
`,d=!0):C===""?p===`
`?f+=`
`:p=`
`:(f+=p+C,p=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let m=a;m<s.length;++m)f+=`
`+s[m][0].slice(o);f[f.length-1]!==`
`&&(f+=`
`);break;default:f+=`
`}const g=r+i.length+t.source.length;return{value:f,type:u,comment:i.comment,range:[r,g,g]}}function sd({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],u=i[0];let s=0,a="",o=-1;for(let p=1;p<i.length;++p){const d=i[p];if(!a&&(d==="-"||d==="+"))a=d;else{const g=Number(d);!s&&g?s=g:o===-1&&(o=e+p)}}o!==-1&&r(o,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,h="",f=i.length;for(let p=1;p<t.length;++p){const d=t[p];switch(d.type){case"space":c=!0;case"newline":f+=d.source.length;break;case"comment":n&&!c&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=d.source.length,h=d.source.substring(1);break;case"error":r(d,"UNEXPECTED_TOKEN",d.message),f+=d.source.length;break;default:{const g=`Unexpected token in block scalar header: ${d.type}`;r(d,"UNEXPECTED_TOKEN",g);const m=d.source;m&&typeof m=="string"&&(f+=m.length)}}}return{mode:u,indent:s,chomp:a,comment:h,length:f}}function ad(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),u=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let s=1;s<t.length;s+=2)u.push([t[s],t[s+1]]);return u}function od(e,t,n){const{offset:r,type:i,source:u,end:s}=e;let a,o;const c=(p,d,g)=>n(r+p,d,g);switch(i){case"scalar":a=Z.PLAIN,o=ld(u,c);break;case"single-quoted-scalar":a=Z.QUOTE_SINGLE,o=cd(u,c);break;case"double-quoted-scalar":a=Z.QUOTE_DOUBLE,o=fd(u,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+u.length,r+u.length]}}const h=r+u.length,f=wn(s,h,t,n);return{value:o,type:a,comment:f.comment,range:[r,h,f.offset]}}function ld(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),$a(e)}function cd(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),$a(e.slice(1,-1)).replace(/''/g,"'")}function $a(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],u=" ",s=t.lastIndex;for(n.lastIndex=s;r=n.exec(e);)r[1]===""?u===`
`?i+=u:u=`
`:(i+=u+r[1],u=" "),s=n.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=s,r=a.exec(e),i+u+(r?.[1]??"")}function fd(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
`))if(i===`
`){const{fold:u,offset:s}=hd(e,r);n+=u,r=s}else if(i==="\\"){let u=e[++r];const s=dd[u];if(s)n+=s;else if(u===`
`)for(u=e[r+1];u===" "||u===" ";)u=e[++r+1];else if(u==="\r"&&e[r+1]===`
`)for(u=e[++r+1];u===" "||u===" ";)u=e[++r+1];else if(u==="x"||u==="u"||u==="U"){const a={x:2,u:4,U:8}[u];n+=pd(e,r+1,a,t),r+=a}else{const a=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),n+=a}}else if(i===" "||i===" "){const u=r;let s=e[r+1];for(;s===" "||s===" ";)s=e[++r+1];s!==`
`&&!(s==="\r"&&e[r+2]===`
`)&&(n+=r>u?e.slice(u,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function hd(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
`);)r===`
`&&(n+=`
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const dd={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function pd(e,t,n,r){const i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(s)){const a=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function Ya(e,t,n,r){const{value:i,type:u,comment:s,range:a}=t.type==="block-scalar"?ud(e,t,r):od(t,e.options.strict,r),o=n?e.directives.tagName(n.source,f=>r(n,"TAG_RESOLVE_FAILED",f)):null;let c;e.options.stringKeys&&e.atKey?c=e.schema[Ke]:o?c=md(e.schema,i,o,n,r):t.type==="scalar"?c=gd(e,i,t,r):c=e.schema[Ke];let h;try{const f=c.resolve(i,p=>r(n??t,"TAG_RESOLVE_FAILED",p),e.options);h=ae(f)?f:new Z(f)}catch(f){const p=f instanceof Error?f.message:String(f);r(n??t,"TAG_RESOLVE_FAILED",p),h=new Z(i)}return h.range=a,h.source=i,u&&(h.type=u),o&&(h.tag=o),c.format&&(h.format=c.format),s&&(h.comment=s),h}function md(e,t,n,r,i){if(n==="!")return e[Ke];const u=[];for(const a of e.tags)if(!a.collection&&a.tag===n)if(a.default&&a.test)u.push(a);else return a;for(const a of u)if(a.test?.test(t))return a;const s=e.knownTags[n];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Ke])}function gd({atKey:e,directives:t,schema:n},r,i,u){const s=n.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(r))||n[Ke];if(n.compat){const a=n.compat.find(o=>o.default&&o.test?.test(r))??n[Ke];if(s.tag!==a.tag){const o=t.tagString(s.tag),c=t.tagString(a.tag),h=`Value may be parsed as either ${o} or ${c}`;u(i,"TAG_RESOLVE_FAILED",h,!0)}}return s}function Ed(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];i?.type==="space";)e+=i.source.length,i=t[++r];break}}return e}const bd={composeNode:ja,composeEmptyNode:Ji};function ja(e,t,n,r){const i=e.atKey,{spaceBefore:u,comment:s,anchor:a,tag:o}=n;let c,h=!0;switch(t.type){case"alias":c=Td(e,t,r),(a||o)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Ya(e,t,o,r),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=id(bd,e,t,n,r),a&&(c.anchor=a.source.substring(1));break;default:{const f=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",f),c=Ji(e,t.offset,void 0,null,n,r),h=!1}}return a&&c.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!ae(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(o??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),u&&(c.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?c.comment=s:c.commentBefore=s),e.options.keepSourceTokens&&h&&(c.srcToken=t),c}function Ji(e,t,n,r,{spaceBefore:i,comment:u,anchor:s,tag:a,end:o},c){const h={type:"scalar",offset:Ed(t,n,r),indent:-1,source:""},f=Ya(e,h,a,c);return s&&(f.anchor=s.source.substring(1),f.anchor===""&&c(s,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),u&&(f.comment=u,f.range[2]=o),f}function Td({options:e},{offset:t,source:n,end:r},i){const u=new zi(n.substring(1));u.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),u.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+n.length,a=wn(r,s,e.strict,i);return u.range=[t,s,a.offset],a.comment&&(u.comment=a.comment),u}function Ad(e,t,{offset:n,start:r,value:i,end:u},s){const a=Object.assign({_directives:t},e),o=new Fn(void 0,a),c={atKey:!1,atRoot:!0,directives:o.directives,options:o.options,schema:o.schema},h=zt(r,{indicator:"doc-start",next:i??u?.[0],offset:n,onError:s,parentIndent:0,startOnNewline:!0});h.found&&(o.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!h.hasNewline&&s(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),o.contents=i?ja(c,i,h,s):Ji(c,h.end,r,null,h,s);const f=o.contents.range[2],p=wn(u,f,!1,s);return p.comment&&(o.comment=p.comment),o.range=[n,f,p.offset],o}function nn(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function Ju(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const u=e[i];switch(u[0]){case"#":t+=(t===""?"":r?`
`:`
`)+(u.substring(1)||" "),n=!0,r=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Cd{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,u)=>{const s=nn(n);u?this.warnings.push(new ed(s,r,i)):this.errors.push(new ln(s,r,i))},this.directives=new Ce({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=Ju(this.prelude);if(r){const u=t.contents;if(n)t.comment=t.comment?`${t.comment}
${r}`:r;else if(i||t.directives.docStart||!u)t.commentBefore=r;else if(ce(u)&&!u.flow&&u.items.length>0){let s=u.items[0];de(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${r}
${a}`:r}else{const s=u.commentBefore;u.commentBefore=s?`${r}
${s}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ju(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const u=nn(t);u[0]+=n,this.onError(u,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=Ad(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new ln(nn(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new ln(nn(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=wn(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new ln(nn(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Fn(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Ka="\uFEFF",Va="",Wa="",bi="";function yd(e){switch(e){case Ka:return"byte-order-mark";case Va:return"doc-mode";case Wa:return"flow-error-end";case bi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Ue(e){switch(e){case void 0:case" ":case`
`:case"\r":case" ":return!0;default:return!1}}const Zu=new Set("0123456789ABCDEFabcdef"),Dd=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Yn=new Set(",[]{}"),_d=new Set(` ,[]{}
\r `),jr=e=>!e||_d.has(e);class Sd{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[t+1]===`
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
`||!i&&!this.atEnd)return t+r+1}return n===`
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Ue(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Ka&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const u=t[r-1];if(u===" "||u===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const u=t[n-1];if(u===" "||u===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Va,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Ue(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ue(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ue(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(jr),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Ue(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Wa,yield*this.parseLineStart();let u=0;for(;i[u]===",";)u+=yield*this.pushCount(1),u+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(u+=yield*this.pushIndicators(),i[u]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-u),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(jr),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||Ue(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let u=0;for(;this.buffer[n-1-u]==="\\";)u+=1;if(u%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
`,this.pos);if(i!==-1){for(;i!==-1;){const u=this.continueScalar(i+1);if(u===-1)break;i=r.indexOf(`
`,u)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ue(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let u=this.pos;r=this.buffer[u];++u)switch(r){case" ":n+=1;break;case`
`:t=u,n=0;break;case"\r":{const s=this.buffer[u+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const u=this.continueScalar(t+1);if(u===-1)break;t=this.buffer.indexOf(`
`,u)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
`;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let u=t-1,s=this.buffer[u];s==="\r"&&(s=this.buffer[--u]);const a=u;for(;s===" ";)s=this.buffer[--u];if(s===`
`&&u>=this.pos&&u+1+n>a)t=u;else break}while(!0);return yield bi,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const u=this.buffer[r+1];if(Ue(u)||t&&Yn.has(u))break;n=r}else if(Ue(i)){let u=this.buffer[r+1];if(i==="\r"&&(u===`
`?(r+=1,i=`
`,u=this.buffer[r+1]):n=r),u==="#"||t&&Yn.has(u))break;if(i===`
`){const s=this.continueScalar(r+1);if(s===-1)break;r=Math.max(r,s-2)}}else{if(t&&Yn.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield bi,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(jr))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Ue(n)||t&&Yn.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ue(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(Dd.has(n))n=this.buffer[++t];else if(n==="%"&&Zu.has(this.buffer[t+1])&&Zu.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class kd{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const u=n+r>>1;this.lineStarts[u]<t?n=u+1:r=u}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function st(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function es(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Qa(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function jn(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Ot(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function ts(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!st(t.start,"explicit-key-ind")&&!st(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Qa(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}let Id=class{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Sd,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=yd(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&ts(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&es(i.start)===-1&&(n.indent===0||i.start.every(u=>u.type!=="comment"||u.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{es(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=jn(this.peek(2)),r=Ot(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const u={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(i&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const o=n.sep[a];switch(o.type){case"newline":s.push(a);break;case"space":break;case"comment":o.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(u=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(u.push(this.sourceToken),t.items.push({start:u}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(u.push(this.sourceToken),t.items.push({start:u,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(st(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(Qa(n.key)&&!st(n.sep,"newline")){const s=Ot(n.start),a=n.key,o=n.sep;o.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:o}]})}else u.length>0?n.sep=n.sep.concat(u,this.sourceToken):n.sep.push(this.sourceToken);else if(st(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Ot(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:u,key:null,sep:[this.sourceToken]}):st(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);i||n.value?(t.items.push({start:u,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){if(s.type==="block-seq"){if(!n.explicitKey&&n.sep&&!st(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:u});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||st(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=jn(r),u=Ot(i);ts(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:u,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=jn(t),r=Ot(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=jn(t),r=Ot(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function Nd(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new kd||null,prettyErrors:t}}function xd(e,t={}){const{lineCounter:n,prettyErrors:r}=Nd(t),i=new Id(n?.addNewLine),u=new Cd(t);let s=null;for(const a of u.compose(i.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new ln(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Gu(e,n)),s.warnings.forEach(Gu(e,n))),s}function Od(e,t,n){let r;const i=xd(e,n);if(!i)return null;if(i.warnings.forEach(u=>Ca(i.options.logLevel,u)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Ga(e,t,n){let r=null;if(Array.isArray(t)&&(r=t),e===void 0){const{keepUndefined:i}={};if(!i)return}return Nn(e)&&!r?e.toString(n):new Fn(e,r,n).toString(n)}function Xa(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ja(e){return e}function Ld(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,i=t.transformKey||Ja,u={};function s(a,o,c){c=c||1,Object.keys(a).forEach(function(h){const f=a[h],p=t.safe&&Array.isArray(f),d=Object.prototype.toString.call(f),g=Xa(f),m=d==="[object Object]"||d==="[object Array]",T=o?o+n+i(h):i(h);if(!p&&!g&&m&&Object.keys(f).length&&(!t.maxDepth||c<r))return s(f,T,c+1);u[T]=f})}return s(e),u}function Sr(e,t){t=t||{};const n=t.delimiter||".",r=t.overwrite||!1,i=t.transformKey||Ja,u={};if(Xa(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function a(h){const f=Number(h);return isNaN(f)||h.indexOf(".")!==-1||t.object?h:f}function o(h,f,p){return Object.keys(p).reduce(function(d,g){return d[h+n+g]=p[g],d},f)}function c(h){const f=Object.prototype.toString.call(h),p=f==="[object Array]",d=f==="[object Object]";if(h){if(p)return!h.length;if(d)return!Object.keys(h).length}else return!0}return e=Object.keys(e).reduce(function(h,f){const p=Object.prototype.toString.call(e[f]);return!(p==="[object Object]"||p==="[object Array]")||c(e[f])?(h[f]=e[f],h):o(f,h,Ld(e[f],t))},{}),Object.keys(e).forEach(function(h){const f=h.split(n).map(i);let p=a(f.shift()),d=a(f[0]),g=u;for(;d!==void 0;){if(p==="__proto__")return;const m=Object.prototype.toString.call(g[p]),T=m==="[object Object]"||m==="[object Array]";if(!r&&!T&&typeof g[p]<"u")return;(r&&!T||!r&&g[p]==null)&&(g[p]=typeof d=="number"&&!t.object?[]:{}),g=g[p],f.length>0&&(p=a(f.shift()),d=a(f[0]))}g[p]=Sr(e[h],t)}),u}const Fd=/["&'<>`]/g,wd=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Rd=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pd=/[|\\{}()[\]^$+*?.]/g,ns=new WeakMap;function Za(e,t){if(e=e.replace(t.subset?Bd(t.subset):Fd,r),t.subset||t.escapeOnly)return e;return e.replace(wd,n).replace(Rd,r);function n(i,u,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(u+2),t)}function r(i,u,s){return t.format(i.charCodeAt(0),s.charCodeAt(u+1),t)}}function Bd(e){let t=ns.get(e);return t||(t=Md(e),ns.set(e,t)),t}function Md(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Pd,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Ud=/[\dA-Fa-f]/;function Hd(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Ud.test(String.fromCharCode(t))?r:r+";"}const vd=/\d/;function zd(e,t,n){const r="&#"+String(e);return n&&t&&!vd.test(String.fromCharCode(t))?r:r+";"}const eo=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Kr={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},qd=["cent","copy","divide","gt","lt","not","para","times"],to={}.hasOwnProperty,Ti={};let Kn;for(Kn in Kr)to.call(Kr,Kn)&&(Ti[Kr[Kn]]=Kn);const $d=/[^\dA-Za-z]/;function Yd(e,t,n,r){const i=String.fromCharCode(e);if(to.call(Ti,i)){const u=Ti[i],s="&"+u;return n&&eo.includes(u)&&!qd.includes(u)&&(!r||t&&t!==61&&$d.test(String.fromCharCode(t)))?s:s+";"}return""}function jd(e,t,n){let r=Hd(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Yd(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const u=zd(e,t,n.omitOptionalSemicolons);u.length<r.length&&(r=u)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Kd(e){return"&#x"+e.toString(16).toUpperCase()+";"}function F2(e,t){return Za(e,Object.assign({format:jd},t))}function Vd(e,t){return Za(e,Object.assign({format:Kd},t))}const rs={}.hasOwnProperty;function no(e,t){const n=t||{};function r(i,...u){let s=r.invalid;const a=r.handlers;if(i&&rs.call(i,e)){const o=String(i[e]);s=rs.call(a,o)?a[o]:r.unknown}if(s)return s.call(this,i,...u)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function Wd(e,t,n,r){const i=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const s=n.indentLines(n.containerFlow(e,u.current()),Qd);return i(),s}function Qd(e,t,n){return">"+(n?"":" ")+e}function Gd(e,t){return is(e,t.inConstruct,!0)&&!is(e,t.notInConstruct,!1)}function is(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function us(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
`&&Gd(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function Xd(e,t){const n=String(e);let r=n.indexOf(t),i=r,u=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++u>s&&(s=u):u=1,i=r+t.length,r=n.indexOf(t,i);return s}function Jd(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Zd(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function ep(e,t,n,r){const i=Zd(n),u=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Jd(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(u,tp);return f(),p}const a=n.createTracker(r),o=i.repeat(Math.max(Xd(u,i)+1,3)),c=n.enter("codeFenced");let h=a.move(o);if(e.lang){const f=n.enter(`codeFencedLang${s}`);h+=a.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);h+=a.move(" "),h+=a.move(n.safe(e.meta,{before:h,after:`
`,encode:["`"],...a.current()})),f()}return h+=a.move(`
`),u&&(h+=a.move(u+`
`)),h+=a.move(o),c(),h}function tp(e,t,n){return(n?"":" ")+e}function Zi(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function np(e,t,n,r){const i=Zi(n),u=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("[");return c+=o.move(n.safe(n.associationId(e),{before:c,after:"]",...o.current()})),c+=o.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":`
`,...o.current()}))),a(),e.title&&(a=n.enter(`title${u}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),s(),c}function rp(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function _n(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ur(e,t,n){const r=Ht(e),i=Ht(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ro.peek=ip;function ro(e,t,n,r){const i=rp(n),u=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let o=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=o.charCodeAt(0),h=ur(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(o=_n(c)+o.slice(1));const f=o.charCodeAt(o.length-1),p=ur(r.after.charCodeAt(0),f,i);p.inside&&(o=o.slice(0,-1)+_n(f));const d=s.move(i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},a+o+d}function ip(e,t,n){return n.options.emphasis||"*"}function up(e,t){let n=!1;return je(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,fi}),!!((!e.depth||e.depth<3)&&wi(e)&&(t.options.setext||n))}function sp(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(up(e,n)){const h=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...u.current(),before:`
`,after:`
`});return f(),h(),p+`
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
`))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),o=n.enter("phrasing");u.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
`,...u.current()});return/^[\t ]/.test(c)&&(c=_n(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),o(),a(),c}io.peek=ap;function io(e){return e.value||""}function ap(){return"<"}uo.peek=op;function uo(e,t,n,r){const i=Zi(n),u=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("![");return c+=o.move(n.safe(e.alt,{before:c,after:"]",...o.current()})),c+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${u}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),c+=o.move(")"),s(),c}function op(){return"!"}so.peek=lp;function so(e,t,n,r){const i=e.referenceType,u=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let o=a.move("![");const c=n.safe(e.alt,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return s(),n.stack=h,u(),i==="full"||!c||c!==f?o+=a.move(f+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function lp(){return"!"}ao.peek=cp;function ao(e,t,n){let r=e.value||"",i="`",u=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<n.unsafe.length;){const s=n.unsafe[u],a=n.compilePattern(s);let o;if(s.atBreak)for(;o=a.exec(r);){let c=o.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(o.index+1)}}return i+r+i}function cp(){return"`"}function oo(e,t){const n=wi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}lo.peek=fp;function lo(e,t,n,r){const i=Zi(n),u=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,o;if(oo(e,n)){const h=n.stack;n.stack=[],a=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),n.stack=h,f}a=n.enter("link"),o=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(o=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${u}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),o()),c+=s.move(")"),a(),c}function fp(e,t,n){return oo(e,n)?"<":"["}co.peek=hp;function co(e,t,n,r){const i=e.referenceType,u=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let o=a.move("[");const c=n.containerPhrasing(e,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return s(),n.stack=h,u(),i==="full"||!c||c!==f?o+=a.move(f+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function hp(){return"["}function eu(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function dp(e){const t=eu(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function pp(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function fo(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mp(e,t,n,r){const i=n.enter("list"),u=n.bulletCurrent;let s=e.ordered?pp(n):eu(n);const a=e.ordered?s==="."?")":".":dp(n);let o=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(o=!0),fo(n)===s&&h){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=u,i(),c}function gp(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Ep(e,t,n,r){const i=gp(n);let u=n.bulletCurrent||eu(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let s=u.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(u+" ".repeat(s-u.length)),a.shift(s);const o=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),h);return o(),c;function h(f,p,d){return p?(d?"":" ".repeat(s))+f:(d?u:u+" ".repeat(s-u.length))+f}}function bp(e,t,n,r){const i=n.enter("paragraph"),u=n.enter("phrasing"),s=n.containerPhrasing(e,r);return u(),i(),s}const Tp=mr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ap(e,t,n,r){return(e.children.some(function(s){return Tp(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Cp(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ho.peek=yp;function ho(e,t,n,r){const i=Cp(n),u=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let o=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const c=o.charCodeAt(0),h=ur(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(o=_n(c)+o.slice(1));const f=o.charCodeAt(o.length-1),p=ur(r.after.charCodeAt(0),f,i);p.inside&&(o=o.slice(0,-1)+_n(f));const d=s.move(i+i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},a+o+d}function yp(e,t,n){return n.options.strong||"*"}function Dp(e,t,n,r){return n.safe(e.value,r)}function _p(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Sp(e,t,n){const r=(fo(n)+(n.options.ruleSpaces?" ":"")).repeat(_p(n));return n.options.ruleSpaces?r.slice(0,-1):r}const at={blockquote:Wd,break:us,code:ep,definition:np,emphasis:ro,hardBreak:us,heading:sp,html:io,image:uo,imageReference:so,inlineCode:ao,link:lo,linkReference:co,list:mp,listItem:Ep,paragraph:bp,root:Ap,strong:ho,text:Dp,thematicBreak:Sp},ss={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function po(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function kp(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ip(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function as(e){return Ip(e)||po(e)}const Np=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function Vr(e,t){const n={},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let u=0,s=-1,a="",o,c;n.position&&("start"in n.position||"indent"in n.position?(c=n.position.indent,o=n.position.start):o=n.position);let h=(o?o.line:0)||1,f=(o?o.column:0)||1,p=g(),d;for(u--;++u<=e.length;)if(d===10&&(f=(c?c[s]:0)||1),d=e.charCodeAt(u),d===38){const C=e.charCodeAt(u+1);if(C===9||C===10||C===12||C===32||C===38||C===60||Number.isNaN(C)||r&&C===r){a+=String.fromCharCode(d),f++;continue}const k=u+1;let N=k,L=k,B;if(C===35){L=++N;const Y=e.charCodeAt(L);Y===88||Y===120?(B="hexadecimal",L=++N):B="decimal"}else B="named";let _="",M="",P="";const K=B==="named"?as:B==="decimal"?po:kp;for(L--;++L<=e.length;){const Y=e.charCodeAt(L);if(!K(Y))break;P+=String.fromCharCode(Y),B==="named"&&eo.includes(P)&&(_=P,M=Cn(P))}let O=e.charCodeAt(L)===59;if(O){L++;const Y=B==="named"?Cn(P):!1;Y&&(_=P,M=Y)}let I=1+L-k,U="";if(!(!O&&n.nonTerminated===!1))if(!P)B!=="named"&&m(4,I);else if(B==="named"){if(O&&!M)m(5,1);else if(_!==P&&(L=N+_.length,I=1+L-N,O=!1),!O){const Y=_?1:3;if(n.attribute){const X=e.charCodeAt(L);X===61?(m(Y,I),M=""):as(X)?M="":m(Y,I)}else m(Y,I)}U=M}else{O||m(2,I);let Y=Number.parseInt(P,B==="hexadecimal"?16:10);if(xp(Y))m(7,I),U="�";else if(Y in ss)m(6,I),U=ss[Y];else{let X="";Op(Y)&&m(6,I),Y>65535&&(Y-=65536,X+=String.fromCharCode(Y>>>10|55296),Y=56320|Y&1023),U=X+String.fromCharCode(Y)}}if(U){T(),p=g(),u=L-1,f+=L-k+1,i.push(U);const Y=g();Y.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,U,{start:p,end:Y},e.slice(k-1,L)),p=Y}else P=e.slice(k-1,L),a+=P,f+=P.length,u=L-1}else d===10&&(h++,s++,f=0),Number.isNaN(d)?T():(a+=String.fromCharCode(d),f++);return i.join("");function g(){return{line:h,column:f,offset:u+((o?o.offset:0)||0)}}function m(C,k){let N;n.warning&&(N=g(),N.column+=k,N.offset+=k,n.warning.call(n.warningContext||void 0,Np[C],N,C))}function T(){a&&(i.push(a),n.text&&n.text.call(n.textContext||void 0,a,{start:p,end:g()}),a="")}}function xp(e){return e>=55296&&e<=57343||e>1114111}function Op(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const sr="---",Lp="```yaml [props]",Fp=`
`,wp="\r";function Rp(e,t=""){if(!Object.keys(e).length)return t.trim();e=Sr(e||{},{});const n=[sr,Ga(e).trim(),sr,""].join(`
`);return t?[n,t.trim(),""].join(`
`):n}function Pp(e,t=""){return Object.keys(e).length?(e=Sr(e||{},{}),[Lp,Ga(e).trim(),"```",t].join(`
`)):""}function mo(e){let t={};if(e.startsWith(sr)){const n=e.indexOf(Fp+sr);if(n!==-1){const r=e[n-1]===wp,i=e.slice(4,n-(r?1:0));i&&(t=Od(i),e=e.slice(n+4+(r?1:0)))}}return{content:e,data:Sr(t||{},{})}}function ar(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,u=n.column||1;return{move:o,current:s,shift:a};function s(){return{now:{line:i,column:u},lineShift:r}}function a(c){r+=c}function o(c=""){const h=c.split(/\r?\n|\r/g),f=h[h.length-1];return i+=h.length-1,u=h.length===1?u+f.length:1+f.length+r,c}}function Bp(e,t,n={}){const r=t.indexStack,i=e.children||[],u=ar(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const o=i[a];r[r.length-1]=a,s.push(u.move(t.handle(o,e,t,{before:"",after:"",...u.current()})))}return r.pop(),s.join("")}function Mp(e,t,n={}){const r=t.indexStack,i=e.children||[],u=ar(n),s=[];let a=-1;for(r.push(-1);++a<i.length;){const c=i[a];r[r.length-1]=a,s.push(u.move(t.handle(c,e,t,{before:`
`,after:`
`,...u.current()}))),c.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(u.move(o(c,i[a+1])))}return r.pop(),s.join("");function o(c,h){let f=t.join.length;for(;f--;){const p=t.join[f](c,h,e,t);if(p===!0||p===1)break;if(typeof p=="number")return`
`.repeat(1+p);if(p===!1)return`
<!---->
`}return`
`}}function Up(e,t,n){const r=t.indexStack,i=e.children||[],u=[];let s=-1,a=n.before;r.push(-1);let o=ar(n);for(;++s<i.length;){const c=i[s];let h;if(r[r.length-1]=s,s+1<i.length){let f=t.handle.handlers[i[s+1].type];f&&f.peek&&(f=f.peek),h="",f&&(h=f(i[s+1],e,t,{before:"",after:"",...o.current()}).charAt(0))}else h=n.after;u.length>0&&(a==="\r"||a===`
`)&&c.type==="html"&&(u[u.length-1]=u[u.length-1].replace(/(\r?\n|\r)$/," "),a=" ",o=ar(n),o.move(u.join(""))),u.push(o.move(t.handle(c,e,t,{...o.current(),before:a,after:h}))),a=u[u.length-1].slice(-1)}return r.pop(),u.join("")}function Hp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}const vp=new Set(["componentContainerSection","containerComponent","leafComponent"]),go=new Set(["componentContainerSection","componentContainerDataSection","containerComponent","leafComponent","table","pre","code","textComponent"]);function zp(e){return e.replace(/&#x([0-9A-Fa-f]+);/g,(t,n)=>String.fromCodePoint(Number.parseInt(n,16)))}const qp={}.hasOwnProperty,os=/^[^\t\n\r "#'.<=>`}]+$/,$p=2;function ls(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}const Yp=(e={})=>{const t=(d,{safeTypes:g=[]})=>{const m=T=>go.has(T)||g.includes(T);d.mdc?.unwrapped&&(d.children=[{type:d.mdc.unwrapped,children:d.children.filter(T=>!m(T.type))},...d.children.filter(T=>m(T.type))])},n=d=>{const g=Object.entries(d.fmAttributes||{});if(g.length===0)return"";const m=g.sort(([T],[C])=>T.localeCompare(C)).reduce((T,[C,k])=>{if(C?.startsWith(":")&&c(k)){try{k=JSON.parse(k)}catch{}C=C.slice(1)}return T[C]=k,T},{});return`
`+(e?.yamlCodeBlockProps?Pp(m).trim():Rp(m).trim())},r=d=>{e.autoUnwrap&&t(d,typeof e.autoUnwrap=="boolean"?{}:e.autoUnwrap)};function i(d,g,m){return m.indexStack=m.stack,r(d),`#${d.name}${h(d,m)}
${f(d,m)}`.trim()}function u(d,g,m){let T;m.indexStack=m.stack;const C=m.enter(d.type);if(d.name==="span")T=`[${f(d,m)}]${h(d,m)}`;else if(d.name==="binding"){const k=d.attributes||{};T=k.defaultValue?`{{ ${k.value} || '${k.defaultValue}' }}`:`{{ ${k.value} }}`}else T=":"+(d.name||"")+o(d,m)+h(d,m);return C(),T}let s=0;function a(d,g,m){m.indexStack=m.stack;const T=":".repeat($p+s);s+=1;const C=m.enter(d.type);let k=T+(d.name||"")+o(d,m);const N=d.children.filter(M=>M.type!=="componentContainerSection"),L=d.children.filter(M=>M.type==="componentContainerSection");d.children=[...N,...L],d.fmAttributes=d.fmAttributes||{};const B=h(d,m);((k+B).length>(e?.maxAttributesLength||80)||Object.keys(d.fmAttributes).length>0||d.children?.some(M=>M.type==="componentContainerSection"))&&(Object.assign(d.fmAttributes,d.attributes),d.attributes=[]),r(d),k+=h(d,m),k+=n(d);let _;return d.type==="containerComponent"&&(_=f(d,m),_&&(k+=`
`+_),k+=`
`+T,s>1&&(k=k.split(`
`).map(M=>" "+M).join(`
`))),s-=1,C(),k}a.peek=function(){return":"};function o(d,g){let m=d;if(d.type==="containerComponent"){if(!p(d))return"";m=d.children[0]}const T=g.enter("label"),C=g.enter(d.type+"Label"),k=Up(m,g,{before:"[",after:"]"});return C(),T(),k?"["+k+"]":""}const c=d=>{try{return JSON.parse(d),!0}catch{return!1}};function h(d,g){const m=Hp(g),T=d.type==="textComponent"?[m]:[m,`
`,"\r"],C=Object.fromEntries(Object.entries(d.attributes||{}).sort(([O],[I])=>O.localeCompare(I))),k=[];let N,L="",B="",_,M,P;for(M in C)if(qp.call(C,M)&&C[M]!=null)if(_=String(C[M]),M==="id")N=os.test(_)?"#"+_:K("id",_);else if(M==="class"||M==="className"){for(_=Array.isArray(C[M])?C[M].join(" "):_,_=_.split(/[\t\n\r ]+/g).filter(Boolean),L=[],B=[],P=-1;++P<_.length;)(os.test(_[P])?B:L).push(_[P]);L=L.length?K("class",L.join(" ")):"",B=B.length?"."+B.join("."):""}else M.startsWith(":")&&_==="true"?k.push(M.slice(1)):M.startsWith(":")&&c(_)?k.push(`${M}='${_.replace(/([^/])'/g,"$1\\'")}'`):k.push(K(M,_));return L&&k.unshift(L),B&&k.unshift(B),N&&k.unshift(N),k.length?"{"+k.join(" ")+"}":"";function K(O,I){return O+"="+m+Vd(I,{subset:T})+m}}function f(d,g){const m=p(d)?Object.assign({},d,{children:d.children.slice(1)}):d;let T=d.type==="textComponent"?Bp(m,g):Mp(m,g);return T.includes("&#x")&&(T=zp(T)),T}function p(d){return d.children&&d.children[0]&&d.children[0].data&&d.children[0].data.componentLabel}return{compilePattern:ls,unsafe:[{character:"\r",inConstruct:["leafComponentLabel","containerComponentLabel"]},{character:`
`,inConstruct:["leafComponentLabel","containerComponentLabel"]},{before:"[^:]",character:":",after:"[A-Za-z]",inConstruct:["phrasing"]},{atBreak:!0,character:":",after:":"}],handlers:{containerComponent:a,textComponent:u,componentContainerSection:i,image:(d,g,m,T)=>at.image(d,g,m,T)+h(d,m),link:(d,g,m,T)=>at.link(d,g,m,T)+h(d,m),linkReference:(d,g,m,T)=>at.linkReference(d,g,m,T)+h(d,m),strong:(d,g,m,T)=>at.strong(d,g,m,T)+h(d,m),inlineCode:(d,g,m)=>(m.compilePattern=m.compilePattern||ls,at.inlineCode(d,g,m)+h(d,m)),emphasis:(d,g,m,T)=>at.emphasis(d,g,m,T)+h(d,m)}}},jp=(e={})=>{const t=["textComponent"],n=v=>{const j=v.children[0];j&&j.children?.length&&j.children[0].type==="code"&&j.children[0].lang==="yaml"&&j.children[0].meta==="[props]"&&(v.rawData=j.children[0].value,v.mdc=v.mdc||{},v.mdc.codeBlockProps=!0,j.children.splice(0,1))},r=(v,{safeTypes:j=[]})=>{if(!vp.has(v.type))return;const S=v.children.filter(De=>De.type!=="componentContainerSection");if(S.length!==1)return;const y=S[0];if(go.has(y.type)||j.includes(y.type))return;const le=v.children.indexOf(y);v.children.splice(le,1,...y?.children||[]),v.mdc=v.mdc||{},v.mdc.unwrapped=y.type},i=v=>{e.yamlCodeBlockProps&&n(v),e.autoUnwrap&&r(v,typeof e.autoUnwrap=="boolean"?{}:e.autoUnwrap)},u={componentContainer:c,componentContainerSection:f,componentContainerDataSection:p,componentContainerAttributes:P,componentContainerLabel:_,bindingContent:a,componentLeaf:T,componentLeafAttributes:P,componentText:k,textSpan:C,componentTextAttributes:P},s={bindingContent:o,componentContainerSectionTitle:m,listUnordered:Q,listOrdered:Q,listItem:Q,componentContainerSection:d,componentContainerDataSection:g,componentContainer:h,componentContainerAttributeClassValue:O,componentContainerAttributeIdValue:K,componentContainerAttributeName:U,componentContainerAttributeValue:I,componentContainerAttributes:Y,componentContainerLabel:M,componentContainerName:L,componentContainerAttributeInitializerMarker(){const v=this.data.componentAttributes;v[v.length-1][1]=""},componentLeaf:X,componentLeafAttributeClassValue:O,componentLeafAttributeIdValue:K,componentLeafAttributeName:U,componentLeafAttributeValue:I,componentLeafAttributes:Y,componentLeafName:B,componentText:X,textSpan:X,componentTextAttributeClassValue:O,componentTextAttributeIdValue:K,componentTextAttributeName:U,componentTextAttributeValue:I,componentTextAttributes:Y,componentTextName:L};function a(v){const S=/([^|]*)(?:\|\|\s*'(.*)')?/.exec(this.sliceSerialize(v));this.enter({type:"textComponent",name:"binding",attributes:{value:S?.[1]?.trim(),defaultValue:S?.[2]}},v)}function o(v){this.exit(v)}function c(v){N.call(this,"containerComponent",v)}function h(v){const j=this.stack[this.stack.length-1];if(j.children.length>1){const S=j.children.find(y=>y.rawData);j.rawData=S?.rawData}i(j),j.children=j.children.flatMap(S=>S.rawData?[]:S.name==="default"&&Object.keys(S.attributes).length===0||!S.name?(S.mdc?.unwrapped&&(j.mdc=j.mdc||{},j.mdc.unwrapped=S.mdc?.unwrapped),S.children):(S.data={hName:"component-slot",hProperties:{...S.attributes,[`v-slot:${S.name}`]:""}},S)),this.exit(v)}function f(v){N.call(this,"componentContainerSection",v)}function p(v){N.call(this,"componentContainerDataSection",v)}function d(v){const j=this.stack[this.stack.length-1];ie.call(this,j),i(j),this.exit(v)}function g(v){let j=this.stack[this.stack.length-1];j=ie.call(this,j),j.type==="componentContainerDataSection"&&(j.rawData=this.sliceSerialize(v),this.exit(v))}function m(v){this.stack[this.stack.length-1].name=this.sliceSerialize(v)?.trim()}function T(v){N.call(this,"leafComponent",v)}function C(v){this.enter({type:"textComponent",name:"span",attributes:{},children:[]},v)}function k(v){N.call(this,"textComponent",v)}function N(v,j){this.enter({type:v,name:"",attributes:{},children:[]},j)}function L(v){this.stack[this.stack.length-1].name=An(this.sliceSerialize(v))}function B(v){this.stack[this.stack.length-1].name=this.sliceSerialize(v)}function _(v){this.enter({type:"paragraph",data:{componentLabel:!0},children:[]},v)}function M(v){this.exit(v)}function P(){this.data.componentAttributes=[],this.buffer()}function K(v){this.data.componentAttributes.push(["id",Vr(this.sliceSerialize(v))])}function O(v){this.data.componentAttributes.push(["class",Vr(this.sliceSerialize(v))])}function I(v){const j=this.data.componentAttributes,S=j[j.length-1];S[1]=(typeof S[1]=="string"?S[1]:"")+Vr(this.sliceSerialize(v))}function U(v){this.data.componentAttributes.push([this.sliceSerialize(v),!0])}function Y(){const v=this.data.componentAttributes,j={};let S=-1,y;for(;++S<v.length;){y=v[S];const De=An(y[0]);De==="class"&&j.class?j.class+=" "+y[1]:j[De]=y[1]}this.data.componentAttributes=v,this.resume();let le=this.stack[this.stack.length-1];if(le.type!=="textComponent"||le.name==="span")for(;!le.position?.end&&le.children?.length>0;)le=le.children[le.children.length-1];le.attributes=j}function X(v){this.exit(v)}function Q(v){const[j]=this.tokenStack[this.tokenStack.length-1];j.type===v.type&&this.exit(v)}function ie(v){for(;v.type==="listItem"||v.type==="list";){const[j]=this.tokenStack[this.tokenStack.length-1];this.exit(j),v=this.stack[this.stack.length-1]}return v}return{canContainEols:t,enter:u,exit:s}},Kp=2,Vp=3,cs=35,Wp=1,R={EOF:null,space:32,quotationMark:34,hash:35,apostrophe:39,openingParentheses:40,star:42,dash:45,dot:46,colon:58,LessThan:60,equals:61,greaterThan:62,uppercaseX:88,openingSquareBracket:91,backSlash:92,closingSquareBracket:93,underscore:95,backTick:96,lowercaseX:120,openingCurlyBracket:123,closingCurlyBracket:125};function tu(e,t,n,r,i,u,s){let a=0,o=0;return c;function c(m){if(m!==R.openingSquareBracket)throw new Error("expected `[`");return e.enter(r),e.enter(i),e.consume(m),e.exit(i),h}function h(m){return m===R.closingSquareBracket?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(u),f(m))}function f(m){return m===R.EOF||a>999?n(m):m===R.closingSquareBracket&&!o--?d(m):V(m)?s?n(m):(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkText",{contentType:"text"}),p(m))}function p(m){return m===R.EOF||V(m)||a>999?(e.exit("chunkText"),f(m)):m===R.openingSquareBracket&&++o>3?n(m):m===R.closingSquareBracket&&!o--?(e.exit("chunkText"),d(m)):(e.consume(m),m===R.backSlash?g:p)}function d(m){return e.exit(u),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t}function g(m){return m===R.openingSquareBracket||m===R.backSlash||m===R.closingSquareBracket?(e.consume(m),a++,p):p(m)}}const Qp={tokenize:Zp,partial:!0},Gp={tokenize:tm,partial:!0},Xp={tokenize:nm,partial:!0};function Jp(e,t,n){const r=this;return i;function i(o){if(o!==R.openingSquareBracket)throw new Error("expected `[`");return r.previous===R.EOF&&r._gfmTasklistFirstContentOfListItem?e.check(Gp,n,u)(o):r.previous===R.openingSquareBracket?n(o):e.check(Xp,n,u)(o)}function u(o){return e.enter("textSpan"),e.attempt(Qp,s,n)(o)}function s(o){return o===R.openingParentheses||o===R.openingSquareBracket?n(o):a(o)}function a(o){return e.exit("textSpan"),t(o)}}function Zp(e,t,n){return tu(e,t,n,"componentTextLabel","componentTextLabelMarker","componentTextLabelString")}const em={tokenize:Jp};function tm(e,t,n){return r;function r(u){return e.enter("formGfmTaskCheckbox"),e.consume(u),i}function i(u){return G(u)||u===R.uppercaseX||u===R.lowercaseX?(e.consume(u),i):u===R.closingSquareBracket?(e.exit("formGfmTaskCheckbox"),t(u)):n(u)}}function nm(e,t,n){return r;function r(u){return e.enter("doubleBracket"),e.consume(u),i}function i(u){return u!==R.openingSquareBracket?n(u):(e.exit("doubleBracket"),t(u))}}function nu(e,t,n,r,i,u,s,a,o,c,h,f,p,d,g){let m,T,C=!1;return k;function k(S){return e.enter(r),e.enter(i),e.consume(S),e.exit(i),N}function N(S){return S===R.hash?(m=s,L(S)):S===R.dot?(m=a,L(S)):S===R.colon||S===R.underscore||Ee(S)?(e.enter(u),e.enter(o),e.consume(S),C=S===R.colon,S===R.colon?M:K):g&&G(S)?W(e,N,"whitespace")(S):!g&&ne(S)?Ye(e,N)(S):j(S)}function L(S){return e.enter(u),e.enter(m),e.enter(m+"Marker"),e.consume(S),e.exit(m+"Marker"),B}function B(S){return S===R.EOF||S===R.quotationMark||S===R.hash||S===R.apostrophe||S===R.dot||S===R.LessThan||S===R.equals||S===R.greaterThan||S===R.backTick||S===R.closingCurlyBracket||ne(S)?n(S):(e.enter(m+"Value"),e.consume(S),_)}function _(S){return S===R.EOF||S===R.quotationMark||S===R.apostrophe||S===R.LessThan||S===R.equals||S===R.greaterThan||S===R.backTick?n(S):S===R.hash||S===R.dot||S===R.closingCurlyBracket||ne(S)?(e.exit(m+"Value"),e.exit(m),e.exit(u),N(S)):(e.consume(S),_)}function M(S){return S===R.dash||me(S)?(e.consume(S),M):(e.exit(o),g&&G(S)?W(e,P,"whitespace")(S):!g&&ne(S)?Ye(e,P)(S):P(S))}function P(S){return S===R.equals?(e.enter(c),e.consume(S),e.exit(c),I):(e.exit(u),n(S))}function K(S){return S===R.dash||S===R.dot||S===R.colon||S===R.underscore||me(S)?(e.consume(S),K):(e.exit(o),g&&G(S)?W(e,O,"whitespace")(S):!g&&ne(S)?Ye(e,O)(S):O(S))}function O(S){return S===R.equals?(e.enter(c),e.consume(S),e.exit(c),I):(e.exit(u),N(S))}function I(S){return S===R.EOF||S===R.LessThan||S===R.equals||S===R.greaterThan||S===R.backTick||S===R.closingCurlyBracket||g&&V(S)?n(S):S===R.quotationMark||S===R.apostrophe?(e.enter(h),e.enter(p),e.consume(S),e.exit(p),T=S,Y):g&&G(S)?W(e,I,"whitespace")(S):!g&&ne(S)?Ye(e,I)(S):(e.enter(f),e.enter(d),e.consume(S),T=void 0,U)}function U(S){return S===R.EOF||S===R.quotationMark||S===R.apostrophe||S===R.LessThan||S===R.equals||S===R.greaterThan||S===R.backTick?n(S):S===R.closingCurlyBracket||ne(S)?(e.exit(d),e.exit(f),e.exit(u),N(S)):(e.consume(S),U)}function Y(S){return S===T?(e.enter(p),e.consume(S),e.exit(p),e.exit(h),e.exit(u),v):(e.enter(f),X(S))}function X(S){return S===T?(e.exit(f),Y(S)):S===R.EOF?n(S):V(S)?g?n(S):Ye(e,X)(S):(e.enter(d),e.consume(S),Q)}function Q(S){return C&&S===R.backSlash?(e.exit(d),e.exit(f),e.enter("escapeCharacter"),e.consume(S),e.exit("escapeCharacter"),e.enter(f),e.enter(d),ie):S===T||S===R.EOF||V(S)?(e.exit(d),X(S)):(e.consume(S),Q)}function ie(S){return e.consume(S),Q}function v(S){return S===R.closingCurlyBracket||ne(S)?N(S):j(S)}function j(S){return S===R.closingCurlyBracket?(e.enter(i),e.consume(S),e.exit(i),e.exit(r),t):n(S)}}const rm={tokenize:sm,partial:!0},im=["textSpan","attentionSequence","codeText","link","image"];function um(e,t,n){const r=this;return i;function i(u){if(u!==R.openingCurlyBracket)throw new Error("expected `{`");const s=r.events[r.events.length-1];return V(r.previous)||!s||!im.includes(s[1].type)?n(u):e.attempt(rm,t,n)(u)}}function sm(e,t,n){return nu(e,t,n,"componentTextAttributes","componentTextAttributesMarker","componentTextAttribute","componentTextAttributeId","componentTextAttributeClass","componentTextAttributeName","componentTextAttributeInitializerMarker","componentTextAttributeValueLiteral","componentTextAttributeValue","componentTextAttributeValueMarker","componentTextAttributeValueData")}const am={tokenize:um};function om(e,t,n){return r;function r(u){return u!==R.closingCurlyBracket?n(u):(e.exit("bindingContent"),e.enter("bindingFence"),e.consume(u),i)}function i(u){return u!==R.closingCurlyBracket?n(u):(e.consume(u),e.exit("bindingFence"),t)}}function lm(e,t,n){return r;function r(a){if(a!==R.openingCurlyBracket)throw new Error("expected `{`");return e.enter("bindingFence"),e.consume(a),i}function i(a){return a!==R.openingCurlyBracket?n(a):(e.consume(a),e.exit("bindingFence"),e.enter("bindingContent"),u)}function u(a){return a===R.closingCurlyBracket?e.attempt({tokenize:om,partial:!0},s,o=>(e.consume(o),u))(a):(e.consume(a),u)}function s(a){return t(a)}}const cm={tokenize:lm};function Eo(e,t,n,r){const i=this;return u;function u(a){return Ee(a)?(e.enter(r),e.consume(a),s):n(a)}function s(a){return a===R.dash||a===R.underscore||me(a)?(e.consume(a),s):(e.exit(r),i.previous===R.underscore?n(a):t(a))}}const fs={tokenize:hm,partial:!0},hs={tokenize:dm,partial:!0};function bo(e){return e!==R.colon||this.events[this.events.length-1][1].type==="characterEscape"}function fm(e,t,n){const r=this;return i;function i(c){if(c!==R.colon)throw new Error("expected `:`");if(r.previous!==null&&!ne(r.previous)&&![R.openingSquareBracket,R.star,R.underscore,R.openingParentheses].includes(r.previous))return n(c);if(!bo.call(r,r.previous))throw new Error("expected correct previous");return e.enter("componentText"),e.enter("componentTextMarker"),e.consume(c),e.exit("componentTextMarker"),Eo.call(r,e,u,n,"componentTextName")}function u(c){return c===R.colon?n(c):c===R.openingSquareBracket?e.attempt(fs,a,a)(c):c===R.openingCurlyBracket?e.attempt(hs,s,s)(c):o(c)}function s(c){return c===R.openingSquareBracket?e.attempt(fs,a,a)(c):o(c)}function a(c){return c===R.openingCurlyBracket?e.attempt(hs,o,o)(c):o(c)}function o(c){return e.exit("componentText"),t(c)}}function hm(e,t,n){return tu(e,t,n,"componentTextLabel","componentTextLabelMarker","componentTextLabelString")}function dm(e,t,n){return nu(e,t,n,"componentTextAttributes","componentTextAttributesMarker","componentTextAttribute","componentTextAttributeId","componentTextAttributeClass","componentTextAttributeName","componentTextAttributeInitializerMarker","componentTextAttributeValueLiteral","componentTextAttributeValue","componentTextAttributeValueMarker","componentTextAttributeValueData")}const To={tokenize:fm,previous:bo};function Ao(e){let t=-1,n=0;for(;++t<e.length;)n+=typeof e[t]=="string"?e[t].length:1;return n}function pm(e,t){const n=e[e.length-1];return!n||n[1].type!==t?0:Ao(n[2].sliceStream(n[1]))}function Ai(e){let t=0,n=e.length-1,r=e[n];for(;n>=0&&r&&r[1].type==="linePrefix"&&r[0]==="exit";)t+=Ao(r[2].sliceStream(r[1])),n-=1,r=e[n];return t}const mm=e=>{const t={isOpen:!1,enter:n=>{const r=t.isOpen;return t.exit(n),n.enter(e),t.isOpen=!0,()=>{t.isOpen=r}},enterOnce:n=>{const r=t.isOpen;return t.isOpen||(n.enter(e),t.isOpen=!0),()=>{t.isOpen=r}},exit:n=>{const r=t.isOpen;return t.isOpen&&(n.exit(e),t.isOpen=!1),()=>{t.isOpen=r}}};return t},gm={tokenize:Em,partial:!0};function Em(e,t,n){let r=0;return i;function i(s){return e.enter("codeFenced"),u(s)}function u(s){return s===R.backTick?(r++,e.consume(s),u):(e.exit("codeFenced"),r>=3?t(s):n(s))}}function bm(e,t,n,r,i){let u;return e.attempt({tokenize:s,partial:!0},a,r);function s(f,p,d){const g=this;let m=0,T=0;return k;function C(L){return G(L)?(f.consume(L),T+=1,C):(f.exit("space"),k(L))}function k(L){return G(L)?(f.enter("space"),C(L)):(T===0&&(T=Ai(g.events)),f.enter("componentContainerSectionSequence"),N(L))}function N(L){return L===R.dash||G(L)?(f.consume(L),m++,N):m<Vp||T!==i||!V(L)?d(L):(f.exit("componentContainerSectionSequence"),W(f,p,"whitespace")(L))}}function a(f){return e.enter("componentContainerDataSection"),e.attempt({tokenize:s,partial:!0},h,o)(f)}function o(f){if(f===null)return e.exit("componentContainerDataSection"),e.exit("componentContainer"),t(f);const p=e.enter("chunkDocument",{contentType:"document",previous:u});return u&&(u.next=p),u=p,c(f)}function c(f){return f===null?(e.exit("chunkDocument"),e.exit("componentContainerDataSection"),e.exit("componentContainer"),t(f)):V(f)?(e.consume(f),e.exit("chunkDocument"),e.attempt({tokenize:s,partial:!0},h,o)):(e.consume(f),c)}function h(f){return e.exit("componentContainerDataSection"),W(e,r,"whitespace")(f)}}const Tm={tokenize:Cm,partial:!0},Wr={tokenize:ym,partial:!0};function Am(e,t,n){const r=this,i=Ai(this.events);let u=0,s;const a=[];let o=!0,c=!1;const h=mm("componentContainerSection");return f;function f(I){if(I!==R.colon)throw new Error("expected `:`");return e.enter("componentContainer"),e.enter("componentContainerFence"),e.enter("componentContainerSequence"),m(I)}function p(I,U,Y){let X=0,Q=0,ie;return v;function v(S){return Q=Ai(r.events),ie=h.exit(I),I.enter("componentContainerSectionSequence"),j(S)}function j(S){return S===cs?(I.consume(S),X++,j):X!==Wp||Q!==i||!Ee(S)?(ie(),Y(S)):(I.exit("componentContainerSectionSequence"),W(I,U,"whitespace")(S))}}function d(I){return h.enter(e),V(I)?W(e,_,"whitespace")(I):(e.enter("componentContainerSectionTitle"),g(I))}function g(I){return I===R.openingCurlyBracket?e.check(Wr,U=>(e.exit("componentContainerSectionTitle"),e.attempt(Wr,W(e,_,"linePrefix",4),n)(U)),U=>(e.consume(U),g))(I):V(I)?(e.exit("componentContainerSectionTitle"),W(e,_,"linePrefix",4)(I)):(e.consume(I),g)}function m(I){return I===R.colon?(e.consume(I),u++,m):u<Kp?n(I):(e.exit("componentContainerSequence"),Eo.call(r,e,T,n,"componentContainerName")(I))}function T(I){return I===R.openingSquareBracket?e.attempt(Tm,C,C)(I):C(I)}function C(I){return I===R.openingCurlyBracket?e.attempt(Wr,k,k)(I):k(I)}function k(I){return W(e,N,"whitespace")(I)}function N(I){return e.exit("componentContainerFence"),I===null?(e.exit("componentContainer"),t(I)):V(I)?(e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),r.interrupt?t:L):n(I)}function L(I){return I===null?(e.exit("componentContainer"),t(I)):o&&(I===R.dash||G(I))?(o=!1,bm(e,t,n,L,i)(I)):(e.enter("componentContainerContent"),_(I))}function B(I){return I===null?K(I):I===R.backTick?e.check(gm,U=>(c=!c,M(U)),M)(I):c?M(I):!a.length&&(I===cs||I===R.space)?e.attempt({tokenize:p,partial:!0},d,M)(I):I===R.colon?e.attempt({tokenize:O,partial:!0},K,M)(I):M(I)}function _(I){return I===null?K(I):i?W(e,B,"linePrefix",i+1)(I):B(I)}function M(I){if(I===null)return K(I);h.enterOnce(e);const U=e.enter("chunkDocument",{contentType:"document",previous:s});return s&&(s.next=U),s=U,P(I)}function P(I){return I===null?(e.exit("chunkDocument"),K(I)):V(I)?(e.consume(I),e.exit("chunkDocument"),_):(e.consume(I),P)}function K(I){return h.exit(e),e.exit("componentContainerContent"),e.exit("componentContainer"),t(I)}function O(I,U,Y){let X=0;return W(I,Q,"linePrefix",4);function Q(j){return I.enter("componentContainerFence"),I.enter("componentContainerSequence"),ie(j)}function ie(j){return j===R.colon?(I.consume(j),X++,ie):a.length?(X===a[a.length-1]&&a.pop(),Y(j)):X!==u?Y(j):(I.exit("componentContainerSequence"),W(I,v,"whitespace")(j))}function v(j){return j===null||V(j)?(I.exit("componentContainerFence"),U(j)):(a.push(X),Y(j))}}}function Cm(e,t,n){return tu(e,t,n,"componentContainerLabel","componentContainerLabelMarker","componentContainerLabelString",!0)}function ym(e,t,n){return nu(e,t,n,"componentContainerAttributes","componentContainerAttributesMarker","componentContainerAttribute","componentContainerAttributeId","componentContainerAttributeClass","componentContainerAttributeName","componentContainerAttributeInitializerMarker","componentContainerAttributeValueLiteral","componentContainerAttributeValue","componentContainerAttributeValueMarker","componentContainerAttributeValueData",!0)}const Co={tokenize:Am,concrete:!0};function Dm(e,t,n){const r=this;return W(e,i,"linePrefix");function i(u){if(pm(r.events,"linePrefix")<4)return n(u);switch(u){case R.backTick:return ci.tokenize.call(r,e,t,n)(u);case R.colon:return Co.tokenize.call(r,e,t,n)(u);default:return n(u)}}}const Qr={tokenize:Dm};function _m(e,t,n){const r=this,i=To.tokenize.call(r,e,W(e,s,"linePrefix"),n);return W(e,u,"linePrefix");function u(a){return a===R.colon?i(a):n(a)}function s(a){return V(a)||a===R.EOF?t(a):n(a)}}const Sm={tokenize:_m};function km(){return{text:{[R.colon]:To,[R.openingSquareBracket]:[em],[R.openingCurlyBracket]:[cm,am]},flow:{[R.colon]:[Co,Sm]},flowInitial:{"-2":Qr,"-1":Qr,[R.space]:Qr}}}const Im=e=>`---
${e}
---`,Nm=(function(t={}){const n=this.data();t.autoUnwrap===void 0&&t.experimental?.autoUnwrap&&(t.autoUnwrap=t.experimental.autoUnwrap?{safeTypes:[]}:!1),t.yamlCodeBlockProps===void 0&&t.experimental?.componentCodeBlockYamlProps&&(t.yamlCodeBlockProps=t.experimental.componentCodeBlockYamlProps),r("micromarkExtensions",km()),r("fromMarkdownExtensions",jp(t)),r("toMarkdownExtensions",Yp(t));function r(i,u){n[i]||(n[i]=[]),n[i].push(u)}return t?.components?.length?async(i,{data:u})=>{const s=[];return je(i,["textComponent","leafComponent","containerComponent"],a=>{ds(a);const{instance:o,options:c}=t.components.find(h=>h.name===a.name)||{};o&&s.push(o(c)(a,u))}),await Promise.all(s),i}:i=>{je(i,["textComponent","leafComponent","containerComponent"],u=>{ds(u)})}});function ds(e){const t=e.data||(e.data={});e.fmAttributes=xm(e),t.hName=An(e.name),t.hProperties=Om({...e.attributes,...e.fmAttributes})}function xm(e){if(e.rawData){const t=e.rawData.replace(/\s-+$/,""),{data:n}=mo(Im(t));return n}return{}}function Om(e){const t=Object.entries(e).map(([n,r])=>n.startsWith(":")?[n,r]:typeof r=="string"?[n,r]:[`:${n}`,JSON.stringify(r)]);return Object.fromEntries(t)}const ps=async(e,t={})=>{const n=Object.entries(t).filter(r=>r[1]!==!1);for(const r of n){const i=r[1].instance||await import(r[0]).then(u=>u.default||u);e.use(i,r[1].options)}};function ms(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Lm(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Fm(e,t,n){const i=mr((n||{}).ignore||[]),u=wm(t);let s=-1;for(;++s<u.length;)fa(e,"text",a);function a(c,h){let f=-1,p;for(;++f<h.length;){const d=h[f],g=p?p.children:void 0;if(i(d,g?g.indexOf(d):void 0,p))return;p=d}if(p)return o(c,h)}function o(c,h){const f=h[h.length-1],p=u[s][0],d=u[s][1];let g=0;const T=f.children.indexOf(c);let C=!1,k=[];p.lastIndex=0;let N=p.exec(c.value);for(;N;){const L=N.index,B={index:N.index,input:N.input,stack:[...h,c]};let _=d(...N,B);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?p.lastIndex=L+1:(g!==L&&k.push({type:"text",value:c.value.slice(g,L)}),Array.isArray(_)?k.push(..._):_&&k.push(_),g=L+N[0].length,C=!0),!p.global)break;N=p.exec(c.value)}return C?(g<c.value.length&&k.push({type:"text",value:c.value.slice(g)}),f.children.splice(T,1,...k)):k=[c],T+k.length}}function wm(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Rm(i[0]),Pm(i[1])])}return t}function Rm(e){return typeof e=="string"?new RegExp(Lm(e),"g"):e}function Pm(e){return typeof e=="function"?e:function(){return e}}const Gr="phrasing",Xr=["autolink","link","image","label"];function Bm(){return{transforms:[$m],enter:{literalAutolink:Um,literalAutolinkEmail:Jr,literalAutolinkHttp:Jr,literalAutolinkWww:Jr},exit:{literalAutolink:qm,literalAutolinkEmail:zm,literalAutolinkHttp:Hm,literalAutolinkWww:vm}}}function Mm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gr,notInConstruct:Xr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gr,notInConstruct:Xr},{character:":",before:"[ps]",after:"\\/",inConstruct:Gr,notInConstruct:Xr}]}}function Um(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Jr(e){this.config.enter.autolinkProtocol.call(this,e)}function Hm(e){this.config.exit.autolinkProtocol.call(this,e)}function vm(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function zm(e){this.config.exit.autolinkEmail.call(this,e)}function qm(e){this.exit(e)}function $m(e){Fm(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Ym],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),jm]],{ignore:["link","linkReference"]})}function Ym(e,t,n,r,i){let u="";if(!yo(i)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!Km(n)))return!1;const s=Vm(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:u+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function jm(e,t,n,r){return!yo(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Km(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Vm(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ms(e,"(");let u=ms(e,")");for(;r!==-1&&i>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}function yo(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||At(n)||fr(n))&&(!t||n!==47)}Do.peek=n1;function Wm(){this.buffer()}function Qm(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gm(){this.buffer()}function Xm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Jm(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=He(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Zm(e){this.exit(e)}function e1(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=He(this.sliceSerialize(e)).toLowerCase(),n.label=t}function t1(e){this.exit(e)}function n1(){return"["}function Do(e,t,n,r){const i=n.createTracker(r);let u=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return u+=i.move(n.safe(n.associationId(e),{after:"]",before:u})),a(),s(),u+=i.move("]"),u}function r1(){return{enter:{gfmFootnoteCallString:Wm,gfmFootnoteCall:Qm,gfmFootnoteDefinitionLabelString:Gm,gfmFootnoteDefinition:Xm},exit:{gfmFootnoteCallString:Jm,gfmFootnoteCall:Zm,gfmFootnoteDefinitionLabelString:e1,gfmFootnoteDefinition:t1}}}function i1(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Do},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,u,s){const a=u.createTracker(s);let o=a.move("[^");const c=u.enter("footnoteDefinition"),h=u.enter("label");return o+=a.move(u.safe(u.associationId(r),{before:o,after:"]"})),h(),o+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),o+=a.move((t?`
`:" ")+u.indentLines(u.containerFlow(r,a.current()),t?_o:u1))),c(),o}}function u1(e,t,n){return t===0?e:_o(e,t,n)}function _o(e,t,n){return(n?"":" ")+e}const s1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];So.peek=f1;function a1(){return{canContainEols:["delete"],enter:{strikethrough:l1},exit:{strikethrough:c1}}}function o1(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:s1}],handlers:{delete:So}}}function l1(e){this.enter({type:"delete",children:[]},e)}function c1(e){this.exit(e)}function So(e,t,n,r){const i=n.createTracker(r),u=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),u(),s}function f1(){return"~"}function h1(e){return e.length}function d1(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||h1,u=[],s=[],a=[],o=[];let c=0,h=-1;for(;++h<e.length;){const m=[],T=[];let C=-1;for(e[h].length>c&&(c=e[h].length);++C<e[h].length;){const k=p1(e[h][C]);if(n.alignDelimiters!==!1){const N=i(k);T[C]=N,(o[C]===void 0||N>o[C])&&(o[C]=N)}m.push(k)}s[h]=m,a[h]=T}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<c;)u[f]=gs(r[f]);else{const m=gs(r);for(;++f<c;)u[f]=m}f=-1;const p=[],d=[];for(;++f<c;){const m=u[f];let T="",C="";m===99?(T=":",C=":"):m===108?T=":":m===114&&(C=":");let k=n.alignDelimiters===!1?1:Math.max(1,o[f]-T.length-C.length);const N=T+"-".repeat(k)+C;n.alignDelimiters!==!1&&(k=T.length+k+C.length,k>o[f]&&(o[f]=k),d[f]=k),p[f]=N}s.splice(1,0,p),a.splice(1,0,d),h=-1;const g=[];for(;++h<s.length;){const m=s[h],T=a[h];f=-1;const C=[];for(;++f<c;){const k=m[f]||"";let N="",L="";if(n.alignDelimiters!==!1){const B=o[f]-(T[f]||0),_=u[f];_===114?N=" ".repeat(B):_===99?B%2?(N=" ".repeat(B/2+.5),L=" ".repeat(B/2-.5)):(N=" ".repeat(B/2),L=N):L=" ".repeat(B)}n.delimiterStart!==!1&&!f&&C.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&k==="")&&(n.delimiterStart!==!1||f)&&C.push(" "),n.alignDelimiters!==!1&&C.push(N),C.push(k),n.alignDelimiters!==!1&&C.push(L),n.padding!==!1&&C.push(" "),(n.delimiterEnd!==!1||f!==c-1)&&C.push("|")}g.push(n.delimiterEnd===!1?C.join("").replace(/ +$/,""):C.join(""))}return g.join(`
`)}function p1(e){return e==null?"":String(e)}function gs(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function m1(){return{enter:{table:g1,tableData:Es,tableHeader:Es,tableRow:b1},exit:{codeText:T1,table:E1,tableData:Zr,tableHeader:Zr,tableRow:Zr}}}function g1(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function E1(e){this.exit(e),this.data.inTable=void 0}function b1(e){this.enter({type:"tableRow",children:[]},e)}function Zr(e){this.exit(e)}function Es(e){this.enter({type:"tableCell",children:[]},e)}function T1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,A1));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function A1(e,t){return t==="|"?t:e}function C1(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:o,tableRow:a}};function s(d,g,m,T){return c(h(d,m,T),d.align)}function a(d,g,m,T){const C=f(d,m,T),k=c([C]);return k.slice(0,k.indexOf(`
`))}function o(d,g,m,T){const C=m.enter("tableCell"),k=m.enter("phrasing"),N=m.containerPhrasing(d,{...T,before:u,after:u});return k(),C(),N}function c(d,g){return d1(d,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function h(d,g,m){const T=d.children;let C=-1;const k=[],N=g.enter("table");for(;++C<T.length;)k[C]=f(T[C],g,m);return N(),k}function f(d,g,m){const T=d.children;let C=-1;const k=[],N=g.enter("tableRow");for(;++C<T.length;)k[C]=o(T[C],d,g,m);return N(),k}function p(d,g,m){let T=at.inlineCode(d,g,m);return m.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function y1(){return{exit:{taskListCheckValueChecked:bs,taskListCheckValueUnchecked:bs,paragraph:_1}}}function D1(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:S1}}}function bs(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _1(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let u=-1,s;for(;++u<i.length;){const a=i[u];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function S1(e,t,n,r){const i=e.children[0],u=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);u&&a.move(s);let o=at.listItem(e,t,n,{...r,...a.current()});return u&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),o;function c(h){return h+s}}function k1(){return[Bm(),r1(),a1(),m1(),y1()]}function I1(e){return{extensions:[Mm(),i1(e),o1(),C1(e),D1()]}}const N1={tokenize:R1,partial:!0},ko={tokenize:P1,partial:!0},Io={tokenize:B1,partial:!0},No={tokenize:M1,partial:!0},x1={tokenize:U1,partial:!0},xo={name:"wwwAutolink",tokenize:F1,previous:Lo},Oo={name:"protocolAutolink",tokenize:w1,previous:Fo},tt={name:"emailAutolink",tokenize:L1,previous:wo},Ve={};function O1(){return{text:Ve}}let pt=48;for(;pt<123;)Ve[pt]=tt,pt++,pt===58?pt=65:pt===91&&(pt=97);Ve[43]=tt;Ve[45]=tt;Ve[46]=tt;Ve[95]=tt;Ve[72]=[tt,Oo];Ve[104]=[tt,Oo];Ve[87]=[tt,xo];Ve[119]=[tt,xo];function L1(e,t,n){const r=this;let i,u;return s;function s(f){return!Ci(f)||!wo.call(r,r.previous)||ru(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Ci(f)?(e.consume(f),a):f===64?(e.consume(f),o):n(f)}function o(f){return f===46?e.check(x1,h,c)(f):f===45||f===95||me(f)?(u=!0,e.consume(f),o):h(f)}function c(f){return e.consume(f),i=!0,o}function h(f){return u&&i&&Ee(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function F1(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Lo.call(r,r.previous)||ru(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(N1,e.attempt(ko,e.attempt(Io,u),n),n)(s))}function u(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function w1(e,t,n){const r=this;let i="",u=!1;return s;function s(f){return(f===72||f===104)&&Fo.call(r,r.previous)&&!ru(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(Ee(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),o}return n(f)}function o(f){return f===47?(e.consume(f),u?c:(u=!0,o)):n(f)}function c(f){return f===null||tr(f)||ne(f)||At(f)||fr(f)?n(f):e.attempt(ko,e.attempt(Io,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function R1(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),u):n(s)}function u(s){return s===null?n(s):t(s)}}function P1(e,t,n){let r,i,u;return s;function s(c){return c===46||c===95?e.check(No,o,a)(c):c===null||ne(c)||At(c)||c!==45&&fr(c)?o(c):(u=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function o(c){return i||r||!u?n(c):t(c)}}function B1(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?u(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(No,t,u)(s):s===null||ne(s)||At(s)?t(s):(e.consume(s),i)}function u(s){return s===41&&r++,e.consume(s),i}}function M1(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),u):a===93?(e.consume(a),i):a===60||a===null||ne(a)||At(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ne(a)||At(a)?t(a):r(a)}function u(a){return Ee(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):Ee(a)?(e.consume(a),s):n(a)}}function U1(e,t,n){return r;function r(u){return e.consume(u),i}function i(u){return me(u)?n(u):t(u)}}function Lo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function Fo(e){return!Ee(e)}function wo(e){return!(e===47||Ci(e))}function Ci(e){return e===43||e===45||e===46||e===95||me(e)}function ru(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const H1={tokenize:V1,partial:!0};function v1(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Y1,continuation:{tokenize:j1},exit:K1}},text:{91:{name:"gfmFootnoteCall",tokenize:$1},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:z1,resolveTo:q1}}}}function z1(e,t,n){const r=this;let i=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){s=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return a;function a(o){if(!s||!s._balanced)return n(o);const c=He(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!u.includes(c.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function q1(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",u,t],["enter",s,t],["exit",s,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function $1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),o}function o(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(u>999||f===93&&!s||f===null||f===91||ne(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(He(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return ne(f)||(s=!0),u++,e.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(e.consume(f),u++,c):c(f)}}function Y1(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,s=0,a;return o;function o(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(g)}function h(g){if(s>999||g===93&&!a||g===null||g===91||ne(g))return n(g);if(g===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return u=He(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ne(g)||(a=!0),s++,e.consume(g),g===92?f:h}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(u)||i.push(u),W(e,d,"gfmFootnoteDefinitionWhitespace")):n(g)}function d(g){return t(g)}}function j1(e,t,n){return e.check(In,t,e.attempt(H1,t,n))}function K1(e){e.exit("gfmFootnoteDefinition")}function V1(e,t,n){const r=this;return W(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(u):n(u)}}function W1(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let o=-1;for(;++o<s.length;)if(s[o][0]==="enter"&&s[o][1].type==="strikethroughSequenceTemporary"&&s[o][1]._close){let c=o;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[o][1].end.offset-s[o][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[o][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[o][1].end)},f={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[o][1].start)},p=[["enter",h,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",f,a]],d=a.parser.constructs.insideSpan.null;d&&xe(p,p.length,0,hr(d,s.slice(c+1,o),a)),xe(p,p.length,0,[["exit",f,a],["enter",s[o][1],a],["exit",s[o][1],a],["exit",h,a]]),xe(s,c-1,o-c+3,p),o=c+p.length-2;break}}for(o=-1;++o<s.length;)s[o][1].type==="strikethroughSequenceTemporary"&&(s[o][1].type="data");return s}function u(s,a,o){const c=this.previous,h=this.events;let f=0;return p;function p(g){return c===126&&h[h.length-1][1].type!=="characterEscape"?o(g):(s.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const m=Ht(c);if(g===126)return f>1?o(g):(s.consume(g),f++,d);if(f<2&&!n)return o(g);const T=s.exit("strikethroughSequenceTemporary"),C=Ht(g);return T._open=!C||C===2&&!!m,T._close=!m||m===2&&!!C,a(g)}}}class Q1{constructor(){this.map=[]}add(t,n,r){G1(this,t,n,r)}consume(t){if(this.map.sort(function(u,s){return u[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const u of i)t.push(u);i=r.pop()}this.map.length=0}}function G1(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function X1(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function J1(){return{flow:{null:{name:"table",tokenize:Z1,resolveAll:eg}}}}function Z1(e,t,n){const r=this;let i=0,u=0,s;return a;function a(O){let I=r.events.length-1;for(;I>-1;){const X=r.events[I][1].type;if(X==="lineEnding"||X==="linePrefix")I--;else break}const U=I>-1?r.events[I][1].type:null,Y=U==="tableHead"||U==="tableRow"?_:o;return Y===_&&r.parser.lazy[r.now().line]?n(O):Y(O)}function o(O){return e.enter("tableHead"),e.enter("tableRow"),c(O)}function c(O){return O===124||(s=!0,u+=1),h(O)}function h(O){return O===null?n(O):V(O)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),d):n(O):G(O)?W(e,h,"whitespace")(O):(u+=1,s&&(s=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),f(O)))}function f(O){return O===null||O===124||ne(O)?(e.exit("data"),h(O)):(e.consume(O),O===92?p:f)}function p(O){return O===92||O===124?(e.consume(O),f):f(O)}function d(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,G(O)?W(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?T(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),m):B(O)}function m(O){return G(O)?W(e,T,"whitespace")(O):T(O)}function T(O){return O===58?(u+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),C):O===45?(u+=1,C(O)):O===null||V(O)?L(O):B(O)}function C(O){return O===45?(e.enter("tableDelimiterFiller"),k(O)):B(O)}function k(O){return O===45?(e.consume(O),k):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(O))}function N(O){return G(O)?W(e,L,"whitespace")(O):L(O)}function L(O){return O===124?g(O):O===null||V(O)?!s||i!==u?B(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):B(O)}function B(O){return n(O)}function _(O){return e.enter("tableRow"),M(O)}function M(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),M):O===null||V(O)?(e.exit("tableRow"),t(O)):G(O)?W(e,M,"whitespace")(O):(e.enter("data"),P(O))}function P(O){return O===null||O===124||ne(O)?(e.exit("data"),M(O)):(e.consume(O),O===92?K:P)}function K(O){return O===92||O===124?(e.consume(O),P):P(O)}}function eg(e,t){let n=-1,r=!0,i=0,u=[0,0,0,0],s=[0,0,0,0],a=!1,o=0,c,h,f;const p=new Q1;for(;++n<e.length;){const d=e[n],g=d[1];d[0]==="enter"?g.type==="tableHead"?(a=!1,o!==0&&(Ts(p,t,o,c,h),h=void 0,o=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,u=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",h,t]])),i=g.type==="tableDelimiterRow"?2:h?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(u[1]!==0&&(s[0]=s[1],f=Vn(p,t,u,i,void 0,f),u=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(s[0]=s[1],f=Vn(p,t,u,i,void 0,f)),u=s,s=[u[1],n,0,0])):g.type==="tableHead"?(a=!0,o=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(o=n,u[1]!==0?(s[0]=s[1],f=Vn(p,t,u,i,n,f)):s[1]!==0&&(f=Vn(p,t,s,i,n,f)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(o!==0&&Ts(p,t,o,c,h),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=X1(t.events,n))}return e}function Vn(e,t,n,r,i,u){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(u.end=Object.assign({},Lt(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const o=Lt(t.events,n[1]);if(u={type:s,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const c=Lt(t.events,n[2]),h=Lt(t.events,n[3]),f={type:a,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,m=n[3]-n[2]-1;e.add(g,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(u.end=Object.assign({},Lt(t.events,i)),e.add(i,0,[["exit",u,t]]),u=void 0),u}function Ts(e,t,n,r,i){const u=[],s=Lt(t.events,n);i&&(i.end=Object.assign({},s),u.push(["exit",i,t])),r.end=Object.assign({},s),u.push(["exit",r,t]),e.add(n+1,0,u)}function Lt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tg={name:"tasklistCheck",tokenize:rg};function ng(){return{text:{91:tg}}}function rg(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),u)}function u(o){return ne(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),s):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),s):n(o)}function s(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(o)}function a(o){return V(o)?t(o):G(o)?e.check({tokenize:ig},t,n)(o):n(o)}}function ig(e,t,n){return W(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function ug(e){return js([O1(),v1(),W1(e),J1(),ng()])}const sg={};function ag(e){const t=this,n=e||sg,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ug(n)),u.push(k1()),s.push(I1(n))}const og=(function(e,t,n,r,i){const u=iu(t);return Ro(e)?u.call(i,e,n,r):!1}),iu=(function(e){if(e==null)return fg;if(typeof e=="string")return cg(e);if(typeof e=="object")return lg(e);if(typeof e=="function")return uu(e);throw new Error("Expected function, string, or array as `test`")});function lg(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=iu(e[n]);return uu(r);function r(...i){let u=-1;for(;++u<t.length;)if(t[u].apply(this,i))return!0;return!1}}function cg(e){return uu(t);function t(n){return n.tagName===e}}function uu(e){return t;function t(n,r,i){return!!(Ro(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function fg(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ro(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const hg=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,dg=/^[a-zA-Z]:\\/;function pg(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return dg.test(e)?!1:hg.test(e)}function yi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mg(e){return e.join(" ").trim()}const gg=["http","https"],Eg=["nofollow"],bg={};function Tg(e){const t=e||bg,n=t.protocols||gg,r=iu(t.test);return function(i){je(i,"element",function(u,s,a){if(u.tagName==="a"&&typeof u.properties.href=="string"&&r(u,s,a)){const o=u.properties.href;if(pg(o)?n.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const c=rn(t.content,u),h=c&&!Array.isArray(c)?[c]:c,f=rn(t.rel,u)||Eg,p=typeof f=="string"?yi(f):f,d=rn(t.target,u),g=rn(t.properties,u);if(g&&Object.assign(u.properties,Je(g)),p.length>0&&(u.properties.rel=[...p]),d&&(u.properties.target=d),h){const m=rn(t.contentProperties,u)||{};u.children.push({type:"element",tagName:"span",properties:Je(m),children:Je(h)})}}}})}}function rn(e,t){return typeof e=="function"?e(t):e}const As={accept:"input",className:null,dropzone:null,htmlFor:"output",headers:["td","th"],itemProp:null,itemRef:null,itemType:null,ping:["a","area"],rel:["a","area","link"],sandbox:"iframe",sizes:"link"};function Ag(){return function(e){const t=new Map,n=[];je(e,"element",function(u){let s;for(s in u.properties)if(Object.hasOwn(u.properties,s)){const a=u.properties[s];Object.hasOwn(As,s)&&og(u,As[s])&&Array.isArray(a)&&r(s,a)}}),i();function r(u,s){let a=-1,o=t.get(u);for(o||(o=new Map,t.set(u,o));++a<s.length;){const c=s[a];o.set(c,(o.get(c)||0)+1)}n.push([u,s])}function i(){const u=new Map;for(const[a,o]of t)u.set(a,[...o.entries()].sort(function(c,h){return h[1]-c[1]||Po(String(c[0]),String(h[0]),0)}).map(function(c){return c[0]}));let s=-1;for(;++s<n.length;){const a=n[s],o=u.get(a[0]);o&&a[1].sort(function(c,h){return o.indexOf(c)-o.indexOf(h)})}}}}function Po(e,t,n){return(e.charCodeAt(n)||0)-(t.charCodeAt(n)||0)||Po(e,t,n+1)}function Cg(){return function(e){const t=new Map;je(e,"element",function(i){let u=t.get(i.tagName);u||(u=new Map,t.set(i.tagName,u));let s;for(s in i.properties)Object.hasOwn(i.properties,s)&&u.set(s,(u.get(s)||0)+1)});const n=r();je(e,"element",function(i){const u=n.get(i.tagName);if(u){const s=[],a={};let o=-1,c;for(c in i.properties)Object.hasOwn(i.properties,c)&&s.push(c);for(s.sort(function(h,f){return u.indexOf(h)-u.indexOf(f)});++o<s.length;)a[s[o]]=i.properties[s[o]];i.properties=a}});function r(){const i=new Map;for(const[u,s]of t.entries())i.set(u,[...s.entries()].sort(function(a,o){return o[1]-a[1]||Bo(String(a[0]),String(o[0]),0)}).map(function(a){return a[0]}));return i}}}function Bo(e,t,n){return(e.charCodeAt(n)||0)-(t.charCodeAt(n)||0)||Bo(e,t,n+1)}function Cs(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const s=n.slice(i,r).trim();(s||!u)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function yg(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ys=/[#.]/g;function Dg(e,t){const n=e||"",r={};let i=0,u,s;for(;i<n.length;){ys.lastIndex=i;const a=ys.exec(n),o=n.slice(i,a?a.index:n.length);o&&(u?u==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:s=o,i+=o.length),a&&(u=a[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function Mo(e,t,n){const r=n?Ig(n):void 0;function i(u,s,...a){let o;if(u==null){o={type:"root",children:[]};const c=s;a.unshift(c)}else{o=Dg(u,t);const c=o.tagName.toLowerCase(),h=r?r.get(c):void 0;if(o.tagName=h||c,_g(s))a.unshift(s);else for(const[f,p]of Object.entries(s))Sg(e,o.properties,f,p)}for(const c of a)Di(o.children,c);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function _g(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const u=i;for(const s of u)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Sg(e,t,n,r){const i=$s(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?i.spaceSeparated?u=yi(r):i.commaSeparated?u=Cs(r):i.commaOrSpaceSeparated?u=yi(Cs(r).join(" ")):u=Ds(i,i.property,r):Array.isArray(r)?u=[...r]:u=i.property==="style"?kg(r):String(r);if(Array.isArray(u)){const s=[];for(const a of u)s.push(Ds(i,i.property,a));u=s}i.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[i.property]=u}}function Di(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Di(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Di(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ds(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Tu(n)===Tu(t)))return!0}return n}function kg(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Ig(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Ng=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],xg=Mo(Oi,"div"),Og=Mo(Li,"g",Ng);function Lg(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let s=0;for(;;){let a=n[s];if(a===void 0){const o=_s(t,n[s-1]);a=o===-1?t.length+1:o+1,n[s]=a}if(a>u)return{line:s+1,column:u-(s>0?n[s-1]:0)+1,offset:u};s++}}}function i(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const a=n[n.length-1],o=_s(t,a),c=o===-1?t.length+1:o+1;if(a===c)break;n.push(c)}const s=(u.line>1?n[u.line-2]:0)+u.column-1;if(s<n[u.line-1])return s}}}function _s(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const bt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Uo={}.hasOwnProperty,Fg=Object.prototype;function wg(e,t){const n=t||{};return su({file:n.file||void 0,location:!1,schema:n.space==="svg"?Li:Oi,verbose:n.verbose||!1},e)}function su(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Zn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ho(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const u=String(e.file),s=Lg(u),a=s.toPoint(0),o=s.toPoint(u.length);n.position={start:a,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Zn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Zn(e,r,n),n}default:return n=Rg(e,t),n}}function Ho(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=su(e,t[n]);r.push(i)}return r}function Rg(e,t){const n=e.schema;e.schema=t.namespaceURI===bt.svg?Li:Oi;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],o=(a.prefix?a.prefix+":":"")+a.name;Uo.call(Fg,o)||(i[o]=a.value)}const s=(e.schema.space==="svg"?Og:xg)(t.tagName,i,Ho(e,t.childNodes));if(Zn(e,t,s),s.tagName==="template"){const a=t,o=a.sourceCodeLocation,c=o&&o.startTag&&Pt(o.startTag),h=o&&o.endTag&&Pt(o.endTag),f=su(e,a.content);c&&h&&e.file&&(f.position={start:c.end,end:h.start}),s.content=f}return e.schema=n,s}function Zn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Pg(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Pg(e,t,n){const r=Pt(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const u={};let s;if(n.attrs)for(s in n.attrs)Uo.call(n.attrs,s)&&(u[$s(e.schema,s).property]=Pt(n.attrs[s]));n.startTag;const a=Pt(n.startTag),o=n.endTag?Pt(n.endTag):void 0,c={opening:a};o&&(c.closing=o),c.properties=u,t.data={position:c}}}return r}function Pt(e){const t=Ss({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ss({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ss(e){return e.line&&e.column?e:void 0}class Rn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Rn.prototype.property={};Rn.prototype.normal={};Rn.prototype.space=null;function vo(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Rn(n,r,t)}function _i(e){return e.toLowerCase()}class Pe{constructor(t,n){this.property=t,this.attribute=n}}Pe.prototype.space=null;Pe.prototype.boolean=!1;Pe.prototype.booleanish=!1;Pe.prototype.overloadedBoolean=!1;Pe.prototype.number=!1;Pe.prototype.commaSeparated=!1;Pe.prototype.spaceSeparated=!1;Pe.prototype.commaOrSpaceSeparated=!1;Pe.prototype.mustUseProperty=!1;Pe.prototype.defined=!1;let Bg=0;const ee=Dt(),pe=Dt(),zo=Dt(),q=Dt(),se=Dt(),Ut=Dt(),Ne=Dt();function Dt(){return 2**++Bg}const Si=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:pe,commaOrSpaceSeparated:Ne,commaSeparated:Ut,number:q,overloadedBoolean:zo,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),ei=Object.keys(Si);class au extends Pe{constructor(t,n,r,i){let u=-1;if(super(t,n),ks(this,"space",i),typeof r=="number")for(;++u<ei.length;){const s=ei[u];ks(this,ei[u],(r&Si[s])===Si[s])}}}au.prototype.defined=!0;function ks(e,t,n){n&&(e[t]=n)}const Mg={}.hasOwnProperty;function Vt(e){const t={},n={};let r;for(r in e.properties)if(Mg.call(e.properties,r)){const i=e.properties[r],u=new au(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[_i(r)]=r,n[_i(u.attribute)]=r}return new Rn(t,n,e.space)}const qo=Vt({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$o=Vt({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Yo(e,t){return t in e?e[t]:t}function jo(e,t){return Yo(e,t.toLowerCase())}const Ko=Vt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:jo,properties:{xmlns:null,xmlnsXLink:null}}),Vo=Vt({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:pe,ariaAutoComplete:null,ariaBusy:pe,ariaChecked:pe,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:pe,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:pe,ariaFlowTo:se,ariaGrabbed:pe,ariaHasPopup:null,ariaHidden:pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:q,ariaLive:null,ariaModal:pe,ariaMultiLine:pe,ariaMultiSelectable:pe,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:pe,ariaReadOnly:pe,ariaRelevant:null,ariaRequired:pe,ariaRoleDescription:se,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:pe,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null}}),Ug=Vt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:jo,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ut,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:se,autoFocus:ee,autoPlay:ee,blocking:se,capture:null,charSet:null,checked:ee,cite:null,className:se,cols:q,colSpan:null,content:null,contentEditable:pe,controls:ee,controlsList:se,coords:q|Ut,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:zo,draggable:pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:se,height:q,hidden:ee,high:q,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:se,itemRef:se,itemScope:ee,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:q,pattern:null,ping:se,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:se,required:ee,reversed:ee,rows:q,rowSpan:q,sandbox:se,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:pe,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:pe,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:q,security:null,unselectable:null}}),Hg=Vt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Yo,properties:{about:Ne,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ut,g2:Ut,glyphName:Ut,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ne,rev:Ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ne,requiredFeatures:Ne,requiredFonts:Ne,requiredFormats:Ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ne,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),vg=/^data[-\w.:]+$/i,Is=/-[a-z]/g,zg=/[A-Z]/g;function qg(e,t){const n=_i(t);let r=t,i=Pe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&vg.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(Is,Yg);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!Is.test(u)){let s=u.replace(zg,$g);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=au}return new i(r,t)}function $g(e){return"-"+e.toLowerCase()}function Yg(e){return e.charAt(1).toUpperCase()}const jg=vo([$o,qo,Ko,Vo,Ug],"html"),Wo=vo([$o,qo,Ko,Vo,Hg],"svg"),Kg={},Vg={}.hasOwnProperty,Qo=no("type",{handlers:{root:Qg,element:eE,text:Jg,comment:Zg,doctype:Xg}});function Wg(e,t){const r=(t||Kg).space;return Qo(e,r==="svg"?Wo:jg)}function Qg(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ou(e.children,n,t),Wt(e,n),n}function Gg(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ou(e.children,n,t),Wt(e,n),n}function Xg(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Wt(e,t),t}function Jg(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Wt(e,t),t}function Zg(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Wt(e,t),t}function eE(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Wo);const i=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&Vg.call(e.properties,u)){const o=tE(r,u,e.properties[u]);o&&i.push(o)}}const s=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:bt[s],childNodes:[],parentNode:null};return a.childNodes=ou(e.children,a,r),Wt(e,a),e.tagName==="template"&&e.content&&(a.content=Gg(e.content,r)),a}function tE(e,t,n){const r=qg(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?yg(n):mg(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=i.name.indexOf(":");u<0?i.prefix="":(i.name=i.name.slice(u+1),i.prefix=r.attribute.slice(0,u)),i.namespace=bt[r.space]}return i}function ou(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const u=Qo(e[r],n);u.parentNode=t,i.push(u)}return i}function Wt(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const nE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],rE=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),oe="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const _e={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Go(e){return e>=55296&&e<=57343}function iE(e){return e>=56320&&e<=57343}function uE(e,t){return(e-55296)*1024+9216+t}function Xo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Jo(e){return e>=64976&&e<=65007||rE.has(e)}var F;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(F||(F={}));const sE=65536;class aE{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=sE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:u}=this,s=i+n,a=u+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(iE(n))return this.pos++,this._addGap(),uE(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(F.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Go(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Xo(t)?this._err(F.controlCharacterInInputStream):Jo(t)&&this._err(F.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var te;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(te||(te={}));function Zo(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const oE=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function cE(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=lE.get(e))!==null&&t!==void 0?t:e}var be;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(be||(be={}));const fE=32;var ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ot||(ot={}));function ki(e){return e>=be.ZERO&&e<=be.NINE}function hE(e){return e>=be.UPPER_A&&e<=be.UPPER_F||e>=be.LOWER_A&&e<=be.LOWER_F}function dE(e){return e>=be.UPPER_A&&e<=be.UPPER_Z||e>=be.LOWER_A&&e<=be.LOWER_Z||ki(e)}function pE(e){return e===be.EQUALS||dE(e)}var ge;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ge||(ge={}));var Ge;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ge||(Ge={}));class mE{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ge.Strict}startEntity(t){this.decodeMode=t,this.state=ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ge.EntityStart:return t.charCodeAt(n)===be.NUM?(this.state=ge.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ge.NamedEntity,this.stateNamedEntity(t,n));case ge.NumericStart:return this.stateNumericStart(t,n);case ge.NumericDecimal:return this.stateNumericDecimal(t,n);case ge.NumericHex:return this.stateNumericHex(t,n);case ge.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|fE)===be.LOWER_X?(this.state=ge.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ge.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const u=r-n;this.result=this.result*Math.pow(i,u)+Number.parseInt(t.substr(n,u),i),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ki(i)||hE(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ki(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===be.SEMI)this.consumed+=1;else if(this.decodeMode===Ge.Strict)return 0;return this.emitCodePoint(cE(this.result),this.consumed),this.errors&&(t!==be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],u=(i&ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=gE(r,i,this.treeIndex+Math.max(1,u),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ge.Attribute&&(u===0||pE(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],u=(i&ot.VALUE_LENGTH)>>14,u!==0){if(s===be.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Ge.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~ot.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ge.NamedEntity:return this.result!==0&&(this.decodeMode!==Ge.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ge.NumericDecimal:return this.emitNumericEntity(0,2);case ge.NumericHex:return this.emitNumericEntity(0,3);case ge.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ge.EntityStart:return 0}}}function gE(e,t,n,r){const i=(t&ot.BRANCH_LENGTH)>>7,u=t&ot.JUMP_TABLE;if(i===0)return u!==0&&r===u?n:-1;if(u){const o=r-u;return o<0||o>=i?-1:e[n+o]-1}let s=n,a=s+i-1;for(;s<=a;){const o=s+a>>>1,c=e[o];if(c<r)s=o+1;else if(c>r)a=o-1;else return e[o+i]}return-1}var H;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(H||(H={}));var Tt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Tt||(Tt={}));var Le;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Le||(Le={}));var x;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(x||(x={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const EE=new Map([[x.A,l.A],[x.ADDRESS,l.ADDRESS],[x.ANNOTATION_XML,l.ANNOTATION_XML],[x.APPLET,l.APPLET],[x.AREA,l.AREA],[x.ARTICLE,l.ARTICLE],[x.ASIDE,l.ASIDE],[x.B,l.B],[x.BASE,l.BASE],[x.BASEFONT,l.BASEFONT],[x.BGSOUND,l.BGSOUND],[x.BIG,l.BIG],[x.BLOCKQUOTE,l.BLOCKQUOTE],[x.BODY,l.BODY],[x.BR,l.BR],[x.BUTTON,l.BUTTON],[x.CAPTION,l.CAPTION],[x.CENTER,l.CENTER],[x.CODE,l.CODE],[x.COL,l.COL],[x.COLGROUP,l.COLGROUP],[x.DD,l.DD],[x.DESC,l.DESC],[x.DETAILS,l.DETAILS],[x.DIALOG,l.DIALOG],[x.DIR,l.DIR],[x.DIV,l.DIV],[x.DL,l.DL],[x.DT,l.DT],[x.EM,l.EM],[x.EMBED,l.EMBED],[x.FIELDSET,l.FIELDSET],[x.FIGCAPTION,l.FIGCAPTION],[x.FIGURE,l.FIGURE],[x.FONT,l.FONT],[x.FOOTER,l.FOOTER],[x.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[x.FORM,l.FORM],[x.FRAME,l.FRAME],[x.FRAMESET,l.FRAMESET],[x.H1,l.H1],[x.H2,l.H2],[x.H3,l.H3],[x.H4,l.H4],[x.H5,l.H5],[x.H6,l.H6],[x.HEAD,l.HEAD],[x.HEADER,l.HEADER],[x.HGROUP,l.HGROUP],[x.HR,l.HR],[x.HTML,l.HTML],[x.I,l.I],[x.IMG,l.IMG],[x.IMAGE,l.IMAGE],[x.INPUT,l.INPUT],[x.IFRAME,l.IFRAME],[x.KEYGEN,l.KEYGEN],[x.LABEL,l.LABEL],[x.LI,l.LI],[x.LINK,l.LINK],[x.LISTING,l.LISTING],[x.MAIN,l.MAIN],[x.MALIGNMARK,l.MALIGNMARK],[x.MARQUEE,l.MARQUEE],[x.MATH,l.MATH],[x.MENU,l.MENU],[x.META,l.META],[x.MGLYPH,l.MGLYPH],[x.MI,l.MI],[x.MO,l.MO],[x.MN,l.MN],[x.MS,l.MS],[x.MTEXT,l.MTEXT],[x.NAV,l.NAV],[x.NOBR,l.NOBR],[x.NOFRAMES,l.NOFRAMES],[x.NOEMBED,l.NOEMBED],[x.NOSCRIPT,l.NOSCRIPT],[x.OBJECT,l.OBJECT],[x.OL,l.OL],[x.OPTGROUP,l.OPTGROUP],[x.OPTION,l.OPTION],[x.P,l.P],[x.PARAM,l.PARAM],[x.PLAINTEXT,l.PLAINTEXT],[x.PRE,l.PRE],[x.RB,l.RB],[x.RP,l.RP],[x.RT,l.RT],[x.RTC,l.RTC],[x.RUBY,l.RUBY],[x.S,l.S],[x.SCRIPT,l.SCRIPT],[x.SEARCH,l.SEARCH],[x.SECTION,l.SECTION],[x.SELECT,l.SELECT],[x.SOURCE,l.SOURCE],[x.SMALL,l.SMALL],[x.SPAN,l.SPAN],[x.STRIKE,l.STRIKE],[x.STRONG,l.STRONG],[x.STYLE,l.STYLE],[x.SUB,l.SUB],[x.SUMMARY,l.SUMMARY],[x.SUP,l.SUP],[x.TABLE,l.TABLE],[x.TBODY,l.TBODY],[x.TEMPLATE,l.TEMPLATE],[x.TEXTAREA,l.TEXTAREA],[x.TFOOT,l.TFOOT],[x.TD,l.TD],[x.TH,l.TH],[x.THEAD,l.THEAD],[x.TITLE,l.TITLE],[x.TR,l.TR],[x.TRACK,l.TRACK],[x.TT,l.TT],[x.U,l.U],[x.UL,l.UL],[x.SVG,l.SVG],[x.VAR,l.VAR],[x.WBR,l.WBR],[x.XMP,l.XMP]]);function Qt(e){var t;return(t=EE.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const z=l,bE={[H.HTML]:new Set([z.ADDRESS,z.APPLET,z.AREA,z.ARTICLE,z.ASIDE,z.BASE,z.BASEFONT,z.BGSOUND,z.BLOCKQUOTE,z.BODY,z.BR,z.BUTTON,z.CAPTION,z.CENTER,z.COL,z.COLGROUP,z.DD,z.DETAILS,z.DIR,z.DIV,z.DL,z.DT,z.EMBED,z.FIELDSET,z.FIGCAPTION,z.FIGURE,z.FOOTER,z.FORM,z.FRAME,z.FRAMESET,z.H1,z.H2,z.H3,z.H4,z.H5,z.H6,z.HEAD,z.HEADER,z.HGROUP,z.HR,z.HTML,z.IFRAME,z.IMG,z.INPUT,z.LI,z.LINK,z.LISTING,z.MAIN,z.MARQUEE,z.MENU,z.META,z.NAV,z.NOEMBED,z.NOFRAMES,z.NOSCRIPT,z.OBJECT,z.OL,z.P,z.PARAM,z.PLAINTEXT,z.PRE,z.SCRIPT,z.SECTION,z.SELECT,z.SOURCE,z.STYLE,z.SUMMARY,z.TABLE,z.TBODY,z.TD,z.TEMPLATE,z.TEXTAREA,z.TFOOT,z.TH,z.THEAD,z.TITLE,z.TR,z.TRACK,z.UL,z.WBR,z.XMP]),[H.MATHML]:new Set([z.MI,z.MO,z.MN,z.MS,z.MTEXT,z.ANNOTATION_XML]),[H.SVG]:new Set([z.TITLE,z.FOREIGN_OBJECT,z.DESC]),[H.XLINK]:new Set,[H.XML]:new Set,[H.XMLNS]:new Set},Ii=new Set([z.H1,z.H2,z.H3,z.H4,z.H5,z.H6]);x.STYLE,x.SCRIPT,x.XMP,x.IFRAME,x.NOEMBED,x.NOFRAMES,x.PLAINTEXT;var b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));const fe={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function TE(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function cn(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function AE(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function it(e){return AE(e)||cn(e)}function Ns(e){return it(e)||TE(e)}function Wn(e){return e+32}function el(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function xs(e){return el(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function CE(e){return e===E.NULL?F.nullCharacterReference:e>1114111?F.characterReferenceOutsideUnicodeRange:Go(e)?F.surrogateCharacterReference:Jo(e)?F.noncharacterCharacterReference:Xo(e)||e===E.CARRIAGE_RETURN?F.controlCharacterReference:null}class yE{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new aE(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new mE(oE,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(F.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(F.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=CE(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:te.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:te.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:te.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:te.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Zo(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(F.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Qt(t.tagName),t.type===te.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(F.endTagWithAttributes),t.selfClosing&&this._err(F.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case te.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case te.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case te.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:te.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=el(t)?te.WHITESPACE_CHARACTER:t===E.NULL?te.NULL_CHARACTER:te.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(te.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ge.Attribute:Ge.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(it(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(F.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(F.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(it(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(F.missingEndTagName),this.state=b.DATA;break}case E.EOF:{this._err(F.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(F.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.tagName+=oe;break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(cn(t)?Wn(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){it(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){it(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){it(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:it(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){it(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(_e.SCRIPT,!1)&&xs(this.preprocessor.peek(_e.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<_e.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(F.unexpectedNullCharacter),this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oe);break}case E.EOF:{this._err(F.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(_e.SCRIPT,!1)&&xs(this.preprocessor.peek(_e.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<_e.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(F.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(F.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.name+=oe;break}default:this.currentAttr.name+=String.fromCodePoint(cn(t)?Wn(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(F.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(F.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(F.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(F.eofInTag),this._emitEOFToken();break}default:this._err(F.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.data+=oe;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(_e.DASH_DASH,!0)?(this._createCommentToken(_e.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(_e.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(_e.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(_e.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(F.cdataInHtmlContent),this._createCommentToken(_e.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(F.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.data+=oe;break}case E.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(F.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(F.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(F.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(cn(t))this._createDoctypeToken(String.fromCharCode(Wn(t))),this.state=b.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(F.unexpectedNullCharacter),this._createDoctypeToken(oe),this.state=b.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(F.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.name+=oe;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(cn(t)?Wn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(_e.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(_e.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(F.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(F.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=oe;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.publicId+=oe;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(F.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(F.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(F.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=oe;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(F.unexpectedNullCharacter),n.systemId+=oe;break}case E.GREATER_THAN_SIGN:{this._err(F.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(F.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(F.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.NULL:{this._err(F.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(F.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ns(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ns(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(F.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const tl=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),Os=new Set([...tl,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),or=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),DE=new Set([...or,l.OL,l.UL]),_E=new Set([...or,l.BUTTON]),Ls=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),Fs=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),SE=new Set([l.TR,l.TEMPLATE,l.HTML]),kE=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),IE=new Set([l.TABLE,l.TEMPLATE,l.HTML]),NE=new Set([l.TD,l.TH]);class xE{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===H.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==H.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ii,H.HTML)}popUntilTableCellPopped(){this.popUntilPopped(NE,H.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(IE,H.HTML)}clearBackToTableBodyContext(){this.clearBackTo(kE,H.HTML)}clearBackToTableRowContext(){this.clearBackTo(SE,H.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case H.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case H.SVG:{if(Fs.has(i))return!1;break}case H.MATHML:{if(Ls.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,or)}hasInListItemScope(t){return this.hasInDynamicScope(t,DE)}hasInButtonScope(t){return this.hasInDynamicScope(t,_E)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case H.HTML:{if(Ii.has(n))return!0;if(or.has(n))return!1;break}case H.SVG:{if(Fs.has(n))return!1;break}case H.MATHML:{if(Ls.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===H.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&tl.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Os.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Os.has(this.currentTagId);)this.pop()}}const ti=3;var $e;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})($e||($e={}));const ws={type:$e.Marker};class OE{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,u=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const o=this.entries[a];if(o.type===$e.Marker)break;const{element:c}=o;if(this.treeAdapter.getTagName(c)===u&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===i&&r.push({idx:a,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ti)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ti)return;const i=new Map(n.map(s=>[s.name,s.value]));let u=0;for(let s=0;s<r.length;s++){const a=r[s];a.attrs.every(o=>i.get(o.name)===o.value)&&(u+=1,u>=ti&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(ws)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:$e.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:$e.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(ws);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===$e.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===$e.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===$e.Element&&n.element===t)}}const ut={createDocument(){return{nodeName:"#document",mode:Le.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(u=>u.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};ut.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(ut.isTextNode(n)){n.value+=t;return}}ut.appendChild(e,ut.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&ut.isTextNode(r)?r.value+=t:ut.insertBefore(e,ut.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},nl="html",LE="about:legacy-compat",FE="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",rl=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],wE=[...rl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],RE=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),il=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],PE=[...il,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Rs(e,t){return t.some(n=>e.startsWith(n))}function BE(e){return e.name===nl&&e.publicId===null&&(e.systemId===null||e.systemId===LE)}function ME(e){if(e.name!==nl)return Le.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===FE)return Le.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),RE.has(n))return Le.QUIRKS;let r=t===null?wE:rl;if(Rs(n,r))return Le.QUIRKS;if(r=t===null?il:PE,Rs(n,r))return Le.LIMITED_QUIRKS}return Le.NO_QUIRKS}const Ps={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},UE="definitionurl",HE="definitionURL",vE=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),zE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:H.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:H.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:H.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:H.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:H.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:H.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:H.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:H.XML}],["xml:space",{prefix:"xml",name:"space",namespace:H.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:H.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:H.XMLNS}]]),qE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),$E=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function YE(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===Tt.COLOR||r===Tt.SIZE||r===Tt.FACE)||$E.has(t)}function ul(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===UE){e.attrs[t].name=HE;break}}function sl(e){for(let t=0;t<e.attrs.length;t++){const n=vE.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function lu(e){for(let t=0;t<e.attrs.length;t++){const n=zE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function jE(e){const t=qE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Qt(e.tagName))}function KE(e,t){return t===H.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function VE(e,t,n){if(t===H.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Tt.ENCODING){const i=n[r].value.toLowerCase();return i===Ps.TEXT_HTML||i===Ps.APPLICATION_XML}}return t===H.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function WE(e,t,n,r){return(!r||r===H.HTML)&&VE(e,t,n)||(!r||r===H.MATHML)&&KE(e,t)}const QE="hidden",GE=8,XE=3;var A;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(A||(A={}));const JE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},al=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),Bs={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ut,onParseError:null};class Ms{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=A.INITIAL,this.originalInsertionMode=A.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Bs,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new yE(this.options,this),this.activeFormattingElements=new OE(this.treeAdapter),this.fragmentContextID=r?Qt(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new xE(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Bs,...n};t??(t=r.treeAdapter.createElement(x.TEMPLATE,H.HTML,[]));const i=r.treeAdapter.createElement("documentmock",H.HTML,[]),u=new this(r,i,t);return u.fragmentContextID===l.TEMPLATE&&u.tmplInsertionModeStack.unshift(A.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const u=(i=t.location)!==null&&i!==void 0?i:JE,s={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,u;(u=(i=this.treeAdapter).onItemPush)===null||u===void 0||u.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let u,s;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,s=this.fragmentContextID):{current:u,currentTagId:s}=this.openElements,this._setContextModes(u,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===H.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,H.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=A.TEXT}switchToPlaintextParsing(){this.insertionMode=A.TEXT,this.originalInsertionMode=A.IN_BODY,this.tokenizer.state=fe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===x.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==H.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=fe.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=fe.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=fe.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=fe.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,H.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,H.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(x.HTML,H.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),u=r?i.lastIndexOf(r):i.length,s=i[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:o,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:o,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),u=n.type===te.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===x.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===H.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,H.HTML)}_processToken(t){switch(t.type){case te.CHARACTER:{this.onCharacter(t);break}case te.NULL_CHARACTER:{this.onNullCharacter(t);break}case te.COMMENT:{this.onComment(t);break}case te.DOCTYPE:{this.onDoctype(t);break}case te.START_TAG:{this._processStartTag(t);break}case te.END_TAG:{this.onEndTag(t);break}case te.EOF:{this.onEof(t);break}case te.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return WE(t,i,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===$e.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const u=this.activeFormattingElements.entries[i];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=A.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=A.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=A.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=A.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=A.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=A.IN_TABLE;return}case l.BODY:{this.insertionMode=A.IN_BODY;return}case l.FRAMESET:{this.insertionMode=A.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?A.AFTER_HEAD:A.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=A.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=A.IN_HEAD;return}break}}this.insertionMode=A.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=A.IN_SELECT_IN_TABLE;return}}this.insertionMode=A.IN_SELECT}_isElementCausesFosterParenting(t){return al.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===H.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return bE[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){NT(this,t);return}switch(this.insertionMode){case A.INITIAL:{un(this,t);break}case A.BEFORE_HTML:{mn(this,t);break}case A.BEFORE_HEAD:{gn(this,t);break}case A.IN_HEAD:{En(this,t);break}case A.IN_HEAD_NO_SCRIPT:{bn(this,t);break}case A.AFTER_HEAD:{Tn(this,t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:{ll(this,t);break}case A.TEXT:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{ni(this,t);break}case A.IN_TABLE_TEXT:{ml(this,t);break}case A.IN_COLUMN_GROUP:{lr(this,t);break}case A.AFTER_BODY:{cr(this,t);break}case A.AFTER_AFTER_BODY:{er(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){IT(this,t);return}switch(this.insertionMode){case A.INITIAL:{un(this,t);break}case A.BEFORE_HTML:{mn(this,t);break}case A.BEFORE_HEAD:{gn(this,t);break}case A.IN_HEAD:{En(this,t);break}case A.IN_HEAD_NO_SCRIPT:{bn(this,t);break}case A.AFTER_HEAD:{Tn(this,t);break}case A.TEXT:{this._insertCharacters(t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{ni(this,t);break}case A.IN_COLUMN_GROUP:{lr(this,t);break}case A.AFTER_BODY:{cr(this,t);break}case A.AFTER_AFTER_BODY:{er(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ni(this,t);return}switch(this.insertionMode){case A.INITIAL:case A.BEFORE_HTML:case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_TEMPLATE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{Ni(this,t);break}case A.IN_TABLE_TEXT:{sn(this,t);break}case A.AFTER_BODY:{ub(this,t);break}case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{sb(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case A.INITIAL:{ab(this,t);break}case A.BEFORE_HEAD:case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:{this._err(t,F.misplacedDoctype);break}case A.IN_TABLE_TEXT:{sn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,F.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?xT(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{un(this,t);break}case A.BEFORE_HTML:{ob(this,t);break}case A.BEFORE_HEAD:{cb(this,t);break}case A.IN_HEAD:{ze(this,t);break}case A.IN_HEAD_NO_SCRIPT:{db(this,t);break}case A.AFTER_HEAD:{mb(this,t);break}case A.IN_BODY:{Ae(this,t);break}case A.IN_TABLE:{qt(this,t);break}case A.IN_TABLE_TEXT:{sn(this,t);break}case A.IN_CAPTION:{fT(this,t);break}case A.IN_COLUMN_GROUP:{hu(this,t);break}case A.IN_TABLE_BODY:{Nr(this,t);break}case A.IN_ROW:{xr(this,t);break}case A.IN_CELL:{pT(this,t);break}case A.IN_SELECT:{bl(this,t);break}case A.IN_SELECT_IN_TABLE:{gT(this,t);break}case A.IN_TEMPLATE:{bT(this,t);break}case A.AFTER_BODY:{AT(this,t);break}case A.IN_FRAMESET:{CT(this,t);break}case A.AFTER_FRAMESET:{DT(this,t);break}case A.AFTER_AFTER_BODY:{ST(this,t);break}case A.AFTER_AFTER_FRAMESET:{kT(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?OT(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case A.INITIAL:{un(this,t);break}case A.BEFORE_HTML:{lb(this,t);break}case A.BEFORE_HEAD:{fb(this,t);break}case A.IN_HEAD:{hb(this,t);break}case A.IN_HEAD_NO_SCRIPT:{pb(this,t);break}case A.AFTER_HEAD:{gb(this,t);break}case A.IN_BODY:{Ir(this,t);break}case A.TEXT:{tT(this,t);break}case A.IN_TABLE:{Sn(this,t);break}case A.IN_TABLE_TEXT:{sn(this,t);break}case A.IN_CAPTION:{hT(this,t);break}case A.IN_COLUMN_GROUP:{dT(this,t);break}case A.IN_TABLE_BODY:{xi(this,t);break}case A.IN_ROW:{El(this,t);break}case A.IN_CELL:{mT(this,t);break}case A.IN_SELECT:{Tl(this,t);break}case A.IN_SELECT_IN_TABLE:{ET(this,t);break}case A.IN_TEMPLATE:{TT(this,t);break}case A.AFTER_BODY:{Cl(this,t);break}case A.IN_FRAMESET:{yT(this,t);break}case A.AFTER_FRAMESET:{_T(this,t);break}case A.AFTER_AFTER_BODY:{er(this,t);break}}}onEof(t){switch(this.insertionMode){case A.INITIAL:{un(this,t);break}case A.BEFORE_HTML:{mn(this,t);break}case A.BEFORE_HEAD:{gn(this,t);break}case A.IN_HEAD:{En(this,t);break}case A.IN_HEAD_NO_SCRIPT:{bn(this,t);break}case A.AFTER_HEAD:{Tn(this,t);break}case A.IN_BODY:case A.IN_TABLE:case A.IN_CAPTION:case A.IN_COLUMN_GROUP:case A.IN_TABLE_BODY:case A.IN_ROW:case A.IN_CELL:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:{dl(this,t);break}case A.TEXT:{nT(this,t);break}case A.IN_TABLE_TEXT:{sn(this,t);break}case A.IN_TEMPLATE:{Al(this,t);break}case A.AFTER_BODY:case A.IN_FRAMESET:case A.AFTER_FRAMESET:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{fu(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case A.IN_HEAD:case A.IN_HEAD_NO_SCRIPT:case A.AFTER_HEAD:case A.TEXT:case A.IN_COLUMN_GROUP:case A.IN_SELECT:case A.IN_SELECT_IN_TABLE:case A.IN_FRAMESET:case A.AFTER_FRAMESET:{this._insertCharacters(t);break}case A.IN_BODY:case A.IN_CAPTION:case A.IN_CELL:case A.IN_TEMPLATE:case A.AFTER_BODY:case A.AFTER_AFTER_BODY:case A.AFTER_AFTER_FRAMESET:{ol(this,t);break}case A.IN_TABLE:case A.IN_TABLE_BODY:case A.IN_ROW:{ni(this,t);break}case A.IN_TABLE_TEXT:{pl(this,t);break}}}}function ZE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):hl(e,t),n}function eb(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function tb(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let u=0,s=i;s!==n;u++,s=i){i=e.openElements.getCommonAncestor(s);const a=e.activeFormattingElements.getElementEntry(s),o=a&&u>=XE;!a||o?(o&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(s)):(s=nb(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function nb(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function rb(e,t,n){const r=e.treeAdapter.getTagName(t),i=Qt(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&u===H.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function ib(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,u=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,i.tagID)}function cu(e,t){for(let n=0;n<GE;n++){const r=ZE(e,t);if(!r)break;const i=eb(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const u=tb(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),s&&rb(e,s,u),ib(e,i,r)}}function Ni(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function ub(e,t){e._appendCommentNode(t,e.openElements.items[0])}function sb(e,t){e._appendCommentNode(t,e.document)}function fu(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(u);s&&!s.endTag&&e._setEndLocation(u,t)}}}}function ab(e,t){e._setDocumentType(t);const n=t.forceQuirks?Le.QUIRKS:ME(t);BE(t)||e._err(t,F.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=A.BEFORE_HTML}function un(e,t){e._err(t,F.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Le.QUIRKS),e.insertionMode=A.BEFORE_HTML,e._processToken(t)}function ob(e,t){t.tagID===l.HTML?(e._insertElement(t,H.HTML),e.insertionMode=A.BEFORE_HEAD):mn(e,t)}function lb(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&mn(e,t)}function mn(e,t){e._insertFakeRootElement(),e.insertionMode=A.BEFORE_HEAD,e._processToken(t)}function cb(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.HEAD:{e._insertElement(t,H.HTML),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD;break}default:gn(e,t)}}function fb(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?gn(e,t):e._err(t,F.endTagWithoutMatchingOpenElement)}function gn(e,t){e._insertFakeElement(x.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=A.IN_HEAD,e._processToken(t)}function ze(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,fe.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,fe.RAWTEXT):(e._insertElement(t,H.HTML),e.insertionMode=A.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,fe.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,fe.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=A.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(A.IN_TEMPLATE);break}case l.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:En(e,t)}}function hb(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=A.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{En(e,t);break}case l.TEMPLATE:{_t(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function _t(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,F.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,F.endTagWithoutMatchingOpenElement)}function En(e,t){e.openElements.pop(),e.insertionMode=A.AFTER_HEAD,e._processToken(t)}function db(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{ze(e,t);break}case l.NOSCRIPT:{e._err(t,F.nestedNoscriptInHead);break}default:bn(e,t)}}function pb(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=A.IN_HEAD;break}case l.BR:{bn(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function bn(e,t){const n=t.type===te.EOF?F.openElementsLeftAfterEof:F.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=A.IN_HEAD,e._processToken(t)}function mb(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.BODY:{e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=A.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,H.HTML),e.insertionMode=A.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,F.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),ze(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,F.misplacedStartTagForHeadElement);break}default:Tn(e,t)}}function gb(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Tn(e,t);break}case l.TEMPLATE:{_t(e,t);break}default:e._err(t,F.endTagWithoutMatchingOpenElement)}}function Tn(e,t){e._insertFakeElement(x.BODY,l.BODY),e.insertionMode=A.IN_BODY,kr(e,t)}function kr(e,t){switch(t.type){case te.CHARACTER:{ll(e,t);break}case te.WHITESPACE_CHARACTER:{ol(e,t);break}case te.COMMENT:{Ni(e,t);break}case te.START_TAG:{Ae(e,t);break}case te.END_TAG:{Ir(e,t);break}case te.EOF:{dl(e,t);break}}}function ol(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ll(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Eb(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bb(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Tb(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_FRAMESET)}function Ab(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function Cb(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ii.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,H.HTML)}function yb(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Db(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML),n||(e.formElement=e.openElements.current))}function _b(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function Sb(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.tokenizer.state=fe.PLAINTEXT}function kb(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1}function Ib(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(x.A);n&&(cu(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Nb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function xb(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(cu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ob(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Lb(e,t){e.treeAdapter.getDocumentMode(e.document)!==Le.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=A.IN_TABLE}function cl(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fl(e){const t=Zo(e,Tt.TYPE);return t!=null&&t.toLowerCase()===QE}function Fb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),fl(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function wb(e,t){e._appendElement(t,H.HTML),t.ackSelfClosing=!0}function Rb(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Pb(e,t){t.tagName=x.IMG,t.tagID=l.IMG,cl(e,t)}function Bb(e,t){e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.tokenizer.state=fe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=A.TEXT}function Mb(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function Ub(e,t){e.framesetOk=!1,e._switchToTextParsing(t,fe.RAWTEXT)}function Us(e,t){e._switchToTextParsing(t,fe.RAWTEXT)}function Hb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===A.IN_TABLE||e.insertionMode===A.IN_CAPTION||e.insertionMode===A.IN_TABLE_BODY||e.insertionMode===A.IN_ROW||e.insertionMode===A.IN_CELL?A.IN_SELECT_IN_TABLE:A.IN_SELECT}function vb(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function zb(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,H.HTML)}function qb(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,H.HTML)}function $b(e,t){e._reconstructActiveFormattingElements(),ul(t),lu(t),t.selfClosing?e._appendElement(t,H.MATHML):e._insertElement(t,H.MATHML),t.ackSelfClosing=!0}function Yb(e,t){e._reconstructActiveFormattingElements(),sl(t),lu(t),t.selfClosing?e._appendElement(t,H.SVG):e._insertElement(t,H.SVG),t.ackSelfClosing=!0}function Hs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function Ae(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{Nb(e,t);break}case l.A:{Ib(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{Cb(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Ab(e,t);break}case l.LI:case l.DD:case l.DT:{_b(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{cl(e,t);break}case l.HR:{Rb(e,t);break}case l.RB:case l.RTC:{zb(e,t);break}case l.RT:case l.RP:{qb(e,t);break}case l.PRE:case l.LISTING:{yb(e,t);break}case l.XMP:{Mb(e,t);break}case l.SVG:{Yb(e,t);break}case l.HTML:{Eb(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{ze(e,t);break}case l.BODY:{bb(e,t);break}case l.FORM:{Db(e,t);break}case l.NOBR:{xb(e,t);break}case l.MATH:{$b(e,t);break}case l.TABLE:{Lb(e,t);break}case l.INPUT:{Fb(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{wb(e,t);break}case l.IMAGE:{Pb(e,t);break}case l.BUTTON:{kb(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{Ob(e,t);break}case l.IFRAME:{Ub(e,t);break}case l.SELECT:{Hb(e,t);break}case l.OPTION:case l.OPTGROUP:{vb(e,t);break}case l.NOEMBED:case l.NOFRAMES:{Us(e,t);break}case l.FRAMESET:{Tb(e,t);break}case l.TEXTAREA:{Bb(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?Us(e,t):Hs(e,t);break}case l.PLAINTEXT:{Sb(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:Hs(e,t)}}function jb(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=A.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Kb(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=A.AFTER_BODY,Cl(e,t))}function Vb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Wb(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function Qb(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(x.P,l.P),e._closePElement()}function Gb(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Xb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Jb(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Zb(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function eT(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(x.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function hl(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const u=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(u,s))break}}function Ir(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{cu(e,t);break}case l.P:{Qb(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Vb(e,t);break}case l.LI:{Gb(e);break}case l.DD:case l.DT:{Xb(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{Jb(e);break}case l.BR:{eT(e);break}case l.BODY:{jb(e,t);break}case l.HTML:{Kb(e,t);break}case l.FORM:{Wb(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{Zb(e,t);break}case l.TEMPLATE:{_t(e,t);break}default:hl(e,t)}}function dl(e,t){e.tmplInsertionModeStack.length>0?Al(e,t):fu(e,t)}function tT(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function nT(e,t){e._err(t,F.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ni(e,t){if(e.openElements.currentTagId!==void 0&&al.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=A.IN_TABLE_TEXT,t.type){case te.CHARACTER:{ml(e,t);break}case te.WHITESPACE_CHARACTER:{pl(e,t);break}}else Pn(e,t)}function rT(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_CAPTION}function iT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_COLUMN_GROUP}function uT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.COLGROUP,l.COLGROUP),e.insertionMode=A.IN_COLUMN_GROUP,hu(e,t)}function sT(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_TABLE_BODY}function aT(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(x.TBODY,l.TBODY),e.insertionMode=A.IN_TABLE_BODY,Nr(e,t)}function oT(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function lT(e,t){fl(t)?e._appendElement(t,H.HTML):Pn(e,t),t.ackSelfClosing=!0}function cT(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,H.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function qt(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{aT(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{ze(e,t);break}case l.COL:{uT(e,t);break}case l.FORM:{cT(e,t);break}case l.TABLE:{oT(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{sT(e,t);break}case l.INPUT:{lT(e,t);break}case l.CAPTION:{rT(e,t);break}case l.COLGROUP:{iT(e,t);break}default:Pn(e,t)}}function Sn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{_t(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Pn(e,t)}}function Pn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,kr(e,t),e.fosterParentingEnabled=n}function pl(e,t){e.pendingCharacterTokens.push(t)}function ml(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function sn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Pn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const gl=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function fT(e,t){const n=t.tagID;gl.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,qt(e,t)):Ae(e,t)}function hT(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_TABLE,n===l.TABLE&&Sn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Ir(e,t)}}function hu(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.COL:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{ze(e,t);break}default:lr(e,t)}}function dT(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case l.TEMPLATE:{_t(e,t);break}case l.COL:break;default:lr(e,t)}}function lr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=A.IN_TABLE,e._processToken(t))}function Nr(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(x.TR,l.TR),e.insertionMode=A.IN_ROW,xr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,qt(e,t));break}default:qt(e,t)}}function xi(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE,Sn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Sn(e,t)}}function xr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,H.HTML),e.insertionMode=A.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,Nr(e,t));break}default:qt(e,t)}}function El(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,xi(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=A.IN_TABLE_BODY,xi(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Sn(e,t)}}function pT(e,t){const n=t.tagID;gl.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),xr(e,t)):Ae(e,t)}function mT(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),El(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:Ir(e,t)}}function bl(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{ze(e,t);break}}}function Tl(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{_t(e,t);break}}}function gT(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bl(e,t)}function ET(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Tl(e,t)}function bT(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{ze(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=A.IN_TABLE,e.insertionMode=A.IN_TABLE,qt(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=A.IN_COLUMN_GROUP,e.insertionMode=A.IN_COLUMN_GROUP,hu(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=A.IN_TABLE_BODY,e.insertionMode=A.IN_TABLE_BODY,Nr(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=A.IN_ROW,e.insertionMode=A.IN_ROW,xr(e,t);break}default:e.tmplInsertionModeStack[0]=A.IN_BODY,e.insertionMode=A.IN_BODY,Ae(e,t)}}function TT(e,t){t.tagID===l.TEMPLATE&&_t(e,t)}function Al(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):fu(e,t)}function AT(e,t){t.tagID===l.HTML?Ae(e,t):cr(e,t)}function Cl(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=A.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else cr(e,t)}function cr(e,t){e.insertionMode=A.IN_BODY,kr(e,t)}function CT(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.FRAMESET:{e._insertElement(t,H.HTML);break}case l.FRAME:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{ze(e,t);break}}}function yT(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=A.AFTER_FRAMESET))}function DT(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.NOFRAMES:{ze(e,t);break}}}function _T(e,t){t.tagID===l.HTML&&(e.insertionMode=A.AFTER_AFTER_FRAMESET)}function ST(e,t){t.tagID===l.HTML?Ae(e,t):er(e,t)}function er(e,t){e.insertionMode=A.IN_BODY,kr(e,t)}function kT(e,t){switch(t.tagID){case l.HTML:{Ae(e,t);break}case l.NOFRAMES:{ze(e,t);break}}}function IT(e,t){t.chars=oe,e._insertCharacters(t)}function NT(e,t){e._insertCharacters(t),e.framesetOk=!1}function yl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==H.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function xT(e,t){if(YE(t))yl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===H.MATHML?ul(t):r===H.SVG&&(jE(t),sl(t)),lu(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function OT(e,t){if(t.tagID===l.P||t.tagID===l.BR){yl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===H.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}x.AREA,x.BASE,x.BASEFONT,x.BGSOUND,x.BR,x.COL,x.EMBED,x.FRAME,x.HR,x.IMG,x.INPUT,x.KEYGEN,x.LINK,x.META,x.PARAM,x.SOURCE,x.TRACK,x.WBR;const LT=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,FT=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),vs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Dl(e,t){const n=qT(e),r=no("type",{handlers:{root:wT,element:RT,text:PT,comment:Sl,doctype:BT,raw:UT},unknown:HT}),i={parser:n?new Ms(vs):Ms.getFragmentParser(void 0,vs),handle(a){r(a,i)},stitches:!1,options:t||{}};r(e,i),Gt(i,et());const u=n?i.parser.document:i.parser.getFragment(),s=wg(u,{file:i.options.file});return i.stitches&&je(s,"comment",function(a,o,c){const h=a;if(h.value.stitch&&c&&o!==void 0){const f=c.children;return f[o]=h.value.stitch,o}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function _l(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function wT(e,t){_l(e.children,t)}function RT(e,t){vT(e,t),_l(e.children,t),zT(e,t)}function PT(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:te.CHARACTER,chars:e.value,location:Bn(e)};Gt(t,et(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function BT(e,t){const n={type:te.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Bn(e)};Gt(t,et(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function MT(e,t){t.stitches=!0;const n=$T(e);if("children"in e&&"children"in n){const r=Dl({type:"root",children:e.children},t.options);n.children=r.children}Sl({type:"comment",value:{stitch:n}},t)}function Sl(e,t){const n=e.value,r={type:te.COMMENT,data:n,location:Bn(e)};Gt(t,et(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function UT(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,kl(t,et(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(LT,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function HT(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))MT(n,t);else{let r="";throw FT.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Gt(e,t){kl(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=fe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function kl(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function vT(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===fe.PLAINTEXT)return;Gt(t,et(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:bt.html;i===bt.html&&n==="svg"&&(i=bt.svg);const u=Wg({...e,children:[]},{space:i===bt.svg?"svg":"html"}),s={type:te.START_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:Bn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function zT(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&nE.includes(n)||t.parser.tokenizer.state===fe.PLAINTEXT)return;Gt(t,dr(e));const r={type:te.END_TAG,tagName:n,tagID:Qt(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Bn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===fe.RCDATA||t.parser.tokenizer.state===fe.RAWTEXT||t.parser.tokenizer.state===fe.SCRIPT_DATA)&&(t.parser.tokenizer.state=fe.DATA)}function qT(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Bn(e){const t=et(e)||{line:void 0,column:void 0,offset:void 0},n=dr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function $T(e){return"children"in e?Je({...e,children:[]}):Je(e)}function YT(e){return function(t,n){return Dl(t,{...e,file:n})}}function jT(e,t){const n={type:"element",tagName:"em",properties:t.attributes||{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const zs=/[\t\n\r]/g;function KT(e,t=4){const n=[];let r=0,i=0,u=-1;if(typeof e!="string")throw new TypeError("detab expected string");for(;i<e.length;){zs.lastIndex=i;const s=zs.exec(e),a=s?s.index:e.length;if(e.codePointAt(a)===9){const o=t-(u+a-i+1)%t;n.push(e.slice(r,a)," ".repeat(o)),u+=a-i+o,r=a+1}else u=-1;i=a+1}return n.push(e.slice(r)),n.join("")}function VT(e){if(!e?.trim())return{language:void 0,highlights:void 0,filename:void 0,meta:void 0};const t=e.replace(/[{|[](.+)/,"").match(/^[^ \t]+(?=[ \t]|$)/),n=e.match(/\{([^}]*)\}/),r=e.match(/\[(.*)\]/),i=e.replace(t?.[0]??"","").replace(n?.[0]??"","").replace(r?.[0]??"","").trim();let u;return r?.[1]&&(u=r[1].replace(/\\([[\]{}().*+?^$|])/g,"$1")),{language:t?.[0]||void 0,highlights:WT(n?.[1]||void 0),filename:u,meta:i}}function WT(e){const t=String(e||"").split(",").filter(Boolean).flatMap(n=>{const[r,i]=n.trim().split("-").map(u=>Number(u.trim()));return Array.from({length:(i||r||0)-(r||0)+1}).map((u,s)=>(r||0)+s)});return t.length?t:void 0}const QT=/^<\/?([\w-]+)(\s[^>]*?)?\/?>/;function Il(e){const t=String(e).match(QT);return t&&t[1]}const GT=(e,t)=>{const n=(t.lang||"")+" "+(t.meta||""),{language:r="text",highlights:i,filename:u,meta:s}=VT(n),a=t.value?KT(t.value+`
`):"";let o={type:"element",tagName:"code",properties:{__ignoreMap:""},children:[{type:"text",value:a}]};s&&(o.data={meta:s}),e.patch(t,o),o=e.applyData(t,o);const c={language:r||"text",filename:u,highlights:i,meta:s,code:a};return r&&(c.className=["language-"+r]),o={type:"element",tagName:"pre",properties:c,children:[o]},e.patch(t,o),o};function XT(e,t){const n=Il(t.value);if(n&&/[A-Z]/.test(n)&&(t.value=t.value.replace(n,An(n))),e.dangerous||e.options?.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function JT(e,t){const n={...t.attributes||{},href:ft(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZT(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s&&s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}(t.children||[]).some(s=>typeof s.checked=="boolean")&&(n.className=["contains-task-list"]);const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}function e2(e,t){if(t.children&&t.children[0]&&t.children[0].type==="html"){const r=An(Il(t.children[0].value)||"div");if(!Zl.includes(r))return e.all(t)}const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function t2(e,t){const n={...t.attributes,src:ft(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function n2(e,t){const n={type:"element",tagName:"strong",properties:t.attributes||{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function r2(e,t){const n=t.attributes?.language||t.attributes?.lang,r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:t.attributes||{},children:[r]},u=(i.properties.class||"").split(" ");return delete i.properties.class,n&&(i.properties.language=n,delete i.properties.lang,u.push("language-"+n)),i.properties.className=u.join(" "),e.patch(t,i),e.applyData(t,i)}function i2(e,t){const n={type:"element",tagName:t.name,properties:{...t.attributes,...t.data?.hProperties},children:e.all(t)};return e.patch(t,n),n.attributes=t.attributes,n.fmAttributes=t.fmAttributes,n}const u2={emphasis:jT,code:GT,link:JT,paragraph:e2,html:XT,list:ZT,image:t2,strong:n2,inlineCode:r2,containerComponent:i2},Nl={remark:{plugins:{"remark-mdc":{instance:Nm},"remark-gfm":{instance:ag}}},rehype:{options:{handlers:u2,allowDangerousHtml:!0},plugins:{"rehype-external-links":{instance:Tg},"rehype-sort-attribute-values":{instance:Ag},"rehype-sort-attributes":{instance:Cg},"rehype-raw":{instance:YT,options:{passThrough:["element"]}}}},highlight:!1,toc:{searchDepth:2,depth:2}};function xl(e){return e.type==="comment"?"":e.type==="text"?e.value||"":(e.children||[]).reduce((t,n)=>t.concat(xl(n)),"")}function Ol(e,t=2,n=0){return!Array.isArray(e.children)||n===t?[e]:[e,...e.children.reduce((r,i)=>r.concat(Ol(i,t,n+1)),[])]}const Ll=["h2","h3","h4","h5","h6"],s2=Ll.reduce((e,t)=>(e[t]=Number(t.charAt(t.length-1)),e),{}),a2=e=>s2[e.tag],o2=e=>((e<1||e>5)&&(console.log(`\`toc.depth\` is set to ${e}. It should be a number between 1 and 5. `),e=1),Ll.slice(0,e));function Fl(e){if(e.length<=1)return e;const t=[];let n;return e.forEach(r=>{!n||r.depth<=n.depth?(r.children=[],n=r,t.push(r)):n.children.push(r)}),t.forEach(r=>{r.children?.length?r.children=Fl(r.children):delete r.children}),t}function l2(e,t){const{searchDepth:n,depth:r,title:i=""}=t,u=o2(r),a=Ol(e,n).filter(o=>u.includes(o.tag||"")).map(o=>({id:o.props?.id,depth:a2(o),text:xl(o)}));return{title:i,searchDepth:n,depth:r,links:a}}function c2(e,t){const n=l2(e,t);return n.links=Fl(n.links),n}function wl(e){return"children"in e?Rl(e):"value"in e?e.value:""}function f2(e){return e.type==="text"?e.value:"children"in e?Rl(e):""}function Rl(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=f2(e.children[t]);return n.join("")}const h2=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,d2=Object.hasOwnProperty;class p2{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=m2(t,n===!0);const u=i;for(;d2.call(r.occurrences,i);)r.occurrences[u]++,i=u+"-"+r.occurrences[u];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function m2(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(h2,"").replace(/ /g,"-"))}const g2=["object"],E2=["srcdoc","formaction"],b2=["javascript:","data:text/html","vbscript:","data:text/javascript","data:text/vbscript","data:text/css","data:text/plain","data:text/xml"];function T2(e){const n=decodeURIComponent(e).replace(/&#x([0-9a-f]+);?/gi,"").replace(/&#(\d+);?/g,"").replace(/&[a-z]+;?/gi,"");try{const r=new URL(n,"http://example.com");if(r.origin==="http://example.com")return!0;if(b2.some(i=>r.protocol.toLowerCase().startsWith(i)))return!1}catch{return!1}return!0}const A2=(e,t)=>(e=e.toLowerCase(),e.startsWith("on")||E2.includes(e)?!1:e==="href"||e==="src"?T2(t):!0),C2=(e,t)=>g2.includes(e)?{}:t?(t=Object.fromEntries(Object.entries(t).filter(([n,r])=>{const i=A2(n,r);return i||console.warn(`[@nuxtjs/mdc] removing unsafe attribute: ${n}="${r}"`),i})),e==="pre"&&typeof t.highlights=="string"&&(t.highlights=t.highlights.split(" ").map(n=>Number.parseInt(n))),t):{};function y2(e={}){const t=new p2;function n(r,i){if(r.type==="root")return{type:"root",children:r.children.map(s=>n(s,r)).filter(Boolean)};const u=r.position?.start?.offset&&r.position?.end?.offset?{start:r.position.start.offset,end:r.position.end.offset}:void 0;if(r.type==="element"){if(r.tagName==="p"&&r.children.every(o=>o.type==="text"&&/^\s*$/.test(o.value)))return null;if(r.tagName==="li"){let o=!1;r.children=r.children?.flatMap(c=>c.type==="element"&&c.tagName==="p"?(o&&c.children.unshift({type:"element",tagName:"br",properties:{},children:[]}),o=!0,c.children):c)}r.tagName?.match(/^h\d$/)&&(r.properties=r.properties||{},r.properties.id=String(r.properties?.id||t.slug(wl(r))).replace(/-+/g,"-").replace(/^-|-$/g,"").replace(/^(\d)/,"_$1")),r.tagName==="component-slot"&&(r.tagName="template");const s=(r.tagName==="template"&&r.content?.children.length?r.content.children:r.children).map(o=>n(o,r)).filter(Boolean),a={type:"element",tag:r.tagName,props:C2(r.tagName,r.properties),children:s};return e.keepPosition&&(a.position=u),a}return r.type==="text"&&(!/^\n+$/.test(r.value||"")||i?.properties?.emptyLinePlaceholder)?e.keepPosition?{type:"text",value:r.value,position:u}:{type:"text",value:r.value}:e.keepComments&&r.type==="comment"?e.keepPosition?{type:"comment",value:r.value,position:u}:{type:"comment",value:r.value}:null}this.Compiler=r=>{const i=n(r);let u;const s=r.children.findIndex(a=>a.type==="comment"&&a.value?.trim()==="more");if(s!==-1&&(u=n({type:"root",children:r.children.slice(0,s)}),u.children.find(a=>a.type==="element"&&a.tag==="pre"))){const a=i.children[i.children.length-1];a&&a.type==="element"&&a.tag==="style"&&u.children.push(a)}return i.children=(i.children||[]).filter(a=>a.type!=="text"),{body:i,excerpt:u}}}let an,ri;const Pl=async(e={})=>{an||(an=await bu(()=>import("./qAE_Bbcx.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url).catch(()=>({}))),ri||(ri=await bu(()=>import("./bNaE6FFb.js"),[],import.meta.url).then(i=>i.getMdcConfigs()).catch(()=>[]));const t=[...ri||[],...e.configs||[]];e.highlight!=null&&e.highlight!=!1&&e.highlight.highlighter!==void 0&&typeof e.highlight.highlighter!="function"&&(e={...e,highlight:{...e.highlight}},delete e.highlight.highlighter);const n=qs(e,{remark:{plugins:an?.remarkPlugins},rehype:{plugins:an?.rehypePlugins},highlight:an?.highlight},Nl);n.rehype?.plugins?.highlight&&(e.highlight===!1?delete n.rehype.plugins.highlight:n.rehype.plugins.highlight.options={...n.rehype.plugins.highlight.options||{},...n.highlight||{}});let r=bc();for(const i of t)r=await i.unified?.pre?.(r)||r;r.use(_h);for(const i of t)r=await i.unified?.remark?.(r)||r;await ps(r,n.remark?.plugins),r.use(T0,n.rehype?.options);for(const i of t)r=await i.unified?.rehype?.(r)||r;await ps(r,n.rehype?.plugins),r.use(y2,n);for(const i of t)r=await i.unified?.post?.(r)||r;return r},Bl=async(e={})=>{const t=await Pl(e);return async function(r,{fileOptions:i}={}){const{content:u,data:s}=await mo(r),a=typeof process<"u"&&typeof process.cwd=="function"?process.cwd():"/tmp",o=await new Promise((d,g)=>{t.process({cwd:a,...i,value:u,data:s},(m,T)=>{m?g(m):d(T)})}),c=o?.result,h=Object.assign(e.contentHeading!==!1?_2(c.body):{},s,o?.data||{}),f={data:h,body:c.body},p=h.toc??e.toc;if(p!==!1){const d=qs({},p,Nl.toc);f.toc=c2(c.body,d)}return c.excerpt&&(f.excerpt=c.excerpt),f}},D2=async(e,t={},n={})=>(await Bl(t))(e.replace(/\r\n/g,`
`),n);function _2(e){let t="",n="";const r=e.children.filter(i=>i.type==="element"&&i.tag!=="hr");if(r.length&&r[0].tag==="h1"){const i=r.shift();t=ii(i)}if(r.length&&r[0].tag==="p"){const i=r.shift();n=ii(i)}return{title:t,description:n}}function S2(e){const t=e;return async n=>{const r=[],i=[];je(n,u=>{const s=u;if(!["pre","code"].includes(s.tagName))return!1;const a=s.properties?.language!==void 0&&s.properties?.language!=="text",o=!!s.properties?.highlights;return a||o},u=>{const s=u,a=typeof s.properties.highlights=="string"?s.properties.highlights.split(/[,\s]+/).map(Number):Array.isArray(s.properties.highlights)?s.properties.highlights.map(Number):[],o=t.highlighter(wl(u),s.properties.language,t.theme,{highlights:a.filter(Boolean),meta:s.properties.meta}).then(({tree:c,className:h,style:f,inlineStyle:p})=>{s.properties.className=((s.properties.className||"")+" "+h).trim(),s.properties.style=((s.properties.style||"")+" "+p).trim(),s.children[0]?.tagName==="code"?s.children[0].children=c:s.children=c[0].children||c,f&&i.push(f)});r.push(o)}),r.length&&(await Promise.all(r),n.children.push({type:"element",tagName:"style",children:[{type:"text",value:k2(i.join(""))}],properties:{}}))}}const k2=e=>{const t=e.split("}").filter(n=>!!n.trim()).map(n=>n.trim()+"}");return Array.from(new Set(t)).join("")},w2=Object.freeze(Object.defineProperty({__proto__:null,TEXT_TAGS:Vl,createMarkdownParser:Bl,createParseProcessor:Pl,flatUnwrap:Wl,isTag:Ql,isText:Gl,nodeChildren:Xl,nodeTextContent:ii,parseMarkdown:D2,rehypeHighlight:S2,unwrap:Jl},Symbol.toStringTag,{value:"Module"}));export{yg as a,mg as b,ms as c,Fm as f,nE as h,w2 as i,S2 as r,F2 as s,no as z};
Back to Directory
File Manager