import{g as Mt,E as Xr,S as Jr}from"./ErrorHandlerHelper-DRZduZzh.js";import{L as Gr,a as on}from"./CookieHelper-DWNU8r-9.js";function Qn(e){if(e)throw e}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var ei=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const _t=Mt(ei);var Qe=Object.prototype.hasOwnProperty,jt=Object.prototype.toString,Yn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Kn=function(n){return typeof Array.isArray=="function"?Array.isArray(n):jt.call(n)==="[object Array]"},Xn=function(n){if(!n||jt.call(n)!=="[object Object]")return!1;var t=Qe.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Qe.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Qe.call(n,i)},Jn=function(n,t){Yn&&t.name==="__proto__"?Yn(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},Gn=function(n,t){if(t==="__proto__")if(Qe.call(n,t)){if(Zn)return Zn(n,t).value}else return;return n[t]},ni=function e(){var n,t,r,i,l,o,u=arguments[0],s=1,c=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});s<c;++s)if(n=arguments[s],n!=null)for(t in n)r=Gn(u,t),i=Gn(n,t),u!==i&&(f&&i&&(Xn(i)||(l=Kn(i)))?(l?(l=!1,o=r&&Kn(r)?r:[]):o=r&&Xn(r)?r:{},Jn(u,{name:t,newValue:e(f,o,i)})):typeof i<"u"&&Jn(u,{name:t,newValue:i}));return u};const et=Mt(ni);function Sn(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ti(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(s,...c){const f=e[++l];let a=-1;if(s){o(s);return}for(;++a<i.length;)(c[a]===null||c[a]===void 0)&&(c[a]=i[a]);i=c,f?ri(f,u)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function ri(e,n){let t;return r;function r(...o){const u=e.length>o.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(c){const f=c;if(u&&t)throw f;return i(f)}u||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...u){t||(t=!0,n(o,...u))}function l(o){i(null,o)}}function Be(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?nt(e.position):"start"in e||"end"in e?nt(e):"line"in e||"column"in e?Cn(e):""}function Cn(e){return tt(e&&e.line)+":"+tt(e&&e.column)}function nt(e){return Cn(e&&e.start)+"-"+Cn(e&&e.end)}function tt(e){return e&&typeof e=="number"?e:1}class ie extends Error{constructor(n,t,r){const i=[null,null];let l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof t=="string"&&(r=t,t=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}t&&("type"in t||"position"in t?t.position&&(l=t.position):"start"in t||"end"in t?l=t:("line"in t||"column"in t)&&(l.start=t)),this.name=Be(t)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}ie.prototype.file="";ie.prototype.name="";ie.prototype.reason="";ie.prototype.message="";ie.prototype.stack="";ie.prototype.fatal=null;ie.prototype.column=null;ie.prototype.line=null;ie.prototype.source=null;ie.prototype.ruleId=null;ie.prototype.position=null;const fe={basename:ii,dirname:li,extname:oi,join:ui,sep:"/"};function ii(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');je(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(r=i):(u=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function li(e){if(je(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.charCodeAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function oi(e){je(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const u=e.charCodeAt(n);if(u===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),u===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function ui(...e){let n=-1,t;for(;++n<e.length;)je(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":ai(t)}function ai(e){je(e);const n=e.charCodeAt(0)===47;let t=si(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.charCodeAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function si(e,n){let t="",r=0,i=-1,l=0,o=-1,u,s;for(;++o<=e.length;){if(o<e.length)u=e.charCodeAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(t.length<2||r!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return t}function je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ci={cwd:fi};function fi(){return"/"}function An(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function hi(e){if(typeof e=="string")e=new URL(e);else if(!An(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return pi(e)}function pi(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 n=e.pathname;let t=-1;for(;++t<n.length;)if(n.charCodeAt(t)===37&&n.charCodeAt(t+1)===50){const r=n.charCodeAt(t+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(n)}const un=["history","path","basename","stem","extname","dirname"];class mi{constructor(n){let t;n?typeof n=="string"||gi(n)?t={value:n}:An(n)?t={path:n}:t=n:t={},this.data={},this.messages=[],this.history=[],this.cwd=ci.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<un.length;){const l=un[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)un.includes(i)||(this[i]=t[i])}get path(){return this.history[this.history.length-1]}set path(n){An(n)&&(n=hi(n)),sn(n,"path"),this.path!==n&&this.history.push(n)}get dirname(){return typeof this.path=="string"?fe.dirname(this.path):void 0}set dirname(n){rt(this.basename,"dirname"),this.path=fe.join(n||"",this.basename)}get basename(){return typeof this.path=="string"?fe.basename(this.path):void 0}set basename(n){sn(n,"basename"),an(n,"basename"),this.path=fe.join(this.dirname||"",n)}get extname(){return typeof this.path=="string"?fe.extname(this.path):void 0}set extname(n){if(an(n,"extname"),rt(this.dirname,"extname"),n){if(n.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fe.join(this.dirname,this.stem+(n||""))}get stem(){return typeof this.path=="string"?fe.basename(this.path,this.extname):void 0}set stem(n){sn(n,"stem"),an(n,"stem"),this.path=fe.join(this.dirname||"",n+(this.extname||""))}toString(n){return(this.value||"").toString(n||void 0)}message(n,t,r){const i=new ie(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=null,i}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}}function an(e,n){if(e&&e.includes(fe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+fe.sep+"`")}function sn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function rt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function gi(e){return _t(e)}const di=Ut().freeze(),Ht={}.hasOwnProperty;function Ut(){const e=ti(),n=[];let t={},r,i=-1;return l.data=o,l.Parser=void 0,l.Compiler=void 0,l.freeze=u,l.attachers=n,l.use=s,l.parse=c,l.stringify=f,l.run=a,l.runSync=g,l.process=h,l.processSync=y,l;function l(){const w=Ut();let S=-1;for(;++S<n.length;)w.use(...n[S]);return w.data(et(!0,{},t)),w}function o(w,S){return typeof w=="string"?arguments.length===2?(hn("data",r),t[w]=S,l):Ht.call(t,w)&&t[w]||null:w?(hn("data",r),t=w,l):t}function u(){if(r)return l;for(;++i<n.length;){const[w,...S]=n[i];if(S[0]===!1)continue;S[0]===!0&&(S[0]=void 0);const d=w.call(l,...S);typeof d=="function"&&e.use(d)}return r=!0,i=Number.POSITIVE_INFINITY,l}function s(w,...S){let d;if(hn("use",r),w!=null)if(typeof w=="function")L(w,...S);else if(typeof w=="object")Array.isArray(w)?z(w):C(w);else throw new TypeError("Expected usable value, not `"+w+"`");return d&&(t.settings=Object.assign(t.settings||{},d)),l;function F(x){if(typeof x=="function")L(x);else if(typeof x=="object")if(Array.isArray(x)){const[D,...R]=x;L(D,...R)}else C(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function C(x){z(x.plugins),x.settings&&(d=Object.assign(d||{},x.settings))}function z(x){let D=-1;if(x!=null)if(Array.isArray(x))for(;++D<x.length;){const R=x[D];F(R)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function L(x,D){let R=-1,_;for(;++R<n.length;)if(n[R][0]===x){_=n[R];break}_?(Sn(_[1])&&Sn(D)&&(D=et(!0,_[1],D)),_[1]=D):n.push([...arguments])}}function c(w){l.freeze();const S=ve(w),d=l.Parser;return cn("parse",d),it(d,"parse")?new d(String(S),S).parse():d(String(S),S)}function f(w,S){l.freeze();const d=ve(S),F=l.Compiler;return fn("stringify",F),lt(w),it(F,"compile")?new F(w,d).compile():F(w,d)}function a(w,S,d){if(lt(w),l.freeze(),!d&&typeof S=="function"&&(d=S,S=void 0),!d)return new Promise(F);F(null,d);function F(C,z){e.run(w,ve(S),L);function L(x,D,R){D=D||w,x?z(x):C?C(D):d(null,D,R)}}}function g(w,S){let d,F;return l.run(w,S,C),ot("runSync","run",F),d;function C(z,L){Qn(z),d=L,F=!0}}function h(w,S){if(l.freeze(),cn("process",l.Parser),fn("process",l.Compiler),!S)return new Promise(d);d(null,S);function d(F,C){const z=ve(w);l.run(l.parse(z),z,(x,D,R)=>{if(x||!D||!R)L(x);else{const _=l.stringify(D,R);_==null||(ki(_)?R.value=_:R.result=_),L(x,R)}});function L(x,D){x||!D?C(x):F?F(D):S(null,D)}}}function y(w){let S;l.freeze(),cn("processSync",l.Parser),fn("processSync",l.Compiler);const d=ve(w);return l.process(d,F),ot("processSync","process",S),d;function F(C){S=!0,Qn(C)}}}function it(e,n){return typeof e=="function"&&e.prototype&&(yi(e.prototype)||n in e.prototype)}function yi(e){let n;for(n in e)if(Ht.call(e,n))return!0;return!1}function cn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function fn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function hn(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lt(e){if(!Sn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ot(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function ve(e){return xi(e)?e:new mi(e)}function xi(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ki(e){return typeof e=="string"||_t(e)}const bi={};function wi(e,n){const t=bi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return qt(e,r,i)}function qt(e,n,t){if(Si(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ut(e.children,n,t)}return Array.isArray(e)?ut(e,n,t):""}function ut(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=qt(e[i],n,t);return r.join("")}function Si(e){return!!(e&&typeof e=="object")}function te(e,n,t,r){const i=e.length;let l=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function re(e,n){return e.length>0?(te(e,e.length,0,n),e):n}const at={}.hasOwnProperty;function $t(e){const n={};let t=-1;for(;++t<e.length;)Ci(n,e[t]);return n}function Ci(e,n){let t;for(t in n){const i=(at.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){at.call(i,o)||(i[o]=[]);const u=l[o];Ai(i[o],Array.isArray(u)?u:u?[u]:[])}}}function Ai(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);te(e,0,0,r)}const Ei=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,G=we(/[A-Za-z]/),J=we(/[\dA-Za-z]/),Fi=we(/[#-'*+\--9=?A-Z^-~]/);function Ze(e){return e!==null&&(e<32||e===127)}const En=we(/\d/),Di=we(/[\dA-Fa-f]/),Ii=we(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function v(e){return e===-2||e===-1||e===32}const Ge=we(Ei),Ce=we(/\s/);function we(e){return n;function n(t){return t!==null&&e.test(String.fromCharCode(t))}}function B(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return v(s)?(e.enter(t),u(s)):n(s)}function u(s){return v(s)&&l++<i?(e.consume(s),u):(e.exit(t),n(s))}}const Oi={tokenize:Pi};function Pi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),B(e,n,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return P(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const zi={tokenize:Li},st={tokenize:Ti};function Li(e){const n=this,t=[];let r=0,i,l,o;return u;function u(C){if(r<t.length){const z=t[r];return n.containerState=z[1],e.attempt(z[0].continuation,s,c)(C)}return c(C)}function s(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&F();const z=n.events.length;let L=z,x;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){x=n.events[L][1].end;break}d(r);let D=z;for(;D<n.events.length;)n.events[D][1].end=Object.assign({},x),D++;return te(n.events,L+1,0,n.events.slice(z)),n.events.length=D,c(C)}return u(C)}function c(C){if(r===t.length){if(!i)return g(C);if(i.currentConstruct&&i.currentConstruct.concrete)return y(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(st,f,a)(C)}function f(C){return i&&F(),d(r),g(C)}function a(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,y(C)}function g(C){return n.containerState={},e.attempt(st,h,y)(C)}function h(C){return r++,t.push([n.currentConstruct,n.containerState]),g(C)}function y(C){if(C===null){i&&F(),d(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),d(0),e.consume(C);return}return P(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,u):(e.consume(C),w)}function S(C,z){const L=n.sliceStream(C);if(z&&L.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(L),n.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<o&&(!i.events[x][1].end||i.events[x][1].end.offset>o))return;const D=n.events.length;let R=D,_,k;for(;R--;)if(n.events[R][0]==="exit"&&n.events[R][1].type==="chunkFlow"){if(_){k=n.events[R][1].end;break}_=!0}for(d(r),x=D;x<n.events.length;)n.events[x][1].end=Object.assign({},k),x++;te(n.events,R+1,0,n.events.slice(D)),n.events.length=x}}function d(C){let z=t.length;for(;z-- >C;){const L=t[z];n.containerState=L[1],L[0].exit.call(n,e)}t.length=C}function F(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ti(e,n,t){return B(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ke(e){if(e===null||q(e)||Ce(e))return 1;if(Ge(e))return 2}function en(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Fn={name:"attention",tokenize:Ri,resolveAll:Ni};function Ni(e,n){let t=-1,r,i,l,o,u,s,c,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const a=Object.assign({},e[r][1].end),g=Object.assign({},e[t][1].start);ct(a,-s),ct(g,s),o={type:s>1?"strongSequence":"emphasisSequence",start:a,end:Object.assign({},e[r][1].end)},u={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:g},l={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},u.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},u.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=re(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=re(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),c=re(c,en(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=re(c,[["exit",l,n],["enter",u,n],["exit",u,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,c=re(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,te(e,r-1,t-r+3,c),t=r+c.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Ri(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ke(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===l)return e.consume(s),u;const c=e.exit("attentionSequence"),f=Ke(s),a=!f||f===2&&i||t.includes(s),g=!i||i===2&&f||t.includes(r);return c._open=!!(l===42?a:a&&(i||!g)),c._close=!!(l===42?g:g&&(f||!a)),n(s)}}function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const vi={name:"autolink",tokenize:Bi};function Bi(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(h){return G(h)?(e.consume(h),o):c(h)}function o(h){return h===43||h===45||h===46||J(h)?(r=1,u(h)):c(h)}function u(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||J(h))&&r++<32?(e.consume(h),u):(r=0,c(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ze(h)?t(h):(e.consume(h),s)}function c(h){return h===64?(e.consume(h),f):Fi(h)?(e.consume(h),c):t(h)}function f(h){return J(h)?a(h):t(h)}function a(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):g(h)}function g(h){if((h===45||J(h))&&r++<63){const y=h===45?g:a;return e.consume(h),y}return t(h)}}const He={tokenize:Mi,partial:!0};function Mi(e,n,t){return r;function r(l){return v(l)?B(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||P(l)?n(l):t(l)}}const Vt={name:"blockQuote",tokenize:_i,continuation:{tokenize:ji},exit:Hi};function _i(e,n,t){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return v(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function ji(e,n,t){const r=this;return i;function i(o){return v(o)?B(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Vt,n,t)(o)}}function Hi(e){e.exit("blockQuote")}const Wt={name:"characterEscape",tokenize:Ui};function Ui(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return Ii(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const ft=document.createElement("i");function zn(e){const n="&"+e+";";ft.innerHTML=n;const t=ft.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}const Qt={name:"characterReference",tokenize:qi};function qi(e,n,t){const r=this;let i=0,l,o;return u;function u(a){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),s}function s(a){return a===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(a),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,o=J,f(a))}function c(a){return a===88||a===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(a),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Di,f):(e.enter("characterReferenceValue"),l=7,o=En,f(a))}function f(a){if(a===59&&i){const g=e.exit("characterReferenceValue");return o===J&&!zn(r.sliceSerialize(g))?t(a):(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(a)&&i++<l?(e.consume(a),f):t(a)}}const ht={tokenize:Vi,partial:!0},pt={name:"codeFenced",tokenize:$i,concrete:!0};function $i(e,n,t){const r=this,i={tokenize:L,partial:!0};let l=0,o=0,u;return s;function s(x){return c(x)}function c(x){const D=r.events[r.events.length-1];return l=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,u=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(x)}function f(x){return x===u?(o++,e.consume(x),f):o<3?t(x):(e.exit("codeFencedFenceSequence"),v(x)?B(e,a,"whitespace")(x):a(x))}function a(x){return x===null||P(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(ht,w,z)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===null||P(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(x)):v(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(x)):x===96&&x===u?t(x):(e.consume(x),g)}function h(x){return x===null||P(x)?a(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||P(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(x)):x===96&&x===u?t(x):(e.consume(x),y)}function w(x){return e.attempt(i,z,S)(x)}function S(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d}function d(x){return l>0&&v(x)?B(e,F,"linePrefix",l+1)(x):F(x)}function F(x){return x===null||P(x)?e.check(ht,w,z)(x):(e.enter("codeFlowValue"),C(x))}function C(x){return x===null||P(x)?(e.exit("codeFlowValue"),F(x)):(e.consume(x),C)}function z(x){return e.exit("codeFenced"),n(x)}function L(x,D,R){let _=0;return k;function k(M){return x.enter("lineEnding"),x.consume(M),x.exit("lineEnding"),I}function I(M){return x.enter("codeFencedFence"),v(M)?B(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):O(M)}function O(M){return M===u?(x.enter("codeFencedFenceSequence"),H(M)):R(M)}function H(M){return M===u?(_++,x.consume(M),H):_>=o?(x.exit("codeFencedFenceSequence"),v(M)?B(x,V,"whitespace")(M):V(M)):R(M)}function V(M){return M===null||P(M)?(x.exit("codeFencedFence"),D(M)):R(M)}}}function Vi(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const pn={name:"codeIndented",tokenize:Qi},Wi={tokenize:Yi,partial:!0};function Qi(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),B(e,l,"linePrefix",5)(c)}function l(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?s(c):P(c)?e.attempt(Wi,o,s)(c):(e.enter("codeFlowValue"),u(c))}function u(c){return c===null||P(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),u)}function s(c){return e.exit("codeIndented"),n(c)}}function Yi(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):B(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):P(o)?i(o):t(o)}}const Zi={name:"codeText",tokenize:Ji,resolve:Ki,previous:Xi};function Ki(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||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),n-=r-i-2,r=i+2),i=void 0);return e}function Xi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ji(e,n,t){let r=0,i,l;return o;function o(a){return e.enter("codeText"),e.enter("codeTextSequence"),u(a)}function u(a){return a===96?(e.consume(a),r++,u):(e.exit("codeTextSequence"),s(a))}function s(a){return a===null?t(a):a===32?(e.enter("space"),e.consume(a),e.exit("space"),s):a===96?(l=e.enter("codeTextSequence"),i=0,f(a)):P(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):(e.enter("codeTextData"),c(a))}function c(a){return a===null||a===32||a===96||P(a)?(e.exit("codeTextData"),s(a)):(e.consume(a),c)}function f(a){return a===96?(e.consume(a),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(a)):(l.type="codeTextData",c(a))}}function Yt(e){const n={};let t=-1,r,i,l,o,u,s,c;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type==="chunkFlow"&&e[t-1][1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Gi(e,t)),t=n[t],c=!0);else if(r[1]._container){for(l=t,i=void 0;l--&&(o=e[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},e[i][1].start),u=e.slice(i,t),u.unshift(r),te(e,i,t-i+1,u))}}return!c}function Gi(e,n){const t=e[n][1],r=e[n][2];let i=n-1;const l=[],o=t._tokenizer||r.parser[t.contentType](t.start),u=o.events,s=[],c={};let f,a,g=-1,h=t,y=0,w=0;const S=[w];for(;h;){for(;e[++i][1]!==h;);l.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),a&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),a=h,h=h.next}for(h=t;++g<u.length;)u[g][0]==="exit"&&u[g-1][0]==="enter"&&u[g][1].type===u[g-1][1].type&&u[g][1].start.line!==u[g][1].end.line&&(w=g+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),g=S.length;g--;){const d=u.slice(S[g],S[g+1]),F=l.pop();s.unshift([F,F+d.length-1]),te(e,F,2,d)}for(g=-1;++g<s.length;)c[y+s[g][0]]=y+s[g][1],y+=s[g][1]-s[g][0]-1;return c}const el={tokenize:rl,resolve:tl},nl={tokenize:il,partial:!0};function tl(e){return Yt(e),e}function rl(e,n){let t;return r;function r(u){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):P(u)?e.check(nl,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function o(u){return e.consume(u),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function il(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),B(e,l,"linePrefix")}function l(o){if(o===null||P(o))return t(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Zt(e,n,t,r,i,l,o,u,s){const c=s||Number.POSITIVE_INFINITY;let f=0;return a;function a(d){return d===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(d),e.exit(l),g):d===null||d===32||d===41||Ze(d)?t(d):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(d))}function g(d){return d===62?(e.enter(l),e.consume(d),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===62?(e.exit("chunkString"),e.exit(u),g(d)):d===null||d===60||P(d)?t(d):(e.consume(d),d===92?y:h)}function y(d){return d===60||d===62||d===92?(e.consume(d),h):h(d)}function w(d){return!f&&(d===null||d===41||q(d))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(d)):f<c&&d===40?(e.consume(d),f++,w):d===41?(e.consume(d),f--,w):d===null||d===32||d===40||Ze(d)?t(d):(e.consume(d),d===92?S:w)}function S(d){return d===40||d===41||d===92?(e.consume(d),w):w(d)}}function Kt(e,n,t,r,i,l){const o=this;let u=0,s;return c;function c(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(l),f}function f(h){return u>999||h===null||h===91||h===93&&!s||h===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?t(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),a(h))}function a(h){return h===null||h===91||h===93||P(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!v(h)),h===92?g:a)}function g(h){return h===91||h===92||h===93?(e.consume(h),u++,a):a(h)}}function Xt(e,n,t,r,i,l){let o;return u;function u(g){return g===34||g===39||g===40?(e.enter(r),e.enter(i),e.consume(g),e.exit(i),o=g===40?41:g,s):t(g)}function s(g){return g===o?(e.enter(i),e.consume(g),e.exit(i),e.exit(r),n):(e.enter(l),c(g))}function c(g){return g===o?(e.exit(l),s(o)):g===null?t(g):P(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===o||g===null||P(g)?(e.exit("chunkString"),c(g)):(e.consume(g),g===92?a:f)}function a(g){return g===o||g===92?(e.consume(g),f):f(g)}}function Me(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):v(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}function ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ll={name:"definition",tokenize:ul},ol={tokenize:al,partial:!0};function ul(e,n,t){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return Kt.call(r,e,u,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return q(h)?Me(e,c)(h):c(h)}function c(h){return Zt(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(ol,a,a)(h)}function a(h){return v(h)?B(e,g,"whitespace")(h):g(h)}function g(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function al(e,n,t){return r;function r(u){return q(u)?Me(e,i)(u):t(u)}function i(u){return Xt(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return v(u)?B(e,o,"whitespace")(u):o(u)}function o(u){return u===null||P(u)?n(u):t(u)}}const sl={name:"hardBreakEscape",tokenize:cl};function cl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return P(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const fl={name:"headingAtx",tokenize:pl,resolve:hl};function hl(e,n){let t=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},te(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function pl(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||q(f)?(e.exit("atxHeadingSequence"),u(f)):t(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||P(f)?(e.exit("atxHeading"),n(f)):v(f)?B(e,u,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),u(f))}function c(f){return f===null||f===35||q(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),c)}}const ml=["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"],mt=["pre","script","style","textarea"],gl={name:"htmlFlow",tokenize:kl,resolveTo:xl,concrete:!0},dl={tokenize:wl,partial:!0},yl={tokenize:bl,partial:!0};function xl(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function kl(e,n,t){const r=this;let i,l,o,u,s;return c;function c(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),g):m===47?(e.consume(m),l=!0,w):m===63?(e.consume(m),i=3,r.interrupt?n:p):G(m)?(e.consume(m),o=String.fromCharCode(m),S):t(m)}function g(m){return m===45?(e.consume(m),i=2,h):m===91?(e.consume(m),i=5,u=0,y):G(m)?(e.consume(m),i=4,r.interrupt?n:p):t(m)}function h(m){return m===45?(e.consume(m),r.interrupt?n:p):t(m)}function y(m){const ae="CDATA[";return m===ae.charCodeAt(u++)?(e.consume(m),u===ae.length?r.interrupt?n:O:y):t(m)}function w(m){return G(m)?(e.consume(m),o=String.fromCharCode(m),S):t(m)}function S(m){if(m===null||m===47||m===62||q(m)){const ae=m===47,Ee=o.toLowerCase();return!ae&&!l&&mt.includes(Ee)?(i=1,r.interrupt?n(m):O(m)):ml.includes(o.toLowerCase())?(i=6,ae?(e.consume(m),d):r.interrupt?n(m):O(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?F(m):C(m))}return m===45||J(m)?(e.consume(m),o+=String.fromCharCode(m),S):t(m)}function d(m){return m===62?(e.consume(m),r.interrupt?n:O):t(m)}function F(m){return v(m)?(e.consume(m),F):k(m)}function C(m){return m===47?(e.consume(m),k):m===58||m===95||G(m)?(e.consume(m),z):v(m)?(e.consume(m),C):k(m)}function z(m){return m===45||m===46||m===58||m===95||J(m)?(e.consume(m),z):L(m)}function L(m){return m===61?(e.consume(m),x):v(m)?(e.consume(m),L):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,D):v(m)?(e.consume(m),x):R(m)}function D(m){return m===s?(e.consume(m),s=null,_):m===null||P(m)?t(m):(e.consume(m),D)}function R(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||q(m)?L(m):(e.consume(m),R)}function _(m){return m===47||m===62||v(m)?C(m):t(m)}function k(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||P(m)?O(m):v(m)?(e.consume(m),I):t(m)}function O(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),Z):m===62&&i===4?(e.consume(m),ue):m===63&&i===3?(e.consume(m),p):m===93&&i===5?(e.consume(m),pe):P(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(dl,me,H)(m)):m===null||P(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),O)}function H(m){return e.check(yl,V,me)(m)}function V(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),M}function M(m){return m===null||P(m)?H(m):(e.enter("htmlFlowData"),O(m))}function X(m){return m===45?(e.consume(m),p):O(m)}function Z(m){return m===47?(e.consume(m),o="",oe):O(m)}function oe(m){if(m===62){const ae=o.toLowerCase();return mt.includes(ae)?(e.consume(m),ue):O(m)}return G(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),oe):O(m)}function pe(m){return m===93?(e.consume(m),p):O(m)}function p(m){return m===62?(e.consume(m),ue):m===45&&i===2?(e.consume(m),p):O(m)}function ue(m){return m===null||P(m)?(e.exit("htmlFlowData"),me(m)):(e.consume(m),ue)}function me(m){return e.exit("htmlFlow"),n(m)}}function bl(e,n,t){const r=this;return i;function i(o){return P(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function wl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(He,n,t)}}const Sl={name:"htmlText",tokenize:Cl};function Cl(e,n,t){const r=this;let i,l,o;return u;function u(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),s}function s(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),L):p===63?(e.consume(p),C):G(p)?(e.consume(p),R):t(p)}function c(p){return p===45?(e.consume(p),f):p===91?(e.consume(p),l=0,y):G(p)?(e.consume(p),F):t(p)}function f(p){return p===45?(e.consume(p),h):t(p)}function a(p){return p===null?t(p):p===45?(e.consume(p),g):P(p)?(o=a,Z(p)):(e.consume(p),a)}function g(p){return p===45?(e.consume(p),h):a(p)}function h(p){return p===62?X(p):p===45?g(p):a(p)}function y(p){const ue="CDATA[";return p===ue.charCodeAt(l++)?(e.consume(p),l===ue.length?w:y):t(p)}function w(p){return p===null?t(p):p===93?(e.consume(p),S):P(p)?(o=w,Z(p)):(e.consume(p),w)}function S(p){return p===93?(e.consume(p),d):w(p)}function d(p){return p===62?X(p):p===93?(e.consume(p),d):w(p)}function F(p){return p===null||p===62?X(p):P(p)?(o=F,Z(p)):(e.consume(p),F)}function C(p){return p===null?t(p):p===63?(e.consume(p),z):P(p)?(o=C,Z(p)):(e.consume(p),C)}function z(p){return p===62?X(p):C(p)}function L(p){return G(p)?(e.consume(p),x):t(p)}function x(p){return p===45||J(p)?(e.consume(p),x):D(p)}function D(p){return P(p)?(o=D,Z(p)):v(p)?(e.consume(p),D):X(p)}function R(p){return p===45||J(p)?(e.consume(p),R):p===47||p===62||q(p)?_(p):t(p)}function _(p){return p===47?(e.consume(p),X):p===58||p===95||G(p)?(e.consume(p),k):P(p)?(o=_,Z(p)):v(p)?(e.consume(p),_):X(p)}function k(p){return p===45||p===46||p===58||p===95||J(p)?(e.consume(p),k):I(p)}function I(p){return p===61?(e.consume(p),O):P(p)?(o=I,Z(p)):v(p)?(e.consume(p),I):_(p)}function O(p){return p===null||p===60||p===61||p===62||p===96?t(p):p===34||p===39?(e.consume(p),i=p,H):P(p)?(o=O,Z(p)):v(p)?(e.consume(p),O):(e.consume(p),V)}function H(p){return p===i?(e.consume(p),i=void 0,M):p===null?t(p):P(p)?(o=H,Z(p)):(e.consume(p),H)}function V(p){return p===null||p===34||p===39||p===60||p===61||p===96?t(p):p===47||p===62||q(p)?_(p):(e.consume(p),V)}function M(p){return p===47||p===62||q(p)?_(p):t(p)}function X(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),n):t(p)}function Z(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),oe}function oe(p){return v(p)?B(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):pe(p)}function pe(p){return e.enter("htmlTextData"),o(p)}}const Ln={name:"labelEnd",tokenize:Ol,resolveTo:Il,resolveAll:Dl},Al={tokenize:Pl},El={tokenize:zl},Fl={tokenize:Ll};function Dl(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function Il(e,n){let t=e.length,r=0,i,l,o,u;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const s={type:e[l][1].type==="labelLink"?"link":"image",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[l][1].start),end:Object.assign({},e[o][1].end)},f={type:"labelText",start:Object.assign({},e[l+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return u=[["enter",s,n],["enter",c,n]],u=re(u,e.slice(l+1,l+r+3)),u=re(u,[["enter",f,n]]),u=re(u,en(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),u=re(u,[["exit",f,n],e[o-2],e[o-1],["exit",c,n]]),u=re(u,e.slice(o+1)),u=re(u,[["exit",s,n]]),te(e,l,e.length,u),e}function Ol(e,n,t){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return u;function u(g){return l?l._inactive?a(g):(o=r.parser.defined.includes(ce(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),s):t(g)}function s(g){return g===40?e.attempt(Al,f,o?f:a)(g):g===91?e.attempt(El,f,o?c:a)(g):o?f(g):a(g)}function c(g){return e.attempt(Fl,f,a)(g)}function f(g){return n(g)}function a(g){return l._balanced=!0,t(g)}}function Pl(e,n,t){return r;function r(a){return e.enter("resource"),e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),i}function i(a){return q(a)?Me(e,l)(a):l(a)}function l(a){return a===41?f(a):Zt(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(a)}function o(a){return q(a)?Me(e,s)(a):f(a)}function u(a){return t(a)}function s(a){return a===34||a===39||a===40?Xt(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(a):f(a)}function c(a){return q(a)?Me(e,f)(a):f(a)}function f(a){return a===41?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),n):t(a)}}function zl(e,n,t){const r=this;return i;function i(u){return Kt.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(u):t(u)}function o(u){return t(u)}}function Ll(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const Tl={name:"labelStartImage",tokenize:Nl,resolveAll:Ln.resolveAll};function Nl(e,n,t){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):t(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(u):n(u)}}const Rl={name:"labelStartLink",tokenize:vl,resolveAll:Ln.resolveAll};function vl(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const mn={name:"lineEnding",tokenize:Bl};function Bl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const Ye={name:"thematicBreak",tokenize:Ml};function Ml(e,n,t){let r=0,i;return l;function l(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,u(c)}function u(c){return c===i?(e.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||P(c))?(e.exit("thematicBreak"),n(c)):t(c)}function s(c){return c===i?(e.consume(c),r++,s):(e.exit("thematicBreakSequence"),v(c)?B(e,u,"whitespace")(c):u(c))}}const ee={name:"list",tokenize:Hl,continuation:{tokenize:Ul},exit:$l},_l={tokenize:Vl,partial:!0},jl={tokenize:ql,partial:!0};function Hl(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:En(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ye,t,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return En(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):t(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(He,r.interrupt?t:f,e.attempt(_l,g,a))}function f(h){return r.containerState.initialBlankLine=!0,l++,g(h)}function a(h){return v(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),g):t(h)}function g(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Ul(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(He,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!v(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jl,n,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ee,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function ql(e,n,t){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function $l(e){e.exit(this.containerState.type)}function Vl(e,n,t){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!v(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const gt={name:"setextUnderline",tokenize:Ql,resolveTo:Wl};function Wl(e,n){let t=e.length,r,i,l;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!l&&e[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[l][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function Ql(e,n,t){const r=this;let i;return l;function l(c){let f=r.events.length,a;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){a=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||a)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),u(c)}function u(c){return c===i?(e.consume(c),u):(e.exit("setextHeadingLineSequence"),v(c)?B(e,s,"lineSuffix")(c):s(c))}function s(c){return c===null||P(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Yl={tokenize:Zl};function Zl(e){const n=this,t=e.attempt(He,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(el,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Kl={resolveAll:Gt()},Xl=Jt("string"),Jl=Jt("text");function Jt(e){return{tokenize:n,resolveAll:Gt(e==="text"?Gl:void 0)};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,u);return o;function o(f){return c(f)?l(f):u(f)}function u(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return c(f)?(t.exit("data"),l(f)):(t.consume(f),s)}function c(f){if(f===null)return!0;const a=i[f];let g=-1;if(a)for(;++g<a.length;){const h=a[g];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Gt(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Gl(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,u=0,s;for(;l--;){const c=i[l];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(c===-2)s=!0,u++;else if(c!==-1){l++;break}}if(u){const c={type:t===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function eo(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],u=[];const s={consume:F,enter:C,exit:z,attempt:D(L),check:D(x),interrupt:D(x,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:g,now:y,defineSkip:w,write:a};let f=n.tokenize.call(c,s);return n.resolveAll&&l.push(n),c;function a(I){return o=re(o,I),S(),o[o.length-1]!==null?[]:(R(n,0),c.events=en(l,c.events,c),c.events)}function g(I,O){return to(h(I),O)}function h(I){return no(o,I)}function y(){const{line:I,column:O,offset:H,_index:V,_bufferIndex:M}=r;return{line:I,column:O,offset:H,_index:V,_bufferIndex:M}}function w(I){i[I.line]=I.column,k()}function S(){let I;for(;r._index<o.length;){const O=o[r._index];if(typeof O=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<O.length;)d(O.charCodeAt(r._bufferIndex));else d(O)}}function d(I){f=f(I)}function F(I){P(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,k()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,O){const H=O||{};return H.type=I,H.start=y(),c.events.push(["enter",H,c]),u.push(H),H}function z(I){const O=u.pop();return O.end=y(),c.events.push(["exit",O,c]),O}function L(I,O){R(I,O.from)}function x(I,O){O.restore()}function D(I,O){return H;function H(V,M,X){let Z,oe,pe,p;return Array.isArray(V)?me(V):"tokenize"in V?me([V]):ue(V);function ue(K){return Fe;function Fe(xe){const De=xe!==null&&K[xe],Ie=xe!==null&&K.null,rn=[...Array.isArray(De)?De:De?[De]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return me(rn)(xe)}}function me(K){return Z=K,oe=0,K.length===0?X:m(K[oe])}function m(K){return Fe;function Fe(xe){return p=_(),pe=K,K.partial||(c.currentConstruct=K),K.name&&c.parser.constructs.disable.null.includes(K.name)?Ee():K.tokenize.call(O?Object.assign(Object.create(c),O):c,s,ae,Ee)(xe)}}function ae(K){return I(pe,p),M}function Ee(K){return p.restore(),++oe<Z.length?m(Z[oe]):X}}}function R(I,O){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&te(c.events,O,c.events.length-O,I.resolve(c.events.slice(O),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function _(){const I=y(),O=c.previous,H=c.currentConstruct,V=c.events.length,M=Array.from(u);return{restore:X,from:V};function X(){r=I,c.previous=O,c.currentConstruct=H,c.events.length=V,u=M,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function no(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function to(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=n?" ":"	";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const ro={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:Vt},io={91:ll},lo={[-2]:pn,[-1]:pn,32:pn},oo={35:fl,42:Ye,45:[gt,Ye],60:gl,61:gt,95:Ye,96:pt,126:pt},uo={38:Qt,92:Wt},ao={[-5]:mn,[-4]:mn,[-3]:mn,33:Tl,38:Qt,42:Fn,60:[vi,Sl],91:Rl,92:[sl,Wt],93:Ln,95:Fn,96:Zi},so={null:[Fn,Kl]},co={null:[42,95]},fo={null:[]},ho=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:co,contentInitial:io,disable:fo,document:ro,flow:oo,flowInitial:lo,insideSpan:so,string:uo,text:ao},Symbol.toStringTag,{value:"Module"}));function po(e){const t=$t([ho,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(Oi),document:i(zi),flow:i(Yl),string:i(Xl),text:i(Jl)};return r;function i(l){return o;function o(u){return eo(r,l,u)}}}const dt=/[\0\t\n\r]/g;function mo(){let e=1,n="",t=!0,r;return i;function i(l,o,u){const s=[];let c,f,a,g,h;for(l=n+l.toString(o),a=0,n="",t&&(l.charCodeAt(0)===65279&&a++,t=void 0);a<l.length;){if(dt.lastIndex=a,c=dt.exec(l),g=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(g),!c){n=l.slice(a);break}if(h===10&&a===g&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),a<g&&(s.push(l.slice(a,g)),e+=g-a),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}a=g+1}return u&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}function go(e){for(;!Yt(e););return e}function er(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const yo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nr(e){return e.replace(yo,xo)}function xo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return er(t.slice(l?2:1),l?16:10)}return zn(t)||e}const tr={}.hasOwnProperty,ko=function(e,n,t){return typeof n!="string"&&(t=n,n=void 0),bo(t)(go(po(t).document().write(mo()(e,n,!0))))};function bo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Vn),autolinkProtocol:I,autolinkEmail:I,atxHeading:u(Un),blockQuote:u(rn),characterEscape:I,characterReference:I,codeFenced:u(Hn),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:u(Hn,s),codeText:u(Ur,s),codeTextData:I,data:I,codeFlowValue:I,definition:u(qr),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:u($r),hardBreakEscape:u(qn),hardBreakTrailing:u(qn),htmlFlow:u($n,s),htmlFlowData:I,htmlText:u($n,s),htmlTextData:I,image:u(Vr),label:s,link:u(Vn),listItem:u(Wr),listItemValue:y,listOrdered:u(Wn,h),listUnordered:u(Wn),paragraph:u(Qr),reference:Ee,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:u(Un),strong:u(Yr),thematicBreak:u(Kr)},exit:{atxHeading:f(),atxHeadingSequence:D,autolink:f(),autolinkEmail:Ie,autolinkProtocol:De,blockQuote:f(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Fe,characterReferenceMarkerNumeric:Fe,characterReferenceValue:xe,codeFenced:f(F),codeFencedFence:d,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:O,codeIndented:f(C),codeText:f(Z),codeTextData:O,data:O,definition:f(),definitionDestinationString:x,definitionLabelString:z,definitionTitleString:L,emphasis:f(),hardBreakEscape:f(V),hardBreakTrailing:f(V),htmlFlow:f(M),htmlFlowData:O,htmlText:f(X),htmlTextData:O,image:f(pe),label:ue,labelText:p,lineEnding:H,link:f(oe),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:K,resourceDestinationString:me,resourceTitleString:m,resource:ae,setextHeading:f(k),setextHeadingLineSequence:_,setextHeadingText:R,strong:f(),thematicBreak:f()}};rr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let E={type:"root",children:[]};const T={stack:[E],tokenStack:[],config:n,enter:c,exit:a,buffer:s,resume:g,setData:l,getData:o},j=[];let U=-1;for(;++U<b.length;)if(b[U][1].type==="listOrdered"||b[U][1].type==="listUnordered")if(b[U][0]==="enter")j.push(U);else{const se=j.pop();U=i(b,se,U)}for(U=-1;++U<b.length;){const se=n[b[U][0]];tr.call(se,b[U][1].type)&&se[b[U][1].type].call(Object.assign({sliceSerialize:b[U][2].sliceSerialize},T),b[U][1])}if(T.tokenStack.length>0){const se=T.tokenStack[T.tokenStack.length-1];(se[1]||yt).call(T,void 0,se[0])}for(E.position={start:be(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:be(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<n.transforms.length;)E=n.transforms[U](E)||E;return E}function i(b,E,T){let j=E-1,U=-1,se=!1,ke,ge,Ne,Re;for(;++j<=T;){const W=b[j];if(W[1].type==="listUnordered"||W[1].type==="listOrdered"||W[1].type==="blockQuote"?(W[0]==="enter"?U++:U--,Re=void 0):W[1].type==="lineEndingBlank"?W[0]==="enter"&&(ke&&!Re&&!U&&!Ne&&(Ne=j),Re=void 0):W[1].type==="linePrefix"||W[1].type==="listItemValue"||W[1].type==="listItemMarker"||W[1].type==="listItemPrefix"||W[1].type==="listItemPrefixWhitespace"||(Re=void 0),!U&&W[0]==="enter"&&W[1].type==="listItemPrefix"||U===-1&&W[0]==="exit"&&(W[1].type==="listUnordered"||W[1].type==="listOrdered")){if(ke){let ln=j;for(ge=void 0;ln--;){const de=b[ln];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(b[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=ln}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Ne&&(!ge||Ne<ge)&&(ke._spread=!0),ke.end=Object.assign({},ge?b[ge][1].start:W[1].end),b.splice(ge||j,0,["exit",ke,W[2]]),j++,T++}W[1].type==="listItemPrefix"&&(ke={type:"listItem",_spread:!1,start:Object.assign({},W[1].start),end:void 0},b.splice(j,0,["enter",ke,W[2]]),j++,T++,Ne=void 0,Re=!0)}}return b[E][1]._spread=se,T}function l(b,E){t[b]=E}function o(b){return t[b]}function u(b,E){return T;function T(j){c.call(this,b(j),j),E&&E.call(this,j)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(b,E,T){return this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([E,T]),b.position={start:be(E.start)},b}function f(b){return E;function E(T){b&&b.call(this,T),a.call(this,T)}}function a(b,E){const T=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==b.type&&(E?E.call(this,b,j[0]):(j[1]||yt).call(this,b,j[0]));else throw new Error("Cannot close `"+b.type+"` ("+Be({start:b.start,end:b.end})+"): it’s not open");return T.position.end=be(b.end),T}function g(){return wi(this.stack.pop())}function h(){l("expectingFirstListItemValue",!0)}function y(b){if(o("expectingFirstListItemValue")){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(b),10),l("expectingFirstListItemValue")}}function w(){const b=this.resume(),E=this.stack[this.stack.length-1];E.lang=b}function S(){const b=this.resume(),E=this.stack[this.stack.length-1];E.meta=b}function d(){o("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function F(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function C(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b.replace(/(\r?\n|\r)$/g,"")}function z(b){const E=this.resume(),T=this.stack[this.stack.length-1];T.label=E,T.identifier=ce(this.sliceSerialize(b)).toLowerCase()}function L(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function x(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function D(b){const E=this.stack[this.stack.length-1];if(!E.depth){const T=this.sliceSerialize(b).length;E.depth=T}}function R(){l("setextHeadingSlurpLineEnding",!0)}function _(b){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(b).charCodeAt(0)===61?1:2}function k(){l("setextHeadingSlurpLineEnding")}function I(b){const E=this.stack[this.stack.length-1];let T=E.children[E.children.length-1];(!T||T.type!=="text")&&(T=Zr(),T.position={start:be(b.start)},E.children.push(T)),this.stack.push(T)}function O(b){const E=this.stack.pop();E.value+=this.sliceSerialize(b),E.position.end=be(b.end)}function H(b){const E=this.stack[this.stack.length-1];if(o("atHardBreak")){const T=E.children[E.children.length-1];T.position.end=be(b.end),l("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&n.canContainEols.includes(E.type)&&(I.call(this,b),O.call(this,b))}function V(){l("atHardBreak",!0)}function M(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function X(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function Z(){const b=this.resume(),E=this.stack[this.stack.length-1];E.value=b}function oe(){const b=this.stack[this.stack.length-1];if(o("inReference")){const E=o("referenceType")||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;l("referenceType")}function pe(){const b=this.stack[this.stack.length-1];if(o("inReference")){const E=o("referenceType")||"shortcut";b.type+="Reference",b.referenceType=E,delete b.url,delete b.title}else delete b.identifier,delete b.label;l("referenceType")}function p(b){const E=this.sliceSerialize(b),T=this.stack[this.stack.length-2];T.label=nr(E),T.identifier=ce(E).toLowerCase()}function ue(){const b=this.stack[this.stack.length-1],E=this.resume(),T=this.stack[this.stack.length-1];if(l("inReference",!0),T.type==="link"){const j=b.children;T.children=j}else T.alt=E}function me(){const b=this.resume(),E=this.stack[this.stack.length-1];E.url=b}function m(){const b=this.resume(),E=this.stack[this.stack.length-1];E.title=b}function ae(){l("inReference")}function Ee(){l("referenceType","collapsed")}function K(b){const E=this.resume(),T=this.stack[this.stack.length-1];T.label=E,T.identifier=ce(this.sliceSerialize(b)).toLowerCase(),l("referenceType","full")}function Fe(b){l("characterReferenceType",b.type)}function xe(b){const E=this.sliceSerialize(b),T=o("characterReferenceType");let j;T?(j=er(E,T==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):j=zn(E);const U=this.stack.pop();U.value+=j,U.position.end=be(b.end)}function De(b){O.call(this,b);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(b)}function Ie(b){O.call(this,b);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(b)}function rn(){return{type:"blockquote",children:[]}}function Hn(){return{type:"code",lang:null,meta:null,value:""}}function Ur(){return{type:"inlineCode",value:""}}function qr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $r(){return{type:"emphasis",children:[]}}function Un(){return{type:"heading",depth:void 0,children:[]}}function qn(){return{type:"break"}}function $n(){return{type:"html",value:""}}function Vr(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function Wn(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Wr(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Qr(){return{type:"paragraph",children:[]}}function Yr(){return{type:"strong",children:[]}}function Zr(){return{type:"text",value:""}}function Kr(){return{type:"thematicBreak"}}}function be(e){return{line:e.line,column:e.column,offset:e.offset}}function rr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?rr(e,r):wo(e,r)}}function wo(e,n){let t;for(t in n)if(tr.call(n,t)){if(t==="canContainEols"){const r=n[t];r&&e[t].push(...r)}else if(t==="transforms"){const r=n[t];r&&e[t].push(...r)}else if(t==="enter"||t==="exit"){const r=n[t];r&&Object.assign(e[t],r)}}}function yt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Be({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Be({start:n.start,end:n.end})+") is still open")}function So(e){Object.assign(this,{Parser:t=>{const r=this.data("settings");return ko(t,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Co(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Ao(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
`}]}function Eo(e,n){const t=n.value?n.value+`
`:"",r=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Fo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Do(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Le(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&J(e.charCodeAt(t+1))&&J(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(t+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function ir(e,n){const t=String(n.identifier).toUpperCase(),r=Le(t.toLowerCase()),i=e.footnoteOrder.indexOf(t);let l;i===-1?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,l=e.footnoteOrder.length):(e.footnoteCounts[t]++,l=i+1);const o=e.footnoteCounts[t],u={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function Io(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const i=String(r);return t[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:n.children}],position:n.position},ir(e,{type:"footnoteReference",identifier:i,position:n.position})}function Oo(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Po(e,n){if(e.dangerous){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}return null}function lr(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+r};const i=e.all(n),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function zo(e,n){const t=e.definition(n.identifier);if(!t)return lr(e,n);const r={src:Le(t.url||""),alt:n.alt};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function Lo(e,n){const t={src:Le(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function To(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function No(e,n){const t=e.definition(n.identifier);if(!t)return lr(e,n);const r={href:Le(t.url||"")};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function Ro(e,n){const t={href:Le(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function vo(e,n,t){const r=e.all(n),i=t?Bo(t):or(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let a;f&&f.type==="element"&&f.tagName==="p"?a=f:(a={type:"element",tagName:"p",properties:{},children:[]},r.unshift(a)),a.children.length>0&&a.children.unshift({type:"text",value:" "}),a.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,c),e.applyData(n,c)}function Bo(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=or(t[r])}return n}function or(e){const n=e.spread;return n??e.children.length>1}function Mo(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function _o(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function jo(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ho(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Tn=ur("start"),Nn=ur("end");function Uo(e){return{start:Tn(e),end:Nn(e)}}function ur(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function qo(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},u=Tn(n.children[1]),s=Nn(n.children[n.children.length-1]);u.line&&s.line&&(o.position={start:u,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function $o(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,u=o?o.length:n.children.length;let s=-1;const c=[];for(;++s<u;){const a=n.children[s],g={},h=o?o[s]:void 0;h&&(g.align=h);let y={type:"element",tagName:l,properties:g,children:[]};a&&(y.children=e.all(a),e.patch(a,y),y=e.applyData(n,y)),c.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,f),e.applyData(n,f)}function Vo(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const xt=9,kt=32;function Wo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(bt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(bt(n.slice(i),i>0,!1)),l.join("")}function bt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===xt||l===kt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===xt||l===kt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qo(e,n){const t={type:"text",value:Wo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Yo(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Zo={blockquote:Co,break:Ao,code:Eo,delete:Fo,emphasis:Do,footnoteReference:ir,footnote:Io,heading:Oo,html:Po,imageReference:zo,image:Lo,inlineCode:To,linkReference:No,link:Ro,listItem:vo,list:Mo,paragraph:_o,root:jo,strong:Ho,table:qo,tableCell:Vo,tableRow:$o,text:Qo,thematicBreak:Yo,toml:qe,yaml:qe,definition:qe,footnoteDefinition:qe};function qe(){return null}const Rn=function(e){if(e==null)return Go;if(typeof e=="string")return Jo(e);if(typeof e=="object")return Array.isArray(e)?Ko(e):Xo(e);if(typeof e=="function")return nn(e);throw new Error("Expected function, string, or object as test")};function Ko(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Rn(e[t]);return nn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].call(this,...i))return!0;return!1}}function Xo(e){return nn(n);function n(t){let r;for(r in e)if(t[r]!==e[r])return!1;return!0}}function Jo(e){return nn(n);function n(t){return t&&t.type===e}}function nn(e){return n;function n(t,...r){return!!(t&&typeof t=="object"&&"type"in t&&e.call(this,t,...r))}}function Go(){return!0}const eu=!0,wt=!1,nu="skip",ar=function(e,n,t,r){typeof n=="function"&&typeof t!="function"&&(r=t,t=n,n=null);const i=Rn(n),l=r?-1:1;o(e,void 0,[])();function o(u,s,c){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const g=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(a,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return a;function a(){let g=[],h,y,w;if((!n||i(u,s,c[c.length-1]||null))&&(g=tu(t(u,c)),g[0]===wt))return g;if(u.children&&g[0]!==nu)for(y=(r?u.children.length:-1)+l,w=c.concat(u);y>-1&&y<u.children.length;){if(h=o(u.children[y],y,w)(),h[0]===wt)return h;y=typeof h[1]=="number"?h[1]:y+l}return g}}};function tu(e){return Array.isArray(e)?e:typeof e=="number"?[eu,e]:[e]}const sr=function(e,n,t,r){typeof n=="function"&&typeof t!="function"&&(r=t,t=n,n=null),ar(e,n,i,r);function i(l,o){const u=o[o.length-1];return t(l,u?u.children.indexOf(l):null,u)}};function ru(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const St={}.hasOwnProperty;function iu(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return sr(e,"definition",r=>{const i=Ct(r.identifier);i&&!St.call(n,i)&&(n[i]=r)}),t;function t(r){const i=Ct(r);return i&&St.call(n,i)?n[i]:null}}function Ct(e){return String(e||"").toUpperCase()}const Xe={}.hasOwnProperty;function lu(e,n){const t=n||{},r=t.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=t.clobberPrefix===void 0||t.clobberPrefix===null?"user-content-":t.clobberPrefix,o.footnoteLabel=t.footnoteLabel||"Footnotes",o.footnoteLabelTagName=t.footnoteLabelTagName||"h2",o.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=t.footnoteBackLabel||"Back to content",o.unknownHandler=t.unknownHandler,o.passThrough=t.passThrough,o.handlers={...Zo,...t.handlers},o.definition=iu(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.patch=ou,o.applyData=uu,o.one=u,o.all=s,o.wrap=su,o.augment=l,sr(e,"footnoteDefinition",c=>{const f=String(c.identifier).toUpperCase();Xe.call(i,f)||(i[f]=c)}),o;function l(c,f){if(c&&"data"in c&&c.data){const a=c.data;a.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=a.hName),f.type==="element"&&a.hProperties&&(f.properties={...f.properties,...a.hProperties}),"children"in f&&f.children&&a.hChildren&&(f.children=a.hChildren)}if(c){const a="type"in c?c:{position:c};ru(a)||(f.position={start:Tn(a),end:Nn(a)})}return f}function o(c,f,a,g){return Array.isArray(a)&&(g=a,a={}),l(c,{type:"element",tagName:f,properties:a||{},children:g||[]})}function u(c,f){return cr(o,c,f)}function s(c){return vn(o,c)}}function ou(e,n){e.position&&(n.position=Uo(e))}function uu(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;typeof r=="string"&&(t.type==="element"?t.tagName=r:t={type:"element",tagName:r,properties:{},children:[]}),t.type==="element"&&l&&(t.properties={...t.properties,...l}),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function cr(e,n,t){const r=n&&n.type;if(!r)throw new Error("Expected node, got `"+n+"`");return Xe.call(e.handlers,r)?e.handlers[r](e,n,t):e.passThrough&&e.passThrough.includes(r)?"children"in n?{...n,children:vn(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,t):au(e,n)}function vn(e,n){const t=[];if("children"in n){const r=n.children;let i=-1;for(;++i<r.length;){const l=cr(e,r[i],n);if(l){if(i&&r[i-1].type==="break"&&(!Array.isArray(l)&&l.type==="text"&&(l.value=l.value.replace(/^\s+/,"")),!Array.isArray(l)&&l.type==="element")){const o=l.children[0];o&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,""))}Array.isArray(l)?t.push(...l):t.push(l)}}}return t}function au(e,n){const t=n.data||{},r="value"in n&&!(Xe.call(t,"hProperties")||Xe.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:vn(e,n)};return e.patch(n,r),e.applyData(n,r)}function su(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
`});++r<e.length;)r&&t.push({type:"text",value:`
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
`}),t}function cu(e){const n=[];let t=-1;for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t]];if(!r)continue;const i=e.all(r),l=String(r.identifier).toUpperCase(),o=Le(l.toLowerCase());let u=0;const s=[];for(;++u<=e.footnoteCounts[l];){const a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(u>1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&a.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(a)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const a=c.children[c.children.length-1];a&&a.type==="text"?a.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(i,!0)};e.patch(r,f),n.push(f)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:`
`}]}}function fr(e,n){const t=lu(e,n),r=t.one(e,null),i=cu(t);return i&&r.children.push({type:"text",value:`
`},i),Array.isArray(r)?{type:"root",children:r}:r}const fu=function(e,n){return e&&"run"in e?hu(e,n):pu(e||n)};function hu(e,n){return(t,r,i)=>{e.run(fr(t,n),r,l=>{i(l)})}}function pu(e){return n=>fr(n,e)}class Ue{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}}Ue.prototype.property={};Ue.prototype.normal={};Ue.prototype.space=null;function hr(e,n){const t={},r={};let i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new Ue(t,r,n)}function Dn(e){return e.toLowerCase()}class le{constructor(n,t){this.property=n,this.attribute=t}}le.prototype.space=null;le.prototype.boolean=!1;le.prototype.booleanish=!1;le.prototype.overloadedBoolean=!1;le.prototype.number=!1;le.prototype.commaSeparated=!1;le.prototype.spaceSeparated=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.mustUseProperty=!1;le.prototype.defined=!1;let mu=0;const N=Ae(),Q=Ae(),pr=Ae(),A=Ae(),$=Ae(),Pe=Ae(),ne=Ae();function Ae(){return 2**++mu}const In=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Q,commaOrSpaceSeparated:ne,commaSeparated:Pe,number:A,overloadedBoolean:pr,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),gn=Object.keys(In);class Bn extends le{constructor(n,t,r,i){let l=-1;if(super(n,t),At(this,"space",i),typeof r=="number")for(;++l<gn.length;){const o=gn[l];At(this,gn[l],(r&In[o])===In[o])}}}Bn.prototype.defined=!0;function At(e,n,t){t&&(e[n]=t)}const gu={}.hasOwnProperty;function Te(e){const n={},t={};let r;for(r in e.properties)if(gu.call(e.properties,r)){const i=e.properties[r],l=new Bn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[Dn(r)]=r,t[Dn(l.attribute)]=r}return new Ue(n,t,e.space)}const mr=Te({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),gr=Te({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dr(e,n){return n in e?e[n]:n}function yr(e,n){return dr(e,n.toLowerCase())}const xr=Te({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:yr,properties:{xmlns:null,xmlnsXLink:null}}),kr=Te({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:$,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:A,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:$,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Q,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null}}),du=Te({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:yr,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Pe,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:$,autoFocus:N,autoPlay:N,blocking:$,capture:null,charSet:null,checked:N,cite:null,className:$,cols:A,colSpan:null,content:null,contentEditable:Q,controls:N,controlsList:$,coords:A|Pe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:pr,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:$,height:A,hidden:N,high:A,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:$,itemRef:$,itemScope:N,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:A,pattern:null,ping:$,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:$,required:N,reversed:N,rows:A,rowSpan:A,sandbox:$,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Q,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:A,security:null,unselectable:null}}),yu=Te({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:dr,properties:{about:ne,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:$,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:Pe,g2:Pe,glyphName:Pe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,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:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xu=/^data[-\w.:]+$/i,Et=/-[a-z]/g,ku=/[A-Z]/g;function bu(e,n){const t=Dn(n);let r=n,i=le;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&xu.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Et,Su);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Et.test(l)){let o=l.replace(ku,wu);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Bn}return new i(r,n)}function wu(e){return"-"+e.toLowerCase()}function Su(e){return e.charAt(1).toUpperCase()}const Cu=hr([gr,mr,xr,kr,du],"html"),br=hr([gr,mr,xr,kr,yu],"svg"),Au=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],Ft={}.hasOwnProperty;function Eu(e,n){const t=n;function r(i,...l){let o=r.invalid;const u=r.handlers;if(i&&Ft.call(i,e)){const s=String(i[e]);o=Ft.call(u,s)?u[s]:r.unknown}if(o)return o.call(this,i,...l)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}const Fu=/["&'<>`]/g,Du=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iu=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ou=/[|\\{}()[\]^$+*?.]/g,Dt=new WeakMap;function Pu(e,n){if(e=e.replace(n.subset?zu(n.subset):Fu,r),n.subset||n.escapeOnly)return e;return e.replace(Du,t).replace(Iu,r);function t(i,l,o){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(l+2),n)}function r(i,l,o){return n.format(i.charCodeAt(0),o.charCodeAt(l+1),n)}}function zu(e){let n=Dt.get(e);return n||(n=Lu(e),Dt.set(e,n)),n}function Lu(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(Ou,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const Tu=/[\dA-Fa-f]/;function Nu(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!Tu.test(String.fromCharCode(n))?r:r+";"}const Ru=/\d/;function vu(e,n,t){const r="&#"+String(e);return t&&n&&!Ru.test(String.fromCharCode(n))?r:r+";"}const Bu=["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"],dn={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:"€"},Mu=["cent","copy","divide","gt","lt","not","para","times"],wr={}.hasOwnProperty,On={};let $e;for($e in dn)wr.call(dn,$e)&&(On[dn[$e]]=$e);const _u=/[^\dA-Za-z]/;function ju(e,n,t,r){const i=String.fromCharCode(e);if(wr.call(On,i)){const l=On[i],o="&"+l;return t&&Bu.includes(l)&&!Mu.includes(l)&&(!r||n&&n!==61&&_u.test(String.fromCharCode(n)))?o:o+";"}return""}function Hu(e,n,t){let r=Nu(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=ju(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const l=vu(e,n,t.omitOptionalSemicolons);l.length<r.length&&(r=l)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function ze(e,n){return Pu(e,Object.assign({format:Hu},n))}function Uu(e,n,t,r){return r.settings.bogusComments?"<?"+ze(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(l){return ze(l,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function qu(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Je(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function $u(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function Vu(e){return e.join(" ").trim()}function Mn(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}const Y=Cr(1),Sr=Cr(-1);function Cr(e){return n;function n(t,r,i){const l=t?t.children:[];let o=(r||0)+e,u=l&&l[o];if(!i)for(;u&&Mn(u);)o+=e,u=l[o];return u}}const Wu={}.hasOwnProperty;function Ar(e){return n;function n(t,r,i){return Wu.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const _n=Ar({html:Qu,head:yn,body:Yu,p:Zu,li:Ku,dt:Xu,dd:Ju,rt:It,rp:It,optgroup:Gu,option:ea,menuitem:na,colgroup:yn,caption:yn,thead:ta,tbody:ra,tfoot:ia,tr:la,td:Ot,th:Ot});function yn(e,n,t){const r=Y(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Mn(r.value.charAt(0)))}function Qu(e,n,t){const r=Y(t,n);return!r||r.type!=="comment"}function Yu(e,n,t){const r=Y(t,n);return!r||r.type!=="comment"}function Zu(e,n,t){const r=Y(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Ku(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="li"}function Xu(e,n,t){const r=Y(t,n);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ju(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function It(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Gu(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function ea(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function na(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function ta(e,n,t){const r=Y(t,n);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function ra(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function ia(e,n,t){return!Y(t,n)}function la(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function Ot(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const oa=Ar({html:ua,head:aa,body:sa,colgroup:ca,tbody:fa});function ua(e){const n=Y(e,-1);return!n||n.type!=="comment"}function aa(e){const n=e.children,t=[];let r=-1;for(;++r<n.length;){const i=n[r];if(i.type==="element"&&(i.tagName==="title"||i.tagName==="base")){if(t.includes(i.tagName))return!1;t.push(i.tagName)}}return n.length>0}function sa(e){const n=Y(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Mn(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function ca(e,n,t){const r=Sr(t,n),i=Y(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&_n(r,t.children.indexOf(r),t)?!1:i&&i.type==="element"&&i.tagName==="col"}function fa(e,n,t){const r=Sr(t,n),i=Y(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&_n(r,t.children.indexOf(r),t)?!1:i&&i.type==="element"&&i.tagName==="tr"}const Ve={name:[[`	
\f\r &/=>`.split(""),`	
\f\r "&'/=>\``.split("")],[`\0	
\f\r "&'/<=>`.split(""),`\0	
\f\r "&'/<=>\``.split("")]],unquoted:[[`	
\f\r &>`.split(""),`\0	
\f\r "&'<=>\``.split("")],[`\0	
\f\r "&'<=>\``.split(""),`\0	
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ha(e,n,t,r){const i=r.schema,l=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let s;i.space==="html"&&e.tagName==="svg"&&(r.schema=br);const c=pa(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(o=!1),(c||!l||!oa(e,n,t))&&(u.push("<",e.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(s=c.charAt(c.length-1),(!r.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(f),!o&&(!l||!_n(e,n,t))&&u.push("</"+e.tagName+">"),u.join("")}function pa(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==void 0&&n[i]!==null){const l=ma(e,i,n[i]);l&&t.push(l)}}for(;++r<t.length;){const l=e.settings.tightAttributes?t[r].charAt(t[r].length-1):null;r!==t.length-1&&l!=='"'&&l!=="'"&&(t[r]+=" ")}return t.join("")}function ma(e,n,t){const r=bu(e.schema,n),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,l=e.settings.allowDangerousCharacters?0:1;let o=e.quote,u;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean&&typeof t!="string")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const s=ze(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ve.name[i][l]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?$u:Vu)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?s:(e.settings.preferUnquoted&&(u=ze(t,Object.assign({},e.settings.characterReferences,{subset:Ve.unquoted[i][l],attribute:!0}))),u!==t&&(e.settings.quoteSmart&&Je(t,o)>Je(t,e.alternative)&&(o=e.alternative),u=o+ze(t,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Ve.single:Ve.double)[i][l],attribute:!0}))+o),s+(u&&"="+u))}function Er(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:ze(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function ga(e,n,t,r){return r.settings.allowDangerousHtml?e.value:Er(e,n,t,r)}function da(e,n,t,r){return r.all(e)}const ya=Eu("type",{invalid:xa,unknown:ka,handlers:{comment:Uu,doctype:qu,element:ha,raw:ga,root:da,text:Er}});function xa(e){throw new Error("Expected node, not `"+e+"`")}function ka(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function ba(e,n){const t=n||{},r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:wa,all:Sa,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Au,characterReferences:t.characterReferences||t.entities||{},closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?br:Cu,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function wa(e,n,t){return ya(e,n,t,this)}function Sa(e){const n=[],t=e&&e.children||[];let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}function Ca(e){const n=this.data("settings"),t=Object.assign({},n,e);Object.assign(this,{Compiler:r});function r(i){return ba(i,t)}}const Aa={tokenize:Pa,partial:!0},Fr={tokenize:za,partial:!0},Dr={tokenize:La,partial:!0},Ir={tokenize:Ta,partial:!0},Ea={tokenize:Na,partial:!0},Or={tokenize:Ia,previous:zr},Pr={tokenize:Oa,previous:Lr},ye={tokenize:Da,previous:Tr},he={},Fa={text:he};let Se=48;for(;Se<123;)he[Se]=ye,Se++,Se===58?Se=65:Se===91&&(Se=97);he[43]=ye;he[45]=ye;he[46]=ye;he[95]=ye;he[72]=[ye,Pr];he[104]=[ye,Pr];he[87]=[ye,Or];he[119]=[ye,Or];function Da(e,n,t){const r=this;let i,l;return o;function o(a){return!Pn(a)||!Tr.call(r,r.previous)||jn(r.events)?t(a):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(a))}function u(a){return Pn(a)?(e.consume(a),u):a===64?(e.consume(a),s):t(a)}function s(a){return a===46?e.check(Ea,f,c)(a):a===45||a===95||J(a)?(l=!0,e.consume(a),s):f(a)}function c(a){return e.consume(a),i=!0,s}function f(a){return l&&i&&G(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(a)):t(a)}}function Ia(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!zr.call(r,r.previous)||jn(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Aa,e.attempt(Fr,e.attempt(Dr,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Oa(e,n,t){const r=this;let i="",l=!1;return o;function o(a){return(a===72||a===104)&&Lr.call(r,r.previous)&&!jn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(a),e.consume(a),u):t(a)}function u(a){if(G(a)&&i.length<5)return i+=String.fromCodePoint(a),e.consume(a),u;if(a===58){const g=i.toLowerCase();if(g==="http"||g==="https")return e.consume(a),s}return t(a)}function s(a){return a===47?(e.consume(a),l?c:(l=!0,s)):t(a)}function c(a){return a===null||Ze(a)||q(a)||Ce(a)||Ge(a)?t(a):e.attempt(Fr,e.attempt(Dr,f),t)(a)}function f(a){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(a)}}function Pa(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function za(e,n,t){let r,i,l;return o;function o(c){return c===46||c===95?e.check(Ir,s,u)(c):c===null||q(c)||Ce(c)||c!==45&&Ge(c)?s(c):(l=!0,e.consume(c),o)}function u(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),o}function s(c){return i||r||!l?t(c):n(c)}}function La(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Ir,n,l)(o):o===null||q(o)||Ce(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Ta(e,n,t){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),i):u===60||u===null||q(u)||Ce(u)?n(u):t(u)}function i(u){return u===null||u===40||u===91||q(u)||Ce(u)?n(u):r(u)}function l(u){return G(u)?o(u):t(u)}function o(u){return u===59?(e.consume(u),r):G(u)?(e.consume(u),o):t(u)}}function Na(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return J(l)?t(l):n(l)}}function zr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||q(e)}function Lr(e){return!G(e)}function Tr(e){return!(e===47||Pn(e))}function Pn(e){return e===43||e===45||e===46||e===95||J(e)}function jn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Ra={tokenize:qa,partial:!0};function va(){return{document:{91:{tokenize:ja,continuation:{tokenize:Ha},exit:Ua}},text:{91:{tokenize:_a},93:{add:"after",tokenize:Ba,resolveTo:Ma}}}}function Ba(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!o||!o._balanced)return t(s);const c=ce(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!l.includes(c.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Ma(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...u),e}function _a(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(a){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),s}function s(a){return a!==94?t(a):(e.enter("gfmFootnoteCallMarker"),e.consume(a),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(a){if(l>999||a===93&&!o||a===null||a===91||q(a))return t(a);if(a===93){e.exit("chunkString");const g=e.exit("gfmFootnoteCallString");return i.includes(ce(r.sliceSerialize(g)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(a)}return q(a)||(o=!0),l++,e.consume(a),a===92?f:c}function f(a){return a===91||a===92||a===93?(e.consume(a),l++,c):c(a)}}function ja(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return s;function s(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(y)}function f(y){if(o>999||y===93&&!u||y===null||y===91||q(y))return t(y);if(y===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return l=ce(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),g}return q(y)||(u=!0),o++,e.consume(y),y===92?a:f}function a(y){return y===91||y===92||y===93?(e.consume(y),o++,f):f(y)}function g(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(l)||i.push(l),B(e,h,"gfmFootnoteDefinitionWhitespace")):t(y)}function h(y){return n(y)}}function Ha(e,n,t){return e.check(He,n,e.attempt(Ra,n,t))}function Ua(e){e.exit("gfmFootnoteDefinition")}function qa(e,n,t){const r=this;return B(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function $a(e){let t=(e||{}).singleTilde;const r={tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let c=s;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[s][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[s][1].end)},a={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[s][1].start)},g=[["enter",f,u],["enter",o[c][1],u],["exit",o[c][1],u],["enter",a,u]],h=u.parser.constructs.insideSpan.null;h&&te(g,g.length,0,en(h,o.slice(c+1,s),u)),te(g,g.length,0,[["exit",a,u],["enter",o[s][1],u],["exit",o[s][1],u],["exit",f,u]]),te(o,c-1,s-c+3,g),s=c+g.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,u,s){const c=this.previous,f=this.events;let a=0;return g;function g(y){return c===126&&f[f.length-1][1].type!=="characterEscape"?s(y):(o.enter("strikethroughSequenceTemporary"),h(y))}function h(y){const w=Ke(c);if(y===126)return a>1?s(y):(o.consume(y),a++,h);if(a<2&&!t)return s(y);const S=o.exit("strikethroughSequenceTemporary"),d=Ke(y);return S._open=!d||d===2&&!!w,S._close=!w||w===2&&!!d,u(y)}}}class Va{constructor(){this.map=[]}add(n,t,r){Wa(this,n,t,r)}consume(n){if(this.map.sort((l,o)=>l[0]-o[0]),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1])),r.push(this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function Wa(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Qa(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}const Ya={flow:{null:{tokenize:Za,resolveAll:Ka}}};function Za(e,n,t){const r=this;let i=0,l=0,o;return u;function u(k){let I=r.events.length-1;for(;I>-1;){const V=r.events[I][1].type;if(V==="lineEnding"||V==="linePrefix")I--;else break}const O=I>-1?r.events[I][1].type:null,H=O==="tableHead"||O==="tableRow"?x:s;return H===x&&r.parser.lazy[r.now().line]?t(k):H(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),c(k)}function c(k){return k===124||(o=!0,l+=1),f(k)}function f(k){return k===null?t(k):P(k)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):v(k)?B(e,f,"whitespace")(k):(l+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),a(k)))}function a(k){return k===null||k===124||q(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?g:a)}function g(k){return k===92||k===124?(e.consume(k),a):a(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),o=!1,v(k)?B(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):y(k))}function y(k){return k===45||k===58?S(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):L(k)}function w(k){return v(k)?B(e,S,"whitespace")(k):S(k)}function S(k){return k===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),d):k===45?(l+=1,d(k)):k===null||P(k)?z(k):L(k)}function d(k){return k===45?(e.enter("tableDelimiterFiller"),F(k)):L(k)}function F(k){return k===45?(e.consume(k),F):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(k))}function C(k){return v(k)?B(e,z,"whitespace")(k):z(k)}function z(k){return k===124?y(k):k===null||P(k)?!o||i!==l?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):L(k)}function L(k){return t(k)}function x(k){return e.enter("tableRow"),D(k)}function D(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),D):k===null||P(k)?(e.exit("tableRow"),n(k)):v(k)?B(e,D,"whitespace")(k):(e.enter("data"),R(k))}function R(k){return k===null||k===124||q(k)?(e.exit("data"),D(k)):(e.consume(k),k===92?_:R)}function _(k){return k===92||k===124?(e.consume(k),R):R(k)}}function Ka(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,s=0,c,f,a;const g=new Va;for(;++t<e.length;){const h=e[t],y=h[1];h[0]==="enter"?y.type==="tableHead"?(u=!1,s!==0&&(Pt(g,n,s,c,f),f=void 0,s=0),c={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},g.add(t,0,[["enter",c,n]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,a=void 0,l=[0,0,0,0],o=[0,t+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},g.add(t,0,[["enter",f,n]])),i=y.type==="tableDelimiterRow"?2:f?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],a=We(g,n,l,i,void 0,a),l=[0,0,0,0]),o[2]=t)):y.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],a=We(g,n,l,i,void 0,a)),l=o,o=[l[1],t,0,0])):y.type==="tableHead"?(u=!0,s=t):y.type==="tableRow"||y.type==="tableDelimiterRow"?(s=t,l[1]!==0?(o[0]=o[1],a=We(g,n,l,i,t,a)):o[1]!==0&&(a=We(g,n,o,i,t,a)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&Pt(g,n,s,c,f),g.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Qa(n.events,t))}return e}function We(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";t[0]!==0&&(l.end=Object.assign({},Oe(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=Oe(n.events,t[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const c=Oe(n.events,t[2]),f=Oe(n.events,t[3]),a={type:u,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",a,n]]),r!==2){const g=n.events[t[2]],h=n.events[t[3]];if(g[1].end=Object.assign({},h[1].end),g[1].type="chunkText",g[1].contentType="text",t[3]>t[2]+1){const y=t[2]+1,w=t[3]-t[2]-1;e.add(y,w,[])}}e.add(t[3]+1,0,[["exit",a,n]])}return i!==void 0&&(l.end=Object.assign({},Oe(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Pt(e,n,t,r,i){const l=[],o=Oe(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Oe(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Xa={tokenize:Ga},Ja={text:{91:Xa}};function Ga(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return q(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):t(s)}function u(s){return P(s)?n(s):v(s)?e.check({tokenize:es},n,t)(s):t(s)}}function es(e,n,t){return B(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function ns(e){return $t([Fa,va(),$a(e),Ya,Ja])}function ts(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const rs={}.hasOwnProperty,is=function(e,n,t,r){let i,l;typeof n=="string"||n instanceof RegExp?(l=[[n,t]],i=r):(l=n,i=t),i||(i={});const o=Rn(i.ignore||[]),u=ls(l);let s=-1;for(;++s<u.length;)ar(e,"text",c);return e;function c(a,g){let h=-1,y;for(;++h<g.length;){const w=g[h];if(o(w,y?y.children.indexOf(w):void 0,y))return;y=w}if(y)return f(a,g)}function f(a,g){const h=g[g.length-1],y=u[s][0],w=u[s][1];let S=0;const d=h.children.indexOf(a);let F=!1,C=[];y.lastIndex=0;let z=y.exec(a.value);for(;z;){const L=z.index,x={index:z.index,input:z.input,stack:[...g,a]};let D=w(...z,x);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D!==!1&&(S!==L&&C.push({type:"text",value:a.value.slice(S,L)}),Array.isArray(D)?C.push(...D):D&&C.push(D),S=L+z[0].length,F=!0),!y.global)break;z=y.exec(a.value)}return F?(S<a.value.length&&C.push({type:"text",value:a.value.slice(S)}),h.children.splice(d,1,...C)):C=[a],d+C.length}};function ls(e){const n=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let t=-1;for(;++t<e.length;)n.push([zt(e[t][0]),Lt(e[t][1])])}else{let t;for(t in e)rs.call(e,t)&&n.push([zt(t),Lt(e[t])])}return n}function zt(e){return typeof e=="string"?new RegExp(ts(e),"g"):e}function Lt(e){return typeof e=="function"?e:()=>e}const xn="phrasing",kn=["autolink","link","image","label"],os={transforms:[ps],enter:{literalAutolink:as,literalAutolinkEmail:bn,literalAutolinkHttp:bn,literalAutolinkWww:bn},exit:{literalAutolink:hs,literalAutolinkEmail:fs,literalAutolinkHttp:ss,literalAutolinkWww:cs}},us={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xn,notInConstruct:kn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xn,notInConstruct:kn},{character:":",before:"[ps]",after:"\\/",inConstruct:xn,notInConstruct:kn}]};function as(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bn(e){this.config.enter.autolinkProtocol.call(this,e)}function ss(e){this.config.exit.autolinkProtocol.call(this,e)}function cs(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.url="http://"+this.sliceSerialize(e)}function fs(e){this.config.exit.autolinkEmail.call(this,e)}function hs(e){this.exit(e)}function ps(e){is(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ms],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,gs]],{ignore:["link","linkReference"]})}function ms(e,n,t,r,i){let l="";if(!Nr(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!ds(t)))return!1;const o=ys(t+r);if(!o[0])return!1;const u={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function gs(e,n,t,r){return!Nr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ds(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function ys(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Je(e,"(");let l=Je(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function Nr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ce(t)||Ge(t))&&(!n||t!==47)}function Rr(e){return e.label||!e.identifier?e.label||"":nr(e.identifier)}function xs(e,n,t){const r=n.indexStack,i=e.children||[],l=n.createTracker(t),o=[];let u=-1;for(r.push(-1);++u<i.length;){const s=i[u];r[r.length-1]=u,o.push(l.move(n.handle(s,e,n,{before:`
`,after:`
`,...l.current()}))),s.type!=="list"&&(n.bulletLastUsed=void 0),u<i.length-1&&o.push(l.move(ks(s,i[u+1],e,n)))}return r.pop(),o.join("")}function ks(e,n,t,r){let i=r.join.length;for(;i--;){const l=r.join[i](e,n,t,r);if(l===!0||l===1)break;if(typeof l=="number")return`
`.repeat(1+l);if(l===!1)return`

<!---->

`}return`

`}const bs=/\r?\n|\r/g;function ws(e,n){const t=[];let r=0,i=0,l;for(;l=bs.exec(e);)o(e.slice(r,l.index)),t.push(l[0]),r=l.index+l[0].length,i++;return o(e.slice(r)),t.join("");function o(u){t.push(n(u,i,!u))}}function vr(e){if(!e._compiled){const n=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ss(e,n){return Tt(e,n.inConstruct,!0)&&!Tt(e,n.notInConstruct,!1)}function Tt(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Br(e,n,t){const r=(t.before||"")+(n||"")+(t.after||""),i=[],l=[],o={};let u=-1;for(;++u<e.unsafe.length;){const f=e.unsafe[u];if(!Ss(e.stack,f))continue;const a=vr(f);let g;for(;g=a.exec(r);){const h="before"in f||!!f.atBreak,y="after"in f,w=g.index+(h?g[1].length:0);i.includes(w)?(o[w].before&&!h&&(o[w].before=!1),o[w].after&&!y&&(o[w].after=!1)):(i.push(w),o[w]={before:h,after:y})}}i.sort(Cs);let s=t.before?t.before.length:0;const c=r.length-(t.after?t.after.length:0);for(u=-1;++u<i.length;){const f=i[u];f<s||f>=c||f+1<c&&i[u+1]===f+1&&o[f].after&&!o[f+1].before&&!o[f+1].after||i[u-1]===f-1&&o[f].before&&!o[f-1].before&&!o[f-1].after||(s!==f&&l.push(Nt(r.slice(s,f),"\\")),s=f,/[!-/:-@[-`{-~]/.test(r.charAt(f))&&(!t.encode||!t.encode.includes(r.charAt(f)))?l.push("\\"):(l.push("&#x"+r.charCodeAt(f).toString(16).toUpperCase()+";"),s++))}return l.push(Nt(r.slice(s,c),t.after)),l.join("")}function Cs(e,n){return e-n}function Nt(e,n){const t=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],l=e+n;let o=-1,u=0,s;for(;s=t.exec(l);)r.push(s.index);for(;++o<r.length;)u!==r[o]&&i.push(e.slice(u,r[o])),i.push("\\"),u=r[o];return i.push(e.slice(u)),i.join("")}function tn(e){const n=e||{},t=n.now||{};let r=n.lineShift||0,i=t.line||1,l=t.column||1;return{move:s,current:o,shift:u};function o(){return{now:{line:i,column:l},lineShift:r}}function u(c){r+=c}function s(c){const f=c||"",a=f.split(/\r?\n|\r/g),g=a[a.length-1];return i+=a.length-1,l=a.length===1?l+g.length:1+g.length+r,f}}Mr.peek=Ns;function As(){return{enter:{gfmFootnoteDefinition:Fs,gfmFootnoteDefinitionLabelString:Ds,gfmFootnoteCall:Ps,gfmFootnoteCallString:zs},exit:{gfmFootnoteDefinition:Os,gfmFootnoteDefinitionLabelString:Is,gfmFootnoteCall:Ts,gfmFootnoteCallString:Ls}}}function Es(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Rs,footnoteReference:Mr}}}function Fs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ds(){this.buffer()}function Is(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=ce(this.sliceSerialize(e)).toLowerCase()}function Os(e){this.exit(e)}function Ps(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function zs(){this.buffer()}function Ls(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.label=n,t.identifier=ce(this.sliceSerialize(e)).toLowerCase()}function Ts(e){this.exit(e)}function Mr(e,n,t,r){const i=tn(r);let l=i.move("[^");const o=t.enter("footnoteReference"),u=t.enter("reference");return l+=i.move(Br(t,Rr(e),{...i.current(),before:l,after:"]"})),u(),o(),l+=i.move("]"),l}function Ns(){return"["}function Rs(e,n,t,r){const i=tn(r);let l=i.move("[^");const o=t.enter("footnoteDefinition"),u=t.enter("label");return l+=i.move(Br(t,Rr(e),{...i.current(),before:l,after:"]"})),u(),l+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),l+=i.move(ws(xs(e,t,i.current()),vs)),o(),l}function vs(e,n,t){return n===0?e:(t?"":"    ")+e}function _r(e,n,t){const r=n.indexStack,i=e.children||[],l=[];let o=-1,u=t.before;r.push(-1);let s=n.createTracker(t);for(;++o<i.length;){const c=i[o];let f;if(r[r.length-1]=o,o+1<i.length){let a=n.handle.handlers[i[o+1].type];a&&a.peek&&(a=a.peek),f=a?a(i[o+1],e,n,{before:"",after:"",...s.current()}).charAt(0):""}else f=t.after;l.length>0&&(u==="\r"||u===`
`)&&c.type==="html"&&(l[l.length-1]=l[l.length-1].replace(/(\r?\n|\r)$/," "),u=" ",s=n.createTracker(t),s.move(l.join(""))),l.push(s.move(n.handle(c,e,n,{...s.current(),before:u,after:f}))),u=l[l.length-1].slice(-1)}return r.pop(),l.join("")}const Bs=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];jr.peek=Us;const Ms={canContainEols:["delete"],enter:{strikethrough:js},exit:{strikethrough:Hs}},_s={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Bs}],handlers:{delete:jr}};function js(e){this.enter({type:"delete",children:[]},e)}function Hs(e){this.exit(e)}function jr(e,n,t,r){const i=tn(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=_r(e,t,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Us(){return"~"}Hr.peek=qs;function Hr(e,n,t){let r=e.value||"",i="`",l=-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+" ");++l<t.unsafe.length;){const o=t.unsafe[l],u=vr(o);let s;if(o.atBreak)for(;s=u.exec(r);){let c=s.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(s.index+1)}}return i+r+i}function qs(){return"`"}function $s(e){return e.length}function Vs(e,n){const t=n,r=(t.align||[]).concat(),i=t.stringLength||$s,l=[],o=[],u=[],s=[];let c=0,f=-1;for(;++f<e.length;){const w=[],S=[];let d=-1;for(e[f].length>c&&(c=e[f].length);++d<e[f].length;){const F=Ws(e[f][d]);if(t.alignDelimiters!==!1){const C=i(F);S[d]=C,(s[d]===void 0||C>s[d])&&(s[d]=C)}w.push(F)}o[f]=w,u[f]=S}let a=-1;if(typeof r=="object"&&"length"in r)for(;++a<c;)l[a]=Rt(r[a]);else{const w=Rt(r);for(;++a<c;)l[a]=w}a=-1;const g=[],h=[];for(;++a<c;){const w=l[a];let S="",d="";w===99?(S=":",d=":"):w===108?S=":":w===114&&(d=":");let F=t.alignDelimiters===!1?1:Math.max(1,s[a]-S.length-d.length);const C=S+"-".repeat(F)+d;t.alignDelimiters!==!1&&(F=S.length+F+d.length,F>s[a]&&(s[a]=F),h[a]=F),g[a]=C}o.splice(1,0,g),u.splice(1,0,h),f=-1;const y=[];for(;++f<o.length;){const w=o[f],S=u[f];a=-1;const d=[];for(;++a<c;){const F=w[a]||"";let C="",z="";if(t.alignDelimiters!==!1){const L=s[a]-(S[a]||0),x=l[a];x===114?C=" ".repeat(L):x===99?L%2?(C=" ".repeat(L/2+.5),z=" ".repeat(L/2-.5)):(C=" ".repeat(L/2),z=C):z=" ".repeat(L)}t.delimiterStart!==!1&&!a&&d.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&F==="")&&(t.delimiterStart!==!1||a)&&d.push(" "),t.alignDelimiters!==!1&&d.push(C),d.push(F),t.alignDelimiters!==!1&&d.push(z),t.padding!==!1&&d.push(" "),(t.delimiterEnd!==!1||a!==c-1)&&d.push("|")}y.push(t.delimiterEnd===!1?d.join("").replace(/ +$/,""):d.join(""))}return y.join(`
`)}function Ws(e){return e==null?"":String(e)}function Rt(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const Qs={enter:{table:Ys,tableData:vt,tableHeader:vt,tableRow:Ks},exit:{codeText:Xs,table:Zs,tableData:wn,tableHeader:wn,tableRow:wn}};function Ys(e){const n=e._align;this.enter({type:"table",align:n.map(t=>t==="none"?null:t),children:[]},e),this.setData("inTable",!0)}function Zs(e){this.exit(e),this.setData("inTable")}function Ks(e){this.enter({type:"tableRow",children:[]},e)}function wn(e){this.exit(e)}function vt(e){this.enter({type:"tableCell",children:[]},e)}function Xs(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,Js));const t=this.stack[this.stack.length-1];t.value=n,this.exit(e)}function Js(e,n){return n==="|"?n:e}function Gs(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";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:{table:o,tableRow:u,tableCell:s,inlineCode:g}};function o(h,y,w,S){return c(f(h,w,S),h.align)}function u(h,y,w,S){const d=a(h,w,S),F=c([d]);return F.slice(0,F.indexOf(`
`))}function s(h,y,w,S){const d=w.enter("tableCell"),F=w.enter("phrasing"),C=_r(h,w,{...S,before:l,after:l});return F(),d(),C}function c(h,y){return Vs(h,{align:y,alignDelimiters:r,padding:t,stringLength:i})}function f(h,y,w){const S=h.children;let d=-1;const F=[],C=y.enter("table");for(;++d<S.length;)F[d]=a(S[d],y,w);return C(),F}function a(h,y,w){const S=h.children;let d=-1;const F=[],C=y.enter("tableRow");for(;++d<S.length;)F[d]=s(S[d],h,y,w);return C(),F}function g(h,y,w){let S=Hr(h,y,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function ec(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function nc(e){const n=e.options.listItemIndent||"tab";if(n===1||n==="1")return"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function tc(e,n,t,r){const i=nc(t);let l=t.bulletCurrent||ec(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=t.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const s=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,u.current()),f);return s(),c;function f(a,g,h){return g?(h?"":" ".repeat(o))+a:(h?l:l+" ".repeat(o-l.length))+a}}const rc={exit:{taskListCheckValueChecked:Bt,taskListCheckValueUnchecked:Bt,paragraph:lc}},ic={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:oc}};function Bt(e){const n=this.stack[this.stack.length-2];n.checked=e.type==="taskListCheckValueChecked"}function lc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1],r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const u=i[l];if(u.type==="paragraph"){o=u;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function oc(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=tn(r);l&&u.move(o);let s=tc(e,n,t,{...r,...u.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),s;function c(f){return f+o}}function uc(){return[os,As(),Ms,Qs,rc]}function ac(e){return{extensions:[us,Es(),_s,Gs(e),ic]}}function sc(e={}){const n=this.data();t("micromarkExtensions",ns(e)),t("fromMarkdownExtensions",uc()),t("toMarkdownExtensions",ac(e));function t(r,i){(n[r]?n[r]:n[r]=[]).push(i)}}class gc{static deepClone(n){return JSON.parse(JSON.stringify(n))}static enumToArray(n){return Object.keys(n).map(t=>({id:n[t],name:t}))}static partnerShopLink(n){var r;if(!n)return"";const t=(r=Gr.getPartnerShopInformation())==null?void 0:r.subdomain;return n.replace("partnersite",t??"www")}static redirectFromPPS(){const n=document.location.href;document.location.href=`https://www${n.substr(n.indexOf("."))}`}static getEnvironmentName(){var i;const t=((i=/(ringana+(-[A-Za-z0-9]+)?)/.exec(on.api.baseurl))==null?void 0:i[0])??"ringana-development",r=t.substring(t.indexOf("-")+1);return r==="ringana"?"production":r}static openLink(n,t="_self"){const r=window.open(n,t);r&&r.focus()}static getQueryParam(n){const t=new RegExp(`[?&]${n}=([^&#]*)`).exec(window.location.href);return t==null?null:decodeURI(t[1])||0}static getLanguageParameter(){const n=this.getQueryParam("lang");return n!==null?`lang=${n}&`:""}static isIndexInPaginationRange(n,t){const r=n>=t.start,i=n<t.start+t.perPage;return!(r&&i)}static imageUrl(n,t){let r="?";return typeof t=="number"?r+=`width=${t}`:r+=`height=${t.height}&width=${t.width}`,`${n}${r}`}static removeDuplicatesFromArray(n){return Array.from(new Set(n)).filter(t=>t)}static isUrl(n){return/^(http(s)?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(n)}static getAIReplyId(n){const r=/@{{(.*?)}}/g.exec(n);return(r==null?void 0:r[1])??""}static convertMarkdownToHTML(n){if(n.length===0)return n;let t="";try{t=di().use(So).use(sc).use(fu).use(Ca).processSync(n)}catch(r){Xr.handleError(r,{logToConsole:!0})}return String(t)}static isFreshChatAvailable(){const n=new Date,t=(n.getUTCHours()+2)%24,r=n.getUTCDay();return r>=1&&r<=5&&t>=9&&t<22}static async shareUrl(n,t){try{await navigator.share({url:`https://${n}`})}catch{await navigator.clipboard.writeText(n),await Jr.fire({icon:"success",text:t,title:""})}}static getDifferencesOfSameObjects(n,t){let r=0;for(const[i,l]of Object.entries(n)){if(typeof l=="object"&&typeof t[i]=="object"){r+=this.getDifferencesOfSameObjects(l,t[i]);continue}l!==t[i]&&r++}return r}static getRegionFromCountryIso(n){for(const t of Object.keys(on.regions))if(on.regions[t].includes(n))return t;return"eu"}}function dc(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _e(e){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_e(e)}function cc(e,n){if(_e(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function fc(e){var n=cc(e,"string");return _e(n)=="symbol"?n:n+""}function hc(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fc(r.key),r)}}function yc(e,n,t){return n&&hc(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}class xc{static getRedirect(){const n=window.sessionStorage.getItem("rin-redirect");return n||null}static removeRedirect(){window.sessionStorage.removeItem("rin-redirect")}static setRedirect(){window.sessionStorage.setItem("rin-redirect",window.location.href)}static getChristmasCalendarSeen(){const n=window.sessionStorage.getItem("rin-christmas-calendar-seen");return n?+n:0}static removeChristmasCalendarSeen(){window.sessionStorage.removeItem("rin-christmas-calendar-seen")}static setChristmasCalendarSeen(){window.sessionStorage.setItem("rin-christmas-calendar-seen",Date.now().toString(10))}static setLimitingActive(){window.sessionStorage.setItem("rin-limiting-active","true")}static getLanguagesList(){const n=sessionStorage.getItem("rin-languages-list");if(n)try{return JSON.parse(n)}catch{return null}return null}static setLanguagesList(n){sessionStorage.setItem("rin-languages-list",JSON.stringify(n))}static getCurrencyList(){const n=sessionStorage.getItem("rin-currency-list");return n?JSON.parse(n):null}static setCurrencyList(n){sessionStorage.setItem("rin-currency-list",JSON.stringify(n))}}export{gc as A,xc as S,yc as _,dc as a,_e as b,fc as t};
