@sps-woodland/rich-text-editor 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,157 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R1=require("@spscommerce/utils"),ce=require("react"),cr=require("@sps-woodland/core"),At=require("@spscommerce/ds-react");function jl(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const $=jl(ce);function dn(e,t){var{includeImageAlt:n=!0}=t||{};return yo(e,n)}function yo(e,t){return e&&typeof e=="object"&&(e.value||(t?e.alt:"")||"children"in e&&si(e.children,t)||Array.isArray(e)&&si(e,t))||""}function si(e,t){for(var n=[],r=-1;++r<e.length;)n[r]=yo(e[r],t);return n.join("")}function ot(e,t,n,r){const i=e.length;let s=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),[].splice.apply(e,o);else for(n&&[].splice.apply(e,[t,n]);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),[].splice.apply(e,o),s+=1e4,t+=1e4}function He(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}const oi={}.hasOwnProperty;function Ul(e){const t={};let n=-1;for(;++n<e.length;)Bl(t,e[n]);return t}function Bl(e,t){let n;for(n in t){const i=(oi.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;for(o in s){oi.call(i,o)||(i[o]=[]);const a=s[o];Hl(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Hl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ot(e,0,0,r)}const Fl=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\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\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\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]/,rt=yt(/[A-Za-z]/),fr=yt(/\d/),vl=yt(/[\dA-Fa-f]/),Pe=yt(/[\dA-Za-z]/),Gl=yt(/[!-/:-@[-`{-~]/),ai=yt(/[#-'*+\--9=?A-Z^-~]/);function hr(e){return e!==null&&(e<32||e===127)}function Fe(e){return e!==null&&(e<0||e===32)}function U(e){return e!==null&&e<-2}function he(e){return e===-2||e===-1||e===32}const Yl=yt(/\s/),Ql=yt(Fl);function yt(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function ee(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return he(u)?(e.enter(n),a(u)):t(u)}function a(u){return he(u)&&s++<i?(e.consume(u),a):(e.exit(n),t(u))}}const Kl={tokenize:Wl};function Wl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ee(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return U(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const Zl={tokenize:Vl},li={tokenize:$l};function Vl(e){const t=this,n=[];let r=0,i,s,o;return a;function a(x){if(r<n.length){const H=n[r];return t.containerState=H[1],e.attempt(H[0].continuation,u,c)(x)}return c(x)}function u(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const H=t.events.length;let v=H,C;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){C=t.events[v][1].end;break}I(r);let j=H;for(;j<t.events.length;)t.events[j][1].end=Object.assign({},C),j++;return ot(t.events,v+1,0,t.events.slice(H)),t.events.length=j,c(x)}return a(x)}function c(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return M(x);t.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(li,f,h)(x)}function f(x){return i&&P(),I(r),p(x)}function h(x){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,M(x)}function p(x){return t.containerState={},e.attempt(li,E,M)(x)}function E(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function M(x){if(x===null){i&&P(),I(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),S(x)}function S(x){if(x===null){O(e.exit("chunkFlow"),!0),I(0),e.consume(x);return}return U(x)?(e.consume(x),O(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),S)}function O(x,H){const v=t.sliceStream(x);if(H&&v.push(null),x.previous=s,s&&(s.next=x),s=x,i.defineSkip(x.start),i.write(v),t.parser.lazy[x.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const j=t.events.length;let K=j,V,pe;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(V){pe=t.events[K][1].end;break}V=!0}for(I(r),C=j;C<t.events.length;)t.events[C][1].end=Object.assign({},pe),C++;ot(t.events,K+1,0,t.events.slice(j)),t.events.length=C}}function I(x){let H=n.length;for(;H-- >x;){const v=n[H];t.containerState=v[1],v[0].exit.call(t,e)}n.length=x}function P(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function $l(e,t,n){return ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ui(e){if(e===null||Fe(e)||Yl(e))return 1;if(Ql(e))return 2}function Sr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Tr={name:"attention",tokenize:Jl,resolveAll:ql};function ql(e,t){let n=-1,r,i,s,o,a,u,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);ci(h,-u),ci(p,u),o={type:u>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=He(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=He(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",s,t]]),c=He(c,Sr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=He(c,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=He(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ot(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Jl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ui(r);let s;return o;function o(u){return e.enter("attentionSequence"),s=u,a(u)}function a(u){if(u===s)return e.consume(u),a;const c=e.exit("attentionSequence"),f=ui(u),h=!f||f===2&&i||n.includes(u),p=!i||i===2&&f||n.includes(r);return c._open=Boolean(s===42?h:h&&(i||!p)),c._close=Boolean(s===42?p:p&&(f||!h)),t(u)}}function ci(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Xl={name:"autolink",tokenize:eu};function eu(e,t,n){let r=1;return i;function i(M){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(M),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(M){return rt(M)?(e.consume(M),o):ai(M)?c(M):n(M)}function o(M){return M===43||M===45||M===46||Pe(M)?a(M):c(M)}function a(M){return M===58?(e.consume(M),u):(M===43||M===45||M===46||Pe(M))&&r++<32?(e.consume(M),a):c(M)}function u(M){return M===62?(e.exit("autolinkProtocol"),E(M)):M===null||M===32||M===60||hr(M)?n(M):(e.consume(M),u)}function c(M){return M===64?(e.consume(M),r=0,f):ai(M)?(e.consume(M),c):n(M)}function f(M){return Pe(M)?h(M):n(M)}function h(M){return M===46?(e.consume(M),r=0,f):M===62?(e.exit("autolinkProtocol").type="autolinkEmail",E(M)):p(M)}function p(M){return(M===45||Pe(M))&&r++<63?(e.consume(M),M===45?p:h):n(M)}function E(M){return e.enter("autolinkMarker"),e.consume(M),e.exit("autolinkMarker"),e.exit("autolink"),t}}const gn={tokenize:tu,partial:!0};function tu(e,t,n){return ee(e,r,"linePrefix");function r(i){return i===null||U(i)?t(i):n(i)}}const Oo={name:"blockQuote",tokenize:nu,continuation:{tokenize:ru},exit:iu};function nu(e,t,n){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return he(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function ru(e,t,n){return ee(e,e.attempt(Oo,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function iu(e){e.exit("blockQuote")}const Lo={name:"characterEscape",tokenize:su};function su(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Gl(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const fi=document.createElement("i");function _r(e){const t="&"+e+";";fi.innerHTML=t;const n=fi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const xo={name:"characterReference",tokenize:ou};function ou(e,t,n){const r=this;let i=0,s,o;return a;function a(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),u}function u(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,o=Pe,f(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=vl,f):(e.enter("characterReferenceValue"),s=7,o=fr,f(h))}function f(h){let p;return h===59&&i?(p=e.exit("characterReferenceValue"),o===Pe&&!_r(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):o(h)&&i++<s?(e.consume(h),f):n(h)}}const hi={name:"codeFenced",tokenize:au,concrete:!0};function au(e,t,n){const r=this,i={tokenize:v,partial:!0},s={tokenize:H,partial:!0},o=this.events[this.events.length-1],a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let u=0,c;return f;function f(C){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c=C,h(C)}function h(C){return C===c?(e.consume(C),u++,h):(e.exit("codeFencedFenceSequence"),u<3?n(C):ee(e,p,"whitespace")(C))}function p(C){return C===null||U(C)?O(C):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(C))}function E(C){return C===null||Fe(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ee(e,M,"whitespace")(C)):C===96&&C===c?n(C):(e.consume(C),E)}function M(C){return C===null||U(C)?O(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(C))}function S(C){return C===null||U(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),O(C)):C===96&&C===c?n(C):(e.consume(C),S)}function O(C){return e.exit("codeFencedFence"),r.interrupt?t(C):I(C)}function I(C){return C===null?x(C):U(C)?e.attempt(s,e.attempt(i,x,a?ee(e,I,"linePrefix",a+1):I),x)(C):(e.enter("codeFlowValue"),P(C))}function P(C){return C===null||U(C)?(e.exit("codeFlowValue"),I(C)):(e.consume(C),P)}function x(C){return e.exit("codeFenced"),t(C)}function H(C,j,K){const V=this;return pe;function pe(z){return C.enter("lineEnding"),C.consume(z),C.exit("lineEnding"),b}function b(z){return V.parser.lazy[V.now().line]?K(z):j(z)}}function v(C,j,K){let V=0;return ee(C,pe,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function pe(G){return C.enter("codeFencedFence"),C.enter("codeFencedFenceSequence"),b(G)}function b(G){return G===c?(C.consume(G),V++,b):V<u?K(G):(C.exit("codeFencedFenceSequence"),ee(C,z,"whitespace")(G))}function z(G){return G===null||U(G)?(C.exit("codeFencedFence"),j(G)):K(G)}}}const bn={name:"codeIndented",tokenize:uu},lu={tokenize:cu,partial:!0};function uu(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ee(e,s,"linePrefix",4+1)(c)}function s(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):n(c)}function o(c){return c===null?u(c):U(c)?e.attempt(lu,o,u)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||U(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),a)}function u(c){return e.exit("codeIndented"),t(c)}}function cu(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ee(e,s,"linePrefix",4+1)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):U(o)?i(o):n(o)}}const fu={name:"codeText",tokenize:mu,resolve:hu,previous:Tu};function hu(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Tu(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mu(e,t,n){let r=0,i,s;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),a(h)}function a(h){return h===96?(e.consume(h),r++,a):(e.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===96?(s=e.enter("codeTextSequence"),i=0,f(h)):h===32?(e.enter("space"),e.consume(h),e.exit("space"),u):U(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||U(h)?(e.exit("codeTextData"),u(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}function wo(e){const t={};let n=-1,r,i,s,o,a,u,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,du(e,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--&&(o=e[s],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},e[i][1].start),a=e.slice(i,n),a.unshift(r),ot(e,i,n-i+1,a))}}return!c}function du(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const s=[],o=n._tokenizer||r.parser[n.contentType](n.start),a=o.events,u=[],c={};let f,h,p=-1,E=n,M=0,S=0;const O=[S];for(;E;){for(;e[++i][1]!==E;);s.push(i),E._tokenizer||(f=r.sliceStream(E),E.next||f.push(null),h&&o.defineSkip(E.start),E._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),E._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=E,E=E.next}for(E=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(S=p+1,O.push(S),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(o.events=[],E?(E._tokenizer=void 0,E.previous=void 0):O.pop(),p=O.length;p--;){const I=a.slice(O[p],O[p+1]),P=s.pop();u.unshift([P,P+I.length-1]),ot(e,P,2,I)}for(p=-1;++p<u.length;)c[M+u[p][0]]=M+u[p][1],M+=u[p][1]-u[p][0]-1;return c}const gu={tokenize:Au,resolve:pu},Eu={tokenize:Iu,partial:!0};function pu(e){return wo(e),e}function Au(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):U(a)?e.check(Eu,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Iu(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ee(e,s,"linePrefix")}function s(o){if(o===null||U(o))return n(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function bo(e,t,n,r,i,s,o,a,u){const c=u||Number.POSITIVE_INFINITY;let f=0;return h;function h(I){return I===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(I),e.exit(s),p):I===null||I===41||hr(I)?n(I):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(I))}function p(I){return I===62?(e.enter(s),e.consume(I),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),E(I))}function E(I){return I===62?(e.exit("chunkString"),e.exit(a),p(I)):I===null||I===60||U(I)?n(I):(e.consume(I),I===92?M:E)}function M(I){return I===60||I===62||I===92?(e.consume(I),E):E(I)}function S(I){return I===40?++f>c?n(I):(e.consume(I),S):I===41?f--?(e.consume(I),S):(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(I)):I===null||Fe(I)?f?n(I):(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(I)):hr(I)?n(I):(e.consume(I),I===92?O:S)}function O(I){return I===40||I===41||I===92?(e.consume(I),S):S(I)}}function Ro(e,t,n,r,i,s){const o=this;let a=0,u;return c;function c(E){return e.enter(r),e.enter(i),e.consume(E),e.exit(i),e.enter(s),f}function f(E){return E===null||E===91||E===93&&!u||E===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs||a>999?n(E):E===93?(e.exit(s),e.enter(i),e.consume(E),e.exit(i),e.exit(r),t):U(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===null||E===91||E===93||U(E)||a++>999?(e.exit("chunkString"),f(E)):(e.consume(E),u=u||!he(E),E===92?p:h)}function p(E){return E===91||E===92||E===93?(e.consume(E),a++,h):h(E)}}function ko(e,t,n,r,i,s){let o;return a;function a(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,u}function u(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(s),c(p))}function c(p){return p===o?(e.exit(s),u(o)):p===null?n(p):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ee(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||U(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:f)}function h(p){return p===o||p===92?(e.consume(p),f):f(p)}}function p1(e,t){let n;return r;function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):he(i)?ee(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Xt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Mu={name:"definition",tokenize:Nu},Cu={tokenize:Su,partial:!0};function Nu(e,t,n){const r=this;let i;return s;function s(u){return e.enter("definition"),Ro.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(u)}function o(u){return i=Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),p1(e,bo(e,e.attempt(Cu,ee(e,a,"whitespace"),ee(e,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(u)}function a(u){return u===null||U(u)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(u)):n(u)}}function Su(e,t,n){return r;function r(o){return Fe(o)?p1(e,i)(o):n(o)}function i(o){return o===34||o===39||o===40?ko(e,ee(e,s,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o):n(o)}function s(o){return o===null||U(o)?t(o):n(o)}}const _u={name:"hardBreakEscape",tokenize:Du};function Du(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(s),i}function i(s){return U(s)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(s)):n(s)}}const yu={name:"headingAtx",tokenize:Lu,resolve:Ou};function Ou(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ot(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function Lu(e,t,n){const r=this;let i=0;return s;function s(f){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&i++<6?(e.consume(f),o):f===null||Fe(f)?(e.exit("atxHeadingSequence"),r.interrupt?t(f):a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||U(f)?(e.exit("atxHeading"),t(f)):he(f)?ee(e,a,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function c(f){return f===null||f===35||Fe(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),c)}}const xu=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ti=["pre","script","style","textarea"],wu={name:"htmlFlow",tokenize:ku,resolveTo:Ru,concrete:!0},bu={tokenize:Pu,partial:!0};function Ru(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ku(e,t,n){const r=this;let i,s,o,a,u;return c;function c(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),f}function f(d){return d===33?(e.consume(d),h):d===47?(e.consume(d),M):d===63?(e.consume(d),i=3,r.interrupt?t:Le):rt(d)?(e.consume(d),o=String.fromCharCode(d),s=!0,S):n(d)}function h(d){return d===45?(e.consume(d),i=2,p):d===91?(e.consume(d),i=5,o="CDATA[",a=0,E):rt(d)?(e.consume(d),i=4,r.interrupt?t:Le):n(d)}function p(d){return d===45?(e.consume(d),r.interrupt?t:Le):n(d)}function E(d){return d===o.charCodeAt(a++)?(e.consume(d),a===o.length?r.interrupt?t:b:E):n(d)}function M(d){return rt(d)?(e.consume(d),o=String.fromCharCode(d),S):n(d)}function S(d){return d===null||d===47||d===62||Fe(d)?d!==47&&s&&Ti.includes(o.toLowerCase())?(i=1,r.interrupt?t(d):b(d)):xu.includes(o.toLowerCase())?(i=6,d===47?(e.consume(d),O):r.interrupt?t(d):b(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):s?P(d):I(d)):d===45||Pe(d)?(e.consume(d),o+=String.fromCharCode(d),S):n(d)}function O(d){return d===62?(e.consume(d),r.interrupt?t:b):n(d)}function I(d){return he(d)?(e.consume(d),I):V(d)}function P(d){return d===47?(e.consume(d),V):d===58||d===95||rt(d)?(e.consume(d),x):he(d)?(e.consume(d),P):V(d)}function x(d){return d===45||d===46||d===58||d===95||Pe(d)?(e.consume(d),x):H(d)}function H(d){return d===61?(e.consume(d),v):he(d)?(e.consume(d),H):P(d)}function v(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),u=d,C):he(d)?(e.consume(d),v):(u=null,j(d))}function C(d){return d===null||U(d)?n(d):d===u?(e.consume(d),K):(e.consume(d),C)}function j(d){return d===null||d===34||d===39||d===60||d===61||d===62||d===96||Fe(d)?H(d):(e.consume(d),j)}function K(d){return d===47||d===62||he(d)?P(d):n(d)}function V(d){return d===62?(e.consume(d),pe):n(d)}function pe(d){return he(d)?(e.consume(d),pe):d===null||U(d)?b(d):n(d)}function b(d){return d===45&&i===2?(e.consume(d),ze):d===60&&i===1?(e.consume(d),Je):d===62&&i===4?(e.consume(d),me):d===63&&i===3?(e.consume(d),Le):d===93&&i===5?(e.consume(d),Ae):U(d)&&(i===6||i===7)?e.check(bu,me,z)(d):d===null||U(d)?z(d):(e.consume(d),b)}function z(d){return e.exit("htmlFlowData"),G(d)}function G(d){return d===null?g(d):U(d)?e.attempt({tokenize:_e,partial:!0},G,g)(d):(e.enter("htmlFlowData"),b(d))}function _e(d,Ht,i1){return Ft;function Ft(Xe){return d.enter("lineEnding"),d.consume(Xe),d.exit("lineEnding"),de}function de(Xe){return r.parser.lazy[r.now().line]?i1(Xe):Ht(Xe)}}function ze(d){return d===45?(e.consume(d),Le):b(d)}function Je(d){return d===47?(e.consume(d),o="",Qe):b(d)}function Qe(d){return d===62&&Ti.includes(o.toLowerCase())?(e.consume(d),me):rt(d)&&o.length<8?(e.consume(d),o+=String.fromCharCode(d),Qe):b(d)}function Ae(d){return d===93?(e.consume(d),Le):b(d)}function Le(d){return d===62?(e.consume(d),me):d===45&&i===2?(e.consume(d),Le):b(d)}function me(d){return d===null||U(d)?(e.exit("htmlFlowData"),g(d)):(e.consume(d),me)}function g(d){return e.exit("htmlFlow"),t(d)}}function Pu(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(gn,t,n)}}const zu={name:"htmlText",tokenize:ju};function ju(e,t,n){const r=this;let i,s,o,a;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),f):g===47?(e.consume(g),j):g===63?(e.consume(g),v):rt(g)?(e.consume(g),pe):n(g)}function f(g){return g===45?(e.consume(g),h):g===91?(e.consume(g),s="CDATA[",o=0,O):rt(g)?(e.consume(g),H):n(g)}function h(g){return g===45?(e.consume(g),p):n(g)}function p(g){return g===null||g===62?n(g):g===45?(e.consume(g),E):M(g)}function E(g){return g===null||g===62?n(g):M(g)}function M(g){return g===null?n(g):g===45?(e.consume(g),S):U(g)?(a=M,Ae(g)):(e.consume(g),M)}function S(g){return g===45?(e.consume(g),me):M(g)}function O(g){return g===s.charCodeAt(o++)?(e.consume(g),o===s.length?I:O):n(g)}function I(g){return g===null?n(g):g===93?(e.consume(g),P):U(g)?(a=I,Ae(g)):(e.consume(g),I)}function P(g){return g===93?(e.consume(g),x):I(g)}function x(g){return g===62?me(g):g===93?(e.consume(g),x):I(g)}function H(g){return g===null||g===62?me(g):U(g)?(a=H,Ae(g)):(e.consume(g),H)}function v(g){return g===null?n(g):g===63?(e.consume(g),C):U(g)?(a=v,Ae(g)):(e.consume(g),v)}function C(g){return g===62?me(g):v(g)}function j(g){return rt(g)?(e.consume(g),K):n(g)}function K(g){return g===45||Pe(g)?(e.consume(g),K):V(g)}function V(g){return U(g)?(a=V,Ae(g)):he(g)?(e.consume(g),V):me(g)}function pe(g){return g===45||Pe(g)?(e.consume(g),pe):g===47||g===62||Fe(g)?b(g):n(g)}function b(g){return g===47?(e.consume(g),me):g===58||g===95||rt(g)?(e.consume(g),z):U(g)?(a=b,Ae(g)):he(g)?(e.consume(g),b):me(g)}function z(g){return g===45||g===46||g===58||g===95||Pe(g)?(e.consume(g),z):G(g)}function G(g){return g===61?(e.consume(g),_e):U(g)?(a=G,Ae(g)):he(g)?(e.consume(g),G):b(g)}function _e(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,ze):U(g)?(a=_e,Ae(g)):he(g)?(e.consume(g),_e):(e.consume(g),i=void 0,Qe)}function ze(g){return g===i?(e.consume(g),Je):g===null?n(g):U(g)?(a=ze,Ae(g)):(e.consume(g),ze)}function Je(g){return g===62||g===47||Fe(g)?b(g):n(g)}function Qe(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===62||Fe(g)?b(g):(e.consume(g),Qe)}function Ae(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ee(e,Le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Le(g){return e.enter("htmlTextData"),a(g)}function me(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}}const Dr={name:"labelEnd",tokenize:Gu,resolveTo:vu,resolveAll:Fu},Uu={tokenize:Yu},Bu={tokenize:Qu},Hu={tokenize:Ku};function Fu(e){let t=-1,n;for(;++t<e.length;)n=e[t][1],(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++);return e}function vu(e,t){let n=e.length,r=0,i,s,o,a;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const u={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[o][1].end)},f={type:"labelText",start:Object.assign({},e[s+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",u,t],["enter",c,t]],a=He(a,e.slice(s+1,s+r+3)),a=He(a,[["enter",f,t]]),a=He(a,Sr(t.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),t)),a=He(a,[["exit",f,t],e[o-2],e[o-1],["exit",c,t]]),a=He(a,e.slice(o+1)),a=He(a,[["exit",u,t]]),ot(e,s,e.length,a),e}function Gu(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(f){return s?s._inactive?c(f):(o=r.parser.defined.includes(Xt(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):n(f)}function u(f){return f===40?e.attempt(Uu,t,o?t:c)(f):f===91?e.attempt(Bu,t,o?e.attempt(Hu,t,c):c)(f):o?t(f):c(f)}function c(f){return s._balanced=!0,n(f)}}function Yu(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),p1(e,i)}function i(u){return u===41?a(u):bo(e,s,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function s(u){return Fe(u)?p1(e,o)(u):a(u)}function o(u){return u===34||u===39||u===40?ko(e,p1(e,a),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):a(u)}function a(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function Qu(e,t,n){const r=this;return i;function i(o){return Ro.call(r,e,s,n,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(Xt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}}function Ku(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Wu={name:"labelStartImage",tokenize:Zu,resolveAll:Dr.resolveAll};function Zu(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Vu={name:"labelStartLink",tokenize:$u,resolveAll:Dr.resolveAll};function $u(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Rn={name:"lineEnding",tokenize:qu};function qu(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ee(e,t,"linePrefix")}}const en={name:"thematicBreak",tokenize:Ju};function Ju(e,t,n){let r=0,i;return s;function s(u){return e.enter("thematicBreak"),i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):he(u)?ee(e,o,"whitespace")(u):r<3||u!==null&&!U(u)?n(u):(e.exit("thematicBreak"),t(u))}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),o(u))}}const xe={name:"list",tokenize:tc,continuation:{tokenize:nc},exit:ic},Xu={tokenize:sc,partial:!0},ec={tokenize:rc,partial:!0};function tc(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(E){const M=r.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(M==="listUnordered"?!r.containerState.marker||E===r.containerState.marker:fr(E)){if(r.containerState.type||(r.containerState.type=M,e.enter(M,{_container:!0})),M==="listUnordered")return e.enter("listItemPrefix"),E===42||E===45?e.check(en,n,c)(E):c(E);if(!r.interrupt||E===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(E)}return n(E)}function u(E){return fr(E)&&++o<10?(e.consume(E),u):(!r.interrupt||o<2)&&(r.containerState.marker?E===r.containerState.marker:E===41||E===46)?(e.exit("listItemValue"),c(E)):n(E)}function c(E){return e.enter("listItemMarker"),e.consume(E),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||E,e.check(gn,r.interrupt?n:f,e.attempt(Xu,p,h))}function f(E){return r.containerState.initialBlankLine=!0,s++,p(E)}function h(E){return he(E)?(e.enter("listItemPrefixWhitespace"),e.consume(E),e.exit("listItemPrefixWhitespace"),p):n(E)}function p(E){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(E)}}function nc(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gn,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ee(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!he(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ec,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ee(e,e.attempt(xe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function rc(e,t,n){const r=this;return ee(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(s):n(s)}}function ic(e){e.exit(this.containerState.type)}function sc(e,t,n){const r=this;return ee(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(s){const o=r.events[r.events.length-1];return!he(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const mi={name:"setextUnderline",tokenize:ac,resolveTo:oc};function oc(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);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",s?(e.splice(i,0,["enter",o,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function ac(e,t,n){const r=this;let i=r.events.length,s,o;for(;i--;)if(r.events[i][1].type!=="lineEnding"&&r.events[i][1].type!=="linePrefix"&&r.events[i][1].type!=="content"){o=r.events[i][1].type==="paragraph";break}return a;function a(f){return!r.parser.lazy[r.now().line]&&(r.interrupt||o)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),s=f,u(f)):n(f)}function u(f){return f===s?(e.consume(f),u):(e.exit("setextHeadingLineSequence"),ee(e,c,"lineSuffix")(f))}function c(f){return f===null||U(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const lc={tokenize:uc};function uc(e){const t=this,n=e.attempt(gn,r,e.attempt(this.parser.constructs.flowInitial,i,ee(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gu,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const cc={resolveAll:zo()},fc=Po("string"),hc=Po("text");function Po(e){return{tokenize:t,resolveAll:zo(e==="text"?Tc:void 0)};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,o,a);return o;function o(f){return c(f)?s(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),u}function u(f){return c(f)?(n.exit("data"),s(f)):(n.consume(f),u)}function c(f){if(f===null)return!0;const h=i[f];let p=-1;if(h)for(;++p<h.length;){const E=h[p];if(!E.previous||E.previous.call(r,r.previous))return!0}return!1}}}function zo(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function Tc(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let s=i.length,o=-1,a=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)u=!0,a++;else if(c!==-1){s++;break}}if(a){const c={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+s,_bufferIndex:s?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(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function mc(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],a=[];const u={consume:P,enter:x,exit:H,attempt:j(v),check:j(C),interrupt:j(C,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:E,sliceSerialize:p,now:M,defineSkip:S,write:h};let f=t.tokenize.call(c,u);return t.resolveAll&&s.push(t),c;function h(b){return o=He(o,b),O(),o[o.length-1]!==null?[]:(K(t,0),c.events=Sr(s,c.events,c),c.events)}function p(b,z){return gc(E(b),z)}function E(b){return dc(o,b)}function M(){return Object.assign({},r)}function S(b){i[b.line]=b.column,pe()}function O(){let b;for(;r._index<o.length;){const z=o[r._index];if(typeof z=="string")for(b=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===b&&r._bufferIndex<z.length;)I(z.charCodeAt(r._bufferIndex));else I(z)}}function I(b){f=f(b)}function P(b){U(b)?(r.line++,r.column=1,r.offset+=b===-3?2:1,pe()):b!==-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=b}function x(b,z){const G=z||{};return G.type=b,G.start=M(),c.events.push(["enter",G,c]),a.push(G),G}function H(b){const z=a.pop();return z.end=M(),c.events.push(["exit",z,c]),z}function v(b,z){K(b,z.from)}function C(b,z){z.restore()}function j(b,z){return G;function G(_e,ze,Je){let Qe,Ae,Le,me;return Array.isArray(_e)?d(_e):"tokenize"in _e?d([_e]):g(_e);function g(de){return Xe;function Xe(at){const vt=at!==null&&de[at],Gt=at!==null&&de.null,xn=[...Array.isArray(vt)?vt:vt?[vt]:[],...Array.isArray(Gt)?Gt:Gt?[Gt]:[]];return d(xn)(at)}}function d(de){return Qe=de,Ae=0,de.length===0?Je:Ht(de[Ae])}function Ht(de){return Xe;function Xe(at){return me=V(),Le=de,de.partial||(c.currentConstruct=de),de.name&&c.parser.constructs.disable.null.includes(de.name)?Ft():de.tokenize.call(z?Object.assign(Object.create(c),z):c,u,i1,Ft)(at)}}function i1(de){return b(Le,me),ze}function Ft(de){return me.restore(),++Ae<Qe.length?Ht(Qe[Ae]):Je}}}function K(b,z){b.resolveAll&&!s.includes(b)&&s.push(b),b.resolve&&ot(c.events,z,c.events.length-z,b.resolve(c.events.slice(z),c)),b.resolveTo&&(c.events=b.resolveTo(c.events,c))}function V(){const b=M(),z=c.previous,G=c.currentConstruct,_e=c.events.length,ze=Array.from(a);return{restore:Je,from:_e};function Je(){r=b,c.previous=z,c.currentConstruct=G,c.events.length=_e,a=ze,pe()}}function pe(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function dc(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let o;return n===i?o=[e[n].slice(r,s)]:(o=e.slice(n,i),r>-1&&(o[0]=o[0].slice(r)),s>0&&o.push(e[i].slice(0,s))),o}function gc(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
2
+ `;break}case-3:{o=`\r
3
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}const Ec={[42]:xe,[43]:xe,[45]:xe,[48]:xe,[49]:xe,[50]:xe,[51]:xe,[52]:xe,[53]:xe,[54]:xe,[55]:xe,[56]:xe,[57]:xe,[62]:Oo},pc={[91]:Mu},Ac={[-2]:bn,[-1]:bn,[32]:bn},Ic={[35]:yu,[42]:en,[45]:[mi,en],[60]:wu,[61]:mi,[95]:en,[96]:hi,[126]:hi},Mc={[38]:xo,[92]:Lo},Cc={[-5]:Rn,[-4]:Rn,[-3]:Rn,[33]:Wu,[38]:xo,[42]:Tr,[60]:[Xl,zu],[91]:Vu,[92]:[_u,Lo],[93]:Dr,[95]:Tr,[96]:fu},Nc={null:[Tr,cc]},Sc={null:[42,95]},_c={null:[]},Dc=Object.freeze(Object.defineProperty({__proto__:null,document:Ec,contentInitial:pc,flowInitial:Ac,flow:Ic,string:Mc,text:Cc,insideSpan:Nc,attentionMarkers:Sc,disable:_c},Symbol.toStringTag,{value:"Module"}));function yc(e={}){const t=Ul([Dc].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(Kl),document:r(Zl),flow:r(lc),string:r(fc),text:r(hc)};return n;function r(i){return s;function s(o){return mc(n,i,o)}}}const di=/[\0\t\n\r]/g;function Oc(){let e=1,t="",n=!0,r;return i;function i(s,o,a){const u=[];let c,f,h,p,E;for(s=t+s.toString(o),h=0,t="",n&&(s.charCodeAt(0)===65279&&h++,n=void 0);h<s.length;){if(di.lastIndex=h,c=di.exec(s),p=c&&c.index!==void 0?c.index:s.length,E=s.charCodeAt(p),!c){t=s.slice(h);break}if(E===10&&h===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),h<p&&(u.push(s.slice(h,p)),e+=p-h),E){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}function Lc(e){for(;!wo(e););return e}function jo(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCharCode(n)}const xc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Uo(e){return e.replace(xc,wc)}function wc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return jo(n.slice(s?2:1),s?16:10)}return _r(n)||e}function A1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gi(e.position):"start"in e||"end"in e?gi(e):"line"in e||"column"in e?mr(e):""}function mr(e){return Ei(e&&e.line)+":"+Ei(e&&e.column)}function gi(e){return mr(e&&e.start)+"-"+mr(e&&e.end)}function Ei(e){return e&&typeof e=="number"?e:1}const dr={}.hasOwnProperty,bc=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Rc(n)(Lc(yc(n).document().write(Oc()(e,t,!0))))};function Rc(e={}){const t=Bo({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(ri),autolinkProtocol:z,autolinkEmail:z,atxHeading:u(ei),blockQuote:u(yl),characterEscape:z,characterReference:z,codeFenced:u(Xr),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(Xr,c),codeText:u(Ol,c),codeTextData:z,data:z,codeFlowValue:z,definition:u(Ll),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(xl),hardBreakEscape:u(ti),hardBreakTrailing:u(ti),htmlFlow:u(ni,c),htmlFlowData:z,htmlText:u(ni,c),htmlTextData:z,image:u(wl),label:c,link:u(ri),listItem:u(bl),listItemValue:S,listOrdered:u(ii,M),listUnordered:u(ii),paragraph:u(Rl),reference:de,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(ei),strong:u(kl),thematicBreak:u(zl)},exit:{atxHeading:h(),atxHeadingSequence:K,autolink:h(),autolinkEmail:xn,autolinkProtocol:Gt,blockQuote:h(),characterEscapeValue:G,characterReferenceMarkerHexadecimal:at,characterReferenceMarkerNumeric:at,characterReferenceValue:vt,codeFenced:h(x),codeFencedFence:P,codeFencedFenceInfo:O,codeFencedFenceMeta:I,codeFlowValue:G,codeIndented:h(H),codeText:h(Ae),codeTextData:G,data:G,definition:h(),definitionDestinationString:j,definitionLabelString:v,definitionTitleString:C,emphasis:h(),hardBreakEscape:h(ze),hardBreakTrailing:h(ze),htmlFlow:h(Je),htmlFlowData:G,htmlText:h(Qe),htmlTextData:G,image:h(me),label:d,labelText:g,lineEnding:_e,link:h(Le),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Xe,resourceDestinationString:Ht,resourceTitleString:i1,resource:Ft,setextHeading:h(b),setextHeadingLineSequence:pe,setextHeadingText:V,strong:h(),thematicBreak:h()}},e.mdastExtensions||[]),n={};return r;function r(A){let L={type:"root",children:[]};const B=[L],q=[],je=[],s1={stack:B,tokenStack:q,config:t,enter:f,exit:p,buffer:c,resume:E,setData:s,getData:o};let ne=-1;for(;++ne<A.length;)if(A[ne][1].type==="listOrdered"||A[ne][1].type==="listUnordered")if(A[ne][0]==="enter")je.push(ne);else{const Me=je.pop();ne=i(A,Me,ne)}for(ne=-1;++ne<A.length;){const Me=t[A[ne][0]];dr.call(Me,A[ne][1].type)&&Me[A[ne][1].type].call(Object.assign({sliceSerialize:A[ne][2].sliceSerialize},s1),A[ne][1])}if(q.length>0){const Me=q[q.length-1];(Me[1]||pi).call(s1,void 0,Me[0])}for(L.position={start:a(A.length>0?A[0][1].start:{line:1,column:1,offset:0}),end:a(A.length>0?A[A.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne<t.transforms.length;)L=t.transforms[ne](L)||L;return L}function i(A,L,B){let q=L-1,je=-1,s1=!1,ne,Me,Yt,o1;for(;++q<=B;){const ue=A[q];if(ue[1].type==="listUnordered"||ue[1].type==="listOrdered"||ue[1].type==="blockQuote"?(ue[0]==="enter"?je++:je--,o1=void 0):ue[1].type==="lineEndingBlank"?ue[0]==="enter"&&(ne&&!o1&&!je&&!Yt&&(Yt=q),o1=void 0):ue[1].type==="linePrefix"||ue[1].type==="listItemValue"||ue[1].type==="listItemMarker"||ue[1].type==="listItemPrefix"||ue[1].type==="listItemPrefixWhitespace"||(o1=void 0),!je&&ue[0]==="enter"&&ue[1].type==="listItemPrefix"||je===-1&&ue[0]==="exit"&&(ue[1].type==="listUnordered"||ue[1].type==="listOrdered")){if(ne){let wn=q;for(Me=void 0;wn--;){const lt=A[wn];if(lt[1].type==="lineEnding"||lt[1].type==="lineEndingBlank"){if(lt[0]==="exit")continue;Me&&(A[Me][1].type="lineEndingBlank",s1=!0),lt[1].type="lineEnding",Me=wn}else if(!(lt[1].type==="linePrefix"||lt[1].type==="blockQuotePrefix"||lt[1].type==="blockQuotePrefixWhitespace"||lt[1].type==="blockQuoteMarker"||lt[1].type==="listItemIndent"))break}Yt&&(!Me||Yt<Me)&&(ne._spread=!0),ne.end=Object.assign({},Me?A[Me][1].start:ue[1].end),A.splice(Me||q,0,["exit",ne,ue[2]]),q++,B++}ue[1].type==="listItemPrefix"&&(ne={type:"listItem",_spread:!1,start:Object.assign({},ue[1].start)},A.splice(q,0,["enter",ne,ue[2]]),q++,B++,Yt=void 0,o1=!0)}}return A[L][1]._spread=s1,B}function s(A,L){n[A]=L}function o(A){return n[A]}function a(A){return{line:A.line,column:A.column,offset:A.offset}}function u(A,L){return B;function B(q){f.call(this,A(q),q),L&&L.call(this,q)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(A,L,B){return this.stack[this.stack.length-1].children.push(A),this.stack.push(A),this.tokenStack.push([L,B]),A.position={start:a(L.start)},A}function h(A){return L;function L(B){A&&A.call(this,B),p.call(this,B)}}function p(A,L){const B=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==A.type&&(L?L.call(this,A,q[0]):(q[1]||pi).call(this,A,q[0]));else throw new Error("Cannot close `"+A.type+"` ("+A1({start:A.start,end:A.end})+"): it\u2019s not open");return B.position.end=a(A.end),B}function E(){return dn(this.stack.pop())}function M(){s("expectingFirstListItemValue",!0)}function S(A){if(o("expectingFirstListItemValue")){const L=this.stack[this.stack.length-2];L.start=Number.parseInt(this.sliceSerialize(A),10),s("expectingFirstListItemValue")}}function O(){const A=this.resume(),L=this.stack[this.stack.length-1];L.lang=A}function I(){const A=this.resume(),L=this.stack[this.stack.length-1];L.meta=A}function P(){o("flowCodeInside")||(this.buffer(),s("flowCodeInside",!0))}function x(){const A=this.resume(),L=this.stack[this.stack.length-1];L.value=A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s("flowCodeInside")}function H(){const A=this.resume(),L=this.stack[this.stack.length-1];L.value=A.replace(/(\r?\n|\r)$/g,"")}function v(A){const L=this.resume(),B=this.stack[this.stack.length-1];B.label=L,B.identifier=Xt(this.sliceSerialize(A)).toLowerCase()}function C(){const A=this.resume(),L=this.stack[this.stack.length-1];L.title=A}function j(){const A=this.resume(),L=this.stack[this.stack.length-1];L.url=A}function K(A){const L=this.stack[this.stack.length-1];if(!L.depth){const B=this.sliceSerialize(A).length;L.depth=B}}function V(){s("setextHeadingSlurpLineEnding",!0)}function pe(A){const L=this.stack[this.stack.length-1];L.depth=this.sliceSerialize(A).charCodeAt(0)===61?1:2}function b(){s("setextHeadingSlurpLineEnding")}function z(A){const L=this.stack[this.stack.length-1];let B=L.children[L.children.length-1];(!B||B.type!=="text")&&(B=Pl(),B.position={start:a(A.start)},L.children.push(B)),this.stack.push(B)}function G(A){const L=this.stack.pop();L.value+=this.sliceSerialize(A),L.position.end=a(A.end)}function _e(A){const L=this.stack[this.stack.length-1];if(o("atHardBreak")){const B=L.children[L.children.length-1];B.position.end=a(A.end),s("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(L.type)&&(z.call(this,A),G.call(this,A))}function ze(){s("atHardBreak",!0)}function Je(){const A=this.resume(),L=this.stack[this.stack.length-1];L.value=A}function Qe(){const A=this.resume(),L=this.stack[this.stack.length-1];L.value=A}function Ae(){const A=this.resume(),L=this.stack[this.stack.length-1];L.value=A}function Le(){const A=this.stack[this.stack.length-1];o("inReference")?(A.type+="Reference",A.referenceType=o("referenceType")||"shortcut",delete A.url,delete A.title):(delete A.identifier,delete A.label),s("referenceType")}function me(){const A=this.stack[this.stack.length-1];o("inReference")?(A.type+="Reference",A.referenceType=o("referenceType")||"shortcut",delete A.url,delete A.title):(delete A.identifier,delete A.label),s("referenceType")}function g(A){const L=this.stack[this.stack.length-2],B=this.sliceSerialize(A);L.label=Uo(B),L.identifier=Xt(B).toLowerCase()}function d(){const A=this.stack[this.stack.length-1],L=this.resume(),B=this.stack[this.stack.length-1];s("inReference",!0),B.type==="link"?B.children=A.children:B.alt=L}function Ht(){const A=this.resume(),L=this.stack[this.stack.length-1];L.url=A}function i1(){const A=this.resume(),L=this.stack[this.stack.length-1];L.title=A}function Ft(){s("inReference")}function de(){s("referenceType","collapsed")}function Xe(A){const L=this.resume(),B=this.stack[this.stack.length-1];B.label=L,B.identifier=Xt(this.sliceSerialize(A)).toLowerCase(),s("referenceType","full")}function at(A){s("characterReferenceType",A.type)}function vt(A){const L=this.sliceSerialize(A),B=o("characterReferenceType");let q;B?(q=jo(L,B==="characterReferenceMarkerNumeric"?10:16),s("characterReferenceType")):q=_r(L);const je=this.stack.pop();je.value+=q,je.position.end=a(A.end)}function Gt(A){G.call(this,A);const L=this.stack[this.stack.length-1];L.url=this.sliceSerialize(A)}function xn(A){G.call(this,A);const L=this.stack[this.stack.length-1];L.url="mailto:"+this.sliceSerialize(A)}function yl(){return{type:"blockquote",children:[]}}function Xr(){return{type:"code",lang:null,meta:null,value:""}}function Ol(){return{type:"inlineCode",value:""}}function Ll(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xl(){return{type:"emphasis",children:[]}}function ei(){return{type:"heading",depth:void 0,children:[]}}function ti(){return{type:"break"}}function ni(){return{type:"html",value:""}}function wl(){return{type:"image",title:null,url:"",alt:null}}function ri(){return{type:"link",title:null,url:"",children:[]}}function ii(A){return{type:"list",ordered:A.type==="listOrdered",start:null,spread:A._spread,children:[]}}function bl(A){return{type:"listItem",spread:A._spread,checked:null,children:[]}}function Rl(){return{type:"paragraph",children:[]}}function kl(){return{type:"strong",children:[]}}function Pl(){return{type:"text",value:""}}function zl(){return{type:"thematicBreak"}}}function Bo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Bo(e,r):kc(e,r)}return e}function kc(e,t){let n;for(n in t)if(dr.call(t,n)){const r=n==="canContainEols"||n==="transforms",s=(dr.call(e,n)?e[n]:void 0)||(e[n]=r?[]:{}),o=t[n];o&&(r?e[n]=[...s,...o]:Object.assign(s,o))}}function pi(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+A1({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+A1({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+A1({start:t.start,end:t.end})+") is still open")}function Pc(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return bc(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var Ee=function(e,t,n){var r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r};const tn={}.hasOwnProperty;function zc(e,t){const n=t.data||{};return"value"in t&&!(tn.call(n,"hName")||tn.call(n,"hProperties")||tn.call(n,"hChildren"))?e.augment(t,Ee("text",t.value)):e(t,"div",Oe(e,t))}function Ho(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return tn.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=jc:i=e.unknownHandler,(typeof i=="function"?i:zc)(e,t,n)}function jc(e,t){return"children"in t?{...t,children:Oe(e,t)}:t}function Oe(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const s=Ho(e,r[i],t);if(s){if(i&&r[i-1].type==="break"&&(!Array.isArray(s)&&s.type==="text"&&(s.value=s.value.replace(/^\s+/,"")),!Array.isArray(s)&&s.type==="element")){const o=s.children[0];o&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,""))}Array.isArray(s)?n.push(...s):n.push(s)}}}return n}const Et=function(e){if(e==null)return Fc;if(typeof e=="string")return Hc(e);if(typeof e=="object")return Array.isArray(e)?Uc(e):Bc(e);if(typeof e=="function")return En(e);throw new Error("Expected function, string, or object as test")};function Uc(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Et(e[n]);return En(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].call(this,...i))return!0;return!1}}function Bc(e){return En(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function Hc(e){return En(t);function t(n){return n&&n.type===e}}function En(e){return t;function t(...n){return Boolean(e.call(this,...n))}}function Fc(){return!0}const vc=!0,Fo="skip",ln=!1,Gc=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=Et(t),s=r?-1:1;o(e,null,[])();function o(a,u,c){const f=typeof a=="object"&&a!==null?a:{};let h;return typeof f.type=="string"&&(h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0,Object.defineProperty(p,"name",{value:"node ("+(f.type+(h?"<"+h+">":""))+")"})),p;function p(){let E=[],M,S,O;if((!t||i(a,u,c[c.length-1]||null))&&(E=Yc(n(a,c)),E[0]===ln))return E;if(a.children&&E[0]!==Fo)for(S=(r?a.children.length:-1)+s,O=c.concat(a);S>-1&&S<a.children.length;){if(M=o(a.children[S],S,O)(),M[0]===ln)return M;S=typeof M[1]=="number"?M[1]:S+s}return E}}};function Yc(e){return Array.isArray(e)?e:typeof e=="number"?[vc,e]:[e]}const Pt=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),Gc(e,t,i,r);function i(s,o){const a=o[o.length-1];return n(s,a?a.children.indexOf(s):null,a)}},vo=Yo("start"),Go=Yo("end");function Yo(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function Qc(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 Kc=!0,Wc="skip",Ai=!1,Zc=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);var i=Et(t),s=r?-1:1;o(e,null,[])();function o(a,u,c){var f=typeof a=="object"&&a!==null?a:{},h;return typeof f.type=="string"&&(h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0,Object.defineProperty(p,"name",{value:"node ("+(f.type+(h?"<"+h+">":""))+")"})),p;function p(){var E=[],M,S,O;if((!t||i(a,u,c[c.length-1]||null))&&(E=Vc(n(a,c)),E[0]===Ai))return E;if(a.children&&E[0]!==Wc)for(S=(r?a.children.length:-1)+s,O=c.concat(a);S>-1&&S<a.children.length;){if(M=o(a.children[S],S,O)(),M[0]===Ai)return M;S=typeof M[1]=="number"?M[1]:S+s}return E}}};function Vc(e){return Array.isArray(e)?e:typeof e=="number"?[Kc,e]:[e]}const $c=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),Zc(e,t,i,r);function i(s,o){var a=o[o.length-1];return n(s,a?a.children.indexOf(s):null,a)}},Ii={}.hasOwnProperty;function qc(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return $c(e,"definition",n),r;function n(i){const s=Mi(i.identifier);s&&!Ii.call(t,s)&&(t[s]=i)}function r(i){const s=Mi(i);return s&&Ii.call(t,s)?t[s]:null}}function Mi(e){return String(e||"").toUpperCase()}const Jc={'"':"quot","&":"amp","<":"lt",">":"gt"};function Xc(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+Jc[n]+";"}}function Qo(e,t){const n=Xc(e0(e||""));if(!t)return n;const r=n.indexOf(":"),i=n.indexOf("?"),s=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||i>-1&&r>i||s>-1&&r>s||t.test(n.slice(0,r))?n:""}function e0(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&Pe(e.charCodeAt(n+1))&&Pe(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),i=1):o="\uFFFD"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function dt(e,t){const n=[];let r=-1;for(t&&n.push(Ee("text",`
4
+ `));++r<e.length;)r&&n.push(Ee("text",`
5
+ `)),n.push(e[r]);return t&&e.length>0&&n.push(Ee("text",`
6
+ `)),n}function t0(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!r)continue;const i=Oe(e,r),s=String(r.identifier),o=Qo(s.toLowerCase());let a=0;const u=[];for(;++a<=e.footnoteCounts[s];){const h={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};a>1&&h.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(h)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const h=c.children[c.children.length-1];h&&h.type==="text"?h.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:dt(i,!0)};r.position&&(f.position=r.position),n.push(f)}return n.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[Ee("text",e.footnoteLabel)]},{type:"text",value:`
7
+ `},{type:"element",tagName:"ol",properties:{},children:dt(n,!0)},{type:"text",value:`
8
+ `}]}}function n0(e,t){return e(t,"blockquote",dt(Oe(e,t),!0))}function r0(e,t){return[e(t,"br"),Ee("text",`
9
+ `)]}function i0(e,t){const n=t.value?t.value+`
10
+ `:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};r&&(i.className=["language-"+r]);const s=e(t,"code",i,[Ee("text",n)]);return t.meta&&(s.data={meta:t.meta}),e(t.position,"pre",[s])}function s0(e,t){return e(t,"del",Oe(e,t))}function o0(e,t){return e(t,"em",Oe(e,t))}function Ko(e,t){const n=String(t.identifier),r=Qo(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let s;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,s=e.footnoteOrder.length):(e.footnoteCounts[n]++,s=i+1);const o=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Ee("text",String(s))])])}function a0(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},Ko(e,{type:"footnoteReference",identifier:i,position:t.position})}function l0(e,t){return e(t,"h"+t.depth,Oe(e,t))}function u0(e,t){return e.dangerous?e.augment(t,Ee("raw",t.value)):null}var Ci={};function c0(e){var t,n,r=Ci[e];if(r)return r;for(r=Ci[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function pn(e,t,n){var r,i,s,o,a,u="";for(typeof t!="string"&&(n=t,t=pn.defaultChars),typeof n>"u"&&(n=!0),a=c0(t),r=0,i=e.length;r<i;r++){if(s=e.charCodeAt(r),n&&s===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){u+=e.slice(r,r+3),r+=2;continue}if(s<128){u+=a[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<i&&(o=e.charCodeAt(r+1),o>=56320&&o<=57343)){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[r])}return u}pn.defaultChars=";/?:@&=+$,-_.!~*'()#";pn.componentChars="-_.!~*'()";var An=pn;function Wo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return Ee("text","!["+t.alt+r);const i=Oe(e,t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift(Ee("text","["));const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push(Ee("text",r)),i}function f0(e,t){const n=e.definition(t.identifier);if(!n)return Wo(e,t);const r={src:An(n.url||""),alt:t.alt};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)}function h0(e,t){const n={src:An(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}function T0(e,t){return e(t,"code",[Ee("text",t.value.replace(/\r?\n|\r/g," "))])}function m0(e,t){const n=e.definition(t.identifier);if(!n)return Wo(e,t);const r={href:An(n.url||"")};return n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,Oe(e,t))}function d0(e,t){const n={href:An(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,Oe(e,t))}function g0(e,t,n){const r=Oe(e,t),i=n?E0(n):Zo(t),s={},o=[];if(typeof t.checked=="boolean"){let c;r[0]&&r[0].type==="element"&&r[0].tagName==="p"?c=r[0]:(c=e(null,"p",[]),r.unshift(c)),c.children.length>0&&c.children.unshift(Ee("text"," ")),c.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push(Ee("text",`
11
+ `)),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const u=r[r.length-1];return u&&(i||!("tagName"in u)||u.tagName!=="p")&&o.push(Ee("text",`
12
+ `)),e(t,"li",s,o)}function E0(e){let t=e.spread;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Zo(n[r]);return Boolean(t)}function Zo(e){const t=e.spread;return t==null?e.children.length>1:t}function p0(e,t){const n={},r=t.ordered?"ol":"ul",i=Oe(e,t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const o=i[s];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,r,n,dt(i,!0))}function A0(e,t){return e(t,"p",Oe(e,t))}function I0(e,t){return e.augment(t,Ee("root",dt(Oe(e,t))))}function M0(e,t){return e(t,"strong",Oe(e,t))}function C0(e,t){const n=t.children;let r=-1;const i=t.align||[],s=[];for(;++r<n.length;){const o=n[r].children,a=r===0?"th":"td",u=[];let c=-1;const f=t.align?i.length:o.length;for(;++c<f;){const h=o[c];u.push(e(h,a,{align:i[c]},h?Oe(e,h):[]))}s[r]=e(n[r],"tr",dt(u,!0))}return e(t,"table",dt([e(s[0].position,"thead",dt([s[0]],!0))].concat(s[1]?e({start:vo(s[1]),end:Go(s[s.length-1])},"tbody",dt(s.slice(1),!0)):[]),!0))}function N0(e,t){return e.augment(t,Ee("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}function S0(e,t){return e(t,"hr")}const _0={blockquote:n0,break:r0,code:i0,delete:s0,emphasis:o0,footnoteReference:Ko,footnote:a0,heading:l0,html:u0,imageReference:f0,image:h0,inlineCode:T0,linkReference:m0,link:d0,listItem:g0,list:p0,paragraph:A0,root:I0,strong:M0,table:C0,text:N0,thematicBreak:S0,toml:k1,yaml:k1,definition:k1,footnoteDefinition:k1};function k1(){return null}const D0={}.hasOwnProperty;function y0(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return o.dangerous=r,o.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,o.footnoteLabel=n.footnoteLabel||"Footnotes",o.footnoteBackLabel=n.footnoteBackLabel||"Back to content",o.definition=qc(e),o.footnoteById=i,o.footnoteOrder=[],o.footnoteCounts={},o.augment=s,o.handlers={..._0,...n.handlers},o.unknownHandler=n.unknownHandler,o.passThrough=n.passThrough,Pt(e,"footnoteDefinition",a=>{const u=String(a.identifier).toUpperCase();D0.call(i,u)||(i[u]=a)}),o;function s(a,u){if(a&&"data"in a&&a.data){const c=a.data;c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties={...u.properties,...c.hProperties}),"children"in u&&u.children&&c.hChildren&&(u.children=c.hChildren)}if(a){const c="type"in a?a:{position:a};Qc(c)||(u.position={start:vo(c),end:Go(c)})}return u}function o(a,u,c,f){return Array.isArray(c)&&(f=c,c={}),s(a,{type:"element",tagName:u,properties:c||{},children:f||[]})}}function Vo(e,t){const n=y0(e,t),r=Ho(n,e,null),i=t0(n);return i&&r.children.push(Ee("text",`
13
+ `),i),Array.isArray(r)?{type:"root",children:r}:r}const O0=function(e,t){return e&&"run"in e?x0(e,t):w0(e||t)},L0=O0;function x0(e,t){return(n,r,i)=>{e.run(Vo(n,t),r,s=>{i(s)})}}function w0(e){return t=>Vo(t,e)}const $o={strip:["script"],clobberPrefix:"user-content-",clobber:["name","id"],ancestors:{tbody:["table"],tfoot:["table"],thead:["table"],td:["table"],th:["table"],tr:["table"]},protocols:{href:["http","https","mailto","xmpp","irc","ircs"],cite:["http","https"],src:["http","https"],longDesc:["http","https"]},tagNames:["h1","h2","h3","h4","h5","h6","br","b","i","strong","em","a","pre","code","img","tt","div","ins","del","sup","sub","p","ol","ul","table","thead","tbody","tfoot","blockquote","dl","dt","dd","kbd","q","samp","var","hr","ruby","rt","rp","li","tr","td","th","s","strike","summary","details","caption","figure","figcaption","abbr","bdo","cite","dfn","mark","small","span","time","wbr","input"],attributes:{a:["href"],img:["src","longDesc"],input:[["type","checkbox"],["disabled",!0]],li:[["className","task-list-item"]],div:["itemScope","itemType"],blockquote:["cite"],del:["cite"],ins:["cite"],q:["cite"],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","ariaDescribedBy","ariaHidden","ariaLabel","ariaLabelledBy","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","cols","colSpan","color","compact","coords","dateTime","dir","disabled","encType","htmlFor","frame","headers","height","hrefLang","hSpace","isMap","id","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rows","rowSpan","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","type","useMap","vAlign","value","vSpace","width","itemProp"]},required:{input:{type:"checkbox",disabled:!0}}};var nt={}.hasOwnProperty,b0=[].push,kn={root:{children:Ni},doctype:k0,comment:P0,element:{tagName:Jo,properties:z0,children:Ni},text:{value:B0},"*":{data:Si,position:Si}};function R0(e,t){var n={type:"root",children:[]},r;return e&&typeof e=="object"&&e.type&&(r=qo(Object.assign({},$o,t||{}),e,[]),r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)),n}function qo(e,t,n){var r=t&&t.type,i={type:t.type},s,o,a,u,c;if(nt.call(kn,r)&&(o=kn[r],typeof o=="function"&&(o=o(e,t)),o)){s=!0,a=Object.assign({},o,kn["*"]);for(c in a)nt.call(a,c)&&(u=a[c](e,t[c],t,n),u===!1?(s=null,i[c]=t[c]):u!=null&&(i[c]=u))}return s?i:i.type==="element"&&!e.strip.includes(i.tagName)?i.children:null}function Ni(e,t,n,r){var i=[],s=-1,o;if(Array.isArray(t)){for(n.type==="element"&&r.push(n.tagName);++s<t.length;)o=qo(e,t[s],r),o&&("length"in o?b0.apply(i,o):i.push(o));n.type==="element"&&r.pop()}return i}function k0(e){return e.allowDoctypes?{name:j0}:null}function P0(e){return e.allowComments?{value:U0}:null}function z0(e,t,n,r){var i=Jo(e,n.tagName,n,r),s=e.required||{},o=t||{},a=Object.assign({},_i(e.attributes["*"]),_i(i&&nt.call(e.attributes,i)?e.attributes[i]:[])),u={},c,f,h;for(h in o)if(nt.call(o,h)){if(nt.call(a,h))c=a[h];else if(v0(h)&&nt.call(a,"data*"))c=a["data*"];else continue;f=o[h],f=Array.isArray(f)?H0(e,f,h,c):Xo(e,f,h,c),f!=null&&(u[h]=f)}if(i&&nt.call(s,i))for(h in s[i])nt.call(u,h)||(u[h]=s[i][h]);return u}function j0(){return"html"}function Jo(e,t,n,r){var i=typeof t=="string"?t:"",s=-1;if(!i||i==="*"||!e.tagNames.includes(i))return!1;if(nt.call(e.ancestors,i)){for(;++s<e.ancestors[i].length;)if(r.includes(e.ancestors[i][s]))return i;return!1}return i}function U0(e,t){var n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function B0(e,t){return typeof t=="string"?t:""}function Si(e,t){return t}function H0(e,t,n,r){for(var i=-1,s=[],o;++i<t.length;)o=Xo(e,t[i],n,r),o!=null&&s.push(o);return s}function Xo(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&F0(e,t,n)&&(r.length===0||r.includes(t)))return e.clobber.includes(n)?e.clobberPrefix+t:t}function F0(e,t,n){var r=String(t),i=r.indexOf(":"),s=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/"),u=nt.call(e.protocols,n)?e.protocols[n].concat():[],c=-1;if(u.length===0||i<0||a>-1&&i>a||s>-1&&i>s||o>-1&&i>o)return!0;for(;++c<u.length;)if(i===u[c].length&&r.slice(0,u[c].length)===u[c])return!0;return!1}function _i(e){for(var t={},n=-1,r;++n<e.length;)r=e[n],Array.isArray(r)?t[r[0]]=r.slice(1):t[r]=[];return t}function v0(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}function G0(e=$o){return t=>R0(t,e)}class y1{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}y1.prototype.property={};y1.prototype.normal={};y1.prototype.space=null;function ea(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new y1(n,r,t)}function D1(e){return e.toLowerCase()}class Ge{constructor(t,n){this.property=t,this.attribute=n}}Ge.prototype.space=null;Ge.prototype.boolean=!1;Ge.prototype.booleanish=!1;Ge.prototype.overloadedBoolean=!1;Ge.prototype.number=!1;Ge.prototype.commaSeparated=!1;Ge.prototype.spaceSeparated=!1;Ge.prototype.commaOrSpaceSeparated=!1;Ge.prototype.mustUseProperty=!1;Ge.prototype.defined=!1;let Y0=0;const F=jt(),fe=jt(),ta=jt(),_=jt(),ie=jt(),e1=jt(),ke=jt();function jt(){return 2**++Y0}const gr=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:fe,overloadedBoolean:ta,number:_,spaceSeparated:ie,commaSeparated:e1,commaOrSpaceSeparated:ke},Symbol.toStringTag,{value:"Module"})),Pn=Object.keys(gr);class yr extends Ge{constructor(t,n,r,i){let s=-1;if(super(t,n),Di(this,"space",i),typeof r=="number")for(;++s<Pn.length;){const o=Pn[s];Di(this,Pn[s],(r&gr[o])===gr[o])}}}yr.prototype.defined=!0;function Di(e,t,n){n&&(e[t]=n)}const Q0={}.hasOwnProperty;function n1(e){const t={},n={};let r;for(r in e.properties)if(Q0.call(e.properties,r)){const i=e.properties[r],s=new yr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[D1(r)]=r,n[D1(s.attribute)]=r}return new y1(t,n,e.space)}const na=n1({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ra=n1({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ia(e,t){return t in e?e[t]:t}function sa(e,t){return ia(e,t.toLowerCase())}const oa=n1({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:sa,properties:{xmlns:null,xmlnsXLink:null}}),aa=n1({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:ie,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:_,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:ie,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:fe,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null}}),K0=n1({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:sa,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:e1,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:ie,autoFocus:F,autoPlay:F,capture:F,charSet:null,checked:F,cite:null,className:ie,cols:_,colSpan:null,content:null,contentEditable:fe,controls:F,controlsList:ie,coords:_|e1,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:ta,draggable:fe,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:ie,height:_,hidden:F,high:_,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:ie,itemRef:ie,itemScope:F,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint: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,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:F,optimum:_,pattern:null,ping:ie,placeholder:null,playsInline:F,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:ie,required:F,reversed:F,rows:_,rowSpan:_,sandbox:ie,scope:null,scoped:F,seamless:F,selected:F,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:fe,width:_,wrap:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:_,security:null,unselectable:null}}),W0=n1({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",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:ia,properties:{about:ke,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:ie,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:e1,g2:e1,glyphName:e1,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ke,rev:ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ke,requiredFeatures:ke,requiredFonts:ke,requiredFormats:ke,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ke,to:null,transform:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Z0=/^data[-\w.:]+$/i,yi=/-[a-z]/g,V0=/[A-Z]/g;function Or(e,t){const n=D1(t);let r=t,i=Ge;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Z0.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(yi,q0);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!yi.test(s)){let o=s.replace(V0,$0);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=yr}return new i(r,t)}function $0(e){return"-"+e.toLowerCase()}function q0(e){return e.charAt(1).toUpperCase()}const In=ea([ra,na,oa,aa,K0],"html"),O1=ea([ra,na,oa,aa,W0],"svg"),J0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],le=function(e,t,n,r,i){const s=se(t);if(n!=null&&(typeof n!="number"||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index for child node");if(r!=null&&(!r.type||!r.children))throw new Error("Expected parent node");if(!e||!e.type||typeof e.type!="string")return!1;if(r==null!=(n==null))throw new Error("Expected both parent and index");return s.call(i,e,n,r)},se=function(e){if(e==null)return Lr;if(typeof e=="string")return e9(e);if(typeof e=="object")return X0(e);if(typeof e=="function")return la(e);throw new Error("Expected function, string, or array as test")};function X0(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=se(e[n]);return la(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].call(this,...i))return!0;return!1}}function e9(e){return t;function t(n){return Lr(n)&&n.tagName===e}}function la(e){return t;function t(n,...r){return Lr(n)&&Boolean(e.call(this,n,...r))}}function Lr(e){return Boolean(e&&typeof e=="object"&&e.type==="element"&&typeof e.tagName=="string")}const L1=Et("comment");function xr(e){var t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const Te=ca(1),ua=ca(-1);function ca(e){return t;function t(n,r,i){const s=n&&n.children;let o=r+e,a=s&&s[o];if(!i)for(;a&&xr(a);)o+=e,a=s[o];return a}}const t9=Et("text");function fa(e){return t9(e)&&xr(e.value.charAt(0))}const n9={}.hasOwnProperty;function ha(e){return t;function t(n,r,i){return n9.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const wr=ha({html:r9,head:zn,body:i9,p:s9,li:o9,dt:a9,dd:l9,rt:Oi,rp:Oi,optgroup:u9,option:c9,menuitem:f9,colgroup:zn,caption:zn,thead:h9,tbody:T9,tfoot:m9,tr:d9,td:Li,th:Li});function zn(e,t,n){const r=Te(n,t,!0);return!r||!L1(r)&&!fa(r)}function r9(e,t,n){const r=Te(n,t);return!r||!L1(r)}function i9(e,t,n){const r=Te(n,t);return!r||!L1(r)}function s9(e,t,n){const r=Te(n,t);return r?le(r,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!le(n,["a","audio","del","ins","map","noscript","video"])}function o9(e,t,n){const r=Te(n,t);return!r||le(r,"li")}function a9(e,t,n){const r=Te(n,t);return r&&le(r,["dt","dd"])}function l9(e,t,n){const r=Te(n,t);return!r||le(r,["dt","dd"])}function Oi(e,t,n){const r=Te(n,t);return!r||le(r,["rp","rt"])}function u9(e,t,n){const r=Te(n,t);return!r||le(r,"optgroup")}function c9(e,t,n){const r=Te(n,t);return!r||le(r,["option","optgroup"])}function f9(e,t,n){const r=Te(n,t);return!r||le(r,["menuitem","hr","menu"])}function h9(e,t,n){const r=Te(n,t);return r&&le(r,["tbody","tfoot"])}function T9(e,t,n){const r=Te(n,t);return!r||le(r,["tbody","tfoot"])}function m9(e,t,n){return!Te(n,t)}function d9(e,t,n){const r=Te(n,t);return!r||le(r,"tr")}function Li(e,t,n){const r=Te(n,t);return!r||le(r,["td","th"])}const g9=ha({html:E9,head:p9,body:A9,colgroup:I9,tbody:M9});function E9(e){const t=Te(e,-1);return!t||!L1(t)}function p9(e){const t=e.children,n=[];let r=-1,i;for(;++r<t.length;)if(i=t[r],le(i,["title","base"])){if(n.includes(i.tagName))return!1;n.push(i.tagName)}return t.length>0}function A9(e){const t=Te(e,-1,!0);return!t||!L1(t)&&!fa(t)&&!le(t,["meta","link","script","style","template"])}function I9(e,t,n){const r=ua(n,t),i=Te(e,-1,!0);return le(r,"colgroup")&&wr(r,n.children.indexOf(r),n)?!1:i&&le(i,"col")}function M9(e,t,n){const r=ua(n,t),i=Te(e,-1);return le(r,["thead","tbody"])&&wr(r,n.children.indexOf(r),n)?!1:i&&le(i,"tr")}const C9={opening:g9,closing:wr};function xi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function N9(e){return e.join(" ").trim()}function wi(e){for(var t=[],n=String(e||""),r=n.indexOf(","),i=0,s,o;!s;)r===-1&&(r=n.length,s=!0),o=n.slice(i,r).trim(),(o||!s)&&t.push(o),i=r+1,r=n.indexOf(",",i);return t}function S9(e,t){var n=t||{};return e[e.length-1]===""&&(e=e.concat("")),e.join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function _9(e,t){if(e=e.replace(t.subset?D9(t.subset):/["&'<>`]/g,r),t.subset||t.escapeOnly)return e;return e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function D9(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function y9(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?r:r+";"}function O9(e,t,n){const r="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?r:r+";"}const L9=["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"],jn={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},x9=["cent","copy","divide","gt","lt","not","para","times"],Ta={}.hasOwnProperty,Er={};let P1;for(P1 in jn)Ta.call(jn,P1)&&(Er[jn[P1]]=P1);function w9(e,t,n,r){const i=String.fromCharCode(e);if(Ta.call(Er,i)){const s=Er[i],o="&"+s;return n&&L9.includes(s)&&!x9.includes(s)&&(!r||t&&t!==61&&/[^\da-z]/i.test(String.fromCharCode(t)))?o:o+";"}return""}function b9(e,t,n){let r=y9(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=w9(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=O9(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function t1(e,t){return _9(e,Object.assign({format:b9},t))}function bi(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const z1={name:[[`
14
+ \f\r &/=>`.split(""),`
15
+ \f\r "&'/=>\``.split("")],[`\0
16
+ \f\r "&'/<=>`.split(""),`\0
17
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
18
+ \f\r &>`.split(""),`\0
19
+ \f\r "&'<=>\``.split("")],[`\0
20
+ \f\r "&'<=>\``.split(""),`\0
21
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function R9(e,t){return e.bogusComments?"<?"+t1(t.value,Object.assign({},e.entities,{subset:[">"]}))+">":"<!--"+t.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,n)+"-->";function n(r){return t1(r,Object.assign({},e.entities,{subset:["<",">"]}))}}function k9(e){return"<!"+(e.upperDoctype?"DOCTYPE":"doctype")+(e.tightDoctype?"":" ")+"html>"}function ma(e,t,n,r){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:t1(t.value,Object.assign({},e.entities,{subset:["<","&"]}))}function P9(e,t,n,r){return e.dangerous?t.value:ma(e,t,n,r)}const Ri={comment:R9,doctype:k9,element:j9,raw:P9,root:ga,text:ma},z9={}.hasOwnProperty;function da(e,t,n,r){if(!t||!t.type)throw new Error("Expected node, not `"+t+"`");if(!z9.call(Ri,t.type))throw new Error("Cannot compile unknown node `"+t.type+"`");return Ri[t.type](e,t,n,r)}function ga(e,t){const n=[],r=t&&t.children||[];let i=-1;for(;++i<r.length;)n[i]=da(e,r[i],i,t);return n.join("")}function j9(e,t,n,r){const i=e.schema,s=i.space==="svg"?void 0:e.omit;let o=i.space==="svg"?e.closeEmpty:e.voids.includes(t.tagName.toLowerCase());const a=[];let u;i.space==="html"&&t.tagName==="svg"&&(e.schema=O1);const c=U9(e,t.properties),f=ga(e,i.space==="html"&&t.tagName==="template"?t.content:t);return e.schema=i,f&&(o=!1),(c||!s||!s.opening(t,n,r))&&(a.push("<",t.tagName,c?" "+c:""),o&&(i.space==="svg"||e.close)&&(u=c.charAt(c.length-1),(!e.tightClose||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(f),!o&&(!s||!s.closing(t,n,r))&&a.push("</"+t.tagName+">"),a.join("")}function U9(e,t){const n=[];let r=-1,i,s,o;for(i in t)t[i]!==void 0&&t[i]!==null&&(s=B9(e,i,t[i]),s&&n.push(s));for(;++r<n.length;)o=e.tight?n[r].charAt(n[r].length-1):null,r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ");return n.join("")}function B9(e,t,n){const r=Or(e.schema,t);let i=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean&&typeof n!="string")&&(n=Boolean(n)),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const o=t1(r.attribute,Object.assign({},e.entities,{subset:z1.name[e.schema.space==="html"?e.valid:1][e.safe]}));return n===!0||(n=typeof n=="object"&&"length"in n?(r.commaSeparated?S9:N9)(n,{padLeft:!e.tightLists}):String(n),e.collapseEmpty&&!n)?o:(e.unquoted&&(s=t1(n,Object.assign({},e.entities,{subset:z1.unquoted[e.valid][e.safe],attribute:!0}))),s!==n&&(e.smart&&bi(n,i)>bi(n,e.alternative)&&(i=e.alternative),s=i+t1(n,Object.assign({},e.entities,{subset:(i==="'"?z1.single:z1.double)[e.schema.space==="html"?e.valid:1][e.safe],attribute:!0}))+i),o+(s&&"="+s))}function H9(e,t={}){const n=t.quote||'"',r=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");const i={valid:t.allowParseErrors?0:1,safe:t.allowDangerousCharacters?0:1,schema:t.space==="svg"?O1:In,omit:t.omitOptionalTags?C9:void 0,quote:n,alternative:r,smart:t.quoteSmart,unquoted:t.preferUnquoted,tight:t.tightAttributes,upperDoctype:t.upperDoctype,tightDoctype:t.tightDoctype,bogusComments:t.bogusComments,tightLists:t.tightCommaSeparatedLists,tightClose:t.tightSelfClosing,collapseEmpty:t.collapseEmptyAttributes,dangerous:t.allowDangerousHtml,voids:t.voids||J0.concat(),entities:t.entities||{},close:t.closeSelfClosing,closeEmpty:t.closeEmptyElements};return da(i,Array.isArray(e)?{type:"root",children:e}:e,null,null)}function F9(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return H9(i,n)}}function ki(e){if(e)throw e}/*!
22
+ * Determine if an object is a Buffer
23
+ *
24
+ * @author Feross Aboukhadijeh <https://feross.org>
25
+ * @license MIT
26
+ */var Ea=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},nn=Object.prototype.hasOwnProperty,pa=Object.prototype.toString,Pi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,ji=function(t){return typeof Array.isArray=="function"?Array.isArray(t):pa.call(t)==="[object Array]"},Ui=function(t){if(!t||pa.call(t)!=="[object Object]")return!1;var n=nn.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&nn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||nn.call(t,i)},Bi=function(t,n){Pi&&n.name==="__proto__"?Pi(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Hi=function(t,n){if(n==="__proto__")if(nn.call(t,n)){if(zi)return zi(t,n).value}else return;return t[n]},un=function e(){var t,n,r,i,s,o,a=arguments[0],u=1,c=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=Hi(a,n),i=Hi(t,n),a!==i&&(f&&i&&(Ui(i)||(s=ji(i)))?(s?(s=!1,o=r&&ji(r)?r:[]):o=r&&Ui(r)?r:{},Bi(a,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Bi(a,{name:n,newValue:i}));return a};function pr(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function v9(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(u,...c){const f=e[++s];let h=-1;if(u){o(u);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,f?G9(f,a)(...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),t}}function G9(e,t){let n;return r;function r(...o){const a=e.length>o.length;let u;a&&o.push(i);try{u=e.apply(this,o)}catch(c){const f=c;if(a&&n)throw f;return i(f)}a||(u instanceof Promise?u.then(s,i):u instanceof Error?i(u):s(u))}function i(o,...a){n||(n=!0,t(o,...a))}function s(o){i(null,o)}}class Ye extends Error{constructor(t,n,r){const i=[null,null];let s={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=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))}n&&("type"in n||"position"in n?n.position&&(s=n.position):"start"in n||"end"in n?s=n:("line"in n||"column"in n)&&(s.start=n)),this.name=A1(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack=typeof t=="object"?t.stack:"",this.reason=this.message,this.fatal,this.line=s.start.line,this.column=s.start.column,this.source=i[0],this.ruleId=i[1],this.position=s,this.actual,this.expected,this.file,this.url,this.note}}Ye.prototype.file="";Ye.prototype.name="";Ye.prototype.reason="";Ye.prototype.message="";Ye.prototype.stack="";Ye.prototype.fatal=null;Ye.prototype.column=null;Ye.prototype.line=null;Ye.prototype.source=null;Ye.prototype.ruleId=null;Ye.prototype.position=null;const tt={basename:Y9,dirname:Q9,extname:K9,join:W9,sep:"/"};function Y9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');x1(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.charCodeAt(i)===t.charCodeAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Q9(e){if(x1(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function K9(e){x1(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.charCodeAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function W9(...e){let t=-1,n;for(;++t<e.length;)x1(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Z9(n)}function Z9(e){x1(e);const t=e.charCodeAt(0)===47;let n=V9(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function V9(e,t){let n="",r=0,i=-1,s=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function x1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $9={cwd:q9};function q9(){return"/"}function Ar(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function J9(e){if(typeof e=="string")e=new URL(e);else if(!Ar(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return X9(e)}function X9(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Un=["history","path","basename","stem","extname","dirname"];class e5{constructor(t){let n;t?typeof t=="string"||Ea(t)?n={value:t}:Ar(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=$9.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Un.length;){const s=Un[r];s in n&&n[s]!==void 0&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Un.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){Ar(t)&&(t=J9(t)),Hn(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?tt.dirname(this.path):void 0}set dirname(t){Fi(this.basename,"dirname"),this.path=tt.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?tt.basename(this.path):void 0}set basename(t){Hn(t,"basename"),Bn(t,"basename"),this.path=tt.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?tt.extname(this.path):void 0}set extname(t){if(Bn(t,"extname"),Fi(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=tt.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?tt.basename(this.path,this.extname):void 0}set stem(t){Hn(t,"stem"),Bn(t,"stem"),this.path=tt.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t)}message(t,n,r){const i=new Ye(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function Bn(e,t){if(e&&e.includes(tt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+tt.sep+"`")}function Hn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Fi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Aa=Ma().freeze(),Ia={}.hasOwnProperty;function Ma(){const e=v9(),t=[];let n={},r,i=-1;return s.data=o,s.Parser=void 0,s.Compiler=void 0,s.freeze=a,s.attachers=t,s.use=u,s.parse=c,s.stringify=f,s.run=h,s.runSync=p,s.process=E,s.processSync=M,s;function s(){const S=Ma();let O=-1;for(;++O<t.length;)S.use(...t[O]);return S.data(un(!0,{},n)),S}function o(S,O){return typeof S=="string"?arguments.length===2?(Gn("data",r),n[S]=O,s):Ia.call(n,S)&&n[S]||null:S?(Gn("data",r),n=S,s):n}function a(){if(r)return s;for(;++i<t.length;){const[S,...O]=t[i];if(O[0]===!1)continue;O[0]===!0&&(O[0]=void 0);const I=S.call(s,...O);typeof I=="function"&&e.use(I)}return r=!0,i=Number.POSITIVE_INFINITY,s}function u(S,...O){let I;if(Gn("use",r),S!=null)if(typeof S=="function")v(S,...O);else if(typeof S=="object")Array.isArray(S)?H(S):x(S);else throw new TypeError("Expected usable value, not `"+S+"`");return I&&(n.settings=Object.assign(n.settings||{},I)),s;function P(C){if(typeof C=="function")v(C);else if(typeof C=="object")if(Array.isArray(C)){const[j,...K]=C;v(j,...K)}else x(C);else throw new TypeError("Expected usable value, not `"+C+"`")}function x(C){H(C.plugins),C.settings&&(I=Object.assign(I||{},C.settings))}function H(C){let j=-1;if(C!=null)if(Array.isArray(C))for(;++j<C.length;){const K=C[j];P(K)}else throw new TypeError("Expected a list of plugins, not `"+C+"`")}function v(C,j){let K=-1,V;for(;++K<t.length;)if(t[K][0]===C){V=t[K];break}V?(pr(V[1])&&pr(j)&&(j=un(!0,V[1],j)),V[1]=j):t.push([...arguments])}}function c(S){s.freeze();const O=a1(S),I=s.Parser;return Fn("parse",I),vi(I,"parse")?new I(String(O),O).parse():I(String(O),O)}function f(S,O){s.freeze();const I=a1(O),P=s.Compiler;return vn("stringify",P),Gi(S),vi(P,"compile")?new P(S,I).compile():P(S,I)}function h(S,O,I){if(Gi(S),s.freeze(),!I&&typeof O=="function"&&(I=O,O=void 0),!I)return new Promise(P);P(null,I);function P(x,H){e.run(S,a1(O),v);function v(C,j,K){j=j||S,C?H(C):x?x(j):I(null,j,K)}}}function p(S,O){let I,P;return s.run(S,O,x),Yi("runSync","run",P),I;function x(H,v){ki(H),I=v,P=!0}}function E(S,O){if(s.freeze(),Fn("process",s.Parser),vn("process",s.Compiler),!O)return new Promise(I);I(null,O);function I(P,x){const H=a1(S);s.run(s.parse(H),H,(C,j,K)=>{if(C||!j||!K)v(C);else{const V=s.stringify(j,K);V==null||(r5(V)?K.value=V:K.result=V),v(C,K)}});function v(C,j){C||!j?x(C):P?P(j):O(null,j)}}}function M(S){let O;s.freeze(),Fn("processSync",s.Parser),vn("processSync",s.Compiler);const I=a1(S);return s.process(I,P),Yi("processSync","process",O),I;function P(x){O=!0,ki(x)}}}function vi(e,t){return typeof e=="function"&&e.prototype&&(t5(e.prototype)||t in e.prototype)}function t5(e){let t;for(t in e)if(Ia.call(e,t))return!0;return!1}function Fn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function vn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Gn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Gi(e){if(!pr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Yi(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function a1(e){return n5(e)?e:new e5(e)}function n5(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function r5(e){return typeof e=="string"||Ea(e)}function i5(){return e=>(Pt(e,"listItem",t=>(t.children.length>0&&t.children[0].type==="paragraph"&&(t.children[0]=t.children[0].children[0]),t)),e)}function s5(){const e=ce.useMemo(()=>Aa().use(Pc).use(i5).use(L0).use(G0).use(F9),[]);return ce.useMemo(()=>function(n){return e.process(n).then(String)},[e])}var $e={};const o5=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];$e.REPLACEMENT_CHARACTER="\uFFFD";$e.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};$e.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};$e.isSurrogate=function(e){return e>=55296&&e<=57343};$e.isSurrogatePair=function(e){return e>=56320&&e<=57343};$e.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};$e.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};$e.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||o5.indexOf(e)>-1};var br={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"};const Vt=$e,Yn=br,Lt=Vt.CODE_POINTS,a5=1<<16;class l5{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=a5}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const n=this.html.charCodeAt(this.pos+1);if(Vt.isSurrogatePair(n))return this.pos++,this._addGap(),Vt.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Lt.EOF;return this._err(Yn.surrogateInInputStream),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,n){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,Lt.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Lt.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Lt.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Lt.LINE_FEED):(this.skipNextNewLine=!1,Vt.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Lt.LINE_FEED||t===Lt.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Vt.isControlCodePoint(t)?this._err(Yn.controlCharacterInInputStream):Vt.isUndefinedCodePoint(t)&&this._err(Yn.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}var u5=l5,c5=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const f5=u5,J=$e,kt=c5,N=br,T=J.CODE_POINTS,xt=J.CODE_POINT_SEQUENCES,h5={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},Ca=1<<0,Na=1<<1,Sa=1<<2,T5=Ca|Na|Sa,Q="DATA_STATE",$t="RCDATA_STATE",g1="RAWTEXT_STATE",mt="SCRIPT_DATA_STATE",_a="PLAINTEXT_STATE",Qi="TAG_OPEN_STATE",Ki="END_TAG_OPEN_STATE",Qn="TAG_NAME_STATE",Wi="RCDATA_LESS_THAN_SIGN_STATE",Zi="RCDATA_END_TAG_OPEN_STATE",Vi="RCDATA_END_TAG_NAME_STATE",$i="RAWTEXT_LESS_THAN_SIGN_STATE",qi="RAWTEXT_END_TAG_OPEN_STATE",Ji="RAWTEXT_END_TAG_NAME_STATE",Xi="SCRIPT_DATA_LESS_THAN_SIGN_STATE",es="SCRIPT_DATA_END_TAG_OPEN_STATE",ts="SCRIPT_DATA_END_TAG_NAME_STATE",ns="SCRIPT_DATA_ESCAPE_START_STATE",rs="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Ke="SCRIPT_DATA_ESCAPED_STATE",is="SCRIPT_DATA_ESCAPED_DASH_STATE",Kn="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",j1="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",ss="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",os="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",as="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",ut="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",ls="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",us="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",U1="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",cs="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",et="BEFORE_ATTRIBUTE_NAME_STATE",B1="ATTRIBUTE_NAME_STATE",Wn="AFTER_ATTRIBUTE_NAME_STATE",Zn="BEFORE_ATTRIBUTE_VALUE_STATE",H1="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",F1="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",v1="ATTRIBUTE_VALUE_UNQUOTED_STATE",Vn="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",It="SELF_CLOSING_START_TAG_STATE",l1="BOGUS_COMMENT_STATE",fs="MARKUP_DECLARATION_OPEN_STATE",hs="COMMENT_START_STATE",Ts="COMMENT_START_DASH_STATE",Mt="COMMENT_STATE",ms="COMMENT_LESS_THAN_SIGN_STATE",ds="COMMENT_LESS_THAN_SIGN_BANG_STATE",gs="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Es="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",G1="COMMENT_END_DASH_STATE",Y1="COMMENT_END_STATE",ps="COMMENT_END_BANG_STATE",As="DOCTYPE_STATE",Q1="BEFORE_DOCTYPE_NAME_STATE",K1="DOCTYPE_NAME_STATE",Is="AFTER_DOCTYPE_NAME_STATE",Ms="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Cs="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",$n="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",qn="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",Jn="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Ns="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Ss="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",_s="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",u1="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",c1="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",Xn="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",ct="BOGUS_DOCTYPE_STATE",W1="CDATA_SECTION_STATE",Ds="CDATA_SECTION_BRACKET_STATE",ys="CDATA_SECTION_END_STATE",Qt="CHARACTER_REFERENCE_STATE",Os="NAMED_CHARACTER_REFERENCE_STATE",Ls="AMBIGUOS_AMPERSAND_STATE",xs="NUMERIC_CHARACTER_REFERENCE_STATE",ws="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",bs="DECIMAL_CHARACTER_REFERENCE_START_STATE",Rs="HEXADEMICAL_CHARACTER_REFERENCE_STATE",ks="DECIMAL_CHARACTER_REFERENCE_STATE",f1="NUMERIC_CHARACTER_REFERENCE_END_STATE";function re(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}function I1(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}function We(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}function Rt(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}function St(e){return Rt(e)||We(e)}function er(e){return St(e)||I1(e)}function Da(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_F}function ya(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_F}function m5(e){return I1(e)||Da(e)||ya(e)}function rn(e){return e+32}function oe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Ct(e){return String.fromCharCode(rn(e))}function Ps(e,t){const n=kt[++e];let r=++e,i=r+n-1;for(;r<=i;){const s=r+i>>>1,o=kt[s];if(o<t)r=s+1;else if(o>t)i=s-1;else return kt[s+n]}return-1}class te{constructor(){this.preprocessor=new f5,this.tokenQueue=[],this.allowCDATA=!1,this.state=Q,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,n){this.active=!0,this.preprocessor.write(t,n)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:te.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,n,r){let i=0,s=!0;const o=t.length;let a=0,u=n,c;for(;a<o;a++){if(a>0&&(u=this._consume(),i++),u===T.EOF){s=!1;break}if(c=t[a],u!==c&&(r||u!==rn(c))){s=!1;break}}if(!s)for(;i--;)this._unconsume();return s}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==xt.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==xt.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:te.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:te.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:te.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:te.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:te.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){te.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(N.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===te.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===te.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(N.endTagWithAttributes),t.selfClosing&&this._err(N.endTagWithTrailingSolidus)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,n){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=n:this._createCharacterToken(t,n)}_emitCodePoint(t){let n=te.CHARACTER_TOKEN;re(t)?n=te.WHITESPACE_CHARACTER_TOKEN:t===T.NULL&&(n=te.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,oe(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(te.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=Ps(0,t);for(this.tempBuff.push(t);i>-1;){const s=kt[i],o=s<T5;o&&s&Ca&&(n=s&Na?[kt[++i],kt[++i]]:[kt[++i]],r=0);const u=this._consume();if(this.tempBuff.push(u),r++,u===T.EOF)break;o?i=s&Sa?Ps(i,u):-1:i=u===s?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===H1||this.returnState===F1||this.returnState===v1}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===T.EQUALS_SIGN||er(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=oe(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[Q](t){this.preprocessor.dropParsedChunk(),t===T.LESS_THAN_SIGN?this.state=Qi:t===T.AMPERSAND?(this.returnState=Q,this.state=Qt):t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitCodePoint(t)):t===T.EOF?this._emitEOFToken():this._emitCodePoint(t)}[$t](t){this.preprocessor.dropParsedChunk(),t===T.AMPERSAND?(this.returnState=$t,this.state=Qt):t===T.LESS_THAN_SIGN?this.state=Wi:t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?this._emitEOFToken():this._emitCodePoint(t)}[g1](t){this.preprocessor.dropParsedChunk(),t===T.LESS_THAN_SIGN?this.state=$i:t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?this._emitEOFToken():this._emitCodePoint(t)}[mt](t){this.preprocessor.dropParsedChunk(),t===T.LESS_THAN_SIGN?this.state=Xi:t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?this._emitEOFToken():this._emitCodePoint(t)}[_a](t){this.preprocessor.dropParsedChunk(),t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Qi](t){t===T.EXCLAMATION_MARK?this.state=fs:t===T.SOLIDUS?this.state=Ki:St(t)?(this._createStartTagToken(),this._reconsumeInState(Qn)):t===T.QUESTION_MARK?(this._err(N.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(l1)):t===T.EOF?(this._err(N.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(Q))}[Ki](t){St(t)?(this._createEndTagToken(),this._reconsumeInState(Qn)):t===T.GREATER_THAN_SIGN?(this._err(N.missingEndTagName),this.state=Q):t===T.EOF?(this._err(N.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(N.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(l1))}[Qn](t){re(t)?this.state=et:t===T.SOLIDUS?this.state=It:t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):We(t)?this.currentToken.tagName+=Ct(t):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.tagName+=J.REPLACEMENT_CHARACTER):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=oe(t)}[Wi](t){t===T.SOLIDUS?(this.tempBuff=[],this.state=Zi):(this._emitChars("<"),this._reconsumeInState($t))}[Zi](t){St(t)?(this._createEndTagToken(),this._reconsumeInState(Vi)):(this._emitChars("</"),this._reconsumeInState($t))}[Vi](t){if(We(t))this.currentToken.tagName+=Ct(t),this.tempBuff.push(t);else if(Rt(t))this.currentToken.tagName+=oe(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(re(t)){this.state=et;return}if(t===T.SOLIDUS){this.state=It;return}if(t===T.GREATER_THAN_SIGN){this.state=Q,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState($t)}}[$i](t){t===T.SOLIDUS?(this.tempBuff=[],this.state=qi):(this._emitChars("<"),this._reconsumeInState(g1))}[qi](t){St(t)?(this._createEndTagToken(),this._reconsumeInState(Ji)):(this._emitChars("</"),this._reconsumeInState(g1))}[Ji](t){if(We(t))this.currentToken.tagName+=Ct(t),this.tempBuff.push(t);else if(Rt(t))this.currentToken.tagName+=oe(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(re(t)){this.state=et;return}if(t===T.SOLIDUS){this.state=It;return}if(t===T.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Q;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(g1)}}[Xi](t){t===T.SOLIDUS?(this.tempBuff=[],this.state=es):t===T.EXCLAMATION_MARK?(this.state=ns,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState(mt))}[es](t){St(t)?(this._createEndTagToken(),this._reconsumeInState(ts)):(this._emitChars("</"),this._reconsumeInState(mt))}[ts](t){if(We(t))this.currentToken.tagName+=Ct(t),this.tempBuff.push(t);else if(Rt(t))this.currentToken.tagName+=oe(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(re(t)){this.state=et;return}else if(t===T.SOLIDUS){this.state=It;return}else if(t===T.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Q;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(mt)}}[ns](t){t===T.HYPHEN_MINUS?(this.state=rs,this._emitChars("-")):this._reconsumeInState(mt)}[rs](t){t===T.HYPHEN_MINUS?(this.state=Kn,this._emitChars("-")):this._reconsumeInState(mt)}[Ke](t){t===T.HYPHEN_MINUS?(this.state=is,this._emitChars("-")):t===T.LESS_THAN_SIGN?this.state=j1:t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[is](t){t===T.HYPHEN_MINUS?(this.state=Kn,this._emitChars("-")):t===T.LESS_THAN_SIGN?this.state=j1:t===T.NULL?(this._err(N.unexpectedNullCharacter),this.state=Ke,this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ke,this._emitCodePoint(t))}[Kn](t){t===T.HYPHEN_MINUS?this._emitChars("-"):t===T.LESS_THAN_SIGN?this.state=j1:t===T.GREATER_THAN_SIGN?(this.state=mt,this._emitChars(">")):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.state=Ke,this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Ke,this._emitCodePoint(t))}[j1](t){t===T.SOLIDUS?(this.tempBuff=[],this.state=ss):St(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(as)):(this._emitChars("<"),this._reconsumeInState(Ke))}[ss](t){St(t)?(this._createEndTagToken(),this._reconsumeInState(os)):(this._emitChars("</"),this._reconsumeInState(Ke))}[os](t){if(We(t))this.currentToken.tagName+=Ct(t),this.tempBuff.push(t);else if(Rt(t))this.currentToken.tagName+=oe(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(re(t)){this.state=et;return}if(t===T.SOLIDUS){this.state=It;return}if(t===T.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=Q;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(Ke)}}[as](t){re(t)||t===T.SOLIDUS||t===T.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ut:Ke,this._emitCodePoint(t)):We(t)?(this.tempBuff.push(rn(t)),this._emitCodePoint(t)):Rt(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Ke)}[ut](t){t===T.HYPHEN_MINUS?(this.state=ls,this._emitChars("-")):t===T.LESS_THAN_SIGN?(this.state=U1,this._emitChars("<")):t===T.NULL?(this._err(N.unexpectedNullCharacter),this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[ls](t){t===T.HYPHEN_MINUS?(this.state=us,this._emitChars("-")):t===T.LESS_THAN_SIGN?(this.state=U1,this._emitChars("<")):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.state=ut,this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ut,this._emitCodePoint(t))}[us](t){t===T.HYPHEN_MINUS?this._emitChars("-"):t===T.LESS_THAN_SIGN?(this.state=U1,this._emitChars("<")):t===T.GREATER_THAN_SIGN?(this.state=mt,this._emitChars(">")):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.state=ut,this._emitChars(J.REPLACEMENT_CHARACTER)):t===T.EOF?(this._err(N.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ut,this._emitCodePoint(t))}[U1](t){t===T.SOLIDUS?(this.tempBuff=[],this.state=cs,this._emitChars("/")):this._reconsumeInState(ut)}[cs](t){re(t)||t===T.SOLIDUS||t===T.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Ke:ut,this._emitCodePoint(t)):We(t)?(this.tempBuff.push(rn(t)),this._emitCodePoint(t)):Rt(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(ut)}[et](t){re(t)||(t===T.SOLIDUS||t===T.GREATER_THAN_SIGN||t===T.EOF?this._reconsumeInState(Wn):t===T.EQUALS_SIGN?(this._err(N.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=B1):(this._createAttr(""),this._reconsumeInState(B1)))}[B1](t){re(t)||t===T.SOLIDUS||t===T.GREATER_THAN_SIGN||t===T.EOF?(this._leaveAttrName(Wn),this._unconsume()):t===T.EQUALS_SIGN?this._leaveAttrName(Zn):We(t)?this.currentAttr.name+=Ct(t):t===T.QUOTATION_MARK||t===T.APOSTROPHE||t===T.LESS_THAN_SIGN?(this._err(N.unexpectedCharacterInAttributeName),this.currentAttr.name+=oe(t)):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.name+=J.REPLACEMENT_CHARACTER):this.currentAttr.name+=oe(t)}[Wn](t){re(t)||(t===T.SOLIDUS?this.state=It:t===T.EQUALS_SIGN?this.state=Zn:t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(B1)))}[Zn](t){re(t)||(t===T.QUOTATION_MARK?this.state=H1:t===T.APOSTROPHE?this.state=F1:t===T.GREATER_THAN_SIGN?(this._err(N.missingAttributeValue),this.state=Q,this._emitCurrentToken()):this._reconsumeInState(v1))}[H1](t){t===T.QUOTATION_MARK?this.state=Vn:t===T.AMPERSAND?(this.returnState=H1,this.state=Qt):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=J.REPLACEMENT_CHARACTER):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=oe(t)}[F1](t){t===T.APOSTROPHE?this.state=Vn:t===T.AMPERSAND?(this.returnState=F1,this.state=Qt):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=J.REPLACEMENT_CHARACTER):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=oe(t)}[v1](t){re(t)?this._leaveAttrValue(et):t===T.AMPERSAND?(this.returnState=v1,this.state=Qt):t===T.GREATER_THAN_SIGN?(this._leaveAttrValue(Q),this._emitCurrentToken()):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentAttr.value+=J.REPLACEMENT_CHARACTER):t===T.QUOTATION_MARK||t===T.APOSTROPHE||t===T.LESS_THAN_SIGN||t===T.EQUALS_SIGN||t===T.GRAVE_ACCENT?(this._err(N.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=oe(t)):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):this.currentAttr.value+=oe(t)}[Vn](t){re(t)?this._leaveAttrValue(et):t===T.SOLIDUS?this._leaveAttrValue(It):t===T.GREATER_THAN_SIGN?(this._leaveAttrValue(Q),this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.missingWhitespaceBetweenAttributes),this._reconsumeInState(et))}[It](t){t===T.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInTag),this._emitEOFToken()):(this._err(N.unexpectedSolidusInTag),this._reconsumeInState(et))}[l1](t){t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=J.REPLACEMENT_CHARACTER):this.currentToken.data+=oe(t)}[fs](t){this._consumeSequenceIfMatch(xt.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=hs):this._consumeSequenceIfMatch(xt.DOCTYPE_STRING,t,!1)?this.state=As:this._consumeSequenceIfMatch(xt.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=W1:(this._err(N.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=l1):this._ensureHibernation()||(this._err(N.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(l1))}[hs](t){t===T.HYPHEN_MINUS?this.state=Ts:t===T.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=Q,this._emitCurrentToken()):this._reconsumeInState(Mt)}[Ts](t){t===T.HYPHEN_MINUS?this.state=Y1:t===T.GREATER_THAN_SIGN?(this._err(N.abruptClosingOfEmptyComment),this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Mt))}[Mt](t){t===T.HYPHEN_MINUS?this.state=G1:t===T.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=ms):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.data+=J.REPLACEMENT_CHARACTER):t===T.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=oe(t)}[ms](t){t===T.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ds):t===T.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Mt)}[ds](t){t===T.HYPHEN_MINUS?this.state=gs:this._reconsumeInState(Mt)}[gs](t){t===T.HYPHEN_MINUS?this.state=Es:this._reconsumeInState(G1)}[Es](t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(N.nestedComment),this._reconsumeInState(Y1)}[G1](t){t===T.HYPHEN_MINUS?this.state=Y1:t===T.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Mt))}[Y1](t){t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):t===T.EXCLAMATION_MARK?this.state=ps:t===T.HYPHEN_MINUS?this.currentToken.data+="-":t===T.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Mt))}[ps](t){t===T.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=G1):t===T.GREATER_THAN_SIGN?(this._err(N.incorrectlyClosedComment),this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Mt))}[As](t){re(t)?this.state=Q1:t===T.GREATER_THAN_SIGN?this._reconsumeInState(Q1):t===T.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(Q1))}[Q1](t){re(t)||(We(t)?(this._createDoctypeToken(Ct(t)),this.state=K1):t===T.NULL?(this._err(N.unexpectedNullCharacter),this._createDoctypeToken(J.REPLACEMENT_CHARACTER),this.state=K1):t===T.GREATER_THAN_SIGN?(this._err(N.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(oe(t)),this.state=K1))}[K1](t){re(t)?this.state=Is:t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):We(t)?this.currentToken.name+=Ct(t):t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.name+=J.REPLACEMENT_CHARACTER):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=oe(t)}[Is](t){re(t)||(t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(xt.PUBLIC_STRING,t,!1)?this.state=Ms:this._consumeSequenceIfMatch(xt.SYSTEM_STRING,t,!1)?this.state=Ss:this._ensureHibernation()||(this._err(N.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct)))}[Ms](t){re(t)?this.state=Cs:t===T.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=$n):t===T.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=qn):t===T.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct))}[Cs](t){re(t)||(t===T.QUOTATION_MARK?(this.currentToken.publicId="",this.state=$n):t===T.APOSTROPHE?(this.currentToken.publicId="",this.state=qn):t===T.GREATER_THAN_SIGN?(this._err(N.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct)))}[$n](t){t===T.QUOTATION_MARK?this.state=Jn:t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=J.REPLACEMENT_CHARACTER):t===T.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=oe(t)}[qn](t){t===T.APOSTROPHE?this.state=Jn:t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.publicId+=J.REPLACEMENT_CHARACTER):t===T.GREATER_THAN_SIGN?(this._err(N.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=oe(t)}[Jn](t){re(t)?this.state=Ns:t===T.GREATER_THAN_SIGN?(this.state=Q,this._emitCurrentToken()):t===T.QUOTATION_MARK?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=u1):t===T.APOSTROPHE?(this._err(N.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=c1):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct))}[Ns](t){re(t)||(t===T.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Q):t===T.QUOTATION_MARK?(this.currentToken.systemId="",this.state=u1):t===T.APOSTROPHE?(this.currentToken.systemId="",this.state=c1):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct)))}[Ss](t){re(t)?this.state=_s:t===T.QUOTATION_MARK?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=u1):t===T.APOSTROPHE?(this._err(N.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=c1):t===T.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct))}[_s](t){re(t)||(t===T.QUOTATION_MARK?(this.currentToken.systemId="",this.state=u1):t===T.APOSTROPHE?(this.currentToken.systemId="",this.state=c1):t===T.GREATER_THAN_SIGN?(this._err(N.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Q,this._emitCurrentToken()):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(ct)))}[u1](t){t===T.QUOTATION_MARK?this.state=Xn:t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=J.REPLACEMENT_CHARACTER):t===T.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=oe(t)}[c1](t){t===T.APOSTROPHE?this.state=Xn:t===T.NULL?(this._err(N.unexpectedNullCharacter),this.currentToken.systemId+=J.REPLACEMENT_CHARACTER):t===T.GREATER_THAN_SIGN?(this._err(N.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=oe(t)}[Xn](t){re(t)||(t===T.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Q):t===T.EOF?(this._err(N.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(N.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(ct)))}[ct](t){t===T.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Q):t===T.NULL?this._err(N.unexpectedNullCharacter):t===T.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[W1](t){t===T.RIGHT_SQUARE_BRACKET?this.state=Ds:t===T.EOF?(this._err(N.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[Ds](t){t===T.RIGHT_SQUARE_BRACKET?this.state=ys:(this._emitChars("]"),this._reconsumeInState(W1))}[ys](t){t===T.GREATER_THAN_SIGN?this.state=Q:t===T.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(W1))}[Qt](t){this.tempBuff=[T.AMPERSAND],t===T.NUMBER_SIGN?(this.tempBuff.push(t),this.state=xs):er(t)?this._reconsumeInState(Os):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Os](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[T.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===T.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(N.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ls}[Ls](t){er(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=oe(t):this._emitCodePoint(t):(t===T.SEMICOLON&&this._err(N.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[xs](t){this.charRefCode=0,t===T.LATIN_SMALL_X||t===T.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=ws):this._reconsumeInState(bs)}[ws](t){m5(t)?this._reconsumeInState(Rs):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[bs](t){I1(t)?this._reconsumeInState(ks):(this._err(N.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Rs](t){Da(t)?this.charRefCode=this.charRefCode*16+t-55:ya(t)?this.charRefCode=this.charRefCode*16+t-87:I1(t)?this.charRefCode=this.charRefCode*16+t-48:t===T.SEMICOLON?this.state=f1:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(f1))}[ks](t){I1(t)?this.charRefCode=this.charRefCode*10+t-48:t===T.SEMICOLON?this.state=f1:(this._err(N.missingSemicolonAfterCharacterReference),this._reconsumeInState(f1))}[f1](){if(this.charRefCode===T.NULL)this._err(N.nullCharacterReference),this.charRefCode=T.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(N.characterReferenceOutsideUnicodeRange),this.charRefCode=T.REPLACEMENT_CHARACTER;else if(J.isSurrogate(this.charRefCode))this._err(N.surrogateCharacterReference),this.charRefCode=T.REPLACEMENT_CHARACTER;else if(J.isUndefinedCodePoint(this.charRefCode))this._err(N.noncharacterCharacterReference);else if(J.isControlCodePoint(this.charRefCode)||this.charRefCode===T.CARRIAGE_RETURN){this._err(N.controlCharacterReference);const t=h5[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}te.CHARACTER_TOKEN="CHARACTER_TOKEN";te.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";te.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";te.START_TAG_TOKEN="START_TAG_TOKEN";te.END_TAG_TOKEN="END_TAG_TOKEN";te.COMMENT_TOKEN="COMMENT_TOKEN";te.DOCTYPE_TOKEN="DOCTYPE_TOKEN";te.EOF_TOKEN="EOF_TOKEN";te.HIBERNATION_TOKEN="HIBERNATION_TOKEN";te.MODE={DATA:Q,RCDATA:$t,RAWTEXT:g1,SCRIPT_DATA:mt,PLAINTEXT:_a};te.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null};var Mn=te,qe={};const tr=qe.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};qe.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};qe.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const D=qe.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};qe.SPECIAL_ELEMENTS={[tr.HTML]:{[D.ADDRESS]:!0,[D.APPLET]:!0,[D.AREA]:!0,[D.ARTICLE]:!0,[D.ASIDE]:!0,[D.BASE]:!0,[D.BASEFONT]:!0,[D.BGSOUND]:!0,[D.BLOCKQUOTE]:!0,[D.BODY]:!0,[D.BR]:!0,[D.BUTTON]:!0,[D.CAPTION]:!0,[D.CENTER]:!0,[D.COL]:!0,[D.COLGROUP]:!0,[D.DD]:!0,[D.DETAILS]:!0,[D.DIR]:!0,[D.DIV]:!0,[D.DL]:!0,[D.DT]:!0,[D.EMBED]:!0,[D.FIELDSET]:!0,[D.FIGCAPTION]:!0,[D.FIGURE]:!0,[D.FOOTER]:!0,[D.FORM]:!0,[D.FRAME]:!0,[D.FRAMESET]:!0,[D.H1]:!0,[D.H2]:!0,[D.H3]:!0,[D.H4]:!0,[D.H5]:!0,[D.H6]:!0,[D.HEAD]:!0,[D.HEADER]:!0,[D.HGROUP]:!0,[D.HR]:!0,[D.HTML]:!0,[D.IFRAME]:!0,[D.IMG]:!0,[D.INPUT]:!0,[D.LI]:!0,[D.LINK]:!0,[D.LISTING]:!0,[D.MAIN]:!0,[D.MARQUEE]:!0,[D.MENU]:!0,[D.META]:!0,[D.NAV]:!0,[D.NOEMBED]:!0,[D.NOFRAMES]:!0,[D.NOSCRIPT]:!0,[D.OBJECT]:!0,[D.OL]:!0,[D.P]:!0,[D.PARAM]:!0,[D.PLAINTEXT]:!0,[D.PRE]:!0,[D.SCRIPT]:!0,[D.SECTION]:!0,[D.SELECT]:!0,[D.SOURCE]:!0,[D.STYLE]:!0,[D.SUMMARY]:!0,[D.TABLE]:!0,[D.TBODY]:!0,[D.TD]:!0,[D.TEMPLATE]:!0,[D.TEXTAREA]:!0,[D.TFOOT]:!0,[D.TH]:!0,[D.THEAD]:!0,[D.TITLE]:!0,[D.TR]:!0,[D.TRACK]:!0,[D.UL]:!0,[D.WBR]:!0,[D.XMP]:!0},[tr.MATHML]:{[D.MI]:!0,[D.MO]:!0,[D.MN]:!0,[D.MS]:!0,[D.MTEXT]:!0,[D.ANNOTATION_XML]:!0},[tr.SVG]:{[D.TITLE]:!0,[D.FOREIGN_OBJECT]:!0,[D.DESC]:!0}};const Oa=qe,y=Oa.TAG_NAMES,X=Oa.NAMESPACES;function zs(e){switch(e.length){case 1:return e===y.P;case 2:return e===y.RB||e===y.RP||e===y.RT||e===y.DD||e===y.DT||e===y.LI;case 3:return e===y.RTC;case 6:return e===y.OPTION;case 8:return e===y.OPTGROUP}return!1}function d5(e){switch(e.length){case 1:return e===y.P;case 2:return e===y.RB||e===y.RP||e===y.RT||e===y.DD||e===y.DT||e===y.LI||e===y.TD||e===y.TH||e===y.TR;case 3:return e===y.RTC;case 5:return e===y.TBODY||e===y.TFOOT||e===y.THEAD;case 6:return e===y.OPTION;case 7:return e===y.CAPTION;case 8:return e===y.OPTGROUP||e===y.COLGROUP}return!1}function Z1(e,t){switch(e.length){case 2:if(e===y.TD||e===y.TH)return t===X.HTML;if(e===y.MI||e===y.MO||e===y.MN||e===y.MS)return t===X.MATHML;break;case 4:if(e===y.HTML)return t===X.HTML;if(e===y.DESC)return t===X.SVG;break;case 5:if(e===y.TABLE)return t===X.HTML;if(e===y.MTEXT)return t===X.MATHML;if(e===y.TITLE)return t===X.SVG;break;case 6:return(e===y.APPLET||e===y.OBJECT)&&t===X.HTML;case 7:return(e===y.CAPTION||e===y.MARQUEE)&&t===X.HTML;case 8:return e===y.TEMPLATE&&t===X.HTML;case 13:return e===y.FOREIGN_OBJECT&&t===X.SVG;case 14:return e===y.ANNOTATION_XML&&t===X.MATHML}return!1}class g5{constructor(t,n){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=n}_indexOf(t){let n=-1;for(let r=this.stackTop;r>=0;r--)if(this.items[r]===t){n=r;break}return n}_isInTemplate(){return this.currentTagName===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===X.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===y.H1||t===y.H2||t===y.H3||t===y.H4||t===y.H5||t===y.H6&&n===X.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===y.TD||t===y.TH&&n===X.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==y.TABLE&&this.currentTagName!==y.TEMPLATE&&this.currentTagName!==y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==X.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==y.TBODY&&this.currentTagName!==y.TFOOT&&this.currentTagName!==y.THEAD&&this.currentTagName!==y.TEMPLATE&&this.currentTagName!==y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==X.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==y.TR&&this.currentTagName!==y.TEMPLATE&&this.currentTagName!==y.HTML||this.treeAdapter.getNamespaceURI(this.current)!==X.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===y.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let n=this._indexOf(t);return--n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===y.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===X.HTML)return!0;if(Z1(r,i))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if((n===y.H1||n===y.H2||n===y.H3||n===y.H4||n===y.H5||n===y.H6)&&r===X.HTML)return!0;if(Z1(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===X.HTML)return!0;if((r===y.UL||r===y.OL)&&i===X.HTML||Z1(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===X.HTML)return!0;if(r===y.BUTTON&&i===X.HTML||Z1(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML){if(r===t)return!0;if(r===y.TABLE||r===y.TEMPLATE||r===y.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML){if(n===y.TBODY||n===y.THEAD||n===y.TFOOT)return!0;if(n===y.TABLE||n===y.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML){if(r===t)return!0;if(r!==y.OPTION&&r!==y.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;zs(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;d5(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;zs(this.currentTagName)&&this.currentTagName!==t;)this.pop()}}var E5=g5;const V1=3;class Ve{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=V1){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=this.length-1;o>=0;o--){const a=this.entries[o];if(a.type===Ve.MARKER_ENTRY)break;const u=a.element,c=this.treeAdapter.getAttrList(u);this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s&&c.length===r&&n.push({idx:o,attrs:c})}}return n.length<V1?[]:n}_ensureNoahArkCondition(t){const n=this._getNoahArkConditionCandidates(t);let r=n.length;if(r){const i=this.treeAdapter.getAttrList(t),s=i.length,o=Object.create(null);for(let a=0;a<s;a++){const u=i[a];o[u.name]=u.value}for(let a=0;a<s;a++)for(let u=0;u<r;u++){const c=n[u].attrs[a];if(o[c.name]!==c.value&&(n.splice(u,1),r--),n.length<V1)return}for(let a=r-1;a>=V1-1;a--)this.entries.splice(n[a].idx,1),this.length--}}insertMarker(){this.entries.push({type:Ve.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:Ve.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:Ve.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Ve.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ve.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===Ve.ELEMENT_ENTRY&&r.element===t)return r}return null}}Ve.MARKER_ENTRY="MARKER_ENTRY";Ve.ELEMENT_ENTRY="ELEMENT_ENTRY";var p5=Ve;class La{constructor(t){const n={},r=this._getOverriddenMethods(this,n);for(const i of Object.keys(r))typeof r[i]=="function"&&(n[i]=t[i],t[i]=r[i])}_getOverriddenMethods(){throw new Error("Not implemented")}}La.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i<e.__mixins.length;i++)if(e.__mixins[i].constructor===t)return e.__mixins[i];const r=new t(e,n);return e.__mixins.push(r),r};var pt=La;const A5=pt;class I5 extends A5{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,n){return{advance(){const r=this.pos+1,i=this.html[r];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=r),(i===`
27
+ `||i==="\r"&&this.html[r+1]!==`
28
+ `)&&(t.isEol=!0),t.col=r-t.lineStartPos+1,t.offset=t.droppedBufferSize+r,n.advance.call(this)},retreat(){n.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const r=this.pos;n.dropParsedChunk.call(this);const i=r-this.pos;t.lineStartPos-=i,t.droppedBufferSize+=i,t.offset=t.droppedBufferSize+this.pos}}}}var xa=I5;const js=pt,nr=Mn,M5=xa;class C5 extends js{constructor(t){super(t),this.tokenizer=t,this.posTracker=js.install(t.preprocessor,M5),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,n=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[n.name]=this.currentAttrLocation}_getOverriddenMethods(t,n){const r={_createStartTagToken(){n._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){n._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){n._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(i){n._createDoctypeToken.call(this,i),this.currentToken.location=t.ctLoc},_createCharacterToken(i,s){n._createCharacterToken.call(this,i,s),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){n._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(i){n._createAttr.call(this,i),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(i){n._leaveAttrName.call(this,i),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(i){n._leaveAttrValue.call(this,i),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const i=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentToken.type===nr.EOF_TOKEN?(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset):(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col+1,i.endOffset=t.posTracker.offset+1),n._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const i=this.currentCharacterToken&&this.currentCharacterToken.location;i&&i.endOffset===-1&&(i.endLine=t.posTracker.line,i.endCol=t.posTracker.col,i.endOffset=t.posTracker.offset),n._emitCurrentCharacterToken.call(this)}};return Object.keys(nr.MODE).forEach(i=>{const s=nr.MODE[i];r[s]=function(o){t.ctLoc=t._getCurrentLocation(),n[s].call(this,o)}}),r}}var wa=C5;const N5=pt;class S5 extends N5{constructor(t,n){super(t),this.onItemPop=n.onItemPop}_getOverriddenMethods(t,n){return{pop(){t.onItemPop(this.current),n.pop.call(this)},popAllUpToHtmlElement(){for(let r=this.stackTop;r>0;r--)t.onItemPop(this.items[r]);n.popAllUpToHtmlElement.call(this)},remove(r){t.onItemPop(this.current),n.remove.call(this,r)}}}}var _5=S5;const rr=pt,Us=Mn,D5=wa,y5=_5,O5=qe,ir=O5.TAG_NAMES;class L5 extends rr{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let n=null;this.lastStartTagToken&&(n=Object.assign({},this.lastStartTagToken.location),n.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,n)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,s=this.treeAdapter.getTagName(t),o=n.type===Us.END_TAG_TOKEN&&s===n.tagName,a={};o?(a.endTag=Object.assign({},i),a.endLine=i.endLine,a.endCol=i.endCol,a.endOffset=i.endOffset):(a.endLine=i.startLine,a.endCol=i.startCol,a.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const s=rr.install(this.tokenizer,D5);t.posTracker=s.posTracker,rr.install(this.openElements,y5,{onItemPop:function(o){t._setEndLocation(o,t.currentToken)}})},_runParsingLoop(r){n._runParsingLoop.call(this,r);for(let i=this.openElements.stackTop;i>=0;i--)t._setEndLocation(this.openElements.items[i],t.currentToken)},_processTokenInForeignContent(r){t.currentToken=r,n._processTokenInForeignContent.call(this,r)},_processToken(r){if(t.currentToken=r,n._processToken.call(this,r),r.type===Us.END_TAG_TOKEN&&(r.tagName===ir.HTML||r.tagName===ir.BODY&&this.openElements.hasInScope(ir.BODY)))for(let s=this.openElements.stackTop;s>=0;s--){const o=this.openElements.items[s];if(this.treeAdapter.getTagName(o)===r.tagName){t._setEndLocation(o,r);break}}},_setDocumentType(r){n._setDocumentType.call(this,r);const i=this.treeAdapter.getChildNodes(this.document),s=i.length;for(let o=0;o<s;o++){const a=i[o];if(this.treeAdapter.isDocumentTypeNode(a)){this.treeAdapter.setNodeSourceCodeLocation(a,r.location);break}}},_attachElementToTree(r){t._setStartLocation(r),t.lastStartTagToken=null,n._attachElementToTree.call(this,r)},_appendElement(r,i){t.lastStartTagToken=r,n._appendElement.call(this,r,i)},_insertElement(r,i){t.lastStartTagToken=r,n._insertElement.call(this,r,i)},_insertTemplate(r){t.lastStartTagToken=r,n._insertTemplate.call(this,r);const i=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(i,null)},_insertFakeRootElement(){n._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(r,i){n._appendCommentNode.call(this,r,i);const s=this.treeAdapter.getChildNodes(i),o=s[s.length-1];this.treeAdapter.setNodeSourceCodeLocation(o,r.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=n._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(r){n._insertCharacters.call(this,r);const i=this._shouldFosterParentOnInsertion(),s=i&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,o=this.treeAdapter.getChildNodes(s),a=i&&t.lastFosterParentingLocation.beforeElement?o.indexOf(t.lastFosterParentingLocation.beforeElement)-1:o.length-1,u=o[a];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:f,endCol:h,endOffset:p}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:f,endCol:h,endOffset:p})}else this.treeAdapter.setNodeSourceCodeLocation(u,r.location)}}}}var x5=L5;const w5=pt;class b5 extends w5{constructor(t,n){super(t),this.posTracker=null,this.onParseError=n.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const n={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(n),this.onParseError(n)}_getOverriddenMethods(t){return{_err(n){t._reportError(n)}}}}var Rr=b5;const R5=Rr,k5=xa,P5=pt;class z5 extends R5{constructor(t,n){super(t,n),this.posTracker=P5.install(t,k5),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}}var j5=z5;const U5=Rr,B5=j5,H5=pt;class F5 extends U5{constructor(t,n){super(t,n);const r=H5.install(t.preprocessor,B5,n);this.posTracker=r.posTracker}}var v5=F5;const G5=Rr,Y5=v5,Q5=wa,Bs=pt;class K5 extends G5{constructor(t,n){super(t,n),this.opts=n,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),Bs.install(this.tokenizer,Y5,t.opts),Bs.install(this.tokenizer,Q5)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}}var W5=K5,Z={};const{DOCUMENT_MODE:Z5}=qe;Z.createDocument=function(){return{nodeName:"#document",mode:Z5.NO_QUIRKS,childNodes:[]}};Z.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Z.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Z.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const ba=function(e){return{nodeName:"#text",value:e,parentNode:null}},Ra=Z.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},V5=Z.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Z.setTemplateContent=function(e,t){e.content=t};Z.getTemplateContent=function(e){return e.content};Z.setDocumentType=function(e,t,n,r){let i=null;for(let s=0;s<e.childNodes.length;s++)if(e.childNodes[s].nodeName==="#documentType"){i=e.childNodes[s];break}i?(i.name=t,i.publicId=n,i.systemId=r):Ra(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Z.setDocumentMode=function(e,t){e.mode=t};Z.getDocumentMode=function(e){return e.mode};Z.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Z.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}Ra(e,ba(t))};Z.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:V5(e,ba(t),n)};Z.adoptAttributes=function(e,t){const n=[];for(let r=0;r<e.attrs.length;r++)n.push(e.attrs[r].name);for(let r=0;r<t.length;r++)n.indexOf(t[r].name)===-1&&e.attrs.push(t[r])};Z.getFirstChild=function(e){return e.childNodes[0]};Z.getChildNodes=function(e){return e.childNodes};Z.getParentNode=function(e){return e.parentNode};Z.getAttrList=function(e){return e.attrs};Z.getTagName=function(e){return e.tagName};Z.getNamespaceURI=function(e){return e.namespaceURI};Z.getTextNodeContent=function(e){return e.value};Z.getCommentNodeContent=function(e){return e.data};Z.getDocumentTypeNodeName=function(e){return e.name};Z.getDocumentTypeNodePublicId=function(e){return e.publicId};Z.getDocumentTypeNodeSystemId=function(e){return e.systemId};Z.isTextNode=function(e){return e.nodeName==="#text"};Z.isCommentNode=function(e){return e.nodeName==="#comment"};Z.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Z.isElementNode=function(e){return!!e.tagName};Z.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Z.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Z.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var $5=function(t,n){return n=n||Object.create(null),[t,n].reduce((r,i)=>(Object.keys(i).forEach(s=>{r[s]=i[s]}),r),Object.create(null))},Cn={};const{DOCUMENT_MODE:Kt}=qe,ka="html",q5="about:legacy-compat",J5="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Pa=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],X5=Pa.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),e4=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],za=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],t4=za.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function Hs(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function Fs(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}Cn.isConforming=function(e){return e.name===ka&&e.publicId===null&&(e.systemId===null||e.systemId===q5)};Cn.getDocumentMode=function(e){if(e.name!==ka)return Kt.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===J5)return Kt.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),e4.indexOf(n)>-1)return Kt.QUIRKS;let r=t===null?X5:Pa;if(Fs(n,r))return Kt.QUIRKS;if(r=t===null?za:t4,Fs(n,r))return Kt.LIMITED_QUIRKS}return Kt.NO_QUIRKS};Cn.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+Hs(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+Hs(n)),r};var Ot={};const sr=Mn,kr=qe,R=kr.TAG_NAMES,Ce=kr.NAMESPACES,sn=kr.ATTRS,vs={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},n4="definitionurl",r4="definitionURL",i4={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},s4={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Ce.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Ce.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Ce.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Ce.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Ce.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Ce.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Ce.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Ce.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Ce.XML},"xml:space":{prefix:"xml",name:"space",namespace:Ce.XML},xmlns:{prefix:"",name:"xmlns",namespace:Ce.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Ce.XMLNS}},o4=Ot.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},a4={[R.B]:!0,[R.BIG]:!0,[R.BLOCKQUOTE]:!0,[R.BODY]:!0,[R.BR]:!0,[R.CENTER]:!0,[R.CODE]:!0,[R.DD]:!0,[R.DIV]:!0,[R.DL]:!0,[R.DT]:!0,[R.EM]:!0,[R.EMBED]:!0,[R.H1]:!0,[R.H2]:!0,[R.H3]:!0,[R.H4]:!0,[R.H5]:!0,[R.H6]:!0,[R.HEAD]:!0,[R.HR]:!0,[R.I]:!0,[R.IMG]:!0,[R.LI]:!0,[R.LISTING]:!0,[R.MENU]:!0,[R.META]:!0,[R.NOBR]:!0,[R.OL]:!0,[R.P]:!0,[R.PRE]:!0,[R.RUBY]:!0,[R.S]:!0,[R.SMALL]:!0,[R.SPAN]:!0,[R.STRONG]:!0,[R.STRIKE]:!0,[R.SUB]:!0,[R.SUP]:!0,[R.TABLE]:!0,[R.TT]:!0,[R.U]:!0,[R.UL]:!0,[R.VAR]:!0};Ot.causesExit=function(e){const t=e.tagName;return t===R.FONT&&(sr.getTokenAttr(e,sn.COLOR)!==null||sr.getTokenAttr(e,sn.SIZE)!==null||sr.getTokenAttr(e,sn.FACE)!==null)?!0:a4[t]};Ot.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===n4){e.attrs[t].name=r4;break}};Ot.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=i4[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Ot.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=s4[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Ot.adjustTokenSVGTagName=function(e){const t=o4[e.tagName];t&&(e.tagName=t)};function l4(e,t){return t===Ce.MATHML&&(e===R.MI||e===R.MO||e===R.MN||e===R.MS||e===R.MTEXT)}function u4(e,t,n){if(t===Ce.MATHML&&e===R.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===sn.ENCODING){const i=n[r].value.toLowerCase();return i===vs.TEXT_HTML||i===vs.APPLICATION_XML}}return t===Ce.SVG&&(e===R.FOREIGN_OBJECT||e===R.DESC||e===R.TITLE)}Ot.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===Ce.HTML)&&u4(e,t,n)||(!r||r===Ce.MATHML)&&l4(e,t))};const m=Mn,c4=E5,Gs=p5,f4=x5,h4=W5,Ys=pt,T4=Z,m4=$5,Qs=Cn,it=Ot,Se=br,d4=$e,Ut=qe,l=Ut.TAG_NAMES,w=Ut.NAMESPACES,ja=Ut.ATTRS,g4={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:T4},Ua="hidden",E4=8,p4=3,Ba="INITIAL_MODE",Pr="BEFORE_HTML_MODE",Nn="BEFORE_HEAD_MODE",r1="IN_HEAD_MODE",Ha="IN_HEAD_NO_SCRIPT_MODE",Sn="AFTER_HEAD_MODE",st="IN_BODY_MODE",cn="TEXT_MODE",ye="IN_TABLE_MODE",Fa="IN_TABLE_TEXT_MODE",_n="IN_CAPTION_MODE",w1="IN_COLUMN_GROUP_MODE",ve="IN_TABLE_BODY_MODE",gt="IN_ROW_MODE",Dn="IN_CELL_MODE",zr="IN_SELECT_MODE",jr="IN_SELECT_IN_TABLE_MODE",fn="IN_TEMPLATE_MODE",Ur="AFTER_BODY_MODE",yn="IN_FRAMESET_MODE",va="AFTER_FRAMESET_MODE",Ga="AFTER_AFTER_BODY_MODE",Ya="AFTER_AFTER_FRAMESET_MODE",A4={[l.TR]:gt,[l.TBODY]:ve,[l.THEAD]:ve,[l.TFOOT]:ve,[l.CAPTION]:_n,[l.COLGROUP]:w1,[l.TABLE]:ye,[l.BODY]:st,[l.FRAMESET]:yn},I4={[l.CAPTION]:ye,[l.COLGROUP]:ye,[l.TBODY]:ye,[l.TFOOT]:ye,[l.THEAD]:ye,[l.COL]:w1,[l.TR]:ve,[l.TD]:gt,[l.TH]:gt},Ks={[Ba]:{[m.CHARACTER_TOKEN]:T1,[m.NULL_CHARACTER_TOKEN]:T1,[m.WHITESPACE_CHARACTER_TOKEN]:W,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:x4,[m.START_TAG_TOKEN]:T1,[m.END_TAG_TOKEN]:T1,[m.EOF_TOKEN]:T1},[Pr]:{[m.CHARACTER_TOKEN]:M1,[m.NULL_CHARACTER_TOKEN]:M1,[m.WHITESPACE_CHARACTER_TOKEN]:W,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:w4,[m.END_TAG_TOKEN]:b4,[m.EOF_TOKEN]:M1},[Nn]:{[m.CHARACTER_TOKEN]:C1,[m.NULL_CHARACTER_TOKEN]:C1,[m.WHITESPACE_CHARACTER_TOKEN]:W,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:$1,[m.START_TAG_TOKEN]:R4,[m.END_TAG_TOKEN]:k4,[m.EOF_TOKEN]:C1},[r1]:{[m.CHARACTER_TOKEN]:N1,[m.NULL_CHARACTER_TOKEN]:N1,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:$1,[m.START_TAG_TOKEN]:Ie,[m.END_TAG_TOKEN]:Bt,[m.EOF_TOKEN]:N1},[Ha]:{[m.CHARACTER_TOKEN]:S1,[m.NULL_CHARACTER_TOKEN]:S1,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:$1,[m.START_TAG_TOKEN]:P4,[m.END_TAG_TOKEN]:z4,[m.EOF_TOKEN]:S1},[Sn]:{[m.CHARACTER_TOKEN]:_1,[m.NULL_CHARACTER_TOKEN]:_1,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:$1,[m.START_TAG_TOKEN]:j4,[m.END_TAG_TOKEN]:U4,[m.EOF_TOKEN]:_1},[st]:{[m.CHARACTER_TOKEN]:q1,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Re,[m.END_TAG_TOKEN]:Br,[m.EOF_TOKEN]:ht},[cn]:{[m.CHARACTER_TOKEN]:we,[m.NULL_CHARACTER_TOKEN]:we,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:W,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:W,[m.END_TAG_TOKEN]:gf,[m.EOF_TOKEN]:Ef},[ye]:{[m.CHARACTER_TOKEN]:Tt,[m.NULL_CHARACTER_TOKEN]:Tt,[m.WHITESPACE_CHARACTER_TOKEN]:Tt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Hr,[m.END_TAG_TOKEN]:Fr,[m.EOF_TOKEN]:ht},[Fa]:{[m.CHARACTER_TOKEN]:yf,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:Df,[m.COMMENT_TOKEN]:m1,[m.DOCTYPE_TOKEN]:m1,[m.START_TAG_TOKEN]:m1,[m.END_TAG_TOKEN]:m1,[m.EOF_TOKEN]:m1},[_n]:{[m.CHARACTER_TOKEN]:q1,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Of,[m.END_TAG_TOKEN]:Lf,[m.EOF_TOKEN]:ht},[w1]:{[m.CHARACTER_TOKEN]:hn,[m.NULL_CHARACTER_TOKEN]:hn,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:xf,[m.END_TAG_TOKEN]:wf,[m.EOF_TOKEN]:ht},[ve]:{[m.CHARACTER_TOKEN]:Tt,[m.NULL_CHARACTER_TOKEN]:Tt,[m.WHITESPACE_CHARACTER_TOKEN]:Tt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:bf,[m.END_TAG_TOKEN]:Rf,[m.EOF_TOKEN]:ht},[gt]:{[m.CHARACTER_TOKEN]:Tt,[m.NULL_CHARACTER_TOKEN]:Tt,[m.WHITESPACE_CHARACTER_TOKEN]:Tt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:kf,[m.END_TAG_TOKEN]:Pf,[m.EOF_TOKEN]:ht},[Dn]:{[m.CHARACTER_TOKEN]:q1,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:zf,[m.END_TAG_TOKEN]:jf,[m.EOF_TOKEN]:ht},[zr]:{[m.CHARACTER_TOKEN]:we,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Qa,[m.END_TAG_TOKEN]:Ka,[m.EOF_TOKEN]:ht},[jr]:{[m.CHARACTER_TOKEN]:we,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Uf,[m.END_TAG_TOKEN]:Bf,[m.EOF_TOKEN]:ht},[fn]:{[m.CHARACTER_TOKEN]:q1,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Hf,[m.END_TAG_TOKEN]:Ff,[m.EOF_TOKEN]:Wa},[Ur]:{[m.CHARACTER_TOKEN]:Tn,[m.NULL_CHARACTER_TOKEN]:Tn,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:L4,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:vf,[m.END_TAG_TOKEN]:Gf,[m.EOF_TOKEN]:h1},[yn]:{[m.CHARACTER_TOKEN]:W,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Yf,[m.END_TAG_TOKEN]:Qf,[m.EOF_TOKEN]:h1},[va]:{[m.CHARACTER_TOKEN]:W,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:we,[m.COMMENT_TOKEN]:ge,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Kf,[m.END_TAG_TOKEN]:Wf,[m.EOF_TOKEN]:h1},[Ga]:{[m.CHARACTER_TOKEN]:on,[m.NULL_CHARACTER_TOKEN]:on,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:Ws,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Zf,[m.END_TAG_TOKEN]:on,[m.EOF_TOKEN]:h1},[Ya]:{[m.CHARACTER_TOKEN]:W,[m.NULL_CHARACTER_TOKEN]:W,[m.WHITESPACE_CHARACTER_TOKEN]:wt,[m.COMMENT_TOKEN]:Ws,[m.DOCTYPE_TOKEN]:W,[m.START_TAG_TOKEN]:Vf,[m.END_TAG_TOKEN]:W,[m.EOF_TOKEN]:h1}};class M4{constructor(t){this.options=m4(g4,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Ys.install(this,f4),this.options.onParseError&&Ys.install(this,h4,{onParseError:this.options.onParseError})}parse(t){const n=this.treeAdapter.createDocument();return this._bootstrap(n,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),n}parseFragment(t,n){n||(n=this.treeAdapter.createElement(l.TEMPLATE,w.HTML,[]));const r=this.treeAdapter.createElement("documentmock",w.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===l.TEMPLATE&&this._pushTmplInsertionMode(fn),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const i=this.treeAdapter.getFirstChild(r),s=this.treeAdapter.createDocumentFragment();return this._adoptNodes(i,s),s}_bootstrap(t,n){this.tokenizer=new m(this.options),this.stopped=!1,this.insertionMode=Ba,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new c4(this.document,this.treeAdapter),this.activeFormattingElements=new Gs(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const n=this.tokenizer.getNextToken();if(n.type===m.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===m.WHITESPACE_CHARACTER_TOKEN&&n.chars[0]===`
29
+ `)){if(n.chars.length===1)continue;n.chars=n.chars.substr(1)}if(this._processInputToken(n),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,n){if(this._runParsingLoop(n),n&&this.pendingScript){const r=this.pendingScript;this.pendingScript=null,n(r);return}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==w.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,w.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=cn}switchToPlaintextParsing(){this.insertionMode=cn,this.originalInsertionMode=st,this.tokenizer.state=m.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===l.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===w.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===l.TITLE||t===l.TEXTAREA?this.tokenizer.state=m.MODE.RCDATA:t===l.STYLE||t===l.XMP||t===l.IFRAME||t===l.NOEMBED||t===l.NOFRAMES||t===l.NOSCRIPT?this.tokenizer.state=m.MODE.RAWTEXT:t===l.SCRIPT?this.tokenizer.state=m.MODE.SCRIPT_DATA:t===l.PLAINTEXT&&(this.tokenizer.state=m.MODE.PLAINTEXT)}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,i)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(n,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r),this.openElements.push(r)}_insertFakeElement(t){const n=this.treeAdapter.createElement(t,w.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,w.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n),this.openElements.push(n)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(l.HTML,w.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const n=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(n,t.chars)}}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_shouldProcessTokenInForeignContent(t){const n=this._getAdjustedCurrentElement();if(!n||n===this.document)return!1;const r=this.treeAdapter.getNamespaceURI(n);if(r===w.HTML||this.treeAdapter.getTagName(n)===l.ANNOTATION_XML&&r===w.MATHML&&t.type===m.START_TAG_TOKEN&&t.tagName===l.SVG)return!1;const i=t.type===m.CHARACTER_TOKEN||t.type===m.NULL_CHARACTER_TOKEN||t.type===m.WHITESPACE_CHARACTER_TOKEN;return(t.type===m.START_TAG_TOKEN&&t.tagName!==l.MGLYPH&&t.tagName!==l.MALIGNMARK||i)&&this._isIntegrationPoint(n,w.MATHML)||(t.type===m.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,w.HTML)?!1:t.type!==m.EOF_TOKEN}_processToken(t){Ks[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){Ks[st][t.type](this,t)}_processTokenInForeignContent(t){t.type===m.CHARACTER_TOKEN?qf(this,t):t.type===m.NULL_CHARACTER_TOKEN?$f(this,t):t.type===m.WHITESPACE_CHARACTER_TOKEN?we(this,t):t.type===m.COMMENT_TOKEN?ge(this,t):t.type===m.START_TAG_TOKEN?Jf(this,t):t.type===m.END_TAG_TOKEN&&Xf(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===m.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Se.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),s=this.treeAdapter.getAttrList(t);return it.isIntegrationPoint(r,i,s,n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let n=t,r=null;do if(n--,r=this.activeFormattingElements.entries[n],r.type===Gs.MARKER_ENTRY||this.openElements.contains(r.element)){n++;break}while(n>0);for(let i=n;i<t;i++)r=this.activeFormattingElements.entries[i],this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=gt}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,n=!1;t>=0;t--){let r=this.openElements.items[t];t===0&&(n=!0,this.fragmentContext&&(r=this.fragmentContext));const i=this.treeAdapter.getTagName(r),s=A4[i];if(s){this.insertionMode=s;break}else if(!n&&(i===l.TD||i===l.TH)){this.insertionMode=Dn;break}else if(!n&&i===l.HEAD){this.insertionMode=r1;break}else if(i===l.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===l.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===l.HTML){this.insertionMode=this.headElement?Sn:Nn;break}else if(n){this.insertionMode=st;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===l.TEMPLATE)break;if(i===l.TABLE){this.insertionMode=jr;return}}this.insertionMode=zr}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),s=this.treeAdapter.getNamespaceURI(r);if(i===l.TEMPLATE&&s===w.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===l.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ut.SPECIAL_ELEMENTS[r][n]}}var C4=M4;function N4(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ze(e,t),n}function S4(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function _4(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,o=i;o!==n;s++,o=i){i=e.openElements.getCommonAncestor(o);const a=e.activeFormattingElements.getElementEntry(o),u=a&&s>=p4;!a||u?(u&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(o)):(o=D4(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function D4(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function y4(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===l.TEMPLATE&&i===w.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function O4(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s)}function _t(e,t){let n;for(let r=0;r<E4&&(n=N4(e,t),!!n);r++){const i=S4(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const s=_4(e,i,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(s),y4(e,o,s),O4(e,i,n)}}function W(){}function $1(e){e._err(Se.misplacedDoctype)}function ge(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function L4(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ws(e,t){e._appendCommentNode(t,e.document)}function we(e,t){e._insertCharacters(t)}function h1(e){e.stopped=!0}function x4(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ut.DOCUMENT_MODE.QUIRKS:Qs.getDocumentMode(t);Qs.isConforming(t)||e._err(Se.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Pr}function T1(e,t){e._err(Se.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,Ut.DOCUMENT_MODE.QUIRKS),e.insertionMode=Pr,e._processToken(t)}function w4(e,t){t.tagName===l.HTML?(e._insertElement(t,w.HTML),e.insertionMode=Nn):M1(e,t)}function b4(e,t){const n=t.tagName;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&M1(e,t)}function M1(e,t){e._insertFakeRootElement(),e.insertionMode=Nn,e._processToken(t)}function R4(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.HEAD?(e._insertElement(t,w.HTML),e.headElement=e.openElements.current,e.insertionMode=r1):C1(e,t)}function k4(e,t){const n=t.tagName;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?C1(e,t):e._err(Se.endTagWithoutMatchingOpenElement)}function C1(e,t){e._insertFakeElement(l.HEAD),e.headElement=e.openElements.current,e.insertionMode=r1,e._processToken(t)}function Ie(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.BASE||n===l.BASEFONT||n===l.BGSOUND||n===l.LINK||n===l.META?(e._appendElement(t,w.HTML),t.ackSelfClosing=!0):n===l.TITLE?e._switchToTextParsing(t,m.MODE.RCDATA):n===l.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,m.MODE.RAWTEXT):(e._insertElement(t,w.HTML),e.insertionMode=Ha):n===l.NOFRAMES||n===l.STYLE?e._switchToTextParsing(t,m.MODE.RAWTEXT):n===l.SCRIPT?e._switchToTextParsing(t,m.MODE.SCRIPT_DATA):n===l.TEMPLATE?(e._insertTemplate(t,w.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=fn,e._pushTmplInsertionMode(fn)):n===l.HEAD?e._err(Se.misplacedStartTagForHeadElement):N1(e,t)}function Bt(e,t){const n=t.tagName;n===l.HEAD?(e.openElements.pop(),e.insertionMode=Sn):n===l.BODY||n===l.BR||n===l.HTML?N1(e,t):n===l.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==l.TEMPLATE&&e._err(Se.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Se.endTagWithoutMatchingOpenElement)}function N1(e,t){e.openElements.pop(),e.insertionMode=Sn,e._processToken(t)}function P4(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.BASEFONT||n===l.BGSOUND||n===l.HEAD||n===l.LINK||n===l.META||n===l.NOFRAMES||n===l.STYLE?Ie(e,t):n===l.NOSCRIPT?e._err(Se.nestedNoscriptInHead):S1(e,t)}function z4(e,t){const n=t.tagName;n===l.NOSCRIPT?(e.openElements.pop(),e.insertionMode=r1):n===l.BR?S1(e,t):e._err(Se.endTagWithoutMatchingOpenElement)}function S1(e,t){const n=t.type===m.EOF_TOKEN?Se.openElementsLeftAfterEof:Se.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=r1,e._processToken(t)}function j4(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.BODY?(e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode=st):n===l.FRAMESET?(e._insertElement(t,w.HTML),e.insertionMode=yn):n===l.BASE||n===l.BASEFONT||n===l.BGSOUND||n===l.LINK||n===l.META||n===l.NOFRAMES||n===l.SCRIPT||n===l.STYLE||n===l.TEMPLATE||n===l.TITLE?(e._err(Se.abandonedHeadElementChild),e.openElements.push(e.headElement),Ie(e,t),e.openElements.remove(e.headElement)):n===l.HEAD?e._err(Se.misplacedStartTagForHeadElement):_1(e,t)}function U4(e,t){const n=t.tagName;n===l.BODY||n===l.HTML||n===l.BR?_1(e,t):n===l.TEMPLATE?Bt(e,t):e._err(Se.endTagWithoutMatchingOpenElement)}function _1(e,t){e._insertFakeElement(l.BODY),e.insertionMode=st,e._processToken(t)}function wt(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function q1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function B4(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function H4(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function F4(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,w.HTML),e.insertionMode=yn)}function ft(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML)}function v4(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===l.H1||n===l.H2||n===l.H3||n===l.H4||n===l.H5||n===l.H6)&&e.openElements.pop(),e._insertElement(t,w.HTML)}function Zs(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function G4(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML),n||(e.formElement=e.openElements.current))}function Y4(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],s=e.treeAdapter.getTagName(i);let o=null;if(n===l.LI&&s===l.LI?o=l.LI:(n===l.DD||n===l.DT)&&(s===l.DD||s===l.DT)&&(o=s),o){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(s!==l.ADDRESS&&s!==l.DIV&&s!==l.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML)}function Q4(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.tokenizer.state=m.MODE.PLAINTEXT}function K4(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.framesetOk=!1}function W4(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(l.A);n&&(_t(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Wt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Z4(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(_t(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,w.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Vs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function V4(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ut.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode=ye}function qt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,w.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $4(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,w.HTML);const n=m.getTokenAttr(t,ja.TYPE);(!n||n.toLowerCase()!==Ua)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function $s(e,t){e._appendElement(t,w.HTML),t.ackSelfClosing=!0}function q4(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,w.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function J4(e,t){t.tagName=l.IMG,qt(e,t)}function X4(e,t){e._insertElement(t,w.HTML),e.skipNextNewLine=!0,e.tokenizer.state=m.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=cn}function ef(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,m.MODE.RAWTEXT)}function tf(e,t){e.framesetOk=!1,e._switchToTextParsing(t,m.MODE.RAWTEXT)}function qs(e,t){e._switchToTextParsing(t,m.MODE.RAWTEXT)}function nf(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML),e.framesetOk=!1,e.insertionMode===ye||e.insertionMode===_n||e.insertionMode===ve||e.insertionMode===gt||e.insertionMode===Dn?e.insertionMode=jr:e.insertionMode=zr}function Js(e,t){e.openElements.currentTagName===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML)}function Xs(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,w.HTML)}function rf(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,w.HTML)}function sf(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,w.HTML)}function of(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenMathMLAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,w.MATHML):e._insertElement(t,w.MATHML),t.ackSelfClosing=!0}function af(e,t){e._reconstructActiveFormattingElements(),it.adjustTokenSVGAttrs(t),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,w.SVG):e._insertElement(t,w.SVG),t.ackSelfClosing=!0}function Ue(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,w.HTML)}function Re(e,t){const n=t.tagName;switch(n.length){case 1:n===l.I||n===l.S||n===l.B||n===l.U?Wt(e,t):n===l.P?ft(e,t):n===l.A?W4(e,t):Ue(e,t);break;case 2:n===l.DL||n===l.OL||n===l.UL?ft(e,t):n===l.H1||n===l.H2||n===l.H3||n===l.H4||n===l.H5||n===l.H6?v4(e,t):n===l.LI||n===l.DD||n===l.DT?Y4(e,t):n===l.EM||n===l.TT?Wt(e,t):n===l.BR?qt(e,t):n===l.HR?q4(e,t):n===l.RB?Xs(e,t):n===l.RT||n===l.RP?rf(e,t):n!==l.TH&&n!==l.TD&&n!==l.TR&&Ue(e,t);break;case 3:n===l.DIV||n===l.DIR||n===l.NAV?ft(e,t):n===l.PRE?Zs(e,t):n===l.BIG?Wt(e,t):n===l.IMG||n===l.WBR?qt(e,t):n===l.XMP?ef(e,t):n===l.SVG?af(e,t):n===l.RTC?Xs(e,t):n!==l.COL&&Ue(e,t);break;case 4:n===l.HTML?B4(e,t):n===l.BASE||n===l.LINK||n===l.META?Ie(e,t):n===l.BODY?H4(e,t):n===l.MAIN||n===l.MENU?ft(e,t):n===l.FORM?G4(e,t):n===l.CODE||n===l.FONT?Wt(e,t):n===l.NOBR?Z4(e,t):n===l.AREA?qt(e,t):n===l.MATH?of(e,t):n===l.MENU?sf(e,t):n!==l.HEAD&&Ue(e,t);break;case 5:n===l.STYLE||n===l.TITLE?Ie(e,t):n===l.ASIDE?ft(e,t):n===l.SMALL?Wt(e,t):n===l.TABLE?V4(e,t):n===l.EMBED?qt(e,t):n===l.INPUT?$4(e,t):n===l.PARAM||n===l.TRACK?$s(e,t):n===l.IMAGE?J4(e,t):n!==l.FRAME&&n!==l.TBODY&&n!==l.TFOOT&&n!==l.THEAD&&Ue(e,t);break;case 6:n===l.SCRIPT?Ie(e,t):n===l.CENTER||n===l.FIGURE||n===l.FOOTER||n===l.HEADER||n===l.HGROUP||n===l.DIALOG?ft(e,t):n===l.BUTTON?K4(e,t):n===l.STRIKE||n===l.STRONG?Wt(e,t):n===l.APPLET||n===l.OBJECT?Vs(e,t):n===l.KEYGEN?qt(e,t):n===l.SOURCE?$s(e,t):n===l.IFRAME?tf(e,t):n===l.SELECT?nf(e,t):n===l.OPTION?Js(e,t):Ue(e,t);break;case 7:n===l.BGSOUND?Ie(e,t):n===l.DETAILS||n===l.ADDRESS||n===l.ARTICLE||n===l.SECTION||n===l.SUMMARY?ft(e,t):n===l.LISTING?Zs(e,t):n===l.MARQUEE?Vs(e,t):n===l.NOEMBED?qs(e,t):n!==l.CAPTION&&Ue(e,t);break;case 8:n===l.BASEFONT?Ie(e,t):n===l.FRAMESET?F4(e,t):n===l.FIELDSET?ft(e,t):n===l.TEXTAREA?X4(e,t):n===l.TEMPLATE?Ie(e,t):n===l.NOSCRIPT?e.options.scriptingEnabled?qs(e,t):Ue(e,t):n===l.OPTGROUP?Js(e,t):n!==l.COLGROUP&&Ue(e,t);break;case 9:n===l.PLAINTEXT?Q4(e,t):Ue(e,t);break;case 10:n===l.BLOCKQUOTE||n===l.FIGCAPTION?ft(e,t):Ue(e,t);break;default:Ue(e,t)}}function lf(e){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=Ur)}function uf(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=Ur,e._processToken(t))}function Nt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function cf(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):e.openElements.remove(n))}function ff(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(l.P),e._closePElement()}function hf(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Tf(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function mf(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function eo(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function df(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(l.BR),e.openElements.pop(),e.framesetOk=!1}function Ze(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Br(e,t){const n=t.tagName;switch(n.length){case 1:n===l.A||n===l.B||n===l.I||n===l.S||n===l.U?_t(e,t):n===l.P?ff(e):Ze(e,t);break;case 2:n===l.DL||n===l.UL||n===l.OL?Nt(e,t):n===l.LI?hf(e):n===l.DD||n===l.DT?Tf(e,t):n===l.H1||n===l.H2||n===l.H3||n===l.H4||n===l.H5||n===l.H6?mf(e):n===l.BR?df(e):n===l.EM||n===l.TT?_t(e,t):Ze(e,t);break;case 3:n===l.BIG?_t(e,t):n===l.DIR||n===l.DIV||n===l.NAV||n===l.PRE?Nt(e,t):Ze(e,t);break;case 4:n===l.BODY?lf(e):n===l.HTML?uf(e,t):n===l.FORM?cf(e):n===l.CODE||n===l.FONT||n===l.NOBR?_t(e,t):n===l.MAIN||n===l.MENU?Nt(e,t):Ze(e,t);break;case 5:n===l.ASIDE?Nt(e,t):n===l.SMALL?_t(e,t):Ze(e,t);break;case 6:n===l.CENTER||n===l.FIGURE||n===l.FOOTER||n===l.HEADER||n===l.HGROUP||n===l.DIALOG?Nt(e,t):n===l.APPLET||n===l.OBJECT?eo(e,t):n===l.STRIKE||n===l.STRONG?_t(e,t):Ze(e,t);break;case 7:n===l.ADDRESS||n===l.ARTICLE||n===l.DETAILS||n===l.SECTION||n===l.SUMMARY||n===l.LISTING?Nt(e,t):n===l.MARQUEE?eo(e,t):Ze(e,t);break;case 8:n===l.FIELDSET?Nt(e,t):n===l.TEMPLATE?Bt(e,t):Ze(e,t);break;case 10:n===l.BLOCKQUOTE||n===l.FIGCAPTION?Nt(e,t):Ze(e,t);break;default:Ze(e,t)}}function ht(e,t){e.tmplInsertionModeStackTop>-1?Wa(e,t):e.stopped=!0}function gf(e,t){t.tagName===l.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Ef(e,t){e._err(Se.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Tt(e,t){const n=e.openElements.currentTagName;n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Fa,e._processToken(t)):Be(e,t)}function pf(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,w.HTML),e.insertionMode=_n}function Af(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,w.HTML),e.insertionMode=w1}function If(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.COLGROUP),e.insertionMode=w1,e._processToken(t)}function Mf(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,w.HTML),e.insertionMode=ve}function Cf(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(l.TBODY),e.insertionMode=ve,e._processToken(t)}function Nf(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processToken(t))}function Sf(e,t){const n=m.getTokenAttr(t,ja.TYPE);n&&n.toLowerCase()===Ua?e._appendElement(t,w.HTML):Be(e,t),t.ackSelfClosing=!0}function _f(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,w.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hr(e,t){const n=t.tagName;switch(n.length){case 2:n===l.TD||n===l.TH||n===l.TR?Cf(e,t):Be(e,t);break;case 3:n===l.COL?If(e,t):Be(e,t);break;case 4:n===l.FORM?_f(e,t):Be(e,t);break;case 5:n===l.TABLE?Nf(e,t):n===l.STYLE?Ie(e,t):n===l.TBODY||n===l.TFOOT||n===l.THEAD?Mf(e,t):n===l.INPUT?Sf(e,t):Be(e,t);break;case 6:n===l.SCRIPT?Ie(e,t):Be(e,t);break;case 7:n===l.CAPTION?pf(e,t):Be(e,t);break;case 8:n===l.COLGROUP?Af(e,t):n===l.TEMPLATE?Ie(e,t):Be(e,t);break;default:Be(e,t)}}function Fr(e,t){const n=t.tagName;n===l.TABLE?e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode()):n===l.TEMPLATE?Bt(e,t):n!==l.BODY&&n!==l.CAPTION&&n!==l.COL&&n!==l.COLGROUP&&n!==l.HTML&&n!==l.TBODY&&n!==l.TD&&n!==l.TFOOT&&n!==l.TH&&n!==l.THEAD&&n!==l.TR&&Be(e,t)}function Be(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function Df(e,t){e.pendingCharacterTokens.push(t)}function yf(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function m1(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Be(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Of(e,t){const n=t.tagName;n===l.CAPTION||n===l.COL||n===l.COLGROUP||n===l.TBODY||n===l.TD||n===l.TFOOT||n===l.TH||n===l.THEAD||n===l.TR?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ye,e._processToken(t)):Re(e,t)}function Lf(e,t){const n=t.tagName;n===l.CAPTION||n===l.TABLE?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ye,n===l.TABLE&&e._processToken(t)):n!==l.BODY&&n!==l.COL&&n!==l.COLGROUP&&n!==l.HTML&&n!==l.TBODY&&n!==l.TD&&n!==l.TFOOT&&n!==l.TH&&n!==l.THEAD&&n!==l.TR&&Br(e,t)}function xf(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.COL?(e._appendElement(t,w.HTML),t.ackSelfClosing=!0):n===l.TEMPLATE?Ie(e,t):hn(e,t)}function wf(e,t){const n=t.tagName;n===l.COLGROUP?e.openElements.currentTagName===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=ye):n===l.TEMPLATE?Bt(e,t):n!==l.COL&&hn(e,t)}function hn(e,t){e.openElements.currentTagName===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=ye,e._processToken(t))}function bf(e,t){const n=t.tagName;n===l.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,w.HTML),e.insertionMode=gt):n===l.TH||n===l.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(l.TR),e.insertionMode=gt,e._processToken(t)):n===l.CAPTION||n===l.COL||n===l.COLGROUP||n===l.TBODY||n===l.TFOOT||n===l.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ye,e._processToken(t)):Hr(e,t)}function Rf(e,t){const n=t.tagName;n===l.TBODY||n===l.TFOOT||n===l.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ye):n===l.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ye,e._processToken(t)):(n!==l.BODY&&n!==l.CAPTION&&n!==l.COL&&n!==l.COLGROUP||n!==l.HTML&&n!==l.TD&&n!==l.TH&&n!==l.TR)&&Fr(e,t)}function kf(e,t){const n=t.tagName;n===l.TH||n===l.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,w.HTML),e.insertionMode=Dn,e.activeFormattingElements.insertMarker()):n===l.CAPTION||n===l.COL||n===l.COLGROUP||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR?e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ve,e._processToken(t)):Hr(e,t)}function Pf(e,t){const n=t.tagName;n===l.TR?e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ve):n===l.TABLE?e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ve,e._processToken(t)):n===l.TBODY||n===l.TFOOT||n===l.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ve,e._processToken(t)):(n!==l.BODY&&n!==l.CAPTION&&n!==l.COL&&n!==l.COLGROUP||n!==l.HTML&&n!==l.TD&&n!==l.TH)&&Fr(e,t)}function zf(e,t){const n=t.tagName;n===l.CAPTION||n===l.COL||n===l.COLGROUP||n===l.TBODY||n===l.TD||n===l.TFOOT||n===l.TH||n===l.THEAD||n===l.TR?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),e._processToken(t)):Re(e,t)}function jf(e,t){const n=t.tagName;n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=gt):n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==l.BODY&&n!==l.CAPTION&&n!==l.COL&&n!==l.COLGROUP&&n!==l.HTML&&Br(e,t)}function Qa(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.OPTION?(e.openElements.currentTagName===l.OPTION&&e.openElements.pop(),e._insertElement(t,w.HTML)):n===l.OPTGROUP?(e.openElements.currentTagName===l.OPTION&&e.openElements.pop(),e.openElements.currentTagName===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,w.HTML)):n===l.INPUT||n===l.KEYGEN||n===l.TEXTAREA||n===l.SELECT?e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),n!==l.SELECT&&e._processToken(t)):(n===l.SCRIPT||n===l.TEMPLATE)&&Ie(e,t)}function Ka(e,t){const n=t.tagName;if(n===l.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===l.OPTION&&i===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===l.OPTGROUP&&e.openElements.pop()}else n===l.OPTION?e.openElements.currentTagName===l.OPTION&&e.openElements.pop():n===l.SELECT&&e.openElements.hasInSelectScope(l.SELECT)?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode()):n===l.TEMPLATE&&Bt(e,t)}function Uf(e,t){const n=t.tagName;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processToken(t)):Qa(e,t)}function Bf(e,t){const n=t.tagName;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processToken(t)):Ka(e,t)}function Hf(e,t){const n=t.tagName;if(n===l.BASE||n===l.BASEFONT||n===l.BGSOUND||n===l.LINK||n===l.META||n===l.NOFRAMES||n===l.SCRIPT||n===l.STYLE||n===l.TEMPLATE||n===l.TITLE)Ie(e,t);else{const r=I4[n]||st;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function Ff(e,t){t.tagName===l.TEMPLATE&&Bt(e,t)}function Wa(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function vf(e,t){t.tagName===l.HTML?Re(e,t):Tn(e,t)}function Gf(e,t){t.tagName===l.HTML?e.fragmentContext||(e.insertionMode=Ga):Tn(e,t)}function Tn(e,t){e.insertionMode=st,e._processToken(t)}function Yf(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.FRAMESET?e._insertElement(t,w.HTML):n===l.FRAME?(e._appendElement(t,w.HTML),t.ackSelfClosing=!0):n===l.NOFRAMES&&Ie(e,t)}function Qf(e,t){t.tagName===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==l.FRAMESET&&(e.insertionMode=va))}function Kf(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.NOFRAMES&&Ie(e,t)}function Wf(e,t){t.tagName===l.HTML&&(e.insertionMode=Ya)}function Zf(e,t){t.tagName===l.HTML?Re(e,t):on(e,t)}function on(e,t){e.insertionMode=st,e._processToken(t)}function Vf(e,t){const n=t.tagName;n===l.HTML?Re(e,t):n===l.NOFRAMES&&Ie(e,t)}function $f(e,t){t.chars=d4.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function qf(e,t){e._insertCharacters(t),e.framesetOk=!1}function Jf(e,t){if(it.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==w.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===w.MATHML?it.adjustTokenMathMLAttrs(t):r===w.SVG&&(it.adjustTokenSVGTagName(t),it.adjustTokenSVGAttrs(t)),it.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Xf(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===w.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const eh=C4;var to=/[#.]/g;const th=function(e,t="div"){for(var n=e||"",r={},i=0,s,o,a;i<n.length;)to.lastIndex=i,a=to.exec(n),s=n.slice(i,a?a.index:n.length),s&&(o?o==="#"?r.id=s:Array.isArray(r.className)?r.className.push(s):r.className=[s]:t=s,i+=s.length),a&&(o=a[0],i++);return{type:"element",tagName:t,properties:r,children:[]}},nh=new Set(["menu","submit","reset","button"]),Ir={}.hasOwnProperty;function Za(e,t,n){const r=n&&oh(n);return function(s,o,...a){let u=-1,c;if(s==null)c={type:"root",children:[]},a.unshift(o);else if(c=th(s,t),c.tagName=c.tagName.toLowerCase(),r&&Ir.call(r,c.tagName)&&(c.tagName=r[c.tagName]),rh(o,c.tagName)){let f;for(f in o)Ir.call(o,f)&&ih(e,c.properties,f,o[f])}else a.unshift(o);for(;++u<a.length;)Mr(c.children,a[u]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function rh(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?nh.has(e.type.toLowerCase()):!("value"in e)}function ih(e,t,n,r){const i=Or(e,n);let s=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?i.spaceSeparated?o=xi(r):i.commaSeparated?o=wi(r):i.commaOrSpaceSeparated?o=xi(wi(r).join(" ")):o=no(i,i.property,r):Array.isArray(r)?o=r.concat():o=i.property==="style"?sh(r):String(r);if(Array.isArray(o)){const a=[];for(;++s<o.length;)a[s]=no(i,i.property,o[s]);o=a}i.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function Mr(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Mr(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Mr(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function no(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||D1(n)===D1(t)))return!0}return n}function sh(e){const t=[];let n;for(n in e)Ir.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function oh(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const ah=Za(In,"div"),lh=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],uh=Za(O1,"g",lh);function ch(e){for(var t=String(e),n=[],r=/\r?\n|\r/g;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:i,toOffset:s};function i(o){var a=-1;if(o>-1&&o<n[n.length-1]){for(;++a<n.length;)if(n[a]>o)return{line:a+1,column:o-(n[a-1]||0)+1,offset:o}}return{line:void 0,column:void 0,offset:void 0}}function s(o){var a=o&&o.line,u=o&&o.column,c;return typeof a=="number"&&typeof u=="number"&&!Number.isNaN(a)&&!Number.isNaN(u)&&a-1 in n&&(c=(n[a-2]||0)+u-1||0),c>-1&&c<n[n.length-1]?c:-1}}const fh={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Va={}.hasOwnProperty,ro={"#document":io,"#document-fragment":io,"#text":dh,"#comment":gh,"#documentType":mh};function hh(e,t={}){let n,r;return Ah(t)?(r=t,n={}):(r=t.file,n=t),vr({schema:n.space==="svg"?O1:In,file:r,verbose:n.verbose,location:!1},e)}function vr(e,t){const n=e.schema,r=Va.call(ro,t.nodeName)?ro[t.nodeName]:Eh;let i;"tagName"in t&&(e.schema=t.namespaceURI===fh.svg?O1:In),"childNodes"in t&&(i=Th(e,t.childNodes));const s=r(e,t,i);if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const o=ph(e,s,t.sourceCodeLocation);o&&(e.location=!0,s.position=o)}return e.schema=n,s}function Th(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=vr(e,t[n]);return r}function io(e,t,n){const r={type:"root",children:n,data:{quirksMode:t.mode==="quirks"||t.mode==="limited-quirks"}};if(e.file&&e.location){const i=String(e.file),s=ch(i);r.position={start:s.toPoint(0),end:s.toPoint(i.length)}}return r}function mh(){return{type:"doctype"}}function dh(e,t){return{type:"text",value:t.value}}function gh(e,t){return{type:"comment",value:t.data}}function Eh(e,t,n){const r=e.schema.space==="svg"?uh:ah;let i=-1;const s={};for(;++i<t.attrs.length;){const a=t.attrs[i];s[(a.prefix?a.prefix+":":"")+a.name]=a.value}const o=r(t.tagName,s,n);if(o.tagName==="template"&&"content"in t){const a=t.sourceCodeLocation,u=a&&a.startTag&&Jt(a.startTag),c=a&&a.endTag&&Jt(a.endTag),f=vr(e,t.content);u&&c&&e.file&&(f.position={start:u.end,end:c.start}),o.content=f}return o}function ph(e,t,n){const r=Jt(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let o;for(o in n.attrs)Va.call(n.attrs,o)&&(s[Or(e.schema,o).property]=Jt(n.attrs[o]));t.data={position:{opening:Jt(n.startTag),closing:n.endTag?Jt(n.endTag):null,properties:s}}}}return r}function Jt(e){const t=so({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=so({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:null}function so(e){return e.line&&e.column?e:null}function Ah(e){return"messages"in e}const Ih={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},Mh="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",Ch={2:!0,1:!1,0:null};function Nh(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Parser:r});function r(i,s){const o=n.fragment?"parseFragment":"parse",a=n.emitParseErrors?c:null,u=new eh({sourceCodeLocationInfo:!0,onParseError:a,scriptingEnabled:!1});return hh(u[o](i),{space:n.space,file:s,verbose:n.verbose});function c(f){const h=f.code,p=Sh(h),E=n[p],M=E==null?!0:E,S=typeof M=="number"?M:M?1:0,O={line:f.startLine,column:f.startCol,offset:f.startOffset},I={line:f.endLine,column:f.endCol,offset:f.endOffset};if(S){const x=Ih[p]||{reason:"",description:"",url:""},H=s.message(P(x.reason),{start:O,end:I});H.source="parse-error",H.ruleId=h,H.fatal=Ch[S],H.note=P(x.description),H.url="url"in x&&x.url===!1?null:Mh+h}function P(x){return x.replace(/%c(?:-(\d+))?/g,(H,v)=>{const C=v?-Number.parseInt(v,10):0,j=i.charAt(f.startOffset+C);return j==="`"?"` ` `":j}).replace(/%x/g,()=>"0x"+i.charCodeAt(f.startOffset).toString(16).toUpperCase())}}}}function Sh(e){return e.replace(/-[a-z]/g,t=>t.charAt(1).toUpperCase())}const _h=se(["audio","canvas","embed","iframe","img","math","object","picture","svg","video"]),Dh=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],yh=["button","input","select","textarea"],Oh=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Gr=Et(["doctype","comment"]);function Lh(e={}){const t=zh(e.newlines?kh:Ph);return n=>{$a(n,{collapse:t,whitespace:"normal"})}}function $a(e,t){if("children"in e){const n=Object.assign({},t);return(e.type==="root"||Xa(e))&&(n.before=!0,n.after=!0),n.whitespace=jh(e,t),wh(e,n)}if(e.type==="text"){if(t.whitespace==="normal")return xh(e,t);t.whitespace==="nowrap"&&(e.value=t.collapse(e.value))}return{remove:!1,ignore:Gr(e),stripAtStart:!1}}function xh(e,t){const n=t.collapse(e.value),r={remove:!1,ignore:!1,stripAtStart:!1};let i=0,s=n.length;return t.before&&oo(n.charAt(0))&&i++,i!==s&&oo(n.charAt(s-1))&&(t.after?s--:r.stripAtStart=!0),i===s?r.remove=!0:e.value=n.slice(i,s),r}function wh(e,t){let n=t.before;const r=t.after,i=e.children;let s=i.length,o=-1;for(;++o<s;){const a=$a(i[o],Object.assign({},t,{before:n,after:qa(i,o,r)}));a.remove?(i.splice(o,1),o--,s--):a.ignore||(n=a.stripAtStart),Ja(i[o])&&(n=!1)}return{remove:!1,ignore:!1,stripAtStart:Boolean(n||r)}}function qa(e,t,n){for(;++t<e.length;){const r=e[t];let i=bh(r);if(i===void 0&&"children"in r&&!Rh(r)&&(i=qa(r.children,-1)),typeof i=="boolean")return i}return n}function bh(e){if(e.type==="element"){if(Ja(e))return!1;if(Xa(e))return!0}else if(e.type==="text"){if(!xr(e))return!1}else if(!Gr(e))return!1}function Ja(e){return _h(e)||le(e,yh)}function Xa(e){return le(e,Dh)}function Rh(e){return Boolean("properties"in e&&e.properties&&e.properties.hidden)||Gr(e)||le(e,Oh)}function oo(e){return e===" "||e===`
30
+ `}function kh(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function Ph(){return" "}function zh(e){return t;function t(n){return String(n).replace(/[\t\n\v\f\r ]+/g,e)}}function jh(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}function k(e,t){const n=t.children||[],r=[];let i=-1,s=n.length,o=n[i+1];for(;o&&o.type==="element"&&o.tagName==="br";)i++,o=n[i+1];for(o=n[s-1];s-1>i&&o&&o.type==="element"&&o.tagName==="br";)s--,o=n[s-1];for(;++i<s;){const a=el(e,n[i],t);Array.isArray(a)?r.push(...a):a&&r.push(a)}return r}const mn={}.hasOwnProperty;function De(e,t){return e.wrapText?t:t.replace(/\r?\n|\r/g," ")}function el(e,t,n){let r;if(t.type==="element"){if(t.properties&&t.properties.dataMdast==="ignore")return;mn.call(e.handlers,t.tagName)&&(r=e.handlers[t.tagName])}else mn.call(e.handlers,t.type)&&(r=e.handlers[t.type]);return typeof r=="function"?r(e,t,n):Uh(e,t)}function Uh(e,t){return typeof t.value=="string"?e(t,"text",De(e,t.value)):k(e,t)}const tl=Et(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function nl(e){return rl(e,t);function t(n){const r=n[0];return n.length===1&&r.type==="text"&&(r.value===" "||r.value===`
31
+ `)?[]:{type:"paragraph",children:n}}}function On(e){let t=-1,n;for(;++t<e.length;)if(n=e[t],!tl(n)||"children"in n&&On(n.children))return!0;return!1}function rl(e,t,n){const r=n||Fh,i=Bh(e);let s=[],o=-1,a,u;for(;++o<i.length;)u=i[o],tl(u)?(a||(a=[]),a.push(u)):(a&&(s=s.concat(t(a)),a=void 0),s=s.concat(r(u)));return a&&(s=s.concat(t(a))),s}function Bh(e){let t=[],n=-1,r;for(;++n<e.length;)r=e[n],(r.type==="delete"||r.type==="link")&&On(r.children)?t=t.concat(Hh(r)):t.push(r);return t}function Hh(e){return rl(e.children,n,t);function t(r){if("children"in r&&"children"in e){const{children:i,...s}=e;return{...r,children:[{...un(!0,{},s),children:r.children}]}}return{...r}}function n(r){const{children:i,...s}=e;return{...un(!0,{},s),children:r}}}function Fh(e){return e}function ae(e,t){return nl(k(e,t))}function zt(e,t){return t==null?"":e.frozenBaseUrl?String(new URL(t,e.frozenBaseUrl)):t}function vh(e,t){const n=t.properties;return e(t,"link",{title:n.title||null,url:zt(e,String(n.href||"")||null)},k(e,t))}function Gh(e,t){e.baseFound||(e.frozenBaseUrl=String(t.properties&&t.properties.href||"")||null,e.baseFound=!0)}function Yh(e,t){return e(t,"blockquote",ae(e,t))}function Qh(e,t){return e.wrapText?e(t,"break"):e(t,"text"," ")}var ao=function(e,t,n){var r=Et(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t];return null};const lo=/\n/g,uo=/[\t ]+/g,Cr=se("br"),Kh=se("p"),co=se(["th","td"]),fo=se("tr"),Wh=se(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",qh,Jh]),il=se(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function b1(e,t={}){const n=e.children||[],r=il(e),i=al(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1});let s=-1,o,a,u;if(e.type==="text"||e.type==="comment")return ol(e,{whitespace:i,breakBefore:!0,breakAfter:!0});for(o=[];++s<n.length;)o=o.concat(sl(n[s],e,{whitespace:i,breakBefore:s?null:r,breakAfter:s<n.length-1?Cr(n[s+1]):r}));s=-1;const c=[];for(;++s<o.length;)a=o[s],typeof a=="number"?u!==void 0&&a>u&&(u=a):a&&(u&&c.push(`
32
+ `.repeat(u)),u=0,c.push(a));return c.join("")}function sl(e,t,n){return e.type==="element"?Zh(e,t,n):e.type==="text"?[n.whitespace==="normal"?ol(e,n):Vh(e)]:[]}function Zh(e,t,n){const r=al(e,n),i=e.children||[];let s=-1,o=[],a,u;if(Wh(e))return o;for(Cr(e)||fo(e)&&ao(t,e,fo)?u=`
33
+ `:Kh(e)?(a=2,u=2):il(e)&&(a=1,u=1);++s<i.length;)o=o.concat(sl(i[s],e,{whitespace:r,breakBefore:s?void 0:a,breakAfter:s<i.length-1?Cr(i[s+1]):u}));return co(e)&&ao(t,e,co)&&o.push(" "),a&&o.unshift(a),u&&o.push(u),o}function ol(e,t){const n=String(e.value),r=[],i=[];let s=0,o=-1,a,u,c;for(;s<n.length;)lo.lastIndex=s,a=lo.exec(n),u=a?a.index:n.length,r.push($h(n.slice(s,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),t.breakBefore,t.breakAfter)),s=u+1;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),c=""):r[o]&&(c&&i.push(c),i.push(r[o]),c=" ");return i.join("")}function Vh(e){return String(e.value)}function $h(e,t,n){const r=[];let i=0,s,o;for(;i<e.length;)uo.lastIndex=i,s=uo.exec(e),o=s?s.index:e.length,!i&&!o&&s&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=s?o+s[0].length:o;return i!==o&&!n&&r.push(""),r.join(" ")}function al(e,t){let n;if(e.type==="element")switch(n=e.properties||{},e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}function qh(e){return Boolean((e.properties||{}).hidden)}function Jh(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function Xh(e){return String(e).replace(/\n+$/,"")}const or="language-",eT=se("pre"),tT=se("code");function J1(e,t){const n=t.children;let r=-1,i,s;if(eT(t))for(;++r<n.length;){const o=n[r];if(tT(o)&&o.properties&&o.properties.className&&Array.isArray(o.properties.className)){i=o.properties.className;break}}if(i){for(r=-1;++r<i.length;)if(String(i[r]).slice(0,or.length)===or){s=String(i[r]).slice(or.length);break}}return e(t,"code",{lang:s||null,meta:null},Xh(De(e,b1(t))))}function nT(e,t){return e(t,"html","<!--"+De(e,t.value)+"-->")}function ar(e,t){return e(t,"delete",k(e,t))}function Yr(e){let t=-1;if(e.length>1){for(;++t<e.length;)if(e[t].spread)return!0}return!1}function ll(e,t){const n=k(e,t);let r=-1;for(;++r<n.length;){const i=n[r];i.type!=="listItem"&&(n[r]={type:"listItem",spread:!1,checked:null,children:[i]})}return n}const rT=se("div"),iT=se("dt"),sT=se("dd");function oT(e,t){const n=t.children;let r=-1,i=[];const s=[];let o={titles:[],definitions:[]},a,u;for(;++r<n.length;)a=n[r],i=i.concat(rT(a)?a.children:a);for(r=-1;++r<i.length;)a=i[r],iT(a)?(sT(i[r-1])&&(s.push(o),o={titles:[],definitions:[]}),o.titles.push(a)):o.definitions.push(a);s.push(o),r=-1;const c=[];for(;++r<s.length;)u=[...ho(e,s[r].titles),...ho(e,s[r].definitions)],u.length>0&&c.push({type:"listItem",spread:u.length>1,checked:null,children:u});if(c.length>0)return e(t,"list",{ordered:!1,start:null,spread:Yr(c)},c)}function ho(e,t){const n=ll(e,{type:"element",tagName:"x",children:t});return n.length===0?[]:n.length===1?n[0].children:[{type:"list",ordered:!1,start:null,spread:Yr(n),children:n}]}function X1(e,t){return e(t,"emphasis",k(e,t))}function Zt(e,t){const n=Number(t.tagName.charAt(1))||1,r=e.wrapText;e.wrapText=!1;const i=e(t,"heading",{depth:n},k(e,t));return e.wrapText=r,i}function aT(e,t){return e(t,"thematicBreak")}function lT(e,t){const n=t.properties,r=String(n.src||""),i=String(n.title||"");if(r&&i)return{type:"link",title:null,url:zt(e,r),children:[{type:"text",value:De(e,i)}]}}function To(e,t){const n=t.properties;return e(t,"image",{url:zt(e,String(n.src||"")||null),title:n.title||null,alt:n.alt||""})}function d1(e,t){return e(t,"inlineCode",De(e,b1(t)))}var uT={}.hasOwnProperty;function Qr(e,t){var n=t&&e&&typeof e=="object"&&e.type==="element"&&e.properties&&uT.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const cT=se("option");function ul(e,t,n){const r=n||t.properties;let i=cl(t);const s=Math.min(Number.parseInt(String(r.size),10),0)||(r.multiple?4:1);let o=-1;const a=[],u=[];for(;++o<i.length;)Qr(i[o],"selected")&&a.push(i[o]);for(i=(a.length>0?a:i).slice(0,s),o=-1;++o<i.length;){const f=i[o],h=De(e,b1(f)),p=f.properties,E=h||String(p.label||""),M=String(p.value||"")||h;u.push([M,E===M?null:E])}return u}function cl(e){const t=e.children;let n=-1,r=[],i;for(;++n<t.length;)i=t[n],Array.isArray(i.children)&&(r=r.concat(cl(i))),cT(i)&&!Qr(i,"disabled")&&r.push(i);return r}const fT=se("datalist");function hT(e,t){const n=t.properties;let r=String(n.value||n.placeholder||"");const i=[],s=[];let o=[],a=-1,u;if(!(n.disabled||n.type==="hidden"||n.type==="file")){if(n.type==="checkbox"||n.type==="radio")return e(t,"text",De(e,e[n.checked?"checked":"unchecked"]));if(n.type==="image")return n.alt||r?e(t,"image",{url:zt(e,String(n.src||"")||null),title:De(e,String(n.title||""))||null,alt:De(e,String(n.alt||r))}):[];if(r?o=[[r,null]]:n.type!=="password"&&n.type!=="file"&&n.type!=="submit"&&n.type!=="reset"&&n.type!=="button"&&n.list&&(u=String(n.list).toUpperCase(),mn.call(e.nodeById,u)&&fT(e.nodeById[u])&&(o=ul(e,e.nodeById[u],n))),o.length!==0){if(n.type==="password"&&(o[0]=["\u2022".repeat(o[0][0].length),null]),n.type==="url"||n.type==="email"){for(;++a<o.length;)r=zt(e,o[a][0]),i.push(e(t,"link",{title:null,url:De(e,n.type==="email"?"mailto:"+r:r)},[{type:"text",value:De(e,o[a][1]||r)}])),a!==o.length-1&&i.push({type:"text",value:", "});return i}for(;++a<o.length;)s.push(o[a][1]?o[a][1]+" ("+o[a][0]+")":o[a][0]);return e(t,"text",De(e,s.join(", ")))}}}const TT=se("p"),mT=se("input");function lr(e,t){const n=t.children[0];let r=null,i,s;TT(n)&&(i=n.children[0],mT(i)&&i.properties&&(i.properties.type==="checkbox"||i.properties.type==="radio")&&(r=Boolean(i.properties.checked),s={...t,children:[{...n,children:n.children.slice(1)},...t.children.slice(1)]}));const o=ae(e,s||t);return e(t,"listItem",{spread:o.length>1,checked:r},o)}const dT=se("ol");function ur(e,t){const n=dT(t),r=ll(e,t);let i=null;return n&&(i=Qr(t,"start")?Number.parseInt(String(t.properties.start),10):1),e(t,"list",{ordered:n,start:i,spread:Yr(r)},r)}const gT=se("source"),ET=se("video");function mo(e,t){let n=k(e,t);const r=t.properties,i=ET(t)&&String(r.poster||"");let s=String(r.src||""),o=-1,a=!1,u;if(Pt({type:"root",children:n},"link",c),a||On(n))return n;for(;!s&&++o<t.children.length;)u=t.children[o],gT(u)&&(s=String(u.properties.src||""));return i&&(n=[{type:"image",title:null,url:zt(e,i),alt:dn({children:n})}]),{type:"link",title:t.properties.title||null,url:zt(e,s),children:n};function c(){return a=!0,ln}}function go(e,t){const n=k(e,t);if(n.length>0)return e(t,"paragraph",n)}function pT(e,t){const n=e.quotes[e.qNesting%e.quotes.length];e.qNesting++;const r=k(e,t);return e.qNesting--,r.unshift({type:"text",value:n.charAt(0)}),r.push({type:"text",value:n.length>1?n.charAt(1):n}),r}function AT(e,t){let n=k(e,t);return(e.document||On(n))&&(n=nl(n)),e(t,"root",n)}function IT(e,t){const n=ul(e,t);let r=-1;const i=[];let s;for(;++r<n.length;)s=n[r],i.push(s[1]?s[1]+" ("+s[0]+")":s[0]);if(i.length>0)return e(t,"text",De(e,i.join(", ")))}function Eo(e,t){return e(t,"strong",k(e,t))}function po(e,t){const n=e.wrapText;e.wrapText=!1;const r=e(t,"tableCell",k(e,t));if(t.properties&&(t.properties.rowSpan||t.properties.colSpan)){const i=r.data||(r.data={});t.properties.rowSpan&&(i.rowSpan=t.properties.rowSpan),t.properties.colSpan&&(i.colSpan=t.properties.colSpan)}return e.wrapText=n,r}function MT(e,t){return e(t,"tableRow",k(e,t))}const CT=se("thead"),NT=se("tr"),ST=se(["th","td"]);function _T(e,t){if(e.inTable)return e(t,"text",De(e,b1(t)));e.inTable=!0;const{headless:n,align:r}=DT(t),i=yT(k(e,t),n);let s=1,o=-1;for(;++o<i.length;){const u=i[o].children;let c=-1;for(;++c<u.length;){const f=u[c];if(f.data){const h=Number.parseInt(String(f.data.colSpan),10)||1,p=Number.parseInt(String(f.data.rowSpan),10)||1;if(h>1||p>1){let E=o-1;for(;++E<o+p;){let M=c-1;for(;++M<c+h&&i[E];){const S=[];(E!==o||M!==c)&&S.push({type:"tableCell",children:[]}),i[E].children.splice(M,0,...S)}}}"colSpan"in f.data&&delete f.data.colSpan,"rowSpan"in f.data&&delete f.data.rowSpan,Object.keys(f.data).length===0&&delete f.data}}u.length>s&&(s=u.length)}for(o=-1;++o<i.length;){const u=i[o].children;let c=u.length-1;for(;++c<s;)u.push({type:"tableCell",children:[]})}let a=r.length-1;for(;++a<s;)r.push(null);return e.inTable=!1,e(t,"table",{align:r},i)}function DT(e){let t=!0,n=0,r=0;const i=[null];return Pt(e,"element",s=>{if(s.tagName==="table"&&e!==s)return Fo;ST(s)&&s.properties?(i[r]||(i[r]=String(s.properties.align||"")||null),t&&n<2&&s.tagName==="th"&&(t=!1),r++):CT(s)?t=!1:NT(s)&&(n++,r=0)}),{align:i,headless:t}}function yT(e,t){let n=-1;const r=[];let i;for(t&&r.push({type:"tableRow",children:[]});++n<e.length;){const s=e[n];s.type==="tableRow"?(i&&(s.children.unshift(...i),i=void 0),r.push(s)):(i||(i=[]),i.push(s))}for(i&&r[r.length-1].children.push(...i),n=-1;++n<r.length;)r[n].children=OT(r[n].children);return r}function OT(e){const t=[];let n=-1,r,i;for(;++n<e.length;)r=e[n],r.type==="tableCell"?(i&&(r.children.unshift(...i),i=void 0),t.push(r)):(i||(i=[]),i.push(r));return i&&(r=t[t.length-1],r||(r={type:"tableCell",children:[]},t.push(r)),r.children.push(...i)),t}function LT(e,t){return e(t,"text",De(e,t.value))}function xT(e,t){return e(t,"text",De(e,b1(t)))}function wT(e,t){return e(t,"text","\u200B")}const Ao={root:AT,text:LT,comment:nT,doctype:Y,applet:Y,area:Y,basefont:Y,bgsound:Y,caption:Y,col:Y,colgroup:Y,command:Y,content:Y,datalist:Y,dialog:Y,element:Y,embed:Y,frame:Y,frameset:Y,isindex:Y,keygen:Y,link:Y,math:Y,menu:Y,menuitem:Y,meta:Y,nextid:Y,noembed:Y,noframes:Y,optgroup:Y,option:Y,param:Y,script:Y,shadow:Y,source:Y,spacer:Y,style:Y,svg:Y,template:Y,title:Y,track:Y,abbr:k,acronym:k,bdi:k,bdo:k,big:k,blink:k,button:k,canvas:k,cite:k,data:k,details:k,dfn:k,font:k,ins:k,label:k,map:k,marquee:k,meter:k,nobr:k,noscript:k,object:k,output:k,progress:k,rb:k,rbc:k,rp:k,rt:k,rtc:k,ruby:k,slot:k,small:k,span:k,sup:k,sub:k,tbody:k,tfoot:k,thead:k,time:k,address:ae,article:ae,aside:ae,body:ae,center:ae,div:ae,fieldset:ae,figcaption:ae,figure:ae,form:ae,footer:ae,header:ae,hgroup:ae,html:ae,legend:ae,main:ae,multicol:ae,nav:ae,picture:ae,section:ae,a:vh,audio:mo,b:Eo,base:Gh,blockquote:Yh,br:Qh,code:d1,dir:ur,dl:oT,dt:lr,dd:lr,del:ar,em:X1,h1:Zt,h2:Zt,h3:Zt,h4:Zt,h5:Zt,h6:Zt,hr:aT,i:X1,iframe:lT,img:To,image:To,input:hT,kbd:d1,li:lr,listing:J1,mark:X1,ol:ur,p:go,plaintext:J1,pre:J1,q:pT,s:ar,samp:d1,select:IT,strike:ar,strong:Eo,summary:go,table:_T,td:po,textarea:xT,th:po,tr:MT,tt:d1,u:X1,ul:ur,var:d1,video:mo,wbr:wT,xmp:J1};function Y(){}const bT=Et(["heading","paragraph","root"]);function fl(e,t={}){const n={};let r;const i=Object.assign((a,u,c,f)=>{let h;typeof c=="string"||Array.isArray(c)?(f=c,h={}):h=c;const p={type:u,...h};return typeof f=="string"?p.value=f:f&&(p.children=f),a.position&&(p.position=a.position),p},{nodeById:n,baseFound:!1,inTable:!1,wrapText:!0,frozenBaseUrl:null,qNesting:0,handlers:t.handlers?{...Ao,...t.handlers}:Ao,document:t.document,checked:t.checked||"[x]",unchecked:t.unchecked||"[ ]",quotes:t.quotes||['"']});Pt(e,"element",a=>{const u=a.properties&&"id"in a.properties&&String(a.properties.id).toUpperCase();u&&!mn.call(n,u)&&(n[u]=a)}),Lh({newlines:t.newlines===!0})(e);const s=el(i,e,void 0);return s?Array.isArray(s)?r={type:"root",children:s}:r=s:r={type:"root",children:[]},Pt(r,"text",o),r;function o(a,u,c){if(u===null||!c)return;const f=c.children[u-1];if(f&&f.type===a.type)return f.value+=a.value,c.children.splice(u,1),f.position&&a.position&&(f.position.end=a.position.end),u-1;if(a.value=a.value.replace(/[\t ]*(\r?\n|\r)[\t ]*/,"$1"),c&&bT(c)&&(u||(a.value=a.value.replace(/^[\t ]+/,"")),u===c.children.length-1&&(a.value=a.value.replace(/[\t ]+$/,""))),!a.value)return c.children.splice(u,1),u}}const RT=function(e,t){let n,r;return typeof e=="function"?(r=e,n=t||{}):n=e||{},(n.document===void 0||n.document===null)&&(n=Object.assign({},n,{document:!0})),r?PT(r,n):zT(n)},kT=RT;function PT(e,t){return(n,r,i)=>{e.run(fl(n,t),r,s=>{i(s)})}}function zT(e={}){return t=>fl(t,e)}var Io={}.hasOwnProperty;function jT(e,t){var n=t||{};function r(i){var s=r.invalid,o=r.handlers;if(i&&Io.call(i,e)&&(s=Io.call(o,i[e])?o[i[e]]:r.unknown),s)return s.apply(this,arguments)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function an(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)an(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=[...e[r]||[],...t[r]||[]]:r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}function be(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:u,current:o,shift:a};function o(){return{now:{line:i,column:s},lineShift:r}}function a(c){r+=c}function u(c=""){const f=c.split(/\r?\n|\r/g),h=f[f.length-1];return i+=f.length-1,s=f.length===1?s+h.length:1+h.length+r,c}}function Ln(e,t,n){const r=t.indexStack,i=e.children||[],s=be(n),o=[];let a=-1;for(r.push(-1);++a<i.length;){const c=i[a];r[r.length-1]=a,o.push(s.move(t.handle(c,e,t,{before:`
34
+ `,after:`
35
+ `,...s.current()}))),c.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&o.push(s.move(u(c,i[a+1])))}return r.pop(),o.join("");function u(c,f){let h=t.join.length;for(;h--;){const p=t.join[h](c,f,e,t);if(p===!0||p===1)break;if(typeof p=="number")return`
36
+ `.repeat(1+p);if(p===!1)return`
37
+
38
+ <!---->
39
+
40
+ `}return`
41
+
42
+ `}}const UT=/\r?\n|\r/g;function Kr(e,t){const n=[];let r=0,i=0,s;for(;s=UT.exec(e);)o(e.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return o(e.slice(r)),n.join("");function o(a){n.push(t(a,i,!a))}}function BT(e,t,n,r){const i=n.enter("blockquote"),s=be(r);s.move("> "),s.shift(2);const o=Kr(Ln(e,n,s.current()),HT);return i(),o}function HT(e,t,n){return">"+(n?"":" ")+e}function hl(e,t){return Mo(e,t.inConstruct,!0)&&!Mo(e,t.notInConstruct,!1)}function Mo(e,t,n){if(!t)return n;typeof t=="string"&&(t=[t]);let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Co(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
43
+ `&&hl(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
44
+ `}function FT(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,o=0;if(typeof t!="string"||t.length!==1)throw new Error("Expected character");for(;r!==-1;)r===i?++s>o&&(o=s):s=1,i=r+1,r=n.indexOf(t,i);return o}function Nr(e,t){return Boolean(!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Tl(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Ne(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],s=[],o={};let a=-1;for(;++a<e.unsafe.length;){const f=e.unsafe[a];if(!hl(e.stack,f))continue;const h=Tl(f);let p;for(;p=h.exec(r);){const E="before"in f||Boolean(f.atBreak),M="after"in f,S=p.index+(E?p[1].length:0);i.includes(S)?(o[S].before&&!E&&(o[S].before=!1),o[S].after&&!M&&(o[S].after=!1)):(i.push(S),o[S]={before:E,after:M})}}i.sort(GT);let u=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){const f=i[a];f<u||f>=c||f+1<c&&i[a+1]===f+1&&o[f].after&&!o[f+1].before&&!o[f+1].after||i[a-1]===f-1&&o[f].before&&!o[f-1].before&&!o[f-1].after||(u!==f&&s.push(No(r.slice(u,f),"\\")),u=f,/[!-/:-@[-`{-~]/.test(r.charAt(f))&&(!n.encode||!n.encode.includes(r.charAt(f)))?s.push("\\"):(s.push("&#x"+r.charCodeAt(f).toString(16).toUpperCase()+";"),u++))}return s.push(No(r.slice(u,c),n.after)),s.join("")}function GT(e,t){return e-t}function No(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=e+t;let o=-1,a=0,u;for(;u=n.exec(s);)r.push(u.index);for(;++o<r.length;)a!==r[o]&&i.push(e.slice(a,r[o])),i.push("\\"),a=r[o];return i.push(e.slice(a)),i.join("")}function YT(e,t,n,r){const i=vT(n),s=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Nr(e,n)){const h=n.enter("codeIndented"),p=Kr(s,QT);return h(),p}const a=be(r),u=i.repeat(Math.max(FT(s,i)+1,3)),c=n.enter("codeFenced");let f=a.move(u);if(e.lang){const h=n.enter("codeFencedLang"+o);f+=a.move(Ne(n,e.lang,{before:f,after:" ",encode:["`"],...a.current()})),h()}if(e.lang&&e.meta){const h=n.enter("codeFencedMeta"+o);f+=a.move(" "),f+=a.move(Ne(n,e.meta,{before:f,after:`
45
+ `,encode:["`"],...a.current()})),h()}return f+=a.move(`
46
+ `),s&&(f+=a.move(s+`
47
+ `)),f+=a.move(u),c(),f}function QT(e,t,n){return(n?"":" ")+e}function Wr(e){return e.label||!e.identifier?e.label||"":Uo(e.identifier)}function Zr(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function KT(e,t,n,r){const i=Zr(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const u=be(r);let c=u.move("[");return c+=u.move(Ne(n,Wr(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(Ne(n,e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(a=n.enter("destinationRaw"),c+=u.move(Ne(n,e.url,{before:c,after:e.title?" ":`
48
+ `,...u.current()}))),a(),e.title&&(a=n.enter("title"+s),c+=u.move(" "+i),c+=u.move(Ne(n,e.title,{before:c,after:i,...u.current()})),c+=u.move(i),a()),o(),c}function WT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Dt(e,t,n){const r=t.indexStack,i=e.children||[],s=[];let o=-1,a=n.before;r.push(-1);let u=be(n);for(;++o<i.length;){const c=i[o];let f;if(r[r.length-1]=o,o+1<i.length){let h=t.handle.handlers[i[o+1].type];h&&h.peek&&(h=h.peek),f=h?h(i[o+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=n.after;s.length>0&&(a==="\r"||a===`
49
+ `)&&c.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=be(n),u.move(s.join(""))),s.push(u.move(t.handle(c,e,t,{...u.current(),before:a,after:f}))),a=s[s.length-1].slice(-1)}return r.pop(),s.join("")}ml.peek=ZT;function ml(e,t,n,r){const i=WT(n),s=n.enter("emphasis"),o=be(r);let a=o.move(i);return a+=o.move(Dt(e,n,{before:a,after:i,...o.current()})),a+=o.move(i),s(),a}function ZT(e,t,n){return n.options.emphasis||"*"}function dl(e,t){let n=!1;return Pt(e,r=>{if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ln}),Boolean((!e.depth||e.depth<3)&&dn(e)&&(t.options.setext||n))}function VT(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=be(r);if(dl(e,n)){const f=n.enter("headingSetext"),h=n.enter("phrasing"),p=Dt(e,n,{...s.current(),before:`
50
+ `,after:`
51
+ `});return h(),f(),p+`
52
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
53
+ `))+1))}const o="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");s.move(o+" ");let c=Dt(e,n,{before:"# ",after:`
54
+ `,...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),u(),a(),c}gl.peek=$T;function gl(e){return e.value||""}function $T(){return"<"}El.peek=qT;function El(e,t,n,r){const i=Zr(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const u=be(r);let c=u.move("![");return c+=u.move(Ne(n,e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(Ne(n,e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(a=n.enter("destinationRaw"),c+=u.move(Ne(n,e.url,{before:c,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter("title"+s),c+=u.move(" "+i),c+=u.move(Ne(n,e.title,{before:c,after:i,...u.current()})),c+=u.move(i),a()),c+=u.move(")"),o(),c}function qT(){return"!"}pl.peek=JT;function pl(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=be(r);let u=a.move("![");const c=Ne(n,e.alt,{before:u,after:"]",...a.current()});u+=a.move(c+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const h=Ne(n,Wr(e),{before:u,after:"]",...a.current()});return o(),n.stack=f,s(),i==="full"||!c||c!==h?u+=a.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function JT(){return"!"}Al.peek=XT;function Al(e,t,n){let r=e.value||"",i="`",s=-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+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=Tl(o);let u;if(!!o.atBreak)for(;u=a.exec(r);){let c=u.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(u.index+1)}}return i+r+i}function XT(){return"`"}function Il(e,t){const n=dn(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ml.peek=em;function Ml(e,t,n,r){const i=Zr(n),s=i==='"'?"Quote":"Apostrophe",o=be(r);let a,u;if(Il(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let h=o.move("<");return h+=o.move(Dt(e,n,{before:h,after:">",...o.current()})),h+=o.move(">"),a(),n.stack=f,h}a=n.enter("link"),u=n.enter("label");let c=o.move("[");return c+=o.move(Dt(e,n,{before:c,after:"](",...o.current()})),c+=o.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(Ne(n,e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(u=n.enter("destinationRaw"),c+=o.move(Ne(n,e.url,{before:c,after:e.title?" ":")",...o.current()}))),u(),e.title&&(u=n.enter("title"+s),c+=o.move(" "+i),c+=o.move(Ne(n,e.title,{before:c,after:i,...o.current()})),c+=o.move(i),u()),c+=o.move(")"),a(),c}function em(e,t,n){return Il(e,n)?"<":"["}Cl.peek=tm;function Cl(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=be(r);let u=a.move("[");const c=Dt(e,n,{before:u,after:"]",...a.current()});u+=a.move(c+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const h=Ne(n,Wr(e),{before:u,after:"]",...a.current()});return o(),n.stack=f,s(),i==="full"||!c||c!==h?u+=a.move(h+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function tm(){return"["}function Vr(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function nm(e){const t=Vr(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Nl(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function rm(e){const t=Nl(e),n=e.options.bulletOrderedOther;if(!n)return t==="."?")":".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrderedOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bulletOrdered` (`"+t+"`) and `bulletOrderedOther` (`"+n+"`) to be different");return n}function Sl(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function im(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Nl(n):Vr(n);const a=e.ordered?rm(n):nm(n),u=n.bulletLastUsed;let c=!1;if(t&&(e.ordered?n.options.bulletOrderedOther:n.options.bulletOther)&&u&&o===u&&(c=!0),!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Sl(n)===o&&h){let p=-1;for(;++p<e.children.length;){const E=e.children[p];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=a),n.bulletCurrent=o;const f=Ln(e,n,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),f}function sm(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function om(e,t,n,r){const i=sm(n);let s=n.bulletCurrent||Vr(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=be(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);const u=n.enter("listItem"),c=Kr(Ln(e,n,a.current()),f);return u(),c;function f(h,p,E){return p?(E?"":" ".repeat(o))+h:(E?s:s+" ".repeat(o-s.length))+h}}function am(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),o=Dt(e,n,r);return s(),i(),o}function lm(e,t,n,r){return Ln(e,n,r)}function um(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_l.peek=cm;function _l(e,t,n,r){const i=um(n),s=n.enter("strong"),o=be(r);let a=o.move(i+i);return a+=o.move(Dt(e,n,{before:a,after:i,...o.current()})),a+=o.move(i+i),s(),a}function cm(e,t,n){return n.options.strong||"*"}function fm(e,t,n,r){return Ne(n,e.value,r)}function hm(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Tm(e,t,n){const r=(Sl(n)+(n.options.ruleSpaces?" ":"")).repeat(hm(n));return n.options.ruleSpaces?r.slice(0,-1):r}const mm={blockquote:BT,break:Co,code:YT,definition:KT,emphasis:ml,hardBreak:Co,heading:VT,html:gl,image:El,imageReference:pl,inlineCode:Al,link:Ml,linkReference:Cl,list:im,listItem:om,paragraph:am,root:lm,strong:_l,text:fm,thematicBreak:Tm},dm=[gm];function gm(e,t,n,r){if(t.type==="code"&&Nr(t,r)&&(e.type==="list"||e.type===t.type&&Nr(e,r))||e.type==="list"&&e.type===t.type&&Boolean(e.ordered)===Boolean(t.ordered)&&!(e.ordered?r.options.bulletOrderedOther:r.options.bulletOther))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&dl(t,r))?void 0:n.spread?1:0}const bt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Em=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
55
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:bt},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:bt},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing",notInConstruct:bt},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
57
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:bt},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:bt},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:bt},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:bt},{atBreak:!0,character:"~"}];function pm(e,t={}){const n={enter:i,stack:[],unsafe:[],join:[],handlers:{},options:{},indexStack:[]};an(n,{unsafe:Em,join:dm,handlers:mm}),an(n,t),n.options.tightDefinitions&&an(n,{join:[Mm]}),n.handle=jT("type",{invalid:Am,unknown:Im,handlers:n.handlers});let r=n.handle(e,null,n,{before:`
58
+ `,after:`
59
+ `,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=`
60
+ `),r;function i(s){return n.stack.push(s),o;function o(){n.stack.pop()}}}function Am(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function Im(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function Mm(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function Cm(e){Object.assign(this,{Compiler:n=>{const r=this.data("settings");return pm(n,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}function Nm(){const e=ce.useMemo(()=>Aa().use(Nh).use(kT).use(Cm),[]);return ce.useMemo(()=>function(n){return e.process(n).then(String)},[])}function Sm(e="",t=""){const[n,r]=ce.useState(),[i,s]=ce.useState({html:t}),o=Nm(),a=s5(),u=ce.useCallback(async h=>{const p=await a(h),E={md:h,html:p};return r(E),E},[a]),c=ce.useCallback(async h=>{const E={md:await o(h),html:h};return r(E),E},[o]);ce.useEffect(()=>{!t&&e!==(n==null?void 0:n.md)?u(e).then(({html:h})=>{s({html:h})}):!e&&t&&t!==(n==null?void 0:n.html)&&c(t)},[e,t]);function f(h){h.current&&c(h.current.innerHTML)}return{aggValue:n,editableDivInnerHtml:i,updateStateFromDiv:f}}function _m(e){if(e instanceof HTMLElement){for(const t of Array.from(e.attributes))/(style|class|data-[^=]+)/.test(t.name)&&e.removeAttribute(t.name);e.innerHTML=e.innerHTML.replace(/(style|class|data-[^=]+)="[^"]+"/g,"")}}const Dm=[{regex:/\*\*([^*]+)\*\*/,command:"bold"},{regex:new RegExp("(?<!\\*)\\*([^*]+)\\*"),command:"italic"},{regex:/^\*[ \u00a0]/,command:"insertUnorderedList"},{regex:/^1\.[ \u00a0]/,command:"insertOrderedList"},{regex:/\[([^\]]+)\]\(([^)]+)\)/,command:"createLink",getCommandArg:([,,e])=>/^https?:\/\//.test(e)?e:`https://${e}`}];function ym(e,t,n){const r=document.createRange();r.setStart(e,t),r.setEnd(e,n);const i=window.getSelection();i==null||i.removeAllRanges(),i==null||i.addRange(r)}function $r(e){const t=document.createRange();t.setStartAfter(e),t.setEndAfter(e);const n=window.getSelection();n==null||n.removeAllRanges(),n==null||n.addRange(t)}function Om(e){const t=document.createRange();t.setStartBefore(e),t.setEndBefore(e);const n=window.getSelection();n==null||n.removeAllRanges(),n==null||n.addRange(t)}function Lm(e){const t=ce.useRef(null),n=ce.useMemo(()=>new MutationObserver(([r])=>{if(r.type==="characterData"&&r.oldValue&&r.target.textContent){for(const i of Dm)if(!i.regex.test(r.oldValue)&&i.regex.test(r.target.textContent)){const s=i.regex.exec(r.target.textContent),[o,a=""]=s,u=r.target.textContent.indexOf(o);r.target.textContent=r.target.textContent.replace(o,a);const c=u+a.length;ym(r.target,u,c);const f=i.getCommandArg?i.getCommandArg(s):void 0;document.execCommand(i.command,void 0,f),a&&($r(r.target.parentNode),document.execCommand(i.command))}}else r.type==="childList"&&Array.from(r.addedNodes).forEach(i=>{var o,a;let s;if(i instanceof HTMLElement&&i.tagName==="LI"?s=i:((o=i==null?void 0:i.parentElement)==null?void 0:o.tagName)==="LI"&&(s=i==null?void 0:i.parentElement),s){const u=s.nextElementSibling,c=(a=u==null?void 0:u.childNodes)==null?void 0:a[0];if(c instanceof HTMLElement&&["UL","OL"].includes(c.tagName)){const h=document.createElement("br");u.insertBefore(h,c),Om(h)}}_m(i)});e(t)}),[]);return ce.useEffect(()=>()=>{n&&n.disconnect()},[]),ce.useEffect(()=>{t.current!==null&&n.observe(t.current,{childList:!0,subtree:!0,characterDataOldValue:!0})},[n,t]),t}function xm(e){const[t,n]=ce.useState();ce.useEffect(()=>{function i(){const s=window.getSelection();Number(s==null?void 0:s.rangeCount)>0&&n(s==null?void 0:s.getRangeAt(0))}return document.addEventListener("selectionchange",i),()=>{document.removeEventListener("selectionchange",i)}},[]);const r=ce.useCallback(i=>{if(!t)return null;const s=t.commonAncestorContainer;if(!e.current||!e.current.contains(s))return null;let o=s instanceof HTMLElement?s:s.parentElement;for(;o&&o!==e.current;){if(i(o))return o;o=o.parentElement}return null},[t]);return{selectionRange:t,selectionDOMContextFind:r}}const wm="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTBweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTAgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Qm9sZDwvdGl0bGU+CiAgICA8ZyBpZD0iQ29tcG9uZW50cyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Ik1hcmtkb3duLUVkaXRvci0tLU5ldy1pY29ucyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUzLjAwMDAwMCwgLTEwMy4wMDAwMDApIiBmaWxsPSIjNEI1MzU2IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0iR3JvdXAiIHRyY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LjUiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLUNvcHktMiIgY3g9IjEuNSIgY3k9IjEwLjUiIHI9IjEuNSI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=",E1=(e,t)=>{let n=e;for(;n.parentElement&&!t.includes(n.parentElement.tagName);)n=n.parentElement;return n.parentElement&&t.includes(n.parentElement.tagName)?n.parentElement:null},So=e=>{const t=[];let n=e;for(;n.nextElementSibling;)t.push(n.nextElementSibling),n=n.nextElementSibling;return t},Fm={key:"bold",icon:wm,onClick:()=>document.execCommand("bold"),activeTest:e=>["B","STRONG"].includes(e.tagName),isSimpleToggle:!0},vm={key:"italics",icon:Rm,onClick:()=>document.execCommand("italic"),activeTest:e=>["I","EM"].includes(e.tagName),isSimpleToggle:!0},Gm={key:"ul",icon:Hm,onClick:()=>document.execCommand("insertUnorderedList"),activeTest:e=>e.tagName==="UL"},Ym={key:"ol",icon:Pm,onClick:()=>document.execCommand("insertOrderedList"),activeTest:e=>e.tagName==="OL"},Qm={key:"indent",icon:bm,onClick:()=>{var e,t;try{const n=window.getSelection();if((n==null?void 0:n.type)==="Range"){const r=n.getRangeAt(0),i=r.commonAncestorContainer;if(!(i instanceof HTMLElement)||(i.tagName==="UL"||i.tagName==="OL"||i.tagName==="LI")&&i.firstElementChild&&r.intersectsNode(i.firstElementChild))return;const s=[];let o;if(i.childNodes.forEach(a=>{r.intersectsNode(a)&&a instanceof HTMLElement&&a.tagName==="LI"&&(s.length===0&&(o=a.previousSibling),s.push(a))}),o instanceof HTMLElement&&o.tagName==="LI"){s.forEach(u=>u.remove());const a=(e=o.parentElement)==null?void 0:e.tagName.toLowerCase();if(a){const u=document.createElement(a);s.forEach(c=>u.appendChild(c)),o.appendChild(u)}return}}else if(n){const{anchorNode:r}=n;let i;if(r instanceof HTMLElement&&r.tagName==="LI"?i=r:r&&(i=E1(r,["LI"])),i){const s=i.previousElementSibling,o=i.parentElement.tagName.toLowerCase();if(s&&s.tagName==="LI"){i.remove();const a=s.querySelector(o);if(a)a.appendChild(i);else{const u=document.createElement(o);u.appendChild(i),s.appendChild(u)}r&&$r(((t=r.childNodes)==null?void 0:t[0])||r)}return}}}catch{}document.execCommand("indent")}},Km={key:"outdent",icon:zm,onClick:()=>{try{const e=window.getSelection();if((e==null?void 0:e.type)==="Range"){const t=e.getRangeAt(0),n=t.commonAncestorContainer;if(!(n instanceof HTMLElement))return;const r=[];let i;if(n.tagName==="UL"||n.tagName==="OL"?i=n:n.tagName==="LI"&&(i=n.parentElement),i){i.childNodes.forEach(o=>{t.intersectsNode(o)&&o instanceof HTMLElement&&o.tagName==="LI"&&r.push(o)});const s=i.parentElement;(s==null?void 0:s.tagName)==="LI"&&(r.forEach((o,a)=>{if(a===r.length-1){const u=So(o);if(u.length>0){const c=i.tagName.toLowerCase(),f=o.querySelector(c);if(f)for(const h of u)h.remove(),f.appendChild(h);else{const h=document.createElement(c);o.appendChild(h);for(const p of u)p.remove(),h.appendChild(p)}}}o.remove()}),i.childElementCount===0&&i.remove(),r.reverse().forEach(o=>s.after(o)));return}}else if(e){const{anchorNode:t}=e;let n=null,r=null;t instanceof HTMLElement&&(t.tagName==="UL"||t.tagName==="OL")?(n=t,r=t.querySelector("li")):t&&(n=E1(t,["UL","OL"]),r=t instanceof HTMLElement&&t.tagName==="LI"?t:E1(t,["LI"]));const i=n?E1(n,["UL","OL"]):null;if(n&&i){const s=E1(n,["LI"]);if(n.childElementCount===1&&n.remove(),r){const o=So(r);if(o.length>0){const a=document.createElement(n.tagName.toLowerCase());r.appendChild(a);for(const u of o)u.remove(),a.appendChild(u)}s==null||s.after(r),r.lastChild&&$r(r.lastChild)}return}}}catch{}document.execCommand("outdent")}},Wm={key:"undo",icon:Um,onClick:()=>document.execCommand("undo")},Zm={key:"redo",icon:jm,onClick:()=>document.execCommand("redo")};function Vm(e,t){const[n,r]=ce.useState(!1),i=ce.useCallback((u,c)=>{var p,E,M,S;r(!1);const f=u.cloneRange(),h=window.getSelection();if(((p=h==null?void 0:h.rangeCount)!=null?p:0)>0&&(h==null||h.removeAllRanges()),h==null||h.addRange(f),!(f!=null&&f.toString())&&(c==null?void 0:c.text)&&h){const O=document.createTextNode(c.text),{anchorNode:I}=h;if(I instanceof HTMLElement){const P=I.lastElementChild;P&&P.tagName==="BR"?I.insertBefore(O,P):I.appendChild(O)}else if(I){const P=f.cloneRange();P.selectNodeContents(I),P.setEnd(f.endContainer,f.endOffset);const x=P.toString().length;(E=I.parentElement)==null||E.insertBefore(O,I.splitText(x))}f.setStart(O,0),f.setEnd(O,c.text.length)}if(c){const O=(M=f==null?void 0:f.startContainer)==null?void 0:M.parentElement;if(O&&O.tagName==="A"){O.setAttribute("href",c.link),O.textContent=c.text;const I=(S=window.getSelection())==null?void 0:S.getRangeAt(0);I==null||I.selectNodeContents(O)}else document.execCommand("createLink",void 0,c.link)}},[]),s=ce.useMemo(()=>({key:"link",icon:km,onClick:()=>{var f;const u=window.getSelection(),c=((f=u==null?void 0:u.rangeCount)!=null?f:0)>0?u==null?void 0:u.getRangeAt(0).commonAncestorContainer:null;t.current&&c&&t.current.contains(c)&&r(!0)},activeTest:u=>u.tagName==="A"}),[]),o=ce.useMemo(()=>({key:"unlink",icon:Bm,onClick:()=>{var c;const u=e(s.activeTest);u&&((c=window.getSelection())==null||c.getRangeAt(0).selectNodeContents(u),document.execCommand("unlink"))}}),[e]);return{toolbarButtons:[Fm,vm,"vr",Gm,Ym,Qm,Km,"vr",s,o,"vr",Wm,Zm],showLinkModal:n,handleLinkModalClose:i}}function $m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(r){$m(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qm=(e,t,n)=>{for(var r of Object.keys(e)){var i;if(e[r]!==((i=t[r])!==null&&i!==void 0?i:n[r]))return!1}return!0},qr=e=>t=>{var n=e.defaultClassName,r=Do(Do({},e.defaultVariants),t);for(var i in r){var s,o=(s=r[i])!==null&&s!==void 0?s:e.defaultVariants[i];if(o!=null){var a=o;typeof a=="boolean"&&(a=a===!0?"true":"false");var u=e.variantClassNames[i][a];u&&(n+=" "+u)}}for(var[c,f]of e.compoundVariants)qm(c,r,e.defaultVariants)&&(n+=" "+f);return n},Jm=qr({defaultClassName:"ks637j0",variantClassNames:{active:{true:"ks637j1",false:"ks637j2"}},defaultVariants:{},compoundVariants:[]}),Xm={icon:"ks637j3"};function ed({icon:e,onClick:t,selectionDOMContextFind:n,activeTest:r,isSimpleToggle:i=!1,...s}){const[o,a]=$.useState(!1);$.useEffect(()=>{r&&a(Boolean(n(r)))},[n]);const u=$.useCallback(()=>{t&&t(o),i&&a(!o)},[t,o]);return $.createElement("button",{className:Jm({active:o}),onClick:u,onMouseDown:c=>c.preventDefault(),...s},$.createElement("span",{className:Xm.icon,style:{backgroundImage:`url(${e})`},"aria-hidden":"true"}))}function td({onClose:e,selectionDOMContextFind:t,selectionRange:n}){const r=$.useRef(n),i=$.useRef(!1),{formValue:s,formMeta:o,updateForm:a}=At.useSpsForm({text:(n==null?void 0:n.toString())||"",link:""});return $.useEffect(()=>{if(!i.current){const u=t(c=>c.tagName==="A");u&&(a({text:u.textContent||"",link:u.getAttribute("href")||""}),i.current=!0)}},[t]),$.createElement(At.SpsModal,{title:"Add Link",onClose:()=>e(r.current)},$.createElement("div",{className:"sg-row"},$.createElement("div",{className:"sg-col-12"},$.createElement(At.SpsLabel,{for:o.fields.text},"Text"),$.createElement(At.SpsTextInput,{formMeta:o.fields.text,value:s.text}))),$.createElement("div",{className:"sg-row"},$.createElement("div",{className:"sg-col-12"},$.createElement(At.SpsLabel,{for:o.fields.link},"Link"),$.createElement(At.SpsTextInput,{formMeta:o.fields.link,value:s.link}))),$.createElement(At.SpsModalFooter,null,$.createElement(At.SpsButton,{onClick:()=>e(r.current,s)},"OK")))}var nd=qr({defaultClassName:"_7hct4e0",variantClassNames:{disabled:{true:"_7hct4e1",false:"_7hct4e2"}},defaultVariants:{disabled:!1},compoundVariants:[]}),rd=qr({defaultClassName:"_7hct4e3",variantClassNames:{disabled:{true:"_7hct4e4",false:"_7hct4e5"}},defaultVariants:{},compoundVariants:[]}),id="_7hct4e6",sd="_7hct4e7";function Jr({className:e,md:t,html:n,disabled:r,onChange:i,...s}){const o=cr.useChildTestIdAttrBuilder(s),{aggValue:a,editableDivInnerHtml:u,updateStateFromDiv:c}=Sm(t,n);$.useEffect(()=>{i&&a&&i(a)},[a]);const f=Lm(c);$.useEffect(()=>{u&&f.current&&(f.current.innerHTML=u.html)},[u]);const{selectionRange:h,selectionDOMContextFind:p}=xm(f),{toolbarButtons:E,showLinkModal:M,handleLinkModalClose:S}=Vm(p,f);return $.createElement("div",{className:cr.cl(nd({disabled:r}),e),...s},!r&&$.createElement($.Fragment,null,$.createElement("div",{className:id,...o("toolbar")},E.map((O,I)=>O==="vr"?$.createElement("div",{className:sd,key:`vr-${I}`}):$.createElement(ed,{...O,selectionDOMContextFind:p,...o(`button-${O.key}`)}))),M&&$.createElement(td,{onClose:S,selectionDOMContextFind:p,selectionRange:h})),$.createElement("div",{className:rd({disabled:r}),ref:f,contentEditable:!r,...o("input")}))}cr.Metadata.set(Jr,{name:"RichTextEditor",props:{md:"string",html:"string",disabled:{type:"boolean",default:"false"},onChange:"(newValue: RichTextEditorAggregateValue) => void"}});const Dl={description:()=>$.createElement("p",null,"Placeholder for Rich Text Editor guidelines"),components:[Jr],examples:{general:{label:"General Usage",description:"Coming Soon"},basic:{label:"Basic Usage",examples:{basic:{react:R1.code`
61
+ import { RichTextEditor } from "@sps-woodland/rich-text-editor";
62
+ import { useSpsForm, SpsLabel } from "@spscommerce/ds-react";
63
+
64
+ function Component() {
65
+ const { formValue, formMeta, updateForm } = useSpsForm({
66
+ text: "",
67
+ });
68
+
69
+ const mdChangeHandler = ({ md }) => {
70
+ updateForm({ ...formValue, text: md });
71
+ };
72
+
73
+ return (
74
+ <>
75
+ <SpsLabel for={formMeta.fields.text}>Markdown</SpsLabel>
76
+ <RichTextEditor
77
+ md={formValue.text}
78
+ onChange={(event) => mdChangeHandler(event)}
79
+ />
80
+ {JSON.stringify(formValue)}
81
+ </>
82
+ )
83
+ }
84
+ `}}},markdown:{label:"Using Markdown",examples:{markdown:{react:R1.code`
85
+ import { RichTextEditor } from "@sps-woodland/rich-text-editor";
86
+ import { useSpsForm, SpsLabel } from "@spscommerce/ds-react";
87
+
88
+ function Component() {
89
+ const { formValue, formMeta, updateForm } = useSpsForm({
90
+ text: "**bold text** _italic text_",
91
+ });
92
+
93
+ const mdChangeHandler = ({ md }) => {
94
+ updateForm({ ...formValue, text: md });
95
+ };
96
+
97
+ return (
98
+ <>
99
+ <SpsLabel for={formMeta.fields.text}>Markdown</SpsLabel>
100
+ <RichTextEditor
101
+ md={formValue.text}
102
+ onChange={(event) => mdChangeHandler(event)}
103
+ />
104
+ {JSON.stringify(formValue)}
105
+ </>
106
+ )
107
+ }
108
+ `}}},html:{label:"Using HTML",examples:{html:{react:R1.code`
109
+ import { RichTextEditor } from "@sps-woodland/rich-text-editor";
110
+ import { useSpsForm, SpsLabel } from "@spscommerce/ds-react";
111
+
112
+ function Component() {
113
+ const { formValue, formMeta, updateForm } = useSpsForm({
114
+ text: "<b>bold text</b><ul><li>bulleted list</li></ul>",
115
+ });
116
+
117
+ const htmlChangeHandler = ({ html }) => {
118
+ updateForm({ ...formValue, text: html });
119
+ };
120
+
121
+ return (
122
+ <>
123
+ <SpsLabel for={formMeta.fields.text}>Markdown</SpsLabel>
124
+ <RichTextEditor
125
+ html={formValue.text}
126
+ onChange={(event) => htmlChangeHandler(event)}
127
+ />
128
+ {JSON.stringify(formValue)}
129
+ </>
130
+ )
131
+ }
132
+ `}}},disabled:{label:"Disabled State",examples:{disabled:{react:R1.code`
133
+ import { RichTextEditor } from "@sps-woodland/rich-text-editor";
134
+ import { useSpsForm, SpsLabel } from "@spscommerce/ds-react";
135
+
136
+ function Component() {
137
+ const { formValue, formMeta, updateForm } = useSpsForm({
138
+ text: "",
139
+ });
140
+
141
+ const mdChangeHandler = ({ md }) => {
142
+ updateForm({ ...formValue, text: md });
143
+ };
144
+
145
+ return (
146
+ <>
147
+ <SpsLabel for={formMeta.fields.text}>Markdown</SpsLabel>
148
+ <RichTextEditor
149
+ md={formValue.text}
150
+ onChange={(event) => mdChangeHandler(event)}
151
+ disabled
152
+ />
153
+ {JSON.stringify(formValue)}
154
+ </>
155
+ )
156
+ }
157
+ `}}}}},od={"Rich Text Editor":Dl};exports.MANIFEST=od;exports.RichTextEditor=Jr;exports.RichTextEditorExamples=Dl;