@inploi/plugin-kin 2.5.1 → 2.6.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.
package/cdn/index.js CHANGED
@@ -1,59 +1,59 @@
1
- var l5=Object.defineProperty;var c5=(Ut,nt,zt)=>nt in Ut?l5(Ut,nt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ut[nt]=zt;var fe=(Ut,nt,zt)=>(c5(Ut,typeof nt!="symbol"?nt+"":nt,zt),zt);(function(){var Ni;"use strict";var Ut=e=>e,nt="isdk_session",zt=e=>{let t=new Date;return t.setTime(t.getTime()+6048e5),`${nt}=${e};expires=${t.toUTCString()};path=/`},ch=(e,t)=>{let n=e.get("session_id");if(t||n)return n;let r=sessionStorage.getItem(`${nt}-session_id`);return typeof r=="string"?r:null},dh=new RegExp(`${nt}=([^;]+)`),hh=e=>{let t=e?e.url:location.href,{searchParams:n}=new URL(t),r=n.get("anonymous_id"),i=ch(n,typeof window>"u");if(r)return{anonymous_id:r,session_id:i};let a=e?e.headers.get("cookie"):document.cookie;return a?{anonymous_id:dh.exec(a)?.[1]??null,session_id:i}:{anonymous_id:r,session_id:i}},Ns=()=>{if(typeof window>"u")throw new Error("getOrCreateAnonymousId() can only be called in browser environment");let e=hh().anonymous_id;if(e)return e;let t=crypto.randomUUID();return document.cookie=zt(t),t},vn,W,vs,Ls,$t,Rs,Os,vi,Ds,on={},Ps=[],fh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,kr=Array.isArray;function Et(e,t){for(var n in t)e[n]=t[n];return e}function Ms(e){var t=e.parentNode;t&&t.removeChild(e)}function ut(e,t,n){var r,i,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?vn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return Ln(e,s,r,i,null)}function Ln(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++vs};return i==null&&W.vnode!=null&&W.vnode(a),a}function Ee(e){return e.children}function lt(e,t){this.props=e,this.context=t}function xr(e,t){if(t==null)return e.__?xr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?xr(e):null}function Bs(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Bs(e)}}function Li(e){(!e.__d&&(e.__d=!0)&&$t.push(e)&&!yr.__r++||Rs!==W.debounceRendering)&&((Rs=W.debounceRendering)||Os)(yr)}function yr(){var e,t,n,r,i,a,s,o,u;for($t.sort(vi);e=$t.shift();)e.__d&&(t=$t.length,r=void 0,i=void 0,a=void 0,o=(s=(n=e).__v).__e,(u=n.__P)&&(r=[],i=[],(a=Et({},s)).__v=s.__v+1,Ri(u,s,a,n.__n,u.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o??xr(s),s.__h,i),js(r,s,i),s.__e!=o&&Bs(s)),$t.length>t&&$t.sort(vi));yr.__r=0}function Fs(e,t,n,r,i,a,s,o,u,c,h){var d,f,p,m,T,w,y,I,A,P,H=0,S=r&&r.__k||Ps,Y=S.length,L=Y,O=t.length;for(n.__k=[],d=0;d<O;d++)(m=n.__k[d]=(m=t[d])==null||typeof m=="boolean"||typeof m=="function"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?Ln(null,m,null,null,m):kr(m)?Ln(Ee,{children:m},null,null,null):m.__b>0?Ln(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null&&(m.__=n,m.__b=n.__b+1,(I=ph(m,S,y=d+H,L))===-1?p=on:(p=S[I]||on,S[I]=void 0,L--),Ri(e,m,p,i,a,s,o,u,c,h),T=m.__e,(f=m.ref)&&p.ref!=f&&(p.ref&&Oi(p.ref,null,m),h.push(f,m.__c||T,m)),T!=null&&(w==null&&(w=T),P=!(A=p===on||p.__v===null)&&I===y,A?I==-1&&H--:I!==y&&(I===y+1?(H++,P=!0):I>y?L>O-y?(H+=I-y,P=!0):H--:H=I<y&&I==y-1?I-y:0),y=d+H,P=P||I==d&&!A,typeof m.type!="function"||I===y&&p.__k!==m.__k?typeof m.type=="function"||P?m.__d!==void 0?(u=m.__d,m.__d=void 0):u=T.nextSibling:u=Us(e,T,u):u=Hs(m,u,e),typeof n.type=="function"&&(n.__d=u)));for(n.__e=w,d=Y;d--;)S[d]!=null&&(typeof n.type=="function"&&S[d].__e!=null&&S[d].__e==n.__d&&(n.__d=S[d].__e.nextSibling),Vs(S[d],S[d]))}function Hs(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type=="function"?Hs(r,t,n):Us(n,r.__e,t));return t}function wr(e,t){return t=t||[],e==null||typeof e=="boolean"||(kr(e)?e.some(function(n){wr(n,t)}):t.push(e)),t}function Us(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function ph(e,t,n,r){var i=e.key,a=e.type,s=n-1,o=n+1,u=t[n];if(u===null||u&&i==u.key&&a===u.type)return n;if(r>(u!=null?1:0))for(;s>=0||o<t.length;){if(s>=0){if((u=t[s])&&i==u.key&&a===u.type)return s;s--}if(o<t.length){if((u=t[o])&&i==u.key&&a===u.type)return o;o++}}return-1}function mh(e,t,n,r,i){var a;for(a in n)a==="children"||a==="key"||a in t||Ar(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||Ar(e,a,t[a],n[a],r)}function zs(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||fh.test(t)?n:n+"px"}function Ar(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zs(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||zs(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?Ys:$s,a):e.removeEventListener(t,a?Ys:$s,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function $s(e){return this.l[e.type+!1](W.event?W.event(e):e)}function Ys(e){return this.l[e.type+!0](W.event?W.event(e):e)}function Ri(e,t,n,r,i,a,s,o,u,c){var h,d,f,p,m,T,w,y,I,A,P,H,S,Y,L,O=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,o=t.__e=n.__e,t.__h=null,a=[o]),(h=W.__b)&&h(t);try{e:if(typeof O=="function"){if(y=t.props,I=(h=O.contextType)&&r[h.__c],A=h?I?I.props.value:h.__:r,n.__c?w=(d=t.__c=n.__c).__=d.__E:("prototype"in O&&O.prototype.render?t.__c=d=new O(y,A):(t.__c=d=new lt(y,A),d.constructor=O,d.render=bh),I&&I.sub(d),d.props=y,d.state||(d.state={}),d.context=A,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),O.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Et({},d.__s)),Et(d.__s,O.getDerivedStateFromProps(y,d.__s))),p=d.props,m=d.state,d.__v=t,f)O.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(O.getDerivedStateFromProps==null&&y!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,A),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,A)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(C){C&&(C.__=t)}),P=0;P<d._sb.length;P++)d.__h.push(d._sb[P]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,A),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,T)})}if(d.context=A,d.props=y,d.__P=e,d.__e=!1,H=W.__r,S=0,"prototype"in O&&O.prototype.render){for(d.state=d.__s,d.__d=!1,H&&H(t),h=d.render(d.props,d.state,d.context),Y=0;Y<d._sb.length;Y++)d.__h.push(d._sb[Y]);d._sb=[]}else do d.__d=!1,H&&H(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=Et(Et({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(T=d.getSnapshotBeforeUpdate(p,m)),Fs(e,kr(L=h!=null&&h.type===Ee&&h.key==null?h.props.children:h)?L:[L],t,n,r,i,a,s,o,u,c),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),w&&(d.__E=d.__=null)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gh(n.__e,t,n,r,i,a,s,u,c);(h=W.diffed)&&h(t)}catch(C){t.__v=null,(u||a!=null)&&(t.__e=o,t.__h=!!u,a[a.indexOf(o)]=null),W.__e(C,t,n)}}function js(e,t,n){for(var r=0;r<n.length;r++)Oi(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){W.__e(a,i.__v)}})}function gh(e,t,n,r,i,a,s,o,u){var c,h,d,f=n.props,p=t.props,m=t.type,T=0;if(m==="svg"&&(i=!0),a!=null){for(;T<a.length;T++)if((c=a[T])&&"setAttribute"in c==!!m&&(m?c.localName===m:c.nodeType===3)){e=c,a[T]=null;break}}if(e==null){if(m===null)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),a=null,o=!1}if(m===null)f===p||o&&e.data===p||(e.data=p);else{if(a=a&&vn.call(e.childNodes),h=(f=n.props||on).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!o){if(a!=null)for(f={},T=0;T<e.attributes.length;T++)f[e.attributes[T].name]=e.attributes[T].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(mh(e,p,f,i,o),d)t.__k=[];else if(Fs(e,kr(T=t.props.children)?T:[T],t,n,r,i&&m!=="foreignObject",a,s,a?a[0]:n.__k&&xr(n,0),o,u),a!=null)for(T=a.length;T--;)a[T]!=null&&Ms(a[T]);o||("value"in p&&(T=p.value)!==void 0&&(T!==e.value||m==="progress"&&!T||m==="option"&&T!==f.value)&&Ar(e,"value",T,f.value,!1),"checked"in p&&(T=p.checked)!==void 0&&T!==e.checked&&Ar(e,"checked",T,f.checked,!1))}return e}function Oi(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){W.__e(r,n)}}function Vs(e,t,n){var r,i;if(W.unmount&&W.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Oi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){W.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Vs(r[i],t,n||typeof e.type!="function");n||e.__e==null||Ms(e.__e),e.__=e.__e=e.__d=void 0}function bh(e,t,n){return this.constructor(e,n)}function Cr(e,t,n){var r,i,a,s;W.__&&W.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],s=[],Ri(t,e=(!r&&n||t).__k=ut(Ee,null,[e]),i||on,on,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?vn.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,s),js(a,e,s)}function qs(e,t,n){var r,i,a,s,o=Et({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?i=t[a]:o[a]=t[a]===void 0&&s!==void 0?s[a]:t[a];return arguments.length>2&&(o.children=arguments.length>3?vn.call(arguments,2):n),Ln(e.type,o,r||e.key,i||e.ref,null)}function Sr(e,t){var n={__c:t="__cC"+Ds++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(o){o.__e=!0,Li(o)})},this.sub=function(s){i.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),o&&o.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}vn=Ps.slice,W={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(o){e=o}throw e}},vs=0,Ls=function(e){return e!=null&&e.constructor===void 0},lt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Et({},this.state),typeof e=="function"&&(e=e(Et({},n),this.props)),e&&Et(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Li(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Li(this))},lt.prototype.render=Ee,$t=[],Os=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vi=function(e,t){return e.__v.__b-t.__v.__b},yr.__r=0,Ds=0;function Ws(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ws(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Di(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ws(e))&&(r&&(r+=" "),r+=t);return r}const Gs=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Eh=e=>{const t=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var o,u;return typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o["cx:done"])<"u"?e?.hooks["cx:done"](Di(a)):typeof(e==null||(u=e.hooks)===null||u===void 0?void 0:u.onComplete)<"u"?e?.hooks.onComplete(Di(a)):Di(a)};return{compose:function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=>{const u=Object.fromEntries(Object.entries(o||{}).filter(c=>{let[h]=c;return!["class","className"].includes(h)}));return t(a.map(c=>c(u)),o?.class,o?.className)}},cva:i=>a=>{var s;if(i?.variants==null)return t(i?.base,a?.class,a?.className);const{variants:o,defaultVariants:u}=i,c=Object.keys(o).map(f=>{const p=a?.[f],m=u?.[f],T=Gs(p)||Gs(m);return o[f][T]}),h={...u,...a&&Object.entries(a).reduce((f,p)=>{let[m,T]=p;return typeof T>"u"?f:{...f,[m]:T}},{})},d=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((f,p)=>{let{class:m,className:T,...w}=p;return Object.entries(w).every(y=>{let[I,A]=y;const P=h[I];return Array.isArray(A)?A.includes(P):P===A})?[...f,m,T]:f},[]);return t(i?.base,c,d,a?.class,a?.className)},cx:t}},{compose:d5,cva:un,cx:h5}=Eh();var Ct,_e,Pi,Qs,Rn=0,Ks=[],Ir=[],Xs=W.__b,Zs=W.__r,Js=W.diffed,eo=W.__c,to=W.unmount;function ln(e,t){W.__h&&W.__h(_e,e,Rn||t),Rn=0;var n=_e.__H||(_e.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ir}),n.__[e]}function de(e){return Rn=1,_h(ro,e)}function _h(e,t,n){var r=ln(Ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ro(void 0,t),function(o){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,o);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=_e,!_e.u)){var i=function(o,u,c){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(f){return f.__c});if(h.every(function(f){return!f.__N}))return!a||a.call(this,o,u,c);var d=!1;return h.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===o)&&(!a||a.call(this,o,u,c))};_e.u=!0;var a=_e.shouldComponentUpdate,s=_e.componentWillUpdate;_e.componentWillUpdate=function(o,u,c){if(this.__e){var h=a;a=void 0,i(o,u,c),a=h}s&&s.call(this,o,u,c)},_e.shouldComponentUpdate=i}return r.__N||r.__}function Se(e,t){var n=ln(Ct++,3);!W.__s&&Bi(n.__H,t)&&(n.__=e,n.i=t,_e.__H.__h.push(n))}function Th(e,t){var n=ln(Ct++,4);!W.__s&&Bi(n.__H,t)&&(n.__=e,n.i=t,_e.__h.push(n))}function ve(e){return Rn=5,Ae(function(){return{current:e}},[])}function Ae(e,t){var n=ln(Ct++,7);return Bi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ue(e,t){return Rn=8,Ae(function(){return e},t)}function Ye(e){var t=_e.context[e.__c],n=ln(Ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_e)),t.props.value):e.__}function kh(){var e=ln(Ct++,11);if(!e.__){for(var t=_e.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function xh(){for(var e;e=Ks.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Nr),e.__H.__h.forEach(Mi),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){_e=null,Xs&&Xs(e)},W.__r=function(e){Zs&&Zs(e),Ct=0;var t=(_e=e.__c).__H;t&&(Pi===_e?(t.__h=[],_e.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Ir,n.__N=n.i=void 0})):(t.__h.forEach(Nr),t.__h.forEach(Mi),t.__h=[],Ct=0)),Pi=_e},W.diffed=function(e){Js&&Js(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ks.push(t)!==1&&Qs===W.requestAnimationFrame||((Qs=W.requestAnimationFrame)||yh)(xh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Ir&&(n.__=n.__V),n.i=void 0,n.__V=Ir})),Pi=_e=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Nr),n.__h=n.__h.filter(function(r){return!r.__||Mi(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],W.__e(r,n.__v)}}),eo&&eo(e,t)},W.unmount=function(e){to&&to(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Nr(r)}catch(i){t=i}}),n.__H=void 0,t&&W.__e(t,n.__v))};var no=typeof requestAnimationFrame=="function";function yh(e){var t,n=function(){clearTimeout(r),no&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);no&&(t=requestAnimationFrame(n))}function Nr(e){var t=_e,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_e=t}function Mi(e){var t=_e;e.__c=e.__(),_e=t}function Bi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ro(e,t){return typeof t=="function"?t(e):t}var wh=Symbol.for("preact-signals");function Fi(){if(cn>1)cn--;else{for(var e,t=!1;On!==void 0;){var n=On;for(On=void 0,Hi++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&ao(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Hi=0,cn--,t)throw e}}var pe=void 0,On=void 0,cn=0,Hi=0,vr=0;function io(e){if(pe!==void 0){var t=e.n;if(t===void 0||t.t!==pe)return t={i:0,S:e,p:pe.s,n:void 0,t:pe,e:void 0,x:void 0,r:t},pe.s!==void 0&&(pe.s.n=t),pe.s=t,e.n=t,32&pe.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=pe.s,t.n=void 0,pe.s.n=t,pe.s=t),t}}function Me(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Me.prototype.brand=wh,Me.prototype.h=function(){return!0},Me.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Me.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Me.prototype.subscribe=function(e){var t=this;return zi(function(){var n=t.value,r=pe;pe=void 0;try{e(n)}finally{pe=r}})},Me.prototype.valueOf=function(){return this.value},Me.prototype.toString=function(){return this.value+""},Me.prototype.toJSON=function(){return this.value},Me.prototype.peek=function(){var e=pe;pe=void 0;try{return this.value}finally{pe=e}},Object.defineProperty(Me.prototype,"value",{get:function(){var e=io(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hi>100)throw new Error("Cycle detected");this.v=e,this.i++,vr++,cn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fi()}}}});function We(e){return new Me(e)}function ao(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function so(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function oo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function dn(e){Me.call(this,void 0),this.x=e,this.s=void 0,this.g=vr-1,this.f=4}(dn.prototype=new Me).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===vr))return!0;if(this.g=vr,this.f|=1,this.i>0&&!ao(this))return this.f&=-2,!0;var e=pe;try{so(this),pe=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return pe=e,oo(this),this.f&=-2,!0},dn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Me.prototype.S.call(this,e)},dn.prototype.U=function(e){if(this.t!==void 0&&(Me.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},dn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(dn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=io(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ah(e){return new dn(e)}function uo(e){var t=e.u;if(e.u=void 0,typeof t=="function"){cn++;var n=pe;pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ui(e),r}finally{pe=n,Fi()}}}function Ui(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,uo(e)}function Ch(e){if(pe!==this)throw new Error("Out-of-order effect");oo(this),pe=e,this.f&=-2,8&this.f&&Ui(this),Fi()}function Dn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Dn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Dn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,uo(this),so(this),cn++;var e=pe;return pe=this,Ch.bind(this,e)},Dn.prototype.N=function(){2&this.f||(this.f|=2,this.o=On,On=this)},Dn.prototype.d=function(){this.f|=8,1&this.f||Ui(this)};function zi(e){var t=new Dn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var $i;function hn(e,t){W[e]=t.bind(null,W[e]||function(){})}function Lr(e){$i&&$i(),$i=e&&e.S()}function lo(e){var t=this,n=e.data,r=Ih(n);r.value=n;var i=Ae(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var s;!Ls(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},Ah(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}lo.displayName="_st",Object.defineProperties(Me.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:lo},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),hn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var a=r[i];a instanceof Me&&(n||(t.__np=n={}),n[i]=a,r[i]=a.peek())}}e(t)}),hn("__r",function(e,t){Lr();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var a;return zi(function(){a=this}),a.c=function(){r.__$f|=1,r.setState({})},a}())),Lr(n),e(t)}),hn("__e",function(e,t,n,r){Lr(),e(t,n,r)}),hn("diffed",function(e,t){Lr();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var a=n.U;if(a)for(var s in a){var o=a[s];o!==void 0&&!(s in r)&&(o.d(),a[s]=void 0)}else n.U=a={};for(var u in r){var c=a[u],h=r[u];c===void 0?(c=Sh(n,u,h,i),a[u]=c):c.o(h,i)}}}e(t)});function Sh(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,a=We(n);return{o:function(s,o){a.value=s,r=o},d:zi(function(){var s=a.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}hn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var a=r[i];a&&a.d()}}}}else{var s=t.__c;if(s){var o=s.__$u;o&&(s.__$u=void 0,o.d())}}e(t)}),hn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),lt.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function Ih(e){return Ae(function(){return We(e)},[])}const co=We(!1),Rr=We(!1),Or=We(null),Yt=We(null),ho=We("idle"),fo=We(!1),po=We("idle"),mo=We(null),go=We(null),ct=We([]),Yi=We([]),Nh=e=>({...e,timestamp:new Date(e.timestamp)}),ji=e=>({...e,id:crypto.randomUUID(),timestamp:new Date}),Vi=typeof BroadcastChannel<"u"?new BroadcastChannel("kin-sync"):null;Vi?.addEventListener("message",e=>{const{type:t,data:n}=e.data;switch(t){case"messages_updated":if(!Array.isArray(n?.messages))return;ct.value=n.messages.map(Nh);break;case"messages_cleared":ct.value=[];break}});const Dr=()=>{Vi?.postMessage({type:"messages_updated",data:{messages:ct.value}})},bo=(e,t=!0)=>{ct.value=[...ct.value,e],Yi.value=[],t&&Dr()},vh=e=>{const t=ji(e);return bo(t),t},Lh=e=>{ct.value=ct.value.filter(t=>t.id!==e),Dr()},Rh=()=>{Rr.value=!0,Or.value="thinking",Yt.value=ji({role:"assistant",content:""})},Oh=e=>{if(!e)return;const t=Yt.value;t&&(Yt.value={...t,content:t.content+e})},Dh=e=>{const{commit:t=!0,broadcast:n=!0}=e??{},r=Yt.value;Yt.value=null,Rr.value=!1,Or.value=null,t&&r?.content&&bo(r,!1),n&&Dr()},qi=()=>{Yt.value=null,Rr.value=!1,Or.value=null},Eo=()=>{ct.value=[],qi(),Vi?.postMessage({type:"messages_cleared"})},Ph=e=>{qi(),ct.value=e.filter(t=>t.role!=="system").map(ji),Dr()},_o=(e,t,n)=>{po.value=e,go.value=t??null,mo.value=n??null},$={isOpen:co,isStreaming:Rr,assistantStatus:Or,liveAssistantMessage:Yt,connectionState:ho,messages:ct,quickReplies:Yi,uploadState:po,uploadError:mo,uploadFileName:go,hasUnreadMessages:fo,addMessage:vh,removeMessage:Lh,startAssistantResponse:Rh,appendToLiveAssistantMessage:Oh,finishAssistantResponse:Dh,clearAssistantResponse:qi,clearMessages:Eo,setMessages:Ph,setUploadState:_o,resetState:()=>{co.value=!1,ho.value="idle",Yi.value=[],fo.value=!1,Eo(),_o("idle")}},Pr=un({base:"fr inline-flex shrink-0 items-center corner-smooth justify-center rounded-full transition-all duration-200 disabled:cursor-not-allowed",variants:{variant:{ghost:"bg-transparent text-n-8 hover:bg-n-3 hover:text-n-11 disabled:text-n-6 active:scale-95",neutral:"bg-n-3 text-n-9 hover:bg-n-4 hover:text-n-11 disabled:opacity-50 active:scale-95",accent:"bg-a-9 text-white hover:bg-a-10 disabled:opacity-50 active:scale-95"},size:{sm:"size-8 sm:size-7 [&_svg]:size-3.5",md:"size-9 sm:size-8 [&_svg]:size-4",lg:"size-10 sm:size-9 [&_svg]:size-5"}},defaultVariants:{size:"md"}});var Mh=0;function g(e,t,n,r,i,a){var s,o,u={};for(o in t)o=="ref"?s=t[o]:u[o]=t[o];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Mh,__source:i,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(o in s)u[o]===void 0&&(u[o]=s[o]);return W.vnode&&W.vnode(c),c}function Ge(e){return function(n){return g("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n.strokeWidth??1.5,strokeLinecap:"round",strokeLinejoin:"round",focusable:"false","aria-hidden":"true",...n,children:e()})}}function Bh({class:e}){return g("svg",{class:e,viewBox:"0 0 32 16",fill:"currentColor","aria-hidden":"true",focusable:"false",children:g("path",{d:"M8.28 12.54c-.76-.34-1.52-1.08-2.88-2.44l-2.02-2.02-.68-.68-.12-.16a.76.76 90 010-.72l.12-.16.68-.68A16.5 16.5 90 015.9 3.36a4.5 4.5 90 014.62 0c.44.26.94.72 2.5 2.32l1.1 1.1 1.54-1.54-1.1-1.1c-1.48-1.44-2.22-2.18-2.98-2.62a6.76 6.76 90 00-6.82 0c-.74.42-1.46 1.16-2.94 2.6-.64.64-.92.94-1.14 1.28a3 3 90 000 2.92c.2.34.52.64 1.14 1.28L4.3 12.1c1.1 1.08 1.64 1.62 2.26 2.02a6 6 90 001.76.72c.72.18 1.5.18 3.04.18h10.9c1.54 0 2.32 0 3.04-.18q.92-.22 1.76-.72c.64-.4 1.16-.94 2.26-2.02l.46-.48c5.8-5.8-2.88-14.48-8.66-8.66L13.98 10.1c-1.52 1.5-2.28 2.28-3.16 2.56a3.76 3.76 90 01-2.16.02l-.4-.16Z"})})}const Fh=Ge(()=>g("path",{d:"M6 10c2-4 3.5-7 6-7s4 3 6 7 4 8 2 9-6-2.5-8-2.5S6 20 4 19s0-5 2-9"})),Hh=Ge(()=>g("path",{d:"M18 6 6 18M18 18 6 6"})),Uh=Ge(()=>g(Ee,{children:[g("path",{d:"M4.5 5.5l.6 10c.2 2.6.2 3.9.9 4.8.3.4.7.8 1.2 1.1.9.6 2.2.6 4.8.6s3.8 0 4.8-.6c.5-.3.9-.7 1.2-1.1.6-.9.7-2.2.9-4.8l.6-10"}),g("path",{d:"m8.05 5.5.61-1.33c.44-.97.66-1.45 1.06-1.76.09-.07.18-.13.28-.18.44-.23.97-.23 2.04-.23 1.04 0 1.56 0 1.99.22.1.05.19.11.27.17.39.29.62.76 1.07 1.69l.68 1.41m4.94 0h-18"})]})),zh=Ge(()=>g("path",{d:"M5 14s1.5.5 3.5 4C8.5 18 12 11 19 7"})),To=Ge(()=>g("path",{d:"M5.8 12 4.3 10.5C2.6 8.8 2.6 6 4.3 4.3c1.7-1.7 4.5-1.7 6.2 0l9.2 9.2c1.7 1.8 1.7 4.5 0 6.2s-4.4 1.7-6.2 0l-3.4-3.4c-1.1-1.1-1.1-2.9 0-3.9 1-1.1 2.8-1.1 3.8 0l2 1.9"})),$h=Ge(()=>g("path",{d:"M21 12a9 9 0 11-6.219-8.56"})),ko=Ge(()=>g(Ee,{children:[g("path",{d:"M9.6 6.1c.3-.8 1.5-.8 1.8 0l.9 2.3c.6 1.5 1.8 2.7 3.3 3.3l2.3.9c.8.3.8 1.5 0 1.8l-2.3.9c-1.5.6-2.7 1.8-3.3 3.3l-.9 2.3c-.3.8-1.5.8-1.8 0l-.9-2.3c-.6-1.5-1.8-2.7-3.3-3.3l-2.3-.9c-.8-.3-.8-1.5 0-1.8l2.3-.9c1.5-.6 2.7-1.8 3.3-3.3l.9-2.3Z"}),g("path",{d:"M18.16 2.73c.12-.31.56-.31.68 0l.34.87c.22.56.66 1 1.22 1.22l.87.34c.31.12.31.56 0 .68l-.87.34c-.56.22-1 .66-1.22 1.22l-.34.87c-.12.31-.56.31-.68 0l-.34-.87c-.22-.56-.66-1-1.22-1.22l-.87-.34c-.31-.12-.31-.56 0-.68l.87-.34c.56-.22 1-.66 1.22-1.22l.34-.87Z"})]})),Yh=Ge(()=>g(Ee,{children:[g("path",{d:"M15 15l1.5 1.5"}),g("path",{d:"M16.93 19.03c-.57-.58-.57-1.52 0-2.1.58-.57 1.52-.57 2.1 0l2.04 2.04c.57.58.57 1.52 0 2.1-.58.57-1.52.57-2.1 0l-2.04-2.04Z"}),g("path",{d:"M16.5 9.5c0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7 7-3.1 7-7Z"})]})),xo=Ge(()=>g(Ee,{children:[g("path",{d:"M21 11c0-2.2-.2-3.5-1.1-4.4-1.1-1.1-2.9-1.1-6.5-1.1H9.6c-3.6 0-5.4 0-6.5 1.1C2 7.8 2 9.6 2 13.3c0 3.6 0 5.4 1.1 6.6C4.2 21 6 21 9.6 21H11"}),g("path",{d:"M20 20l2 2m-.9-4.5c0-1.9-1.6-3.5-3.6-3.5-1.9 0-3.5 1.6-3.5 3.5 0 2 1.6 3.6 3.5 3.6 2 0 3.6-1.6 3.6-3.6Z"}),g("path",{d:"M7 5.5l.1-.3c.5-1.5.7-2.3 1.3-2.8C9 2 9.8 2 11.4 2h.2c1.6 0 2.4 0 3 .4.6.5.8 1.3 1.3 2.8l.1.3"})]})),yo=Ge(()=>g(Ee,{children:[g("path",{d:"M11 21H10c-3.8 0-5.7 0-6.8-1.2C2 18.7 2 16.8 2 13V10C2 6.2 2 4.3 3.2 3.2 4.3 2 6.2 2 10 2h2c3.8 0 5.7 0 6.8 1.2C20 4.3 20 6.2 20 10v.5"}),g("path",{d:"M17.41 14.4c.21-.54.97-.54 1.19 0l.04.09c.52 1.31 1.56 2.35 2.87 2.87l.09.04c.54.21.54.97 0 1.19l-.09.04c-1.31.52-2.35 1.56-2.87 2.87l-.04.09c-.21.54-.97.54-1.19 0l-.04-.09c-.52-1.31-1.56-2.35-2.87-2.87l-.09-.04c-.54-.21-.54-.97 0-1.19l.09-.04c1.31-.52 2.35-1.56 2.87-2.87l.04-.09Z"}),g("path",{d:"M7 7h8M7 11.5h8M7 16h4"})]})),jh=Ge(()=>g(Ee,{children:[g("path",{d:"M5 14v6"}),g("path",{d:"M5 4v7"}),g("path",{d:"M9 8h6"}),g("path",{d:"M2 14H8"}),g("path",{d:"M16 12h6"}),g("path",{d:"M12 8V4"}),g("path",{d:"M12 11v9"}),g("path",{d:"M19 4v8"}),g("path",{d:"M19 15v5"})]})),Vh=Ge(()=>g("path",{d:"M4 18c0 2.3 0 3.5.8 3.9 1.5.8 4.3-1.9 5.6-2.7.8-.5 1.2-.7 1.6-.7s.8.2 1.6.7c1.3.8 4.1 3.5 5.6 2.7.8-.4.8-1.6.8-3.9V9.7c0-3.6 0-5.5-1.2-6.6C17.7 2 15.8 2 12 2S6.3 2 5.2 3.1 4 6.1 4 9.7v8.3Z"})),wo=Ge(()=>g(Ee,{children:[g("path",{d:"m19.4 7.6-3-3m3 3-6.7 6.7c-.5.5-1.1.9-1.8 1L8 16l.7-2.9c.2-.7.5-1.3 1-1.8l6.7-6.7m3 3 1-1c.8-.8.8-2.1 0-3-.8-.8-2.1-.8-3 0l-1 1"}),g("path",{d:"M10.5 5c-3.29 0-4.93 0-6.04.91-.2.17-.39.35-.55.55C3 7.57 3 9.21 3 12.5V13c0 3.77 0 5.66 1.17 6.83C5.34 21 7.23 21 11 21h.5c3.29 0 4.93 0 6.04-.91.2-.17.39-.35.55-.55.91-1.11.91-2.75.91-6.04"})]}));function qh(e,t){for(var n in t)e[n]=t[n];return e}function Wi(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ao(e){this.props=e}function he(e,t){function n(i){var a=this.props.ref,s=a==i.ref;return!s&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!s:Wi(this.props,i)}function r(i){return this.shouldComponentUpdate=n,ut(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ao.prototype=new lt).isPureReactComponent=!0,Ao.prototype.shouldComponentUpdate=function(e,t){return Wi(this.props,e)||Wi(this.state,t)};var Co=W.__b;W.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Co&&Co(e)};var Wh=W.__e;W.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Wh(e,t,n,r)};var So=W.unmount;function Io(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=qh({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Io(r,t,n)})),e}function No(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return No(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Pn(){this.__u=0,this.t=null,this.__b=null}function vo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lo(e){var t,n,r;function i(a){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return ut(n,a)}return i.displayName="Lazy",i.__f=!0,i}function Mr(){this.u=null,this.o=null}W.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),So&&So(e)},(Pn.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=vo(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,i?i(o):o())};n.__R=s;var o=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=No(c,c.__c.__P,c.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.t.pop();)h.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Pn.prototype.componentWillUnmount=function(){this.t=[]},Pn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Io(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ut(Ee,null,e.fallback);return i&&(i.__h=null),[ut(Ee,null,t.__a?null:e.children),i]};var Ro=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Gh(e){return this.getChildContext=function(){return e.context},e.children}function Qh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Cr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Cr(ut(Gh,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Oo(e,t){var n=ut(Qh,{__v:e,i:t});return n.containerInfo=t,n}(Mr.prototype=new lt).__a=function(e){var t=this,n=vo(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Ro(t,e,r)):i()};n?n(a):a()}},Mr.prototype.render=function(e){this.u=null,this.o=new Map;var t=wr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Mr.prototype.componentDidUpdate=Mr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ro(e,n,t)})};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zh=/[A-Z0-9]/g,Jh=typeof document<"u",ef=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Po=W.event;function tf(){}function nf(){return this.cancelBubble}function rf(){return this.defaultPrevented}W.event=function(e){return Po&&(e=Po(e)),e.persist=tf,e.isPropagationStopped=nf,e.isDefaultPrevented=rf,e.nativeEvent=e};var af={enumerable:!1,configurable:!0,get:function(){return this.class}},Mo=W.vnode;W.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Jh&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var o=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":o==="ondoubleclick"?a="ondblclick":o!=="onchange"||r!=="input"&&r!=="textarea"||ef(n.type)?o==="onfocus"?a="onfocusin":o==="onblur"?a="onfocusout":Xh.test(a)?a=o:r.indexOf("-")===-1&&Kh.test(a)?a=a.replace(Zh,"-$&").toLowerCase():s===null&&(s=void 0):o=a="oninput",o==="oninput"&&i[a=o]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=wr(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=wr(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",af)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Do,Mo&&Mo(e)};var Bo=W.__r;W.__r=function(e){Bo&&Bo(e)};var Fo=W.diffed;W.diffed=function(e){Fo&&Fo(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function St(e){return!!e&&e.$$typeof===Do}function sf(e){return St(e)?qs.apply(null,arguments):e}function of(e){e()}function uf(){return[!1,of]}const Br=function(e){if(e==null)return hf;if(typeof e=="function")return Fr(e);if(typeof e=="object")return Array.isArray(e)?lf(e):cf(e);if(typeof e=="string")return df(e);throw new Error("Expected function, string, or object as test")};function lf(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Br(e[n]);return Fr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function cf(e){const t=e;return Fr(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function df(e){return Fr(t);function t(n){return n&&n.type===e}}function Fr(e){return t;function t(n,r,i){return!!(ff(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function hf(){return!0}function ff(e){return e!==null&&typeof e=="object"&&"type"in e}function p5(e){return e}const Ho=[],Mn=!0,Gi=!1,fn="skip";function Qi(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Br(i),s=r?-1:1;o(e,void 0,[])();function o(u,c,h){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Ho,m,T,w;if((!t||a(u,c,h[h.length-1]||void 0))&&(p=pf(n(u,h)),p[0]===Gi))return p;if("children"in u&&u.children){const y=u;if(y.children&&p[0]!==fn)for(T=(r?y.children.length:-1)+s,w=h.concat(y);T>-1&&T<y.children.length;){const I=y.children[T];if(m=o(I,T,w)(),m[0]===Gi)return m;T=typeof m[1]=="number"?m[1]:T+s}}return p}}}function pf(e){return Array.isArray(e)?e:typeof e=="number"?[Mn,e]:e==null?Ho:[e]}function It(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),Qi(e,a,o,i);function o(u,c){const h=c[c.length-1],d=h?h.children.indexOf(u):void 0;return s(u,d,h)}}const pn={indicator:"indicator",textOnly:"text-only",remove:"remove"};function mf({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=pn.indicator,imageBlockPolicy:u=pn.indicator}){const c=t.length&&!t.every(d=>d==="*"),h=n.length&&!n.every(d=>d==="*");if(!e&&(c||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const f=kf(e,t,n,r,i,a,s,o,u);$o(d),It(d,f)}}function Uo(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function gf(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const bf=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),Ef=new Set(["javascript:","data:","file:","vbscript:"]);function zo(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const h=e.substring(5);if(h&&h.length>0&&h!=="invalid")return e}}catch{return null}return null}const s=Uo(e,n);if(!s||Ef.has(s.protocol)||!(bf.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const u=gf(e);return s&&t.some(c=>{const h=Uo(c,n);return!h||h.origin!==s.origin?!1:s.href.startsWith(h.href)})?u?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:u?s.pathname+s.search+s.hash:s.href:null}function $o(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)$o(t)}}const Ki=Symbol("node-seen");function _f(e,t,n){return t===pn.remove?{type:"remove"}:t===pn.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function Tf(e,t,n){if(t===pn.remove)return{type:"remove"};if(t===pn.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const kf=(e,t,n,r,i,a,s,o,u)=>{const c=(h,d,f)=>{if(h.type!=="element"||h[Ki])return Mn;if(h.tagName==="a"){const p=zo(h.properties.href,t,e,!1,!1,i);if(p===null){if(h[Ki]=!0,It(h,c),f&&typeof d=="number"){const m=_f(h,o,s);if(m.type==="remove")return f.children.splice(d,1),[fn,d];f.children[d]=m.element}return fn}else return h.properties.href=p,h.properties.target="_blank",h.properties.rel="noopener noreferrer",Mn}if(h.tagName==="img"){const p=zo(h.properties.src,n,e,r,!0,i);if(p===null){if(h[Ki]=!0,It(h,c),f&&typeof d=="number"){const m=Tf(h,u,a);if(m.type==="remove")return f.children.splice(d,1),[fn,d];f.children[d]=m.element}return fn}else return h.properties.src=p,Mn}return Mn};return c},Yo=-1,Hr=0,Bn=1,Ur=2,Xi=3,Zi=4,Ji=5,ea=6,jo=7,Vo=8,qo=typeof self=="object"?self:globalThis,xf=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Hr:case Yo:return n(s,i);case Bn:{const o=n([],i);for(const u of s)o.push(r(u));return o}case Ur:{const o=n({},i);for(const[u,c]of s)o[r(u)]=r(c);return o}case Xi:return n(new Date(s),i);case Zi:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case Ji:{const o=n(new Map,i);for(const[u,c]of s)o.set(r(u),r(c));return o}case ea:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case jo:{const{name:o,message:u}=s;return n(new qo[o](u),i)}case Vo:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new qo[a](s),i)};return r},Wo=e=>xf(new Map,e)(0),mn="",{toString:yf}={},{keys:wf}=Object,Fn=e=>{const t=typeof e;if(t!=="object"||!e)return[Hr,t];const n=yf.call(e).slice(8,-1);switch(n){case"Array":return[Bn,mn];case"Object":return[Ur,mn];case"Date":return[Xi,mn];case"RegExp":return[Zi,mn];case"Map":return[Ji,mn];case"Set":return[ea,mn];case"DataView":return[Bn,n]}return n.includes("Array")?[Bn,n]:n.includes("Error")?[jo,n]:[Ur,n]},zr=([e,t])=>e===Hr&&(t==="function"||t==="symbol"),Af=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Fn(s);switch(o){case Hr:{let h=s;switch(u){case"bigint":o=Vo,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return i([Yo],s)}return i([o,h],s)}case Bn:{if(u){let f=s;return u==="DataView"?f=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(s)),i([u,[...f]],s)}const h=[],d=i([o,h],s);for(const f of s)h.push(a(f));return d}case Ur:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([o,h],s);for(const f of wf(s))(e||!zr(Fn(s[f])))&&h.push([a(f),a(s[f])]);return d}case Xi:return i([o,s.toISOString()],s);case Zi:{const{source:h,flags:d}=s;return i([o,{source:h,flags:d}],s)}case Ji:{const h=[],d=i([o,h],s);for(const[f,p]of s)(e||!(zr(Fn(f))||zr(Fn(p))))&&h.push([a(f),a(p)]);return d}case ea:{const h=[],d=i([o,h],s);for(const f of s)(e||!zr(Fn(f)))&&h.push(a(f));return d}}const{message:c}=s;return i([o,{name:u,message:c}],s)};return a},Go=(e,{json:t,lossy:n}={})=>{const r=[];return Af(!(t||n),!!t,new Map,r)(e),r},jt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Wo(Go(e,t)):structuredClone(e):(e,t)=>Wo(Go(e,t));class Hn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Hn.prototype.normal={},Hn.prototype.property={},Hn.prototype.space=void 0;function Qo(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Hn(n,r,t)}function Un(e){return e.toLowerCase()}class je{constructor(t,n){this.attribute=n,this.property=t}}je.prototype.attribute="",je.prototype.booleanish=!1,je.prototype.boolean=!1,je.prototype.commaOrSpaceSeparated=!1,je.prototype.commaSeparated=!1,je.prototype.defined=!1,je.prototype.mustUseProperty=!1,je.prototype.number=!1,je.prototype.overloadedBoolean=!1,je.prototype.property="",je.prototype.spaceSeparated=!1,je.prototype.space=void 0;let Cf=0;const ee=Vt(),Ie=Vt(),ta=Vt(),U=Vt(),be=Vt(),gn=Vt(),Qe=Vt();function Vt(){return 2**++Cf}const na=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:Ie,commaOrSpaceSeparated:Qe,commaSeparated:gn,number:U,overloadedBoolean:ta,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),ra=Object.keys(na);class ia extends je{constructor(t,n,r,i){let a=-1;if(super(t,n),Ko(this,"space",i),typeof r=="number")for(;++a<ra.length;){const s=ra[a];Ko(this,ra[a],(r&na[s])===na[s])}}}ia.prototype.defined=!0;function Ko(e,t,n){n&&(e[t]=n)}function bn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new ia(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Un(r)]=r,n[Un(a.attribute)]=r}return new Hn(t,n,e.space)}const Xo=bn({properties:{ariaActiveDescendant:null,ariaAtomic:Ie,ariaAutoComplete:null,ariaBusy:Ie,ariaChecked:Ie,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Ie,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Ie,ariaFlowTo:be,ariaGrabbed:Ie,ariaHasPopup:null,ariaHidden:Ie,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:U,ariaLive:null,ariaModal:Ie,ariaMultiLine:Ie,ariaMultiSelectable:Ie,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Ie,ariaReadOnly:Ie,ariaRelevant:null,ariaRequired:Ie,ariaRoleDescription:be,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Ie,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Zo(e,t){return t in e?e[t]:t}function Jo(e,t){return Zo(e,t.toLowerCase())}const Sf=bn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gn,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:be,autoFocus:ee,autoPlay:ee,blocking:be,capture:null,charSet:null,checked:ee,cite:null,className:be,cols:U,colSpan:null,content:null,contentEditable:Ie,controls:ee,controlsList:be,coords:U|gn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:ta,draggable:Ie,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:be,height:U,hidden:ta,high:U,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:be,itemRef:be,itemScope:ee,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:U,pattern:null,ping:be,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:be,required:ee,reversed:ee,rows:U,rowSpan:U,sandbox:be,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Ie,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:Ie,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Ie,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Jo}),If=bn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qe,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:be,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:gn,g2:gn,glyphName:gn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zo}),eu=bn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),tu=bn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Jo}),nu=bn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Nf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},vf=/[A-Z]/g,ru=/-[a-z]/g,Lf=/^data[-\w.:]+$/i;function $r(e,t){const n=Un(t);let r=t,i=je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Lf.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ru,Of);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ru.test(a)){let s=a.replace(vf,Rf);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ia}return new i(r,t)}function Rf(e){return"-"+e.toLowerCase()}function Of(e){return e.charAt(1).toUpperCase()}const zn=Qo([Xo,Sf,eu,tu,nu],"html"),Nt=Qo([Xo,If,eu,tu,nu],"svg");function iu(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function au(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const su=/[#.]/g;function Df(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){su.lastIndex=i;const o=su.exec(n),u=n.slice(i,o?o.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function ou(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function uu(e){return e.join(" ").trim()}function lu(e,t,n){const r=n?Ff(n):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const c=s;o.unshift(c)}else{u=Df(a,t);const c=u.tagName.toLowerCase(),h=r?r.get(c):void 0;if(u.tagName=h||c,Pf(s))o.unshift(s);else for(const[d,f]of Object.entries(s))Mf(e,u.properties,d,f)}for(const c of o)aa(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Pf(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Mf(e,t,n,r){const i=$r(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=ou(r):i.commaSeparated?a=iu(r):i.commaOrSpaceSeparated?a=ou(iu(r).join(" ")):a=cu(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Bf(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(cu(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function aa(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)aa(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?aa(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function cu(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Un(n)===Un(t)))return!0}return n}function Bf(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Ff(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Hf=["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"],Uf=lu(zn,"div"),zf=lu(Nt,"g",Hf);function $f(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=du(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],u=du(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function du(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const qt={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/"},hu={}.hasOwnProperty,Yf=Object.prototype;function jf(e,t){const n=t||{};return sa({file:n.file||void 0,location:!1,schema:n.space==="svg"?Nt:zn,verbose:n.verbose||!1},e)}function sa(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Yr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:fu(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=$f(a),o=s.toPoint(0),u=s.toPoint(a.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Yr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Yr(e,r,n),n}default:return n=Vf(e,t),n}}function fu(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=sa(e,t[n]);r.push(i)}return r}function Vf(e,t){const n=e.schema;e.schema=t.namespaceURI===qt.svg?Nt:zn;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;hu.call(Yf,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?zf:Uf)(t.tagName,i,fu(e,t.childNodes));if(Yr(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&En(u.startTag),h=u&&u.endTag&&En(u.endTag),d=sa(e,o.content);c&&h&&e.file&&(d.position={start:c.end,end:h.start}),s.content=d}return e.schema=n,s}function Yr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=qf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function qf(e,t,n){const r=En(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 a={};let s;if(n.attrs)for(s in n.attrs)hu.call(n.attrs,s)&&(a[$r(e.schema,s).property]=En(n.attrs[s]));const o=En(n.startTag),u=n.endTag?En(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=a,t.data={position:c}}}return r}function En(e){const t=pu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=pu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function pu(e){return e.line&&e.column?e:void 0}const mu={}.hasOwnProperty;function gu(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&mu.call(i,e)){const u=String(i[e]);s=mu.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Wf={},Gf={}.hasOwnProperty,bu=gu("type",{handlers:{root:Kf,element:tp,text:Jf,comment:ep,doctype:Zf}});function Qf(e,t){const r=(t||Wf).space;return bu(e,r==="svg"?Nt:zn)}function Kf(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=oa(e.children,n,t),_n(e,n),n}function Xf(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=oa(e.children,n,t),_n(e,n),n}function Zf(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return _n(e,t),t}function Jf(e){const t={nodeName:"#text",value:e.value,parentNode:null};return _n(e,t),t}function ep(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return _n(e,t),t}function tp(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Nt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Gf.call(e.properties,a)){const u=np(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:qt[s],childNodes:[],parentNode:null};return o.childNodes=oa(e.children,o,r),_n(e,o),e.tagName==="template"&&e.content&&(o.content=Xf(e.content,r)),o}function np(e,t,n){const r=$r(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?au(n):uu(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=qt[r.space]}return i}function oa(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=bu(e[r],n);a.parentNode=t,i.push(a)}return i}function _n(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const rp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],ip=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),xe="�";var b;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(b||(b={}));const Ve={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Eu(e){return e>=55296&&e<=57343}function ap(e){return e>=56320&&e<=57343}function sp(e,t){return(e-55296)*1024+9216+t}function _u(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Tu(e){return e>=64976&&e<=65007||ip.has(e)}var v;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(v||(v={}));const op=65536;class up{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=op,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(ap(n))return this.pos++,this._addGap(),sp(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(v.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Eu(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){_u(t)?this._err(v.controlCharacterInInputStream):Tu(t)&&this._err(v.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var re;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(re||(re={}));function ku(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const lp=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),cp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function dp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=cp.get(e))!==null&&t!==void 0?t:e}var Oe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Oe||(Oe={}));const hp=32;var vt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vt||(vt={}));function ua(e){return e>=Oe.ZERO&&e<=Oe.NINE}function fp(e){return e>=Oe.UPPER_A&&e<=Oe.UPPER_F||e>=Oe.LOWER_A&&e<=Oe.LOWER_F}function pp(e){return e>=Oe.UPPER_A&&e<=Oe.UPPER_Z||e>=Oe.LOWER_A&&e<=Oe.LOWER_Z||ua(e)}function mp(e){return e===Oe.EQUALS||pp(e)}var De;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(De||(De={}));var _t;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(_t||(_t={}));class gp{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=De.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_t.Strict}startEntity(t){this.decodeMode=t,this.state=De.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case De.EntityStart:return t.charCodeAt(n)===Oe.NUM?(this.state=De.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=De.NamedEntity,this.stateNamedEntity(t,n));case De.NumericStart:return this.stateNumericStart(t,n);case De.NumericDecimal:return this.stateNumericDecimal(t,n);case De.NumericHex:return this.stateNumericHex(t,n);case De.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|hp)===Oe.LOWER_X?(this.state=De.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=De.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ua(i)||fp(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ua(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Oe.SEMI)this.consumed+=1;else if(this.decodeMode===_t.Strict)return 0;return this.emitCodePoint(dp(this.result),this.consumed),this.errors&&(t!==Oe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=bp(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===_t.Attribute&&(a===0||mp(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14,a!==0){if(s===Oe.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==_t.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&vt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~vt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case De.NamedEntity:return this.result!==0&&(this.decodeMode!==_t.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case De.NumericDecimal:return this.emitNumericEntity(0,2);case De.NumericHex:return this.emitNumericEntity(0,3);case De.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case De.EntityStart:return 0}}}function bp(e,t,n,r){const i=(t&vt.BRANCH_LENGTH)>>7,a=t&vt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)o=u-1;else return e[u+i]}return-1}var M;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(M||(M={}));var Wt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Wt||(Wt={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const Ep=new Map([[N.A,l.A],[N.ADDRESS,l.ADDRESS],[N.ANNOTATION_XML,l.ANNOTATION_XML],[N.APPLET,l.APPLET],[N.AREA,l.AREA],[N.ARTICLE,l.ARTICLE],[N.ASIDE,l.ASIDE],[N.B,l.B],[N.BASE,l.BASE],[N.BASEFONT,l.BASEFONT],[N.BGSOUND,l.BGSOUND],[N.BIG,l.BIG],[N.BLOCKQUOTE,l.BLOCKQUOTE],[N.BODY,l.BODY],[N.BR,l.BR],[N.BUTTON,l.BUTTON],[N.CAPTION,l.CAPTION],[N.CENTER,l.CENTER],[N.CODE,l.CODE],[N.COL,l.COL],[N.COLGROUP,l.COLGROUP],[N.DD,l.DD],[N.DESC,l.DESC],[N.DETAILS,l.DETAILS],[N.DIALOG,l.DIALOG],[N.DIR,l.DIR],[N.DIV,l.DIV],[N.DL,l.DL],[N.DT,l.DT],[N.EM,l.EM],[N.EMBED,l.EMBED],[N.FIELDSET,l.FIELDSET],[N.FIGCAPTION,l.FIGCAPTION],[N.FIGURE,l.FIGURE],[N.FONT,l.FONT],[N.FOOTER,l.FOOTER],[N.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[N.FORM,l.FORM],[N.FRAME,l.FRAME],[N.FRAMESET,l.FRAMESET],[N.H1,l.H1],[N.H2,l.H2],[N.H3,l.H3],[N.H4,l.H4],[N.H5,l.H5],[N.H6,l.H6],[N.HEAD,l.HEAD],[N.HEADER,l.HEADER],[N.HGROUP,l.HGROUP],[N.HR,l.HR],[N.HTML,l.HTML],[N.I,l.I],[N.IMG,l.IMG],[N.IMAGE,l.IMAGE],[N.INPUT,l.INPUT],[N.IFRAME,l.IFRAME],[N.KEYGEN,l.KEYGEN],[N.LABEL,l.LABEL],[N.LI,l.LI],[N.LINK,l.LINK],[N.LISTING,l.LISTING],[N.MAIN,l.MAIN],[N.MALIGNMARK,l.MALIGNMARK],[N.MARQUEE,l.MARQUEE],[N.MATH,l.MATH],[N.MENU,l.MENU],[N.META,l.META],[N.MGLYPH,l.MGLYPH],[N.MI,l.MI],[N.MO,l.MO],[N.MN,l.MN],[N.MS,l.MS],[N.MTEXT,l.MTEXT],[N.NAV,l.NAV],[N.NOBR,l.NOBR],[N.NOFRAMES,l.NOFRAMES],[N.NOEMBED,l.NOEMBED],[N.NOSCRIPT,l.NOSCRIPT],[N.OBJECT,l.OBJECT],[N.OL,l.OL],[N.OPTGROUP,l.OPTGROUP],[N.OPTION,l.OPTION],[N.P,l.P],[N.PARAM,l.PARAM],[N.PLAINTEXT,l.PLAINTEXT],[N.PRE,l.PRE],[N.RB,l.RB],[N.RP,l.RP],[N.RT,l.RT],[N.RTC,l.RTC],[N.RUBY,l.RUBY],[N.S,l.S],[N.SCRIPT,l.SCRIPT],[N.SEARCH,l.SEARCH],[N.SECTION,l.SECTION],[N.SELECT,l.SELECT],[N.SOURCE,l.SOURCE],[N.SMALL,l.SMALL],[N.SPAN,l.SPAN],[N.STRIKE,l.STRIKE],[N.STRONG,l.STRONG],[N.STYLE,l.STYLE],[N.SUB,l.SUB],[N.SUMMARY,l.SUMMARY],[N.SUP,l.SUP],[N.TABLE,l.TABLE],[N.TBODY,l.TBODY],[N.TEMPLATE,l.TEMPLATE],[N.TEXTAREA,l.TEXTAREA],[N.TFOOT,l.TFOOT],[N.TD,l.TD],[N.TH,l.TH],[N.THEAD,l.THEAD],[N.TITLE,l.TITLE],[N.TR,l.TR],[N.TRACK,l.TRACK],[N.TT,l.TT],[N.U,l.U],[N.UL,l.UL],[N.SVG,l.SVG],[N.VAR,l.VAR],[N.WBR,l.WBR],[N.XMP,l.XMP]]);function Tn(e){var t;return(t=Ep.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const F=l,_p={[M.HTML]:new Set([F.ADDRESS,F.APPLET,F.AREA,F.ARTICLE,F.ASIDE,F.BASE,F.BASEFONT,F.BGSOUND,F.BLOCKQUOTE,F.BODY,F.BR,F.BUTTON,F.CAPTION,F.CENTER,F.COL,F.COLGROUP,F.DD,F.DETAILS,F.DIR,F.DIV,F.DL,F.DT,F.EMBED,F.FIELDSET,F.FIGCAPTION,F.FIGURE,F.FOOTER,F.FORM,F.FRAME,F.FRAMESET,F.H1,F.H2,F.H3,F.H4,F.H5,F.H6,F.HEAD,F.HEADER,F.HGROUP,F.HR,F.HTML,F.IFRAME,F.IMG,F.INPUT,F.LI,F.LINK,F.LISTING,F.MAIN,F.MARQUEE,F.MENU,F.META,F.NAV,F.NOEMBED,F.NOFRAMES,F.NOSCRIPT,F.OBJECT,F.OL,F.P,F.PARAM,F.PLAINTEXT,F.PRE,F.SCRIPT,F.SECTION,F.SELECT,F.SOURCE,F.STYLE,F.SUMMARY,F.TABLE,F.TBODY,F.TD,F.TEMPLATE,F.TEXTAREA,F.TFOOT,F.TH,F.THEAD,F.TITLE,F.TR,F.TRACK,F.UL,F.WBR,F.XMP]),[M.MATHML]:new Set([F.MI,F.MO,F.MN,F.MS,F.MTEXT,F.ANNOTATION_XML]),[M.SVG]:new Set([F.TITLE,F.FOREIGN_OBJECT,F.DESC]),[M.XLINK]:new Set,[M.XML]:new Set,[M.XMLNS]:new Set},la=new Set([F.H1,F.H2,F.H3,F.H4,F.H5,F.H6]);var E;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(E||(E={}));const Ce={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function Tp(e){return e>=b.DIGIT_0&&e<=b.DIGIT_9}function $n(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function kp(e){return e>=b.LATIN_SMALL_A&&e<=b.LATIN_SMALL_Z}function Lt(e){return kp(e)||$n(e)}function xu(e){return Lt(e)||Tp(e)}function jr(e){return e+32}function yu(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function wu(e){return yu(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}function xp(e){return e===b.NULL?v.nullCharacterReference:e>1114111?v.characterReferenceOutsideUnicodeRange:Eu(e)?v.surrogateCharacterReference:Tu(e)?v.noncharacterCharacterReference:_u(e)||e===b.CARRIAGE_RETURN?v.controlCharacterReference:null}class yp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new up(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new gp(lp,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(v.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(v.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=xp(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:re.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:re.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:re.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:re.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ku(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(v.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Tn(t.tagName),t.type===re.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(v.endTagWithAttributes),t.selfClosing&&this._err(v.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case re.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case re.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case re.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:re.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=yu(t)?re.WHITESPACE_CHARACTER:t===b.NULL?re.NULL_CHARACTER:re.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(re.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?_t.Attribute:_t.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitCodePoint(t);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:{this._startCharacterReference();break}case b.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Lt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case b.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case b.QUESTION_MARK:{this._err(v.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case b.EOF:{this._err(v.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Lt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:{this._err(v.missingEndTagName),this.state=E.DATA;break}case b.EOF:{this._err(v.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.tagName+=xe;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint($n(t)?jr(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Lt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Lt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case b.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Lt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Lt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Lt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&wu(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(xe);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ve.SCRIPT,!1)&&wu(this.preprocessor.peek(Ve.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ve.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._err(v.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:{this._err(v.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.name+=xe;break}default:this.currentAttr.name+=String.fromCodePoint($n(t)?jr(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=xe;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:{this._err(v.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.data+=xe;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ve.DASH_DASH,!0)?(this._createCommentToken(Ve.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(Ve.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ve.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(Ve.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(v.cdataInHtmlContent),this._createCommentToken(Ve.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(v.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case b.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.data+=xe;break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case b.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(v.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case b.HYPHEN_MINUS:{n.data+="-";break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case b.GREATER_THAN_SIGN:{this._err(v.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case b.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if($n(t))this._createDoctypeToken(String.fromCharCode(jr(t))),this.state=E.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:{this._err(v.unexpectedNullCharacter),this._createDoctypeToken(xe),this.state=E.DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.name+=xe;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint($n(t)?jr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ve.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ve.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(v.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=xe;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.NULL:{this._err(v.unexpectedNullCharacter);break}case b.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case b.EOF:{this._err(v.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA;break}case b.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&xu(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){xu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(v.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Au=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),Cu=new Set([...Au,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),Vr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),wp=new Set([...Vr,l.OL,l.UL]),Ap=new Set([...Vr,l.BUTTON]),Su=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),Iu=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),Cp=new Set([l.TR,l.TEMPLATE,l.HTML]),Sp=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),Ip=new Set([l.TABLE,l.TEMPLATE,l.HTML]),Np=new Set([l.TD,l.TH]);class vp{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===M.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==M.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(la,M.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Np,M.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Ip,M.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Sp,M.HTML)}clearBackToTableRowContext(){this.clearBackTo(Cp,M.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case M.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case M.SVG:{if(Iu.has(i))return!1;break}case M.MATHML:{if(Su.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Vr)}hasInListItemScope(t){return this.hasInDynamicScope(t,wp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ap)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case M.HTML:{if(la.has(n))return!0;if(Vr.has(n))return!1;break}case M.SVG:{if(Iu.has(n))return!1;break}case M.MATHML:{if(Su.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===M.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===M.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===M.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Au.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Cu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Cu.has(this.currentTagId);)this.pop()}}const ca=3;var dt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dt||(dt={}));const Nu={type:dt.Marker};class Lp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===dt.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===i&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ca)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ca)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=ca&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Nu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Nu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dt.Element&&n.element===t)}}const Rt={createDocument(){return{nodeName:"#document",mode:et.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Rt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Rt.isTextNode(n)){n.value+=t;return}}Rt.appendChild(e,Rt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Rt.isTextNode(r)?r.value+=t:Rt.insertBefore(e,Rt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},vu="html",Rp="about:legacy-compat",Op="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Lu=["+//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//"],Dp=[...Lu,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Pp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ru=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Mp=[...Ru,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ou(e,t){return t.some(n=>e.startsWith(n))}function Bp(e){return e.name===vu&&e.publicId===null&&(e.systemId===null||e.systemId===Rp)}function Fp(e){if(e.name!==vu)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Op)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Pp.has(n))return et.QUIRKS;let r=t===null?Dp:Lu;if(Ou(n,r))return et.QUIRKS;if(r=t===null?Ru:Mp,Ou(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Du={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Hp="definitionurl",Up="definitionURL",zp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),$p=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:M.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:M.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:M.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:M.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:M.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:M.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:M.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:M.XML}],["xml:space",{prefix:"xml",name:"space",namespace:M.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:M.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:M.XMLNS}]]),Yp=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),jp=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function Vp(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===Wt.COLOR||r===Wt.SIZE||r===Wt.FACE)||jp.has(t)}function Pu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Hp){e.attrs[t].name=Up;break}}function Mu(e){for(let t=0;t<e.attrs.length;t++){const n=zp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function da(e){for(let t=0;t<e.attrs.length;t++){const n=$p.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function qp(e){const t=Yp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tn(e.tagName))}function Wp(e,t){return t===M.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function Gp(e,t,n){if(t===M.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Wt.ENCODING){const i=n[r].value.toLowerCase();return i===Du.TEXT_HTML||i===Du.APPLICATION_XML}}return t===M.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function Qp(e,t,n,r){return(!r||r===M.HTML)&&Gp(e,t,n)||(!r||r===M.MATHML)&&Wp(e,t)}const Kp="hidden",Xp=8,Zp=3;var k;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const Jp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Bu=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),Fu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Rt,onParseError:null};class Hu{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Fu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new yp(this.options,this),this.activeFormattingElements=new Lp(this.treeAdapter),this.fragmentContextID=r?Tn(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new vp(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Fu,...n};t??(t=r.treeAdapter.createElement(N.TEMPLATE,M.HTML,[]));const i=r.treeAdapter.createElement("documentmock",M.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===l.TEMPLATE&&a.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:Jp,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===M.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,M.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=Ce.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===N.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==M.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=Ce.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=Ce.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=Ce.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=Ce.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,M.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,M.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(N.HTML,M.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===re.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===M.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,M.HTML)}_processToken(t){switch(t.type){case re.CHARACTER:{this.onCharacter(t);break}case re.NULL_CHARACTER:{this.onNullCharacter(t);break}case re.COMMENT:{this.onComment(t);break}case re.DOCTYPE:{this.onDoctype(t);break}case re.START_TAG:{this._processStartTag(t);break}case re.END_TAG:{this.onEndTag(t);break}case re.EOF:{this.onEof(t);break}case re.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Qp(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===dt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=k.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=k.IN_TABLE;return}case l.BODY:{this.insertionMode=k.IN_BODY;return}case l.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return Bu.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===M.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return _p[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Nm(this,t);return}switch(this.insertionMode){case k.INITIAL:{Yn(this,t);break}case k.BEFORE_HTML:{jn(this,t);break}case k.BEFORE_HEAD:{Vn(this,t);break}case k.IN_HEAD:{qn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case k.AFTER_HEAD:{Gn(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{zu(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_TABLE_TEXT:{Qu(this,t);break}case k.IN_COLUMN_GROUP:{Gr(this,t);break}case k.AFTER_BODY:{Xr(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Im(this,t);return}switch(this.insertionMode){case k.INITIAL:{Yn(this,t);break}case k.BEFORE_HTML:{jn(this,t);break}case k.BEFORE_HEAD:{Vn(this,t);break}case k.IN_HEAD:{qn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case k.AFTER_HEAD:{Gn(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_COLUMN_GROUP:{Gr(this,t);break}case k.AFTER_BODY:{Xr(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fa(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{fa(this,t);break}case k.IN_TABLE_TEXT:{Xn(this,t);break}case k.AFTER_BODY:{s1(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{o1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{u1(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,v.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Xn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,v.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?vm(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Yn(this,t);break}case k.BEFORE_HTML:{l1(this,t);break}case k.BEFORE_HEAD:{d1(this,t);break}case k.IN_HEAD:{rt(this,t);break}case k.IN_HEAD_NO_SCRIPT:{p1(this,t);break}case k.AFTER_HEAD:{g1(this,t);break}case k.IN_BODY:{Be(this,t);break}case k.IN_TABLE:{kn(this,t);break}case k.IN_TABLE_TEXT:{Xn(this,t);break}case k.IN_CAPTION:{hm(this,t);break}case k.IN_COLUMN_GROUP:{ga(this,t);break}case k.IN_TABLE_BODY:{Qr(this,t);break}case k.IN_ROW:{Kr(this,t);break}case k.IN_CELL:{mm(this,t);break}case k.IN_SELECT:{Zu(this,t);break}case k.IN_SELECT_IN_TABLE:{bm(this,t);break}case k.IN_TEMPLATE:{_m(this,t);break}case k.AFTER_BODY:{km(this,t);break}case k.IN_FRAMESET:{xm(this,t);break}case k.AFTER_FRAMESET:{wm(this,t);break}case k.AFTER_AFTER_BODY:{Cm(this,t);break}case k.AFTER_AFTER_FRAMESET:{Sm(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Lm(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{Yn(this,t);break}case k.BEFORE_HTML:{c1(this,t);break}case k.BEFORE_HEAD:{h1(this,t);break}case k.IN_HEAD:{f1(this,t);break}case k.IN_HEAD_NO_SCRIPT:{m1(this,t);break}case k.AFTER_HEAD:{b1(this,t);break}case k.IN_BODY:{Wr(this,t);break}case k.TEXT:{nm(this,t);break}case k.IN_TABLE:{Qn(this,t);break}case k.IN_TABLE_TEXT:{Xn(this,t);break}case k.IN_CAPTION:{fm(this,t);break}case k.IN_COLUMN_GROUP:{pm(this,t);break}case k.IN_TABLE_BODY:{ba(this,t);break}case k.IN_ROW:{Xu(this,t);break}case k.IN_CELL:{gm(this,t);break}case k.IN_SELECT:{Ju(this,t);break}case k.IN_SELECT_IN_TABLE:{Em(this,t);break}case k.IN_TEMPLATE:{Tm(this,t);break}case k.AFTER_BODY:{tl(this,t);break}case k.IN_FRAMESET:{ym(this,t);break}case k.AFTER_FRAMESET:{Am(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{Yn(this,t);break}case k.BEFORE_HTML:{jn(this,t);break}case k.BEFORE_HEAD:{Vn(this,t);break}case k.IN_HEAD:{qn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Wn(this,t);break}case k.AFTER_HEAD:{Gn(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{Wu(this,t);break}case k.TEXT:{rm(this,t);break}case k.IN_TABLE_TEXT:{Xn(this,t);break}case k.IN_TEMPLATE:{el(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{pa(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{Uu(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_TABLE_TEXT:{Gu(this,t);break}}}}function e1(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):qu(e,t),n}function t1(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function n1(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=Zp;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=r1(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function r1(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 i1(e,t,n){const r=e.treeAdapter.getTagName(t),i=Tn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&a===M.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function a1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function ha(e,t){for(let n=0;n<Xp;n++){const r=e1(e,t);if(!r)break;const i=t1(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=n1(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&i1(e,s,a),a1(e,i,r)}}function fa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function s1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function o1(e,t){e._appendCommentNode(t,e.document)}function pa(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function u1(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:Fp(t);Bp(t)||e._err(t,v.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function Yn(e,t){e._err(t,v.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function l1(e,t){t.tagID===l.HTML?(e._insertElement(t,M.HTML),e.insertionMode=k.BEFORE_HEAD):jn(e,t)}function c1(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&jn(e,t)}function jn(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function d1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.HEAD:{e._insertElement(t,M.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:Vn(e,t)}}function h1(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Vn(e,t):e._err(t,v.endTagWithoutMatchingOpenElement)}function Vn(e,t){e._insertFakeElement(N.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,Ce.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ce.RAWTEXT):(e._insertElement(t,M.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,Ce.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,Ce.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case l.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:qn(e,t)}}function f1(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{qn(e,t);break}case l.TEMPLATE:{Gt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Gt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,v.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,v.endTagWithoutMatchingOpenElement)}function qn(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function p1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{rt(e,t);break}case l.NOSCRIPT:{e._err(t,v.nestedNoscriptInHead);break}default:Wn(e,t)}}function m1(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case l.BR:{Wn(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Wn(e,t){const n=t.type===re.EOF?v.openElementsLeftAfterEof:v.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function g1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BODY:{e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,M.HTML),e.insertionMode=k.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,v.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:Gn(e,t)}}function b1(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Gn(e,t);break}case l.TEMPLATE:{Gt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Gn(e,t){e._insertFakeElement(N.BODY,l.BODY),e.insertionMode=k.IN_BODY,qr(e,t)}function qr(e,t){switch(t.type){case re.CHARACTER:{zu(e,t);break}case re.WHITESPACE_CHARACTER:{Uu(e,t);break}case re.COMMENT:{fa(e,t);break}case re.START_TAG:{Be(e,t);break}case re.END_TAG:{Wr(e,t);break}case re.EOF:{Wu(e,t);break}}}function Uu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function zu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function E1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function _1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function T1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_FRAMESET)}function k1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function x1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&la.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,M.HTML)}function y1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function w1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML),n||(e.formElement=e.openElements.current))}function A1(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML)}function C1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.tokenizer.state=Ce.PLAINTEXT}function S1(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1}function I1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(ha(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function N1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function v1(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(ha(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,M.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function L1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function R1(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function $u(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Yu(e){const t=ku(e,Wt.TYPE);return t!=null&&t.toLowerCase()===Kp}function O1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,M.HTML),Yu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function D1(e,t){e._appendElement(t,M.HTML),t.ackSelfClosing=!0}function P1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,M.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function M1(e,t){t.tagName=N.IMG,t.tagID=l.IMG,$u(e,t)}function B1(e,t){e._insertElement(t,M.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ce.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function F1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ce.RAWTEXT)}function H1(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ce.RAWTEXT)}function ju(e,t){e._switchToTextParsing(t,Ce.RAWTEXT)}function U1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function z1(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function $1(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,M.HTML)}function Y1(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,M.HTML)}function j1(e,t){e._reconstructActiveFormattingElements(),Pu(t),da(t),t.selfClosing?e._appendElement(t,M.MATHML):e._insertElement(t,M.MATHML),t.ackSelfClosing=!0}function V1(e,t){e._reconstructActiveFormattingElements(),Mu(t),da(t),t.selfClosing?e._appendElement(t,M.SVG):e._insertElement(t,M.SVG),t.ackSelfClosing=!0}function Vu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,M.HTML)}function Be(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{N1(e,t);break}case l.A:{I1(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{x1(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{k1(e,t);break}case l.LI:case l.DD:case l.DT:{A1(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{$u(e,t);break}case l.HR:{P1(e,t);break}case l.RB:case l.RTC:{$1(e,t);break}case l.RT:case l.RP:{Y1(e,t);break}case l.PRE:case l.LISTING:{y1(e,t);break}case l.XMP:{F1(e,t);break}case l.SVG:{V1(e,t);break}case l.HTML:{E1(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{rt(e,t);break}case l.BODY:{_1(e,t);break}case l.FORM:{w1(e,t);break}case l.NOBR:{v1(e,t);break}case l.MATH:{j1(e,t);break}case l.TABLE:{R1(e,t);break}case l.INPUT:{O1(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{D1(e,t);break}case l.IMAGE:{M1(e,t);break}case l.BUTTON:{S1(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{L1(e,t);break}case l.IFRAME:{H1(e,t);break}case l.SELECT:{U1(e,t);break}case l.OPTION:case l.OPTGROUP:{z1(e,t);break}case l.NOEMBED:case l.NOFRAMES:{ju(e,t);break}case l.FRAMESET:{T1(e,t);break}case l.TEXTAREA:{B1(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?ju(e,t):Vu(e,t);break}case l.PLAINTEXT:{C1(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:Vu(e,t)}}function q1(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function W1(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=k.AFTER_BODY,tl(e,t))}function G1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Q1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function K1(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(N.P,l.P),e._closePElement()}function X1(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Z1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function J1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function em(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function tm(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function qu(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Wr(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{ha(e,t);break}case l.P:{K1(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{G1(e,t);break}case l.LI:{X1(e);break}case l.DD:case l.DT:{Z1(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{J1(e);break}case l.BR:{tm(e);break}case l.BODY:{q1(e,t);break}case l.HTML:{W1(e,t);break}case l.FORM:{Q1(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{em(e,t);break}case l.TEMPLATE:{Gt(e,t);break}default:qu(e,t)}}function Wu(e,t){e.tmplInsertionModeStack.length>0?el(e,t):pa(e,t)}function nm(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function rm(e,t){e._err(t,v.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ma(e,t){if(e.openElements.currentTagId!==void 0&&Bu.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case re.CHARACTER:{Qu(e,t);break}case re.WHITESPACE_CHARACTER:{Gu(e,t);break}}else Kn(e,t)}function im(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_CAPTION}function am(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function sm(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,l.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,ga(e,t)}function om(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_TABLE_BODY}function um(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,l.TBODY),e.insertionMode=k.IN_TABLE_BODY,Qr(e,t)}function lm(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function cm(e,t){Yu(t)?e._appendElement(t,M.HTML):Kn(e,t),t.ackSelfClosing=!0}function dm(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,M.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function kn(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{um(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{rt(e,t);break}case l.COL:{sm(e,t);break}case l.FORM:{dm(e,t);break}case l.TABLE:{lm(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{om(e,t);break}case l.INPUT:{cm(e,t);break}case l.CAPTION:{im(e,t);break}case l.COLGROUP:{am(e,t);break}default:Kn(e,t)}}function Qn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{Gt(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Kn(e,t)}}function Kn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,qr(e,t),e.fosterParentingEnabled=n}function Gu(e,t){e.pendingCharacterTokens.push(t)}function Qu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Xn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Kn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ku=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function hm(e,t){const n=t.tagID;Ku.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,kn(e,t)):Be(e,t)}function fm(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===l.TABLE&&Qn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Wr(e,t)}}function ga(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.COL:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{rt(e,t);break}default:Gr(e,t)}}function pm(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case l.TEMPLATE:{Gt(e,t);break}case l.COL:break;default:Gr(e,t)}}function Gr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}function Qr(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,l.TR),e.insertionMode=k.IN_ROW,Kr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,kn(e,t));break}default:kn(e,t)}}function ba(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,Qn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Qn(e,t)}}function Kr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,M.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,Qr(e,t));break}default:kn(e,t)}}function Xu(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ba(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ba(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Qn(e,t)}}function mm(e,t){const n=t.tagID;Ku.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),Kr(e,t)):Be(e,t)}function gm(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Xu(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:Wr(e,t)}}function Zu(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,M.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,M.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{rt(e,t);break}}}function Ju(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{Gt(e,t);break}}}function bm(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Zu(e,t)}function Em(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ju(e,t)}function _m(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{rt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,kn(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,ga(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,Qr(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,Kr(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,Be(e,t)}}function Tm(e,t){t.tagID===l.TEMPLATE&&Gt(e,t)}function el(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):pa(e,t)}function km(e,t){t.tagID===l.HTML?Be(e,t):Xr(e,t)}function tl(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Xr(e,t)}function Xr(e,t){e.insertionMode=k.IN_BODY,qr(e,t)}function xm(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.FRAMESET:{e._insertElement(t,M.HTML);break}case l.FRAME:{e._appendElement(t,M.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{rt(e,t);break}}}function ym(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function wm(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.NOFRAMES:{rt(e,t);break}}}function Am(e,t){t.tagID===l.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function Cm(e,t){t.tagID===l.HTML?Be(e,t):Zr(e,t)}function Zr(e,t){e.insertionMode=k.IN_BODY,qr(e,t)}function Sm(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.NOFRAMES:{rt(e,t);break}}}function Im(e,t){t.chars=xe,e._insertCharacters(t)}function Nm(e,t){e._insertCharacters(t),e.framesetOk=!1}function nl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==M.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function vm(e,t){if(Vp(t))nl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===M.MATHML?Pu(t):r===M.SVG&&(qp(t),Mu(t)),da(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Lm(e,t){if(t.tagID===l.P||t.tagID===l.BR){nl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===M.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}const Jr=rl("end"),ht=rl("start");function rl(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function il(e){const t=ht(e),n=Jr(e);if(t&&n)return{start:t,end:n}}const Rm=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Om=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),al={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function sl(e,t){const n=Ym(e),r=gu("type",{handlers:{root:Dm,element:Pm,text:Mm,comment:ul,doctype:Bm,raw:Hm},unknown:Um}),i={parser:n?new Hu(al):Hu.getFragmentParser(void 0,al),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),xn(i,ht());const a=n?i.parser.document:i.parser.getFragment(),s=jf(a,{file:i.options.file});return i.stitches&&It(s,"comment",function(o,u,c){const h=o;if(h.value.stitch&&c&&u!==void 0){const d=c.children;return d[u]=h.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function ol(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Dm(e,t){ol(e.children,t)}function Pm(e,t){zm(e,t),ol(e.children,t),$m(e,t)}function Mm(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:re.CHARACTER,chars:e.value,location:Zn(e)};xn(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Bm(e,t){const n={type:re.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Zn(e)};xn(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Fm(e,t){t.stitches=!0;const n=jm(e);if("children"in e&&"children"in n){const r=sl({type:"root",children:e.children},t.options);n.children=r.children}ul({type:"comment",value:{stitch:n}},t)}function ul(e,t){const n=e.value,r={type:re.COMMENT,data:n,location:Zn(e)};xn(t,ht(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Hm(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ll(t,ht(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Rm,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Um(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Fm(n,t);else{let r="";throw Om.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function xn(e,t){ll(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ce.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ll(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function zm(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ce.PLAINTEXT)return;xn(t,ht(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:qt.html;i===qt.html&&n==="svg"&&(i=qt.svg);const a=Qf({...e,children:[]},{space:i===qt.svg?"svg":"html"}),s={type:re.START_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Zn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function $m(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&rp.includes(n)||t.parser.tokenizer.state===Ce.PLAINTEXT)return;xn(t,Jr(e));const r={type:re.END_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Zn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ce.RCDATA||t.parser.tokenizer.state===Ce.RAWTEXT||t.parser.tokenizer.state===Ce.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ce.DATA)}function Ym(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Zn(e){const t=ht(e)||{line:void 0,column:void 0,offset:void 0},n=Jr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function jm(e){return"children"in e?jt({...e,children:[]}):jt(e)}function Ea(e){return function(t,n){return sl(t,{...e,file:n})}}const Qt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Jn={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Qt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Qt],h2:[["className","sr-only"]],img:[...Qt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Qt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Qt],table:[...Qt],ul:[...Qt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ot={}.hasOwnProperty;function Vm(e,t){let n={type:"root",children:[]};const r={schema:t?{...Jn,...t}:Jn,stack:[]},i=cl(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function cl(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return qm(e,n);case"doctype":return Wm(e,n);case"element":return Gm(e,n);case"root":return Qm(e,n);case"text":return Km(e,n)}}}function qm(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return er(a,t),a}}function Wm(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return er(n,t),n}}function Gm(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=dl(e,t.children),i=Xm(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Ot.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u<o.length;)e.stack.includes(o[u])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return er(s,t),s}function Qm(e,t){const r={type:"root",children:dl(e,t.children)};return er(r,t),r}function Km(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return er(r,t),r}function dl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=cl(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Xm(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Ot.call(r,n)?r[n]:void 0,s=r&&Ot.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let c;for(c in o)if(Ot.call(o,c)){const h=o[c];let d=hl(e,pl(a,c),c,h);d==null&&(d=hl(e,pl(s,c),c,h)),d!=null&&(u[c]=d)}if(i&&Ot.call(i,n)){const h=i[n];for(c in h)Ot.call(h,c)&&!Ot.call(u,c)&&(u[c]=h[c])}return u}function hl(e,t,n,r){return t?Array.isArray(r)?Zm(e,t,n,r):fl(e,t,n,r):void 0}function Zm(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=fl(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function fl(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Jm(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Jm(e,t,n){const r=e.schema.protocols&&Ot.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),u=i.indexOf("/");if(a<0||u>-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let c=-1;for(;++c<r.length;){const h=r[c];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function er(e,t){const n=il(t);t.data&&(e.data=jt(t.data)),n&&(e.position=n)}function pl(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function ml(e){return function(t){return Vm(t,e)}}function gl(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 ze=Dt(/[A-Za-z]/),Fe=Dt(/[\dA-Za-z]/),eg=Dt(/[#-'*+\--9=?A-Z^-~]/);function ei(e){return e!==null&&(e<32||e===127)}const _a=Dt(/\d/),tg=Dt(/[\dA-Fa-f]/),ng=Dt(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const ti=Dt(/\p{P}|\p{S}/u),Kt=Dt(/\s/);function Dt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ig(e,t,n){const i=Br((n||{}).ignore||[]),a=ag(t);let s=-1;for(;++s<a.length;)Qi(e,"text",o);function o(c,h){let d=-1,f;for(;++d<h.length;){const p=h[d],m=f?f.children:void 0;if(i(p,m?m.indexOf(p):void 0,f))return;f=p}if(f)return u(c,h)}function u(c,h){const d=h[h.length-1],f=a[s][0],p=a[s][1];let m=0;const w=d.children.indexOf(c);let y=!1,I=[];f.lastIndex=0;let A=f.exec(c.value);for(;A;){const P=A.index,H={index:A.index,input:A.input,stack:[...h,c]};let S=p(...A,H);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=P+1:(m!==P&&I.push({type:"text",value:c.value.slice(m,P)}),Array.isArray(S)?I.push(...S):S&&I.push(S),m=P+A[0].length,y=!0),!f.global)break;A=f.exec(c.value)}return y?(m<c.value.length&&I.push({type:"text",value:c.value.slice(m)}),d.children.splice(w,1,...I)):I=[c],w+I.length}}function ag(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([sg(i[0]),og(i[1])])}return t}function sg(e){return typeof e=="string"?new RegExp(rg(e),"g"):e}function og(e){return typeof e=="function"?e:function(){return e}}const Ta="phrasing",ka=["autolink","link","image","label"];function ug(){return{transforms:[mg],enter:{literalAutolink:cg,literalAutolinkEmail:xa,literalAutolinkHttp:xa,literalAutolinkWww:xa},exit:{literalAutolink:pg,literalAutolinkEmail:fg,literalAutolinkHttp:dg,literalAutolinkWww:hg}}}function lg(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:ka},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:ka},{character:":",before:"[ps]",after:"\\/",inConstruct:Ta,notInConstruct:ka}]}}function cg(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xa(e){this.config.enter.autolinkProtocol.call(this,e)}function dg(e){this.config.exit.autolinkProtocol.call(this,e)}function hg(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function fg(e){this.config.exit.autolinkEmail.call(this,e)}function pg(e){this.exit(e)}function mg(e){ig(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gg],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,bg]],{ignore:["link","linkReference"]})}function gg(e,t,n,r,i){let a="";if(!bl(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!Eg(n)))return!1;const s=_g(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function bg(e,t,n,r){return!bl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Eg(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _g(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=gl(e,"(");let a=gl(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function bl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Kt(n)||ti(n))&&(!t||n!==47)}function it(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}El.peek=Ig;function Tg(){this.buffer()}function kg(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function xg(){this.buffer()}function yg(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=it(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ag(e){this.exit(e)}function Cg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=it(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Sg(e){this.exit(e)}function Ig(){return"["}function El(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Ng(){return{enter:{gfmFootnoteCallString:Tg,gfmFootnoteCall:kg,gfmFootnoteDefinitionLabelString:xg,gfmFootnoteDefinition:yg},exit:{gfmFootnoteCallString:wg,gfmFootnoteCall:Ag,gfmFootnoteDefinitionLabelString:Cg,gfmFootnoteDefinition:Sg}}}function vg(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:El},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),h(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?`
3
- `:" ")+a.indentLines(a.containerFlow(r,o.current()),t?_l:Lg))),c(),u}}function Lg(e,t,n){return t===0?e:_l(e,t,n)}function _l(e,t,n){return(n?"":" ")+e}const Rg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Tl.peek=Bg;function Og(){return{canContainEols:["delete"],enter:{strikethrough:Pg},exit:{strikethrough:Mg}}}function Dg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Rg}],handlers:{delete:Tl}}}function Pg(e){this.enter({type:"delete",children:[]},e)}function Mg(e){this.exit(e)}function Tl(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Bg(){return"~"}function Fg(e){return e.length}function Hg(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Fg,a=[],s=[],o=[],u=[];let c=0,h=-1;for(;++h<e.length;){const T=[],w=[];let y=-1;for(e[h].length>c&&(c=e[h].length);++y<e[h].length;){const I=Ug(e[h][y]);if(n.alignDelimiters!==!1){const A=i(I);w[y]=A,(u[y]===void 0||A>u[y])&&(u[y]=A)}T.push(I)}s[h]=T,o[h]=w}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)a[d]=kl(r[d]);else{const T=kl(r);for(;++d<c;)a[d]=T}d=-1;const f=[],p=[];for(;++d<c;){const T=a[d];let w="",y="";T===99?(w=":",y=":"):T===108?w=":":T===114&&(y=":");let I=n.alignDelimiters===!1?1:Math.max(1,u[d]-w.length-y.length);const A=w+"-".repeat(I)+y;n.alignDelimiters!==!1&&(I=w.length+I+y.length,I>u[d]&&(u[d]=I),p[d]=I),f[d]=A}s.splice(1,0,f),o.splice(1,0,p),h=-1;const m=[];for(;++h<s.length;){const T=s[h],w=o[h];d=-1;const y=[];for(;++d<c;){const I=T[d]||"";let A="",P="";if(n.alignDelimiters!==!1){const H=u[d]-(w[d]||0),S=a[d];S===114?A=" ".repeat(H):S===99?H%2?(A=" ".repeat(H/2+.5),P=" ".repeat(H/2-.5)):(A=" ".repeat(H/2),P=A):P=" ".repeat(H)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(A),y.push(I),n.alignDelimiters!==!1&&y.push(P),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
4
- `)}function Ug(e){return e==null?"":String(e)}function kl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function zg(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),$g);return i(),s}function $g(e,t,n){return">"+(n?"":" ")+e}function Yg(e,t){return xl(e,t.inConstruct,!0)&&!xl(e,t.notInConstruct,!1)}function xl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function yl(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
5
- `&&Yg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
6
- `}function jg(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function Vg(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qg(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 Wg(e,t,n,r){const i=qg(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Vg(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(a,Gg);return d(),f}const o=n.createTracker(r),u=i.repeat(Math.max(jg(a,i)+1,3)),c=n.enter("codeFenced");let h=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=o.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(n.safe(e.meta,{before:h,after:`
1
+ var m5=Object.defineProperty;var g5=(Ut,nt,zt)=>nt in Ut?m5(Ut,nt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Ut[nt]=zt;var fe=(Ut,nt,zt)=>(g5(Ut,typeof nt!="symbol"?nt+"":nt,zt),zt);(function(){var Ni;"use strict";var Ut=e=>e,nt="isdk_session",zt=e=>{let t=new Date;return t.setTime(t.getTime()+6048e5),`${nt}=${e};expires=${t.toUTCString()};path=/`},hh=(e,t)=>{let n=e.get("session_id");if(t||n)return n;let r=sessionStorage.getItem(`${nt}-session_id`);return typeof r=="string"?r:null},fh=new RegExp(`${nt}=([^;]+)`),ph=e=>{let t=e?e.url:location.href,{searchParams:n}=new URL(t),r=n.get("anonymous_id"),i=hh(n,typeof window>"u");if(r)return{anonymous_id:r,session_id:i};let a=e?e.headers.get("cookie"):document.cookie;return a?{anonymous_id:fh.exec(a)?.[1]??null,session_id:i}:{anonymous_id:r,session_id:i}},vs=()=>{if(typeof window>"u")throw new Error("getOrCreateAnonymousId() can only be called in browser environment");let e=ph().anonymous_id;if(e)return e;let t=crypto.randomUUID();return document.cookie=zt(t),t},vn,G,Ls,Rs,$t,Os,Ds,vi,Ps,un={},Ms=[],mh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xr=Array.isArray;function Et(e,t){for(var n in t)e[n]=t[n];return e}function Bs(e){var t=e.parentNode;t&&t.removeChild(e)}function ut(e,t,n){var r,i,a,s={};for(a in t)a=="key"?r=t[a]:a=="ref"?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?vn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return Ln(e,s,r,i,null)}function Ln(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Ls};return i==null&&G.vnode!=null&&G.vnode(a),a}function Ee(e){return e.children}function lt(e,t){this.props=e,this.context=t}function yr(e,t){if(t==null)return e.__?yr(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?yr(e):null}function Fs(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Fs(e)}}function Li(e){(!e.__d&&(e.__d=!0)&&$t.push(e)&&!wr.__r++||Os!==G.debounceRendering)&&((Os=G.debounceRendering)||Ds)(wr)}function wr(){var e,t,n,r,i,a,s,o,u;for($t.sort(vi);e=$t.shift();)e.__d&&(t=$t.length,r=void 0,i=void 0,a=void 0,o=(s=(n=e).__v).__e,(u=n.__P)&&(r=[],i=[],(a=Et({},s)).__v=s.__v+1,Ri(u,s,a,n.__n,u.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o??yr(s),s.__h,i),Vs(r,s,i),s.__e!=o&&Fs(s)),$t.length>t&&$t.sort(vi));wr.__r=0}function Hs(e,t,n,r,i,a,s,o,u,c,h){var d,f,p,m,T,w,y,I,A,D,F=0,S=r&&r.__k||Ms,Y=S.length,L=Y,O=t.length;for(n.__k=[],d=0;d<O;d++)(m=n.__k[d]=(m=t[d])==null||typeof m=="boolean"||typeof m=="function"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?Ln(null,m,null,null,m):xr(m)?Ln(Ee,{children:m},null,null,null):m.__b>0?Ln(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null&&(m.__=n,m.__b=n.__b+1,(I=gh(m,S,y=d+F,L))===-1?p=un:(p=S[I]||un,S[I]=void 0,L--),Ri(e,m,p,i,a,s,o,u,c,h),T=m.__e,(f=m.ref)&&p.ref!=f&&(p.ref&&Oi(p.ref,null,m),h.push(f,m.__c||T,m)),T!=null&&(w==null&&(w=T),D=!(A=p===un||p.__v===null)&&I===y,A?I==-1&&F--:I!==y&&(I===y+1?(F++,D=!0):I>y?L>O-y?(F+=I-y,D=!0):F--:F=I<y&&I==y-1?I-y:0),y=d+F,D=D||I==d&&!A,typeof m.type!="function"||I===y&&p.__k!==m.__k?typeof m.type=="function"||D?m.__d!==void 0?(u=m.__d,m.__d=void 0):u=T.nextSibling:u=zs(e,T,u):u=Us(m,u,e),typeof n.type=="function"&&(n.__d=u)));for(n.__e=w,d=Y;d--;)S[d]!=null&&(typeof n.type=="function"&&S[d].__e!=null&&S[d].__e==n.__d&&(n.__d=S[d].__e.nextSibling),qs(S[d],S[d]))}function Us(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type=="function"?Us(r,t,n):zs(n,r.__e,t));return t}function Ar(e,t){return t=t||[],e==null||typeof e=="boolean"||(xr(e)?e.some(function(n){Ar(n,t)}):t.push(e)),t}function zs(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function gh(e,t,n,r){var i=e.key,a=e.type,s=n-1,o=n+1,u=t[n];if(u===null||u&&i==u.key&&a===u.type)return n;if(r>(u!=null?1:0))for(;s>=0||o<t.length;){if(s>=0){if((u=t[s])&&i==u.key&&a===u.type)return s;s--}if(o<t.length){if((u=t[o])&&i==u.key&&a===u.type)return o;o++}}return-1}function bh(e,t,n,r,i){var a;for(a in n)a==="children"||a==="key"||a in t||Cr(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===t[a]||Cr(e,a,t[a],n[a],r)}function $s(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||mh.test(t)?n:n+"px"}function Cr(e,t,n,r,i){var a;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$s(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$s(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r||e.addEventListener(t,a?js:Ys,a):e.removeEventListener(t,a?js:Ys,a);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ys(e){return this.l[e.type+!1](G.event?G.event(e):e)}function js(e){return this.l[e.type+!0](G.event?G.event(e):e)}function Ri(e,t,n,r,i,a,s,o,u,c){var h,d,f,p,m,T,w,y,I,A,D,F,S,Y,L,O=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,o=t.__e=n.__e,t.__h=null,a=[o]),(h=G.__b)&&h(t);try{e:if(typeof O=="function"){if(y=t.props,I=(h=O.contextType)&&r[h.__c],A=h?I?I.props.value:h.__:r,n.__c?w=(d=t.__c=n.__c).__=d.__E:("prototype"in O&&O.prototype.render?t.__c=d=new O(y,A):(t.__c=d=new lt(y,A),d.constructor=O,d.render=_h),I&&I.sub(d),d.props=y,d.state||(d.state={}),d.context=A,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),O.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Et({},d.__s)),Et(d.__s,O.getDerivedStateFromProps(y,d.__s))),p=d.props,m=d.state,d.__v=t,f)O.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(O.getDerivedStateFromProps==null&&y!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,A),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,A)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(C){C&&(C.__=t)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,A),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,T)})}if(d.context=A,d.props=y,d.__P=e,d.__e=!1,F=G.__r,S=0,"prototype"in O&&O.prototype.render){for(d.state=d.__s,d.__d=!1,F&&F(t),h=d.render(d.props,d.state,d.context),Y=0;Y<d._sb.length;Y++)d.__h.push(d._sb[Y]);d._sb=[]}else do d.__d=!1,F&&F(t),h=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=Et(Et({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(T=d.getSnapshotBeforeUpdate(p,m)),Hs(e,xr(L=h!=null&&h.type===Ee&&h.key==null?h.props.children:h)?L:[L],t,n,r,i,a,s,o,u,c),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),w&&(d.__E=d.__=null)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Eh(n.__e,t,n,r,i,a,s,u,c);(h=G.diffed)&&h(t)}catch(C){t.__v=null,(u||a!=null)&&(t.__e=o,t.__h=!!u,a[a.indexOf(o)]=null),G.__e(C,t,n)}}function Vs(e,t,n){for(var r=0;r<n.length;r++)Oi(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(a){a.call(i)})}catch(a){G.__e(a,i.__v)}})}function Eh(e,t,n,r,i,a,s,o,u){var c,h,d,f=n.props,p=t.props,m=t.type,T=0;if(m==="svg"&&(i=!0),a!=null){for(;T<a.length;T++)if((c=a[T])&&"setAttribute"in c==!!m&&(m?c.localName===m:c.nodeType===3)){e=c,a[T]=null;break}}if(e==null){if(m===null)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),a=null,o=!1}if(m===null)f===p||o&&e.data===p||(e.data=p);else{if(a=a&&vn.call(e.childNodes),h=(f=n.props||un).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!o){if(a!=null)for(f={},T=0;T<e.attributes.length;T++)f[e.attributes[T].name]=e.attributes[T].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(bh(e,p,f,i,o),d)t.__k=[];else if(Hs(e,xr(T=t.props.children)?T:[T],t,n,r,i&&m!=="foreignObject",a,s,a?a[0]:n.__k&&yr(n,0),o,u),a!=null)for(T=a.length;T--;)a[T]!=null&&Bs(a[T]);o||("value"in p&&(T=p.value)!==void 0&&(T!==e.value||m==="progress"&&!T||m==="option"&&T!==f.value)&&Cr(e,"value",T,f.value,!1),"checked"in p&&(T=p.checked)!==void 0&&T!==e.checked&&Cr(e,"checked",T,f.checked,!1))}return e}function Oi(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){G.__e(r,n)}}function qs(e,t,n){var r,i;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Oi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(a){G.__e(a,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&qs(r[i],t,n||typeof e.type!="function");n||e.__e==null||Bs(e.__e),e.__=e.__e=e.__d=void 0}function _h(e,t,n){return this.constructor(e,n)}function Sr(e,t,n){var r,i,a,s;G.__&&G.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,a=[],s=[],Ri(t,e=(!r&&n||t).__k=ut(Ee,null,[e]),i||un,un,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?vn.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,s),Vs(a,e,s)}function Ws(e,t,n){var r,i,a,s,o=Et({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)a=="key"?r=t[a]:a=="ref"?i=t[a]:o[a]=t[a]===void 0&&s!==void 0?s[a]:t[a];return arguments.length>2&&(o.children=arguments.length>3?vn.call(arguments,2):n),Ln(e.type,o,r||e.key,i||e.ref,null)}function Ir(e,t){var n={__c:t="__cC"+Ps++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,a;return this.getChildContext||(i=[],(a={})[t]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(o){o.__e=!0,Li(o)})},this.sub=function(s){i.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),o&&o.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}vn=Ms.slice,G={__e:function(e,t,n,r){for(var i,a,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(o){e=o}throw e}},Ls=0,Rs=function(e){return e!=null&&e.constructor===void 0},lt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Et({},this.state),typeof e=="function"&&(e=e(Et({},n),this.props)),e&&Et(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Li(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Li(this))},lt.prototype.render=Ee,$t=[],Ds=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vi=function(e,t){return e.__v.__b-t.__v.__b},wr.__r=0,Ps=0;function Gs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Gs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Di(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Gs(e))&&(r&&(r+=" "),r+=t);return r}const Qs=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,Th=e=>{const t=function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var o,u;return typeof(e==null||(o=e.hooks)===null||o===void 0?void 0:o["cx:done"])<"u"?e?.hooks["cx:done"](Di(a)):typeof(e==null||(u=e.hooks)===null||u===void 0?void 0:u.onComplete)<"u"?e?.hooks.onComplete(Di(a)):Di(a)};return{compose:function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return o=>{const u=Object.fromEntries(Object.entries(o||{}).filter(c=>{let[h]=c;return!["class","className"].includes(h)}));return t(a.map(c=>c(u)),o?.class,o?.className)}},cva:i=>a=>{var s;if(i?.variants==null)return t(i?.base,a?.class,a?.className);const{variants:o,defaultVariants:u}=i,c=Object.keys(o).map(f=>{const p=a?.[f],m=u?.[f],T=Qs(p)||Qs(m);return o[f][T]}),h={...u,...a&&Object.entries(a).reduce((f,p)=>{let[m,T]=p;return typeof T>"u"?f:{...f,[m]:T}},{})},d=i==null||(s=i.compoundVariants)===null||s===void 0?void 0:s.reduce((f,p)=>{let{class:m,className:T,...w}=p;return Object.entries(w).every(y=>{let[I,A]=y;const D=h[I];return Array.isArray(A)?A.includes(D):D===A})?[...f,m,T]:f},[]);return t(i?.base,c,d,a?.class,a?.className)},cx:t}},{compose:b5,cva:Yt,cx:E5}=Th();var Ct,_e,Pi,Ks,Rn=0,Xs=[],Nr=[],Zs=G.__b,Js=G.__r,eo=G.diffed,to=G.__c,no=G.unmount;function ln(e,t){G.__h&&G.__h(_e,e,Rn||t),Rn=0;var n=_e.__H||(_e.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Nr}),n.__[e]}function ce(e){return Rn=1,kh(io,e)}function kh(e,t,n){var r=ln(Ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):io(void 0,t),function(o){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,o);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=_e,!_e.u)){var i=function(o,u,c){if(!r.__c.__H)return!0;var h=r.__c.__H.__.filter(function(f){return f.__c});if(h.every(function(f){return!f.__N}))return!a||a.call(this,o,u,c);var d=!1;return h.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===o)&&(!a||a.call(this,o,u,c))};_e.u=!0;var a=_e.shouldComponentUpdate,s=_e.componentWillUpdate;_e.componentWillUpdate=function(o,u,c){if(this.__e){var h=a;a=void 0,i(o,u,c),a=h}s&&s.call(this,o,u,c)},_e.shouldComponentUpdate=i}return r.__N||r.__}function Ne(e,t){var n=ln(Ct++,3);!G.__s&&Bi(n.__H,t)&&(n.__=e,n.i=t,_e.__H.__h.push(n))}function xh(e,t){var n=ln(Ct++,4);!G.__s&&Bi(n.__H,t)&&(n.__=e,n.i=t,_e.__h.push(n))}function ve(e){return Rn=5,Se(function(){return{current:e}},[])}function Se(e,t){var n=ln(Ct++,7);return Bi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ue(e,t){return Rn=8,Se(function(){return e},t)}function Ye(e){var t=_e.context[e.__c],n=ln(Ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(_e)),t.props.value):e.__}function yh(){var e=ln(Ct++,11);if(!e.__){for(var t=_e.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function wh(){for(var e;e=Xs.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(vr),e.__H.__h.forEach(Mi),e.__H.__h=[]}catch(t){e.__H.__h=[],G.__e(t,e.__v)}}G.__b=function(e){_e=null,Zs&&Zs(e)},G.__r=function(e){Js&&Js(e),Ct=0;var t=(_e=e.__c).__H;t&&(Pi===_e?(t.__h=[],_e.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Nr,n.__N=n.i=void 0})):(t.__h.forEach(vr),t.__h.forEach(Mi),t.__h=[],Ct=0)),Pi=_e},G.diffed=function(e){eo&&eo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Xs.push(t)!==1&&Ks===G.requestAnimationFrame||((Ks=G.requestAnimationFrame)||Ah)(wh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Nr&&(n.__=n.__V),n.i=void 0,n.__V=Nr})),Pi=_e=null},G.__c=function(e,t){t.some(function(n){try{n.__h.forEach(vr),n.__h=n.__h.filter(function(r){return!r.__||Mi(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],G.__e(r,n.__v)}}),to&&to(e,t)},G.unmount=function(e){no&&no(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{vr(r)}catch(i){t=i}}),n.__H=void 0,t&&G.__e(t,n.__v))};var ro=typeof requestAnimationFrame=="function";function Ah(e){var t,n=function(){clearTimeout(r),ro&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ro&&(t=requestAnimationFrame(n))}function vr(e){var t=_e,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),_e=t}function Mi(e){var t=_e;e.__c=e.__(),_e=t}function Bi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function io(e,t){return typeof t=="function"?t(e):t}var Ch=Symbol.for("preact-signals");function Fi(){if(cn>1)cn--;else{for(var e,t=!1;On!==void 0;){var n=On;for(On=void 0,Hi++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&so(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Hi=0,cn--,t)throw e}}var pe=void 0,On=void 0,cn=0,Hi=0,Lr=0;function ao(e){if(pe!==void 0){var t=e.n;if(t===void 0||t.t!==pe)return t={i:0,S:e,p:pe.s,n:void 0,t:pe,e:void 0,x:void 0,r:t},pe.s!==void 0&&(pe.s.n=t),pe.s=t,e.n=t,32&pe.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=pe.s,t.n=void 0,pe.s.n=t,pe.s=t),t}}function Me(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Me.prototype.brand=Ch,Me.prototype.h=function(){return!0},Me.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Me.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Me.prototype.subscribe=function(e){var t=this;return zi(function(){var n=t.value,r=pe;pe=void 0;try{e(n)}finally{pe=r}})},Me.prototype.valueOf=function(){return this.value},Me.prototype.toString=function(){return this.value+""},Me.prototype.toJSON=function(){return this.value},Me.prototype.peek=function(){var e=pe;pe=void 0;try{return this.value}finally{pe=e}},Object.defineProperty(Me.prototype,"value",{get:function(){var e=ao(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hi>100)throw new Error("Cycle detected");this.v=e,this.i++,Lr++,cn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Fi()}}}});function Ge(e){return new Me(e)}function so(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function oo(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function uo(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function dn(e){Me.call(this,void 0),this.x=e,this.s=void 0,this.g=Lr-1,this.f=4}(dn.prototype=new Me).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Lr))return!0;if(this.g=Lr,this.f|=1,this.i>0&&!so(this))return this.f&=-2,!0;var e=pe;try{oo(this),pe=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return pe=e,uo(this),this.f&=-2,!0},dn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Me.prototype.S.call(this,e)},dn.prototype.U=function(e){if(this.t!==void 0&&(Me.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},dn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(dn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ao(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Sh(e){return new dn(e)}function lo(e){var t=e.u;if(e.u=void 0,typeof t=="function"){cn++;var n=pe;pe=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ui(e),r}finally{pe=n,Fi()}}}function Ui(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,lo(e)}function Ih(e){if(pe!==this)throw new Error("Out-of-order effect");uo(this),pe=e,this.f&=-2,8&this.f&&Ui(this),Fi()}function Dn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Dn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Dn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,lo(this),oo(this),cn++;var e=pe;return pe=this,Ih.bind(this,e)},Dn.prototype.N=function(){2&this.f||(this.f|=2,this.o=On,On=this)},Dn.prototype.d=function(){this.f|=8,1&this.f||Ui(this)};function zi(e){var t=new Dn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var $i;function hn(e,t){G[e]=t.bind(null,G[e]||function(){})}function Rr(e){$i&&$i(),$i=e&&e.S()}function co(e){var t=this,n=e.data,r=vh(n);r.value=n;var i=Se(function(){for(var a=t.__v;a=a.__;)if(a.__c){a.__c.__$f|=4;break}return t.__$u.c=function(){var s;!Rs(i.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=i.peek():(t.__$f|=1,t.setState({}))},Sh(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}co.displayName="_st",Object.defineProperties(Me.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:co},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),hn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var i in r)if(i!=="children"){var a=r[i];a instanceof Me&&(n||(t.__np=n={}),n[i]=a,r[i]=a.peek())}}e(t)}),hn("__r",function(e,t){Rr();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var a;return zi(function(){a=this}),a.c=function(){r.__$f|=1,r.setState({})},a}())),Rr(n),e(t)}),hn("__e",function(e,t,n,r){Rr(),e(t,n,r)}),hn("diffed",function(e,t){Rr();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var a=n.U;if(a)for(var s in a){var o=a[s];o!==void 0&&!(s in r)&&(o.d(),a[s]=void 0)}else n.U=a={};for(var u in r){var c=a[u],h=r[u];c===void 0?(c=Nh(n,u,h,i),a[u]=c):c.o(h,i)}}}e(t)});function Nh(e,t,n,r){var i=t in e&&e.ownerSVGElement===void 0,a=Ge(n);return{o:function(s,o){a.value=s,r=o},d:zi(function(){var s=a.value.value;r[t]!==s&&(r[t]=s,i?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}hn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var a=r[i];a&&a.d()}}}}else{var s=t.__c;if(s){var o=s.__$u;o&&(s.__$u=void 0,o.d())}}e(t)}),hn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),lt.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function vh(e){return Se(function(){return Ge(e)},[])}const ho=Ge(!1),Or=Ge(!1),Dr=Ge(null),jt=Ge(null),fo=Ge("idle"),po=Ge(!1),mo=Ge("idle"),go=Ge(null),bo=Ge(null),ct=Ge([]),Yi=Ge([]),Lh=e=>({...e,timestamp:new Date(e.timestamp)}),ji=e=>({...e,id:crypto.randomUUID(),timestamp:new Date}),Vi=typeof BroadcastChannel<"u"?new BroadcastChannel("kin-sync"):null;Vi?.addEventListener("message",e=>{const{type:t,data:n}=e.data;switch(t){case"messages_updated":if(!Array.isArray(n?.messages))return;ct.value=n.messages.map(Lh);break;case"messages_cleared":ct.value=[];break}});const Pr=()=>{Vi?.postMessage({type:"messages_updated",data:{messages:ct.value}})},Eo=(e,t=!0)=>{ct.value=[...ct.value,e],Yi.value=[],t&&Pr()},Rh=e=>{const t=ji(e);return Eo(t),t},Oh=e=>{ct.value=ct.value.filter(t=>t.id!==e),Pr()},Dh=()=>{Or.value=!0,Dr.value="thinking",jt.value=ji({role:"assistant",content:""})},Ph=e=>{if(!e)return;const t=jt.value;t&&(jt.value={...t,content:t.content+e})},Mh=e=>{const{commit:t=!0,broadcast:n=!0}=e??{},r=jt.value;jt.value=null,Or.value=!1,Dr.value=null,t&&r?.content&&Eo(r,!1),n&&Pr()},qi=()=>{jt.value=null,Or.value=!1,Dr.value=null},_o=()=>{ct.value=[],qi(),Vi?.postMessage({type:"messages_cleared"})},Bh=e=>{qi(),ct.value=e.filter(t=>t.role!=="system").map(ji),Pr()},To=(e,t,n)=>{mo.value=e,bo.value=t??null,go.value=n??null},j={isOpen:ho,isStreaming:Or,assistantStatus:Dr,liveAssistantMessage:jt,connectionState:fo,messages:ct,quickReplies:Yi,uploadState:mo,uploadError:go,uploadFileName:bo,hasUnreadMessages:po,addMessage:Rh,removeMessage:Oh,startAssistantResponse:Dh,appendToLiveAssistantMessage:Ph,finishAssistantResponse:Mh,clearAssistantResponse:qi,clearMessages:_o,setMessages:Bh,setUploadState:To,resetState:()=>{ho.value=!1,fo.value="idle",Yi.value=[],po.value=!1,_o(),To("idle")}},Pn=Yt({base:"fr inline-flex shrink-0 items-center corner-smooth justify-center transition-all duration-200 disabled:cursor-not-allowed",variants:{variant:{ghost:"bg-transparent text-n-8 hover:bg-n-3 hover:text-n-11 disabled:text-n-6 active:scale-95",neutral:"bg-n-3 text-n-9 hover:bg-n-4 hover:text-n-11 disabled:opacity-50 active:scale-95",accent:"bg-a-9 text-white hover:bg-a-10 disabled:opacity-50 active:scale-95"},size:{sm:"size-8 sm:size-7 [&_svg]:size-3.5 rounded-kin-xl",md:"size-10 sm:size-8 [&_svg]:size-4 rounded-kin-2xl sm:rounded-kin-xl"}},defaultVariants:{size:"md"}});var Fh=0;function g(e,t,n,r,i,a){var s,o,u={};for(o in t)o=="ref"?s=t[o]:u[o]=t[o];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Fh,__source:i,__self:a};if(typeof e=="function"&&(s=e.defaultProps))for(o in s)u[o]===void 0&&(u[o]=s[o]);return G.vnode&&G.vnode(c),c}function je(e){return function(n){return g("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n.strokeWidth??1.5,strokeLinecap:"round",strokeLinejoin:"round",focusable:"false","aria-hidden":"true",...n,children:e()})}}function Hh({class:e}){return g("svg",{class:e,viewBox:"0 0 32 16",fill:"currentColor","aria-hidden":"true",focusable:"false",children:g("path",{d:"M8.28 12.54c-.76-.34-1.52-1.08-2.88-2.44l-2.02-2.02-.68-.68-.12-.16a.76.76 90 010-.72l.12-.16.68-.68A16.5 16.5 90 015.9 3.36a4.5 4.5 90 014.62 0c.44.26.94.72 2.5 2.32l1.1 1.1 1.54-1.54-1.1-1.1c-1.48-1.44-2.22-2.18-2.98-2.62a6.76 6.76 90 00-6.82 0c-.74.42-1.46 1.16-2.94 2.6-.64.64-.92.94-1.14 1.28a3 3 90 000 2.92c.2.34.52.64 1.14 1.28L4.3 12.1c1.1 1.08 1.64 1.62 2.26 2.02a6 6 90 001.76.72c.72.18 1.5.18 3.04.18h10.9c1.54 0 2.32 0 3.04-.18q.92-.22 1.76-.72c.64-.4 1.16-.94 2.26-2.02l.46-.48c5.8-5.8-2.88-14.48-8.66-8.66L13.98 10.1c-1.52 1.5-2.28 2.28-3.16 2.56a3.76 3.76 90 01-2.16.02l-.4-.16Z"})})}const Uh=je(()=>g("path",{d:"M6 10c2-4 3.5-7 6-7s4 3 6 7 4 8 2 9-6-2.5-8-2.5S6 20 4 19s0-5 2-9"})),zh=je(()=>g("path",{d:"M18 6 6 18M18 18 6 6"})),$h=je(()=>g(Ee,{children:[g("path",{d:"M4.5 5.5l.6 10c.2 2.6.2 3.9.9 4.8.3.4.7.8 1.2 1.1.9.6 2.2.6 4.8.6s3.8 0 4.8-.6c.5-.3.9-.7 1.2-1.1.6-.9.7-2.2.9-4.8l.6-10"}),g("path",{d:"m8.05 5.5.61-1.33c.44-.97.66-1.45 1.06-1.76.09-.07.18-.13.28-.18.44-.23.97-.23 2.04-.23 1.04 0 1.56 0 1.99.22.1.05.19.11.27.17.39.29.62.76 1.07 1.69l.68 1.41m4.94 0h-18"})]})),Yh=je(()=>g("path",{d:"M5 14s1.5.5 3.5 4C8.5 18 12 11 19 7"})),ko=je(()=>g("path",{d:"M5.8 12 4.3 10.5C2.6 8.8 2.6 6 4.3 4.3c1.7-1.7 4.5-1.7 6.2 0l9.2 9.2c1.7 1.8 1.7 4.5 0 6.2s-4.4 1.7-6.2 0l-3.4-3.4c-1.1-1.1-1.1-2.9 0-3.9 1-1.1 2.8-1.1 3.8 0l2 1.9"})),jh=je(()=>g("path",{d:"M21 12a9 9 0 11-6.219-8.56"})),xo=je(()=>g(Ee,{children:[g("path",{d:"M9.6 6.1c.3-.8 1.5-.8 1.8 0l.9 2.3c.6 1.5 1.8 2.7 3.3 3.3l2.3.9c.8.3.8 1.5 0 1.8l-2.3.9c-1.5.6-2.7 1.8-3.3 3.3l-.9 2.3c-.3.8-1.5.8-1.8 0l-.9-2.3c-.6-1.5-1.8-2.7-3.3-3.3l-2.3-.9c-.8-.3-.8-1.5 0-1.8l2.3-.9c1.5-.6 2.7-1.8 3.3-3.3l.9-2.3Z"}),g("path",{d:"M18.16 2.73c.12-.31.56-.31.68 0l.34.87c.22.56.66 1 1.22 1.22l.87.34c.31.12.31.56 0 .68l-.87.34c-.56.22-1 .66-1.22 1.22l-.34.87c-.12.31-.56.31-.68 0l-.34-.87c-.22-.56-.66-1-1.22-1.22l-.87-.34c-.31-.12-.31-.56 0-.68l.87-.34c.56-.22 1-.66 1.22-1.22l.34-.87Z"})]})),Vh=je(()=>g(Ee,{children:[g("path",{d:"M15 15l1.5 1.5"}),g("path",{d:"M16.93 19.03c-.57-.58-.57-1.52 0-2.1.58-.57 1.52-.57 2.1 0l2.04 2.04c.57.58.57 1.52 0 2.1-.58.57-1.52.57-2.1 0l-2.04-2.04Z"}),g("path",{d:"M16.5 9.5c0-3.9-3.1-7-7-7s-7 3.1-7 7 3.1 7 7 7 7-3.1 7-7Z"})]})),yo=je(()=>g(Ee,{children:[g("path",{d:"M21 11c0-2.2-.2-3.5-1.1-4.4-1.1-1.1-2.9-1.1-6.5-1.1H9.6c-3.6 0-5.4 0-6.5 1.1C2 7.8 2 9.6 2 13.3c0 3.6 0 5.4 1.1 6.6C4.2 21 6 21 9.6 21H11"}),g("path",{d:"M20 20l2 2m-.9-4.5c0-1.9-1.6-3.5-3.6-3.5-1.9 0-3.5 1.6-3.5 3.5 0 2 1.6 3.6 3.5 3.6 2 0 3.6-1.6 3.6-3.6Z"}),g("path",{d:"M7 5.5l.1-.3c.5-1.5.7-2.3 1.3-2.8C9 2 9.8 2 11.4 2h.2c1.6 0 2.4 0 3 .4.6.5.8 1.3 1.3 2.8l.1.3"})]})),wo=je(()=>g(Ee,{children:[g("path",{d:"M11 21H10c-3.8 0-5.7 0-6.8-1.2C2 18.7 2 16.8 2 13V10C2 6.2 2 4.3 3.2 3.2 4.3 2 6.2 2 10 2h2c3.8 0 5.7 0 6.8 1.2C20 4.3 20 6.2 20 10v.5"}),g("path",{d:"M17.41 14.4c.21-.54.97-.54 1.19 0l.04.09c.52 1.31 1.56 2.35 2.87 2.87l.09.04c.54.21.54.97 0 1.19l-.09.04c-1.31.52-2.35 1.56-2.87 2.87l-.04.09c-.21.54-.97.54-1.19 0l-.04-.09c-.52-1.31-1.56-2.35-2.87-2.87l-.09-.04c-.54-.21-.54-.97 0-1.19l.09-.04c1.31-.52 2.35-1.56 2.87-2.87l.04-.09Z"}),g("path",{d:"M7 7h8M7 11.5h8M7 16h4"})]})),qh=je(()=>g(Ee,{children:[g("path",{d:"M5 14v6"}),g("path",{d:"M5 4v7"}),g("path",{d:"M9 8h6"}),g("path",{d:"M2 14H8"}),g("path",{d:"M16 12h6"}),g("path",{d:"M12 8V4"}),g("path",{d:"M12 11v9"}),g("path",{d:"M19 4v8"}),g("path",{d:"M19 15v5"})]})),Wh=je(()=>g("path",{d:"M4 18c0 2.3 0 3.5.8 3.9 1.5.8 4.3-1.9 5.6-2.7.8-.5 1.2-.7 1.6-.7s.8.2 1.6.7c1.3.8 4.1 3.5 5.6 2.7.8-.4.8-1.6.8-3.9V9.7c0-3.6 0-5.5-1.2-6.6C17.7 2 15.8 2 12 2S6.3 2 5.2 3.1 4 6.1 4 9.7v8.3Z"})),Ao=je(()=>g(Ee,{children:[g("path",{d:"m19.4 7.6-3-3m3 3-6.7 6.7c-.5.5-1.1.9-1.8 1L8 16l.7-2.9c.2-.7.5-1.3 1-1.8l6.7-6.7m3 3 1-1c.8-.8.8-2.1 0-3-.8-.8-2.1-.8-3 0l-1 1"}),g("path",{d:"M10.5 5c-3.29 0-4.93 0-6.04.91-.2.17-.39.35-.55.55C3 7.57 3 9.21 3 12.5V13c0 3.77 0 5.66 1.17 6.83C5.34 21 7.23 21 11 21h.5c3.29 0 4.93 0 6.04-.91.2-.17.39-.35.55-.55.91-1.11.91-2.75.91-6.04"})]})),Gh=je(()=>g("path",{d:"M6 10s3.5 6 6 6 6-6 6-6"}));function Qh(e,t){for(var n in t)e[n]=t[n];return e}function Wi(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Co(e){this.props=e}function de(e,t){function n(i){var a=this.props.ref,s=a==i.ref;return!s&&a&&(a.call?a(null):a.current=null),t?!t(this.props,i)||!s:Wi(this.props,i)}function r(i){return this.shouldComponentUpdate=n,ut(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Co.prototype=new lt).isPureReactComponent=!0,Co.prototype.shouldComponentUpdate=function(e,t){return Wi(this.props,e)||Wi(this.state,t)};var So=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),So&&So(e)};var Kh=G.__e;G.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Kh(e,t,n,r)};var Io=G.unmount;function No(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Qh({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return No(r,t,n)})),e}function vo(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return vo(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Mn(){this.__u=0,this.t=null,this.__b=null}function Lo(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ro(e){var t,n,r;function i(a){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return ut(n,a)}return i.displayName="Lazy",i.__f=!0,i}function Mr(){this.u=null,this.o=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Io&&Io(e)},(Mn.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Lo(r.__v),a=!1,s=function(){a||(a=!0,n.__R=null,i?i(o):o())};n.__R=s;var o=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=vo(c,c.__c.__P,c.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.t.pop();)h.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Mn.prototype.componentWillUnmount=function(){this.t=[]},Mn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=No(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ut(Ee,null,e.fallback);return i&&(i.__h=null),[ut(Ee,null,t.__a?null:e.children),i]};var Oo=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Xh(e){return this.getChildContext=function(){return e.context},e.children}function Zh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Sr(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Sr(ut(Xh,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Do(e,t){var n=ut(Zh,{__v:e,i:t});return n.containerInfo=t,n}(Mr.prototype=new lt).__a=function(e){var t=this,n=Lo(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),Oo(t,e,r)):i()};n?n(a):a()}},Mr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ar(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Mr.prototype.componentDidUpdate=Mr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Oo(e,n,t)})};var Po=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ef=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tf=/[A-Z0-9]/g,nf=typeof document<"u",rf=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Mo=G.event;function af(){}function sf(){return this.cancelBubble}function of(){return this.defaultPrevented}G.event=function(e){return Mo&&(e=Mo(e)),e.persist=af,e.isPropagationStopped=sf,e.isDefaultPrevented=of,e.nativeEvent=e};var uf={enumerable:!1,configurable:!0,get:function(){return this.class}},Bo=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||nf&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var o=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":o==="ondoubleclick"?a="ondblclick":o!=="onchange"||r!=="input"&&r!=="textarea"||rf(n.type)?o==="onfocus"?a="onfocusin":o==="onblur"?a="onfocusout":ef.test(a)?a=o:r.indexOf("-")===-1&&Jh.test(a)?a=a.replace(tf,"-$&").toLowerCase():s===null&&(s=void 0):o=a="oninput",o==="oninput"&&i[a=o]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Ar(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Ar(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",uf)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Po,Bo&&Bo(e)};var Fo=G.__r;G.__r=function(e){Fo&&Fo(e)};var Ho=G.diffed;G.diffed=function(e){Ho&&Ho(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function St(e){return!!e&&e.$$typeof===Po}function lf(e){return St(e)?Ws.apply(null,arguments):e}function cf(e){e()}function df(){return[!1,cf]}const Br=function(e){if(e==null)return mf;if(typeof e=="function")return Fr(e);if(typeof e=="object")return Array.isArray(e)?hf(e):ff(e);if(typeof e=="string")return pf(e);throw new Error("Expected function, string, or object as test")};function hf(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Br(e[n]);return Fr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ff(e){const t=e;return Fr(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function pf(e){return Fr(t);function t(n){return n&&n.type===e}}function Fr(e){return t;function t(n,r,i){return!!(gf(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function mf(){return!0}function gf(e){return e!==null&&typeof e=="object"&&"type"in e}function T5(e){return e}const Uo=[],Bn=!0,Gi=!1,fn="skip";function Qi(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Br(i),s=r?-1:1;o(e,void 0,[])();function o(u,c,h){const d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){const p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Uo,m,T,w;if((!t||a(u,c,h[h.length-1]||void 0))&&(p=bf(n(u,h)),p[0]===Gi))return p;if("children"in u&&u.children){const y=u;if(y.children&&p[0]!==fn)for(T=(r?y.children.length:-1)+s,w=h.concat(y);T>-1&&T<y.children.length;){const I=y.children[T];if(m=o(I,T,w)(),m[0]===Gi)return m;T=typeof m[1]=="number"?m[1]:T+s}}return p}}}function bf(e){return Array.isArray(e)?e:typeof e=="number"?[Bn,e]:e==null?Uo:[e]}function It(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),Qi(e,a,o,i);function o(u,c){const h=c[c.length-1],d=h?h.children.indexOf(u):void 0;return s(u,d,h)}}const pn={indicator:"indicator",textOnly:"text-only",remove:"remove"};function Ef({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=pn.indicator,imageBlockPolicy:u=pn.indicator}){const c=t.length&&!t.every(d=>d==="*"),h=n.length&&!n.every(d=>d==="*");if(!e&&(c||h))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return d=>{const f=wf(e,t,n,r,i,a,s,o,u);Yo(d),It(d,f)}}function zo(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function _f(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const Tf=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),kf=new Set(["javascript:","data:","file:","vbscript:"]);function $o(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const h=e.substring(5);if(h&&h.length>0&&h!=="invalid")return e}}catch{return null}return null}const s=zo(e,n);if(!s||kf.has(s.protocol)||!(Tf.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const u=_f(e);return s&&t.some(c=>{const h=zo(c,n);return!h||h.origin!==s.origin?!1:s.href.startsWith(h.href)})?u?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:u?s.pathname+s.search+s.hash:s.href:null}function Yo(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)Yo(t)}}const Ki=Symbol("node-seen");function xf(e,t,n){return t===pn.remove?{type:"remove"}:t===pn.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function yf(e,t,n){if(t===pn.remove)return{type:"remove"};if(t===pn.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const wf=(e,t,n,r,i,a,s,o,u)=>{const c=(h,d,f)=>{if(h.type!=="element"||h[Ki])return Bn;if(h.tagName==="a"){const p=$o(h.properties.href,t,e,!1,!1,i);if(p===null){if(h[Ki]=!0,It(h,c),f&&typeof d=="number"){const m=xf(h,o,s);if(m.type==="remove")return f.children.splice(d,1),[fn,d];f.children[d]=m.element}return fn}else return h.properties.href=p,h.properties.target="_blank",h.properties.rel="noopener noreferrer",Bn}if(h.tagName==="img"){const p=$o(h.properties.src,n,e,r,!0,i);if(p===null){if(h[Ki]=!0,It(h,c),f&&typeof d=="number"){const m=yf(h,u,a);if(m.type==="remove")return f.children.splice(d,1),[fn,d];f.children[d]=m.element}return fn}else return h.properties.src=p,Bn}return Bn};return c},jo=-1,Hr=0,Fn=1,Ur=2,Xi=3,Zi=4,Ji=5,ea=6,Vo=7,qo=8,Wo=typeof self=="object"?self:globalThis,Af=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Hr:case jo:return n(s,i);case Fn:{const o=n([],i);for(const u of s)o.push(r(u));return o}case Ur:{const o=n({},i);for(const[u,c]of s)o[r(u)]=r(c);return o}case Xi:return n(new Date(s),i);case Zi:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case Ji:{const o=n(new Map,i);for(const[u,c]of s)o.set(r(u),r(c));return o}case ea:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case Vo:{const{name:o,message:u}=s;return n(new Wo[o](u),i)}case qo:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Wo[a](s),i)};return r},Go=e=>Af(new Map,e)(0),mn="",{toString:Cf}={},{keys:Sf}=Object,Hn=e=>{const t=typeof e;if(t!=="object"||!e)return[Hr,t];const n=Cf.call(e).slice(8,-1);switch(n){case"Array":return[Fn,mn];case"Object":return[Ur,mn];case"Date":return[Xi,mn];case"RegExp":return[Zi,mn];case"Map":return[Ji,mn];case"Set":return[ea,mn];case"DataView":return[Fn,n]}return n.includes("Array")?[Fn,n]:n.includes("Error")?[Vo,n]:[Ur,n]},zr=([e,t])=>e===Hr&&(t==="function"||t==="symbol"),If=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=Hn(s);switch(o){case Hr:{let h=s;switch(u){case"bigint":o=qo,h=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);h=null;break;case"undefined":return i([jo],s)}return i([o,h],s)}case Fn:{if(u){let f=s;return u==="DataView"?f=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(f=new Uint8Array(s)),i([u,[...f]],s)}const h=[],d=i([o,h],s);for(const f of s)h.push(a(f));return d}case Ur:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const h=[],d=i([o,h],s);for(const f of Sf(s))(e||!zr(Hn(s[f])))&&h.push([a(f),a(s[f])]);return d}case Xi:return i([o,s.toISOString()],s);case Zi:{const{source:h,flags:d}=s;return i([o,{source:h,flags:d}],s)}case Ji:{const h=[],d=i([o,h],s);for(const[f,p]of s)(e||!(zr(Hn(f))||zr(Hn(p))))&&h.push([a(f),a(p)]);return d}case ea:{const h=[],d=i([o,h],s);for(const f of s)(e||!zr(Hn(f)))&&h.push(a(f));return d}}const{message:c}=s;return i([o,{name:u,message:c}],s)};return a},Qo=(e,{json:t,lossy:n}={})=>{const r=[];return If(!(t||n),!!t,new Map,r)(e),r},Vt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Go(Qo(e,t)):structuredClone(e):(e,t)=>Go(Qo(e,t));class Un{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Un.prototype.normal={},Un.prototype.property={},Un.prototype.space=void 0;function Ko(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Un(n,r,t)}function zn(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="",Ve.prototype.booleanish=!1,Ve.prototype.boolean=!1,Ve.prototype.commaOrSpaceSeparated=!1,Ve.prototype.commaSeparated=!1,Ve.prototype.defined=!1,Ve.prototype.mustUseProperty=!1,Ve.prototype.number=!1,Ve.prototype.overloadedBoolean=!1,Ve.prototype.property="",Ve.prototype.spaceSeparated=!1,Ve.prototype.space=void 0;let Nf=0;const te=qt(),Le=qt(),ta=qt(),H=qt(),be=qt(),gn=qt(),Qe=qt();function qt(){return 2**++Nf}const na=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:Le,commaOrSpaceSeparated:Qe,commaSeparated:gn,number:H,overloadedBoolean:ta,spaceSeparated:be},Symbol.toStringTag,{value:"Module"})),ra=Object.keys(na);class ia extends Ve{constructor(t,n,r,i){let a=-1;if(super(t,n),Xo(this,"space",i),typeof r=="number")for(;++a<ra.length;){const s=ra[a];Xo(this,ra[a],(r&na[s])===na[s])}}}ia.prototype.defined=!0;function Xo(e,t,n){n&&(e[t]=n)}function bn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new ia(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[zn(r)]=r,n[zn(a.attribute)]=r}return new Un(t,n,e.space)}const Zo=bn({properties:{ariaActiveDescendant:null,ariaAtomic:Le,ariaAutoComplete:null,ariaBusy:Le,ariaChecked:Le,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:be,ariaCurrent:null,ariaDescribedBy:be,ariaDetails:null,ariaDisabled:Le,ariaDropEffect:be,ariaErrorMessage:null,ariaExpanded:Le,ariaFlowTo:be,ariaGrabbed:Le,ariaHasPopup:null,ariaHidden:Le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:be,ariaLevel:H,ariaLive:null,ariaModal:Le,ariaMultiLine:Le,ariaMultiSelectable:Le,ariaOrientation:null,ariaOwns:be,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Le,ariaReadOnly:Le,ariaRelevant:null,ariaRequired:Le,ariaRoleDescription:be,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Le,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jo(e,t){return t in e?e[t]:t}function eu(e,t){return Jo(e,t.toLowerCase())}const vf=bn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gn,acceptCharset:be,accessKey:be,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:be,autoFocus:te,autoPlay:te,blocking:be,capture:null,charSet:null,checked:te,cite:null,className:be,cols:H,colSpan:null,content:null,contentEditable:Le,controls:te,controlsList:be,coords:H|gn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:ta,draggable:Le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:be,height:H,hidden:ta,high:H,href:null,hrefLang:null,htmlFor:be,httpEquiv:be,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:be,itemRef:be,itemScope:te,itemType:be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:te,optimum:H,pattern:null,ping:be,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:be,required:te,reversed:te,rows:H,rowSpan:H,sandbox:be,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:te,useMap:null,value:Le,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:be,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:te,noHref:te,noShade:te,noWrap:te,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Le,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:te,disableRemotePlayback:te,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:eu}),Lf=bn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Qe,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:be,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:te,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:gn,g2:gn,glyphName:gn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:Qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qe,rev:Qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qe,requiredFeatures:Qe,requiredFonts:Qe,requiredFormats:Qe,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:Qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qe,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jo}),tu=bn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nu=bn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eu}),ru=bn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Rf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Of=/[A-Z]/g,iu=/-[a-z]/g,Df=/^data[-\w.:]+$/i;function $r(e,t){const n=zn(t);let r=t,i=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Df.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(iu,Mf);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!iu.test(a)){let s=a.replace(Of,Pf);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ia}return new i(r,t)}function Pf(e){return"-"+e.toLowerCase()}function Mf(e){return e.charAt(1).toUpperCase()}const $n=Ko([Zo,vf,tu,nu,ru],"html"),Nt=Ko([Zo,Lf,tu,nu,ru],"svg");function au(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function su(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ou=/[#.]/g;function Bf(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){ou.lastIndex=i;const o=ou.exec(n),u=n.slice(i,o?o.index:n.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:s=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function uu(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function lu(e){return e.join(" ").trim()}function cu(e,t,n){const r=n?zf(n):void 0;function i(a,s,...o){let u;if(a==null){u={type:"root",children:[]};const c=s;o.unshift(c)}else{u=Bf(a,t);const c=u.tagName.toLowerCase(),h=r?r.get(c):void 0;if(u.tagName=h||c,Ff(s))o.unshift(s);else for(const[d,f]of Object.entries(s))Hf(e,u.properties,d,f)}for(const c of o)aa(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Ff(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Hf(e,t,n,r){const i=$r(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=uu(r):i.commaSeparated?a=au(r):i.commaOrSpaceSeparated?a=uu(au(r).join(" ")):a=du(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Uf(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(du(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function aa(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)aa(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?aa(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function du(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||zn(n)===zn(t)))return!0}return n}function Uf(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function zf(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const $f=["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"],Yf=cu($n,"div"),jf=cu(Nt,"g",$f);function Vf(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=hu(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],u=hu(t,o),c=u===-1?t.length+1:u+1;if(o===c)break;n.push(c)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function hu(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
2
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Wt={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/"},fu={}.hasOwnProperty,qf=Object.prototype;function Wf(e,t){const n=t||{};return sa({file:n.file||void 0,location:!1,schema:n.space==="svg"?Nt:$n,verbose:n.verbose||!1},e)}function sa(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Yr(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:pu(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=Vf(a),o=s.toPoint(0),u=s.toPoint(a.length);n.position={start:o,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Yr(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Yr(e,r,n),n}default:return n=Gf(e,t),n}}function pu(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=sa(e,t[n]);r.push(i)}return r}function Gf(e,t){const n=e.schema;e.schema=t.namespaceURI===Wt.svg?Nt:$n;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],u=(o.prefix?o.prefix+":":"")+o.name;fu.call(qf,u)||(i[u]=o.value)}const s=(e.schema.space==="svg"?jf:Yf)(t.tagName,i,pu(e,t.childNodes));if(Yr(e,t,s),s.tagName==="template"){const o=t,u=o.sourceCodeLocation,c=u&&u.startTag&&En(u.startTag),h=u&&u.endTag&&En(u.endTag),d=sa(e,o.content);c&&h&&e.file&&(d.position={start:c.end,end:h.start}),s.content=d}return e.schema=n,s}function Yr(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Qf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Qf(e,t,n){const r=En(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 a={};let s;if(n.attrs)for(s in n.attrs)fu.call(n.attrs,s)&&(a[$r(e.schema,s).property]=En(n.attrs[s]));const o=En(n.startTag),u=n.endTag?En(n.endTag):void 0,c={opening:o};u&&(c.closing=u),c.properties=a,t.data={position:c}}}return r}function En(e){const t=mu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=mu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function mu(e){return e.line&&e.column?e:void 0}const gu={}.hasOwnProperty;function bu(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&gu.call(i,e)){const u=String(i[e]);s=gu.call(o,u)?o[u]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Kf={},Xf={}.hasOwnProperty,Eu=bu("type",{handlers:{root:Jf,element:ip,text:np,comment:rp,doctype:tp}});function Zf(e,t){const r=(t||Kf).space;return Eu(e,r==="svg"?Nt:$n)}function Jf(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=oa(e.children,n,t),_n(e,n),n}function ep(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=oa(e.children,n,t),_n(e,n),n}function tp(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return _n(e,t),t}function np(e){const t={nodeName:"#text",value:e.value,parentNode:null};return _n(e,t),t}function rp(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return _n(e,t),t}function ip(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Nt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Xf.call(e.properties,a)){const u=ap(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Wt[s],childNodes:[],parentNode:null};return o.childNodes=oa(e.children,o,r),_n(e,o),e.tagName==="template"&&e.content&&(o.content=ep(e.content,r)),o}function ap(e,t,n){const r=$r(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?su(n):lu(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Wt[r.space]}return i}function oa(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=Eu(e[r],n);a.parentNode=t,i.push(a)}return i}function _n(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const sp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],op=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ye="�";var b;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(b||(b={}));const qe={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function _u(e){return e>=55296&&e<=57343}function up(e){return e>=56320&&e<=57343}function lp(e,t){return(e-55296)*1024+9216+t}function Tu(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ku(e){return e>=64976&&e<=65007||op.has(e)}var v;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(v||(v={}));const cp=65536;class dp{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=cp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(up(n))return this.pos++,this._addGap(),lp(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,b.EOF;return this._err(v.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;const r=this.html.charCodeAt(n);return r===b.CARRIAGE_RETURN?b.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,b.EOF;let t=this.html.charCodeAt(this.pos);return t===b.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,b.LINE_FEED):t===b.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,_u(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===b.LINE_FEED||t===b.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Tu(t)?this._err(v.controlCharacterInInputStream):ku(t)&&this._err(v.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ie;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ie||(ie={}));function xu(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const hp=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),fp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function pp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=fp.get(e))!==null&&t!==void 0?t:e}var De;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(De||(De={}));const mp=32;var vt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(vt||(vt={}));function ua(e){return e>=De.ZERO&&e<=De.NINE}function gp(e){return e>=De.UPPER_A&&e<=De.UPPER_F||e>=De.LOWER_A&&e<=De.LOWER_F}function bp(e){return e>=De.UPPER_A&&e<=De.UPPER_Z||e>=De.LOWER_A&&e<=De.LOWER_Z||ua(e)}function Ep(e){return e===De.EQUALS||bp(e)}var Pe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Pe||(Pe={}));var _t;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(_t||(_t={}));class _p{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Pe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_t.Strict}startEntity(t){this.decodeMode=t,this.state=Pe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Pe.EntityStart:return t.charCodeAt(n)===De.NUM?(this.state=Pe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Pe.NamedEntity,this.stateNamedEntity(t,n));case Pe.NumericStart:return this.stateNumericStart(t,n);case Pe.NumericDecimal:return this.stateNumericDecimal(t,n);case Pe.NumericHex:return this.stateNumericHex(t,n);case Pe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|mp)===De.LOWER_X?(this.state=Pe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Pe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ua(i)||gp(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ua(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===De.SEMI)this.consumed+=1;else if(this.decodeMode===_t.Strict)return 0;return this.emitCodePoint(pp(this.result),this.consumed),this.errors&&(t!==De.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=Tp(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===_t.Attribute&&(a===0||Ep(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&vt.VALUE_LENGTH)>>14,a!==0){if(s===De.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==_t.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&vt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~vt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Pe.NamedEntity:return this.result!==0&&(this.decodeMode!==_t.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Pe.NumericDecimal:return this.emitNumericEntity(0,2);case Pe.NumericHex:return this.emitNumericEntity(0,3);case Pe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Pe.EntityStart:return 0}}}function Tp(e,t,n,r){const i=(t&vt.BRANCH_LENGTH)>>7,a=t&vt.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)o=u-1;else return e[u+i]}return-1}var P;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(P||(P={}));var Gt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Gt||(Gt={}));var et;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(et||(et={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const kp=new Map([[N.A,l.A],[N.ADDRESS,l.ADDRESS],[N.ANNOTATION_XML,l.ANNOTATION_XML],[N.APPLET,l.APPLET],[N.AREA,l.AREA],[N.ARTICLE,l.ARTICLE],[N.ASIDE,l.ASIDE],[N.B,l.B],[N.BASE,l.BASE],[N.BASEFONT,l.BASEFONT],[N.BGSOUND,l.BGSOUND],[N.BIG,l.BIG],[N.BLOCKQUOTE,l.BLOCKQUOTE],[N.BODY,l.BODY],[N.BR,l.BR],[N.BUTTON,l.BUTTON],[N.CAPTION,l.CAPTION],[N.CENTER,l.CENTER],[N.CODE,l.CODE],[N.COL,l.COL],[N.COLGROUP,l.COLGROUP],[N.DD,l.DD],[N.DESC,l.DESC],[N.DETAILS,l.DETAILS],[N.DIALOG,l.DIALOG],[N.DIR,l.DIR],[N.DIV,l.DIV],[N.DL,l.DL],[N.DT,l.DT],[N.EM,l.EM],[N.EMBED,l.EMBED],[N.FIELDSET,l.FIELDSET],[N.FIGCAPTION,l.FIGCAPTION],[N.FIGURE,l.FIGURE],[N.FONT,l.FONT],[N.FOOTER,l.FOOTER],[N.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[N.FORM,l.FORM],[N.FRAME,l.FRAME],[N.FRAMESET,l.FRAMESET],[N.H1,l.H1],[N.H2,l.H2],[N.H3,l.H3],[N.H4,l.H4],[N.H5,l.H5],[N.H6,l.H6],[N.HEAD,l.HEAD],[N.HEADER,l.HEADER],[N.HGROUP,l.HGROUP],[N.HR,l.HR],[N.HTML,l.HTML],[N.I,l.I],[N.IMG,l.IMG],[N.IMAGE,l.IMAGE],[N.INPUT,l.INPUT],[N.IFRAME,l.IFRAME],[N.KEYGEN,l.KEYGEN],[N.LABEL,l.LABEL],[N.LI,l.LI],[N.LINK,l.LINK],[N.LISTING,l.LISTING],[N.MAIN,l.MAIN],[N.MALIGNMARK,l.MALIGNMARK],[N.MARQUEE,l.MARQUEE],[N.MATH,l.MATH],[N.MENU,l.MENU],[N.META,l.META],[N.MGLYPH,l.MGLYPH],[N.MI,l.MI],[N.MO,l.MO],[N.MN,l.MN],[N.MS,l.MS],[N.MTEXT,l.MTEXT],[N.NAV,l.NAV],[N.NOBR,l.NOBR],[N.NOFRAMES,l.NOFRAMES],[N.NOEMBED,l.NOEMBED],[N.NOSCRIPT,l.NOSCRIPT],[N.OBJECT,l.OBJECT],[N.OL,l.OL],[N.OPTGROUP,l.OPTGROUP],[N.OPTION,l.OPTION],[N.P,l.P],[N.PARAM,l.PARAM],[N.PLAINTEXT,l.PLAINTEXT],[N.PRE,l.PRE],[N.RB,l.RB],[N.RP,l.RP],[N.RT,l.RT],[N.RTC,l.RTC],[N.RUBY,l.RUBY],[N.S,l.S],[N.SCRIPT,l.SCRIPT],[N.SEARCH,l.SEARCH],[N.SECTION,l.SECTION],[N.SELECT,l.SELECT],[N.SOURCE,l.SOURCE],[N.SMALL,l.SMALL],[N.SPAN,l.SPAN],[N.STRIKE,l.STRIKE],[N.STRONG,l.STRONG],[N.STYLE,l.STYLE],[N.SUB,l.SUB],[N.SUMMARY,l.SUMMARY],[N.SUP,l.SUP],[N.TABLE,l.TABLE],[N.TBODY,l.TBODY],[N.TEMPLATE,l.TEMPLATE],[N.TEXTAREA,l.TEXTAREA],[N.TFOOT,l.TFOOT],[N.TD,l.TD],[N.TH,l.TH],[N.THEAD,l.THEAD],[N.TITLE,l.TITLE],[N.TR,l.TR],[N.TRACK,l.TRACK],[N.TT,l.TT],[N.U,l.U],[N.UL,l.UL],[N.SVG,l.SVG],[N.VAR,l.VAR],[N.WBR,l.WBR],[N.XMP,l.XMP]]);function Tn(e){var t;return(t=kp.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const B=l,xp={[P.HTML]:new Set([B.ADDRESS,B.APPLET,B.AREA,B.ARTICLE,B.ASIDE,B.BASE,B.BASEFONT,B.BGSOUND,B.BLOCKQUOTE,B.BODY,B.BR,B.BUTTON,B.CAPTION,B.CENTER,B.COL,B.COLGROUP,B.DD,B.DETAILS,B.DIR,B.DIV,B.DL,B.DT,B.EMBED,B.FIELDSET,B.FIGCAPTION,B.FIGURE,B.FOOTER,B.FORM,B.FRAME,B.FRAMESET,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HEADER,B.HGROUP,B.HR,B.HTML,B.IFRAME,B.IMG,B.INPUT,B.LI,B.LINK,B.LISTING,B.MAIN,B.MARQUEE,B.MENU,B.META,B.NAV,B.NOEMBED,B.NOFRAMES,B.NOSCRIPT,B.OBJECT,B.OL,B.P,B.PARAM,B.PLAINTEXT,B.PRE,B.SCRIPT,B.SECTION,B.SELECT,B.SOURCE,B.STYLE,B.SUMMARY,B.TABLE,B.TBODY,B.TD,B.TEMPLATE,B.TEXTAREA,B.TFOOT,B.TH,B.THEAD,B.TITLE,B.TR,B.TRACK,B.UL,B.WBR,B.XMP]),[P.MATHML]:new Set([B.MI,B.MO,B.MN,B.MS,B.MTEXT,B.ANNOTATION_XML]),[P.SVG]:new Set([B.TITLE,B.FOREIGN_OBJECT,B.DESC]),[P.XLINK]:new Set,[P.XML]:new Set,[P.XMLNS]:new Set},la=new Set([B.H1,B.H2,B.H3,B.H4,B.H5,B.H6]);var E;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(E||(E={}));const Ie={DATA:E.DATA,RCDATA:E.RCDATA,RAWTEXT:E.RAWTEXT,SCRIPT_DATA:E.SCRIPT_DATA,PLAINTEXT:E.PLAINTEXT,CDATA_SECTION:E.CDATA_SECTION};function yp(e){return e>=b.DIGIT_0&&e<=b.DIGIT_9}function Yn(e){return e>=b.LATIN_CAPITAL_A&&e<=b.LATIN_CAPITAL_Z}function wp(e){return e>=b.LATIN_SMALL_A&&e<=b.LATIN_SMALL_Z}function Lt(e){return wp(e)||Yn(e)}function yu(e){return Lt(e)||yp(e)}function jr(e){return e+32}function wu(e){return e===b.SPACE||e===b.LINE_FEED||e===b.TABULATION||e===b.FORM_FEED}function Au(e){return wu(e)||e===b.SOLIDUS||e===b.GREATER_THAN_SIGN}function Ap(e){return e===b.NULL?v.nullCharacterReference:e>1114111?v.characterReferenceOutsideUnicodeRange:_u(e)?v.surrogateCharacterReference:ku(e)?v.noncharacterCharacterReference:Tu(e)||e===b.CARRIAGE_RETURN?v.controlCharacterReference:null}class Cp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=E.DATA,this.returnState=E.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new dp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new _p(hp,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(v.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(v.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=Ap(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ie.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ie.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ie.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ie.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(xu(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(v.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Tn(t.tagName),t.type===ie.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(v.endTagWithAttributes),t.selfClosing&&this._err(v.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ie.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ie.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ie.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ie.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=wu(t)?ie.WHITESPACE_CHARACTER:t===b.NULL?ie.NULL_CHARACTER:ie.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ie.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=E.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?_t.Attribute:_t.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===E.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===E.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case E.DATA:{this._stateData(t);break}case E.RCDATA:{this._stateRcdata(t);break}case E.RAWTEXT:{this._stateRawtext(t);break}case E.SCRIPT_DATA:{this._stateScriptData(t);break}case E.PLAINTEXT:{this._statePlaintext(t);break}case E.TAG_OPEN:{this._stateTagOpen(t);break}case E.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case E.TAG_NAME:{this._stateTagName(t);break}case E.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case E.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case E.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case E.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case E.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case E.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case E.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case E.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case E.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case E.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case E.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case E.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case E.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case E.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case E.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case E.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case E.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case E.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case E.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case E.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case E.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case E.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case E.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case E.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case E.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case E.BOGUS_COMMENT:{this._stateBogusComment(t);break}case E.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case E.COMMENT_START:{this._stateCommentStart(t);break}case E.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case E.COMMENT:{this._stateComment(t);break}case E.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case E.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case E.COMMENT_END:{this._stateCommentEnd(t);break}case E.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case E.DOCTYPE:{this._stateDoctype(t);break}case E.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case E.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case E.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case E.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case E.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case E.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case E.CDATA_SECTION:{this._stateCdataSection(t);break}case E.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case E.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case E.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case E.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.TAG_OPEN;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitCodePoint(t);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case b.AMPERSAND:{this._startCharacterReference();break}case b.LESS_THAN_SIGN:{this.state=E.RCDATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.RAWTEXT_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Lt(t))this._createStartTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.EXCLAMATION_MARK:{this.state=E.MARKUP_DECLARATION_OPEN;break}case b.SOLIDUS:{this.state=E.END_TAG_OPEN;break}case b.QUESTION_MARK:{this._err(v.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t);break}case b.EOF:{this._err(v.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=E.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Lt(t))this._createEndTagToken(),this.state=E.TAG_NAME,this._stateTagName(t);else switch(t){case b.GREATER_THAN_SIGN:{this._err(v.missingEndTagName),this.state=E.DATA;break}case b.EOF:{this._err(v.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(v.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.tagName+=ye;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Yn(t)?jr(t):t)}}_stateRcdataLessThanSign(t){t===b.SOLIDUS?this.state=E.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Lt(t)?(this.state=E.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=E.BEFORE_ATTRIBUTE_NAME,!1;case b.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=E.SELF_CLOSING_START_TAG,!1;case b.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=E.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===b.SOLIDUS?this.state=E.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Lt(t)?(this.state=E.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case b.SOLIDUS:{this.state=E.SCRIPT_DATA_END_TAG_OPEN;break}case b.EXCLAMATION_MARK:{this.state=E.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=E.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Lt(t)?(this.state=E.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===b.HYPHEN_MINUS?(this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=E.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_ESCAPED,this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===b.SOLIDUS?this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Lt(t)?(this._emitChars("<"),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Lt(t)?(this.state=E.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(qe.SCRIPT,!1)&&Au(this.preprocessor.peek(qe.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<qe.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case b.HYPHEN_MINUS:{this._emitChars("-");break}case b.LESS_THAN_SIGN:{this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case b.GREATER_THAN_SIGN:{this.state=E.SCRIPT_DATA,this._emitChars(">");break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ye);break}case b.EOF:{this._err(v.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===b.SOLIDUS?(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(qe.SCRIPT,!1)&&Au(this.preprocessor.peek(qe.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<qe.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=E.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=E.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._err(v.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=E.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:case b.SOLIDUS:case b.GREATER_THAN_SIGN:case b.EOF:{this._leaveAttrName(),this.state=E.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case b.EQUALS_SIGN:{this._leaveAttrName(),this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:{this._err(v.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.name+=ye;break}default:this.currentAttr.name+=String.fromCodePoint(Yn(t)?jr(t):t)}}_stateAfterAttributeName(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.SOLIDUS:{this.state=E.SELF_CLOSING_START_TAG;break}case b.EQUALS_SIGN:{this.state=E.BEFORE_ATTRIBUTE_VALUE;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=E.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{this.state=E.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this.state=E.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingAttributeValue),this.state=E.DATA,this.emitCurrentTagToken();break}default:this.state=E.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ye;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case b.APOSTROPHE:{this.state=E.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ye;break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.AMPERSAND:{this._startCharacterReference();break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),this.currentAttr.value+=ye;break}case b.QUOTATION_MARK:case b.APOSTROPHE:case b.LESS_THAN_SIGN:case b.EQUALS_SIGN:case b.GRAVE_ACCENT:{this._err(v.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this._leaveAttrValue(),this.state=E.BEFORE_ATTRIBUTE_NAME;break}case b.SOLIDUS:{this._leaveAttrValue(),this.state=E.SELF_CLOSING_START_TAG;break}case b.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBetweenAttributes),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case b.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=E.DATA,this.emitCurrentTagToken();break}case b.EOF:{this._err(v.eofInTag),this._emitEOFToken();break}default:this._err(v.unexpectedSolidusInTag),this.state=E.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.data+=ye;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(qe.DASH_DASH,!0)?(this._createCommentToken(qe.DASH_DASH.length+1),this.state=E.COMMENT_START):this._consumeSequenceIfMatch(qe.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(qe.DOCTYPE.length+1),this.state=E.DOCTYPE):this._consumeSequenceIfMatch(qe.CDATA_START,!0)?this.inForeignNode?this.state=E.CDATA_SECTION:(this._err(v.cdataInHtmlContent),this._createCommentToken(qe.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=E.BOGUS_COMMENT):this._ensureHibernation()||(this._err(v.incorrectlyOpenedComment),this._createCommentToken(2),this.state=E.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_START_DASH;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptClosingOfEmptyComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END_DASH;break}case b.LESS_THAN_SIGN:{n.data+="<",this.state=E.COMMENT_LESS_THAN_SIGN;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.data+=ye;break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case b.EXCLAMATION_MARK:{n.data+="!",this.state=E.COMMENT_LESS_THAN_SIGN_BANG;break}case b.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=E.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=E.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===b.HYPHEN_MINUS?this.state=E.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=E.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==b.GREATER_THAN_SIGN&&t!==b.EOF&&this._err(v.nestedComment),this.state=E.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{this.state=E.COMMENT_END;break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentComment(n);break}case b.EXCLAMATION_MARK:{this.state=E.COMMENT_END_BANG;break}case b.HYPHEN_MINUS:{n.data+="-";break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=E.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case b.HYPHEN_MINUS:{n.data+="--!",this.state=E.COMMENT_END_DASH;break}case b.GREATER_THAN_SIGN:{this._err(v.incorrectlyClosedComment),this.state=E.DATA,this.emitCurrentComment(n);break}case b.EOF:{this._err(v.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=E.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case b.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingWhitespaceBeforeDoctypeName),this.state=E.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Yn(t))this._createDoctypeToken(String.fromCharCode(jr(t))),this.state=E.DOCTYPE_NAME;else switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.NULL:{this._err(v.unexpectedNullCharacter),this._createDoctypeToken(ye),this.state=E.DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=E.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.AFTER_DOCTYPE_NAME;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.name+=ye;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Yn(t)?jr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(qe.PUBLIC,!1)?this.state=E.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(qe.SYSTEM,!1)?this.state=E.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(v.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.publicId="",this.state=E.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=ye;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.publicId+=ye;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case b.GREATER_THAN_SIGN:{this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:{this.state=E.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.QUOTATION_MARK:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{this._err(v.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.QUOTATION_MARK:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case b.APOSTROPHE:{n.systemId="",this.state=E.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case b.GREATER_THAN_SIGN:{this._err(v.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.DATA,this.emitCurrentDoctype(n);break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case b.QUOTATION_MARK:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=ye;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case b.APOSTROPHE:{this.state=E.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case b.NULL:{this._err(v.unexpectedNullCharacter),n.systemId+=ye;break}case b.GREATER_THAN_SIGN:{this._err(v.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case b.SPACE:case b.LINE_FEED:case b.TABULATION:case b.FORM_FEED:break;case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.EOF:{this._err(v.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(v.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=E.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case b.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=E.DATA;break}case b.NULL:{this._err(v.unexpectedNullCharacter);break}case b.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case b.RIGHT_SQUARE_BRACKET:{this.state=E.CDATA_SECTION_BRACKET;break}case b.EOF:{this._err(v.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===b.RIGHT_SQUARE_BRACKET?this.state=E.CDATA_SECTION_END:(this._emitChars("]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case b.GREATER_THAN_SIGN:{this.state=E.DATA;break}case b.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=E.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(b.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yu(this.preprocessor.peek(1))?E.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){yu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===b.SEMICOLON&&this._err(v.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Cu=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),Su=new Set([...Cu,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),Vr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),Sp=new Set([...Vr,l.OL,l.UL]),Ip=new Set([...Vr,l.BUTTON]),Iu=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),Nu=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),Np=new Set([l.TR,l.TEMPLATE,l.HTML]),vp=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),Lp=new Set([l.TABLE,l.TEMPLATE,l.HTML]),Rp=new Set([l.TD,l.TH]);class Op{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===P.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==P.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(la,P.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Rp,P.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Lp,P.HTML)}clearBackToTableBodyContext(){this.clearBackTo(vp,P.HTML)}clearBackToTableRowContext(){this.clearBackTo(Np,P.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case P.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case P.SVG:{if(Nu.has(i))return!1;break}case P.MATHML:{if(Iu.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Vr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Sp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ip)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case P.HTML:{if(la.has(n))return!0;if(Vr.has(n))return!1;break}case P.SVG:{if(Nu.has(n))return!1;break}case P.MATHML:{if(Iu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===P.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Cu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Su.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Su.has(this.currentTagId);)this.pop()}}const ca=3;var dt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(dt||(dt={}));const vu={type:dt.Marker};class Dp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const u=this.entries[o];if(u.type===dt.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===s){const h=this.treeAdapter.getAttrList(c);h.length===i&&r.push({idx:o,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ca)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ca)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(u=>i.get(u.name)===u.value)&&(a+=1,a>=ca&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(vu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:dt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:dt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(vu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===dt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===dt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===dt.Element&&n.element===t)}}const Rt={createDocument(){return{nodeName:"#document",mode:et.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Rt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Rt.isTextNode(n)){n.value+=t;return}}Rt.appendChild(e,Rt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Rt.isTextNode(r)?r.value+=t:Rt.insertBefore(e,Rt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Lu="html",Pp="about:legacy-compat",Mp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ru=["+//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//"],Bp=[...Ru,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Fp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ou=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Hp=[...Ou,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Du(e,t){return t.some(n=>e.startsWith(n))}function Up(e){return e.name===Lu&&e.publicId===null&&(e.systemId===null||e.systemId===Pp)}function zp(e){if(e.name!==Lu)return et.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Mp)return et.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Fp.has(n))return et.QUIRKS;let r=t===null?Bp:Ru;if(Du(n,r))return et.QUIRKS;if(r=t===null?Ou:Hp,Du(n,r))return et.LIMITED_QUIRKS}return et.NO_QUIRKS}const Pu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},$p="definitionurl",Yp="definitionURL",jp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Vp=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:P.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:P.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:P.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:P.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:P.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:P.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:P.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:P.XML}],["xml:space",{prefix:"xml",name:"space",namespace:P.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:P.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:P.XMLNS}]]),qp=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Wp=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function Gp(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===Gt.COLOR||r===Gt.SIZE||r===Gt.FACE)||Wp.has(t)}function Mu(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===$p){e.attrs[t].name=Yp;break}}function Bu(e){for(let t=0;t<e.attrs.length;t++){const n=jp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function da(e){for(let t=0;t<e.attrs.length;t++){const n=Vp.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Qp(e){const t=qp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Tn(e.tagName))}function Kp(e,t){return t===P.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function Xp(e,t,n){if(t===P.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Gt.ENCODING){const i=n[r].value.toLowerCase();return i===Pu.TEXT_HTML||i===Pu.APPLICATION_XML}}return t===P.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function Zp(e,t,n,r){return(!r||r===P.HTML)&&Xp(e,t,n)||(!r||r===P.MATHML)&&Kp(e,t)}const Jp="hidden",e1=8,t1=3;var k;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const n1={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Fu=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),Hu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Rt,onParseError:null};class Uu{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Hu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Cp(this.options,this),this.activeFormattingElements=new Dp(this.treeAdapter),this.fragmentContextID=r?Tn(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Op(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Hu,...n};t??(t=r.treeAdapter.createElement(N.TEMPLATE,P.HTML,[]));const i=r.treeAdapter.createElement("documentmock",P.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===l.TEMPLATE&&a.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:n1,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===P.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,P.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=Ie.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===N.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==P.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=Ie.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=Ie.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=Ie.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=Ie.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,P.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,P.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(N.HTML,P.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===ie.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===P.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,P.HTML)}_processToken(t){switch(t.type){case ie.CHARACTER:{this.onCharacter(t);break}case ie.NULL_CHARACTER:{this.onNullCharacter(t);break}case ie.COMMENT:{this.onComment(t);break}case ie.DOCTYPE:{this.onDoctype(t);break}case ie.START_TAG:{this._processStartTag(t);break}case ie.END_TAG:{this.onEndTag(t);break}case ie.EOF:{this.onEof(t);break}case ie.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Zp(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===dt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=k.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=k.IN_TABLE;return}case l.BODY:{this.insertionMode=k.IN_BODY;return}case l.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return Fu.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===P.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return xp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Rm(this,t);return}switch(this.insertionMode){case k.INITIAL:{jn(this,t);break}case k.BEFORE_HTML:{Vn(this,t);break}case k.BEFORE_HEAD:{qn(this,t);break}case k.IN_HEAD:{Wn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case k.AFTER_HEAD:{Qn(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{$u(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_TABLE_TEXT:{Ku(this,t);break}case k.IN_COLUMN_GROUP:{Gr(this,t);break}case k.AFTER_BODY:{Xr(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Lm(this,t);return}switch(this.insertionMode){case k.INITIAL:{jn(this,t);break}case k.BEFORE_HTML:{Vn(this,t);break}case k.BEFORE_HEAD:{qn(this,t);break}case k.IN_HEAD:{Wn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case k.AFTER_HEAD:{Qn(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_COLUMN_GROUP:{Gr(this,t);break}case k.AFTER_BODY:{Xr(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fa(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{fa(this,t);break}case k.IN_TABLE_TEXT:{Zn(this,t);break}case k.AFTER_BODY:{l1(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{c1(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{d1(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,v.misplacedDoctype);break}case k.IN_TABLE_TEXT:{Zn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,v.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Om(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{jn(this,t);break}case k.BEFORE_HTML:{h1(this,t);break}case k.BEFORE_HEAD:{p1(this,t);break}case k.IN_HEAD:{rt(this,t);break}case k.IN_HEAD_NO_SCRIPT:{b1(this,t);break}case k.AFTER_HEAD:{_1(this,t);break}case k.IN_BODY:{Be(this,t);break}case k.IN_TABLE:{kn(this,t);break}case k.IN_TABLE_TEXT:{Zn(this,t);break}case k.IN_CAPTION:{mm(this,t);break}case k.IN_COLUMN_GROUP:{ga(this,t);break}case k.IN_TABLE_BODY:{Qr(this,t);break}case k.IN_ROW:{Kr(this,t);break}case k.IN_CELL:{Em(this,t);break}case k.IN_SELECT:{Ju(this,t);break}case k.IN_SELECT_IN_TABLE:{Tm(this,t);break}case k.IN_TEMPLATE:{xm(this,t);break}case k.AFTER_BODY:{wm(this,t);break}case k.IN_FRAMESET:{Am(this,t);break}case k.AFTER_FRAMESET:{Sm(this,t);break}case k.AFTER_AFTER_BODY:{Nm(this,t);break}case k.AFTER_AFTER_FRAMESET:{vm(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Dm(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{jn(this,t);break}case k.BEFORE_HTML:{f1(this,t);break}case k.BEFORE_HEAD:{m1(this,t);break}case k.IN_HEAD:{g1(this,t);break}case k.IN_HEAD_NO_SCRIPT:{E1(this,t);break}case k.AFTER_HEAD:{T1(this,t);break}case k.IN_BODY:{Wr(this,t);break}case k.TEXT:{am(this,t);break}case k.IN_TABLE:{Kn(this,t);break}case k.IN_TABLE_TEXT:{Zn(this,t);break}case k.IN_CAPTION:{gm(this,t);break}case k.IN_COLUMN_GROUP:{bm(this,t);break}case k.IN_TABLE_BODY:{ba(this,t);break}case k.IN_ROW:{Zu(this,t);break}case k.IN_CELL:{_m(this,t);break}case k.IN_SELECT:{el(this,t);break}case k.IN_SELECT_IN_TABLE:{km(this,t);break}case k.IN_TEMPLATE:{ym(this,t);break}case k.AFTER_BODY:{nl(this,t);break}case k.IN_FRAMESET:{Cm(this,t);break}case k.AFTER_FRAMESET:{Im(this,t);break}case k.AFTER_AFTER_BODY:{Zr(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{jn(this,t);break}case k.BEFORE_HTML:{Vn(this,t);break}case k.BEFORE_HEAD:{qn(this,t);break}case k.IN_HEAD:{Wn(this,t);break}case k.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case k.AFTER_HEAD:{Qn(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{Gu(this,t);break}case k.TEXT:{sm(this,t);break}case k.IN_TABLE_TEXT:{Zn(this,t);break}case k.IN_TEMPLATE:{tl(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{pa(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===b.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{zu(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{ma(this,t);break}case k.IN_TABLE_TEXT:{Qu(this,t);break}}}}function r1(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Wu(e,t),n}function i1(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function a1(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=t1;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=s1(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function s1(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 o1(e,t,n){const r=e.treeAdapter.getTagName(t),i=Tn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&a===P.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function u1(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function ha(e,t){for(let n=0;n<e1;n++){const r=r1(e,t);if(!r)break;const i=i1(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=a1(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&o1(e,s,a),u1(e,i,r)}}function fa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function l1(e,t){e._appendCommentNode(t,e.openElements.items[0])}function c1(e,t){e._appendCommentNode(t,e.document)}function pa(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function d1(e,t){e._setDocumentType(t);const n=t.forceQuirks?et.QUIRKS:zp(t);Up(t)||e._err(t,v.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}function jn(e,t){e._err(t,v.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,et.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}function h1(e,t){t.tagID===l.HTML?(e._insertElement(t,P.HTML),e.insertionMode=k.BEFORE_HEAD):Vn(e,t)}function f1(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&Vn(e,t)}function Vn(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}function p1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.HEAD:{e._insertElement(t,P.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:qn(e,t)}}function m1(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?qn(e,t):e._err(t,v.endTagWithoutMatchingOpenElement)}function qn(e,t){e._insertFakeElement(N.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}function rt(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,Ie.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ie.RAWTEXT):(e._insertElement(t,P.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,Ie.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,Ie.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case l.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:Wn(e,t)}}function g1(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{Wn(e,t);break}case l.TEMPLATE:{Qt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Qt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,v.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,v.endTagWithoutMatchingOpenElement)}function Wn(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}function b1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{rt(e,t);break}case l.NOSCRIPT:{e._err(t,v.nestedNoscriptInHead);break}default:Gn(e,t)}}function E1(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case l.BR:{Gn(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Gn(e,t){const n=t.type===ie.EOF?v.openElementsLeftAfterEof:v.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}function _1(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.BODY:{e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,P.HTML),e.insertionMode=k.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,v.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),rt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,v.misplacedStartTagForHeadElement);break}default:Qn(e,t)}}function T1(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Qn(e,t);break}case l.TEMPLATE:{Qt(e,t);break}default:e._err(t,v.endTagWithoutMatchingOpenElement)}}function Qn(e,t){e._insertFakeElement(N.BODY,l.BODY),e.insertionMode=k.IN_BODY,qr(e,t)}function qr(e,t){switch(t.type){case ie.CHARACTER:{$u(e,t);break}case ie.WHITESPACE_CHARACTER:{zu(e,t);break}case ie.COMMENT:{fa(e,t);break}case ie.START_TAG:{Be(e,t);break}case ie.END_TAG:{Wr(e,t);break}case ie.EOF:{Gu(e,t);break}}}function zu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $u(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function k1(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function x1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function y1(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_FRAMESET)}function w1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function A1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&la.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,P.HTML)}function C1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function S1(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),n||(e.formElement=e.openElements.current))}function I1(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML)}function N1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.tokenizer.state=Ie.PLAINTEXT}function v1(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1}function L1(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(ha(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function R1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function O1(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(ha(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function D1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function P1(e,t){e.treeAdapter.getDocumentMode(e.document)!==et.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}function Yu(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ju(e){const t=xu(e,Gt.TYPE);return t!=null&&t.toLowerCase()===Jp}function M1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),ju(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function B1(e,t){e._appendElement(t,P.HTML),t.ackSelfClosing=!0}function F1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function H1(e,t){t.tagName=N.IMG,t.tagID=l.IMG,Yu(e,t)}function U1(e,t){e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ie.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}function z1(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function $1(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ie.RAWTEXT)}function Vu(e,t){e._switchToTextParsing(t,Ie.RAWTEXT)}function Y1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}function j1(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function V1(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,P.HTML)}function q1(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,P.HTML)}function W1(e,t){e._reconstructActiveFormattingElements(),Mu(t),da(t),t.selfClosing?e._appendElement(t,P.MATHML):e._insertElement(t,P.MATHML),t.ackSelfClosing=!0}function G1(e,t){e._reconstructActiveFormattingElements(),Bu(t),da(t),t.selfClosing?e._appendElement(t,P.SVG):e._insertElement(t,P.SVG),t.ackSelfClosing=!0}function qu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}function Be(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{R1(e,t);break}case l.A:{L1(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{A1(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{w1(e,t);break}case l.LI:case l.DD:case l.DT:{I1(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{Yu(e,t);break}case l.HR:{F1(e,t);break}case l.RB:case l.RTC:{V1(e,t);break}case l.RT:case l.RP:{q1(e,t);break}case l.PRE:case l.LISTING:{C1(e,t);break}case l.XMP:{z1(e,t);break}case l.SVG:{G1(e,t);break}case l.HTML:{k1(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{rt(e,t);break}case l.BODY:{x1(e,t);break}case l.FORM:{S1(e,t);break}case l.NOBR:{O1(e,t);break}case l.MATH:{W1(e,t);break}case l.TABLE:{P1(e,t);break}case l.INPUT:{M1(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{B1(e,t);break}case l.IMAGE:{H1(e,t);break}case l.BUTTON:{v1(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{D1(e,t);break}case l.IFRAME:{$1(e,t);break}case l.SELECT:{Y1(e,t);break}case l.OPTION:case l.OPTGROUP:{j1(e,t);break}case l.NOEMBED:case l.NOFRAMES:{Vu(e,t);break}case l.FRAMESET:{y1(e,t);break}case l.TEXTAREA:{U1(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?Vu(e,t):qu(e,t);break}case l.PLAINTEXT:{N1(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:qu(e,t)}}function Q1(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function K1(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=k.AFTER_BODY,nl(e,t))}function X1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Z1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function J1(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(N.P,l.P),e._closePElement()}function em(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function tm(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function nm(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function rm(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function im(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function Wu(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Wr(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{ha(e,t);break}case l.P:{J1(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{X1(e,t);break}case l.LI:{em(e);break}case l.DD:case l.DT:{tm(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{nm(e);break}case l.BR:{im(e);break}case l.BODY:{Q1(e,t);break}case l.HTML:{K1(e,t);break}case l.FORM:{Z1(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{rm(e,t);break}case l.TEMPLATE:{Qt(e,t);break}default:Wu(e,t)}}function Gu(e,t){e.tmplInsertionModeStack.length>0?tl(e,t):pa(e,t)}function am(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function sm(e,t){e._err(t,v.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ma(e,t){if(e.openElements.currentTagId!==void 0&&Fu.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case ie.CHARACTER:{Ku(e,t);break}case ie.WHITESPACE_CHARACTER:{Qu(e,t);break}}else Xn(e,t)}function om(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_CAPTION}function um(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_COLUMN_GROUP}function lm(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,l.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,ga(e,t)}function cm(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_TABLE_BODY}function dm(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,l.TBODY),e.insertionMode=k.IN_TABLE_BODY,Qr(e,t)}function hm(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function fm(e,t){ju(t)?e._appendElement(t,P.HTML):Xn(e,t),t.ackSelfClosing=!0}function pm(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,P.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function kn(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{dm(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{rt(e,t);break}case l.COL:{lm(e,t);break}case l.FORM:{pm(e,t);break}case l.TABLE:{hm(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{cm(e,t);break}case l.INPUT:{fm(e,t);break}case l.CAPTION:{om(e,t);break}case l.COLGROUP:{um(e,t);break}default:Xn(e,t)}}function Kn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{Qt(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Xn(e,t)}}function Xn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,qr(e,t),e.fosterParentingEnabled=n}function Qu(e,t){e.pendingCharacterTokens.push(t)}function Ku(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Zn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Xn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Xu=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function mm(e,t){const n=t.tagID;Xu.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,kn(e,t)):Be(e,t)}function gm(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===l.TABLE&&Kn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Wr(e,t)}}function ga(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.COL:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{rt(e,t);break}default:Gr(e,t)}}function bm(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case l.TEMPLATE:{Qt(e,t);break}case l.COL:break;default:Gr(e,t)}}function Gr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}function Qr(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,l.TR),e.insertionMode=k.IN_ROW,Kr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,kn(e,t));break}default:kn(e,t)}}function ba(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,Kn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Kn(e,t)}}function Kr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,Qr(e,t));break}default:kn(e,t)}}function Zu(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ba(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ba(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Kn(e,t)}}function Em(e,t){const n=t.tagID;Xu.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),Kr(e,t)):Be(e,t)}function _m(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Zu(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:Wr(e,t)}}function Ju(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{rt(e,t);break}}}function el(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{Qt(e,t);break}}}function Tm(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ju(e,t)}function km(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):el(e,t)}function xm(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{rt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,kn(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,ga(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,Qr(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,Kr(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,Be(e,t)}}function ym(e,t){t.tagID===l.TEMPLATE&&Qt(e,t)}function tl(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):pa(e,t)}function wm(e,t){t.tagID===l.HTML?Be(e,t):Xr(e,t)}function nl(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Xr(e,t)}function Xr(e,t){e.insertionMode=k.IN_BODY,qr(e,t)}function Am(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.FRAMESET:{e._insertElement(t,P.HTML);break}case l.FRAME:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{rt(e,t);break}}}function Cm(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}function Sm(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.NOFRAMES:{rt(e,t);break}}}function Im(e,t){t.tagID===l.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}function Nm(e,t){t.tagID===l.HTML?Be(e,t):Zr(e,t)}function Zr(e,t){e.insertionMode=k.IN_BODY,qr(e,t)}function vm(e,t){switch(t.tagID){case l.HTML:{Be(e,t);break}case l.NOFRAMES:{rt(e,t);break}}}function Lm(e,t){t.chars=ye,e._insertCharacters(t)}function Rm(e,t){e._insertCharacters(t),e.framesetOk=!1}function rl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==P.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Om(e,t){if(Gp(t))rl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===P.MATHML?Mu(t):r===P.SVG&&(Qp(t),Bu(t)),da(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Dm(e,t){if(t.tagID===l.P||t.tagID===l.BR){rl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===P.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}const Jr=il("end"),ht=il("start");function il(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function al(e){const t=ht(e),n=Jr(e);if(t&&n)return{start:t,end:n}}const Pm=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Mm=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),sl={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ol(e,t){const n=qm(e),r=bu("type",{handlers:{root:Bm,element:Fm,text:Hm,comment:ll,doctype:Um,raw:$m},unknown:Ym}),i={parser:n?new Uu(sl):Uu.getFragmentParser(void 0,sl),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),xn(i,ht());const a=n?i.parser.document:i.parser.getFragment(),s=Wf(a,{file:i.options.file});return i.stitches&&It(s,"comment",function(o,u,c){const h=o;if(h.value.stitch&&c&&u!==void 0){const d=c.children;return d[u]=h.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function ul(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Bm(e,t){ul(e.children,t)}function Fm(e,t){jm(e,t),ul(e.children,t),Vm(e,t)}function Hm(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ie.CHARACTER,chars:e.value,location:Jn(e)};xn(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Um(e,t){const n={type:ie.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Jn(e)};xn(t,ht(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function zm(e,t){t.stitches=!0;const n=Wm(e);if("children"in e&&"children"in n){const r=ol({type:"root",children:e.children},t.options);n.children=r.children}ll({type:"comment",value:{stitch:n}},t)}function ll(e,t){const n=e.value,r={type:ie.COMMENT,data:n,location:Jn(e)};xn(t,ht(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $m(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,cl(t,ht(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Pm,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Ym(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))zm(n,t);else{let r="";throw Mm.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function xn(e,t){cl(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ie.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function cl(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function jm(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ie.PLAINTEXT)return;xn(t,ht(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Wt.html;i===Wt.html&&n==="svg"&&(i=Wt.svg);const a=Zf({...e,children:[]},{space:i===Wt.svg?"svg":"html"}),s={type:ie.START_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Jn(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Vm(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&sp.includes(n)||t.parser.tokenizer.state===Ie.PLAINTEXT)return;xn(t,Jr(e));const r={type:ie.END_TAG,tagName:n,tagID:Tn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Jn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ie.RCDATA||t.parser.tokenizer.state===Ie.RAWTEXT||t.parser.tokenizer.state===Ie.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ie.DATA)}function qm(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Jn(e){const t=ht(e)||{line:void 0,column:void 0,offset:void 0},n=Jr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Wm(e){return"children"in e?Vt({...e,children:[]}):Vt(e)}function Ea(e){return function(t,n){return ol(t,{...e,file:n})}}const Kt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],er={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Kt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Kt],h2:[["className","sr-only"]],img:[...Kt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Kt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Kt],table:[...Kt],ul:[...Kt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ot={}.hasOwnProperty;function Gm(e,t){let n={type:"root",children:[]};const r={schema:t?{...er,...t}:er,stack:[]},i=dl(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function dl(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return Qm(e,n);case"doctype":return Km(e,n);case"element":return Xm(e,n);case"root":return Zm(e,n);case"text":return Jm(e,n)}}}function Qm(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return tr(a,t),a}}function Km(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return tr(n,t),n}}function Xm(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=hl(e,t.children),i=eg(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Ot.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u<o.length;)e.stack.includes(o[u])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return tr(s,t),s}function Zm(e,t){const r={type:"root",children:hl(e,t.children)};return tr(r,t),r}function Jm(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return tr(r,t),r}function hl(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=dl(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function eg(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Ot.call(r,n)?r[n]:void 0,s=r&&Ot.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},u={};let c;for(c in o)if(Ot.call(o,c)){const h=o[c];let d=fl(e,ml(a,c),c,h);d==null&&(d=fl(e,ml(s,c),c,h)),d!=null&&(u[c]=d)}if(i&&Ot.call(i,n)){const h=i[n];for(c in h)Ot.call(h,c)&&!Ot.call(u,c)&&(u[c]=h[c])}return u}function fl(e,t,n,r){return t?Array.isArray(r)?tg(e,t,n,r):pl(e,t,n,r):void 0}function tg(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=pl(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function pl(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&ng(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function ng(e,t,n){const r=e.schema.protocols&&Ot.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),u=i.indexOf("/");if(a<0||u>-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let c=-1;for(;++c<r.length;){const h=r[c];if(a===h.length&&i.slice(0,h.length)===h)return!0}return!1}function tr(e,t){const n=al(t);t.data&&(e.data=Vt(t.data)),n&&(e.position=n)}function ml(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function gl(e){return function(t){return Gm(t,e)}}function bl(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 ze=Dt(/[A-Za-z]/),Fe=Dt(/[\dA-Za-z]/),rg=Dt(/[#-'*+\--9=?A-Z^-~]/);function ei(e){return e!==null&&(e<32||e===127)}const _a=Dt(/\d/),ig=Dt(/[\dA-Fa-f]/),ag=Dt(/[!-/:-@[-`{-~]/);function X(e){return e!==null&&e<-2}function me(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const ti=Dt(/\p{P}|\p{S}/u),Xt=Dt(/\s/);function Dt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function sg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function og(e,t,n){const i=Br((n||{}).ignore||[]),a=ug(t);let s=-1;for(;++s<a.length;)Qi(e,"text",o);function o(c,h){let d=-1,f;for(;++d<h.length;){const p=h[d],m=f?f.children:void 0;if(i(p,m?m.indexOf(p):void 0,f))return;f=p}if(f)return u(c,h)}function u(c,h){const d=h[h.length-1],f=a[s][0],p=a[s][1];let m=0;const w=d.children.indexOf(c);let y=!1,I=[];f.lastIndex=0;let A=f.exec(c.value);for(;A;){const D=A.index,F={index:A.index,input:A.input,stack:[...h,c]};let S=p(...A,F);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?f.lastIndex=D+1:(m!==D&&I.push({type:"text",value:c.value.slice(m,D)}),Array.isArray(S)?I.push(...S):S&&I.push(S),m=D+A[0].length,y=!0),!f.global)break;A=f.exec(c.value)}return y?(m<c.value.length&&I.push({type:"text",value:c.value.slice(m)}),d.children.splice(w,1,...I)):I=[c],w+I.length}}function ug(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([lg(i[0]),cg(i[1])])}return t}function lg(e){return typeof e=="string"?new RegExp(sg(e),"g"):e}function cg(e){return typeof e=="function"?e:function(){return e}}const Ta="phrasing",ka=["autolink","link","image","label"];function dg(){return{transforms:[Eg],enter:{literalAutolink:fg,literalAutolinkEmail:xa,literalAutolinkHttp:xa,literalAutolinkWww:xa},exit:{literalAutolink:bg,literalAutolinkEmail:gg,literalAutolinkHttp:pg,literalAutolinkWww:mg}}}function hg(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:ka},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ta,notInConstruct:ka},{character:":",before:"[ps]",after:"\\/",inConstruct:Ta,notInConstruct:ka}]}}function fg(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xa(e){this.config.enter.autolinkProtocol.call(this,e)}function pg(e){this.config.exit.autolinkProtocol.call(this,e)}function mg(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function gg(e){this.config.exit.autolinkEmail.call(this,e)}function bg(e){this.exit(e)}function Eg(e){og(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_g],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Tg]],{ignore:["link","linkReference"]})}function _g(e,t,n,r,i){let a="";if(!El(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!kg(n)))return!1;const s=xg(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function Tg(e,t,n,r){return!El(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function kg(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xg(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=bl(e,"(");let a=bl(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function El(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xt(n)||ti(n))&&(!t||n!==47)}function it(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}_l.peek=Lg;function yg(){this.buffer()}function wg(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ag(){this.buffer()}function Cg(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Sg(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=it(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ig(e){this.exit(e)}function Ng(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.identifier=it(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vg(e){this.exit(e)}function Lg(){return"["}function _l(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function Rg(){return{enter:{gfmFootnoteCallString:yg,gfmFootnoteCall:wg,gfmFootnoteDefinitionLabelString:Ag,gfmFootnoteDefinition:Cg},exit:{gfmFootnoteCallString:Sg,gfmFootnoteCall:Ig,gfmFootnoteDefinitionLabelString:Ng,gfmFootnoteDefinition:vg}}}function Og(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:_l},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let u=o.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),h(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((t?`
3
+ `:" ")+a.indentLines(a.containerFlow(r,o.current()),t?Tl:Dg))),c(),u}}function Dg(e,t,n){return t===0?e:Tl(e,t,n)}function Tl(e,t,n){return(n?"":" ")+e}const Pg=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kl.peek=Ug;function Mg(){return{canContainEols:["delete"],enter:{strikethrough:Fg},exit:{strikethrough:Hg}}}function Bg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pg}],handlers:{delete:kl}}}function Fg(e){this.enter({type:"delete",children:[]},e)}function Hg(e){this.exit(e)}function kl(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Ug(){return"~"}function zg(e){return e.length}function $g(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||zg,a=[],s=[],o=[],u=[];let c=0,h=-1;for(;++h<e.length;){const T=[],w=[];let y=-1;for(e[h].length>c&&(c=e[h].length);++y<e[h].length;){const I=Yg(e[h][y]);if(n.alignDelimiters!==!1){const A=i(I);w[y]=A,(u[y]===void 0||A>u[y])&&(u[y]=A)}T.push(I)}s[h]=T,o[h]=w}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)a[d]=xl(r[d]);else{const T=xl(r);for(;++d<c;)a[d]=T}d=-1;const f=[],p=[];for(;++d<c;){const T=a[d];let w="",y="";T===99?(w=":",y=":"):T===108?w=":":T===114&&(y=":");let I=n.alignDelimiters===!1?1:Math.max(1,u[d]-w.length-y.length);const A=w+"-".repeat(I)+y;n.alignDelimiters!==!1&&(I=w.length+I+y.length,I>u[d]&&(u[d]=I),p[d]=I),f[d]=A}s.splice(1,0,f),o.splice(1,0,p),h=-1;const m=[];for(;++h<s.length;){const T=s[h],w=o[h];d=-1;const y=[];for(;++d<c;){const I=T[d]||"";let A="",D="";if(n.alignDelimiters!==!1){const F=u[d]-(w[d]||0),S=a[d];S===114?A=" ".repeat(F):S===99?F%2?(A=" ".repeat(F/2+.5),D=" ".repeat(F/2-.5)):(A=" ".repeat(F/2),D=A):D=" ".repeat(F)}n.delimiterStart!==!1&&!d&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||d)&&y.push(" "),n.alignDelimiters!==!1&&y.push(A),y.push(I),n.alignDelimiters!==!1&&y.push(D),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&y.push("|")}m.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
4
+ `)}function Yg(e){return e==null?"":String(e)}function xl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function jg(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Vg);return i(),s}function Vg(e,t,n){return">"+(n?"":" ")+e}function qg(e,t){return yl(e,t.inConstruct,!0)&&!yl(e,t.notInConstruct,!1)}function yl(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function wl(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
5
+ `&&qg(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
6
+ `}function Wg(e,t){const n=String(e);let r=n.indexOf(t),i=r,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>s&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function Gg(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Qg(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 Kg(e,t,n,r){const i=Qg(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Gg(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(a,Xg);return d(),f}const o=n.createTracker(r),u=i.repeat(Math.max(Wg(a,i)+1,3)),c=n.enter("codeFenced");let h=o.move(u);if(e.lang){const d=n.enter(`codeFencedLang${s}`);h+=o.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);h+=o.move(" "),h+=o.move(n.safe(e.meta,{before:h,after:`
7
7
  `,encode:["`"],...o.current()})),d()}return h+=o.move(`
8
8
  `),a&&(h+=o.move(a+`
9
- `)),h+=o.move(u),c(),h}function Gg(e,t,n){return(n?"":" ")+e}function ya(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 Qg(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
10
- `,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),s(),c}function Kg(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 tr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yn(e){if(e===null||me(e)||Kt(e))return 1;if(ti(e))return 2}function ni(e,t,n){const r=yn(e),i=yn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}wl.peek=Xg;function wl(e,t,n,r){const i=Kg(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const c=u.charCodeAt(0),h=ni(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(u=tr(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=ni(r.after.charCodeAt(0),d,i);f.inside&&(u=u.slice(0,-1)+tr(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},o+u+p}function Xg(e,t,n){return n.options.emphasis||"*"}const Zg={};function wa(e,t){const n=t||Zg,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Al(e,r,i)}function Al(e,t,n){if(Jg(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cl(e.children,t,n)}return Array.isArray(e)?Cl(e,t,n):""}function Cl(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Al(e[i],t,n);return r.join("")}function Jg(e){return!!(e&&typeof e=="object")}function eb(e,t){let n=!1;return It(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Gi}),!!((!e.depth||e.depth<3)&&wa(e)&&(t.options.setext||n))}function tb(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(eb(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
9
+ `)),h+=o.move(u),c(),h}function Xg(e,t,n){return(n?"":" ")+e}function ya(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 Zg(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":`
10
+ `,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),s(),c}function Jg(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 nr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yn(e){if(e===null||me(e)||Xt(e))return 1;if(ti(e))return 2}function ni(e,t,n){const r=yn(e),i=yn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Al.peek=eb;function Al(e,t,n,r){const i=Jg(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const c=u.charCodeAt(0),h=ni(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(u=nr(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=ni(r.after.charCodeAt(0),d,i);f.inside&&(u=u.slice(0,-1)+nr(d));const p=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},o+u+p}function eb(e,t,n){return n.options.emphasis||"*"}const tb={};function wa(e,t){const n=t||tb,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Cl(e,r,i)}function Cl(e,t,n){if(nb(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Sl(e.children,t,n)}return Array.isArray(e)?Sl(e,t,n):""}function Sl(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Cl(e[i],t,n);return r.join("")}function nb(e){return!!(e&&typeof e=="object")}function rb(e,t){let n=!1;return It(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Gi}),!!((!e.depth||e.depth<3)&&wa(e)&&(t.options.setext||n))}function ib(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(rb(e,n)){const h=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...a.current(),before:`
11
11
  `,after:`
12
12
  `});return d(),h(),f+`
13
13
  `+(i===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
14
14
  `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
15
- `,...a.current()});return/^[\t ]/.test(c)&&(c=tr(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),u(),o(),c}Sl.peek=nb;function Sl(e){return e.value||""}function nb(){return"<"}Il.peek=rb;function Il(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),c+=u.move(")"),s(),c}function rb(){return"!"}Nl.peek=ib;function Nl(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const c=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!c||c!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function ib(){return"!"}vl.peek=ab;function vl(e,t,n){let r=e.value||"",i="`",a=-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+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let u;if(s.atBreak)for(;u=o.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 ab(){return"`"}function Ll(e,t){const n=wa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rl.peek=sb;function Rl(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(Ll(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=h,d}o=n.enter("link"),u=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),u()),c+=s.move(")"),o(),c}function sb(e,t,n){return Ll(e,n)?"<":"["}Ol.peek=ob;function Ol(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!c||c!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function ob(){return"["}function Aa(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 ub(e){const t=Aa(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 lb(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 Dl(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 cb(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?lb(n):Aa(n);const o=e.ordered?s==="."?")":".":ub(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Dl(n)===s&&h){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),c}function db(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function hb(e,t,n,r){const i=db(n);let a=n.bulletCurrent||Aa(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),h);return u(),c;function h(d,f,p){return f?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function fb(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const pb=Br(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mb(e,t,n,r){return(e.children.some(function(s){return pb(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function gb(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Pl.peek=bb;function Pl(e,t,n,r){const i=gb(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const c=u.charCodeAt(0),h=ni(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(u=tr(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=ni(r.after.charCodeAt(0),d,i);f.inside&&(u=u.slice(0,-1)+tr(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},o+u+p}function bb(e,t,n){return n.options.strong||"*"}function Eb(e,t,n,r){return n.safe(e.value,r)}function _b(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 Tb(e,t,n){const r=(Dl(n)+(n.options.ruleSpaces?" ":"")).repeat(_b(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Ml={blockquote:zg,break:yl,code:Wg,definition:Qg,emphasis:wl,hardBreak:yl,heading:tb,html:Sl,image:Il,imageReference:Nl,inlineCode:vl,link:Rl,linkReference:Ol,list:cb,listItem:hb,paragraph:fb,root:mb,strong:Pl,text:Eb,thematicBreak:Tb},Bl=document.createElement("i");function Ca(e){const t="&"+e+";";Bl.innerHTML=t;const n=Bl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Fl(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const kb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xb(e){return e.replace(kb,yb)}function yb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Fl(n.slice(a?2:1),a?16:10)}return Ca(n)||e}function wb(){return{enter:{table:Ab,tableData:Hl,tableHeader:Hl,tableRow:Sb},exit:{codeText:Ib,table:Cb,tableData:Sa,tableHeader:Sa,tableRow:Sa}}}function Ab(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Cb(e){this.exit(e),this.data.inTable=void 0}function Sb(e){this.enter({type:"tableRow",children:[]},e)}function Sa(e){this.exit(e)}function Hl(e){this.enter({type:"tableCell",children:[]},e)}function Ib(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Nb));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Nb(e,t){return t==="|"?t:e}function vb(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
15
+ `,...a.current()});return/^[\t ]/.test(c)&&(c=nr(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),u(),o(),c}Il.peek=ab;function Il(e){return e.value||""}function ab(){return"<"}Nl.peek=sb;function Nl(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),c+=u.move(")"),s(),c}function sb(){return"!"}vl.peek=ob;function vl(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const c=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!c||c!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function ob(){return"!"}Ll.peek=ub;function Ll(e,t,n){let r=e.value||"",i="`",a=-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+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let u;if(s.atBreak)for(;u=o.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 ub(){return"`"}function Rl(e,t){const n=wa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ol.peek=lb;function Ol(e,t,n,r){const i=ya(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(Rl(e,n)){const h=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=h,d}o=n.enter("link"),u=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(u=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),c+=s.move(" "+i),c+=s.move(n.safe(e.title,{before:c,after:i,...s.current()})),c+=s.move(i),u()),c+=s.move(")"),o(),c}function lb(e,t,n){return Rl(e,n)?"<":"["}Dl.peek=cb;function Dl(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const c=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(c+"]["),s();const h=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=h,a(),i==="full"||!c||c!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function cb(){return"["}function Aa(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 db(e){const t=Aa(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 hb(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 Pl(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 fb(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?hb(n):Aa(n);const o=e.ordered?s==="."?")":".":db(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Pl(n)===s&&h){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=o),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),c}function pb(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function mb(e,t,n,r){const i=pb(n);let a=n.bulletCurrent||Aa(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),h);return u(),c;function h(d,f,p){return f?(p?"":" ".repeat(s))+d:(p?a:a+" ".repeat(s-a.length))+d}}function gb(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const bb=Br(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Eb(e,t,n,r){return(e.children.some(function(s){return bb(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function _b(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ml.peek=Tb;function Ml(e,t,n,r){const i=_b(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const c=u.charCodeAt(0),h=ni(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(u=nr(c)+u.slice(1));const d=u.charCodeAt(u.length-1),f=ni(r.after.charCodeAt(0),d,i);f.inside&&(u=u.slice(0,-1)+nr(d));const p=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:h.outside},o+u+p}function Tb(e,t,n){return n.options.strong||"*"}function kb(e,t,n,r){return n.safe(e.value,r)}function xb(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 yb(e,t,n){const r=(Pl(n)+(n.options.ruleSpaces?" ":"")).repeat(xb(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Bl={blockquote:jg,break:wl,code:Kg,definition:Zg,emphasis:Al,hardBreak:wl,heading:ib,html:Il,image:Nl,imageReference:vl,inlineCode:Ll,link:Ol,linkReference:Dl,list:fb,listItem:mb,paragraph:gb,root:Eb,strong:Ml,text:kb,thematicBreak:yb},Fl=document.createElement("i");function Ca(e){const t="&"+e+";";Fl.innerHTML=t;const n=Fl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Hl(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const wb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ab(e){return e.replace(wb,Cb)}function Cb(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return Hl(n.slice(a?2:1),a?16:10)}return Ca(n)||e}function Sb(){return{enter:{table:Ib,tableData:Ul,tableHeader:Ul,tableRow:vb},exit:{codeText:Lb,table:Nb,tableData:Sa,tableHeader:Sa,tableRow:Sa}}}function Ib(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Nb(e){this.exit(e),this.data.inTable=void 0}function vb(e){this.enter({type:"tableRow",children:[]},e)}function Sa(e){this.exit(e)}function Ul(e){this.enter({type:"tableCell",children:[]},e)}function Lb(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Rb));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Rb(e,t){return t==="|"?t:e}function Ob(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
16
16
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:u,tableRow:o}};function s(p,m,T,w){return c(h(p,T,w),p.align)}function o(p,m,T,w){const y=d(p,T,w),I=c([y]);return I.slice(0,I.indexOf(`
17
- `))}function u(p,m,T,w){const y=T.enter("tableCell"),I=T.enter("phrasing"),A=T.containerPhrasing(p,{...w,before:a,after:a});return I(),y(),A}function c(p,m){return Hg(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(p,m,T){const w=p.children;let y=-1;const I=[],A=m.enter("table");for(;++y<w.length;)I[y]=d(w[y],m,T);return A(),I}function d(p,m,T){const w=p.children;let y=-1;const I=[],A=m.enter("tableRow");for(;++y<w.length;)I[y]=u(w[y],p,m,T);return A(),I}function f(p,m,T){let w=Ml.inlineCode(p,m,T);return T.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function Lb(){return{exit:{taskListCheckValueChecked:Ul,taskListCheckValueUnchecked:Ul,paragraph:Ob}}}function Rb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Db}}}function Ul(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Ob(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Db(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let u=Ml.listItem(e,t,n,{...r,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+s}}function Pb(){return[ug(),Ng(),Og(),wb(),Lb()]}function Mb(e){return{extensions:[lg(),vg(e),Dg(),vb(e),Rb()]}}function Ke(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function tt(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const zl={}.hasOwnProperty;function $l(e){const t={};let n=-1;for(;++n<e.length;)Bb(t,e[n]);return t}function Bb(e,t){let n;for(n in t){const i=(zl.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){zl.call(i,s)||(i[s]=[]);const o=a[s];Fb(i[s],Array.isArray(o)?o:o?[o]:[])}}}function Fb(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}const Hb={tokenize:Vb,partial:!0},Yl={tokenize:qb,partial:!0},jl={tokenize:Wb,partial:!0},Vl={tokenize:Gb,partial:!0},Ub={tokenize:Qb,partial:!0},ql={name:"wwwAutolink",tokenize:Yb,previous:Gl},Wl={name:"protocolAutolink",tokenize:jb,previous:Ql},Tt={name:"emailAutolink",tokenize:$b,previous:Kl},ft={};function zb(){return{text:ft}}let Xt=48;for(;Xt<123;)ft[Xt]=Tt,Xt++,Xt===58?Xt=65:Xt===91&&(Xt=97);ft[43]=Tt,ft[45]=Tt,ft[46]=Tt,ft[95]=Tt,ft[72]=[Tt,Wl],ft[104]=[Tt,Wl],ft[87]=[Tt,ql],ft[119]=[Tt,ql];function $b(e,t,n){const r=this;let i,a;return s;function s(d){return!Ia(d)||!Kl.call(r,r.previous)||Na(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Ia(d)?(e.consume(d),o):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(Ub,h,c)(d):d===45||d===95||Fe(d)?(a=!0,e.consume(d),u):h(d)}function c(d){return e.consume(d),i=!0,u}function h(d){return a&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Yb(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Gl.call(r,r.previous)||Na(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Hb,e.attempt(Yl,e.attempt(jl,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function jb(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&Ql.call(r,r.previous)&&!Na(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(ze(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),u}return n(d)}function u(d){return d===47?(e.consume(d),a?c:(a=!0,u)):n(d)}function c(d){return d===null||ei(d)||me(d)||Kt(d)||ti(d)?n(d):e.attempt(Yl,e.attempt(jl,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Vb(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function qb(e,t,n){let r,i,a;return s;function s(c){return c===46||c===95?e.check(Vl,u,o)(c):c===null||me(c)||Kt(c)||c!==45&&ti(c)?u(c):(a=!0,e.consume(c),s)}function o(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function u(c){return i||r||!a?n(c):t(c)}}function Wb(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Vl,t,a)(s):s===null||me(s)||Kt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Gb(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||me(o)||Kt(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||me(o)||Kt(o)?t(o):r(o)}function a(o){return ze(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):ze(o)?(e.consume(o),s):n(o)}}function Qb(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Fe(a)?n(a):t(a)}}function Gl(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||me(e)}function Ql(e){return!ze(e)}function Kl(e){return!(e===47||Ia(e))}function Ia(e){return e===43||e===45||e===46||e===95||Fe(e)}function Na(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function wn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Fe(e.charCodeAt(n+1))&&Fe(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ri(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const va={name:"attention",resolveAll:Kb,tokenize:Xb};function Kb(e,t){let n=-1,r,i,a,s,o,u,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;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 d={...e[r][1].end},f={...e[n][1].start};Xl(d,-u),Xl(f,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=tt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=tt(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=tt(c,ri(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=tt(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=tt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Ke(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Xb(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yn(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const c=e.exit("attentionSequence"),h=yn(u),d=!h||h===2&&i||n.includes(u),f=!i||i===2&&h||n.includes(r);return c._open=!!(a===42?d:d&&(i||!f)),c._close=!!(a===42?f:f&&(h||!d)),t(u)}}function Xl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zb={name:"autolink",tokenize:Jb};function Jb(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return ze(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||Fe(p)?(r=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Fe(p))&&r++<32?(e.consume(p),o):(r=0,c(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ei(p)?n(p):(e.consume(p),u)}function c(p){return p===64?(e.consume(p),h):eg(p)?(e.consume(p),c):n(p)}function h(p){return Fe(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Fe(p))&&r++<63){const m=p===45?f:d;return e.consume(p),m}return n(p)}}function ue(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return ae(u)?(e.enter(n),o(u)):t(u)}function o(u){return ae(u)&&a++<i?(e.consume(u),o):(e.exit(n),t(u))}}const nr={partial:!0,tokenize:e2};function e2(e,t,n){return r;function r(a){return ae(a)?ue(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||Q(a)?t(a):n(a)}}const Zl={continuation:{tokenize:n2},exit:r2,name:"blockQuote",tokenize:t2};function t2(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function n2(e,t,n){const r=this;return i;function i(s){return ae(s)?ue(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Zl,t,n)(s)}}function r2(e){e.exit("blockQuote")}const Jl={name:"characterEscape",tokenize:i2};function i2(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return ng(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ec={name:"characterReference",tokenize:a2};function a2(e,t,n){const r=this;let i=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=Fe,h(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=tg,h):(e.enter("characterReferenceValue"),a=7,s=_a,h(d))}function h(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===Fe&&!Ca(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),h):n(d)}}const tc={partial:!0,tokenize:o2},nc={concrete:!0,name:"codeFenced",tokenize:s2};function s2(e,t,n){const r=this,i={partial:!0,tokenize:H};let a=0,s=0,o;return u;function u(S){return c(S)}function c(S){const Y=r.events[r.events.length-1];return a=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(S)}function h(S){return S===o?(s++,e.consume(S),h):s<3?n(S):(e.exit("codeFencedFenceSequence"),ae(S)?ue(e,d,"whitespace")(S):d(S))}function d(S){return S===null||Q(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(tc,T,P)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||Q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):ae(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ue(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),f)}function p(S){return S===null||Q(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||Q(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===o?n(S):(e.consume(S),m)}function T(S){return e.attempt(i,P,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return a>0&&ae(S)?ue(e,I,"linePrefix",a+1)(S):I(S)}function I(S){return S===null||Q(S)?e.check(tc,T,P)(S):(e.enter("codeFlowValue"),A(S))}function A(S){return S===null||Q(S)?(e.exit("codeFlowValue"),I(S)):(e.consume(S),A)}function P(S){return e.exit("codeFenced"),t(S)}function H(S,Y,L){let O=0;return C;function C(G){return S.enter("lineEnding"),S.consume(G),S.exit("lineEnding"),B}function B(G){return S.enter("codeFencedFence"),ae(G)?ue(S,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):R(G)}function R(G){return G===o?(S.enter("codeFencedFenceSequence"),j(G)):L(G)}function j(G){return G===o?(O++,S.consume(G),j):O>=s?(S.exit("codeFencedFenceSequence"),ae(G)?ue(S,X,"whitespace")(G):X(G)):L(G)}function X(G){return G===null||Q(G)?(S.exit("codeFencedFence"),Y(G)):L(G)}}}function o2(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const La={name:"codeIndented",tokenize:l2},u2={partial:!0,tokenize:c2};function l2(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),ue(e,a,"linePrefix",4+1)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?u(c):Q(c)?e.attempt(u2,s,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||Q(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function c2(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ue(e,a,"linePrefix",4+1)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Q(s)?i(s):n(s)}}const d2={name:"codeText",previous:f2,resolve:h2,tokenize:p2};function h2(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 f2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function p2(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(a=e.enter("codeTextSequence"),i=0,h(d)):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Q(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function h(d){return d===96?(e.consume(d),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class m2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&rr(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),rr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),rr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);rr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);rr(this.left,n.reverse())}}}function rr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function rc(e){const t={};let n=-1,r,i,a,s,o,u,c;const h=new m2(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,g2(h,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},o=h.slice(i,n),o.unshift(r),h.splice(i,n-i+1,o))}}return Ke(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function g2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],c={};let h,d,f=-1,p=n,m=0,T=0;const w=[T];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(T=f+1,w.push(T),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):w.pop(),f=w.length;f--;){const y=o.slice(w[f],w[f+1]),I=a.pop();u.push([I,I+y.length-1]),e.splice(I,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[m+u[f][0]]=m+u[f][1],m+=u[f][1]-u[f][0]-1;return c}const b2={resolve:_2,tokenize:T2},E2={partial:!0,tokenize:k2};function _2(e){return rc(e),e}function T2(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):Q(o)?e.check(E2,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function k2(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ue(e,a,"linePrefix")}function a(s){if(s===null||Q(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function ic(e,t,n,r,i,a,s,o,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||ei(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||Q(y)?n(y):(e.consume(y),y===92?m:p)}function m(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function T(y){return!h&&(y===null||y===41||me(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):h<c&&y===40?(e.consume(y),h++,T):y===41?(e.consume(y),h--,T):y===null||y===32||y===40||ei(y)?n(y):(e.consume(y),y===92?w:T)}function w(y){return y===40||y===41||y===92?(e.consume(y),T):T(y)}}function ac(e,t,n,r,i,a){const s=this;let o=0,u;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),h}function h(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):Q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Q(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),u||(u=!ae(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function sc(e,t,n,r,i,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,u):n(f)}function u(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===s?(e.exit(a),u(s)):f===null?n(f):Q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ue(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===s||f===null||Q(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:h)}function d(f){return f===s||f===92?(e.consume(f),h):h(f)}}function ir(e,t){let n;return r;function r(i){return Q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?ue(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const x2={name:"definition",tokenize:w2},y2={partial:!0,tokenize:A2};function w2(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return ac.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=it(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return me(p)?ir(e,c)(p):c(p)}function c(p){return ic(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(y2,d,d)(p)}function d(p){return ae(p)?ue(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Q(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function A2(e,t,n){return r;function r(o){return me(o)?ir(e,i)(o):n(o)}function i(o){return sc(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ae(o)?ue(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Q(o)?t(o):n(o)}}const C2={name:"hardBreakEscape",tokenize:S2};function S2(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Q(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const I2={name:"headingAtx",resolve:N2,tokenize:v2};function N2(e,t){let n=e.length-2,r=3,i,a;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},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ke(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function v2(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||me(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||Q(h)?(e.exit("atxHeading"),t(h)):ae(h)?ue(e,o,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),o(h))}function c(h){return h===null||h===35||me(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),c)}}const L2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],oc=["pre","script","style","textarea"],R2={concrete:!0,name:"htmlFlow",resolveTo:P2,tokenize:M2},O2={partial:!0,tokenize:F2},D2={partial:!0,tokenize:B2};function P2(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 M2(e,t,n){const r=this;let i,a,s,o,u;return c;function c(x){return h(x)}function h(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),d}function d(x){return x===33?(e.consume(x),f):x===47?(e.consume(x),a=!0,T):x===63?(e.consume(x),i=3,r.interrupt?t:_):ze(x)?(e.consume(x),s=String.fromCharCode(x),w):n(x)}function f(x){return x===45?(e.consume(x),i=2,p):x===91?(e.consume(x),i=5,o=0,m):ze(x)?(e.consume(x),i=4,r.interrupt?t:_):n(x)}function p(x){return x===45?(e.consume(x),r.interrupt?t:_):n(x)}function m(x){const Re="CDATA[";return x===Re.charCodeAt(o++)?(e.consume(x),o===Re.length?r.interrupt?t:R:m):n(x)}function T(x){return ze(x)?(e.consume(x),s=String.fromCharCode(x),w):n(x)}function w(x){if(x===null||x===47||x===62||me(x)){const Re=x===47,Te=s.toLowerCase();return!Re&&!a&&oc.includes(Te)?(i=1,r.interrupt?t(x):R(x)):L2.includes(s.toLowerCase())?(i=6,Re?(e.consume(x),y):r.interrupt?t(x):R(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):a?I(x):A(x))}return x===45||Fe(x)?(e.consume(x),s+=String.fromCharCode(x),w):n(x)}function y(x){return x===62?(e.consume(x),r.interrupt?t:R):n(x)}function I(x){return ae(x)?(e.consume(x),I):C(x)}function A(x){return x===47?(e.consume(x),C):x===58||x===95||ze(x)?(e.consume(x),P):ae(x)?(e.consume(x),A):C(x)}function P(x){return x===45||x===46||x===58||x===95||Fe(x)?(e.consume(x),P):H(x)}function H(x){return x===61?(e.consume(x),S):ae(x)?(e.consume(x),H):A(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),u=x,Y):ae(x)?(e.consume(x),S):L(x)}function Y(x){return x===u?(e.consume(x),u=null,O):x===null||Q(x)?n(x):(e.consume(x),Y)}function L(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||me(x)?H(x):(e.consume(x),L)}function O(x){return x===47||x===62||ae(x)?A(x):n(x)}function C(x){return x===62?(e.consume(x),B):n(x)}function B(x){return x===null||Q(x)?R(x):ae(x)?(e.consume(x),B):n(x)}function R(x){return x===45&&i===2?(e.consume(x),te):x===60&&i===1?(e.consume(x),se):x===62&&i===4?(e.consume(x),ie):x===63&&i===3?(e.consume(x),_):x===93&&i===5?(e.consume(x),Pe):Q(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(O2,Z,j)(x)):x===null||Q(x)?(e.exit("htmlFlowData"),j(x)):(e.consume(x),R)}function j(x){return e.check(D2,X,Z)(x)}function X(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),G}function G(x){return x===null||Q(x)?j(x):(e.enter("htmlFlowData"),R(x))}function te(x){return x===45?(e.consume(x),_):R(x)}function se(x){return x===47?(e.consume(x),s="",Ne):R(x)}function Ne(x){if(x===62){const Re=s.toLowerCase();return oc.includes(Re)?(e.consume(x),ie):R(x)}return ze(x)&&s.length<8?(e.consume(x),s+=String.fromCharCode(x),Ne):R(x)}function Pe(x){return x===93?(e.consume(x),_):R(x)}function _(x){return x===62?(e.consume(x),ie):x===45&&i===2?(e.consume(x),_):R(x)}function ie(x){return x===null||Q(x)?(e.exit("htmlFlowData"),Z(x)):(e.consume(x),ie)}function Z(x){return e.exit("htmlFlow"),t(x)}}function B2(e,t,n){const r=this;return i;function i(s){return Q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function F2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nr,t,n)}}const H2={name:"htmlText",tokenize:U2};function U2(e,t,n){const r=this;let i,a,s;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),u}function u(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),H):_===63?(e.consume(_),A):ze(_)?(e.consume(_),L):n(_)}function c(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),a=0,m):ze(_)?(e.consume(_),I):n(_)}function h(_){return _===45?(e.consume(_),p):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),f):Q(_)?(s=d,se(_)):(e.consume(_),d)}function f(_){return _===45?(e.consume(_),p):d(_)}function p(_){return _===62?te(_):_===45?f(_):d(_)}function m(_){const ie="CDATA[";return _===ie.charCodeAt(a++)?(e.consume(_),a===ie.length?T:m):n(_)}function T(_){return _===null?n(_):_===93?(e.consume(_),w):Q(_)?(s=T,se(_)):(e.consume(_),T)}function w(_){return _===93?(e.consume(_),y):T(_)}function y(_){return _===62?te(_):_===93?(e.consume(_),y):T(_)}function I(_){return _===null||_===62?te(_):Q(_)?(s=I,se(_)):(e.consume(_),I)}function A(_){return _===null?n(_):_===63?(e.consume(_),P):Q(_)?(s=A,se(_)):(e.consume(_),A)}function P(_){return _===62?te(_):A(_)}function H(_){return ze(_)?(e.consume(_),S):n(_)}function S(_){return _===45||Fe(_)?(e.consume(_),S):Y(_)}function Y(_){return Q(_)?(s=Y,se(_)):ae(_)?(e.consume(_),Y):te(_)}function L(_){return _===45||Fe(_)?(e.consume(_),L):_===47||_===62||me(_)?O(_):n(_)}function O(_){return _===47?(e.consume(_),te):_===58||_===95||ze(_)?(e.consume(_),C):Q(_)?(s=O,se(_)):ae(_)?(e.consume(_),O):te(_)}function C(_){return _===45||_===46||_===58||_===95||Fe(_)?(e.consume(_),C):B(_)}function B(_){return _===61?(e.consume(_),R):Q(_)?(s=B,se(_)):ae(_)?(e.consume(_),B):O(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,j):Q(_)?(s=R,se(_)):ae(_)?(e.consume(_),R):(e.consume(_),X)}function j(_){return _===i?(e.consume(_),i=void 0,G):_===null?n(_):Q(_)?(s=j,se(_)):(e.consume(_),j)}function X(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||me(_)?O(_):(e.consume(_),X)}function G(_){return _===47||_===62||me(_)?O(_):n(_)}function te(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function se(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Ne}function Ne(_){return ae(_)?ue(e,Pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Pe(_)}function Pe(_){return e.enter("htmlTextData"),s(_)}}const Ra={name:"labelEnd",resolveAll:j2,resolveTo:V2,tokenize:q2},z2={tokenize:W2},$2={tokenize:G2},Y2={tokenize:Q2};function j2(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e}function V2(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=tt(o,e.slice(a+1,a+r+3)),o=tt(o,[["enter",h,t]]),o=tt(o,ri(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=tt(o,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),o=tt(o,e.slice(s+1)),o=tt(o,[["exit",u,t]]),Ke(e,a,e.length,o),e}function q2(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(f){return a?a._inactive?d(f):(s=r.parser.defined.includes(it(r.sliceSerialize({start:a.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(z2,h,s?h:d)(f):f===91?e.attempt($2,h,s?c:d)(f):s?h(f):d(f)}function c(f){return e.attempt(Y2,h,d)(f)}function h(f){return t(f)}function d(f){return a._balanced=!0,n(f)}}function W2(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return me(d)?ir(e,a)(d):a(d)}function a(d){return d===41?h(d):ic(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return me(d)?ir(e,u)(d):h(d)}function o(d){return n(d)}function u(d){return d===34||d===39||d===40?sc(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return me(d)?ir(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function G2(e,t,n){const r=this;return i;function i(o){return ac.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(it(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Q2(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const K2={name:"labelStartImage",resolveAll:Ra.resolveAll,tokenize:X2};function X2(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Z2={name:"labelStartLink",resolveAll:Ra.resolveAll,tokenize:J2};function J2(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Oa={name:"lineEnding",tokenize:eE};function eE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ue(e,t,"linePrefix")}}const ii={name:"thematicBreak",tokenize:tE};function tE(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||Q(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),ae(c)?ue(e,o,"whitespace")(c):o(c))}}const qe={continuation:{tokenize:aE},exit:oE,name:"list",tokenize:iE},nE={partial:!0,tokenize:uE},rE={partial:!0,tokenize:sE};function iE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_a(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ii,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return _a(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(nr,r.interrupt?n:h,e.attempt(nE,f,d))}function h(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function d(p){return ae(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function aE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(nr,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ue(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ae(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ue(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function sE(e,t,n){const r=this;return ue(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function oE(e){e.exit(this.containerState.type)}function uE(e,t,n){const r=this;return ue(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const s=r.events[r.events.length-1];return!ae(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const uc={name:"setextUnderline",resolveTo:lE,tokenize:cE};function lE(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function cE(e,t,n){const r=this;let i;return a;function a(c){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),ae(c)?ue(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Q(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const dE={tokenize:_E,partial:!0};function hE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gE,continuation:{tokenize:bE},exit:EE}},text:{91:{name:"gfmFootnoteCall",tokenize:mE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fE,resolveTo:pE}}}}function fE(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const c=it(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function pE(e,t){let n=e.length;for(;n--&&!(e[n][1].type==="labelImage"&&e[n][0]==="enter"););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function mE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!s||d===null||d===91||me(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(it(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return me(d)||(s=!0),a++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function gE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(m)}function h(m){if(s>999||m===93&&!o||m===null||m===91||me(m))return n(m);if(m===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=it(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return me(m)||(o=!0),s++,e.consume(m),m===92?d:h}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,h):h(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),ue(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function bE(e,t,n){return e.check(nr,t,e.attempt(dE,t,n))}function EE(e){e.exit("gfmFootnoteDefinition")}function _E(e,t,n){const r=this;return ue(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function TE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},f=[["enter",h,o],["enter",s[c][1],o],["exit",s[c][1],o],["enter",d,o]],p=o.parser.constructs.insideSpan.null;p&&Ke(f,f.length,0,ri(p,s.slice(c+1,u),o)),Ke(f,f.length,0,[["exit",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",h,o]]),Ke(s,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){const c=this.previous,h=this.events;let d=0;return f;function f(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const T=yn(c);if(m===126)return d>1?u(m):(s.consume(m),d++,p);if(d<2&&!n)return u(m);const w=s.exit("strikethroughSequenceTemporary"),y=yn(m);return w._open=!y||y===2&&!!T,w._close=!T||T===2&&!!y,o(m)}}}class kE{constructor(){this.map=[]}add(t,n,r){xE(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function xE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function yE(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function wE(){return{flow:{null:{name:"table",tokenize:AE,resolveAll:CE}}}}function AE(e,t,n){const r=this;let i=0,a=0,s;return o;function o(C){let B=r.events.length-1;for(;B>-1;){const X=r.events[B][1].type;if(X==="lineEnding"||X==="linePrefix")B--;else break}const R=B>-1?r.events[B][1].type:null,j=R==="tableHead"||R==="tableRow"?S:u;return j===S&&r.parser.lazy[r.now().line]?n(C):j(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),c(C)}function c(C){return C===124||(s=!0,a+=1),h(C)}function h(C){return C===null?n(C):Q(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):ae(C)?ue(e,h,"whitespace")(C):(a+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||me(C)?(e.exit("data"),h(C)):(e.consume(C),C===92?f:d)}function f(C){return C===92||C===124?(e.consume(C),d):d(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,ae(C)?ue(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?w(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),T):H(C)}function T(C){return ae(C)?ue(e,w,"whitespace")(C):w(C)}function w(C){return C===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(a+=1,y(C)):C===null||Q(C)?P(C):H(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),I(C)):H(C)}function I(C){return C===45?(e.consume(C),I):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(C))}function A(C){return ae(C)?ue(e,P,"whitespace")(C):P(C)}function P(C){return C===124?m(C):C===null||Q(C)?!s||i!==a?H(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):H(C)}function H(C){return n(C)}function S(C){return e.enter("tableRow"),Y(C)}function Y(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),Y):C===null||Q(C)?(e.exit("tableRow"),t(C)):ae(C)?ue(e,Y,"whitespace")(C):(e.enter("data"),L(C))}function L(C){return C===null||C===124||me(C)?(e.exit("data"),Y(C)):(e.consume(C),C===92?O:L)}function O(C){return C===92||C===124?(e.consume(C),L):L(C)}}function CE(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,c,h,d;const f=new kE;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(o=!1,u!==0&&(lc(f,t,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",h,t]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=ai(f,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=ai(f,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(o=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],d=ai(f,t,a,i,n,d)):s[1]!==0&&(d=ai(f,t,s,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&lc(f,t,u,c,h),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=yE(t.events,n))}return e}function ai(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},An(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=An(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=An(t.events,n[2]),h=An(t.events,n[3]),d={type:o,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,T=n[3]-n[2]-1;e.add(m,T,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},An(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function lc(e,t,n,r,i){const a=[],s=An(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function An(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const SE={name:"tasklistCheck",tokenize:NE};function IE(){return{text:{91:SE}}}function NE(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return me(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return Q(u)?t(u):ae(u)?e.check({tokenize:vE},t,n)(u):n(u)}}function vE(e,t,n){return ue(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function LE(e){return $l([zb(),hE(),TE(e),wE(),IE()])}const RE={};function OE(e){const t=this,n=e||RE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(LE(n)),a.push(Pb()),s.push(Mb(n))}var DE=Object.defineProperty,PE=Object.defineProperties,ME=Object.getOwnPropertyDescriptors,cc=Object.getOwnPropertySymbols,BE=Object.prototype.hasOwnProperty,FE=Object.prototype.propertyIsEnumerable,dc=(e,t,n)=>t in e?DE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hc=(e,t)=>{for(var n in t||(t={}))BE.call(t,n)&&dc(e,n,t[n]);if(cc)for(var n of cc(t))FE.call(t,n)&&dc(e,n,t[n]);return e},fc=(e,t)=>PE(e,ME(t)),HE=/(\*\*)([^*]*\*?)$/,UE=/(__)([^_]*?)$/,zE=/(\*\*\*)([^*]*?)$/,$E=/(\*)([^*]*?)$/,YE=/(_)([^_]*?)$/,jE=/(`)([^`]*?)$/,VE=/(~~)([^~]*?)$/,Zt=/^[\s_~*`]*$/,pc=/^[\s]*[-*+][\s]+$/,qE=/[\p{L}\p{N}_]/u,WE=/^```[^`\n]*```?$/,GE=/^\*{4,}$/,QE=/(__)([^_]+)_$/,KE=/(~~)([^~]+)~$/,mc=/~~/g,Pt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:qE.test(e)},ar=(e,t)=>{let n=!1;for(let r=0;r<t;r+=1)e[r]==="`"&&e[r+1]==="`"&&e[r+2]==="`"&&(n=!n,r+=2);return n},XE=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},gc=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},si=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},ZE=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
18
- `)return!1}return!1},bc=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?ZE(e,t):!1;if(e[n]===`
19
- `)return!1}return!1},JE=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let r=n+1<e.length?e[n+1]:"";return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="/"}if(e[n]===`
17
+ `))}function u(p,m,T,w){const y=T.enter("tableCell"),I=T.enter("phrasing"),A=T.containerPhrasing(p,{...w,before:a,after:a});return I(),y(),A}function c(p,m){return $g(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function h(p,m,T){const w=p.children;let y=-1;const I=[],A=m.enter("table");for(;++y<w.length;)I[y]=d(w[y],m,T);return A(),I}function d(p,m,T){const w=p.children;let y=-1;const I=[],A=m.enter("tableRow");for(;++y<w.length;)I[y]=u(w[y],p,m,T);return A(),I}function f(p,m,T){let w=Bl.inlineCode(p,m,T);return T.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function Db(){return{exit:{taskListCheckValueChecked:zl,taskListCheckValueUnchecked:zl,paragraph:Mb}}}function Pb(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Bb}}}function zl(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Mb(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Bb(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let u=Bl.listItem(e,t,n,{...r,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(h){return h+s}}function Fb(){return[dg(),Rg(),Mg(),Sb(),Db()]}function Hb(e){return{extensions:[hg(),Og(e),Bg(),Ob(e),Pb()]}}function Ke(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function tt(e,t){return e.length>0?(Ke(e,e.length,0,t),e):t}const $l={}.hasOwnProperty;function Yl(e){const t={};let n=-1;for(;++n<e.length;)Ub(t,e[n]);return t}function Ub(e,t){let n;for(n in t){const i=($l.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){$l.call(i,s)||(i[s]=[]);const o=a[s];zb(i[s],Array.isArray(o)?o:o?[o]:[])}}}function zb(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ke(e,0,0,r)}const $b={tokenize:Gb,partial:!0},jl={tokenize:Qb,partial:!0},Vl={tokenize:Kb,partial:!0},ql={tokenize:Xb,partial:!0},Yb={tokenize:Zb,partial:!0},Wl={name:"wwwAutolink",tokenize:qb,previous:Ql},Gl={name:"protocolAutolink",tokenize:Wb,previous:Kl},Tt={name:"emailAutolink",tokenize:Vb,previous:Xl},ft={};function jb(){return{text:ft}}let Zt=48;for(;Zt<123;)ft[Zt]=Tt,Zt++,Zt===58?Zt=65:Zt===91&&(Zt=97);ft[43]=Tt,ft[45]=Tt,ft[46]=Tt,ft[95]=Tt,ft[72]=[Tt,Gl],ft[104]=[Tt,Gl],ft[87]=[Tt,Wl],ft[119]=[Tt,Wl];function Vb(e,t,n){const r=this;let i,a;return s;function s(d){return!Ia(d)||!Xl.call(r,r.previous)||Na(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Ia(d)?(e.consume(d),o):d===64?(e.consume(d),u):n(d)}function u(d){return d===46?e.check(Yb,h,c)(d):d===45||d===95||Fe(d)?(a=!0,e.consume(d),u):h(d)}function c(d){return e.consume(d),i=!0,u}function h(d){return a&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function qb(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Ql.call(r,r.previous)||Na(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($b,e.attempt(jl,e.attempt(Vl,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Wb(e,t,n){const r=this;let i="",a=!1;return s;function s(d){return(d===72||d===104)&&Kl.call(r,r.previous)&&!Na(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(ze(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),u}return n(d)}function u(d){return d===47?(e.consume(d),a?c:(a=!0,u)):n(d)}function c(d){return d===null||ei(d)||me(d)||Xt(d)||ti(d)?n(d):e.attempt(jl,e.attempt(Vl,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Gb(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function Qb(e,t,n){let r,i,a;return s;function s(c){return c===46||c===95?e.check(ql,u,o)(c):c===null||me(c)||Xt(c)||c!==45&&ti(c)?u(c):(a=!0,e.consume(c),s)}function o(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),s}function u(c){return i||r||!a?n(c):t(c)}}function Kb(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(ql,t,a)(s):s===null||me(s)||Xt(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function Xb(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||me(o)||Xt(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||me(o)||Xt(o)?t(o):r(o)}function a(o){return ze(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):ze(o)?(e.consume(o),s):n(o)}}function Zb(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return Fe(a)?n(a):t(a)}}function Ql(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||me(e)}function Kl(e){return!ze(e)}function Xl(e){return!(e===47||Ia(e))}function Ia(e){return e===43||e===45||e===46||e===95||Fe(e)}function Na(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function wn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&Fe(e.charCodeAt(n+1))&&Fe(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ri(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const va={name:"attention",resolveAll:Jb,tokenize:e2};function Jb(e,t){let n=-1,r,i,a,s,o,u,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;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 d={...e[r][1].end},f={...e[n][1].start};Zl(d,-u),Zl(f,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=tt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=tt(c,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),c=tt(c,ri(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=tt(c,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=tt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Ke(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function e2(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yn(r);let a;return s;function s(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const c=e.exit("attentionSequence"),h=yn(u),d=!h||h===2&&i||n.includes(u),f=!i||i===2&&h||n.includes(r);return c._open=!!(a===42?d:d&&(i||!f)),c._close=!!(a===42?f:f&&(h||!d)),t(u)}}function Zl(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const t2={name:"autolink",tokenize:n2};function n2(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return ze(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||Fe(p)?(r=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||Fe(p))&&r++<32?(e.consume(p),o):(r=0,c(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ei(p)?n(p):(e.consume(p),u)}function c(p){return p===64?(e.consume(p),h):rg(p)?(e.consume(p),c):n(p)}function h(p){return Fe(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||Fe(p))&&r++<63){const m=p===45?f:d;return e.consume(p),m}return n(p)}}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return ae(u)?(e.enter(n),o(u)):t(u)}function o(u){return ae(u)&&a++<i?(e.consume(u),o):(e.exit(n),t(u))}}const rr={partial:!0,tokenize:r2};function r2(e,t,n){return r;function r(a){return ae(a)?oe(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||X(a)?t(a):n(a)}}const Jl={continuation:{tokenize:a2},exit:s2,name:"blockQuote",tokenize:i2};function i2(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return ae(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function a2(e,t,n){const r=this;return i;function i(s){return ae(s)?oe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Jl,t,n)(s)}}function s2(e){e.exit("blockQuote")}const ec={name:"characterEscape",tokenize:o2};function o2(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return ag(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const tc={name:"characterReference",tokenize:u2};function u2(e,t,n){const r=this;let i=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),a=31,s=Fe,h(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=ig,h):(e.enter("characterReferenceValue"),a=7,s=_a,h(d))}function h(d){if(d===59&&i){const f=e.exit("characterReferenceValue");return s===Fe&&!Ca(r.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&i++<a?(e.consume(d),h):n(d)}}const nc={partial:!0,tokenize:c2},rc={concrete:!0,name:"codeFenced",tokenize:l2};function l2(e,t,n){const r=this,i={partial:!0,tokenize:F};let a=0,s=0,o;return u;function u(S){return c(S)}function c(S){const Y=r.events[r.events.length-1];return a=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(S)}function h(S){return S===o?(s++,e.consume(S),h):s<3?n(S):(e.exit("codeFencedFenceSequence"),ae(S)?oe(e,d,"whitespace")(S):d(S))}function d(S){return S===null||X(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(nc,T,D)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(S))}function f(S){return S===null||X(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):ae(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,p,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),f)}function p(S){return S===null||X(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||X(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===o?n(S):(e.consume(S),m)}function T(S){return e.attempt(i,D,w)(S)}function w(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return a>0&&ae(S)?oe(e,I,"linePrefix",a+1)(S):I(S)}function I(S){return S===null||X(S)?e.check(nc,T,D)(S):(e.enter("codeFlowValue"),A(S))}function A(S){return S===null||X(S)?(e.exit("codeFlowValue"),I(S)):(e.consume(S),A)}function D(S){return e.exit("codeFenced"),t(S)}function F(S,Y,L){let O=0;return C;function C(Q){return S.enter("lineEnding"),S.consume(Q),S.exit("lineEnding"),$}function $(Q){return S.enter("codeFencedFence"),ae(Q)?oe(S,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):M(Q)}function M(Q){return Q===o?(S.enter("codeFencedFenceSequence"),U(Q)):L(Q)}function U(Q){return Q===o?(O++,S.consume(Q),U):O>=s?(S.exit("codeFencedFenceSequence"),ae(Q)?oe(S,K,"whitespace")(Q):K(Q)):L(Q)}function K(Q){return Q===null||X(Q)?(S.exit("codeFencedFence"),Y(Q)):L(Q)}}}function c2(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const La={name:"codeIndented",tokenize:h2},d2={partial:!0,tokenize:f2};function h2(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),oe(e,a,"linePrefix",4+1)(c)}function a(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?u(c):X(c)?e.attempt(d2,s,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||X(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),t(c)}}function f2(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):X(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):oe(e,a,"linePrefix",4+1)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):X(s)?i(s):n(s)}}const p2={name:"codeText",previous:g2,resolve:m2,tokenize:b2};function m2(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 g2(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function b2(e,t,n){let r=0,i,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),u(d))}function u(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),u):d===96?(a=e.enter("codeTextSequence"),i=0,h(d)):X(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||X(d)?(e.exit("codeTextData"),u(d)):(e.consume(d),c)}function h(d){return d===96?(e.consume(d),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",c(d))}}class E2{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ir(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ir(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ir(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ir(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ir(this.left,n.reverse())}}}function ir(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ic(e){const t={};let n=-1,r,i,a,s,o,u,c;const h=new E2(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_2(h,n)),n=t[n],c=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=h.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},o=h.slice(i,n),o.unshift(r),h.splice(i,n-i+1,o))}}return Ke(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function _2(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,u=[],c={};let h,d,f=-1,p=n,m=0,T=0;const w=[T];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),d&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(h),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(T=f+1,w.push(T),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):w.pop(),f=w.length;f--;){const y=o.slice(w[f],w[f+1]),I=a.pop();u.push([I,I+y.length-1]),e.splice(I,2,y)}for(u.reverse(),f=-1;++f<u.length;)c[m+u[f][0]]=m+u[f][1],m+=u[f][1]-u[f][0]-1;return c}const T2={resolve:x2,tokenize:y2},k2={partial:!0,tokenize:w2};function x2(e){return ic(e),e}function y2(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):X(o)?e.check(k2,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function w2(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),oe(e,a,"linePrefix")}function a(s){if(s===null||X(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function ac(e,t,n,r,i,a,s,o,u){const c=u||Number.POSITIVE_INFINITY;let h=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||ei(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),T(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||X(y)?n(y):(e.consume(y),y===92?m:p)}function m(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function T(y){return!h&&(y===null||y===41||me(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):h<c&&y===40?(e.consume(y),h++,T):y===41?(e.consume(y),h--,T):y===null||y===32||y===40||ei(y)?n(y):(e.consume(y),y===92?w:T)}function w(y){return y===40||y===41||y===92?(e.consume(y),T):T(y)}}function sc(e,t,n,r,i,a){const s=this;let o=0,u;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(a),h}function h(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):X(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||X(p)||o++>999?(e.exit("chunkString"),h(p)):(e.consume(p),u||(u=!ae(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function oc(e,t,n,r,i,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),s=f===40?41:f,u):n(f)}function u(f){return f===s?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(a),c(f))}function c(f){return f===s?(e.exit(a),u(s)):f===null?n(f):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),oe(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===s||f===null||X(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?d:h)}function d(f){return f===s||f===92?(e.consume(f),h):h(f)}}function ar(e,t){let n;return r;function r(i){return X(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ae(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const A2={name:"definition",tokenize:S2},C2={partial:!0,tokenize:I2};function S2(e,t,n){const r=this;let i;return a;function a(p){return e.enter("definition"),s(p)}function s(p){return sc.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=it(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return me(p)?ar(e,c)(p):c(p)}function c(p){return ac(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(C2,d,d)(p)}function d(p){return ae(p)?oe(e,f,"whitespace")(p):f(p)}function f(p){return p===null||X(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function I2(e,t,n){return r;function r(o){return me(o)?ar(e,i)(o):n(o)}function i(o){return oc(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ae(o)?oe(e,s,"whitespace")(o):s(o)}function s(o){return o===null||X(o)?t(o):n(o)}}const N2={name:"hardBreakEscape",tokenize:v2};function v2(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return X(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const L2={name:"headingAtx",resolve:R2,tokenize:O2};function R2(e,t){let n=e.length-2,r=3,i,a;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},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ke(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function O2(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),s(h)}function s(h){return h===35&&r++<6?(e.consume(h),s):h===null||me(h)?(e.exit("atxHeadingSequence"),o(h)):n(h)}function o(h){return h===35?(e.enter("atxHeadingSequence"),u(h)):h===null||X(h)?(e.exit("atxHeading"),t(h)):ae(h)?oe(e,o,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function u(h){return h===35?(e.consume(h),u):(e.exit("atxHeadingSequence"),o(h))}function c(h){return h===null||h===35||me(h)?(e.exit("atxHeadingText"),o(h)):(e.consume(h),c)}}const D2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uc=["pre","script","style","textarea"],P2={concrete:!0,name:"htmlFlow",resolveTo:F2,tokenize:H2},M2={partial:!0,tokenize:z2},B2={partial:!0,tokenize:U2};function F2(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 H2(e,t,n){const r=this;let i,a,s,o,u;return c;function c(x){return h(x)}function h(x){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(x),d}function d(x){return x===33?(e.consume(x),f):x===47?(e.consume(x),a=!0,T):x===63?(e.consume(x),i=3,r.interrupt?t:_):ze(x)?(e.consume(x),s=String.fromCharCode(x),w):n(x)}function f(x){return x===45?(e.consume(x),i=2,p):x===91?(e.consume(x),i=5,o=0,m):ze(x)?(e.consume(x),i=4,r.interrupt?t:_):n(x)}function p(x){return x===45?(e.consume(x),r.interrupt?t:_):n(x)}function m(x){const we="CDATA[";return x===we.charCodeAt(o++)?(e.consume(x),o===we.length?r.interrupt?t:M:m):n(x)}function T(x){return ze(x)?(e.consume(x),s=String.fromCharCode(x),w):n(x)}function w(x){if(x===null||x===47||x===62||me(x)){const we=x===47,ke=s.toLowerCase();return!we&&!a&&uc.includes(ke)?(i=1,r.interrupt?t(x):M(x)):D2.includes(s.toLowerCase())?(i=6,we?(e.consume(x),y):r.interrupt?t(x):M(x)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(x):a?I(x):A(x))}return x===45||Fe(x)?(e.consume(x),s+=String.fromCharCode(x),w):n(x)}function y(x){return x===62?(e.consume(x),r.interrupt?t:M):n(x)}function I(x){return ae(x)?(e.consume(x),I):C(x)}function A(x){return x===47?(e.consume(x),C):x===58||x===95||ze(x)?(e.consume(x),D):ae(x)?(e.consume(x),A):C(x)}function D(x){return x===45||x===46||x===58||x===95||Fe(x)?(e.consume(x),D):F(x)}function F(x){return x===61?(e.consume(x),S):ae(x)?(e.consume(x),F):A(x)}function S(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),u=x,Y):ae(x)?(e.consume(x),S):L(x)}function Y(x){return x===u?(e.consume(x),u=null,O):x===null||X(x)?n(x):(e.consume(x),Y)}function L(x){return x===null||x===34||x===39||x===47||x===60||x===61||x===62||x===96||me(x)?F(x):(e.consume(x),L)}function O(x){return x===47||x===62||ae(x)?A(x):n(x)}function C(x){return x===62?(e.consume(x),$):n(x)}function $(x){return x===null||X(x)?M(x):ae(x)?(e.consume(x),$):n(x)}function M(x){return x===45&&i===2?(e.consume(x),J):x===60&&i===1?(e.consume(x),re):x===62&&i===4?(e.consume(x),Oe):x===63&&i===3?(e.consume(x),_):x===93&&i===5?(e.consume(x),Te):X(x)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(M2,W,U)(x)):x===null||X(x)?(e.exit("htmlFlowData"),U(x)):(e.consume(x),M)}function U(x){return e.check(B2,K,W)(x)}function K(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Q}function Q(x){return x===null||X(x)?U(x):(e.enter("htmlFlowData"),M(x))}function J(x){return x===45?(e.consume(x),_):M(x)}function re(x){return x===47?(e.consume(x),s="",he):M(x)}function he(x){if(x===62){const we=s.toLowerCase();return uc.includes(we)?(e.consume(x),Oe):M(x)}return ze(x)&&s.length<8?(e.consume(x),s+=String.fromCharCode(x),he):M(x)}function Te(x){return x===93?(e.consume(x),_):M(x)}function _(x){return x===62?(e.consume(x),Oe):x===45&&i===2?(e.consume(x),_):M(x)}function Oe(x){return x===null||X(x)?(e.exit("htmlFlowData"),W(x)):(e.consume(x),Oe)}function W(x){return e.exit("htmlFlow"),t(x)}}function U2(e,t,n){const r=this;return i;function i(s){return X(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function z2(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(rr,t,n)}}const $2={name:"htmlText",tokenize:Y2};function Y2(e,t,n){const r=this;let i,a,s;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),u}function u(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),F):_===63?(e.consume(_),A):ze(_)?(e.consume(_),L):n(_)}function c(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),a=0,m):ze(_)?(e.consume(_),I):n(_)}function h(_){return _===45?(e.consume(_),p):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),f):X(_)?(s=d,re(_)):(e.consume(_),d)}function f(_){return _===45?(e.consume(_),p):d(_)}function p(_){return _===62?J(_):_===45?f(_):d(_)}function m(_){const Oe="CDATA[";return _===Oe.charCodeAt(a++)?(e.consume(_),a===Oe.length?T:m):n(_)}function T(_){return _===null?n(_):_===93?(e.consume(_),w):X(_)?(s=T,re(_)):(e.consume(_),T)}function w(_){return _===93?(e.consume(_),y):T(_)}function y(_){return _===62?J(_):_===93?(e.consume(_),y):T(_)}function I(_){return _===null||_===62?J(_):X(_)?(s=I,re(_)):(e.consume(_),I)}function A(_){return _===null?n(_):_===63?(e.consume(_),D):X(_)?(s=A,re(_)):(e.consume(_),A)}function D(_){return _===62?J(_):A(_)}function F(_){return ze(_)?(e.consume(_),S):n(_)}function S(_){return _===45||Fe(_)?(e.consume(_),S):Y(_)}function Y(_){return X(_)?(s=Y,re(_)):ae(_)?(e.consume(_),Y):J(_)}function L(_){return _===45||Fe(_)?(e.consume(_),L):_===47||_===62||me(_)?O(_):n(_)}function O(_){return _===47?(e.consume(_),J):_===58||_===95||ze(_)?(e.consume(_),C):X(_)?(s=O,re(_)):ae(_)?(e.consume(_),O):J(_)}function C(_){return _===45||_===46||_===58||_===95||Fe(_)?(e.consume(_),C):$(_)}function $(_){return _===61?(e.consume(_),M):X(_)?(s=$,re(_)):ae(_)?(e.consume(_),$):O(_)}function M(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,U):X(_)?(s=M,re(_)):ae(_)?(e.consume(_),M):(e.consume(_),K)}function U(_){return _===i?(e.consume(_),i=void 0,Q):_===null?n(_):X(_)?(s=U,re(_)):(e.consume(_),U)}function K(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||me(_)?O(_):(e.consume(_),K)}function Q(_){return _===47||_===62||me(_)?O(_):n(_)}function J(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function re(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),he}function he(_){return ae(_)?oe(e,Te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Te(_)}function Te(_){return e.enter("htmlTextData"),s(_)}}const Ra={name:"labelEnd",resolveAll:W2,resolveTo:G2,tokenize:Q2},j2={tokenize:K2},V2={tokenize:X2},q2={tokenize:Z2};function W2(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ke(e,0,e.length,n),e}function G2(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},h={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=tt(o,e.slice(a+1,a+r+3)),o=tt(o,[["enter",h,t]]),o=tt(o,ri(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=tt(o,[["exit",h,t],e[s-2],e[s-1],["exit",c,t]]),o=tt(o,e.slice(s+1)),o=tt(o,[["exit",u,t]]),Ke(e,a,e.length,o),e}function Q2(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(f){return a?a._inactive?d(f):(s=r.parser.defined.includes(it(r.sliceSerialize({start:a.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(j2,h,s?h:d)(f):f===91?e.attempt(V2,h,s?c:d)(f):s?h(f):d(f)}function c(f){return e.attempt(q2,h,d)(f)}function h(f){return t(f)}function d(f){return a._balanced=!0,n(f)}}function K2(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return me(d)?ar(e,a)(d):a(d)}function a(d){return d===41?h(d):ac(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return me(d)?ar(e,u)(d):h(d)}function o(d){return n(d)}function u(d){return d===34||d===39||d===40?oc(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):h(d)}function c(d){return me(d)?ar(e,h)(d):h(d)}function h(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function X2(e,t,n){const r=this;return i;function i(o){return sc.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(it(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Z2(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const J2={name:"labelStartImage",resolveAll:Ra.resolveAll,tokenize:eE};function eE(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const tE={name:"labelStartLink",resolveAll:Ra.resolveAll,tokenize:nE};function nE(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Oa={name:"lineEnding",tokenize:rE};function rE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const ii={name:"thematicBreak",tokenize:iE};function iE(e,t,n){let r=0,i;return a;function a(c){return e.enter("thematicBreak"),s(c)}function s(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||X(c))?(e.exit("thematicBreak"),t(c)):n(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),ae(c)?oe(e,o,"whitespace")(c):o(c))}}const We={continuation:{tokenize:uE},exit:cE,name:"list",tokenize:oE},aE={partial:!0,tokenize:dE},sE={partial:!0,tokenize:lE};function oE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_a(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(ii,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return _a(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(rr,r.interrupt?n:h,e.attempt(aE,f,d))}function h(p){return r.containerState.initialBlankLine=!0,a++,f(p)}function d(p){return ae(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function uE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(rr,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!ae(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(We,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function lE(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function cE(e){e.exit(this.containerState.type)}function dE(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const s=r.events[r.events.length-1];return!ae(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const lc={name:"setextUnderline",resolveTo:hE,tokenize:fE};function hE(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function fE(e,t,n){const r=this;let i;return a;function a(c){let h=r.events.length,d;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){d=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),ae(c)?oe(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||X(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const pE={tokenize:xE,partial:!0};function mE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_E,continuation:{tokenize:TE},exit:kE}},text:{91:{name:"gfmFootnoteCall",tokenize:EE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gE,resolveTo:bE}}}}function gE(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!s||!s._balanced)return n(u);const c=it(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function bE(e,t){let n=e.length;for(;n--&&!(e[n][1].type==="labelImage"&&e[n][0]==="enter"););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function EE(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),u}function u(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!s||d===null||d===91||me(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(it(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return me(d)||(s=!0),a++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function _E(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return u;function u(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(m)}function h(m){if(s>999||m===93&&!o||m===null||m===91||me(m))return n(m);if(m===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return a=it(r.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return me(m)||(o=!0),s++,e.consume(m),m===92?d:h}function d(m){return m===91||m===92||m===93?(e.consume(m),s++,h):h(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(a)||i.push(a),oe(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function TE(e,t,n){return e.check(rr,t,e.attempt(pE,t,n))}function kE(e){e.exit("gfmFootnoteDefinition")}function xE(e,t,n){const r=this;return oe(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function yE(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let c=u;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[u][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[u][1].end)},d={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[u][1].start)},f=[["enter",h,o],["enter",s[c][1],o],["exit",s[c][1],o],["enter",d,o]],p=o.parser.constructs.insideSpan.null;p&&Ke(f,f.length,0,ri(p,s.slice(c+1,u),o)),Ke(f,f.length,0,[["exit",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["exit",h,o]]),Ke(s,c-1,u-c+3,f),u=c+f.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function a(s,o,u){const c=this.previous,h=this.events;let d=0;return f;function f(m){return c===126&&h[h.length-1][1].type!=="characterEscape"?u(m):(s.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const T=yn(c);if(m===126)return d>1?u(m):(s.consume(m),d++,p);if(d<2&&!n)return u(m);const w=s.exit("strikethroughSequenceTemporary"),y=yn(m);return w._open=!y||y===2&&!!T,w._close=!T||T===2&&!!y,o(m)}}}class wE{constructor(){this.map=[]}add(t,n,r){AE(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function AE(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function CE(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function SE(){return{flow:{null:{name:"table",tokenize:IE,resolveAll:NE}}}}function IE(e,t,n){const r=this;let i=0,a=0,s;return o;function o(C){let $=r.events.length-1;for(;$>-1;){const K=r.events[$][1].type;if(K==="lineEnding"||K==="linePrefix")$--;else break}const M=$>-1?r.events[$][1].type:null,U=M==="tableHead"||M==="tableRow"?S:u;return U===S&&r.parser.lazy[r.now().line]?n(C):U(C)}function u(C){return e.enter("tableHead"),e.enter("tableRow"),c(C)}function c(C){return C===124||(s=!0,a+=1),h(C)}function h(C){return C===null?n(C):X(C)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),p):n(C):ae(C)?oe(e,h,"whitespace")(C):(a+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,h):(e.enter("data"),d(C)))}function d(C){return C===null||C===124||me(C)?(e.exit("data"),h(C)):(e.consume(C),C===92?f:d)}function f(C){return C===92||C===124?(e.consume(C),d):d(C)}function p(C){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(C):(e.enter("tableDelimiterRow"),s=!1,ae(C)?oe(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?w(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),T):F(C)}function T(C){return ae(C)?oe(e,w,"whitespace")(C):w(C)}function w(C){return C===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),y):C===45?(a+=1,y(C)):C===null||X(C)?D(C):F(C)}function y(C){return C===45?(e.enter("tableDelimiterFiller"),I(C)):F(C)}function I(C){return C===45?(e.consume(C),I):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(C))}function A(C){return ae(C)?oe(e,D,"whitespace")(C):D(C)}function D(C){return C===124?m(C):C===null||X(C)?!s||i!==a?F(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):F(C)}function F(C){return n(C)}function S(C){return e.enter("tableRow"),Y(C)}function Y(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),Y):C===null||X(C)?(e.exit("tableRow"),t(C)):ae(C)?oe(e,Y,"whitespace")(C):(e.enter("data"),L(C))}function L(C){return C===null||C===124||me(C)?(e.exit("data"),Y(C)):(e.consume(C),C===92?O:L)}function O(C){return C===92||C===124?(e.consume(C),L):L(C)}}function NE(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,c,h,d;const f=new wE;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(o=!1,u!==0&&(cc(f,t,u,c,h),h=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,h={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[["enter",h,t]])),i=m.type==="tableDelimiterRow"?2:h?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],d=ai(f,t,a,i,void 0,d),a=[0,0,0,0]),s[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],d=ai(f,t,a,i,void 0,d)),a=s,s=[a[1],n,0,0])):m.type==="tableHead"?(o=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,a[1]!==0?(s[0]=s[1],d=ai(f,t,a,i,n,d)):s[1]!==0&&(d=ai(f,t,s,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&cc(f,t,u,c,h),f.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=CE(t.events,n))}return e}function ai(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},An(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const u=An(t.events,n[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const c=An(t.events,n[2]),h=An(t.events,n[3]),d={type:o,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const f=t.events[n[2]],p=t.events[n[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,T=n[3]-n[2]-1;e.add(m,T,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},An(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function cc(e,t,n,r,i){const a=[],s=An(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function An(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const vE={name:"tasklistCheck",tokenize:RE};function LE(){return{text:{91:vE}}}function RE(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return me(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return X(u)?t(u):ae(u)?e.check({tokenize:OE},t,n)(u):n(u)}}function OE(e,t,n){return oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function DE(e){return Yl([jb(),mE(),yE(e),SE(),LE()])}const PE={};function ME(e){const t=this,n=e||PE,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(DE(n)),a.push(Fb()),s.push(Hb(n))}var BE=Object.defineProperty,FE=Object.defineProperties,HE=Object.getOwnPropertyDescriptors,dc=Object.getOwnPropertySymbols,UE=Object.prototype.hasOwnProperty,zE=Object.prototype.propertyIsEnumerable,hc=(e,t,n)=>t in e?BE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fc=(e,t)=>{for(var n in t||(t={}))UE.call(t,n)&&hc(e,n,t[n]);if(dc)for(var n of dc(t))zE.call(t,n)&&hc(e,n,t[n]);return e},pc=(e,t)=>FE(e,HE(t)),$E=/(\*\*)([^*]*\*?)$/,YE=/(__)([^_]*?)$/,jE=/(\*\*\*)([^*]*?)$/,VE=/(\*)([^*]*?)$/,qE=/(_)([^_]*?)$/,WE=/(`)([^`]*?)$/,GE=/(~~)([^~]*?)$/,Jt=/^[\s_~*`]*$/,mc=/^[\s]*[-*+][\s]+$/,QE=/[\p{L}\p{N}_]/u,KE=/^```[^`\n]*```?$/,XE=/^\*{4,}$/,ZE=/(__)([^_]+)_$/,JE=/(~~)([^~]+)~$/,gc=/~~/g,Pt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:QE.test(e)},sr=(e,t)=>{let n=!1;for(let r=0;r<t;r+=1)e[r]==="`"&&e[r+1]==="`"&&e[r+2]==="`"&&(n=!n,r+=2);return n},e3=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},bc=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},si=(e,t)=>{let n=!1,r=!1;for(let i=0;i<e.length&&i<t;i+=1){if(e[i]==="\\"&&e[i+1]==="$"){i+=1;continue}e[i]==="$"&&(e[i+1]==="$"?(r=!r,i+=1,n=!1):r||(n=!n))}return n||r},t3=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
18
+ `)return!1}return!1},Ec=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?t3(e,t):!1;if(e[n]===`
19
+ `)return!1}return!1},n3=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let r=n+1<e.length?e[n+1]:"";return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="/"}if(e[n]===`
20
20
  `)return!1}return!1},Da=(e,t,n)=>{let r=0;for(let u=t-1;u>=0;u-=1)if(e[u]===`
21
21
  `){r=u+1;break}let i=e.length;for(let u=t;u<e.length;u+=1)if(e[u]===`
22
- `){i=u;break}let a=e.substring(r,i),s=0,o=!1;for(let u of a)if(u===n)s+=1;else if(u!==" "&&u!==" "){o=!0;break}return s>=3&&!o},e3=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,t3=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(e3,(t,n,r,i)=>ar(e,i)?t:`${n}\\>${r}`),n3=(e,t,n,r)=>n==="\\"||e.includes("$")&&si(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&r&&Pt(n)&&Pt(r)||(!n||n===" "||n===" "||n===`
22
+ `){i=u;break}let a=e.substring(r,i),s=0,o=!1;for(let u of a)if(u===n)s+=1;else if(u!==" "&&u!==" "){o=!0;break}return s>=3&&!o},r3=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,i3=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(r3,(t,n,r,i)=>sr(e,i)?t:`${n}\\>${r}`),a3=(e,t,n,r)=>n==="\\"||e.includes("$")&&si(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(n==="*"||n&&r&&Pt(n)&&Pt(r)||(!n||n===" "||n===" "||n===`
23
23
  `)&&(!r||r===" "||r===" "||r===`
24
- `)),Ec=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="*")continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";n3(e,i,a,s)||(t+=1)}return t},r3=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&si(e,t)||bc(e,t)||JE(e,t)||n==="_"||r==="_"||n&&r&&Pt(n)&&Pt(r)),i3=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="_")continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";r3(e,i,a,s)||(t+=1)}return t},a3=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},Pa=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="*"&&r+1<e.length&&e[r+1]==="*"&&(t+=1,r+=1)}return t},_c=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="_"&&r+1<e.length&&e[r+1]==="_"&&(t+=1,r+=1)}return t},s3=(e,t,n)=>{if(!t||Zt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
25
- `),i=r===-1?0:r+1,a=e.substring(i,n);return pc.test(a)&&t.includes(`
26
- `)?!0:Da(e,n,"*")},o3=e=>{let t=e.match(HE);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return ar(e,r)||s3(e,n,r)?e:Pa(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},u3=(e,t,n)=>{if(!t||Zt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
27
- `),i=r===-1?0:r+1,a=e.substring(i,n);return pc.test(a)&&t.includes(`
28
- `)?!0:Da(e,n,"_")},l3=e=>{let t=e.match(UE);if(!t){let i=e.match(QE);if(i){let a=e.lastIndexOf(i[1]);if(!ar(e,a)&&_c(e)%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return ar(e,r)||u3(e,n,r)?e:_c(e)%2===1?`${e}__`:e},c3=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!si(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if((!r||r===" "||r===" "||r===`
24
+ `)),_c=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="*")continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";a3(e,i,a,s)||(t+=1)}return t},s3=(e,t,n,r)=>!!(n==="\\"||e.includes("$")&&si(e,t)||Ec(e,t)||n3(e,t)||n==="_"||r==="_"||n&&r&&Pt(n)&&Pt(r)),o3=e=>{let t=0,n=!1,r=e.length;for(let i=0;i<r;i+=1){if(e[i]==="`"&&i+2<r&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n||e[i]!=="_")continue;let a=i>0?e[i-1]:"",s=i<r-1?e[i+1]:"";s3(e,i,a,s)||(t+=1)}return t},u3=e=>{let t=0,n=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,i+=2;continue}r||(e[i]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},Pa=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="*"&&r+1<e.length&&e[r+1]==="*"&&(t+=1,r+=1)}return t},Tc=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="_"&&r+1<e.length&&e[r+1]==="_"&&(t+=1,r+=1)}return t},l3=(e,t,n)=>{if(!t||Jt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
25
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return mc.test(a)&&t.includes(`
26
+ `)?!0:Da(e,n,"*")},c3=e=>{let t=e.match($E);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return sr(e,r)||l3(e,n,r)?e:Pa(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},d3=(e,t,n)=>{if(!t||Jt.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
27
+ `),i=r===-1?0:r+1,a=e.substring(i,n);return mc.test(a)&&t.includes(`
28
+ `)?!0:Da(e,n,"_")},h3=e=>{let t=e.match(YE);if(!t){let i=e.match(ZE);if(i){let a=e.lastIndexOf(i[1]);if(!sr(e,a)&&Tc(e)%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return sr(e,r)||d3(e,n,r)?e:Tc(e)%2===1?`${e}__`:e},f3=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!si(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if((!r||r===" "||r===" "||r===`
29
29
  `)&&(!i||i===" "||i===" "||i===`
30
- `)||r&&i&&Pt(r)&&Pt(i))continue;return n}}return-1},d3=e=>{if(!e.match($E))return e;let t=c3(e);if(t===-1)return e;let n=e.substring(t+1);return!n||Zt.test(n)?e:Ec(e)%2===1?`${e}*`:e},Tc=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!si(e,n)&&!bc(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(r&&i&&Pt(r)&&Pt(i))continue;return n}}return-1},h3=e=>{let t=e.length;for(;t>0&&e[t-1]===`
31
- `;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},f3=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Pa(t)%2!==1)return null;let n=t.indexOf("**"),r=Tc(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},p3=e=>{if(!e.match(YE))return e;let t=Tc(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||Zt.test(n))return e;if(i3(e)%2===1){let r=f3(e);return r!==null?r:h3(e)}return e},m3=e=>{let t=Pa(e),n=Ec(e);return t%2===0&&n%2===0},g3=(e,t,n)=>!t||Zt.test(t)||ar(e,n)?!0:Da(e,n,"*"),b3=e=>{if(GE.test(e))return e;let t=e.match(zE);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return g3(e,n,r)?e:a3(e)%2===1?m3(e)?e:`${e}***`:e},sr=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},E3=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},_3=e=>{let t=0;for(let n=0;n<e.length;n+=1)e[n]==="`"&&!E3(e,n)&&(t+=1);return t},T3=/<[a-zA-Z/][^>]*$/,k3=e=>{let t=e.match(T3);return!t||t.index===void 0||sr(e,t.index)?e:e.substring(0,t.index).trimEnd()},x3=e=>!e.match(WE)||e.includes(`
32
- `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,y3=e=>(e.match(/```/g)||[]).length%2===1,w3=e=>{let t=x3(e);if(t!==null)return t;let n=e.match(jE);if(n&&!y3(e)){let r=n[2];if(!r||Zt.test(r))return e;if(_3(e)%2===1)return`${e}\``}return e},A3=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",C3=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!A3(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},S3=e=>{let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
30
+ `)||r&&i&&Pt(r)&&Pt(i))continue;return n}}return-1},p3=e=>{if(!e.match(VE))return e;let t=f3(e);if(t===-1)return e;let n=e.substring(t+1);return!n||Jt.test(n)?e:_c(e)%2===1?`${e}*`:e},kc=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!si(e,n)&&!Ec(e,n)){let r=n>0?e[n-1]:"",i=n<e.length-1?e[n+1]:"";if(r&&i&&Pt(r)&&Pt(i))continue;return n}}return-1},m3=e=>{let t=e.length;for(;t>0&&e[t-1]===`
31
+ `;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},g3=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(Pa(t)%2!==1)return null;let n=t.indexOf("**"),r=kc(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},b3=e=>{if(!e.match(qE))return e;let t=kc(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||Jt.test(n))return e;if(o3(e)%2===1){let r=g3(e);return r!==null?r:m3(e)}return e},E3=e=>{let t=Pa(e),n=_c(e);return t%2===0&&n%2===0},_3=(e,t,n)=>!t||Jt.test(t)||sr(e,n)?!0:Da(e,n,"*"),T3=e=>{if(XE.test(e))return e;let t=e.match(jE);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return _3(e,n,r)?e:u3(e)%2===1?E3(e)?e:`${e}***`:e},or=(e,t)=>{let n=!1,r=!1;for(let i=0;i<t;i+=1){if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}!r&&e[i]==="`"&&(n=!n)}return n||r},k3=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},x3=e=>{let t=0;for(let n=0;n<e.length;n+=1)e[n]==="`"&&!k3(e,n)&&(t+=1);return t},y3=/<[a-zA-Z/][^>]*$/,w3=e=>{let t=e.match(y3);return!t||t.index===void 0||or(e,t.index)?e:e.substring(0,t.index).trimEnd()},A3=e=>!e.match(KE)||e.includes(`
32
+ `)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,C3=e=>(e.match(/```/g)||[]).length%2===1,S3=e=>{let t=A3(e);if(t!==null)return t;let n=e.match(WE);if(n&&!C3(e)){let r=n[2];if(!r||Jt.test(r))return e;if(x3(e)%2===1)return`${e}\``}return e},I3=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",N3=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!I3(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},v3=e=>{let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
33
33
  `,t)!==-1&&!e.endsWith(`
34
34
  `)?`${e}
35
- $$`:`${e}$$`},I3=e=>C3(e)%2===0?e:S3(e),N3=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=XE(e,t);if(r===-1||sr(e,r))return null;let i=r>0&&e[r-1]==="!",a=i?r-1:r,s=e.substring(0,a);if(i)return s;let o=e.substring(r+1,t);return n==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},kc=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!sr(e,n)){if(n>0&&e[n-1]==="!")continue;let r=gc(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return t},v3=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=kc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(gc(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=kc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},xc=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!sr(e,n)){let r=N3(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!sr(e,r)){let i=v3(e,r,t);if(i!==null)return i}return e},L3=/^-{1,2}$/,R3=/^[\s]*-{1,2}[\s]+$/,O3=/^={1,2}$/,D3=/^[\s]*={1,2}[\s]+$/,P3=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
36
- `);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(L3.test(i)&&!n.match(R3)){let a=r.split(`
37
- `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(O3.test(i)&&!n.match(D3)){let a=r.split(`
38
- `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},M3=e=>{var t,n;let r=e.match(VE);if(r){let i=r[2];if(!i||Zt.test(i))return e;if(((t=e.match(mc))==null?void 0:t.length)%2===1)return`${e}~~`}else if(e.match(KE)&&((n=e.match(mc))==null?void 0:n.length)%2===1)return`${e}~`;return e},Ma=e=>e!==!1,Xe={COMPARISON_OPERATORS:-10,HTML_TAGS:-5,SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},B3=[{handler:{name:"comparisonOperators",handle:t3,priority:Xe.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:k3,priority:Xe.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:P3,priority:Xe.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:xc,priority:Xe.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:b3,priority:Xe.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:o3,priority:Xe.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:l3,priority:Xe.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:d3,priority:Xe.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:p3,priority:Xe.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:w3,priority:Xe.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:M3,priority:Xe.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:I3,priority:Xe.KATEX},optionKey:"katex"}],F3=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return B3.filter(({handler:r,optionKey:i})=>r.name==="links"?Ma(e?.links)||Ma(e?.images):Ma(e?.[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:fc(hc({},r),{handle:a=>xc(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},H3=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=F3(t),a=((n=t?.handlers)!=null?n:[]).map(o=>{var u;return{handler:fc(hc({},o),{priority:(u=o.priority)!=null?u:Xe.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((o,u)=>{var c,h;return((c=o.handler.priority)!=null?c:0)-((h=u.handler.priority)!=null?h:0)});for(let{handler:o,earlyReturn:u}of s)if(r=o.handle(r),u!=null&&u(r))return r;return r},U3=H3;function yc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function z3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yc(e))&&(r&&(r+=" "),r+=t);return r}const $3=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Y3=(e,t)=>({classGroupId:e,validator:t}),wc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),oi="-",Ac=[],j3="arbitrary..",V3=e=>{const t=W3(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return q3(s);const o=s.split(oi),u=o[0]===""&&o.length>1?1:0;return Cc(o,u,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const u=r[s],c=n[s];return u?c?$3(c,u):u:c||Ac}return n[s]||Ac}}},Cc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const c=Cc(e,t+1,a);if(c)return c}const s=n.validators;if(s===null)return;const o=t===0?e.join(oi):e.slice(t).join(oi),u=s.length;for(let c=0;c<u;c++){const h=s[c];if(h.validator(o))return h.classGroupId}},q3=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?j3+r:void 0})(),W3=e=>{const{theme:t,classGroups:n}=e;return G3(n,t)},G3=(e,t)=>{const n=wc();for(const r in e){const i=e[r];Ba(i,n,r,t)}return n},Ba=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];Q3(s,t,n,r)}},Q3=(e,t,n,r)=>{if(typeof e=="string"){K3(e,t,n);return}if(typeof e=="function"){X3(e,t,n,r);return}Z3(e,t,n,r)},K3=(e,t,n)=>{const r=e===""?t:Sc(t,e);r.classGroupId=n},X3=(e,t,n,r)=>{if(J3(e)){Ba(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Y3(n,e))},Z3=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[o,u]=i[s];Ba(u,Sc(t,o),n,r)}},Sc=(e,t)=>{let n=e;const r=t.split(oi),i=r.length;for(let a=0;a<i;a++){const s=r[a];let o=n.nextPart.get(s);o||(o=wc(),n.nextPart.set(s,o)),n=o}return n},J3=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,e_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},Fa="!",Ic=":",t_=[],Nc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),n_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,o=0,u=0,c;const h=i.length;for(let T=0;T<h;T++){const w=i[T];if(s===0&&o===0){if(w===Ic){a.push(i.slice(u,T)),u=T+1;continue}if(w==="/"){c=T;continue}}w==="["?s++:w==="]"?s--:w==="("?o++:w===")"&&o--}const d=a.length===0?i:i.slice(u);let f=d,p=!1;d.endsWith(Fa)?(f=d.slice(0,-1),p=!0):d.startsWith(Fa)&&(f=d.slice(1),p=!0);const m=c&&c>u?c-u:void 0;return Nc(a,p,f,m)};if(t){const i=t+Ic,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):Nc(t_,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},r_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],o=s[0]==="[",u=t.has(s);o||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},i_=e=>({cache:e_(e.cacheSize),parseClassName:n_(e),sortModifiers:r_(e),...V3(e)}),a_=/\s+/,s_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],o=e.trim().split(a_);let u="";for(let c=o.length-1;c>=0;c-=1){const h=o[c],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:T}=n(h);if(d){u=h+(u.length>0?" "+u:u);continue}let w=!!T,y=r(w?m.substring(0,T):m);if(!y){if(!w){u=h+(u.length>0?" "+u:u);continue}if(y=r(m),!y){u=h+(u.length>0?" "+u:u);continue}w=!1}const I=f.length===0?"":f.length===1?f[0]:a(f).join(":"),A=p?I+Fa:I,P=A+y;if(s.indexOf(P)>-1)continue;s.push(P);const H=i(y,w);for(let S=0;S<H.length;++S){const Y=H[S];s.push(A+Y)}u=h+(u.length>0?" "+u:u)}return u},o_=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=vc(n))&&(i&&(i+=" "),i+=r);return i},vc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vc(e[r]))&&(n&&(n+=" "),n+=t);return n},u_=(e,...t)=>{let n,r,i,a;const s=u=>{const c=t.reduce((h,d)=>d(h),e());return n=i_(c),r=n.cache.get,i=n.cache.set,a=o,o(u)},o=u=>{const c=r(u);if(c)return c;const h=s_(u,n);return i(u,h),h};return a=s,(...u)=>a(o_(...u))},l_=[],Le=e=>{const t=n=>n[e]||l_;return t.isThemeGetter=!0,t},Lc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,c_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,d_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,f_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,p_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>c_.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>!!e&&Number.isInteger(Number(e)),Ha=e=>e.endsWith("%")&&ne(e.slice(0,-1)),kt=e=>d_.test(e),Oc=()=>!0,g_=e=>h_.test(e)&&!f_.test(e),Ua=()=>!1,b_=e=>p_.test(e),E_=e=>m_.test(e),__=e=>!V(e)&&!q(e),T_=e=>Ft(e,Hc,Ua),V=e=>Lc.test(e),Jt=e=>Ft(e,Uc,g_),Dc=e=>Ft(e,I_,ne),k_=e=>Ft(e,$c,Oc),x_=e=>Ft(e,zc,Ua),Pc=e=>Ft(e,Bc,Ua),y_=e=>Ft(e,Fc,E_),ui=e=>Ft(e,Yc,b_),q=e=>Rc.test(e),or=e=>en(e,Uc),w_=e=>en(e,zc),Mc=e=>en(e,Bc),A_=e=>en(e,Hc),C_=e=>en(e,Fc),li=e=>en(e,Yc,!0),S_=e=>en(e,$c,!0),Ft=(e,t,n)=>{const r=Lc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},en=(e,t,n=!1)=>{const r=Rc.exec(e);return r?r[1]?t(r[1]):n:!1},Bc=e=>e==="position"||e==="percentage",Fc=e=>e==="image"||e==="url",Hc=e=>e==="length"||e==="size"||e==="bg-size",Uc=e=>e==="length",I_=e=>e==="number",zc=e=>e==="family-name",$c=e=>e==="number"||e==="weight",Yc=e=>e==="shadow",N_=u_(()=>{const e=Le("color"),t=Le("font"),n=Le("text"),r=Le("font-weight"),i=Le("tracking"),a=Le("leading"),s=Le("breakpoint"),o=Le("container"),u=Le("spacing"),c=Le("radius"),h=Le("shadow"),d=Le("inset-shadow"),f=Le("text-shadow"),p=Le("drop-shadow"),m=Le("blur"),T=Le("perspective"),w=Le("aspect"),y=Le("ease"),I=Le("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...P(),q,V],S=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],L=()=>[q,V,u],O=()=>[Mt,"full","auto",...L()],C=()=>[Bt,"none","subgrid",q,V],B=()=>["auto",{span:["full",Bt,q,V]},Bt,q,V],R=()=>[Bt,"auto",q,V],j=()=>["auto","min","max","fr",q,V],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...L()],se=()=>[Mt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Ne=()=>[Mt,"screen","full","dvw","lvw","svw","min","max","fit",...L()],Pe=()=>[Mt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],_=()=>[e,q,V],ie=()=>[...P(),Mc,Pc,{position:[q,V]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",A_,T_,{size:[q,V]}],Re=()=>[Ha,or,Jt],Te=()=>["","none","full",c,q,V],ce=()=>["",ne,or,Jt],bt=()=>["solid","dashed","dotted","double"],st=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[ne,Ha,Mc,Pc],xt=()=>["","none",m,q,V],yt=()=>["none",ne,q,V],Sn=()=>["none",ne,q,V],Er=()=>[ne,q,V],In=()=>[Mt,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kt],breakpoint:[kt],color:[Oc],container:[kt],"drop-shadow":[kt],ease:["in","out","in-out"],font:[__],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kt],shadow:[kt],spacing:["px",ne],text:[kt],"text-shadow":[kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mt,V,q,w]}],container:["container"],columns:[{columns:[ne,V,q,o]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",q,V]}],basis:[{basis:[Mt,"full","auto",o,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,Mt,"auto","initial","none",V]}],grow:[{grow:["",ne,q,V]}],shrink:[{shrink:["",ne,q,V]}],order:[{order:[Bt,"first","last","none",q,V]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mbs:[{mbs:te()}],mbe:[{mbe:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],"inline-size":[{inline:["auto",...Ne()]}],"min-inline-size":[{"min-inline":["auto",...Ne()]}],"max-inline-size":[{"max-inline":["none",...Ne()]}],"block-size":[{block:["auto",...Pe()]}],"min-block-size":[{"min-block":["auto",...Pe()]}],"max-block-size":[{"max-block":["none",...Pe()]}],w:[{w:[o,"screen",...se()]}],"min-w":[{"min-w":[o,"screen","none",...se()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",n,or,Jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,S_,k_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ha,V]}],"font-family":[{font:[w_,x_,t]}],"font-features":[{"font-features":[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,q,V]}],"line-clamp":[{"line-clamp":[ne,"none",q,Dc]}],leading:[{leading:[a,...L()]}],"list-image":[{"list-image":["none",q,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...bt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",q,Jt]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ne,"auto",q,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,q,V],radial:["",q,V],conic:[Bt,q,V]},C_,y_]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:Te()}],"rounded-s":[{"rounded-s":Te()}],"rounded-e":[{"rounded-e":Te()}],"rounded-t":[{"rounded-t":Te()}],"rounded-r":[{"rounded-r":Te()}],"rounded-b":[{"rounded-b":Te()}],"rounded-l":[{"rounded-l":Te()}],"rounded-ss":[{"rounded-ss":Te()}],"rounded-se":[{"rounded-se":Te()}],"rounded-ee":[{"rounded-ee":Te()}],"rounded-es":[{"rounded-es":Te()}],"rounded-tl":[{"rounded-tl":Te()}],"rounded-tr":[{"rounded-tr":Te()}],"rounded-br":[{"rounded-br":Te()}],"rounded-bl":[{"rounded-bl":Te()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...bt(),"hidden","none"]}],"divide-style":[{divide:[...bt(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...bt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,q,V]}],"outline-w":[{outline:["",ne,or,Jt]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",h,li,ui]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,li,ui]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ne,Jt]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,li,ui]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ne,q,V]}],"mix-blend":[{"mix-blend":[...st(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":st()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[q,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,V]}],filter:[{filter:["","none",q,V]}],blur:[{blur:xt()}],brightness:[{brightness:[ne,q,V]}],contrast:[{contrast:[ne,q,V]}],"drop-shadow":[{"drop-shadow":["","none",p,li,ui]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ne,q,V]}],"hue-rotate":[{"hue-rotate":[ne,q,V]}],invert:[{invert:["",ne,q,V]}],saturate:[{saturate:[ne,q,V]}],sepia:[{sepia:["",ne,q,V]}],"backdrop-filter":[{"backdrop-filter":["","none",q,V]}],"backdrop-blur":[{"backdrop-blur":xt()}],"backdrop-brightness":[{"backdrop-brightness":[ne,q,V]}],"backdrop-contrast":[{"backdrop-contrast":[ne,q,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,q,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,q,V]}],"backdrop-invert":[{"backdrop-invert":["",ne,q,V]}],"backdrop-opacity":[{"backdrop-opacity":[ne,q,V]}],"backdrop-saturate":[{"backdrop-saturate":[ne,q,V]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,q,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",q,V]}],ease:[{ease:["linear","initial",y,q,V]}],delay:[{delay:[ne,q,V]}],animate:[{animate:["none",I,q,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,q,V]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:yt()}],"rotate-x":[{"rotate-x":yt()}],"rotate-y":[{"rotate-y":yt()}],"rotate-z":[{"rotate-z":yt()}],scale:[{scale:Sn()}],"scale-x":[{"scale-x":Sn()}],"scale-y":[{"scale-y":Sn()}],"scale-z":[{"scale-z":Sn()}],"scale-3d":["scale-3d"],skew:[{skew:Er()}],"skew-x":[{"skew-x":Er()}],"skew-y":[{"skew-y":Er()}],transform:[{transform:[q,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:In()}],"translate-x":[{"translate-x":In()}],"translate-y":[{"translate-y":In()}],"translate-z":[{"translate-z":In()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,V]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ne,or,Jt,Dc]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),v_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,L_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R_={};function jc(e,t){return((t||R_).jsx?L_:v_).test(e)}const O_=/[ \t\n\f\r]/g;function D_(e){return typeof e=="object"?e.type==="text"?Vc(e.value):!1:Vc(e)}function Vc(e){return e.replace(O_,"")===""}var ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var za={},Wc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,P_=/\n/g,M_=/^\s*/,B_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,F_=/^:\s*/,H_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,U_=/^[;\s]*/,z_=/^\s+|\s+$/g,$_=`
39
- `,Gc="/",Qc="*",tn="",Y_="comment",j_="declaration";function V_(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var T=m.match(P_);T&&(n+=T.length);var w=m.lastIndexOf($_);r=~w?m.length-w:r+m.length}function a(){var m={line:n,column:r};return function(T){return T.position=new s(m),c(),T}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(m){var T=new Error(t.source+":"+n+":"+r+": "+m);if(T.reason=m,T.filename=t.source,T.line=n,T.column=r,T.source=e,!t.silent)throw T}function u(m){var T=m.exec(e);if(T){var w=T[0];return i(w),e=e.slice(w.length),T}}function c(){u(M_)}function h(m){var T;for(m=m||[];T=d();)T!==!1&&m.push(T);return m}function d(){var m=a();if(!(Gc!=e.charAt(0)||Qc!=e.charAt(1))){for(var T=2;tn!=e.charAt(T)&&(Qc!=e.charAt(T)||Gc!=e.charAt(T+1));)++T;if(T+=2,tn===e.charAt(T-1))return o("End of comment missing");var w=e.slice(2,T-2);return r+=2,i(w),e=e.slice(T),r+=2,m({type:Y_,comment:w})}}function f(){var m=a(),T=u(B_);if(T){if(d(),!u(F_))return o("property missing ':'");var w=u(H_),y=m({type:j_,property:Kc(T[0].replace(Wc,tn)),value:w?Kc(w[0].replace(Wc,tn)):tn});return u(U_),y}}function p(){var m=[];h(m);for(var T;T=f();)T!==!1&&(m.push(T),h(m));return m}return c(),p()}function Kc(e){return e?e.replace(z_,tn):tn}var q_=V_,W_=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(za,"__esModule",{value:!0}),za.default=Q_;const G_=W_(q_);function Q_(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,G_.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:o}=a;i?t(s,o,a):o&&(n=n||{},n[s]=o)}),n}var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.camelCase=void 0;var K_=/^--[a-zA-Z0-9_-]+$/,X_=/-([a-z])/g,Z_=/^[^-]+$/,J_=/^-(webkit|moz|ms|o|khtml)-/,eT=/^-(ms)-/,tT=function(e){return!e||Z_.test(e)||K_.test(e)},nT=function(e,t){return t.toUpperCase()},Xc=function(e,t){return"".concat(t,"-")},rT=function(e,t){return t===void 0&&(t={}),tT(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(eT,Xc):e=e.replace(J_,Xc),e.replace(X_,nT))};di.camelCase=rT;var iT=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},aT=iT(za),sT=di;function $a(e,t){var n={};return!e||typeof e!="string"||(0,aT.default)(e,function(r,i){r&&i&&(n[(0,sT.camelCase)(r,t)]=i)}),n}$a.default=$a;var oT=$a;const uT=qc(oT);function ur(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zc(e.position):"start"in e||"end"in e?Zc(e):"line"in e||"column"in e?Ya(e):""}function Ya(e){return Jc(e&&e.line)+":"+Jc(e&&e.column)}function Zc(e){return Ya(e&&e.start)+"-"+Ya(e&&e.end)}function Jc(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ur(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const ja={}.hasOwnProperty,lT=new Map,cT=/[A-Z]/g,dT=new Set(["table","tbody","thead","tfoot","tr"]),hT=new Set(["td","th"]),ed="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=kT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=TT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Nt:zn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=td(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function td(e,t,n){if(t.type==="element")return pT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bT(e,t,n);if(t.type==="mdxjsEsm")return gT(e,t);if(t.type==="root")return ET(e,t,n);if(t.type==="text")return _T(e,t)}function pT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Nt,e.schema=i),e.ancestors.push(t);const a=rd(e,t.tagName,!1),s=xT(e,t);let o=qa(e,t);return dT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!D_(u):!0})),nd(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function mT(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return e.evaluater.evaluateExpression(r.expression)}lr(e,t.position)}function gT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);lr(e,t.position)}function bT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Nt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:rd(e,t.name,!0),s=yT(e,t),o=qa(e,t);return nd(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function ET(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function _T(e,t){return t.value}function nd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function TT(e,t,n){return r;function r(i,a,s,o){const c=Array.isArray(s.children)?n:t;return o?c(a,s,o):c(a,s)}}function kT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=ht(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function xT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ja.call(t.properties,i)){const a=wT(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&hT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else lr(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];a=e.evaluater.evaluateExpression(o.expression)}else lr(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function qa(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:lT;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const c=i.get(u)||0;s=u+"-"+c,i.set(u,c+1)}}const o=td(e,a,s);o!==void 0&&n.push(o)}return n}function wT(e,t,n){const r=$r(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?au(n):uu(n)),r.property==="style"){let i=typeof n=="object"?n:AT(e,String(n));return e.stylePropertyNameCase==="css"&&(i=CT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Nf[r.property]||r.property:r.attribute,n]}}function AT(e,t){try{return uT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=ed+"#cannot-parse-style-attribute",i}}function rd(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=jc(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=jc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ja.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);lr(e)}function lr(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ed+"#cannot-handle-mdx-estrees-without-createevaluater",n}function CT(e){const t={};let n;for(n in e)ja.call(e,n)&&(t[ST(n)]=e[n]);return t}function ST(e){let t=e.replace(cT,IT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function IT(e){return"-"+e.toLowerCase()}const Wa={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},NT={tokenize:vT};function vT(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ue(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Q(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const LT={tokenize:RT},id={tokenize:OT};function RT(e){const t=this,n=[];let r=0,i,a,s;return o;function o(A){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,u,c)(A)}return c(A)}function u(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const P=t.events.length;let H=P,S;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){S=t.events[H][1].end;break}y(r);let Y=P;for(;Y<t.events.length;)t.events[Y][1].end={...S},Y++;return Ke(t.events,H+1,0,t.events.slice(P)),t.events.length=Y,c(A)}return o(A)}function c(A){if(r===n.length){if(!i)return f(A);if(i.currentConstruct&&i.currentConstruct.concrete)return m(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(id,h,d)(A)}function h(A){return i&&I(),y(r),f(A)}function d(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(A)}function f(A){return t.containerState={},e.attempt(id,p,m)(A)}function p(A){return r++,n.push([t.currentConstruct,t.containerState]),f(A)}function m(A){if(A===null){i&&I(),y(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),T(A)}function T(A){if(A===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(A);return}return Q(A)?(e.consume(A),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(A),T)}function w(A,P){const H=t.sliceStream(A);if(P&&H.push(null),A.previous=a,a&&(a.next=A),a=A,i.defineSkip(A.start),i.write(H),t.parser.lazy[A.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const Y=t.events.length;let L=Y,O,C;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(O){C=t.events[L][1].end;break}O=!0}for(y(r),S=Y;S<t.events.length;)t.events[S][1].end={...C},S++;Ke(t.events,L+1,0,t.events.slice(Y)),t.events.length=S}}function y(A){let P=n.length;for(;P-- >A;){const H=n[P];t.containerState=H[1],H[0].exit.call(t,e)}n.length=A}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function OT(e,t,n){return ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const DT={tokenize:PT};function PT(e){const t=this,n=e.attempt(nr,r,e.attempt(this.parser.constructs.flowInitial,i,ue(e,e.attempt(this.parser.constructs.flow,i,e.attempt(b2,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const MT={resolveAll:sd()},BT=ad("string"),FT=ad("text");function ad(e){return{resolveAll:sd(e==="text"?HT:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(h){return c(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),u}function u(h){return c(h)?(n.exit("data"),a(h)):(n.consume(h),u)}function c(h){if(h===null)return!0;const d=i[h];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function sd(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function HT(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 a=i.length,s=-1,o=0,u;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)u=!0,o++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const UT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:x2},disable:{null:[]},document:{42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:Zl},flow:{35:I2,42:ii,45:[uc,ii],60:R2,61:uc,95:ii,96:nc,126:nc},flowInitial:{[-2]:La,[-1]:La,32:La},insideSpan:{null:[va,MT]},string:{38:ec,92:Jl},text:{[-5]:Oa,[-4]:Oa,[-3]:Oa,33:K2,38:ec,42:va,60:[Zb,H2],91:Z2,92:[C2,Jl],93:Ra,95:va,96:d2}},Symbol.toStringTag,{value:"Module"}));function zT(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:Y(H),check:Y(S),consume:I,enter:A,exit:P,interrupt:Y(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:T,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let h=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function d(B){return s=tt(s,B),w(),s[s.length-1]!==null?[]:(L(t,0),c.events=ri(a,c.events,c),c.events)}function f(B,R){return YT(p(B),R)}function p(B){return $T(s,B)}function m(){const{_bufferIndex:B,_index:R,line:j,column:X,offset:G}=r;return{_bufferIndex:B,_index:R,line:j,column:X,offset:G}}function T(B){i[B.line]=B.column,C()}function w(){let B;for(;r._index<s.length;){const R=s[r._index];if(typeof R=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<R.length;)y(R.charCodeAt(r._bufferIndex));else y(R)}}function y(B){h=h(B)}function I(B){Q(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,C()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function A(B,R){const j=R||{};return j.type=B,j.start=m(),c.events.push(["enter",j,c]),o.push(j),j}function P(B){const R=o.pop();return R.end=m(),c.events.push(["exit",R,c]),R}function H(B,R){L(B,R.from)}function S(B,R){R.restore()}function Y(B,R){return j;function j(X,G,te){let se,Ne,Pe,_;return Array.isArray(X)?Z(X):"tokenize"in X?Z([X]):ie(X);function ie(ce){return bt;function bt(st){const ke=st!==null&&ce[st],xt=st!==null&&ce.null,yt=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(xt)?xt:xt?[xt]:[]];return Z(yt)(st)}}function Z(ce){return se=ce,Ne=0,ce.length===0?te:x(ce[Ne])}function x(ce){return bt;function bt(st){return _=O(),Pe=ce,ce.partial||(c.currentConstruct=ce),ce.name&&c.parser.constructs.disable.null.includes(ce.name)?Te():ce.tokenize.call(R?Object.assign(Object.create(c),R):c,u,Re,Te)(st)}}function Re(ce){return B(Pe,_),G}function Te(ce){return _.restore(),++Ne<se.length?x(se[Ne]):te}}}function L(B,R){B.resolveAll&&!a.includes(B)&&a.push(B),B.resolve&&Ke(c.events,R,c.events.length-R,B.resolve(c.events.slice(R),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function O(){const B=m(),R=c.previous,j=c.currentConstruct,X=c.events.length,G=Array.from(o);return{from:X,restore:te};function te(){r=B,c.previous=R,c.currentConstruct=j,c.events.length=X,o=G,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function $T(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function YT(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
35
+ $$`:`${e}$$`},L3=e=>N3(e)%2===0?e:v3(e),R3=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=e3(e,t);if(r===-1||or(e,r))return null;let i=r>0&&e[r-1]==="!",a=i?r-1:r,s=e.substring(0,a);if(i)return s;let o=e.substring(r+1,t);return n==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},xc=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!or(e,n)){if(n>0&&e[n-1]==="!")continue;let r=bc(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let i=e.indexOf(")",r+2);i!==-1&&(n=i)}}return t},O3=(e,t,n)=>{let r=t>0&&e[t-1]==="!",i=r?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=xc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(bc(e,t)===-1){let a=e.substring(0,i);if(r)return a;if(n==="text-only"){let s=xc(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},yc=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!or(e,n)){let r=R3(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!or(e,r)){let i=O3(e,r,t);if(i!==null)return i}return e},D3=/^-{1,2}$/,P3=/^[\s]*-{1,2}[\s]+$/,M3=/^={1,2}$/,B3=/^[\s]*={1,2}[\s]+$/,F3=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
36
+ `);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),i=n.trim();if(D3.test(i)&&!n.match(P3)){let a=r.split(`
37
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}if(M3.test(i)&&!n.match(B3)){let a=r.split(`
38
+ `).at(-1);if(a&&a.trim().length>0)return`${e}​`}return e},H3=e=>{var t,n;let r=e.match(GE);if(r){let i=r[2];if(!i||Jt.test(i))return e;if(((t=e.match(gc))==null?void 0:t.length)%2===1)return`${e}~~`}else if(e.match(JE)&&((n=e.match(gc))==null?void 0:n.length)%2===1)return`${e}~`;return e},Ma=e=>e!==!1,Xe={COMPARISON_OPERATORS:-10,HTML_TAGS:-5,SETEXT_HEADINGS:0,LINKS:10,BOLD_ITALIC:20,BOLD:30,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,DEFAULT:100},U3=[{handler:{name:"comparisonOperators",handle:i3,priority:Xe.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:w3,priority:Xe.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:F3,priority:Xe.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:yc,priority:Xe.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:T3,priority:Xe.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:c3,priority:Xe.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:h3,priority:Xe.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:p3,priority:Xe.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:b3,priority:Xe.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:S3,priority:Xe.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:H3,priority:Xe.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:L3,priority:Xe.KATEX},optionKey:"katex"}],z3=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return U3.filter(({handler:r,optionKey:i})=>r.name==="links"?Ma(e?.links)||Ma(e?.images):Ma(e?.[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:pc(fc({},r),{handle:a=>yc(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},$3=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=z3(t),a=((n=t?.handlers)!=null?n:[]).map(o=>{var u;return{handler:pc(fc({},o),{priority:(u=o.priority)!=null?u:Xe.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((o,u)=>{var c,h;return((c=o.handler.priority)!=null?c:0)-((h=u.handler.priority)!=null?h:0)});for(let{handler:o,earlyReturn:u}of s)if(r=o.handle(r),u!=null&&u(r))return r;return r},Y3=$3;function wc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=wc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function j3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=wc(e))&&(r&&(r+=" "),r+=t);return r}const V3=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},q3=(e,t)=>({classGroupId:e,validator:t}),Ac=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),oi="-",Cc=[],W3="arbitrary..",G3=e=>{const t=K3(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Q3(s);const o=s.split(oi),u=o[0]===""&&o.length>1?1:0;return Sc(o,u,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const u=r[s],c=n[s];return u?c?V3(c,u):u:c||Cc}return n[s]||Cc}}},Sc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const c=Sc(e,t+1,a);if(c)return c}const s=n.validators;if(s===null)return;const o=t===0?e.join(oi):e.slice(t).join(oi),u=s.length;for(let c=0;c<u;c++){const h=s[c];if(h.validator(o))return h.classGroupId}},Q3=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?W3+r:void 0})(),K3=e=>{const{theme:t,classGroups:n}=e;return X3(n,t)},X3=(e,t)=>{const n=Ac();for(const r in e){const i=e[r];Ba(i,n,r,t)}return n},Ba=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];Z3(s,t,n,r)}},Z3=(e,t,n,r)=>{if(typeof e=="string"){J3(e,t,n);return}if(typeof e=="function"){e_(e,t,n,r);return}t_(e,t,n,r)},J3=(e,t,n)=>{const r=e===""?t:Ic(t,e);r.classGroupId=n},e_=(e,t,n,r)=>{if(n_(e)){Ba(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(q3(n,e))},t_=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[o,u]=i[s];Ba(u,Ic(t,o),n,r)}},Ic=(e,t)=>{let n=e;const r=t.split(oi),i=r.length;for(let a=0;a<i;a++){const s=r[a];let o=n.nextPart.get(s);o||(o=Ac(),n.nextPart.set(s,o)),n=o}return n},n_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,r_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},Fa="!",Nc=":",i_=[],vc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),a_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,o=0,u=0,c;const h=i.length;for(let T=0;T<h;T++){const w=i[T];if(s===0&&o===0){if(w===Nc){a.push(i.slice(u,T)),u=T+1;continue}if(w==="/"){c=T;continue}}w==="["?s++:w==="]"?s--:w==="("?o++:w===")"&&o--}const d=a.length===0?i:i.slice(u);let f=d,p=!1;d.endsWith(Fa)?(f=d.slice(0,-1),p=!0):d.startsWith(Fa)&&(f=d.slice(1),p=!0);const m=c&&c>u?c-u:void 0;return vc(a,p,f,m)};if(t){const i=t+Nc,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):vc(i_,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},s_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],o=s[0]==="[",u=t.has(s);o||u?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},o_=e=>({cache:r_(e.cacheSize),parseClassName:a_(e),sortModifiers:s_(e),...G3(e)}),u_=/\s+/,l_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],o=e.trim().split(u_);let u="";for(let c=o.length-1;c>=0;c-=1){const h=o[c],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:T}=n(h);if(d){u=h+(u.length>0?" "+u:u);continue}let w=!!T,y=r(w?m.substring(0,T):m);if(!y){if(!w){u=h+(u.length>0?" "+u:u);continue}if(y=r(m),!y){u=h+(u.length>0?" "+u:u);continue}w=!1}const I=f.length===0?"":f.length===1?f[0]:a(f).join(":"),A=p?I+Fa:I,D=A+y;if(s.indexOf(D)>-1)continue;s.push(D);const F=i(y,w);for(let S=0;S<F.length;++S){const Y=F[S];s.push(A+Y)}u=h+(u.length>0?" "+u:u)}return u},c_=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Lc(n))&&(i&&(i+=" "),i+=r);return i},Lc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Lc(e[r]))&&(n&&(n+=" "),n+=t);return n},d_=(e,...t)=>{let n,r,i,a;const s=u=>{const c=t.reduce((h,d)=>d(h),e());return n=o_(c),r=n.cache.get,i=n.cache.set,a=o,o(u)},o=u=>{const c=r(u);if(c)return c;const h=l_(u,n);return i(u,h),h};return a=s,(...u)=>a(c_(...u))},h_=[],Re=e=>{const t=n=>n[e]||h_;return t.isThemeGetter=!0,t},Rc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,p_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,g_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,b_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>f_.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>!!e&&Number.isInteger(Number(e)),Ha=e=>e.endsWith("%")&&ne(e.slice(0,-1)),kt=e=>p_.test(e),Dc=()=>!0,__=e=>m_.test(e)&&!g_.test(e),Ua=()=>!1,T_=e=>b_.test(e),k_=e=>E_.test(e),x_=e=>!V(e)&&!q(e),y_=e=>Ft(e,Uc,Ua),V=e=>Rc.test(e),en=e=>Ft(e,zc,__),Pc=e=>Ft(e,L_,ne),w_=e=>Ft(e,Yc,Dc),A_=e=>Ft(e,$c,Ua),Mc=e=>Ft(e,Fc,Ua),C_=e=>Ft(e,Hc,k_),ui=e=>Ft(e,jc,T_),q=e=>Oc.test(e),ur=e=>tn(e,zc),S_=e=>tn(e,$c),Bc=e=>tn(e,Fc),I_=e=>tn(e,Uc),N_=e=>tn(e,Hc),li=e=>tn(e,jc,!0),v_=e=>tn(e,Yc,!0),Ft=(e,t,n)=>{const r=Rc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},tn=(e,t,n=!1)=>{const r=Oc.exec(e);return r?r[1]?t(r[1]):n:!1},Fc=e=>e==="position"||e==="percentage",Hc=e=>e==="image"||e==="url",Uc=e=>e==="length"||e==="size"||e==="bg-size",zc=e=>e==="length",L_=e=>e==="number",$c=e=>e==="family-name",Yc=e=>e==="number"||e==="weight",jc=e=>e==="shadow",R_=d_(()=>{const e=Re("color"),t=Re("font"),n=Re("text"),r=Re("font-weight"),i=Re("tracking"),a=Re("leading"),s=Re("breakpoint"),o=Re("container"),u=Re("spacing"),c=Re("radius"),h=Re("shadow"),d=Re("inset-shadow"),f=Re("text-shadow"),p=Re("drop-shadow"),m=Re("blur"),T=Re("perspective"),w=Re("aspect"),y=Re("ease"),I=Re("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...D(),q,V],S=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],L=()=>[q,V,u],O=()=>[Mt,"full","auto",...L()],C=()=>[Bt,"none","subgrid",q,V],$=()=>["auto",{span:["full",Bt,q,V]},Bt,q,V],M=()=>[Bt,"auto",q,V],U=()=>["auto","min","max","fr",q,V],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...L()],re=()=>[Mt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],he=()=>[Mt,"screen","full","dvw","lvw","svw","min","max","fit",...L()],Te=()=>[Mt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],_=()=>[e,q,V],Oe=()=>[...D(),Bc,Mc,{position:[q,V]}],W=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",I_,y_,{size:[q,V]}],we=()=>[Ha,ur,en],ke=()=>["","none","full",c,q,V],le=()=>["",ne,ur,en],bt=()=>["solid","dashed","dotted","double"],st=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[ne,Ha,Bc,Mc],xt=()=>["","none",m,q,V],yt=()=>["none",ne,q,V],Sn=()=>["none",ne,q,V],_r=()=>[ne,q,V],In=()=>[Mt,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[kt],breakpoint:[kt],color:[Dc],container:[kt],"drop-shadow":[kt],ease:["in","out","in-out"],font:[x_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[kt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[kt],shadow:[kt],spacing:["px",ne],text:[kt],"text-shadow":[kt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mt,V,q,w]}],container:["container"],columns:[{columns:[ne,V,q,o]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Bt,"auto",q,V]}],basis:[{basis:[Mt,"full","auto",o,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,Mt,"auto","initial","none",V]}],grow:[{grow:["",ne,q,V]}],shrink:[{shrink:["",ne,q,V]}],order:[{order:[Bt,"first","last","none",q,V]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mbs:[{mbs:J()}],mbe:[{mbe:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...Te()]}],"min-block-size":[{"min-block":["auto",...Te()]}],"max-block-size":[{"max-block":["none",...Te()]}],w:[{w:[o,"screen",...re()]}],"min-w":[{"min-w":[o,"screen","none",...re()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",n,ur,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,v_,w_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ha,V]}],"font-family":[{font:[S_,A_,t]}],"font-features":[{"font-features":[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,q,V]}],"line-clamp":[{"line-clamp":[ne,"none",q,Pc]}],leading:[{leading:[a,...L()]}],"list-image":[{"list-image":["none",q,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...bt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",q,en]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ne,"auto",q,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:W()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Bt,q,V],radial:["",q,V],conic:[Bt,q,V]},N_,C_]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ke()}],"rounded-s":[{"rounded-s":ke()}],"rounded-e":[{"rounded-e":ke()}],"rounded-t":[{"rounded-t":ke()}],"rounded-r":[{"rounded-r":ke()}],"rounded-b":[{"rounded-b":ke()}],"rounded-l":[{"rounded-l":ke()}],"rounded-ss":[{"rounded-ss":ke()}],"rounded-se":[{"rounded-se":ke()}],"rounded-ee":[{"rounded-ee":ke()}],"rounded-es":[{"rounded-es":ke()}],"rounded-tl":[{"rounded-tl":ke()}],"rounded-tr":[{"rounded-tr":ke()}],"rounded-br":[{"rounded-br":ke()}],"rounded-bl":[{"rounded-bl":ke()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...bt(),"hidden","none"]}],"divide-style":[{divide:[...bt(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...bt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,q,V]}],"outline-w":[{outline:["",ne,ur,en]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",h,li,ui]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,li,ui]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ne,en]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",f,li,ui]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ne,q,V]}],"mix-blend":[{"mix-blend":[...st(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":st()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[q,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:W()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,V]}],filter:[{filter:["","none",q,V]}],blur:[{blur:xt()}],brightness:[{brightness:[ne,q,V]}],contrast:[{contrast:[ne,q,V]}],"drop-shadow":[{"drop-shadow":["","none",p,li,ui]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ne,q,V]}],"hue-rotate":[{"hue-rotate":[ne,q,V]}],invert:[{invert:["",ne,q,V]}],saturate:[{saturate:[ne,q,V]}],sepia:[{sepia:["",ne,q,V]}],"backdrop-filter":[{"backdrop-filter":["","none",q,V]}],"backdrop-blur":[{"backdrop-blur":xt()}],"backdrop-brightness":[{"backdrop-brightness":[ne,q,V]}],"backdrop-contrast":[{"backdrop-contrast":[ne,q,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,q,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,q,V]}],"backdrop-invert":[{"backdrop-invert":["",ne,q,V]}],"backdrop-opacity":[{"backdrop-opacity":[ne,q,V]}],"backdrop-saturate":[{"backdrop-saturate":[ne,q,V]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,q,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",q,V]}],ease:[{ease:["linear","initial",y,q,V]}],delay:[{delay:[ne,q,V]}],animate:[{animate:["none",I,q,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,q,V]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:yt()}],"rotate-x":[{"rotate-x":yt()}],"rotate-y":[{"rotate-y":yt()}],"rotate-z":[{"rotate-z":yt()}],scale:[{scale:Sn()}],"scale-x":[{"scale-x":Sn()}],"scale-y":[{"scale-y":Sn()}],"scale-z":[{"scale-z":Sn()}],"scale-3d":["scale-3d"],skew:[{skew:_r()}],"skew-x":[{"skew-x":_r()}],"skew-y":[{"skew-y":_r()}],transform:[{transform:[q,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:In()}],"translate-x":[{"translate-x":In()}],"translate-y":[{"translate-y":In()}],"translate-z":[{"translate-z":In()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,V]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ne,ur,en,Pc]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),O_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,D_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,P_={};function Vc(e,t){return((t||P_).jsx?D_:O_).test(e)}const M_=/[ \t\n\f\r]/g;function B_(e){return typeof e=="object"?e.type==="text"?qc(e.value):!1:qc(e)}function qc(e){return e.replace(M_,"")===""}var ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var za={},Gc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,F_=/\n/g,H_=/^\s*/,U_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,z_=/^:\s*/,$_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Y_=/^[;\s]*/,j_=/^\s+|\s+$/g,V_=`
39
+ `,Qc="/",Kc="*",nn="",q_="comment",W_="declaration";function G_(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var T=m.match(F_);T&&(n+=T.length);var w=m.lastIndexOf(V_);r=~w?m.length-w:r+m.length}function a(){var m={line:n,column:r};return function(T){return T.position=new s(m),c(),T}}function s(m){this.start=m,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(m){var T=new Error(t.source+":"+n+":"+r+": "+m);if(T.reason=m,T.filename=t.source,T.line=n,T.column=r,T.source=e,!t.silent)throw T}function u(m){var T=m.exec(e);if(T){var w=T[0];return i(w),e=e.slice(w.length),T}}function c(){u(H_)}function h(m){var T;for(m=m||[];T=d();)T!==!1&&m.push(T);return m}function d(){var m=a();if(!(Qc!=e.charAt(0)||Kc!=e.charAt(1))){for(var T=2;nn!=e.charAt(T)&&(Kc!=e.charAt(T)||Qc!=e.charAt(T+1));)++T;if(T+=2,nn===e.charAt(T-1))return o("End of comment missing");var w=e.slice(2,T-2);return r+=2,i(w),e=e.slice(T),r+=2,m({type:q_,comment:w})}}function f(){var m=a(),T=u(U_);if(T){if(d(),!u(z_))return o("property missing ':'");var w=u($_),y=m({type:W_,property:Xc(T[0].replace(Gc,nn)),value:w?Xc(w[0].replace(Gc,nn)):nn});return u(Y_),y}}function p(){var m=[];h(m);for(var T;T=f();)T!==!1&&(m.push(T),h(m));return m}return c(),p()}function Xc(e){return e?e.replace(j_,nn):nn}var Q_=G_,K_=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(za,"__esModule",{value:!0}),za.default=Z_;const X_=K_(Q_);function Z_(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,X_.default)(e),i=typeof t=="function";return r.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:o}=a;i?t(s,o,a):o&&(n=n||{},n[s]=o)}),n}var di={};Object.defineProperty(di,"__esModule",{value:!0}),di.camelCase=void 0;var J_=/^--[a-zA-Z0-9_-]+$/,eT=/-([a-z])/g,tT=/^[^-]+$/,nT=/^-(webkit|moz|ms|o|khtml)-/,rT=/^-(ms)-/,iT=function(e){return!e||tT.test(e)||J_.test(e)},aT=function(e,t){return t.toUpperCase()},Zc=function(e,t){return"".concat(t,"-")},sT=function(e,t){return t===void 0&&(t={}),iT(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(rT,Zc):e=e.replace(nT,Zc),e.replace(eT,aT))};di.camelCase=sT;var oT=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},uT=oT(za),lT=di;function $a(e,t){var n={};return!e||typeof e!="string"||(0,uT.default)(e,function(r,i){r&&i&&(n[(0,lT.camelCase)(r,t)]=i)}),n}$a.default=$a;var cT=$a;const dT=Wc(cT);function lr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Jc(e.position):"start"in e||"end"in e?Jc(e):"line"in e||"column"in e?Ya(e):""}function Ya(e){return ed(e&&e.line)+":"+ed(e&&e.column)}function Jc(e){return Ya(e&&e.start)+"-"+Ya(e&&e.end)}function ed(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=lr(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="",He.prototype.name="",He.prototype.reason="",He.prototype.message="",He.prototype.stack="",He.prototype.column=void 0,He.prototype.line=void 0,He.prototype.ancestors=void 0,He.prototype.cause=void 0,He.prototype.fatal=void 0,He.prototype.place=void 0,He.prototype.ruleId=void 0,He.prototype.source=void 0;const ja={}.hasOwnProperty,hT=new Map,fT=/[A-Z]/g,pT=new Set(["table","tbody","thead","tfoot","tr"]),mT=new Set(["td","th"]),td="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gT(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wT(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yT(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Nt:$n,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=nd(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function nd(e,t,n){if(t.type==="element")return bT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ET(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return TT(e,t,n);if(t.type==="mdxjsEsm")return _T(e,t);if(t.type==="root")return kT(e,t,n);if(t.type==="text")return xT(e,t)}function bT(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Nt,e.schema=i),e.ancestors.push(t);const a=id(e,t.tagName,!1),s=AT(e,t);let o=qa(e,t);return pT.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!B_(u):!0})),rd(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function ET(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return e.evaluater.evaluateExpression(r.expression)}cr(e,t.position)}function _T(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);cr(e,t.position)}function TT(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Nt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:id(e,t.name,!0),s=CT(e,t),o=qa(e,t);return rd(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function kT(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function xT(e,t){return t.value}function rd(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yT(e,t,n){return r;function r(i,a,s,o){const c=Array.isArray(s.children)?n:t;return o?c(a,s,o):c(a,s)}}function wT(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=ht(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function AT(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&ja.call(t.properties,i)){const a=ST(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&mT.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function CT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0].expression.properties[0];Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else cr(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];a=e.evaluater.evaluateExpression(o.expression)}else cr(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function qa(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hT;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const c=i.get(u)||0;s=u+"-"+c,i.set(u,c+1)}}const o=nd(e,a,s);o!==void 0&&n.push(o)}return n}function ST(e,t,n){const r=$r(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?su(n):lu(n)),r.property==="style"){let i=typeof n=="object"?n:IT(e,String(n));return e.stylePropertyNameCase==="css"&&(i=NT(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Rf[r.property]||r.property:r.attribute,n]}}function IT(e,t){try{return dT(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=td+"#cannot-parse-style-attribute",i}}function id(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=Vc(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=Vc(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return ja.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);cr(e)}function cr(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=td+"#cannot-handle-mdx-estrees-without-createevaluater",n}function NT(e){const t={};let n;for(n in e)ja.call(e,n)&&(t[vT(n)]=e[n]);return t}function vT(e){let t=e.replace(fT,LT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function LT(e){return"-"+e.toLowerCase()}const Wa={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},RT={tokenize:OT};function OT(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),oe(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return X(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const DT={tokenize:PT},ad={tokenize:MT};function PT(e){const t=this,n=[];let r=0,i,a,s;return o;function o(A){if(r<n.length){const D=n[r];return t.containerState=D[1],e.attempt(D[0].continuation,u,c)(A)}return c(A)}function u(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const D=t.events.length;let F=D,S;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){S=t.events[F][1].end;break}y(r);let Y=D;for(;Y<t.events.length;)t.events[Y][1].end={...S},Y++;return Ke(t.events,F+1,0,t.events.slice(D)),t.events.length=Y,c(A)}return o(A)}function c(A){if(r===n.length){if(!i)return f(A);if(i.currentConstruct&&i.currentConstruct.concrete)return m(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ad,h,d)(A)}function h(A){return i&&I(),y(r),f(A)}function d(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,m(A)}function f(A){return t.containerState={},e.attempt(ad,p,m)(A)}function p(A){return r++,n.push([t.currentConstruct,t.containerState]),f(A)}function m(A){if(A===null){i&&I(),y(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),T(A)}function T(A){if(A===null){w(e.exit("chunkFlow"),!0),y(0),e.consume(A);return}return X(A)?(e.consume(A),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(A),T)}function w(A,D){const F=t.sliceStream(A);if(D&&F.push(null),A.previous=a,a&&(a.next=A),a=A,i.defineSkip(A.start),i.write(F),t.parser.lazy[A.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<s&&(!i.events[S][1].end||i.events[S][1].end.offset>s))return;const Y=t.events.length;let L=Y,O,C;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(O){C=t.events[L][1].end;break}O=!0}for(y(r),S=Y;S<t.events.length;)t.events[S][1].end={...C},S++;Ke(t.events,L+1,0,t.events.slice(Y)),t.events.length=S}}function y(A){let D=n.length;for(;D-- >A;){const F=n[D];t.containerState=F[1],F[0].exit.call(t,e)}n.length=A}function I(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function MT(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const BT={tokenize:FT};function FT(e){const t=this,n=e.attempt(rr,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(T2,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HT={resolveAll:od()},UT=sd("string"),zT=sd("text");function sd(e){return{resolveAll:od(e==="text"?$T:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(h){return c(h)?a(h):o(h)}function o(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),u}function u(h){return c(h)?(n.exit("data"),a(h)):(n.consume(h),u)}function c(h){if(h===null)return!0;const d=i[h];let f=-1;if(d)for(;++f<d.length;){const p=d[f];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function od(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function $T(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 a=i.length,s=-1,o=0,u;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)u=!0,o++;else if(c!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const YT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:A2},disable:{null:[]},document:{42:We,43:We,45:We,48:We,49:We,50:We,51:We,52:We,53:We,54:We,55:We,56:We,57:We,62:Jl},flow:{35:L2,42:ii,45:[lc,ii],60:P2,61:lc,95:ii,96:rc,126:rc},flowInitial:{[-2]:La,[-1]:La,32:La},insideSpan:{null:[va,HT]},string:{38:tc,92:ec},text:{[-5]:Oa,[-4]:Oa,[-3]:Oa,33:J2,38:tc,42:va,60:[t2,$2],91:tE,92:[N2,ec],93:Ra,95:va,96:p2}},Symbol.toStringTag,{value:"Module"}));function jT(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const u={attempt:Y(F),check:Y(S),consume:I,enter:A,exit:D,interrupt:Y(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:T,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d};let h=t.tokenize.call(c,u);return t.resolveAll&&a.push(t),c;function d($){return s=tt(s,$),w(),s[s.length-1]!==null?[]:(L(t,0),c.events=ri(a,c.events,c),c.events)}function f($,M){return qT(p($),M)}function p($){return VT(s,$)}function m(){const{_bufferIndex:$,_index:M,line:U,column:K,offset:Q}=r;return{_bufferIndex:$,_index:M,line:U,column:K,offset:Q}}function T($){i[$.line]=$.column,C()}function w(){let $;for(;r._index<s.length;){const M=s[r._index];if(typeof M=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<M.length;)y(M.charCodeAt(r._bufferIndex));else y(M)}}function y($){h=h($)}function I($){X($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,C()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}function A($,M){const U=M||{};return U.type=$,U.start=m(),c.events.push(["enter",U,c]),o.push(U),U}function D($){const M=o.pop();return M.end=m(),c.events.push(["exit",M,c]),M}function F($,M){L($,M.from)}function S($,M){M.restore()}function Y($,M){return U;function U(K,Q,J){let re,he,Te,_;return Array.isArray(K)?W(K):"tokenize"in K?W([K]):Oe(K);function Oe(le){return bt;function bt(st){const xe=st!==null&&le[st],xt=st!==null&&le.null,yt=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(xt)?xt:xt?[xt]:[]];return W(yt)(st)}}function W(le){return re=le,he=0,le.length===0?J:x(le[he])}function x(le){return bt;function bt(st){return _=O(),Te=le,le.partial||(c.currentConstruct=le),le.name&&c.parser.constructs.disable.null.includes(le.name)?ke():le.tokenize.call(M?Object.assign(Object.create(c),M):c,u,we,ke)(st)}}function we(le){return $(Te,_),Q}function ke(le){return _.restore(),++he<re.length?x(re[he]):J}}}function L($,M){$.resolveAll&&!a.includes($)&&a.push($),$.resolve&&Ke(c.events,M,c.events.length-M,$.resolve(c.events.slice(M),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}function O(){const $=m(),M=c.previous,U=c.currentConstruct,K=c.events.length,Q=Array.from(o);return{from:K,restore:J};function J(){r=$,c.previous=M,c.currentConstruct=U,c.events.length=K,o=Q,C()}}function C(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function VT(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function qT(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
40
40
  `;break}case-3:{s=`\r
41
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function jT(e){const r={constructs:$l([UT,...(e||{}).extensions||[]]),content:i(NT),defined:[],document:i(LT),flow:i(DT),lazy:{},string:i(BT),text:i(FT)};return r;function i(a){return s;function s(o){return zT(r,a,o)}}}function VT(e){for(;!rc(e););return e}const od=/[\0\t\n\r]/g;function qT(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const u=[];let c,h,d,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(od.lastIndex=d,c=od.exec(a),f=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(f),!c){t=a.slice(d);break}if(p===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(a.slice(d,f)),e+=f-d),p){case 0:{u.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ud={}.hasOwnProperty;function WT(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),GT(n)(VT(jT(n).document().write(qT()(e,t,!0))))}function GT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(uh),autolinkProtocol:O,autolinkEmail:O,atxHeading:a(ah),blockQuote:a(xt),characterEscape:O,characterReference:O,codeFenced:a(yt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(yt,s),codeText:a(Sn,s),codeTextData:O,data:O,codeFlowValue:O,definition:a(Er),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(In),hardBreakEscape:a(sh),hardBreakTrailing:a(sh),htmlFlow:a(oh,s),htmlFlowData:O,htmlText:a(oh,s),htmlTextData:O,image:a(r5),label:s,link:a(uh),listItem:a(i5),listItemValue:f,listOrdered:a(lh,d),listUnordered:a(lh),paragraph:a(a5),reference:x,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(ah),strong:a(s5),thematicBreak:a(u5)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:ke,autolinkProtocol:st,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Te,characterReferenceMarkerNumeric:Te,characterReferenceValue:ce,characterReference:bt,codeFenced:u(w),codeFencedFence:T,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:u(y),codeText:u(G),codeTextData:C,data:C,definition:u(),definitionDestinationString:P,definitionLabelString:I,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(R),hardBreakTrailing:u(R),htmlFlow:u(j),htmlFlowData:C,htmlText:u(X),htmlTextData:C,image:u(se),label:Pe,labelText:Ne,lineEnding:B,link:u(te),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Re,resourceDestinationString:_,resourceTitleString:ie,resource:Z,setextHeading:u(L),setextHeadingLineSequence:Y,setextHeadingText:S,strong:u(),thematicBreak:u()}};ld(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(D){let z={type:"root",children:[]};const J={stack:[z],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:h,data:n},oe=[];let ge=-1;for(;++ge<D.length;)if(D[ge][1].type==="listOrdered"||D[ge][1].type==="listUnordered")if(D[ge][0]==="enter")oe.push(ge);else{const ot=oe.pop();ge=i(D,ot,ge)}for(ge=-1;++ge<D.length;){const ot=t[D[ge][0]];ud.call(ot,D[ge][1].type)&&ot[D[ge][1].type].call(Object.assign({sliceSerialize:D[ge][2].sliceSerialize},J),D[ge][1])}if(J.tokenStack.length>0){const ot=J.tokenStack[J.tokenStack.length-1];(ot[1]||cd).call(J,void 0,ot[0])}for(z.position={start:Ht(D.length>0?D[0][1].start:{line:1,column:1,offset:0}),end:Ht(D.length>0?D[D.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)z=t.transforms[ge](z)||z;return z}function i(D,z,J){let oe=z-1,ge=-1,ot=!1,sn,wt,_r,Tr;for(;++oe<=J;){const Je=D[oe];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?ge++:ge--,Tr=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(sn&&!Tr&&!ge&&!_r&&(_r=oe),Tr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tr=void 0}if(!ge&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||ge===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(sn){let Nn=oe;for(wt=void 0;Nn--;){const At=D[Nn];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;wt&&(D[wt][1].type="lineEndingBlank",ot=!0),At[1].type="lineEnding",wt=Nn}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}_r&&(!wt||_r<wt)&&(sn._spread=!0),sn.end=Object.assign({},wt?D[wt][1].start:Je[1].end),D.splice(wt||oe,0,["exit",sn,Je[2]]),oe++,J++}if(Je[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};sn=Nn,D.splice(oe,0,["enter",Nn,Je[2]]),oe++,J++,_r=void 0,Tr=!0}}}return D[z][1]._spread=ot,J}function a(D,z){return J;function J(oe){o.call(this,D(oe),oe),z&&z.call(this,oe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(D,z,J){this.stack[this.stack.length-1].children.push(D),this.stack.push(D),this.tokenStack.push([z,J||void 0]),D.position={start:Ht(z.start),end:void 0}}function u(D){return z;function z(J){D&&D.call(this,J),c.call(this,J)}}function c(D,z){const J=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==D.type&&(z?z.call(this,D,oe[0]):(oe[1]||cd).call(this,D,oe[0]));else throw new Error("Cannot close `"+D.type+"` ("+ur({start:D.start,end:D.end})+"): it’s not open");J.position.end=Ht(D.end)}function h(){return wa(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(D){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(D),10),this.data.expectingFirstListItemValue=void 0}}function p(){const D=this.resume(),z=this.stack[this.stack.length-1];z.lang=D}function m(){const D=this.resume(),z=this.stack[this.stack.length-1];z.meta=D}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const D=this.resume(),z=this.stack[this.stack.length-1];z.value=D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const D=this.resume(),z=this.stack[this.stack.length-1];z.value=D.replace(/(\r?\n|\r)$/g,"")}function I(D){const z=this.resume(),J=this.stack[this.stack.length-1];J.label=z,J.identifier=it(this.sliceSerialize(D)).toLowerCase()}function A(){const D=this.resume(),z=this.stack[this.stack.length-1];z.title=D}function P(){const D=this.resume(),z=this.stack[this.stack.length-1];z.url=D}function H(D){const z=this.stack[this.stack.length-1];if(!z.depth){const J=this.sliceSerialize(D).length;z.depth=J}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function Y(D){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(D).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function O(D){const J=this.stack[this.stack.length-1].children;let oe=J[J.length-1];(!oe||oe.type!=="text")&&(oe=o5(),oe.position={start:Ht(D.start),end:void 0},J.push(oe)),this.stack.push(oe)}function C(D){const z=this.stack.pop();z.value+=this.sliceSerialize(D),z.position.end=Ht(D.end)}function B(D){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=z.children[z.children.length-1];J.position.end=Ht(D.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(O.call(this,D),C.call(this,D))}function R(){this.data.atHardBreak=!0}function j(){const D=this.resume(),z=this.stack[this.stack.length-1];z.value=D}function X(){const D=this.resume(),z=this.stack[this.stack.length-1];z.value=D}function G(){const D=this.resume(),z=this.stack[this.stack.length-1];z.value=D}function te(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=z,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function se(){const D=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";D.type+="Reference",D.referenceType=z,delete D.url,delete D.title}else delete D.identifier,delete D.label;this.data.referenceType=void 0}function Ne(D){const z=this.sliceSerialize(D),J=this.stack[this.stack.length-2];J.label=xb(z),J.identifier=it(z).toLowerCase()}function Pe(){const D=this.stack[this.stack.length-1],z=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const oe=D.children;J.children=oe}else J.alt=z}function _(){const D=this.resume(),z=this.stack[this.stack.length-1];z.url=D}function ie(){const D=this.resume(),z=this.stack[this.stack.length-1];z.title=D}function Z(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function Re(D){const z=this.resume(),J=this.stack[this.stack.length-1];J.label=z,J.identifier=it(this.sliceSerialize(D)).toLowerCase(),this.data.referenceType="full"}function Te(D){this.data.characterReferenceType=D.type}function ce(D){const z=this.sliceSerialize(D),J=this.data.characterReferenceType;let oe;J?(oe=Fl(z,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=Ca(z);const ge=this.stack[this.stack.length-1];ge.value+=oe}function bt(D){const z=this.stack.pop();z.position.end=Ht(D.end)}function st(D){C.call(this,D);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(D)}function ke(D){C.call(this,D);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(D)}function xt(){return{type:"blockquote",children:[]}}function yt(){return{type:"code",lang:null,meta:null,value:""}}function Sn(){return{type:"inlineCode",value:""}}function Er(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function In(){return{type:"emphasis",children:[]}}function ah(){return{type:"heading",depth:0,children:[]}}function sh(){return{type:"break"}}function oh(){return{type:"html",value:""}}function r5(){return{type:"image",title:null,url:"",alt:null}}function uh(){return{type:"link",title:null,url:"",children:[]}}function lh(D){return{type:"list",ordered:D.type==="listOrdered",start:null,spread:D._spread,children:[]}}function i5(D){return{type:"listItem",spread:D._spread,checked:null,children:[]}}function a5(){return{type:"paragraph",children:[]}}function s5(){return{type:"strong",children:[]}}function o5(){return{type:"text",value:""}}function u5(){return{type:"thematicBreak"}}}function Ht(e){return{line:e.line,column:e.column,offset:e.offset}}function ld(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ld(e,r):QT(e,r)}}function QT(e,t){let n;for(n in t)if(ud.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function cd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ur({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ur({start:t.start,end:t.end})+") is still open")}function KT(e){const t=this;t.parser=n;function n(r){return WT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function XT(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ZT(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
42
- `}]}function JT(e,t){const n=t.value?t.value+`
43
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function ek(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=wn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function rk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ik(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dd(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function ak(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={src:wn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function sk(e,t){const n={src:wn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ok(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function uk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={href:wn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function lk(e,t){const n={href:wn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ck(e,t,n){const r=e.all(t),i=n?dk(n):hd(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const h=r[o];(i||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
41
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function WT(e){const r={constructs:Yl([YT,...(e||{}).extensions||[]]),content:i(RT),defined:[],document:i(DT),flow:i(BT),lazy:{},string:i(UT),text:i(zT)};return r;function i(a){return s;function s(o){return jT(r,a,o)}}}function GT(e){for(;!ic(e););return e}const ud=/[\0\t\n\r]/g;function QT(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const u=[];let c,h,d,f,p;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(ud.lastIndex=d,c=ud.exec(a),f=c&&c.index!==void 0?c.index:a.length,p=a.charCodeAt(f),!c){t=a.slice(d);break}if(p===10&&d===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<f&&(u.push(a.slice(d,f)),e+=f-d),p){case 0:{u.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=f+1}return o&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const ld={}.hasOwnProperty;function KT(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),XT(n)(GT(WT(n).document().write(QT()(e,t,!0))))}function XT(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ch),autolinkProtocol:O,autolinkEmail:O,atxHeading:a(oh),blockQuote:a(xt),characterEscape:O,characterReference:O,codeFenced:a(yt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(yt,s),codeText:a(Sn,s),codeTextData:O,data:O,codeFlowValue:O,definition:a(_r),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(In),hardBreakEscape:a(uh),hardBreakTrailing:a(uh),htmlFlow:a(lh,s),htmlFlowData:O,htmlText:a(lh,s),htmlTextData:O,image:a(l5),label:s,link:a(ch),listItem:a(c5),listItemValue:f,listOrdered:a(dh,d),listUnordered:a(dh),paragraph:a(d5),reference:x,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(oh),strong:a(h5),thematicBreak:a(p5)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:xe,autolinkProtocol:st,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:le,characterReference:bt,codeFenced:u(w),codeFencedFence:T,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:u(y),codeText:u(Q),codeTextData:C,data:C,definition:u(),definitionDestinationString:D,definitionLabelString:I,definitionTitleString:A,emphasis:u(),hardBreakEscape:u(M),hardBreakTrailing:u(M),htmlFlow:u(U),htmlFlowData:C,htmlText:u(K),htmlTextData:C,image:u(re),label:Te,labelText:he,lineEnding:$,link:u(J),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:we,resourceDestinationString:_,resourceTitleString:Oe,resource:W,setextHeading:u(L),setextHeadingLineSequence:Y,setextHeadingText:S,strong:u(),thematicBreak:u()}};cd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let z={type:"root",children:[]};const ee={stack:[z],tokenStack:[],config:t,enter:o,exit:c,buffer:s,resume:h,data:n},se=[];let ge=-1;for(;++ge<R.length;)if(R[ge][1].type==="listOrdered"||R[ge][1].type==="listUnordered")if(R[ge][0]==="enter")se.push(ge);else{const ot=se.pop();ge=i(R,ot,ge)}for(ge=-1;++ge<R.length;){const ot=t[R[ge][0]];ld.call(ot,R[ge][1].type)&&ot[R[ge][1].type].call(Object.assign({sliceSerialize:R[ge][2].sliceSerialize},ee),R[ge][1])}if(ee.tokenStack.length>0){const ot=ee.tokenStack[ee.tokenStack.length-1];(ot[1]||dd).call(ee,void 0,ot[0])}for(z.position={start:Ht(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:Ht(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)z=t.transforms[ge](z)||z;return z}function i(R,z,ee){let se=z-1,ge=-1,ot=!1,on,wt,Tr,kr;for(;++se<=ee;){const Je=R[se];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?ge++:ge--,kr=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(on&&!kr&&!ge&&!Tr&&(Tr=se),kr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:kr=void 0}if(!ge&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||ge===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(on){let Nn=se;for(wt=void 0;Nn--;){const At=R[Nn];if(At[1].type==="lineEnding"||At[1].type==="lineEndingBlank"){if(At[0]==="exit")continue;wt&&(R[wt][1].type="lineEndingBlank",ot=!0),At[1].type="lineEnding",wt=Nn}else if(!(At[1].type==="linePrefix"||At[1].type==="blockQuotePrefix"||At[1].type==="blockQuotePrefixWhitespace"||At[1].type==="blockQuoteMarker"||At[1].type==="listItemIndent"))break}Tr&&(!wt||Tr<wt)&&(on._spread=!0),on.end=Object.assign({},wt?R[wt][1].start:Je[1].end),R.splice(wt||se,0,["exit",on,Je[2]]),se++,ee++}if(Je[1].type==="listItemPrefix"){const Nn={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};on=Nn,R.splice(se,0,["enter",Nn,Je[2]]),se++,ee++,Tr=void 0,kr=!0}}}return R[z][1]._spread=ot,ee}function a(R,z){return ee;function ee(se){o.call(this,R(se),se),z&&z.call(this,se)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(R,z,ee){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([z,ee||void 0]),R.position={start:Ht(z.start),end:void 0}}function u(R){return z;function z(ee){R&&R.call(this,ee),c.call(this,ee)}}function c(R,z){const ee=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==R.type&&(z?z.call(this,R,se[0]):(se[1]||dd).call(this,R,se[0]));else throw new Error("Cannot close `"+R.type+"` ("+lr({start:R.start,end:R.end})+"): it’s not open");ee.position.end=Ht(R.end)}function h(){return wa(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(R){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function p(){const R=this.resume(),z=this.stack[this.stack.length-1];z.lang=R}function m(){const R=this.resume(),z=this.stack[this.stack.length-1];z.meta=R}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const R=this.resume(),z=this.stack[this.stack.length-1];z.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const R=this.resume(),z=this.stack[this.stack.length-1];z.value=R.replace(/(\r?\n|\r)$/g,"")}function I(R){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=it(this.sliceSerialize(R)).toLowerCase()}function A(){const R=this.resume(),z=this.stack[this.stack.length-1];z.title=R}function D(){const R=this.resume(),z=this.stack[this.stack.length-1];z.url=R}function F(R){const z=this.stack[this.stack.length-1];if(!z.depth){const ee=this.sliceSerialize(R).length;z.depth=ee}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function Y(R){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function O(R){const ee=this.stack[this.stack.length-1].children;let se=ee[ee.length-1];(!se||se.type!=="text")&&(se=f5(),se.position={start:Ht(R.start),end:void 0},ee.push(se)),this.stack.push(se)}function C(R){const z=this.stack.pop();z.value+=this.sliceSerialize(R),z.position.end=Ht(R.end)}function $(R){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=z.children[z.children.length-1];ee.position.end=Ht(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(O.call(this,R),C.call(this,R))}function M(){this.data.atHardBreak=!0}function U(){const R=this.resume(),z=this.stack[this.stack.length-1];z.value=R}function K(){const R=this.resume(),z=this.stack[this.stack.length-1];z.value=R}function Q(){const R=this.resume(),z=this.stack[this.stack.length-1];z.value=R}function J(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=z,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function re(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=z,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function he(R){const z=this.sliceSerialize(R),ee=this.stack[this.stack.length-2];ee.label=Ab(z),ee.identifier=it(z).toLowerCase()}function Te(){const R=this.stack[this.stack.length-1],z=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const se=R.children;ee.children=se}else ee.alt=z}function _(){const R=this.resume(),z=this.stack[this.stack.length-1];z.url=R}function Oe(){const R=this.resume(),z=this.stack[this.stack.length-1];z.title=R}function W(){this.data.inReference=void 0}function x(){this.data.referenceType="collapsed"}function we(R){const z=this.resume(),ee=this.stack[this.stack.length-1];ee.label=z,ee.identifier=it(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function ke(R){this.data.characterReferenceType=R.type}function le(R){const z=this.sliceSerialize(R),ee=this.data.characterReferenceType;let se;ee?(se=Hl(z,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=Ca(z);const ge=this.stack[this.stack.length-1];ge.value+=se}function bt(R){const z=this.stack.pop();z.position.end=Ht(R.end)}function st(R){C.call(this,R);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(R)}function xe(R){C.call(this,R);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(R)}function xt(){return{type:"blockquote",children:[]}}function yt(){return{type:"code",lang:null,meta:null,value:""}}function Sn(){return{type:"inlineCode",value:""}}function _r(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function In(){return{type:"emphasis",children:[]}}function oh(){return{type:"heading",depth:0,children:[]}}function uh(){return{type:"break"}}function lh(){return{type:"html",value:""}}function l5(){return{type:"image",title:null,url:"",alt:null}}function ch(){return{type:"link",title:null,url:"",children:[]}}function dh(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function c5(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function d5(){return{type:"paragraph",children:[]}}function h5(){return{type:"strong",children:[]}}function f5(){return{type:"text",value:""}}function p5(){return{type:"thematicBreak"}}}function Ht(e){return{line:e.line,column:e.column,offset:e.offset}}function cd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?cd(e,r):ZT(e,r)}}function ZT(e,t){let n;for(n in t)if(ld.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function dd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+lr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+lr({start:t.start,end:t.end})+") is still open")}function JT(e){const t=this;t.parser=n;function n(r){return KT(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ek(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function tk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
42
+ `}]}function nk(e,t){const n=t.value?t.value+`
43
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function rk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ik(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ak(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=wn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}function sk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ok(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hd(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function uk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hd(e,t);const i={src:wn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function lk(e,t){const n={src:wn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ck(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function dk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hd(e,t);const i={href:wn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function hk(e,t){const n={href:wn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fk(e,t,n){const r=e.all(t),i=n?pk(n):fd(t),a={},s=[];if(typeof t.checked=="boolean"){const h=r[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const h=r[o];(i||o!==0||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
44
44
  `}),h.type==="element"&&h.tagName==="p"&&!i?s.push(...h.children):s.push(h)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
45
- `});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function dk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=hd(n[r])}return t}function hd(e){const t=e.spread;return t??e.children.length>1}function hk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function fk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function mk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ht(t.children[1]),u=Jr(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function bk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const d=t.children[u],f={},p=s?s[u]:void 0;p&&(f.align=p);let m={type:"element",tagName:a,properties:f,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),c.push(m)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function Ek(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const fd=9,pd=32;function _k(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(md(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(md(t.slice(i),i>0,!1)),a.join("")}function md(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===fd||a===pd;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===fd||a===pd;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Tk(e,t){const n={type:"text",value:_k(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const xk={blockquote:XT,break:ZT,code:JT,delete:ek,emphasis:tk,footnoteReference:nk,heading:rk,html:ik,imageReference:ak,image:sk,inlineCode:ok,linkReference:uk,link:lk,listItem:ck,list:hk,paragraph:fk,root:pk,strong:mk,table:gk,tableCell:Ek,tableRow:bk,text:Tk,thematicBreak:kk,toml:hi,yaml:hi,definition:hi,footnoteDefinition:hi};function hi(){}function yk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function wk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ak(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yk,r=e.options.footnoteBackLabel||wk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const h=e.all(c),d=String(c.identifier).toUpperCase(),f=wn(d.toLowerCase());let p=0;const m=[],T=e.footnoteCounts.get(d);for(;T!==void 0&&++p<=T;){m.length>0&&m.push({type:"text",value:" "});let I=typeof n=="string"?n:n(u,p);typeof I=="string"&&(I={type:"text",value:I}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const w=h[h.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const I=w.children[w.children.length-1];I&&I.type==="text"?I.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else h.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(h,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...jt(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
45
+ `});const c={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,c),e.applyData(t,c)}function pk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fd(n[r])}return t}function fd(e){const t=e.spread;return t??e.children.length>1}function mk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function gk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ek(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _k(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ht(t.children[1]),u=Jr(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Tk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const c=[];for(;++u<o;){const d=t.children[u],f={},p=s?s[u]:void 0;p&&(f.align=p);let m={type:"element",tagName:a,properties:f,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),c.push(m)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function kk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const pd=9,md=32;function xk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const a=[];for(;r;)a.push(gd(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(gd(t.slice(i),i>0,!1)),a.join("")}function gd(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===pd||a===md;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===pd||a===md;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function yk(e,t){const n={type:"text",value:xk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function wk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ak={blockquote:ek,break:tk,code:nk,delete:rk,emphasis:ik,footnoteReference:ak,heading:sk,html:ok,imageReference:uk,image:lk,inlineCode:ck,linkReference:dk,link:hk,listItem:fk,list:mk,paragraph:gk,root:bk,strong:Ek,table:_k,tableCell:kk,tableRow:Tk,text:yk,thematicBreak:wk,toml:hi,yaml:hi,definition:hi,footnoteDefinition:hi};function hi(){}function Ck(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Sk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ik(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ck,r=e.options.footnoteBackLabel||Sk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const h=e.all(c),d=String(c.identifier).toUpperCase(),f=wn(d.toLowerCase());let p=0;const m=[],T=e.footnoteCounts.get(d);for(;T!==void 0&&++p<=T;){m.length>0&&m.push({type:"text",value:" "});let I=typeof n=="string"?n:n(u,p);typeof I=="string"&&(I={type:"text",value:I}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const w=h[h.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const I=w.children[w.children.length-1];I&&I.type==="text"?I.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else h.push(...m);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(h,!0)};e.patch(c,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Vt(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
46
46
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
47
- `}]}}const Ga={}.hasOwnProperty,Ck={};function Sk(e,t){const n=t||Ck,r=new Map,i=new Map,a=new Map,s={...xk,...n.handlers},o={all:c,applyData:Nk,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:Ik,wrap:Lk};return It(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,f=String(h.identifier).toUpperCase();d.has(f)||d.set(f,h)}}),o;function u(h,d){const f=h.type,p=o.handlers[f];if(Ga.call(o.handlers,f)&&p)return p(o,h,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in h){const{children:T,...w}=h,y=jt(w);return y.children=o.all(h),y}return jt(h)}return(o.options.unknownHandler||vk)(o,h,d)}function c(h){const d=[];if("children"in h){const f=h.children;let p=-1;for(;++p<f.length;){const m=o.one(f[p],h);if(m){if(p&&f[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=gd(m.value)),!Array.isArray(m)&&m.type==="element")){const T=m.children[0];T&&T.type==="text"&&(T.value=gd(T.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function Ik(e,t){e.position&&(t.position=il(e))}function Nk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,jt(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function vk(e,t){const n=t.data||{},r="value"in t&&!(Ga.call(n,"hProperties")||Ga.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Lk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
47
+ `}]}}const Ga={}.hasOwnProperty,Nk={};function vk(e,t){const n=t||Nk,r=new Map,i=new Map,a=new Map,s={...Ak,...n.handlers},o={all:c,applyData:Rk,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:u,options:n,patch:Lk,wrap:Dk};return It(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?r:i,f=String(h.identifier).toUpperCase();d.has(f)||d.set(f,h)}}),o;function u(h,d){const f=h.type,p=o.handlers[f];if(Ga.call(o.handlers,f)&&p)return p(o,h,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in h){const{children:T,...w}=h,y=Vt(w);return y.children=o.all(h),y}return Vt(h)}return(o.options.unknownHandler||Ok)(o,h,d)}function c(h){const d=[];if("children"in h){const f=h.children;let p=-1;for(;++p<f.length;){const m=o.one(f[p],h);if(m){if(p&&f[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=bd(m.value)),!Array.isArray(m)&&m.type==="element")){const T=m.children[0];T&&T.type==="text"&&(T.value=bd(T.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function Lk(e,t){e.position&&(t.position=al(e))}function Rk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&a&&Object.assign(n.properties,Vt(a)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ok(e,t){const n=t.data||{},r="value"in t&&!(Ga.call(n,"hProperties")||Ga.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Dk(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
48
48
  `});++r<e.length;)r&&n.push({type:"text",value:`
49
49
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
50
- `}),n}function gd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bd(e,t){const n=Sk(e,t),r=n.one(e,void 0),i=Ak(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
51
- `},i),a}function Rk(e,t){return e&&"run"in e?async function(n,r){const i=bd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bd(n,{file:r,...e||t})}}function Ed(e){if(e)throw e}var fi=Object.prototype.hasOwnProperty,_d=Object.prototype.toString,Td=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,xd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):_d.call(t)==="[object Array]"},yd=function(t){if(!t||_d.call(t)!=="[object Object]")return!1;var n=fi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&fi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||fi.call(t,i)},wd=function(t,n){Td&&n.name==="__proto__"?Td(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ad=function(t,n){if(n==="__proto__")if(fi.call(t,n)){if(kd)return kd(t,n).value}else return;return t[n]},Ok=function e(){var t,n,r,i,a,s,o=arguments[0],u=1,c=arguments.length,h=!1;for(typeof o=="boolean"&&(h=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=Ad(o,n),i=Ad(t,n),o!==i&&(h&&i&&(yd(i)||(a=xd(i)))?(a?(a=!1,s=r&&xd(r)?r:[]):s=r&&yd(r)?r:{},wd(o,{name:n,newValue:e(h,s,i)})):typeof i<"u"&&wd(o,{name:n,newValue:i}));return o};const Qa=qc(Ok);function Ka(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dk(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...c){const h=e[++a];let d=-1;if(u){s(u);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,h?Pk(h,o)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Pk(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(c){const h=c;if(o&&n)throw h;return i(h)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const pt={basename:Mk,dirname:Bk,extname:Fk,join:Hk,sep:"/"};function Mk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');cr(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Bk(e){if(cr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Fk(e){cr(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Hk(...e){let t=-1,n;for(;++t<e.length;)cr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uk(n)}function Uk(e){cr(e);const t=e.codePointAt(0)===47;let n=zk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function zk(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(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=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function cr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $k={cwd:Yk};function Yk(){return"/"}function Xa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function jk(e){if(typeof e=="string")e=new URL(e);else if(!Xa(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 Vk(e)}function Vk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Za=["history","path","basename","stem","extname","dirname"];class qk{constructor(t){let n;t?Xa(t)?n={path:t}:typeof t=="string"||Wk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":$k.cwd(),this.data={},this.history=[],this.messages=[];let r=-1;for(;++r<Za.length;){const a=Za[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Za.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pt.basename(this.path):void 0}set basename(t){es(t,"basename"),Ja(t,"basename"),this.path=pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pt.dirname(this.path):void 0}set dirname(t){Cd(this.basename,"dirname"),this.path=pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pt.extname(this.path):void 0}set extname(t){if(Ja(t,"extname"),Cd(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xa(t)&&(t=jk(t)),es(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pt.basename(this.path,this.extname):void 0}set stem(t){es(t,"stem"),Ja(t,"stem"),this.path=pt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new He(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ja(e,t){if(e&&e.includes(pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pt.sep+"`")}function es(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Cd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Wk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gk=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},Qk={}.hasOwnProperty;class ts extends Gk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Dk()}copy(){const t=new ts;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Qa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(is("data",this.frozen),this.namespace[t]=n,this):Qk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(is("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pi(t),r=this.parser||this.Parser;return ns("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ns("process",this.parser||this.Parser),rs("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=pi(t),u=r.parse(o);r.run(u,o,function(h,d,f){if(h||!d||!f)return c(h);const p=d,m=r.stringify(p,f);Zk(m)?f.value=m:f.result=m,c(h,f)});function c(h,d){h||!d?s(h):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),ns("processSync",this.parser||this.Parser),rs("processSync",this.compiler||this.Compiler),this.process(t,i),Id("processSync","process",n),r;function i(a,s){n=!0,Ed(a),r=s}}run(t,n,r){Sd(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const u=pi(n);i.run(t,u,c);function c(h,d,f){const p=d||t;h?o(h):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Id("runSync","run",r),i;function a(s,o){Ed(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=pi(n),i=this.compiler||this.Compiler;return rs("stringify",i),Sd(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(is("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;u(h,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=Qa(!0,i.settings,c.settings))}function o(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...h]);else if(h.length>0){let[p,...m]=h;const T=r[f][1];Ka(T)&&Ka(p)&&(p=Qa(!0,T,p)),r[f]=[c,p,...m]}}}}const Kk=new ts().freeze();function ns(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function is(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 Sd(e){if(!Ka(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Id(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pi(e){return Xk(e)?e:new qk(e)}function Xk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Zk(e){return typeof e=="string"||Jk(e)}function Jk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function as(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nn=as();function Nd(e){nn=e}var rn={exec:()=>null};function le(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace($e.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var e6=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},t6=/^(?:[ \t]*(?:\n|$))+/,n6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,r6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,dr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,i6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ss=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,vd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ld=le(vd).replace(/bull/g,ss).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),a6=le(vd).replace(/bull/g,ss).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),os=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,s6=/^[^\n]+/,us=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,o6=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",us).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),u6=le(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ss).getRegex(),mi="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ls=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,l6=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ls).replace("tag",mi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rd=le(os).replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),c6=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Rd).getRegex(),cs={blockquote:c6,code:n6,def:o6,fences:r6,heading:i6,hr:dr,html:l6,lheading:Ld,list:u6,newline:t6,paragraph:Rd,table:rn,text:s6},Od=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),d6={...cs,lheading:a6,table:Od,paragraph:le(os).replace("hr",dr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Od).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex()},h6={...cs,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ls).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(os).replace("hr",dr).replace("heading",` *#{1,6} *[^
52
- ]`).replace("lheading",Ld).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},f6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,p6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dd=/^( {2,}|\\)\n(?!\s*$)/,m6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gi=/[\p{P}\p{S}]/u,ds=/[\s\p{P}\p{S}]/u,Pd=/[^\s\p{P}\p{S}]/u,g6=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ds).getRegex(),Md=/(?!~)[\p{P}\p{S}]/u,b6=/(?!~)[\s\p{P}\p{S}]/u,E6=/(?:[^\s\p{P}\p{S}]|~)/u,Bd=/(?![*_])[\p{P}\p{S}]/u,_6=/(?![*_])[\s\p{P}\p{S}]/u,T6=/(?:[^\s\p{P}\p{S}]|[*_])/u,k6=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",e6?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fd=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,x6=le(Fd,"u").replace(/punct/g,gi).getRegex(),y6=le(Fd,"u").replace(/punct/g,Md).getRegex(),Hd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",w6=le(Hd,"gu").replace(/notPunctSpace/g,Pd).replace(/punctSpace/g,ds).replace(/punct/g,gi).getRegex(),A6=le(Hd,"gu").replace(/notPunctSpace/g,E6).replace(/punctSpace/g,b6).replace(/punct/g,Md).getRegex(),C6=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pd).replace(/punctSpace/g,ds).replace(/punct/g,gi).getRegex(),S6=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Bd).getRegex(),I6="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",N6=le(I6,"gu").replace(/notPunctSpace/g,T6).replace(/punctSpace/g,_6).replace(/punct/g,Bd).getRegex(),v6=le(/\\(punct)/,"gu").replace(/punct/g,gi).getRegex(),L6=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),R6=le(ls).replace("(?:-->|$)","-->").getRegex(),O6=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",R6).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,D6=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ud=le(/^!?\[(label)\]\[(ref)\]/).replace("label",bi).replace("ref",us).getRegex(),zd=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",us).getRegex(),P6=le("reflink|nolink(?!\\()","g").replace("reflink",Ud).replace("nolink",zd).getRegex(),$d=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hs={_backpedal:rn,anyPunctuation:v6,autolink:L6,blockSkip:k6,br:Dd,code:p6,del:rn,delLDelim:rn,delRDelim:rn,emStrongLDelim:x6,emStrongRDelimAst:w6,emStrongRDelimUnd:C6,escape:f6,link:D6,nolink:zd,punctuation:g6,reflink:Ud,reflinkSearch:P6,tag:O6,text:m6,url:rn},M6={...hs,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",bi).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bi).getRegex()},fs={...hs,emStrongRDelimAst:A6,emStrongLDelim:y6,delLDelim:S6,delRDelim:N6,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",$d).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",$d).getRegex()},B6={...fs,br:le(Dd).replace("{2,}","*").getRegex(),text:le(fs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ei={normal:cs,gfm:d6,pedantic:h6},hr={normal:hs,gfm:fs,breaks:B6,pedantic:M6},F6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yd=e=>F6[e];function mt(e,t){if(t){if($e.escapeTest.test(e))return e.replace($e.escapeReplace,Yd)}else if($e.escapeTestNoEncode.test(e))return e.replace($e.escapeReplaceNoEncode,Yd);return e}function jd(e){try{e=encodeURI(e).replace($e.percentDecode,"%")}catch{return null}return e}function Vd(e,t){let n=e.replace($e.findPipe,(a,s,o)=>{let u=!1,c=s;for(;--c>=0&&o[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split($e.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace($e.slashPipe,"|");return r}function fr(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function H6(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function U6(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=i,n++;return r}function qd(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,u}function z6(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
50
+ `}),n}function bd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ed(e,t){const n=vk(e,t),r=n.one(e,void 0),i=Ik(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
51
+ `},i),a}function Pk(e,t){return e&&"run"in e?async function(n,r){const i=Ed(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ed(n,{file:r,...e||t})}}function _d(e){if(e)throw e}var fi=Object.prototype.hasOwnProperty,Td=Object.prototype.toString,kd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,yd=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Td.call(t)==="[object Array]"},wd=function(t){if(!t||Td.call(t)!=="[object Object]")return!1;var n=fi.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&fi.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||fi.call(t,i)},Ad=function(t,n){kd&&n.name==="__proto__"?kd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Cd=function(t,n){if(n==="__proto__")if(fi.call(t,n)){if(xd)return xd(t,n).value}else return;return t[n]},Mk=function e(){var t,n,r,i,a,s,o=arguments[0],u=1,c=arguments.length,h=!1;for(typeof o=="boolean"&&(h=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(t=arguments[u],t!=null)for(n in t)r=Cd(o,n),i=Cd(t,n),o!==i&&(h&&i&&(wd(i)||(a=yd(i)))?(a?(a=!1,s=r&&yd(r)?r:[]):s=r&&wd(r)?r:{},Ad(o,{name:n,newValue:e(h,s,i)})):typeof i<"u"&&Ad(o,{name:n,newValue:i}));return o};const Qa=Wc(Mk);function Ka(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bk(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(u,...c){const h=e[++a];let d=-1;if(u){s(u);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,h?Fk(h,o)(...c):s(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Fk(e,t){let n;return r;function r(...s){const o=e.length>s.length;let u;o&&s.push(i);try{u=e.apply(this,s)}catch(c){const h=c;if(o&&n)throw h;return i(h)}o||(u&&u.then&&typeof u.then=="function"?u.then(a,i):u instanceof Error?i(u):a(u))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const pt={basename:Hk,dirname:Uk,extname:zk,join:$k,sep:"/"};function Hk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dr(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Uk(e){if(dr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function zk(e){dr(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function $k(...e){let t=-1,n;for(;++t<e.length;)dr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Yk(n)}function Yk(e){dr(e);const t=e.codePointAt(0)===47;let n=jk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jk(e,t){let n="",r=0,i=-1,a=0,s=-1,o,u;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(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=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function dr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Vk={cwd:qk};function qk(){return"/"}function Xa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wk(e){if(typeof e=="string")e=new URL(e);else if(!Xa(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 Gk(e)}function Gk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Za=["history","path","basename","stem","extname","dirname"];class Qk{constructor(t){let n;t?Xa(t)?n={path:t}:typeof t=="string"||Kk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Vk.cwd(),this.data={},this.history=[],this.messages=[];let r=-1;for(;++r<Za.length;){const a=Za[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)Za.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pt.basename(this.path):void 0}set basename(t){es(t,"basename"),Ja(t,"basename"),this.path=pt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pt.dirname(this.path):void 0}set dirname(t){Sd(this.basename,"dirname"),this.path=pt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pt.extname(this.path):void 0}set extname(t){if(Ja(t,"extname"),Sd(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xa(t)&&(t=Wk(t)),es(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pt.basename(this.path,this.extname):void 0}set stem(t){es(t,"stem"),Ja(t,"stem"),this.path=pt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new He(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ja(e,t){if(e&&e.includes(pt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pt.sep+"`")}function es(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sd(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Kk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xk=function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a},Zk={}.hasOwnProperty;class ts extends Xk{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Bk()}copy(){const t=new ts;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Qa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(is("data",this.frozen),this.namespace[t]=n,this):Zk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(is("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=pi(t),r=this.parser||this.Parser;return ns("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ns("process",this.parser||this.Parser),rs("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=pi(t),u=r.parse(o);r.run(u,o,function(h,d,f){if(h||!d||!f)return c(h);const p=d,m=r.stringify(p,f);t6(m)?f.value=m:f.result=m,c(h,f)});function c(h,d){h||!d?s(h):a?a(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),ns("processSync",this.parser||this.Parser),rs("processSync",this.compiler||this.Compiler),this.process(t,i),Nd("processSync","process",n),r;function i(a,s){n=!0,_d(a),r=s}}run(t,n,r){Id(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const u=pi(n);i.run(t,u,c);function c(h,d,f){const p=d||t;h?o(h):s?s(p):r(void 0,p,f)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Nd("runSync","run",r),i;function a(s,o){_d(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=pi(n),i=this.compiler||this.Compiler;return rs("stringify",i),Id(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(is("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...d]=c;u(h,d)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=Qa(!0,i.settings,c.settings))}function o(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const d=c[h];a(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,h){let d=-1,f=-1;for(;++d<r.length;)if(r[d][0]===c){f=d;break}if(f===-1)r.push([c,...h]);else if(h.length>0){let[p,...m]=h;const T=r[f][1];Ka(T)&&Ka(p)&&(p=Qa(!0,T,p)),r[f]=[c,p,...m]}}}}const Jk=new ts().freeze();function ns(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function is(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 Id(e){if(!Ka(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Nd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pi(e){return e6(e)?e:new Qk(e)}function e6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function t6(e){return typeof e=="string"||n6(e)}function n6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function as(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var rn=as();function vd(e){rn=e}var an={exec:()=>null};function ue(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace($e.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var r6=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),$e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},i6=/^(?:[ \t]*(?:\n|$))+/,a6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,s6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,o6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ss=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ld=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rd=ue(Ld).replace(/bull/g,ss).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),u6=ue(Ld).replace(/bull/g,ss).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),os=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,l6=/^[^\n]+/,us=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,c6=ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",us).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),d6=ue(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ss).getRegex(),mi="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ls=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,h6=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ls).replace("tag",mi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Od=ue(os).replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),f6=ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Od).getRegex(),cs={blockquote:f6,code:a6,def:c6,fences:s6,heading:o6,hr,html:h6,lheading:Rd,list:d6,newline:i6,paragraph:Od,table:an,text:l6},Dd=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex(),p6={...cs,lheading:u6,table:Dd,paragraph:ue(os).replace("hr",hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mi).getRegex()},m6={...cs,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ls).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:an,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(os).replace("hr",hr).replace("heading",` *#{1,6} *[^
52
+ ]`).replace("lheading",Rd).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},g6=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,b6=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pd=/^( {2,}|\\)\n(?!\s*$)/,E6=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,gi=/[\p{P}\p{S}]/u,ds=/[\s\p{P}\p{S}]/u,Md=/[^\s\p{P}\p{S}]/u,_6=ue(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ds).getRegex(),Bd=/(?!~)[\p{P}\p{S}]/u,T6=/(?!~)[\s\p{P}\p{S}]/u,k6=/(?:[^\s\p{P}\p{S}]|~)/u,Fd=/(?![*_])[\p{P}\p{S}]/u,x6=/(?![*_])[\s\p{P}\p{S}]/u,y6=/(?:[^\s\p{P}\p{S}]|[*_])/u,w6=ue(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",r6?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hd=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,A6=ue(Hd,"u").replace(/punct/g,gi).getRegex(),C6=ue(Hd,"u").replace(/punct/g,Bd).getRegex(),Ud="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",S6=ue(Ud,"gu").replace(/notPunctSpace/g,Md).replace(/punctSpace/g,ds).replace(/punct/g,gi).getRegex(),I6=ue(Ud,"gu").replace(/notPunctSpace/g,k6).replace(/punctSpace/g,T6).replace(/punct/g,Bd).getRegex(),N6=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Md).replace(/punctSpace/g,ds).replace(/punct/g,gi).getRegex(),v6=ue(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Fd).getRegex(),L6="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",R6=ue(L6,"gu").replace(/notPunctSpace/g,y6).replace(/punctSpace/g,x6).replace(/punct/g,Fd).getRegex(),O6=ue(/\\(punct)/,"gu").replace(/punct/g,gi).getRegex(),D6=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),P6=ue(ls).replace("(?:-->|$)","-->").getRegex(),M6=ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",P6).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),bi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,B6=ue(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",bi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),zd=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",bi).replace("ref",us).getRegex(),$d=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",us).getRegex(),F6=ue("reflink|nolink(?!\\()","g").replace("reflink",zd).replace("nolink",$d).getRegex(),Yd=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hs={_backpedal:an,anyPunctuation:O6,autolink:D6,blockSkip:w6,br:Pd,code:b6,del:an,delLDelim:an,delRDelim:an,emStrongLDelim:A6,emStrongRDelimAst:S6,emStrongRDelimUnd:N6,escape:g6,link:B6,nolink:$d,punctuation:_6,reflink:zd,reflinkSearch:F6,tag:M6,text:E6,url:an},H6={...hs,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",bi).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",bi).getRegex()},fs={...hs,emStrongRDelimAst:I6,emStrongLDelim:C6,delLDelim:v6,delRDelim:R6,url:ue(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yd).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ue(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yd).getRegex()},U6={...fs,br:ue(Pd).replace("{2,}","*").getRegex(),text:ue(fs.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ei={normal:cs,gfm:p6,pedantic:m6},fr={normal:hs,gfm:fs,breaks:U6,pedantic:H6},z6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jd=e=>z6[e];function mt(e,t){if(t){if($e.escapeTest.test(e))return e.replace($e.escapeReplace,jd)}else if($e.escapeTestNoEncode.test(e))return e.replace($e.escapeReplaceNoEncode,jd);return e}function Vd(e){try{e=encodeURI(e).replace($e.percentDecode,"%")}catch{return null}return e}function qd(e,t){let n=e.replace($e.findPipe,(a,s,o)=>{let u=!1,c=s;for(;--c>=0&&o[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split($e.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace($e.slashPipe,"|");return r}function pr(e,t,n){let r=e.length;if(r===0)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function $6(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Y6(e,t=0){let n=t,r="";for(let i of e)if(i===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=i,n++;return r}function Wd(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,u}function j6(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
53
53
  `).map(a=>{let s=a.match(n.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
54
- `)}var _i=class{constructor(e){fe(this,"options");fe(this,"rules");fe(this,"lexer");this.options=e||nn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:fr(n,`
55
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=z6(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=fr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:fr(t[0],`
56
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=fr(t[0],`
54
+ `)}var _i=class{constructor(e){fe(this,"options");fe(this,"rules");fe(this,"lexer");this.options=e||rn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:pr(n,`
55
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=j6(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=pr(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:pr(t[0],`
56
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=pr(t[0],`
57
57
  `).split(`
58
58
  `),r="",i="",a=[];for(;n.length>0;){let s=!1,o=[],u;for(u=0;u<n.length;u++)if(this.rules.other.blockquoteStart.test(n[u]))o.push(n[u]),s=!0;else if(!s)o.push(n[u]);else break;n=n.slice(u);let c=o.join(`
59
59
  `),h=c.replace(this.rules.other.blockquoteSetextReplace,`
@@ -64,16 +64,16 @@ ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
64
64
  `),T=this.blockquote(m);a[a.length-1]=T,r=r.substring(0,r.length-p.raw.length)+T.raw,i=i.substring(0,i.length-p.text.length)+T.text;break}else if(f?.type==="list"){let p=f,m=p.raw+`
65
65
  `+n.join(`
66
66
  `),T=this.list(m);a[a.length-1]=T,r=r.substring(0,r.length-f.raw.length)+T.raw,i=i.substring(0,i.length-p.raw.length)+T.raw,n=m.substring(a.at(-1).raw.length).split(`
67
- `);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let u=!1,c="",h="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=U6(t[2].split(`
67
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let u=!1,c="",h="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=Y6(t[2].split(`
68
68
  `,1)[0],t[1].length),f=e.split(`
69
69
  `,1)[0],p=!d.trim(),m=0;if(this.options.pedantic?(m=2,h=d.trimStart()):p?m=t[1].length+1:(m=d.search(this.rules.other.nonSpaceChar),m=m>4?1:m,h=d.slice(m),m+=t[1].length),p&&this.rules.other.blankLine.test(f)&&(c+=f+`
70
- `,e=e.substring(f.length+1),u=!0),!u){let T=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),y=this.rules.other.fencesBeginRegex(m),I=this.rules.other.headingBeginRegex(m),A=this.rules.other.htmlBeginRegex(m),P=this.rules.other.blockquoteBeginRegex(m);for(;e;){let H=e.split(`
71
- `,1)[0],S;if(f=H,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),S=f):S=f.replace(this.rules.other.tabCharGlobal," "),y.test(f)||I.test(f)||A.test(f)||P.test(f)||T.test(f)||w.test(f))break;if(S.search(this.rules.other.nonSpaceChar)>=m||!f.trim())h+=`
70
+ `,e=e.substring(f.length+1),u=!0),!u){let T=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),y=this.rules.other.fencesBeginRegex(m),I=this.rules.other.headingBeginRegex(m),A=this.rules.other.htmlBeginRegex(m),D=this.rules.other.blockquoteBeginRegex(m);for(;e;){let F=e.split(`
71
+ `,1)[0],S;if(f=F,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),S=f):S=f.replace(this.rules.other.tabCharGlobal," "),y.test(f)||I.test(f)||A.test(f)||D.test(f)||T.test(f)||w.test(f))break;if(S.search(this.rules.other.nonSpaceChar)>=m||!f.trim())h+=`
72
72
  `+S.slice(m);else{if(p||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(d)||I.test(d)||w.test(d))break;h+=`
73
- `+f}p=!f.trim(),c+=H+`
74
- `,e=e.substring(H.length+1),d=S.slice(m)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0)),i.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),i.raw+=c}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u of i.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),u.tokens[0]?.type==="text"||u.tokens[0]?.type==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let c=this.rules.other.listTaskCheckbox.exec(u.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};u.checked=h.checked,i.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=h.raw+u.tokens[0].raw,u.tokens[0].text=h.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(h)):u.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):u.tokens.unshift(h)}}if(!i.loose){let c=u.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=h}}if(i.loose)for(let u of i.items){u.loose=!0;for(let c of u.tokens)c.type==="text"&&(c.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Vd(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
75
- `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(Vd(s,a.header.length).map((o,u)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
76
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=fr(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=H6(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),qd(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return qd(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,u=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);(r=c.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+u);let h=[...r[0]][0].length,d=e.slice(0,i+r.index+h+s);if(Math.min(i,s)%2){let p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(r=u.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(s=[...a].length,s!==i))continue;if(r[3]||r[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let c=[...r[0]][0].length,h=e.slice(0,i+r.index+c+s),d=h.slice(i,-i);return{type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},at=class Ss{constructor(t){fe(this,"tokens");fe(this,"options");fe(this,"state");fe(this,"inlineQueue");fe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||nn,this.options.tokenizer=this.options.tokenizer||new _i,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:$e,block:Ei.normal,inline:hr.normal};this.options.pedantic?(n.block=Ei.pedantic,n.inline=hr.pedantic):this.options.gfm&&(n.block=Ei.gfm,this.options.breaks?n.inline=hr.breaks:n.inline=hr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ei,inline:hr}}static lex(t,n){return new Ss(n).lex(t)}static lexInline(t,n){return new Ss(n).inlineTokens(t)}lex(t){t=t.replace($e.carriageReturn,`
73
+ `+f}p=!f.trim(),c+=F+`
74
+ `,e=e.substring(F.length+1),d=S.slice(m)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(s=!0)),i.items.push({type:"list_item",raw:c,task:!!this.options.gfm&&this.rules.other.listIsTask.test(h),loose:!1,text:h,tokens:[]}),i.raw+=c}let o=i.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let u of i.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),u.tokens[0]?.type==="text"||u.tokens[0]?.type==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}}let c=this.rules.other.listTaskCheckbox.exec(u.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};u.checked=h.checked,i.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=h.raw+u.tokens[0].raw,u.tokens[0].text=h.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(h)):u.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):u.tokens.unshift(h)}}if(!i.loose){let c=u.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));i.loose=h}}if(i.loose)for(let u of i.items){u.loose=!0;for(let c of u.tokens)c.type==="text"&&(c.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=qd(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
75
+ `):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?a.align.push("right"):this.rules.other.tableAlignCenter.test(s)?a.align.push("center"):this.rules.other.tableAlignLeft.test(s)?a.align.push("left"):a.align.push(null);for(let s=0;s<n.length;s++)a.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:a.align[s]});for(let s of i)a.rows.push(qd(s,a.header.length).map((o,u)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
76
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=pr(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=$6(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],i="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Wd(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[r.toLowerCase()];if(!i){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Wd(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,u=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+i);(r=c.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(s=[...a].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&i%3&&!((i+s)%3)){u+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+u);let h=[...r[0]][0].length,d=e.slice(0,i+r.index+h+s);if(Math.min(i,s)%2){let p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,s,o=i,u=this.rules.inline.delRDelim;for(u.lastIndex=0,t=t.slice(-1*e.length+i);(r=u.exec(t))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(s=[...a].length,s!==i))continue;if(r[3]||r[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let c=[...r[0]][0].length,h=e.slice(0,i+r.index+c+s),d=h.slice(i,-i);return{type:"del",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let i;do i=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(i!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},at=class Is{constructor(t){fe(this,"tokens");fe(this,"options");fe(this,"state");fe(this,"inlineQueue");fe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rn,this.options.tokenizer=this.options.tokenizer||new _i,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:$e,block:Ei.normal,inline:fr.normal};this.options.pedantic?(n.block=Ei.pedantic,n.inline=fr.pedantic):this.options.gfm&&(n.block=Ei.gfm,this.options.breaks?n.inline=fr.breaks:n.inline=fr.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ei,inline:fr}}static lex(t,n){return new Is(n).lex(t)}static lexInline(t,n){return new Is(n).inlineTokens(t)}lex(t){t=t.replace($e.carriageReturn,`
77
77
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace($e.tabCharGlobal," ").replace($e.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(s=>(i=s.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let s=n.at(-1);i.raw.length===1&&s!==void 0?s.raw+=`
78
78
  `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
79
79
  `)?"":`
@@ -87,7 +87,7 @@ ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
87
87
  `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i),r=a.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
88
88
  `)?"":`
89
89
  `)+i.raw,s.text+=`
90
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent)break;throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;t;){s||(o=""),s=!1;let u;if(this.options.extensions?.inline?.some(h=>(u=h.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let h=n.at(-1);u.type==="text"&&h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,o)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t,r,o)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(u=this.tokenizer.inlineText(c)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),s=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent)break;throw new Error(h)}}return n}},Ti=class{constructor(e){fe(this,"options");fe(this,"parser");this.options=e||nn}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match($e.notSpaceStart)?.[0],i=e.replace($e.endingNewline,"")+`
90
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(i);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent)break;throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=i[2]?i[2].length:0,r=r.slice(0,i.index+a)+"["+"a".repeat(i[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;t;){s||(o=""),s=!1;let u;if(this.options.extensions?.inline?.some(h=>(u=h.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let h=n.at(-1);u.type==="text"&&h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,o)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t,r,o)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(u=this.tokenizer.inlineText(c)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),s=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent)break;throw new Error(h)}}return n}},Ti=class{constructor(e){fe(this,"options");fe(this,"parser");this.options=e||rn}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match($e.notSpaceStart)?.[0],i=e.replace($e.endingNewline,"")+`
91
91
  `;return r?'<pre><code class="language-'+mt(r)+'">'+(n?i:mt(i,!0))+`</code></pre>
92
92
  `:"<pre><code>"+(n?i:mt(i,!0))+`</code></pre>
93
93
  `}blockquote({tokens:e}){return`<blockquote>
@@ -105,63 +105,25 @@ ${this.parser.parse(e)}</blockquote>
105
105
  `}tablerow({text:e}){return`<tr>
106
106
  ${e}</tr>
107
107
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
108
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${mt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=jd(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+mt(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=jd(e);if(i===null)return mt(n);e=i;let a=`<img src="${e}" alt="${mt(n)}"`;return t&&(a+=` title="${mt(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:mt(e.text)}},ps=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class Is{constructor(t){fe(this,"options");fe(this,"renderer");fe(this,"textRenderer");this.options=t||nn,this.options.renderer=this.options.renderer||new Ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ps}static parse(t,n){return new Is(n).parse(t)}static parseInline(t,n){return new Is(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=o||"";continue}}let a=i;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let s=a;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(o)}}}return r}},pr=(Ni=class{constructor(e){fe(this,"options");fe(this,"block");this.options=e||nn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?gt.parse:gt.parseInline}},fe(Ni,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),fe(Ni,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ni),$6=class{constructor(...e){fe(this,"defaults",as());fe(this,"options",this.setOptions);fe(this,"parse",this.parseMarkdown(!0));fe(this,"parseInline",this.parseMarkdown(!1));fe(this,"Parser",gt);fe(this,"Renderer",Ti);fe(this,"TextRenderer",ps);fe(this,"Lexer",at);fe(this,"Tokenizer",_i);fe(this,"Hooks",pr);this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new Ti(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=n.renderer[s],u=i[s];i[s]=(...c)=>{let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new _i(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=n.tokenizer[s],u=i[s];i[s]=(...c)=>{let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new pr;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=n.hooks[s],u=i[s];pr.passThroughHooks.has(a)?i[s]=c=>{if(this.defaults.async&&pr.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await o.call(i,c);return u.call(i,d)})();let h=o.call(i,c);return u.call(i,h)}:i[s]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(i,c);return d===!1&&(d=await u.apply(i,c)),d})();let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return at.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?at.lex:at.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser():e?gt.parse:gt.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?at.lex:at.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?gt.parse:gt.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
109
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+mt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},an=new $6;function ye(e,t){return an.parse(e,t)}ye.options=ye.setOptions=function(e){return an.setOptions(e),ye.defaults=an.defaults,Nd(ye.defaults),ye},ye.getDefaults=as,ye.defaults=nn,ye.use=function(...e){return an.use(...e),ye.defaults=an.defaults,Nd(ye.defaults),ye},ye.walkTokens=function(e,t){return an.walkTokens(e,t)},ye.parseInline=an.parseInline,ye.Parser=gt,ye.parser=gt.parse,ye.Renderer=Ti,ye.TextRenderer=ps,ye.Lexer=at,ye.lexer=at.lex,ye.Tokenizer=_i,ye.Hooks=pr,ye.parse=ye;var Y6=300,j6="300px",V6=500;function q6(e={}){let{immediate:t=!1,debounceDelay:n=Y6,rootMargin:r=j6,idleTimeout:i=V6}=e,[a,s]=de(!1),o=ve(null),u=ve(null),c=ve(null),h=Ae(()=>p=>{let m=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),d=Ae(()=>typeof window<"u"&&window.requestIdleCallback?(p,m)=>window.requestIdleCallback(p,m):h,[h]),f=Ae(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return Se(()=>{if(t){s(!0);return}let p=o.current;if(!p)return;u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null);let m=()=>{u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null)},T=A=>{c.current=d(P=>{P.timeRemaining()>0||P.didTimeout?(s(!0),A.disconnect()):c.current=d(()=>{s(!0),A.disconnect()},{timeout:i/2})},{timeout:i})},w=A=>{m(),u.current=window.setTimeout(()=>{var P,H;let S=A.takeRecords();(S.length===0||(H=(P=S.at(-1))==null?void 0:P.isIntersecting)!=null&&H)&&T(A)},n)},y=(A,P)=>{A.isIntersecting?w(P):m()},I=new IntersectionObserver(A=>{for(let P of A)y(P,I)},{rootMargin:r,threshold:0});return I.observe(p),()=>{u.current&&clearTimeout(u.current),c.current&&f(c.current),I.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:o}}var Wd=/\s/,W6=/^\s+$/,G6=new Set(["code","pre","svg","math","annotation"]),Q6=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",K6=e=>e.some(t=>Q6(t)&&G6.has(t.tagName)),X6=e=>{let t=[],n="",r=!1;for(let i of e){let a=Wd.test(i);a!==r&&n&&(t.push(n),n=""),n+=i,r=a}return n&&t.push(n),t},Z6=e=>{let t=[],n="";for(let r of e)Wd.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},J6=(e,t,n,r)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:`--sd-animation:sd-${t};--sd-duration:${n}ms;--sd-easing:${r}`},children:[{type:"text",value:e}]}),ex=(e,t,n)=>{let r=t.at(-1);if(!(r&&"children"in r))return;if(K6(t))return fn;let i=r,a=i.children.indexOf(e);if(a===-1)return;let s=e.value;if(!s.trim())return;let o=(n.sep==="char"?Z6(s):X6(s)).map(u=>W6.test(u)?{type:"text",value:u}:J6(u,n.animation,n.duration,n.easing));return i.children.splice(a,1,...o),a+o.length};function ms(e){var t,n,r,i;let a={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(i=e?.sep)!=null?i:"word"};return{name:"animate",type:"animate",rehypePlugin:()=>s=>{Qi(s,"text",(o,u)=>ex(o,u,a))}}}ms();var Gd=Sr(!1),tx=()=>Ye(Gd),K=(...e)=>N_(z3(e)),Cn=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},nx=K("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),rx=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),a=n.slice(r+1).trim();i&&a&&(t[i]=a)}}return t},Qd=he(({children:e,result:t,language:n,className:r,...i})=>{let a=Ae(()=>{let s={};return t.bg&&(s["--sdm-bg"]=t.bg),t.fg&&(s["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(s,rx(t.rootStyle)),s},[t.bg,t.fg,t.rootStyle]);return g("div",{className:K(r,"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...i,children:g("pre",{className:K(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:a,children:g("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:t.tokens.map((s,o)=>g("span",{className:nx,children:s.map((u,c)=>{let h={},d=!!u.bgColor;if(u.color&&(h["--sdm-c"]=u.color),u.bgColor&&(h["--sdm-tbg"]=u.bgColor),u.htmlStyle)for(let[f,p]of Object.entries(u.htmlStyle))f==="color"?h["--sdm-c"]=p:f==="background-color"?(h["--sdm-tbg"]=p,d=!0):h[f]=p;return g("span",{className:K("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",d&&"bg-[var(--sdm-tbg)]",d&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:h,...u.htmlAttrs,children:u.content},c)})},o))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),ix=({className:e,language:t,style:n,isIncomplete:r,...i})=>g("div",{className:K("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i}),Kd=Sr({code:""}),Xd=()=>Ye(Kd),ax=({language:e})=>g("div",{className:"flex h-8 items-center text-muted-foreground text-xs","data-language":e,"data-streamdown":"code-block-header",children:g("span",{className:"ml-1 font-mono lowercase",children:e})}),sx=/\n+$/,ox=Lo(()=>Promise.resolve().then(()=>t5).then(e=>({default:e.HighlightedCodeBlockBody}))),ux=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,...a})=>{let s=Ae(()=>e.replace(sx,""),[e]),o=Ae(()=>({bg:"transparent",fg:"inherit",tokens:s.split(`
110
- `).map(u=>[{content:u,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[s]);return g(Kd.Provider,{value:{code:e},children:g(ix,{isIncomplete:i,language:t,children:[g(ax,{language:t}),r?g("div",{className:"pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end",children:g("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur","data-streamdown":"code-block-actions",children:r})}):null,g(Pn,{fallback:g(Qd,{className:n,language:t,result:o,...a}),children:g(ox,{className:n,code:s,language:t,raw:o,...a})})]})})},gs=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),bs=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),ki=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),lx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[g("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),cx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),dx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),Zd=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),Jd=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),hx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),fx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),e0=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let[o,u]=de(!1),c=ve(0),{code:h}=Xd(),{isAnimating:d}=Ye(Ze),f=a??h,p=async()=>{var T;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(f),u(!0),e?.(),c.current=window.setTimeout(()=>u(!1),n))}catch(w){t?.(w)}};Se(()=>()=>{window.clearTimeout(c.current)},[]);let m=o?gs:bs;return g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:p,title:"Copy Code",type:"button",...s,children:r??g(m,{size:14})})},t0={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},px=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let{code:o}=Xd(),{isAnimating:u}=Ye(Ze),c=a??o,h=`file.${n&&n in t0?t0[n]:"txt"}`,d="text/plain",f=()=>{try{Cn(h,c,d),e?.()}catch(p){t?.(p)}};return g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:f,title:"Download file",type:"button",...s,children:r??g(ki,{size:14})})},mx=()=>g("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[g("div",{className:"h-[46px] w-full bg-muted/80"}),g("div",{className:"flex w-full items-center justify-center p-4",children:g(lx,{className:"size-4 animate-spin"})})]}),gx=/\.[^/.]+$/,bx=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,...s})=>{let o=ve(null),[u,c]=de(!1),[h,d]=de(!1),f=s.width!=null||s.height!=null,p=(u||f)&&!h,m=h&&!f;Se(()=>{let I=o.current;if(I!=null&&I.complete){let A=I.naturalWidth>0;c(A),d(!A)}},[]);let T=Ue(I=>{c(!0),d(!1),i?.(I)},[i]),w=Ue(I=>{c(!1),d(!0),a?.(I)},[a]),y=async()=>{if(n)try{let I=await(await fetch(n)).blob(),A=new URL(n,window.location.origin).pathname.split("/").pop()||"",P=A.split(".").pop(),H=A.includes(".")&&P!==void 0&&P.length<=4,S="";if(H)S=A;else{let Y=I.type,L="png";Y.includes("jpeg")||Y.includes("jpg")?L="jpg":Y.includes("png")?L="png":Y.includes("svg")?L="svg":Y.includes("gif")?L="gif":Y.includes("webp")&&(L="webp"),S=`${(r||A||"image").replace(gx,"")}.${L}`}Cn(S,I,I.type)}catch{window.open(n,"_blank")}};return n?g("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[g("img",{alt:r,className:K("max-w-full rounded-lg",m&&"hidden",t),"data-streamdown":"image",onError:w,onLoad:T,ref:o,src:n,...s}),m&&g("span",{className:"text-muted-foreground text-xs italic","data-streamdown":"image-fallback",children:"Image not available"}),g("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),p&&g("button",{className:K("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:y,title:"Download image",type:"button",children:g(ki,{size:14})})]}):null},mr=0,Ex=()=>{mr+=1,mr===1&&(document.body.style.overflow="hidden")},_x=()=>{mr=Math.max(0,mr-1),mr===0&&(document.body.style.overflow="")},Tx=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let[i,a]=de(!1),s=Ue(async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch{}},[e]),o=Ue(()=>{r(),n()},[r,n]);return Se(()=>{if(t){Ex();let u=c=>{c.key==="Escape"&&n()};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u),_x()}}},[t,n]),t?g("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:n,onKeyDown:u=>{u.key==="Escape"&&n()},role:"button",tabIndex:0,children:g("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:u=>u.stopPropagation(),onKeyDown:u=>u.stopPropagation(),role:"presentation",children:[g("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:n,title:"Close",type:"button",children:g(Zd,{size:16})}),g("div",{className:"flex flex-col gap-2",children:[g("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[g(Jd,{size:20}),g("span",{children:"Open external link?"})]}),g("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),g("div",{className:K("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),g("div",{className:"flex gap-2",children:[g("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:s,type:"button",children:i?g(Ee,{children:[g(gs,{size:14}),g("span",{children:"Copied"})]}):g(Ee,{children:[g(bs,{size:14}),g("span",{children:"Copy link"})]})}),g("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:o,type:"button",children:[g(Jd,{size:14}),g("span",{children:"Open link"})]})]})]})}):null},Es=Sr(null),n0=()=>Ye(Es),kx=()=>{var e;let t=n0();return(e=t?.code)!=null?e:null},_s=()=>{var e;let t=n0();return(e=t?.mermaid)!=null?e:null},xx=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let u=document.createElement("canvas"),c=o.width*r,h=o.height*r;u.width=c,u.height=h;let d=u.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(o,0,0,c,h),u.toBlob(f=>{if(!f){a(new Error("Failed to create PNG blob"));return}i(f)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},yx=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[s,o]=de(!1),u=ve(null),{isAnimating:c}=Ye(Ze),h=_s(),d=async f=>{try{if(f==="mmd"){Cn("diagram.mmd",e,"text/plain"),o(!1),r?.(f);return}if(!h){a?.(new Error("Mermaid plugin not available"));return}let p=h.getMermaid(i),m=e.split("").reduce((y,I)=>(y<<5)-y+I.charCodeAt(0)|0,0),T=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:w}=await p.render(T,e);if(!w){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}if(f==="svg"){Cn("diagram.svg",w,"image/svg+xml"),o(!1),r?.(f);return}if(f==="png"){let y=await xx(w);Cn("diagram.png",y,"image/png"),r?.(f),o(!1);return}}catch(p){a?.(p)}};return Se(()=>{let f=p=>{let m=p.composedPath();u.current&&!m.includes(u.current)&&o(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[]),g("div",{className:"relative",ref:u,children:[g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>o(!s),title:"Download diagram",type:"button",children:t??g(ki,{size:14})}),s?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},gr=0,wx=()=>{gr+=1,gr===1&&(document.body.style.overflow="hidden")},Ax=()=>{gr=Math.max(0,gr-1),gr===0&&(document.body.style.overflow="")},Cx=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[s,o]=de(!1),{isAnimating:u,controls:c}=Ye(Ze),h=(()=>{if(typeof c=="boolean")return c;let f=c.mermaid;return f===!1?!1:f===!0||f===void 0?!0:f.panZoom!==!1})(),d=()=>{o(!s)};return Se(()=>{if(s){wx();let f=p=>{p.key==="Escape"&&o(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Ax()}}},[s]),Se(()=>{s?n?.():r&&r()},[s,n,r]),g(Ee,{children:[g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:u,onClick:d,title:"View fullscreen",type:"button",...a,children:g(cx,{size:14})}),s?Oo(g("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:f=>{f.key==="Escape"&&d()},role:"button",tabIndex:0,children:[g("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:g(Zd,{size:20})}),g("div",{className:"flex size-full items-center justify-center p-4",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:g(Y0,{chart:e,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]}),document.body):null]})},r0=e=>{var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let o of a)r.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],c=o.querySelectorAll("td");for(let h of c)u.push(((n=h.textContent)==null?void 0:n.trim())||"");i.push(u)}return{headers:r,rows:i}},i0=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1,c=!1;for(let h of o){if(h==='"'){u=!0,c=!0;break}(h===","||h===`
108
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${mt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Vd(e);if(i===null)return r;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+mt(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Vd(e);if(i===null)return mt(n);e=i;let a=`<img src="${e}" alt="${mt(n)}"`;return t&&(a+=` title="${mt(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:mt(e.text)}},ps=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class Ns{constructor(t){fe(this,"options");fe(this,"renderer");fe(this,"textRenderer");this.options=t||rn,this.options.renderer=this.options.renderer||new Ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ps}static parse(t,n){return new Ns(n).parse(t)}static parseInline(t,n){return new Ns(n).parseInline(t)}parse(t){let n="";for(let r=0;r<t.length;r++){let i=t[r];if(this.options.extensions?.renderers?.[i.type]){let s=i,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=o||"";continue}}let a=i;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){let r="";for(let i=0;i<t.length;i++){let a=t[i];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let s=a;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return"";throw new Error(o)}}}return r}},mr=(Ni=class{constructor(e){fe(this,"options");fe(this,"block");this.options=e||rn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?at.lex:at.lexInline}provideParser(){return this.block?gt.parse:gt.parseInline}},fe(Ni,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),fe(Ni,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ni),V6=class{constructor(...e){fe(this,"defaults",as());fe(this,"options",this.setOptions);fe(this,"parse",this.parseMarkdown(!0));fe(this,"parseInline",this.parseMarkdown(!1));fe(this,"Parser",gt);fe(this,"Renderer",Ti);fe(this,"TextRenderer",ps);fe(this,"Lexer",at);fe(this,"Tokenizer",_i);fe(this,"Hooks",mr);this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let i=r;for(let a of i.header)n=n.concat(this.walkTokens(a.tokens,t));for(let a of i.rows)for(let s of a)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=r;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{let s=i[a].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let a=t.renderers[i.name];a?t.renderers[i.name]=function(...s){let o=i.renderer.apply(this,s);return o===!1&&(o=a.apply(this,s)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new Ti(this.defaults);for(let a in n.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,o=n.renderer[s],u=i[s];i[s]=(...c)=>{let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new _i(this.defaults);for(let a in n.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,o=n.tokenizer[s],u=i[s];i[s]=(...c)=>{let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new mr;for(let a in n.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,o=n.hooks[s],u=i[s];mr.passThroughHooks.has(a)?i[s]=c=>{if(this.defaults.async&&mr.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await o.call(i,c);return u.call(i,d)})();let h=o.call(i,c);return u.call(i,h)}:i[s]=(...c)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(i,c);return d===!1&&(d=await u.apply(i,c)),d})();let h=o.apply(i,c);return h===!1&&(h=u.apply(i,c)),h}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(s){let o=[];return o.push(a.call(this,s)),i&&(o=o.concat(i.call(this,s))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return at.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?at.lex:at.lexInline)(s,i),u=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let c=await(i.hooks?await i.hooks.provideParser():e?gt.parse:gt.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(c):c})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let s=(i.hooks?i.hooks.provideLexer():e?at.lex:at.lexInline)(t,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?gt.parse:gt.parseInline)(s,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(s){return a(s)}}}onError(e,t){return n=>{if(n.message+=`
109
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+mt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},sn=new V6;function Ae(e,t){return sn.parse(e,t)}Ae.options=Ae.setOptions=function(e){return sn.setOptions(e),Ae.defaults=sn.defaults,vd(Ae.defaults),Ae},Ae.getDefaults=as,Ae.defaults=rn,Ae.use=function(...e){return sn.use(...e),Ae.defaults=sn.defaults,vd(Ae.defaults),Ae},Ae.walkTokens=function(e,t){return sn.walkTokens(e,t)},Ae.parseInline=sn.parseInline,Ae.Parser=gt,Ae.parser=gt.parse,Ae.Renderer=Ti,Ae.TextRenderer=ps,Ae.Lexer=at,Ae.lexer=at.lex,Ae.Tokenizer=_i,Ae.Hooks=mr,Ae.parse=Ae;var q6=300,W6="300px",G6=500;function Q6(e={}){let{immediate:t=!1,debounceDelay:n=q6,rootMargin:r=W6,idleTimeout:i=G6}=e,[a,s]=ce(!1),o=ve(null),u=ve(null),c=ve(null),h=Se(()=>p=>{let m=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),d=Se(()=>typeof window<"u"&&window.requestIdleCallback?(p,m)=>window.requestIdleCallback(p,m):h,[h]),f=Se(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return Ne(()=>{if(t){s(!0);return}let p=o.current;if(!p)return;u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null);let m=()=>{u.current&&(clearTimeout(u.current),u.current=null),c.current&&(f(c.current),c.current=null)},T=A=>{c.current=d(D=>{D.timeRemaining()>0||D.didTimeout?(s(!0),A.disconnect()):c.current=d(()=>{s(!0),A.disconnect()},{timeout:i/2})},{timeout:i})},w=A=>{m(),u.current=window.setTimeout(()=>{var D,F;let S=A.takeRecords();(S.length===0||(F=(D=S.at(-1))==null?void 0:D.isIntersecting)!=null&&F)&&T(A)},n)},y=(A,D)=>{A.isIntersecting?w(D):m()},I=new IntersectionObserver(A=>{for(let D of A)y(D,I)},{rootMargin:r,threshold:0});return I.observe(p),()=>{u.current&&clearTimeout(u.current),c.current&&f(c.current),I.disconnect()}},[t,n,r,i,f,d]),{shouldRender:a,containerRef:o}}var Gd=/\s/,K6=/^\s+$/,X6=new Set(["code","pre","svg","math","annotation"]),Z6=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",J6=e=>e.some(t=>Z6(t)&&X6.has(t.tagName)),ex=e=>{let t=[],n="",r=!1;for(let i of e){let a=Gd.test(i);a!==r&&n&&(t.push(n),n=""),n+=i,r=a}return n&&t.push(n),t},tx=e=>{let t=[],n="";for(let r of e)Gd.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},nx=(e,t,n,r)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:`--sd-animation:sd-${t};--sd-duration:${n}ms;--sd-easing:${r}`},children:[{type:"text",value:e}]}),rx=(e,t,n)=>{let r=t.at(-1);if(!(r&&"children"in r))return;if(J6(t))return fn;let i=r,a=i.children.indexOf(e);if(a===-1)return;let s=e.value;if(!s.trim())return;let o=(n.sep==="char"?tx(s):ex(s)).map(u=>K6.test(u)?{type:"text",value:u}:nx(u,n.animation,n.duration,n.easing));return i.children.splice(a,1,...o),a+o.length};function ms(e){var t,n,r,i;let a={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(i=e?.sep)!=null?i:"word"};return{name:"animate",type:"animate",rehypePlugin:()=>s=>{Qi(s,"text",(o,u)=>rx(o,u,a))}}}ms();var Qd=Ir(!1),ix=()=>Ye(Qd),Z=(...e)=>R_(j3(e)),Cn=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},ax=Z("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),sx=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),a=n.slice(r+1).trim();i&&a&&(t[i]=a)}}return t},Kd=de(({children:e,result:t,language:n,className:r,...i})=>{let a=Se(()=>{let s={};return t.bg&&(s["--sdm-bg"]=t.bg),t.fg&&(s["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(s,sx(t.rootStyle)),s},[t.bg,t.fg,t.rootStyle]);return g("div",{className:Z(r,"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...i,children:g("pre",{className:Z(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:a,children:g("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:t.tokens.map((s,o)=>g("span",{className:ax,children:s.map((u,c)=>{let h={},d=!!u.bgColor;if(u.color&&(h["--sdm-c"]=u.color),u.bgColor&&(h["--sdm-tbg"]=u.bgColor),u.htmlStyle)for(let[f,p]of Object.entries(u.htmlStyle))f==="color"?h["--sdm-c"]=p:f==="background-color"?(h["--sdm-tbg"]=p,d=!0):h[f]=p;return g("span",{className:Z("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",d&&"bg-[var(--sdm-tbg)]",d&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:h,...u.htmlAttrs,children:u.content},c)})},o))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),ox=({className:e,language:t,style:n,isIncomplete:r,...i})=>g("div",{className:Z("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i}),Xd=Ir({code:""}),Zd=()=>Ye(Xd),ux=({language:e})=>g("div",{className:"flex h-8 items-center text-muted-foreground text-xs","data-language":e,"data-streamdown":"code-block-header",children:g("span",{className:"ml-1 font-mono lowercase",children:e})}),lx=/\n+$/,cx=Ro(()=>Promise.resolve().then(()=>o5).then(e=>({default:e.HighlightedCodeBlockBody}))),dx=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,...a})=>{let s=Se(()=>e.replace(lx,""),[e]),o=Se(()=>({bg:"transparent",fg:"inherit",tokens:s.split(`
110
+ `).map(u=>[{content:u,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[s]);return g(Xd.Provider,{value:{code:e},children:g(ox,{isIncomplete:i,language:t,children:[g(ux,{language:t}),r?g("div",{className:"pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end",children:g("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur","data-streamdown":"code-block-actions",children:r})}):null,g(Mn,{fallback:g(Kd,{className:n,language:t,result:o,...a}),children:g(cx,{className:n,code:s,language:t,raw:o,...a})})]})})},gs=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),bs=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),ki=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),hx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[g("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),g("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),fx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),px=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),Jd=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),e0=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),mx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),gx=e=>g("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),t0=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let[o,u]=ce(!1),c=ve(0),{code:h}=Zd(),{isAnimating:d}=Ye(Ze),f=a??h,p=async()=>{var T;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.writeText)){t?.(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(f),u(!0),e?.(),c.current=window.setTimeout(()=>u(!1),n))}catch(w){t?.(w)}};Ne(()=>()=>{window.clearTimeout(c.current)},[]);let m=o?gs:bs;return g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:d,onClick:p,title:"Copy Code",type:"button",...s,children:r??g(m,{size:14})})},n0={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},bx=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let{code:o}=Zd(),{isAnimating:u}=Ye(Ze),c=a??o,h=`file.${n&&n in n0?n0[n]:"txt"}`,d="text/plain",f=()=>{try{Cn(h,c,d),e?.()}catch(p){t?.(p)}};return g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:f,title:"Download file",type:"button",...s,children:r??g(ki,{size:14})})},Ex=()=>g("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[g("div",{className:"h-[46px] w-full bg-muted/80"}),g("div",{className:"flex w-full items-center justify-center p-4",children:g(hx,{className:"size-4 animate-spin"})})]}),_x=/\.[^/.]+$/,Tx=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,...s})=>{let o=ve(null),[u,c]=ce(!1),[h,d]=ce(!1),f=s.width!=null||s.height!=null,p=(u||f)&&!h,m=h&&!f;Ne(()=>{let I=o.current;if(I!=null&&I.complete){let A=I.naturalWidth>0;c(A),d(!A)}},[]);let T=Ue(I=>{c(!0),d(!1),i?.(I)},[i]),w=Ue(I=>{c(!1),d(!0),a?.(I)},[a]),y=async()=>{if(n)try{let I=await(await fetch(n)).blob(),A=new URL(n,window.location.origin).pathname.split("/").pop()||"",D=A.split(".").pop(),F=A.includes(".")&&D!==void 0&&D.length<=4,S="";if(F)S=A;else{let Y=I.type,L="png";Y.includes("jpeg")||Y.includes("jpg")?L="jpg":Y.includes("png")?L="png":Y.includes("svg")?L="svg":Y.includes("gif")?L="gif":Y.includes("webp")&&(L="webp"),S=`${(r||A||"image").replace(_x,"")}.${L}`}Cn(S,I,I.type)}catch{window.open(n,"_blank")}};return n?g("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[g("img",{alt:r,className:Z("max-w-full rounded-lg",m&&"hidden",t),"data-streamdown":"image",onError:w,onLoad:T,ref:o,src:n,...s}),m&&g("span",{className:"text-muted-foreground text-xs italic","data-streamdown":"image-fallback",children:"Image not available"}),g("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),p&&g("button",{className:Z("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:y,title:"Download image",type:"button",children:g(ki,{size:14})})]}):null},gr=0,kx=()=>{gr+=1,gr===1&&(document.body.style.overflow="hidden")},xx=()=>{gr=Math.max(0,gr-1),gr===0&&(document.body.style.overflow="")},yx=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let[i,a]=ce(!1),s=Ue(async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),2e3)}catch{}},[e]),o=Ue(()=>{r(),n()},[r,n]);return Ne(()=>{if(t){kx();let u=c=>{c.key==="Escape"&&n()};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u),xx()}}},[t,n]),t?g("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:n,onKeyDown:u=>{u.key==="Escape"&&n()},role:"button",tabIndex:0,children:g("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:u=>u.stopPropagation(),onKeyDown:u=>u.stopPropagation(),role:"presentation",children:[g("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:n,title:"Close",type:"button",children:g(Jd,{size:16})}),g("div",{className:"flex flex-col gap-2",children:[g("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[g(e0,{size:20}),g("span",{children:"Open external link?"})]}),g("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),g("div",{className:Z("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),g("div",{className:"flex gap-2",children:[g("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:s,type:"button",children:i?g(Ee,{children:[g(gs,{size:14}),g("span",{children:"Copied"})]}):g(Ee,{children:[g(bs,{size:14}),g("span",{children:"Copy link"})]})}),g("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:o,type:"button",children:[g(e0,{size:14}),g("span",{children:"Open link"})]})]})]})}):null},Es=Ir(null),r0=()=>Ye(Es),wx=()=>{var e;let t=r0();return(e=t?.code)!=null?e:null},_s=()=>{var e;let t=r0();return(e=t?.mermaid)!=null?e:null},Ax=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let u=document.createElement("canvas"),c=o.width*r,h=o.height*r;u.width=c,u.height=h;let d=u.getContext("2d");if(!d){a(new Error("Failed to create 2D canvas context for PNG export"));return}d.drawImage(o,0,0,c,h),u.toBlob(f=>{if(!f){a(new Error("Failed to create PNG blob"));return}i(f)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},Cx=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let[s,o]=ce(!1),u=ve(null),{isAnimating:c}=Ye(Ze),h=_s(),d=async f=>{try{if(f==="mmd"){Cn("diagram.mmd",e,"text/plain"),o(!1),r?.(f);return}if(!h){a?.(new Error("Mermaid plugin not available"));return}let p=h.getMermaid(i),m=e.split("").reduce((y,I)=>(y<<5)-y+I.charCodeAt(0)|0,0),T=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:w}=await p.render(T,e);if(!w){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}if(f==="svg"){Cn("diagram.svg",w,"image/svg+xml"),o(!1),r?.(f);return}if(f==="png"){let y=await Ax(w);Cn("diagram.png",y,"image/png"),r?.(f),o(!1);return}}catch(p){a?.(p)}};return Ne(()=>{let f=p=>{let m=p.composedPath();u.current&&!m.includes(u.current)&&o(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[]),g("div",{className:"relative",ref:u,children:[g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>o(!s),title:"Download diagram",type:"button",children:t??g(ki,{size:14})}),s?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},br=0,Sx=()=>{br+=1,br===1&&(document.body.style.overflow="hidden")},Ix=()=>{br=Math.max(0,br-1),br===0&&(document.body.style.overflow="")},Nx=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let[s,o]=ce(!1),{isAnimating:u,controls:c}=Ye(Ze),h=(()=>{if(typeof c=="boolean")return c;let f=c.mermaid;return f===!1?!1:f===!0||f===void 0?!0:f.panZoom!==!1})(),d=()=>{o(!s)};return Ne(()=>{if(s){Sx();let f=p=>{p.key==="Escape"&&o(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),Ix()}}},[s]),Ne(()=>{s?n?.():r&&r()},[s,n,r]),g(Ee,{children:[g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:u,onClick:d,title:"View fullscreen",type:"button",...a,children:g(fx,{size:14})}),s?Do(g("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:d,onKeyDown:f=>{f.key==="Escape"&&d()},role:"button",tabIndex:0,children:[g("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:d,title:"Exit fullscreen",type:"button",children:g(Jd,{size:20})}),g("div",{className:"flex size-full items-center justify-center p-4",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:g(j0,{chart:e,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:h})})]}),document.body):null]})},i0=e=>{var t,n;let r=[],i=[],a=e.querySelectorAll("thead th");for(let o of a)r.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let u=[],c=o.querySelectorAll("td");for(let h of c)u.push(((n=h.textContent)==null?void 0:n.trim())||"");i.push(u)}return{headers:r,rows:i}},a0=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1,c=!1;for(let h of o){if(h==='"'){u=!0,c=!0;break}(h===","||h===`
111
111
  `)&&(u=!0)}return u?c?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(","),s+=1);for(let o of n)a[s]=o.map(r).join(","),s+=1;return a.join(`
112
- `)},Sx=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1;for(let h of o)if(h===" "||h===`
112
+ `)},vx=e=>{let{headers:t,rows:n}=e,r=o=>{let u=!1;for(let h of o)if(h===" "||h===`
113
113
  `||h==="\r"){u=!0;break}if(!u)return o;let c=[];for(let h of o)h===" "?c.push("\\t"):h===`
114
114
  `?c.push("\\n"):h==="\r"?c.push("\\r"):c.push(h);return c.join("")},i=t.length>0?n.length+1:n.length,a=new Array(i),s=0;t.length>0&&(a[s]=t.map(r).join(" "),s+=1);for(let o of n)a[s]=o.map(r).join(" "),s+=1;return a.join(`
115
115
  `)},Ts=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):n.push(r);return n.join("")},ks=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),i=0,a=t.map(o=>Ts(o));r[i]=`| ${a.join(" | ")} |`,i+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";r[i]=`| ${s.join(" | ")} |`,i+=1;for(let o of n)if(o.length<t.length){let u=new Array(t.length);for(let c=0;c<t.length;c+=1)u[c]=c<o.length?Ts(o[c]):"";r[i]=`| ${u.join(" | ")} |`,i+=1}else{let u=o.map(c=>Ts(c));r[i]=`| ${u.join(" | ")} |`,i+=1}return r.join(`
116
- `)},Ix=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=de(!1),[o,u]=de(!1),c=ve(null),h=ve(0),{isAnimating:d}=Ye(Ze),f=async m=>{var T,w;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.write)){r?.(new Error("Clipboard API not available"));return}try{let y=(w=c.current)==null?void 0:w.closest('[data-streamdown="table-wrapper"]'),I=y?.querySelector("table");if(!I){r?.(new Error("Table not found"));return}let A=r0(I),P=({csv:i0,tsv:Sx,md:ks}[m]||ks)(A),H=new ClipboardItem({"text/plain":new Blob([P],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([H]),u(!0),s(!1),n?.(m),h.current=window.setTimeout(()=>u(!1),i)}catch(y){r?.(y)}};Se(()=>{let m=T=>{let w=T.composedPath();c.current&&!w.includes(c.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(h.current)}},[]);let p=o?gs:bs;return g("div",{className:"relative",ref:c,children:[g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??g(p,{size:14})}),a?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("md"),title:"Copy table as Markdown",type:"button",children:"Markdown"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},Nx=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=de(!1),s=ve(null),{isAnimating:o}=Ye(Ze),u=c=>{var h;try{let d=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),f=d?.querySelector("table");if(!f){r?.(new Error("Table not found"));return}let p=r0(f),m=c==="csv"?i0(p):ks(p);Cn(`table.${c==="csv"?"csv":"md"}`,m,c==="csv"?"text/csv":"text/markdown"),a(!1),n?.(c)}catch(d){r?.(d)}};return Se(()=>{let c=h=>{let d=h.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),g("div",{className:"relative",ref:s,children:[g("button",{className:K("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>a(!i),title:"Download table",type:"button",children:e??g(ki,{size:14})}),i?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},vx=({children:e,className:t,showControls:n,...r})=>g("div",{className:"my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2","data-streamdown":"table-wrapper",children:[n?g("div",{className:"flex items-center justify-end gap-1",children:[g(Ix,{}),g(Nx,{})]}):null,g("div",{className:"border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background",children:g("table",{className:K("w-full divide-y divide-border",t),"data-streamdown":"table",...r,children:e})})]}),Lx=Lo(()=>Promise.resolve().then(()=>n5).then(e=>({default:e.Mermaid}))),Rx=/language-([^\s]+)/;function xi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function we(e,t){return e.className===t.className&&xi(e.node,t.node)}var xs=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,yi=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},ys=he(({children:e,className:t,node:n,...r})=>g("ol",{className:K("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>we(e,t));ys.displayName="MarkdownOl";var a0=he(({children:e,className:t,node:n,...r})=>g("li",{className:K("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&xi(e.node,t.node));a0.displayName="MarkdownLi";var s0=he(({children:e,className:t,node:n,...r})=>g("ul",{className:K("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>we(e,t));s0.displayName="MarkdownUl";var o0=he(({className:e,node:t,...n})=>g("hr",{className:K("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>we(e,t));o0.displayName="MarkdownHr";var u0=he(({children:e,className:t,node:n,...r})=>g("span",{className:K("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>we(e,t));u0.displayName="MarkdownStrong";var Ox=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=Ye(Ze),[s,o]=de(!1),u=n==="streamdown:incomplete-link",c=Ue(async p=>{if(!(!(a!=null&&a.enabled&&n)||u)){if(p.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}o(!0)}},[a,n,u]),h=Ue(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=Ue(()=>{o(!1)},[]),f={url:n??"",isOpen:s,onClose:d,onConfirm:h};return a!=null&&a.enabled&&n?g(Ee,{children:[g("button",{className:K("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:c,type:"button",children:e}),a.renderModal?a.renderModal(f):g(Tx,{...f})]}):g("a",{className:K("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},l0=he(Ox,(e,t)=>we(e,t)&&e.href===t.href);l0.displayName="MarkdownA";var c0=he(({children:e,className:t,node:n,...r})=>g("h1",{className:K("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>we(e,t));c0.displayName="MarkdownH1";var d0=he(({children:e,className:t,node:n,...r})=>g("h2",{className:K("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>we(e,t));d0.displayName="MarkdownH2";var h0=he(({children:e,className:t,node:n,...r})=>g("h3",{className:K("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>we(e,t));h0.displayName="MarkdownH3";var f0=he(({children:e,className:t,node:n,...r})=>g("h4",{className:K("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>we(e,t));f0.displayName="MarkdownH4";var p0=he(({children:e,className:t,node:n,...r})=>g("h5",{className:K("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>we(e,t));p0.displayName="MarkdownH5";var m0=he(({children:e,className:t,node:n,...r})=>g("h6",{className:K("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>we(e,t));m0.displayName="MarkdownH6";var g0=he(({children:e,className:t,node:n,...r})=>{let{controls:i}=Ye(Ze),a=xs(i,"table");return g(vx,{className:t,showControls:a,...r,children:e})},(e,t)=>we(e,t));g0.displayName="MarkdownTable";var b0=he(({children:e,className:t,node:n,...r})=>g("thead",{className:K("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>we(e,t));b0.displayName="MarkdownThead";var E0=he(({children:e,className:t,node:n,...r})=>g("tbody",{className:K("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>we(e,t));E0.displayName="MarkdownTbody";var _0=he(({children:e,className:t,node:n,...r})=>g("tr",{className:K("border-border",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>we(e,t));_0.displayName="MarkdownTr";var T0=he(({children:e,className:t,node:n,...r})=>g("th",{className:K("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>we(e,t));T0.displayName="MarkdownTh";var k0=he(({children:e,className:t,node:n,...r})=>g("td",{className:K("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>we(e,t));k0.displayName="MarkdownTd";var x0=he(({children:e,className:t,node:n,...r})=>g("blockquote",{className:K("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>we(e,t));x0.displayName="MarkdownBlockquote";var y0=he(({children:e,className:t,node:n,...r})=>g("sup",{className:K("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>we(e,t));y0.displayName="MarkdownSup";var w0=he(({children:e,className:t,node:n,...r})=>g("sub",{className:K("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>we(e,t));w0.displayName="MarkdownSub";var A0=he(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,u;if(!St(s))return!1;let c=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let f of c)if(f){if(typeof f=="string")f.trim()!==""&&(h=!0);else if(St(f))if(((o=f.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let p=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let m of p){if(typeof m=="string"&&m.trim()!==""){h=!0;break}if(St(m)&&((u=m.props)==null?void 0:u["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!St(s))return s;if(s.type===ys){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!i(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?g("section",{className:t,...r,children:a}):null}return g("section",{className:t,...r,children:e})},(e,t)=>we(e,t));A0.displayName="MarkdownSection";var Dx=({node:e,className:t,children:n,...r})=>{var i;let a=!("data-block"in r),{mermaid:s,controls:o}=Ye(Ze),u=_s(),c=tx();if(a)return g("code",{className:K("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let h=t?.match(Rx),d=(i=h?.at(1))!=null?i:"",f="";if(St(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?f=n.props.children:typeof n=="string"&&(f=n),d==="mermaid"&&u){let m=xs(o,"mermaid"),T=yi(o,"download"),w=yi(o,"copy"),y=yi(o,"fullscreen"),I=yi(o,"panZoom"),A=m&&(T||w||y);return g(Pn,{fallback:g(mx,{}),children:g("div",{className:K("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[g("div",{className:"flex h-8 items-center text-muted-foreground text-xs",children:g("span",{className:"ml-1 font-mono lowercase",children:"mermaid"})}),A?g("div",{className:"pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end",children:g("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur","data-streamdown":"mermaid-block-actions",children:[T?g(yx,{chart:f,config:s?.config}):null,w?g(e0,{code:f}):null,y?g(Cx,{chart:f,config:s?.config}):null]})}):null,g("div",{className:"rounded-md border border-border bg-background",children:g(Lx,{chart:f,config:s?.config,showControls:I})})]})})}let p=xs(o,"code");return g(ux,{className:t,code:f,isIncomplete:c,language:d,children:p?g(Ee,{children:[g(px,{code:f,language:d}),g(e0,{})]}):null})},C0=he(Dx,(e,t)=>e.className===t.className&&xi(e.node,t.node));C0.displayName="MarkdownCode";var S0=he(bx,(e,t)=>e.className===t.className&&xi(e.node,t.node));S0.displayName="MarkdownImg";var I0=he(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&St(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return g(Ee,{children:e});if(a==="code"&&"data-block"in r[0].props)return g(Ee,{children:e})}return g("p",{...n,children:e})},(e,t)=>we(e,t));I0.displayName="MarkdownParagraph";var Px={ol:ys,li:a0,ul:s0,hr:o0,strong:u0,a:l0,h1:c0,h2:d0,h3:h0,h4:f0,h5:p0,h6:m0,table:g0,thead:b0,tbody:E0,tr:_0,th:T0,td:k0,blockquote:x0,code:C0,img:S0,pre:({children:e})=>St(e)?sf(e,{"data-block":"true"}):e,sup:y0,sub:w0,p:I0,section:A0},Mx=/^[ \t]{0,3}(`{3,}|~{3,})/,Bx=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,N0=e=>{let t=e.split(`
117
- `),n=null,r=0;for(let i of t){let a=Mx.exec(i);if(n===null){if(a){let s=a[1];n=s[0],r=s.length}}else if(a){let s=a[1],o=s[0],u=s.length;o===n&&u>=r&&(n=null,r=0)}}return n!==null},Fx=e=>{let t=e.split(`
118
- `);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&Bx.test(r))return!0}return!1},Hx=()=>e=>{It(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},v0=[],L0={allowDangerousHtml:!0},wi=new WeakMap,Ux=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let h="default";return this.keyCache.set(e,h),h}let a=h=>{if(!h||h.length===0)return"";let d="";for(let f=0;f<h.length;f+=1){let p=h[f];if(f>0&&(d+=","),Array.isArray(p)){let[m,T]=p;if(typeof m=="function"){let w=wi.get(m);w||(w=m.name,wi.set(m,w)),d+=w}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof p=="function"){let m=wi.get(p);m||(m=p.name,wi.set(p,m)),d+=m}else d+=String(p)}return d},s=a(n),o=a(r),u=i?JSON.stringify(i):"",c=`${o}::${s}::${u}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},R0=new Ux,O0=e=>{let t=zx(e),n=e.children||"";return Gx(t.runSync(t.parse(n),n),e)},zx=e=>{let t=R0.get(e);if(t)return t;let n=Yx(e);return R0.set(e,n),n},$x=e=>e.some(t=>Array.isArray(t)?t[0]===Ea:t===Ea),Yx=e=>{let t=e.rehypePlugins||v0,n=e.remarkPlugins||v0,r=$x(t)?n:[...n,Hx],i=e.remarkRehypeOptions?{...L0,...e.remarkRehypeOptions}:L0;return Kk().use(KT).use(r).use(Rk,i).use(t)},jx=e=>e,Vx=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},qx=(e,t)=>{var n;for(let r in Wa)if(Object.hasOwn(Wa,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=Wa[r];(a===null||a.includes(e.tagName))&&(e.properties[r]=(n=t(String(i||""),r,e))!=null?n:void 0)}},Wx=(e,t,n,r,i,a)=>{let s=!1;return r?s=!r.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,n)),s},Gx=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||i||a||o){let u=o||jx;It(e,(c,h,d)=>{if(c.type==="raw"&&d&&typeof h=="number")return Vx(d,h,a,c.value),h;if(c.type==="element"&&(qx(c,u),Wx(c,h,d,r,i,n)&&d&&typeof h=="number"))return s&&c.children?d.children.splice(h,1,...c.children):d.children.splice(h,1),h})}return fT(e,{Fragment:Ee,components:t.components,ignoreInvalidStyle:!0,jsx:g,jsxs:g,passKeys:!0,passNode:!0})},Qx=/\[\^[\w-]{1,200}\](?!:)/,Kx=/\[\^[\w-]{1,200}\]:/,Xx=/<(\w+)[\s>]/,Zx=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),D0=new Map,P0=new Map,Jx=e=>{let t=e.toLowerCase(),n=D0.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return D0.set(t,r),r},ey=e=>{let t=e.toLowerCase(),n=P0.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return P0.set(t,r),r},M0=(e,t)=>{if(Zx.has(t.toLowerCase()))return 0;let n=e.match(Jx(t));if(!n)return 0;let r=0;for(let i of n)i.trimEnd().endsWith("/>")||(r+=1);return r},B0=(e,t)=>{let n=e.match(ey(t));return n?n.length:0},ty=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},ny=e=>{let t=Qx.test(e),n=Kx.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let o of r){let u=o.raw,c=i.length;if(a.length>0){i[c-1]+=u;let h=a.at(-1),d=M0(u,h),f=B0(u,h);for(let p=0;p<d;p+=1)a.push(h);for(let p=0;p<f;p+=1)a.length>0&&a.at(-1)===h&&a.pop();continue}if(o.type==="html"&&o.block){let h=u.match(Xx);if(h){let d=h[1],f=M0(u,d),p=B0(u,d);f>p&&a.push(d)}}if(c>0&&!s){let h=i[c-1];if(ty(h)%2===1){i[c-1]=h+u;continue}}i.push(u),o.type!=="space"&&(s=o.type==="code")}return i},ry=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,u)=>{let c=o.replace(/\n\n/g,`
116
+ `)},Lx=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let[a,s]=ce(!1),[o,u]=ce(!1),c=ve(null),h=ve(0),{isAnimating:d}=Ye(Ze),f=async m=>{var T,w;if(typeof window>"u"||!((T=navigator?.clipboard)!=null&&T.write)){r?.(new Error("Clipboard API not available"));return}try{let y=(w=c.current)==null?void 0:w.closest('[data-streamdown="table-wrapper"]'),I=y?.querySelector("table");if(!I){r?.(new Error("Table not found"));return}let A=i0(I),D=({csv:a0,tsv:vx,md:ks}[m]||ks)(A),F=new ClipboardItem({"text/plain":new Blob([D],{type:"text/plain"}),"text/html":new Blob([I.outerHTML],{type:"text/html"})});await navigator.clipboard.write([F]),u(!0),s(!1),n?.(m),h.current=window.setTimeout(()=>u(!1),i)}catch(y){r?.(y)}};Ne(()=>{let m=T=>{let w=T.composedPath();c.current&&!w.includes(c.current)&&s(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m),window.clearTimeout(h.current)}},[]);let p=o?gs:bs;return g("div",{className:"relative",ref:c,children:[g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:d,onClick:()=>s(!a),title:"Copy table",type:"button",children:e??g(p,{size:14})}),a?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("md"),title:"Copy table as Markdown",type:"button",children:"Markdown"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>f("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]}):null]})},Rx=({children:e,className:t,onDownload:n,onError:r})=>{let[i,a]=ce(!1),s=ve(null),{isAnimating:o}=Ye(Ze),u=c=>{var h;try{let d=(h=s.current)==null?void 0:h.closest('[data-streamdown="table-wrapper"]'),f=d?.querySelector("table");if(!f){r?.(new Error("Table not found"));return}let p=i0(f),m=c==="csv"?a0(p):ks(p);Cn(`table.${c==="csv"?"csv":"md"}`,m,c==="csv"?"text/csv":"text/markdown"),a(!1),n?.(c)}catch(d){r?.(d)}};return Ne(()=>{let c=h=>{let d=h.composedPath();s.current&&!d.includes(s.current)&&a(!1)};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[]),g("div",{className:"relative",ref:s,children:[g("button",{className:Z("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:o,onClick:()=>a(!i),title:"Download table",type:"button",children:e??g(ki,{size:14})}),i?g("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),g("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]}):null]})},Ox=({children:e,className:t,showControls:n,...r})=>g("div",{className:"my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2","data-streamdown":"table-wrapper",children:[n?g("div",{className:"flex items-center justify-end gap-1",children:[g(Lx,{}),g(Rx,{})]}):null,g("div",{className:"border-collapse overflow-x-auto overscroll-y-auto rounded-md border border-border bg-background",children:g("table",{className:Z("w-full divide-y divide-border",t),"data-streamdown":"table",...r,children:e})})]}),Dx=Ro(()=>Promise.resolve().then(()=>u5).then(e=>({default:e.Mermaid}))),Px=/language-([^\s]+)/;function xi(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let n=e.position.start,r=t.position.start,i=e.position.end,a=t.position.end;return n?.line===r?.line&&n?.column===r?.column&&i?.line===a?.line&&i?.column===a?.column}function Ce(e,t){return e.className===t.className&&xi(e.node,t.node)}var xs=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,yi=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},ys=de(({children:e,className:t,node:n,...r})=>g("ol",{className:Z("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e}),(e,t)=>Ce(e,t));ys.displayName="MarkdownOl";var s0=de(({children:e,className:t,node:n,...r})=>g("li",{className:Z("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e}),(e,t)=>e.className===t.className&&xi(e.node,t.node));s0.displayName="MarkdownLi";var o0=de(({children:e,className:t,node:n,...r})=>g("ul",{className:Z("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e}),(e,t)=>Ce(e,t));o0.displayName="MarkdownUl";var u0=de(({className:e,node:t,...n})=>g("hr",{className:Z("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>Ce(e,t));u0.displayName="MarkdownHr";var l0=de(({children:e,className:t,node:n,...r})=>g("span",{className:Z("font-semibold",t),"data-streamdown":"strong",...r,children:e}),(e,t)=>Ce(e,t));l0.displayName="MarkdownStrong";var Mx=({children:e,className:t,href:n,node:r,...i})=>{let{linkSafety:a}=Ye(Ze),[s,o]=ce(!1),u=n==="streamdown:incomplete-link",c=Ue(async p=>{if(!(!(a!=null&&a.enabled&&n)||u)){if(p.preventDefault(),a.onLinkCheck&&await a.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}o(!0)}},[a,n,u]),h=Ue(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),d=Ue(()=>{o(!1)},[]),f={url:n??"",isOpen:s,onClose:d,onConfirm:h};return a!=null&&a.enabled&&n?g(Ee,{children:[g("button",{className:Z("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:c,type:"button",children:e}),a.renderModal?a.renderModal(f):g(yx,{...f})]}):g("a",{className:Z("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},c0=de(Mx,(e,t)=>Ce(e,t)&&e.href===t.href);c0.displayName="MarkdownA";var d0=de(({children:e,className:t,node:n,...r})=>g("h1",{className:Z("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e}),(e,t)=>Ce(e,t));d0.displayName="MarkdownH1";var h0=de(({children:e,className:t,node:n,...r})=>g("h2",{className:Z("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e}),(e,t)=>Ce(e,t));h0.displayName="MarkdownH2";var f0=de(({children:e,className:t,node:n,...r})=>g("h3",{className:Z("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e}),(e,t)=>Ce(e,t));f0.displayName="MarkdownH3";var p0=de(({children:e,className:t,node:n,...r})=>g("h4",{className:Z("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e}),(e,t)=>Ce(e,t));p0.displayName="MarkdownH4";var m0=de(({children:e,className:t,node:n,...r})=>g("h5",{className:Z("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e}),(e,t)=>Ce(e,t));m0.displayName="MarkdownH5";var g0=de(({children:e,className:t,node:n,...r})=>g("h6",{className:Z("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e}),(e,t)=>Ce(e,t));g0.displayName="MarkdownH6";var b0=de(({children:e,className:t,node:n,...r})=>{let{controls:i}=Ye(Ze),a=xs(i,"table");return g(Ox,{className:t,showControls:a,...r,children:e})},(e,t)=>Ce(e,t));b0.displayName="MarkdownTable";var E0=de(({children:e,className:t,node:n,...r})=>g("thead",{className:Z("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e}),(e,t)=>Ce(e,t));E0.displayName="MarkdownThead";var _0=de(({children:e,className:t,node:n,...r})=>g("tbody",{className:Z("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e}),(e,t)=>Ce(e,t));_0.displayName="MarkdownTbody";var T0=de(({children:e,className:t,node:n,...r})=>g("tr",{className:Z("border-border",t),"data-streamdown":"table-row",...r,children:e}),(e,t)=>Ce(e,t));T0.displayName="MarkdownTr";var k0=de(({children:e,className:t,node:n,...r})=>g("th",{className:Z("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e}),(e,t)=>Ce(e,t));k0.displayName="MarkdownTh";var x0=de(({children:e,className:t,node:n,...r})=>g("td",{className:Z("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e}),(e,t)=>Ce(e,t));x0.displayName="MarkdownTd";var y0=de(({children:e,className:t,node:n,...r})=>g("blockquote",{className:Z("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e}),(e,t)=>Ce(e,t));y0.displayName="MarkdownBlockquote";var w0=de(({children:e,className:t,node:n,...r})=>g("sup",{className:Z("text-sm",t),"data-streamdown":"superscript",...r,children:e}),(e,t)=>Ce(e,t));w0.displayName="MarkdownSup";var A0=de(({children:e,className:t,node:n,...r})=>g("sub",{className:Z("text-sm",t),"data-streamdown":"subscript",...r,children:e}),(e,t)=>Ce(e,t));A0.displayName="MarkdownSub";var C0=de(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,u;if(!St(s))return!1;let c=Array.isArray(s.props.children)?s.props.children:[s.props.children],h=!1,d=!1;for(let f of c)if(f){if(typeof f=="string")f.trim()!==""&&(h=!0);else if(St(f))if(((o=f.props)==null?void 0:o["data-footnote-backref"])!==void 0)d=!0;else{let p=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let m of p){if(typeof m=="string"&&m.trim()!==""){h=!0;break}if(St(m)&&((u=m.props)==null?void 0:u["data-footnote-backref"])===void 0){h=!0;break}}}}return d&&!h},a=Array.isArray(e)?e.map(s=>{if(!St(s))return s;if(s.type===ys){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(u=>!i(u));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?g("section",{className:t,...r,children:a}):null}return g("section",{className:t,...r,children:e})},(e,t)=>Ce(e,t));C0.displayName="MarkdownSection";var Bx=({node:e,className:t,children:n,...r})=>{var i;let a=!("data-block"in r),{mermaid:s,controls:o}=Ye(Ze),u=_s(),c=ix();if(a)return g("code",{className:Z("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let h=t?.match(Px),d=(i=h?.at(1))!=null?i:"",f="";if(St(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?f=n.props.children:typeof n=="string"&&(f=n),d==="mermaid"&&u){let m=xs(o,"mermaid"),T=yi(o,"download"),w=yi(o,"copy"),y=yi(o,"fullscreen"),I=yi(o,"panZoom"),A=m&&(T||w||y);return g(Mn,{fallback:g(Ex,{}),children:g("div",{className:Z("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[g("div",{className:"flex h-8 items-center text-muted-foreground text-xs",children:g("span",{className:"ml-1 font-mono lowercase",children:"mermaid"})}),A?g("div",{className:"pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end",children:g("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur","data-streamdown":"mermaid-block-actions",children:[T?g(Cx,{chart:f,config:s?.config}):null,w?g(t0,{code:f}):null,y?g(Nx,{chart:f,config:s?.config}):null]})}):null,g("div",{className:"rounded-md border border-border bg-background",children:g(Dx,{chart:f,config:s?.config,showControls:I})})]})})}let p=xs(o,"code");return g(dx,{className:t,code:f,isIncomplete:c,language:d,children:p?g(Ee,{children:[g(bx,{code:f,language:d}),g(t0,{})]}):null})},S0=de(Bx,(e,t)=>e.className===t.className&&xi(e.node,t.node));S0.displayName="MarkdownCode";var I0=de(Tx,(e,t)=>e.className===t.className&&xi(e.node,t.node));I0.displayName="MarkdownImg";var N0=de(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&St(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return g(Ee,{children:e});if(a==="code"&&"data-block"in r[0].props)return g(Ee,{children:e})}return g("p",{...n,children:e})},(e,t)=>Ce(e,t));N0.displayName="MarkdownParagraph";var Fx={ol:ys,li:s0,ul:o0,hr:u0,strong:l0,a:c0,h1:d0,h2:h0,h3:f0,h4:p0,h5:m0,h6:g0,table:b0,thead:E0,tbody:_0,tr:T0,th:k0,td:x0,blockquote:y0,code:S0,img:I0,pre:({children:e})=>St(e)?lf(e,{"data-block":"true"}):e,sup:w0,sub:A0,p:N0,section:C0},Hx=/^[ \t]{0,3}(`{3,}|~{3,})/,Ux=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,v0=e=>{let t=e.split(`
117
+ `),n=null,r=0;for(let i of t){let a=Hx.exec(i);if(n===null){if(a){let s=a[1];n=s[0],r=s.length}}else if(a){let s=a[1],o=s[0],u=s.length;o===n&&u>=r&&(n=null,r=0)}}return n!==null},zx=e=>{let t=e.split(`
118
+ `);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&Ux.test(r))return!0}return!1},$x=()=>e=>{It(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},L0=[],R0={allowDangerousHtml:!0},wi=new WeakMap,Yx=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,i=e.remarkRehypeOptions;if(!(n||r||i)){let h="default";return this.keyCache.set(e,h),h}let a=h=>{if(!h||h.length===0)return"";let d="";for(let f=0;f<h.length;f+=1){let p=h[f];if(f>0&&(d+=","),Array.isArray(p)){let[m,T]=p;if(typeof m=="function"){let w=wi.get(m);w||(w=m.name,wi.set(m,w)),d+=w}else d+=String(m);d+=":",d+=JSON.stringify(T)}else if(typeof p=="function"){let m=wi.get(p);m||(m=p.name,wi.set(p,m)),d+=m}else d+=String(p)}return d},s=a(n),o=a(r),u=i?JSON.stringify(i):"",c=`${o}::${s}::${u}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},O0=new Yx,D0=e=>{let t=jx(e),n=e.children||"";return Xx(t.runSync(t.parse(n),n),e)},jx=e=>{let t=O0.get(e);if(t)return t;let n=qx(e);return O0.set(e,n),n},Vx=e=>e.some(t=>Array.isArray(t)?t[0]===Ea:t===Ea),qx=e=>{let t=e.rehypePlugins||L0,n=e.remarkPlugins||L0,r=Vx(t)?n:[...n,$x],i=e.remarkRehypeOptions?{...R0,...e.remarkRehypeOptions}:R0;return Jk().use(JT).use(r).use(Pk,i).use(t)},Wx=e=>e,Gx=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},Qx=(e,t)=>{var n;for(let r in Wa)if(Object.hasOwn(Wa,r)&&Object.hasOwn(e.properties,r)){let i=e.properties[r],a=Wa[r];(a===null||a.includes(e.tagName))&&(e.properties[r]=(n=t(String(i||""),r,e))!=null?n:void 0)}},Kx=(e,t,n,r,i,a)=>{let s=!1;return r?s=!r.includes(e.tagName):i&&(s=i.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,n)),s},Xx=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:i,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||i||a||o){let u=o||Wx;It(e,(c,h,d)=>{if(c.type==="raw"&&d&&typeof h=="number")return Gx(d,h,a,c.value),h;if(c.type==="element"&&(Qx(c,u),Kx(c,h,d,r,i,n)&&d&&typeof h=="number"))return s&&c.children?d.children.splice(h,1,...c.children):d.children.splice(h,1),h})}return gT(e,{Fragment:Ee,components:t.components,ignoreInvalidStyle:!0,jsx:g,jsxs:g,passKeys:!0,passNode:!0})},Zx=/\[\^[\w-]{1,200}\](?!:)/,Jx=/\[\^[\w-]{1,200}\]:/,ey=/<(\w+)[\s>]/,ty=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),P0=new Map,M0=new Map,ny=e=>{let t=e.toLowerCase(),n=P0.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return P0.set(t,r),r},ry=e=>{let t=e.toLowerCase(),n=M0.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return M0.set(t,r),r},B0=(e,t)=>{if(ty.has(t.toLowerCase()))return 0;let n=e.match(ny(t));if(!n)return 0;let r=0;for(let i of n)i.trimEnd().endsWith("/>")||(r+=1);return r},F0=(e,t)=>{let n=e.match(ry(t));return n?n.length:0},iy=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},ay=e=>{let t=Zx.test(e),n=Jx.test(e);if(t||n)return[e];let r=at.lex(e,{gfm:!0}),i=[],a=[],s=!1;for(let o of r){let u=o.raw,c=i.length;if(a.length>0){i[c-1]+=u;let h=a.at(-1),d=B0(u,h),f=F0(u,h);for(let p=0;p<d;p+=1)a.push(h);for(let p=0;p<f;p+=1)a.length>0&&a.at(-1)===h&&a.pop();continue}if(o.type==="html"&&o.block){let h=u.match(ey);if(h){let d=h[1],f=B0(u,d),p=F0(u,d);f>p&&a.push(d)}}if(c>0&&!s){let h=i[c-1];if(iy(h)%2===1){i[c-1]=h+u;continue}}i.push(u),o.type!=="space"&&(s=o.type==="code")}return i},sy=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,u)=>{let c=o.replace(/\n\n/g,`
119
119
  <!---->
120
- `);return s+c+u})}return n},iy=/^[ \t]*<[\w!/?-]/,ay=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,sy=e=>typeof e!="string"||e.length===0||!iy.test(e)?e:e.replace(ay,"$1"),F0,H0,Ai={...Jn,protocols:{...Jn.protocols,href:[...(H0=(F0=Jn.protocols)==null?void 0:F0.href)!=null?H0:[],"tel"]}},ws={raw:Ea,sanitize:[ml,Ai],harden:[mf,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},oy={gfm:[OE,{}]},U0=Object.values(ws),uy=Object.values(oy),ly={block:" ▋",circle:" ●"},cy={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},Ze=Sr(cy),z0=he(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,...a})=>{let s=typeof e=="string"&&n?sy(e):e;return g(Gd.Provider,{value:i,children:g(O0,{...a,children:s})})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});z0.displayName="Block";var dy=["github-light","github-dark"],$0=he(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,normalizeHtmlIndentation:r=!1,components:i,rehypePlugins:a=U0,remarkPlugins:s=uy,className:o,shikiTheme:u=dy,mermaid:c,controls:h=!0,isAnimating:d=!1,animated:f,BlockComponent:p=z0,parseMarkdownIntoBlocksFn:m=ny,caret:T,plugins:w,remend:y,linkSafety:I={enabled:!0},allowedTags:A,...P})=>{let H=kh(),[S,Y]=uf(),L=Ae(()=>A?Object.keys(A):[],[A]),O=Ae(()=>{if(typeof e!="string")return"";let Z=t==="streaming"&&n?U3(e,y):e;return L.length>0&&(Z=ry(Z,L)),Z},[e,t,n,y,L]),C=Ae(()=>m(O),[O,m]),[B,R]=de(C);Se(()=>{t==="streaming"?Y(()=>{R(C)}):R(C)},[C,t]);let j=t==="streaming"?B:C,X=Ae(()=>j.map((Z,x)=>`${H}-${x}`),[j.length,H]),G=Ae(()=>f?f===!0?ms():ms(f):null,[f]),te=Ae(()=>{var Z,x;return{shikiTheme:(x=(Z=w?.code)==null?void 0:Z.getThemes())!=null?x:u,controls:h,isAnimating:d,mode:t,mermaid:c,linkSafety:I}},[u,h,d,t,c,I,w?.code]),se=Ae(()=>({...Px,...i}),[i]),Ne=Ae(()=>{let Z=[];return w!=null&&w.cjk&&(Z=[...Z,...w.cjk.remarkPluginsBefore]),Z=[...Z,...s],w!=null&&w.cjk&&(Z=[...Z,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(Z=[...Z,w.math.remarkPlugin]),Z},[s,w?.math,w?.cjk]),Pe=Ae(()=>{var Z;let x=a;if(A&&Object.keys(A).length>0&&a===U0){let Re={...Ai,tagNames:[...(Z=Ai.tagNames)!=null?Z:[],...Object.keys(A)],attributes:{...Ai.attributes,...A}};x=[ws.raw,[ml,Re],ws.harden]}return w!=null&&w.math&&(x=[...x,w.math.rehypePlugin]),G&&d&&(x=[...x,G.rehypePlugin]),x},[a,w?.math,G,d,A]),_=Ae(()=>{if(!d||j.length===0)return!1;let Z=j.at(-1);return N0(Z)||Fx(Z)},[d,j]),ie=Ae(()=>T&&d&&!_?{"--streamdown-caret":`"${ly[T]}"`}:void 0,[T,d,_]);return t==="static"?g(Es.Provider,{value:w??null,children:g(Ze.Provider,{value:te,children:g("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",o),children:g(O0,{components:se,rehypePlugins:Pe,remarkPlugins:Ne,...P,children:O})})})}):g(Es.Provider,{value:w??null,children:g(Ze.Provider,{value:te,children:g("div",{className:K("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",T&&!_?"*:last:after:inline *:last:after:align-baseline *:last:after:content-[var(--streamdown-caret)]":null,o),style:ie,children:[j.length===0&&T&&d&&g("span",{}),j.map((Z,x)=>{let Re=x===j.length-1,Te=d&&Re&&N0(Z);return g(p,{components:se,content:Z,index:x,isIncomplete:Te,rehypePlugins:Pe,remarkPlugins:Ne,shouldNormalizeHtmlIndentation:r,shouldParseIncompleteMarkdown:n,...P},X[x])})]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation);$0.displayName="Streamdown";var hy=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let u=ve(null),c=ve(null),[h,d]=de(s),[f,p]=de({x:0,y:0}),[m,T]=de(!1),[w,y]=de({x:0,y:0}),[I,A]=de({x:0,y:0}),P=Ue(R=>{d(j=>Math.max(n,Math.min(r,j+R)))},[n,r]),H=Ue(()=>{P(i)},[P,i]),S=Ue(()=>{P(-i)},[P,i]),Y=Ue(()=>{d(s),p({x:0,y:0})},[s]),L=Ue(R=>{R.preventDefault();let j=R.deltaY>0?-i:i;P(j)},[P,i]),O=Ue(R=>{if(R.button!==0||R.isPrimary===!1)return;T(!0),y({x:R.clientX,y:R.clientY}),A(f);let j=R.currentTarget;j instanceof HTMLElement&&j.setPointerCapture(R.pointerId)},[f]),C=Ue(R=>{if(!m)return;R.preventDefault();let j=R.clientX-w.x,X=R.clientY-w.y;p({x:I.x+j,y:I.y+X})},[m,w,I]),B=Ue(R=>{T(!1);let j=R.currentTarget;j instanceof HTMLElement&&j.releasePointerCapture(R.pointerId)},[]);return Se(()=>{let R=u.current;if(R)return R.addEventListener("wheel",L,{passive:!1}),()=>{R.removeEventListener("wheel",L)}},[L]),Se(()=>{let R=c.current;if(R&&m)return document.body.style.userSelect="none",R.addEventListener("pointermove",C,{passive:!1}),R.addEventListener("pointerup",B),R.addEventListener("pointercancel",B),()=>{document.body.style.userSelect="",R.removeEventListener("pointermove",C),R.removeEventListener("pointerup",B),R.removeEventListener("pointercancel",B)}},[m,C,B]),g("div",{className:K("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:u,style:{cursor:m?"grabbing":"grab"},children:[a?g("div",{className:K("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=r,onClick:H,title:"Zoom in",type:"button",children:g(hx,{size:16})}),g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=n,onClick:S,title:"Zoom out",type:"button",children:g(fx,{size:16})}),g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:Y,title:"Reset zoom and pan",type:"button",children:g(dx,{size:16})})]}):null,g("div",{className:K("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:O,ref:c,role:"application",style:{transform:`translate(${f.x}px, ${f.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Y0=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=de(null),[o,u]=de(!1),[c,h]=de(""),[d,f]=de(""),[p,m]=de(0),{mermaid:T}=Ye(Ze),w=_s(),y=T?.errorComponent,{shouldRender:I,containerRef:A}=q6({immediate:r});if(Se(()=>{if(I){if(!w){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),u(!0);let H=w.getMermaid(n),S=e.split("").reduce((O,C)=>(O<<5)-O+C.charCodeAt(0)|0,0),Y=`mermaid-${Math.abs(S)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:L}=await H.render(Y,e);h(L),f(L)}catch(H){if(!(d||c)){let S=H instanceof Error?H.message:"Failed to render Mermaid chart";s(S)}}finally{u(!1)}})()}},[e,n,p,I,w]),!(I||c||d))return g("div",{className:K("my-4 min-h-[200px]",t),ref:A});if(o&&!c&&!d)return g("div",{className:K("my-4 flex justify-center p-4",t),ref:A,children:g("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[g("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),g("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!c&&!d)return y?g("div",{ref:A,children:g(y,{chart:e,error:a,retry:()=>m(S=>S+1)})}):g("div",{className:K("rounded-md bg-red-50 p-4",t),ref:A,children:[g("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),g("details",{className:"mt-2",children:[g("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),g("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let P=c||d;return g("div",{className:K("size-full",t),"data-streamdown":"mermaid",ref:A,children:g(hy,{className:K(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:g("div",{"aria-label":"Mermaid chart",className:K("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:P},role:"img"})})})};function fy({href:e,children:t}){return g("a",{href:e,target:"_blank",rel:"noopener noreferrer",class:"fr hover:text-a-9 text-inherit underline underline-offset-2 transition-all hover:underline-offset-4 focus-visible:rounded-[2px]",children:t})}const py={a:fy};function j0({content:e,isStreaming:t=!1}){return e?g("div",{class:"kin-markdown text-n-12 border-n-4 border-b pb-2.5 text-sm leading-relaxed",children:g($0,{isAnimating:t,mode:t?"streaming":"static",components:py,children:e})}):null}const my={thinking:{label:"Thinking…",icon:ko},responding:{label:"Writing response…",icon:wo},processing_results:{label:"Processing results…",icon:ko},processing_cv:{label:"Scanning your CV…",icon:yo},searchJobs:{label:"Searching jobs…",icon:xo},matchJobs:{label:"Matching jobs…",icon:xo},searchKnowledge:{label:"Searching company info…",icon:Yh},getProfileSummary:{label:"Reviewing your profile…",icon:yo},updatePreferences:{label:"Updating your preferences…",icon:jh},remember:{label:"Saving details…",icon:Vh},suggestQuickReplies:{label:"Preparing reply options…",icon:wo}},V0=un({base:"animate-kin-message-in flex max-w-[85%] flex-col",variants:{side:{user:"self-end",assistant:"self-start gap-1.5 p-1"}}});function gy(){const e=ve(null);return g("div",{ref:e,class:"pl-safe-l pr-safe-r [&::-webkit-scrollbar-thumb]:bg-n-4 flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain break-words py-4 [mask-image:linear-gradient(to_bottom,transparent_0,_black_1.5rem,_black_calc(100%-1.5rem),transparent_100%)] sm:overscroll-auto sm:px-4 [&::-webkit-scrollbar-thumb]:rounded-[3px] [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5",role:"log","aria-label":"Chat messages","aria-live":"polite","aria-relevant":"additions",children:[g(by,{containerRef:e}),g(Ey,{}),g(_y,{}),g(Ty,{})]})}function by({containerRef:e}){const t=$.messages.value.length,n=$.liveAssistantMessage.value?.content??"",r=$.isStreaming.value,i=$.assistantStatus.value,a=()=>{const s=e.current;s&&(s.scrollTop=s.scrollHeight)};return Se(()=>{const s=setTimeout(a,380);return()=>clearTimeout(s)},[]),Se(a,[i,n,t,r]),null}function Ey(){const e=$.messages.value.length,t=!!($.liveAssistantMessage.value||$.isStreaming.value||$.assistantStatus.value);return e||t?null:g("div",{class:"animate-kin-fade-in my-auto px-6 py-6 text-center",style:{animationDelay:"150ms"},children:[g("div",{class:"text-n-9 mx-auto mb-4 size-12 opacity-50","aria-hidden":"true",children:g(Bh,{class:"h-full w-full"})}),g("p",{class:"text-n-12 mb-2 text-base",children:"Hi there, you're speaking with Kin AI Agent."}),g("p",{class:"text-n-9 text-sm",children:"How can I help you today?"})]})}function _y(){return g(Ee,{children:$.messages.value.filter(e=>e.role!=="assistant"||!!e.content.trim()).filter(e=>e.role!=="user"||!!e.content.trim()||!!e.attachment).map((e,t)=>g(ky,{message:e,animationIndex:t},e.id))})}function q0({statusMeta:e,timestamp:t}){const n=e?.icon;return g("div",{class:"text-n-9 inline-flex items-center gap-1.5 text-xs","aria-hidden":"true",children:n?g(Ee,{children:[g(n,{class:"size-3 shrink-0 animate-pulse"}),g("span",{class:"animate-kin-shimmer bg-[linear-gradient(90deg,oklch(var(--n-9))_40%,oklch(var(--n-11))_50%,oklch(var(--n-9))_60%)] bg-[length:200%_100%] bg-clip-text text-transparent",children:e.label})]}):g("span",{children:["Kin • AI Agent • ",t?xy(t):"typing..."]})})}function Ty(){const e=$.liveAssistantMessage.value,t=$.isStreaming.value,n=$.assistantStatus.value,r=n?my[n]:void 0;return!e&&!t&&!r?null:g("article",{class:V0({side:"assistant"}),"aria-label":"Message from Kin AI Agent",children:[e?.content?g(j0,{content:e.content,isStreaming:t}):null,g(q0,{statusMeta:r,timestamp:t?void 0:e?.timestamp})]})}function ky({message:e,animationIndex:t}){const{role:n,content:r,timestamp:i,attachment:a}=e,s=n==="user",o=Math.min((t+1)*.05,.35);return n==="system"?g("div",{class:"flex justify-center px-4 py-2",role:"status","aria-label":"System notification",children:g("span",{class:"border-n-6/40 bg-n-3 text-n-9 corner-smooth rounded-xl border px-3 py-1.5 text-xs",children:r})}):g("article",{class:V0({side:s?"user":"assistant"}),style:{animationDelay:`${o}s`},"aria-label":`Message from ${s?"You":"Kin AI Agent"}`,children:[s&&g("div",{class:"bg-n-3 text-n-12 corner-smooth relative rounded-xl px-3.5 py-2 text-sm",children:[a&&g("div",{class:"text-n-10 flex items-center gap-1.5",children:[g(To,{class:"text-n-9 size-3.5 shrink-0"}),g("span",{class:"max-w-full truncate",children:a.name})]}),g("p",{children:r}),g("svg",{class:"text-n-3 absolute -bottom-1.5 right-1.5 w-4","aria-hidden":"true",viewBox:"0 0 16 8",children:g("path",{d:"M15 0S16 3 16 7C16 8 15 7 15 7 11 3 9 2 0 2Z",fill:"currentColor"})})]}),!s&&r&&g(j0,{content:r}),!s&&g(q0,{timestamp:i})]})}function xy(e){const n=new Date().getTime()-e.getTime();return n<6e4?"Just now":n<36e5?`${Math.floor(n/6e4)}m ago`:e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function W0({content:e,children:t}){const[n,r]=de(!1),[i,a]=de(!1),s=ve(null),o=ve(null),u=n||i,c=t.props,h=qs(t,{ref:s,onMouseEnter:Ci(c.onMouseEnter,()=>r(!0)),onMouseLeave:Ci(c.onMouseLeave,()=>r(!1)),onFocus:Ci(c.onFocus,()=>a(!0)),onBlur:Ci(c.onBlur,()=>a(!1))});Th(()=>{const f=s.current,p=o.current;if(!u||!f||!p)return;const m=f.getBoundingClientRect(),T=p.offsetWidth,w=p.offsetHeight,y=m.top>w+8,I=Math.max(4,Math.min(m.left+(m.width-T)/2,innerWidth-T-4)),A=m.left+m.width/2-I;p.setAttribute("data-side",y?"top":"bottom"),p.style.left=`${I}px`,p.style.top=`${y?m.top-w-6:m.bottom+6}px`,p.style.setProperty("--ax",`${A-12}px`),p.style.setProperty("--origin",`${A}px ${y?"100%":"0%"}`),requestAnimationFrame(()=>p.setAttribute("data-open",""))},[u,e]);const d=u?s.current?.getRootNode():null;return g(Ee,{children:[h,d&&Oo(g("span",{ref:o,"data-side":"top",role:"tooltip",class:"bg-n-12 text-n-1 corner-smooth ease-out-back group pointer-events-none fixed z-[999999] origin-[--origin] scale-90 whitespace-nowrap rounded-lg px-2.5 py-1.5 text-xs opacity-0 transition-[opacity,transform] duration-300 data-[open]:scale-100 data-[open]:opacity-100 data-[open]:delay-300",children:[e,g("svg",{viewBox:"0 0 32 32","aria-hidden":"true",class:"fill-n-12 absolute left-[--ax] w-6 group-data-[side=bottom]:-top-6 group-data-[side=top]:-bottom-6 group-data-[side=top]:rotate-180",children:g("path",{d:"M3 32C9 32 10 31 15 26Q16 25 17 26C22 31 23 32 29 32"})})]}),d)]})}function Ci(e,t){return typeof e=="function"?(...n)=>{e(...n),t()}:t}function yy({onClose:e,onClearData:t,onSkipToInput:n}){const[r,i]=de(!1),a=()=>i(!1),s=u=>{if(u.key==="Escape"){if(u.preventDefault(),r){a();return}e()}},o=()=>{if(r){t(),a();return}i(!0)};return g("div",{class:"kin-panel sm:animate-kin-panel-in relative flex min-h-0 w-full flex-1 animate-none flex-col overflow-hidden [will-change:transform,opacity]",role:"dialog","aria-modal":"true","aria-labelledby":"kin-panel-title",onKeyDown:s,children:[g("button",{type:"button",class:"fr bg-n-2 text-n-12 absolute -top-full left-1/2 z-[1000000] -translate-x-1/2 rounded-lg px-3 py-1.5 text-sm font-medium no-underline focus:top-2",onClick:n,children:"Skip to chat input"}),g("header",{class:"pl-safe-l pr-safe-r pt-safe-t from-a-2/50 flex items-center justify-between bg-gradient-to-b to-transparent px-4 pb-3 sm:pl-5 sm:pr-3 sm:pt-3",children:[g("h2",{id:"kin-panel-title",class:"text-n-12 m-0 text-base font-semibold sm:text-sm sm:font-medium",children:"Kin Assistant"}),g("div",{class:"flex items-center gap-1.5",children:[g(W0,{content:r?"Click again to confirm":"Clear my data",children:g("button",{class:Pr({variant:r?"accent":"ghost",size:"sm"}),"aria-label":r?"Confirm clear data":"Clear my data",type:"button",onClick:o,onBlur:a,children:r?g(zh,{}):g(Uh,{})})}),g("button",{class:Pr({variant:"neutral",size:"sm"}),"aria-label":"Close chat",type:"button",onClick:e,children:g(Hh,{strokeWidth:2})})]})]}),g(gy,{})]})}const wy={"application/pdf":{maxSize:1e7},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{maxSize:1e7},"application/msword":{maxSize:1e7},"text/plain":{maxSize:1e6},"image/jpeg":{maxSize:1e7},"image/png":{maxSize:1e7},"image/webp":{maxSize:1e7}},Ay=".pdf,.docx,.doc,.txt,.jpg,.jpeg,.png,.webp";function Cy(e){const t=wy[e.type];return t?e.size>t.maxSize?{valid:!1,error:`File is too large. Maximum size is ${Math.round(t.maxSize/1e6)}MB.`}:e.size===0?{valid:!1,error:"The file appears to be empty."}:{valid:!0}:{valid:!1,error:"Unsupported file format. Please upload a PDF, Word document, text file, or image."}}function Sy(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{typeof r.result=="string"?t(r.result):n(new Error("Failed to read file"))},r.onerror=()=>n(r.error),r.readAsDataURL(e)})}function Iy({url:e,onMessage:t,onOpen:n,onClose:r,onError:i}){let a=null,s=[];const o=()=>a?.readyState===WebSocket.OPEN,u=f=>{o()&&a.send(JSON.stringify(f))},c=f=>u({type:"user_message",content:f}),h=()=>{if(o()){for(const f of s)c(f);s.length=0}};return(()=>{a=new WebSocket(e),a.onopen=()=>{n(),h()},a.onmessage=f=>{try{const p=JSON.parse(f.data);t(p)}catch{}},a.onclose=()=>{s=[],r(),a=null},a.onerror=f=>{i(f)}})(),{sendMessage:f=>{a&&(o()?c(f):a.readyState===WebSocket.CONNECTING&&s.push(f))},uploadFile:async(f,p)=>{if(!o())return{success:!1,error:"Not connected"};const m=Cy(f);if(!m.valid)return{success:!1,error:m.error};try{const T=await Sy(f);return o()?(u({type:"file_upload",fileType:p,fileName:f.name,mimeType:f.type,data:T}),{success:!0}):{success:!1,error:"Connection lost while reading file. Please try again."}}catch(T){return{success:!1,error:T instanceof Error?T.message:"Failed to read file"}}},clearData:()=>{u({type:"clear_data"})},disconnect:()=>{a&&(a.close(),a=null)},isConnected:()=>a?.readyState===WebSocket.OPEN}}const G0=2e3,Q0="absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-red-600 px-3 py-2 text-xs text-white animate-kin-error-in",Ny=un({base:"kin-launcher w-full pt-1 px-2 pb-safe-b",variants:{panelOpen:{true:"bg-gradient-to-b from-transparent to-n-2"}}}),vy=un({base:"kin-launcher-input-wrapper border outline relative flex p-0.5 gap-1 flex-col corner-smooth rounded-3xl bg-highest transition-all duration-200",variants:{panelOpen:{true:"outline-1 outline-transparent border-n-4 focus-within:outline-[3px] focus-within:outline-a-4/50 focus-within:border-a-6/50 shadow-md shadow-n-4/30",false:"outline-2 outline-a-9 border-transparent shadow-xl shadow-a-4/50"}}});function Ly({panelOpen:e,suggestions:t,onSubmit:n,onEscape:r,onFocus:i,onBlur:a,onUploadFile:s,inputRef:o}){const[u,c]=de(""),h=ve(null),d=o??h,f=ve(null),p=$.isStreaming.value,m=$.connectionState.value,T=$.uploadState.value,w=$.uploadError.value,y=$.uploadFileName.value,I=m==="connected",A=m==="connecting",P=m==="disconnected",H=m==="idle",S=T==="uploading"||T==="processing",Y=u.length>G0,L=u.trim(),O=L.length>0,C=$.messages.value.length>0,B=t.length>0,R=y?`Uploading ${y}...`:"Uploading file...",j=O&&!p&&!S&&!Y&&(I||A),X=I&&!p&&!S,G=ie=>{ie.preventDefault(),j&&(n(L),c(""))},te=ie=>{ie.key==="Enter"&&!ie.shiftKey?(ie.preventDefault(),G(ie)):ie.key==="Escape"&&(ie.preventDefault(),ie.stopPropagation(),r())},se=ie=>{const Z=ie.target,x=Z.files?.[0];x&&s(x,"cv"),Z.value=""},Ne=()=>B?"Or type a message...":S?R:A?"Connecting...":P?"Disconnected - Click to retry":p?"Waiting for response...":!e&&C?"Continue conversation...":"Ask me anything...",Pe=()=>S?R:p?"Waiting for response":H?"Click to connect":A?"Connecting...":O?I?"Send message":"Cannot send message":"Enter a message to send",_=()=>S?R:X?"Attach file (CV, document, or image)":"Cannot upload file";return g("div",{class:Ny({panelOpen:e}),role:"search","aria-label":"Chat with Kin AI",children:g("form",{onSubmit:G,class:vy({panelOpen:e}),children:[B&&g("div",{class:"bg-n-3/75 corner-smooth shadow-n-4/50 flex flex-wrap gap-1.5 rounded-b-lg rounded-t-[20px] p-2 shadow-inner","aria-label":"Suggested prompts",children:t.map((ie,Z)=>g("button",{type:"button",class:"fr bg-highest animate-kin-pop-in text-n-11 corner-smooth outline-n-4/50 hover:outline-n-7/50 hover:text-n-12 inline-flex items-center whitespace-nowrap rounded-2xl px-3 py-1.5 text-sm outline outline-1 transition-all hover:outline-2 active:scale-95",style:{animationDelay:`${.05+Z*.05}s`},onPointerDown:x=>x.preventDefault(),onClick:()=>n(ie.value),children:ie.label},ie.id))}),g("div",{class:"flex items-center gap-1 p-1 pl-3",children:[g("label",{for:"kin-input",class:"sr-only",children:"Ask Kin a question"}),g("input",{id:"kin-input",ref:d,type:"text",class:"text-n-12 placeholder:text-n-9 min-w-0 flex-1 border-none bg-transparent text-sm outline-none disabled:cursor-not-allowed",placeholder:Ne(),value:u,onInput:ie=>c(ie.target.value),onFocus:i,onBlur:ie=>a(ie.relatedTarget),onKeyDown:te,"aria-describedby":"kin-input-status",autoComplete:"off",disabled:S}),g("input",{ref:f,type:"file",class:"sr-only",accept:Ay,onChange:se,"aria-hidden":"true",tabIndex:-1}),g(W0,{content:_(),children:g("button",{type:"button",class:Pr({variant:"ghost"}),disabled:!X,"aria-label":_(),onPointerDown:ie=>ie.preventDefault(),onClick:()=>f.current?.click(),children:S?g($h,{class:"animate-kin-spin"}):g(To,{})})}),g("button",{type:"submit",class:Pr({variant:"accent"}),disabled:!j,"aria-label":Pe(),children:g(Fh,{strokeWidth:2})})]}),g("div",{id:"kin-input-status",class:"sr-only",role:"status","aria-live":"polite",children:[A&&"Connecting to Kin...",P&&"Connection lost. Click input to retry.",p&&"Kin is responding...",S&&R]}),w&&T==="error"&&g("div",{class:`${Q0} max-w-[calc(100%-32px)] truncate`,role:"alert",children:w}),Y&&g("div",{class:Q0,role:"alert",children:["Message too long (",u.length.toLocaleString(),"/",G0.toLocaleString()," characters)"]})]})})}const Ry="(max-width: 639px)",Oy='button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])';function K0(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}const Dy=un({base:"kin-widget font-kin text-kin text-n-12 fixed inset-x-0 bottom-0 z-[999999] flex w-full justify-center sm:inset-x-auto sm:bottom-4 sm:left-1/2 sm:w-auto sm:-translate-x-1/2",variants:{panelOpen:{true:"top-0 h-dvh items-stretch [touch-action:manipulation] sm:top-auto sm:h-auto sm:items-end sm:[touch-action:auto]",false:"items-end"}}}),Py=un({base:"kin-widget-shell pointer-events-auto flex w-full flex-col transition-all duration-300 ease-kin-open",variants:{panelOpen:{true:"h-full overflow-hidden rounded-none bg-n-1 sm:w-[480px] sm:min-h-[50vh] sm:max-h-[90vh] sm:rounded-[32px] corner-smooth sm:outline sm:outline-1 sm:outline-n-6/50 sm:shadow-2xl sm:shadow-n-6/30",false:"mx-3 sm:mx-0 sm:w-[360px]"}}});function My({starterPrompts:e,onSendMessage:t,onOpen:n,onClose:r,onConnect:i,onClearData:a,onUploadFile:s,embedded:o=!1}){const u=$.isOpen.value,c=o||u,[h,d]=de(!1),f=ve(null),p=ve(null),m=ve(null),T=$.messages.value.length>0,w=$.quickReplies.value,y=!c&&!T&&h&&e.length>0,I=c&&w.length>0,A=y?e.map((B,R)=>({id:`sp-${R}`,label:B.label,value:B.message})):I?w.map((B,R)=>({id:`qr-${R}`,label:B,value:B})):[];Se(()=>{if(c){const B=K0();p.current=B instanceof HTMLElement&&!f.current?.contains(B)?B:null,requestAnimationFrame(()=>m.current?.focus())}else d(!1)},[c]),Se(()=>{o&&!u&&n()},[o,n,u]),Se(()=>{if(!c||o)return;const B=window.matchMedia(Ry);let R=0,j="",X=!1;const G=()=>{X||(R=window.scrollY,j=document.body.style.overflow,document.body.style.overflow="hidden",X=!0)},te=()=>{X&&(document.body.style.overflow=j,window.scrollTo(0,R),X=!1)},se=()=>B.matches?G():te();return se(),B.addEventListener("change",se),()=>{B.removeEventListener("change",se),te()}},[c,o]),Se(()=>{if(!c)return;const B=R=>{if(R.key!=="Tab")return;const j=f.current;if(!j)return;const X=j.querySelectorAll(Oy),G=X[0],te=X[X.length-1];if(!G||!te)return;const se=K0();R.shiftKey&&se===G?(R.preventDefault(),te.focus()):!R.shiftKey&&se===te&&(R.preventDefault(),G.focus())};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[c]);const P=()=>{o||c||n()},H=()=>{o||!c||(r(),p.current&&requestAnimationFrame(()=>p.current?.focus()))},S=B=>{const R=B.trim();if(!R)return;const j=$.isStreaming.value,X=$.uploadState.value==="uploading"||$.uploadState.value==="processing",G=$.connectionState.value;!j&&!X&&(G==="connected"||G==="connecting")&&($.addMessage({role:"user",content:R}),P(),i(),t(R))},Y=()=>{d(!0),i(),!c&&T&&P()},L=B=>{B instanceof Node&&f.current?.contains(B)||d(!1)},O=()=>{c?H():m.current?.blur()},C=(B,R)=>{P(),s(B,R)};return g("div",{ref:f,class:Dy({panelOpen:c}),role:"region","aria-label":"Kin AI Chat",children:g("div",{class:Py({panelOpen:c}),children:[g("div",{class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:c?"Chat panel opened":""}),c&&g(yy,{onClose:H,onClearData:a,onSkipToInput:()=>m.current?.focus()}),g(Ly,{panelOpen:c,suggestions:A,onSubmit:S,onEscape:O,onFocus:Y,onBlur:L,onUploadFile:C,inputRef:m})]})})}const By=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*{box-sizing:border-box;font:inherit;border:0 solid;-webkit-tap-highlight-color:transparent}button{all:unset;cursor:pointer;touch-action:manipulation}ul,ol,li,p{margin:0;padding:0}ul,ol{list-style:none}svg{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-x-0{left:0;right:0}.-bottom-1\\.5{bottom:-.375rem}.-top-full{top:-100%}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-1\\/2{left:50%}.left-\\[--ax\\]{left:var(--ax)}.right-1\\.5{right:.375rem}.top-0{top:0}.z-\\[1000000\\]{z-index:1000000}.z-\\[999999\\]{z-index:999999}.m-0{margin:0}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-8{width:2rem;height:2rem}.size-9{width:2.25rem;height:2.25rem}.h-dvh{height:100dvh}.h-full{height:100%}.min-h-0{min-height:0px}.w-4{width:1rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[calc\\(100\\%-32px\\)\\]{max-width:calc(100% - 32px)}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-\\[--origin\\]{transform-origin:var(--origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.animate-kin-error-in{animation:kin-error-in .2s ease}@keyframes kin-fade{0%{opacity:0}to{opacity:1}}.animate-kin-fade-in{animation:kin-fade .4s ease both}@keyframes kin-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-kin-message-in{animation:kin-slide-up .3s cubic-bezier(.32,.72,0,1) both}@keyframes kin-pop{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}.animate-kin-pop-in{animation:kin-pop .3s cubic-bezier(.34,1.56,.64,1) backwards}@keyframes kin-shimmer{0%{background-position:200% 50%}to{background-position:-200% 50%}}.animate-kin-shimmer{animation:kin-shimmer 2.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-kin-spin{animation:spin 1s linear infinite}.animate-none{animation:none}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-4{gap:1rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-\\[20px\\]{border-top-left-radius:20px;border-top-right-radius:20px}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-none{border-style:none}.border-n-4{--tw-border-opacity: 1;border-color:oklch(var(--n-4) / var(--tw-border-opacity, 1))}.border-n-6\\/40{border-color:oklch(var(--n-6) / .4)}.border-transparent{border-color:transparent}.bg-a-9{--tw-bg-opacity: 1;background-color:oklch(var(--a-9) / var(--tw-bg-opacity, 1))}.bg-highest{--tw-bg-opacity: 1;background-color:oklch(var(--highest) / var(--tw-bg-opacity, 1))}.bg-n-1{--tw-bg-opacity: 1;background-color:oklch(var(--n-1) / var(--tw-bg-opacity, 1))}.bg-n-12{--tw-bg-opacity: 1;background-color:oklch(var(--n-12) / var(--tw-bg-opacity, 1))}.bg-n-2{--tw-bg-opacity: 1;background-color:oklch(var(--n-2) / var(--tw-bg-opacity, 1))}.bg-n-3{--tw-bg-opacity: 1;background-color:oklch(var(--n-3) / var(--tw-bg-opacity, 1))}.bg-n-3\\/75{background-color:oklch(var(--n-3) / .75)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-\\[linear-gradient\\(90deg\\,oklch\\(var\\(--n-9\\)\\)_40\\%\\,oklch\\(var\\(--n-11\\)\\)_50\\%\\,oklch\\(var\\(--n-9\\)\\)_60\\%\\)\\]{background-image:linear-gradient(90deg,oklch(var(--n-9)) 40%,oklch(var(--n-11)) 50%,oklch(var(--n-9)) 60%)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-a-2\\/50{--tw-gradient-from: oklch(var(--a-2) / .5) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-n-2{--tw-gradient-to: oklch(var(--n-2) / 1) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-\\[length\\:200\\%_100\\%\\]{background-size:200% 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-n-12{fill:oklch(var(--n-12) / 1)}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2\\.5{padding-bottom:.625rem}.pb-3{padding-bottom:.75rem}.pb-safe-b{padding-bottom:max(.5rem,calc(env(safe-area-inset-bottom,0px) + .5rem))}.pl-3{padding-left:.75rem}.pl-safe-l{padding-left:max(1rem,env(safe-area-inset-left,1rem))}.pr-safe-r{padding-right:max(1rem,env(safe-area-inset-right,1rem))}.pt-1{padding-top:.25rem}.pt-safe-t{padding-top:max(1rem,env(safe-area-inset-top,1rem))}.text-center{text-align:center}.font-kin{font-family:var(--kin-font-family)}.text-base{font-size:1rem;line-height:1.5rem}.text-kin{font-size:max(14px,1rem);line-height:1.5}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-inherit{color:inherit}.text-n-1{--tw-text-opacity: 1;color:oklch(var(--n-1) / var(--tw-text-opacity, 1))}.text-n-10{--tw-text-opacity: 1;color:oklch(var(--n-10) / var(--tw-text-opacity, 1))}.text-n-11{--tw-text-opacity: 1;color:oklch(var(--n-11) / var(--tw-text-opacity, 1))}.text-n-12{--tw-text-opacity: 1;color:oklch(var(--n-12) / var(--tw-text-opacity, 1))}.text-n-3{--tw-text-opacity: 1;color:oklch(var(--n-3) / var(--tw-text-opacity, 1))}.text-n-8{--tw-text-opacity: 1;color:oklch(var(--n-8) / var(--tw-text-opacity, 1))}.text-n-9{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-a-4\\/50{--tw-shadow-color: oklch(var(--a-4) / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-n-4\\/30{--tw-shadow-color: oklch(var(--n-4) / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-n-4\\/50{--tw-shadow-color: oklch(var(--n-4) / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-a-9{outline-color:oklch(var(--a-9) / 1)}.outline-n-4\\/50{outline-color:oklch(var(--n-4) / .5)}.outline-transparent{outline-color:transparent}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-kin-open{transition-timing-function:cubic-bezier(.32,.72,0,1)}.ease-out-back{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}.fr:focus-visible{outline:2px solid oklch(var(--a-9) / .5);outline-offset:2px}.corner-smooth{corner-shape:superellipse(1.25)}.\\[mask-image\\:linear-gradient\\(to_bottom\\,transparent_0\\,_black_1\\.5rem\\,_black_calc\\(100\\%-1\\.5rem\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to bottom,transparent 0,black 1.5rem,black calc(100% - 1.5rem),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,black 1.5rem,black calc(100% - 1.5rem),transparent 100%)}.\\[touch-action\\:manipulation\\]{touch-action:manipulation}.\\[will-change\\:transform\\,opacity\\]{will-change:transform,opacity}:host{--a-1: 99.4% .003 22.8;--a-2: 98.4% .007 31;--a-3: 95.4% .022 30.9;--a-4: 92.6% .047 31.8;--a-5: 89.2% .063 31.5;--a-6: 85.2% .077 32;--a-7: 80.3% .094 32.2;--a-8: 74.1% .118 32.1;--a-9: 62.7% .194 33.3;--a-10: 60.4% .195 33.3;--a-11: 56.7% .198 32.8;--a-12: 34.6% .08 30.5;--n-1: 99.1% 0 0;--n-2: 98.1% 0 0;--n-3: 95.3% 0 0;--n-4: 93% 0 0;--n-5: 90.8% 0 0;--n-6: 88.4% 0 0;--n-7: 85.1% 0 0;--n-8: 79.1% 0 0;--n-9: 64.3% 0 0;--n-10: 60.9% 0 0;--n-11: 50.3% 0 0;--n-12: 24.3% 0 0;--kin-transition: .2s ease;--kin-font-family: inherit}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown :is(strong,b){font-weight:600}.kin-markdown :is(em,i){font-style:italic}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:4px;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:8px;overflow-x:auto;margin:1em 0;border:1px solid oklch(var(--n-6) / .4)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown :is(ul,ol){margin:.75em 0;padding-left:1.5em}.kin-markdown ul{list-style-type:disc}.kin-markdown ol{list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:oklch(var(--n-9))}.kin-markdown :is(ul,ol) :is(ul,ol){margin:.25em 0}.kin-markdown blockquote{border-left:3px solid oklch(var(--a-9));margin:1em 0;padding:.5em 0 .5em 1em;color:oklch(var(--n-11));font-style:italic}.kin-markdown :is(h1,h2,h3,h4){font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown :is(h1,h2,h3):first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown :is(th,td){padding:.5em .75em;border:1px solid oklch(var(--n-6) / .4);text-align:left}.kin-markdown th{background:oklch(var(--n-4));font-weight:600}.kin-markdown hr{border:none;border-top:1px solid oklch(var(--n-6) / .4);margin:1.5em 0}.kin-markdown hr+p{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.75em;color:oklch(var(--n-9));margin:-1em 0 0;line-height:1.6}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:oklch(var(--a-9))}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:oklch(var(--a-9));margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.placeholder\\:text-n-9::-moz-placeholder{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.placeholder\\:text-n-9::placeholder{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.focus-within\\:border-a-6\\/50:focus-within{border-color:oklch(var(--a-6) / .5)}.focus-within\\:outline-\\[3px\\]:focus-within{outline-width:3px}.focus-within\\:outline-a-4\\/50:focus-within{outline-color:oklch(var(--a-4) / .5)}.hover\\:bg-a-10:hover{--tw-bg-opacity: 1;background-color:oklch(var(--a-10) / var(--tw-bg-opacity, 1))}.hover\\:bg-n-3:hover{--tw-bg-opacity: 1;background-color:oklch(var(--n-3) / var(--tw-bg-opacity, 1))}.hover\\:bg-n-4:hover{--tw-bg-opacity: 1;background-color:oklch(var(--n-4) / var(--tw-bg-opacity, 1))}.hover\\:text-a-9:hover{--tw-text-opacity: 1;color:oklch(var(--a-9) / var(--tw-text-opacity, 1))}.hover\\:text-n-11:hover{--tw-text-opacity: 1;color:oklch(var(--n-11) / var(--tw-text-opacity, 1))}.hover\\:text-n-12:hover{--tw-text-opacity: 1;color:oklch(var(--n-12) / var(--tw-text-opacity, 1))}.hover\\:underline-offset-4:hover{text-underline-offset:4px}.hover\\:outline-2:hover{outline-width:2px}.hover\\:outline-n-7\\/50:hover{outline-color:oklch(var(--n-7) / .5)}.focus\\:top-2:focus{top:.5rem}.focus-visible\\:rounded-\\[2px\\]:focus-visible{border-radius:2px}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-n-6:disabled{--tw-text-opacity: 1;color:oklch(var(--n-6) / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[open\\]\\:scale-100[data-open]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[open\\]\\:opacity-100[data-open]{opacity:1}.data-\\[open\\]\\:delay-300[data-open]{transition-delay:.3s}.group[data-side=bottom] .group-data-\\[side\\=bottom\\]\\:-top-6{top:-1.5rem}.group[data-side=top] .group-data-\\[side\\=top\\]\\:-bottom-6{bottom:-1.5rem}.group[data-side=top] .group-data-\\[side\\=top\\]\\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\\:inset-x-auto{left:auto;right:auto}.sm\\:bottom-4{bottom:1rem}.sm\\:left-1\\/2{left:50%}.sm\\:top-auto{top:auto}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:size-7{width:1.75rem;height:1.75rem}.sm\\:size-8{width:2rem;height:2rem}.sm\\:size-9{width:2.25rem;height:2.25rem}.sm\\:h-auto{height:auto}.sm\\:max-h-\\[90vh\\]{max-height:90vh}.sm\\:min-h-\\[50vh\\]{min-height:50vh}.sm\\:w-\\[360px\\]{width:360px}.sm\\:w-\\[480px\\]{width:480px}.sm\\:w-auto{width:auto}.sm\\:-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes kin-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.sm\\:animate-kin-panel-in{animation:kin-slide-up .35s cubic-bezier(.32,.72,0,1) both}.sm\\:items-end{align-items:flex-end}.sm\\:overscroll-auto{overscroll-behavior:auto}.sm\\:rounded-\\[32px\\]{border-radius:32px}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:pl-5{padding-left:1.25rem}.sm\\:pr-3{padding-right:.75rem}.sm\\:pt-3{padding-top:.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:font-medium{font-weight:500}.sm\\:shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sm\\:shadow-n-6\\/30{--tw-shadow-color: oklch(var(--n-6) / .3);--tw-shadow: var(--tw-shadow-colored)}.sm\\:outline{outline-style:solid}.sm\\:outline-1{outline-width:1px}.sm\\:outline-n-6\\/50{outline-color:oklch(var(--n-6) / .5)}.sm\\:\\[touch-action\\:auto\\]{touch-action:auto}}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-\\[3px\\]::-webkit-scrollbar-thumb{border-radius:3px}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-n-4::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:oklch(var(--n-4) / var(--tw-bg-opacity, 1))}.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:bg-transparent::-webkit-scrollbar-track{background-color:transparent}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1\\.5::-webkit-scrollbar{width:.375rem}.\\[\\&_svg\\]\\:size-3\\.5 svg{width:.875rem;height:.875rem}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:size-5 svg{width:1.25rem;height:1.25rem}
121
- `,X0=["gray","mauve","slate","sage","olive","sand","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","bronze","gold"],Z0={gray:[[.178,0,null],[.213,0,null],[.254,0,null],[.283,0,null],[.313,0,null],[.349,0,null],[.402,0,null],[.488,0,null],[.538,0,null],[.584,0,null],[.77,0,null],[.949,0,null]],mauve:[[.18,.004,307.8],[.215,.004,307.8],[.255,.006,306.5],[.284,.008,307.8],[.314,.009,306.9],[.35,.01,304],[.402,.012,304.4],[.492,.016,300.7],[.54,.017,294],[.586,.017,295.4],[.77,.014,296.6],[.949,.003,286.3]],slate:[[.179,.004,286],[.213,.004,264.4],[.253,.006,261.2],[.283,.007,259.5],[.311,.008,259.7],[.346,.01,256.5],[.398,.012,253.8],[.49,.016,247.6],[.537,.015,261.1],[.583,.014,263.3],[.768,.01,261.3],[.949,.003,264.6]],sage:[[.179,.004,167.4],[.211,.004,160.2],[.251,.004,164.2],[.281,.005,164.9],[.311,.005,167.4],[.347,.006,167.4],[.399,.008,167.4],[.488,.009,169.8],[.533,.018,170.8],[.579,.016,170.5],[.766,.01,167.5],[.947,.002,167.7]],olive:[[.18,.004,128.3],[.212,.004,128.3],[.252,.005,129],[.281,.006,131.4],[.31,.007,131.4],[.346,.008,134.4],[.399,.01,136],[.488,.012,140.8],[.535,.018,139.6],[.581,.016,140.1],[.766,.013,139.5],[.947,.003,144.8]],sand:[[.178,.002,106.6],[.213,.002,106.6],[.253,.003,106.6],[.283,.004,99],[.312,.004,100.7],[.349,.006,102.2],[.401,.007,96.1],[.49,.01,91.7],[.535,.011,94.1],[.581,.011,94],[.767,.009,97.4],[.948,.003,106.4]],tomato:[[.187,.012,19.6],[.208,.017,32],[.254,.054,26.9],[.291,.087,28.2],[.331,.097,28.7],[.38,.099,30],[.447,.107,31.5],[.538,.13,32.9],[.627,.194,33.3],[.665,.179,34.1],[.784,.164,36],[.899,.047,31.1]],red:[[.188,.013,19.4],[.205,.022,14.7],[.25,.064,13.1],[.289,.096,14.3],[.332,.107,15.5],[.383,.111,16.9],[.451,.121,18.9],[.544,.147,21.4],[.625,.193,23],[.665,.177,23.1],[.784,.162,22.3],[.902,.053,6.14]],ruby:[[.189,.014,2.9],[.208,.016,5.29],[.254,.06,6.54],[.292,.089,5.5],[.333,.1,6.4],[.382,.105,7.59],[.448,.117,9.02],[.544,.145,11.1],[.628,.195,13.2],[.664,.179,13.7],[.786,.161,17],[.905,.053,355.8]],crimson:[[.189,.014,354.2],[.207,.022,352.9],[.256,.059,353.9],[.293,.094,354.1],[.333,.104,354.7],[.382,.109,355.5],[.45,.12,356.7],[.542,.148,358.3],[.634,.213,1.3],[.664,.197,1.95],[.787,.167,6.72],[.909,.054,346.7]],pink:[[.191,.017,334.9],[.207,.031,338.2],[.261,.061,337.5],[.299,.098,340.1],[.338,.104,340.6],[.389,.107,341.6],[.459,.119,342.6],[.545,.145,344.1],[.617,.208,346.1],[.65,.197,346.2],[.789,.19,350.7],[.905,.059,343.2]],plum:[[.19,.017,327],[.21,.031,327.7],[.266,.062,326.7],[.307,.088,325.3],[.343,.095,324.6],[.389,.097,324.2],[.456,.106,323.4],[.545,.128,322.2],[.579,.188,322.1],[.616,.182,322.1],[.786,.154,322.1],[.906,.055,325.8]],purple:[[.192,.022,316],[.213,.031,314.3],[.266,.062,312],[.308,.083,310.7],[.344,.091,310.1],[.388,.097,309.7],[.45,.108,308.7],[.541,.133,307.1],[.555,.183,305.9],[.596,.177,306.3],[.785,.156,307.9],[.911,.049,310.9]],violet:[[.191,.026,290.5],[.211,.032,299.5],[.271,.066,293.9],[.312,.093,291.7],[.348,.099,291.4],[.39,.102,291.8],[.445,.111,291.6],[.516,.131,290.2],[.542,.179,288.1],[.588,.17,289.7],[.778,.137,293.6],[.912,.045,292.6]],iris:[[.193,.022,284.2],[.209,.029,286.5],[.273,.069,278.6],[.319,.102,276.1],[.358,.109,277.4],[.399,.112,279.6],[.448,.12,280.8],[.507,.138,281.1],[.54,.184,278.3],[.587,.172,281.2],[.776,.131,286.6],[.914,.042,287]],indigo:[[.191,.025,276.7],[.209,.03,276],[.272,.069,267.8],[.319,.093,267],[.362,.105,267.5],[.404,.111,268.3],[.45,.12,268.8],[.503,.137,268.4],[.544,.191,267.1],[.59,.176,269.2],[.777,.123,273.3],[.911,.043,270]],blue:[[.193,.026,256.8],[.213,.03,258.8],[.274,.067,254],[.317,.1,248.3],[.365,.108,249.7],[.416,.112,251.7],[.475,.121,252.8],[.541,.14,253.2],[.649,.193,251.8],[.689,.17,251.5],[.768,.135,248.8],[.907,.051,238.3]],cyan:[[.191,.017,219.9],[.214,.018,225.4],[.272,.044,222.5],[.315,.063,222.1],[.362,.07,221.5],[.414,.075,221.7],[.478,.083,221.4],[.558,.098,220.7],[.661,.122,221.5],[.698,.12,219.1],[.786,.115,213.4],[.909,.057,211.7]],teal:[[.189,.012,184.5],[.217,.017,189.3],[.274,.038,186.3],[.317,.055,187],[.363,.06,186.5],[.414,.065,185.4],[.473,.074,184.5],[.539,.087,183.5],[.649,.113,182],[.687,.123,180.3],[.789,.147,175.7],[.905,.072,175.3]],jade:[[.188,.014,166.3],[.216,.018,166.1],[.272,.042,166.8],[.316,.057,168],[.362,.064,168.5],[.411,.068,169.7],[.468,.075,170.6],[.537,.088,171.8],[.642,.115,170.8],[.678,.125,169.9],[.785,.156,167.1],[.903,.078,167]],green:[[.189,.013,163.3],[.213,.016,162.2],[.271,.039,162.7],[.318,.057,161.5],[.365,.066,161.1],[.413,.073,160.7],[.467,.083,159.9],[.527,.096,159.2],[.64,.133,157.8],[.676,.141,157.6],[.78,.166,157.2],[.905,.083,158.3]],grass:[[.188,.014,155.8],[.211,.014,151.5],[.267,.03,150.7],[.319,.052,150.4],[.367,.062,149.9],[.416,.072,149.3],[.468,.084,148.9],[.524,.097,148.2],[.652,.147,147.4],[.69,.145,147.6],[.78,.142,148.5],[.911,.078,144.9]],brown:[[.178,.005,81.5],[.213,.007,51.6],[.254,.013,53.5],[.288,.018,55.4],[.325,.024,55.9],[.37,.032,57.7],[.429,.041,59.8],[.509,.053,62.2],[.633,.078,60.8],[.674,.075,61.5],[.798,.063,62.5],[.918,.036,75.7]],bronze:[[.181,.005,41.6],[.215,.005,41.5],[.255,.008,42.7],[.291,.01,45.5],[.329,.013,43.3],[.374,.016,44.3],[.43,.02,44.8],[.499,.024,45.2],[.627,.046,44.3],[.669,.045,44.3],[.792,.043,44.5],[.915,.017,50.3]],gold:[[.182,.002,106.6],[.216,.006,92.5],[.255,.008,88.3],[.291,.01,86.8],[.329,.011,83.7],[.374,.014,82.4],[.429,.016,80.9],[.498,.02,79.5],[.621,.049,78.1],[.662,.047,77.2],[.794,.041,77.2],[.915,.014,77.4]],sky:[[.19,.024,257.1],[.216,.029,258.5],[.271,.054,251.9],[.322,.07,247.8],[.372,.079,245.8],[.427,.087,243.6],[.488,.098,240.7],[.557,.114,237.2],[.861,.103,217.8],[.908,.073,214.9],[.793,.099,231.7],[.934,.053,214.4]],mint:[[.188,.012,192.3],[.21,.017,196.6],[.269,.039,192.5],[.313,.058,191.6],[.359,.063,188.9],[.41,.067,186.3],[.471,.073,183.4],[.54,.085,179.6],[.87,.1,178],[.916,.08,179.4],[.795,.118,176.4],[.93,.057,168.5]],lime:[[.18,.014,120.3],[.208,.019,129],[.266,.034,132.2],[.317,.047,131.8],[.363,.058,131.6],[.412,.069,131.4],[.464,.08,131.2],[.524,.095,130.9],[.888,.175,126.1],[.942,.175,123.7],[.868,.156,124.8],[.946,.082,122.6]],yellow:[[.181,.013,86],[.209,.017,92.1],[.259,.047,90.3],[.293,.069,94.2],[.333,.079,94.6],[.384,.077,93.3],[.452,.081,91.5],[.535,.095,89.9],[.927,.209,102.1],[.971,.182,109.4],[.9,.166,101.6],[.941,.075,101]],amber:[[.184,.013,77.3],[.212,.018,78.7],[.258,.044,74.6],[.296,.071,76.2],[.337,.081,76.4],[.387,.078,75.1],[.453,.082,74.5],[.536,.096,73.6],[.856,.178,81.4],[.902,.206,97],[.871,.175,85.1],[.935,.072,86]],orange:[[.186,.012,53.7],[.209,.019,67.4],[.257,.045,59.5],[.293,.08,58.6],[.335,.087,58.1],[.386,.087,55.2],[.453,.095,53.1],[.541,.116,49.7],[.689,.191,44.8],[.741,.199,46.3],[.799,.163,50.8],[.925,.052,66.2]]},J0={gray:[[.991,0,null],[.981,0,null],[.953,0,null],[.93,0,null],[.908,0,null],[.884,0,null],[.851,0,null],[.791,0,null],[.643,0,null],[.609,0,null],[.503,0,null],[.243,0,null]],mauve:[[.992,.002,321.1],[.983,.003,311.2],[.956,.006,314.2],[.932,.008,310],[.909,.01,306.6],[.886,.012,304],[.854,.014,300.6],[.794,.019,293.5],[.646,.019,292.6],[.611,.018,293.1],[.505,.016,296.1],[.245,.013,298]],slate:[[.991,.001,286.4],[.982,.003,286.3],[.956,.004,281.9],[.931,.006,283],[.91,.008,283.6],[.888,.009,281.8],[.853,.012,280.8],[.794,.016,278.1],[.646,.016,277.8],[.61,.016,273.2],[.503,.014,263.4],[.241,.01,249.5]],sage:[[.992,.003,160.4],[.981,.003,171.2],[.955,.003,170.4],[.931,.003,170.4],[.909,.004,167.7],[.885,.004,167.7],[.851,.004,169.9],[.792,.005,169.5],[.639,.01,172.4],[.605,.01,172.8],[.501,.008,175.9],[.24,.012,166.8]],olive:[[.993,.002,149.1],[.983,.003,144.8],[.956,.004,141.1],[.932,.004,142.1],[.909,.005,139.3],[.886,.006,141.1],[.852,.006,141.1],[.792,.007,140.6],[.64,.011,136.5],[.605,.012,136.5],[.5,.011,139.9],[.242,.011,138.2]],sand:[[.994,.001,106.4],[.982,.001,106.4],[.956,.002,97.6],[.932,.003,100.6],[.91,.004,95.9],[.886,.005,98.3],[.853,.006,96.6],[.792,.008,96.5],[.641,.01,106.7],[.606,.01,106.7],[.498,.008,106.7],[.243,.008,96.3]],tomato:[[.994,.003,22.8],[.984,.007,31],[.954,.022,30.9],[.926,.047,31.8],[.892,.063,31.5],[.852,.077,32],[.803,.094,32.2],[.741,.118,32.1],[.627,.194,33.3],[.604,.195,33.3],[.567,.198,32.8],[.346,.08,30.5]],red:[[.994,.003,22.8],[.983,.008,16],[.956,.021,16.2],[.928,.047,16.7],[.896,.062,17.3],[.857,.075,17.9],[.807,.089,18.4],[.745,.113,19.1],[.625,.193,23],[.6,.195,23.9],[.557,.198,25.1],[.339,.109,16.7]],ruby:[[.994,.003,356.3],[.983,.008,8.41],[.954,.022,8.56],[.928,.042,8.46],[.896,.055,8.16],[.858,.066,7.84],[.81,.08,7.49],[.749,.101,6.86],[.628,.195,13.2],[.601,.196,13.4],[.549,.199,13.9],[.341,.11,10]],crimson:[[.994,.003,356.3],[.982,.008,357.2],[.954,.026,356.3],[.925,.041,356.3],[.893,.054,355.8],[.855,.065,355.6],[.808,.078,354.8],[.75,.099,354.1],[.634,.213,1.3],[.608,.211,2.36],[.552,.207,4.49],[.341,.113,356.8]],pink:[[.994,.004,336.3],[.983,.009,340],[.954,.027,340.6],[.925,.042,340.7],[.893,.054,340.9],[.855,.067,340.9],[.809,.083,341.2],[.752,.107,341.6],[.617,.208,346.1],[.596,.207,346.5],[.557,.206,347.3],[.35,.129,345.5]],plum:[[.993,.005,316.9],[.983,.009,326],[.957,.027,325.5],[.929,.044,324.9],[.898,.057,324.4],[.86,.072,323.9],[.809,.091,323.1],[.742,.12,321.9],[.579,.188,322.1],[.553,.181,322.1],[.521,.173,322],[.338,.125,321.4]],purple:[[.993,.004,325.4],[.982,.009,313.1],[.959,.024,313.3],[.933,.039,312.1],[.901,.054,311.6],[.86,.071,311],[.804,.093,309.9],[.733,.123,308],[.555,.183,305.9],[.524,.176,305.7],[.516,.174,305.7],[.322,.11,303.8]],violet:[[.992,.003,308],[.983,.009,295],[.963,.019,296.6],[.934,.039,295.4],[.904,.057,294.1],[.864,.072,293.9],[.806,.09,293.5],[.729,.119,292.4],[.542,.179,288.1],[.511,.177,287.6],[.508,.159,288.6],[.313,.098,286.8]],iris:[[.994,.003,286.4],[.981,.009,284.1],[.961,.018,283.8],[.935,.035,283.4],[.904,.053,283.8],[.865,.07,283.1],[.808,.088,282.9],[.729,.118,281.5],[.54,.184,278.3],[.509,.186,277.5],[.51,.173,279.7],[.315,.099,277.4]],indigo:[[.994,.001,286.4],[.983,.008,271.4],[.961,.017,268.5],[.935,.034,268.5],[.903,.051,270],[.863,.071,271.5],[.807,.087,271.4],[.73,.113,270.5],[.544,.191,267.1],[.511,.195,266.5],[.51,.173,267.1],[.313,.086,268.6]],blue:[[.993,.003,247.6],[.982,.01,243.3],[.96,.02,236.7],[.937,.037,239],[.906,.053,242.8],[.864,.069,243.2],[.809,.088,243.3],[.735,.121,243],[.649,.193,251.8],[.621,.184,251.9],[.558,.189,253],[.324,.097,259]],cyan:[[.992,.004,219.2],[.98,.009,202.9],[.958,.026,203.6],[.932,.041,204.7],[.9,.054,206.5],[.859,.066,207.7],[.805,.082,209.6],[.727,.11,211.7],[.661,.122,221.5],[.627,.114,221.3],[.54,.127,223.7],[.332,.053,218.6]],teal:[[.994,.005,177.5],[.981,.009,179],[.961,.027,180.3],[.935,.042,180.2],[.9,.054,180.5],[.856,.064,181.4],[.797,.076,182.2],[.721,.097,183.5],[.649,.113,182],[.619,.11,181.2],[.53,.124,179],[.327,.05,185]],jade:[[.995,.004,172.6],[.982,.009,160.3],[.96,.022,161.9],[.934,.034,163.5],[.902,.046,164.8],[.859,.059,166.9],[.8,.077,169.5],[.721,.103,173.4],[.642,.115,170.8],[.613,.11,170.6],[.529,.127,167.2],[.326,.041,169.8]],green:[[.994,.004,159.1],[.982,.009,155.3],[.959,.023,156.4],[.933,.036,156.6],[.9,.05,157.2],[.857,.065,157.9],[.798,.084,159],[.714,.112,160.6],[.64,.133,157.8],[.611,.126,158.3],[.529,.133,158.3],[.322,.047,164.6]],grass:[[.994,.005,146.4],[.982,.009,145.9],[.961,.023,145.3],[.934,.037,146.2],[.901,.053,146.4],[.858,.071,146.8],[.798,.095,147.5],[.716,.13,148.3],[.652,.147,147.4],[.614,.142,147.3],[.527,.13,147.2],[.327,.053,148.6]],brown:[[.994,.002,63.2],[.983,.006,65.7],[.954,.013,67.8],[.926,.02,66.9],[.897,.029,65.8],[.862,.039,65.5],[.815,.053,64.2],[.747,.072,62.4],[.633,.078,60.8],[.597,.072,59.3],[.512,.058,55.5],[.332,.018,47]],bronze:[[.992,.001,15.9],[.981,.007,43],[.953,.01,44.3],[.925,.014,43.6],[.895,.018,42.6],[.86,.023,43.4],[.811,.03,41.9],[.742,.039,41.2],[.627,.046,44.3],[.588,.045,42.4],[.51,.044,38.4],[.329,.029,35.2]],gold:[[.994,.001,106.4],[.981,.009,97.3],[.953,.012,94.7],[.926,.015,93.2],[.896,.019,90.7],[.86,.025,88.4],[.81,.032,83.4],[.739,.042,78.2],[.621,.049,78.1],[.588,.047,77.4],[.504,.039,78.1],[.332,.019,81.7]],sky:[[.993,.005,211.9],[.98,.01,217.7],[.961,.024,219.6],[.936,.036,220.4],[.903,.047,221.4],[.861,.058,222.9],[.806,.072,225.7],[.729,.096,228],[.861,.103,217.8],[.838,.104,219.6],[.526,.108,232.5],[.351,.057,241.6]],mint:[[.993,.005,183.7],[.982,.01,178.7],[.96,.03,179.6],[.933,.047,179],[.899,.061,178.7],[.856,.072,178.7],[.798,.085,178.2],[.722,.107,177.7],[.87,.1,178],[.841,.1,177.8],[.512,.095,176],[.35,.051,181.4]],lime:[[.992,.004,120.7],[.982,.01,116.7],[.959,.043,119.1],[.932,.069,120.4],[.897,.087,121.8],[.853,.099,123.4],[.795,.111,125.3],[.724,.135,128.1],[.888,.175,126.1],[.859,.188,126.7],[.544,.111,128.6],[.354,.057,121.2]],yellow:[[.993,.005,106.5],[.988,.025,102.9],[.974,.084,104.4],[.953,.117,101.7],[.925,.141,98.2],[.881,.134,95.4],[.836,.12,92.8],[.766,.137,89.8],[.927,.209,102.1],[.897,.185,97.5],[.574,.136,81.7],[.358,.046,86.6]],amber:[[.994,.003,84.6],[.986,.024,100.3],[.969,.069,100.4],[.945,.104,98.2],[.918,.133,98.4],[.881,.124,93.2],[.827,.122,86.2],[.758,.14,76.7],[.856,.178,81.4],[.831,.168,80.9],[.569,.144,67.3],[.352,.049,53.7]],orange:[[.992,.003,40.7],[.979,.015,70.8],[.958,.037,78.1],[.92,.081,74.2],[.89,.107,70.8],[.857,.11,64.4],[.805,.113,59.9],[.745,.132,54.8],[.689,.191,44.8],[.662,.194,43.5],[.592,.186,47],[.35,.069,40.8]]},As=e=>(e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4),Fy=(e,t,n)=>{const r=.4122214708*e+.5363325363*t+.0514459929*n,i=.2119034982*e+.6806995451*t+.1073969566*n,a=.0883024619*e+.2817188376*t+.6299787005*n,s=Math.cbrt(r),o=Math.cbrt(i),u=Math.cbrt(a),c=.2104542553*s+.793617785*o-.0040720468*u,h=1.9779984951*s-2.428592205*o+.4505937099*u,d=.0259040371*s+.7827717662*o-.808675766*u;return[c,h,d]},eh=([e,t,n])=>{const r=Math.sqrt(t*t+n*n),i=Math.atan2(n,t)*180/Math.PI;return[e,r,(i+360)%360]},Si=([e,t,n])=>{const r=(n??0)*Math.PI/180;return[e,t*Math.cos(r),t*Math.sin(r)]},Hy=e=>{const t=e.replace("#",""),n=parseInt(t.length===3?t.replace(/./g,s=>s+s):t,16),r=As(n>>16&255),i=As(n>>8&255),a=As(n&255);return eh(Fy(r,i,a))},br=(e,t)=>{const[n,r,i]=Si(e),[a,s,o]=Si(t);return Math.hypot(n-a,r-s,i-o)},Uy=(e,t,n)=>{const r=Si(e),i=Si(t),a=[r[0]+(i[0]-r[0])*n,r[1]+(i[1]-r[1])*n,r[2]+(i[2]-r[2])*n];return eh(a)},zy=([e,t,n])=>`oklch(${(e*100).toFixed(1)}% ${+t.toFixed(3)} ${+(n??0).toFixed(2)})`,th=["1","2","3","4","5","6","7","8","9","10","11","12"],Cs=["gray","mauve","slate","sage","olive","sand"];function Ii(e,t){return Object.fromEntries(t.map(n=>[n,e[n]]))}const $y=Ii(J0,X0),Yy=Ii(Z0,X0),jy=Ii(J0,Cs),Vy=Ii(Z0,Cs),nh=({prefix:e,appearance:t,color:n,isNeutral:r=!1})=>{if(!/^#?[0-9A-Fa-f]{6}$/.test(n))throw new Error("Color must be a valid 6-digit hex");const i=t==="light"?$y:Yy,a=t==="light"?jy:Vy,s=Hy(n),o=r?rh(s,a):rh(s,i);if(!r){o[8]=s,o[9]=qy(s,[o]);const u=Math.max(o[8][1],o[7][1]);o[10][1]=Math.min(u,o[10][1]),o[11][1]=Math.min(u,o[11][1])}return Object.fromEntries(th.map((u,c)=>[`${e}${u}`,zy(o[c])]))};function qy(e,t){const[n,r,i]=e,a=n>.4?n-.03/(n+.1):n+.03/(n+.1),s=n>.4&&i!==null?r*.93:r,o=[a,s,i];let u=o,c=1/0;for(const h of t)for(const d of h){const f=br(o,d);f<c&&(c=f,u=d)}return[a,u[1],u[2]]}function rh(e,t){const n=[];for(const[A,P]of Object.entries(t))for(const H of P)n.push({scale:A,color:H,distance:br(e,H)});n.sort((A,P)=>A.distance-P.distance);const r=n.filter((A,P,H)=>P===H.findIndex(S=>S.scale===A.scale)),i=new Set(Cs);if(!r.every(A=>i.has(A.scale))&&i.has(r[0].scale))for(;r.length>1&&i.has(r[1].scale);)r.splice(1,1);const[s,o]=[r[0],r[1]],u=o.distance,c=s.distance,h=br(s.color,o.color),d=(c**2+h**2-u**2)/(2*c*h),f=(u**2+h**2-c**2)/(2*u*h),p=Math.max(0,d/Math.sqrt(1-d**2)/(f/Math.sqrt(1-f**2)))*.5,m=t[s.scale],T=t[o.scale],w=th.map((A,P)=>Uy(m[P],T[P],p)),y=w.slice().sort((A,P)=>br(e,A)-br(e,P))[0],I=e[1]/(y[1]||1e-6);for(const A of w)A[1]=Math.min(e[1]*1.5,A[1]*I),A[2]=e[2];return w}const Wy=e=>e.slice(6,-1),ih=e=>Object.entries(e).map(([t,n])=>`--${t}: ${Wy(n)};`);function Gy(e){const t=nh({prefix:"a-",appearance:e.mode,color:e.accentColor}),n=nh({prefix:"n-",appearance:e.mode,color:e.neutralColor??"#555555",isNeutral:!0}),r=`--highest: ${e.mode==="light"?"100% 0 0":"10% 0 0"};`;return[...ih(t),...ih(n),r].join(`
122
- `)}const Qy={accentColor:"#FF4D00",neutralColor:"#555555",mode:"light"},Ky="wss://agents.inploi.com",Xy=`
123
- /* Embedded mode overrides */
124
- .kin-widget {
125
- position: relative !important;
126
- bottom: auto !important;
127
- left: auto !important;
128
- transform: none !important;
129
- width: 100% !important;
130
- height: 100% !important;
131
- z-index: auto !important;
132
- }
133
- .kin-launcher {
134
- display: none !important;
135
- }
136
- .kin-widget-shell {
137
- width: 100% !important;
138
- height: 100% !important;
139
- max-width: none !important;
140
- max-height: none !important;
141
- min-height: 0 !important;
142
- border-radius: 0 !important;
143
- box-shadow: none !important;
144
- border: 0 !important;
145
- margin: 0 !important;
146
- padding: 0 !important;
147
- }
148
- .kin-panel {
149
- position: relative !important;
150
- bottom: auto !important;
151
- right: auto !important;
152
- width: 100% !important;
153
- height: 100% !important;
154
- max-height: none !important;
155
- border-radius: 0 !important;
156
- box-shadow: none !important;
157
- display: flex !important;
158
- opacity: 1 !important;
159
- transform: none !important;
160
- animation: none !important;
161
- }
162
- `,Zy=/^\[System: CV uploaded and processed - "(.+?)"/,Jy=({serviceUrl:e=Ky,theme:t=Qy,starterPrompts:n=[],mode:r="floating",container:i})=>Ut(({logger:a,publishableKey:s})=>{if(!s)throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");let o=!1,u=null,c=t,h=null,d=!1,f=null,p=null,m=!1;const T=r==="embedded",w=()=>{if(i)if(typeof i=="string"){const C=document.querySelector(i);if(C instanceof HTMLElement)return p=C,m=!1,C}else return p=i,m=!1,i;const L=document.getElementById("inploi-kin-root");if(L)return p=L,m=!1,L;const O=document.createElement("div");return O.id="inploi-kin-root",T&&(O.className="kin-embedded"),document.body.appendChild(O),p=O,m=!0,O},y=L=>{const O=Gy(L);let C=`${By}
120
+ `);return s+c+u})}return n},oy=/^[ \t]*<[\w!/?-]/,uy=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,ly=e=>typeof e!="string"||e.length===0||!oy.test(e)?e:e.replace(uy,"$1"),H0,U0,Ai={...er,protocols:{...er.protocols,href:[...(U0=(H0=er.protocols)==null?void 0:H0.href)!=null?U0:[],"tel"]}},ws={raw:Ea,sanitize:[gl,Ai],harden:[Ef,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},cy={gfm:[ME,{}]},z0=Object.values(ws),dy=Object.values(cy),hy={block:" ▋",circle:" ●"},fy={shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0,linkSafety:{enabled:!0}},Ze=Ir(fy),$0=de(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,...a})=>{let s=typeof e=="string"&&n?ly(e):e;return g(Qd.Provider,{value:i,children:g(D0,{...a,children:s})})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});$0.displayName="Block";var py=["github-light","github-dark"],Y0=de(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,normalizeHtmlIndentation:r=!1,components:i,rehypePlugins:a=z0,remarkPlugins:s=dy,className:o,shikiTheme:u=py,mermaid:c,controls:h=!0,isAnimating:d=!1,animated:f,BlockComponent:p=$0,parseMarkdownIntoBlocksFn:m=ay,caret:T,plugins:w,remend:y,linkSafety:I={enabled:!0},allowedTags:A,...D})=>{let F=yh(),[S,Y]=df(),L=Se(()=>A?Object.keys(A):[],[A]),O=Se(()=>{if(typeof e!="string")return"";let W=t==="streaming"&&n?Y3(e,y):e;return L.length>0&&(W=sy(W,L)),W},[e,t,n,y,L]),C=Se(()=>m(O),[O,m]),[$,M]=ce(C);Ne(()=>{t==="streaming"?Y(()=>{M(C)}):M(C)},[C,t]);let U=t==="streaming"?$:C,K=Se(()=>U.map((W,x)=>`${F}-${x}`),[U.length,F]),Q=Se(()=>f?f===!0?ms():ms(f):null,[f]),J=Se(()=>{var W,x;return{shikiTheme:(x=(W=w?.code)==null?void 0:W.getThemes())!=null?x:u,controls:h,isAnimating:d,mode:t,mermaid:c,linkSafety:I}},[u,h,d,t,c,I,w?.code]),re=Se(()=>({...Fx,...i}),[i]),he=Se(()=>{let W=[];return w!=null&&w.cjk&&(W=[...W,...w.cjk.remarkPluginsBefore]),W=[...W,...s],w!=null&&w.cjk&&(W=[...W,...w.cjk.remarkPluginsAfter]),w!=null&&w.math&&(W=[...W,w.math.remarkPlugin]),W},[s,w?.math,w?.cjk]),Te=Se(()=>{var W;let x=a;if(A&&Object.keys(A).length>0&&a===z0){let we={...Ai,tagNames:[...(W=Ai.tagNames)!=null?W:[],...Object.keys(A)],attributes:{...Ai.attributes,...A}};x=[ws.raw,[gl,we],ws.harden]}return w!=null&&w.math&&(x=[...x,w.math.rehypePlugin]),Q&&d&&(x=[...x,Q.rehypePlugin]),x},[a,w?.math,Q,d,A]),_=Se(()=>{if(!d||U.length===0)return!1;let W=U.at(-1);return v0(W)||zx(W)},[d,U]),Oe=Se(()=>T&&d&&!_?{"--streamdown-caret":`"${hy[T]}"`}:void 0,[T,d,_]);return t==="static"?g(Es.Provider,{value:w??null,children:g(Ze.Provider,{value:J,children:g("div",{className:Z("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",o),children:g(D0,{components:re,rehypePlugins:Te,remarkPlugins:he,...D,children:O})})})}):g(Es.Provider,{value:w??null,children:g(Ze.Provider,{value:J,children:g("div",{className:Z("space-y-4 whitespace-normal *:first:mt-0 *:last:mb-0",T&&!_?"*:last:after:inline *:last:after:align-baseline *:last:after:content-[var(--streamdown-caret)]":null,o),style:Oe,children:[U.length===0&&T&&d&&g("span",{}),U.map((W,x)=>{let we=x===U.length-1,ke=d&&we&&v0(W);return g(p,{components:re,content:W,index:x,isIncomplete:ke,rehypePlugins:Te,remarkPlugins:he,shouldNormalizeHtmlIndentation:r,shouldParseIncompleteMarkdown:n,...D},K[x])})]})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation);Y0.displayName="Streamdown";var my=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let u=ve(null),c=ve(null),[h,d]=ce(s),[f,p]=ce({x:0,y:0}),[m,T]=ce(!1),[w,y]=ce({x:0,y:0}),[I,A]=ce({x:0,y:0}),D=Ue(M=>{d(U=>Math.max(n,Math.min(r,U+M)))},[n,r]),F=Ue(()=>{D(i)},[D,i]),S=Ue(()=>{D(-i)},[D,i]),Y=Ue(()=>{d(s),p({x:0,y:0})},[s]),L=Ue(M=>{M.preventDefault();let U=M.deltaY>0?-i:i;D(U)},[D,i]),O=Ue(M=>{if(M.button!==0||M.isPrimary===!1)return;T(!0),y({x:M.clientX,y:M.clientY}),A(f);let U=M.currentTarget;U instanceof HTMLElement&&U.setPointerCapture(M.pointerId)},[f]),C=Ue(M=>{if(!m)return;M.preventDefault();let U=M.clientX-w.x,K=M.clientY-w.y;p({x:I.x+U,y:I.y+K})},[m,w,I]),$=Ue(M=>{T(!1);let U=M.currentTarget;U instanceof HTMLElement&&U.releasePointerCapture(M.pointerId)},[]);return Ne(()=>{let M=u.current;if(M)return M.addEventListener("wheel",L,{passive:!1}),()=>{M.removeEventListener("wheel",L)}},[L]),Ne(()=>{let M=c.current;if(M&&m)return document.body.style.userSelect="none",M.addEventListener("pointermove",C,{passive:!1}),M.addEventListener("pointerup",$),M.addEventListener("pointercancel",$),()=>{document.body.style.userSelect="",M.removeEventListener("pointermove",C),M.removeEventListener("pointerup",$),M.removeEventListener("pointercancel",$)}},[m,C,$]),g("div",{className:Z("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:u,style:{cursor:m?"grabbing":"grab"},children:[a?g("div",{className:Z("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h>=r,onClick:F,title:"Zoom in",type:"button",children:g(mx,{size:16})}),g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:h<=n,onClick:S,title:"Zoom out",type:"button",children:g(gx,{size:16})}),g("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:Y,title:"Reset zoom and pan",type:"button",children:g(px,{size:16})})]}):null,g("div",{className:Z("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:O,ref:c,role:"application",style:{transform:`translate(${f.x}px, ${f.y}px) scale(${h})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},j0=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let[a,s]=ce(null),[o,u]=ce(!1),[c,h]=ce(""),[d,f]=ce(""),[p,m]=ce(0),{mermaid:T}=Ye(Ze),w=_s(),y=T?.errorComponent,{shouldRender:I,containerRef:A}=Q6({immediate:r});if(Ne(()=>{if(I){if(!w){s("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{s(null),u(!0);let F=w.getMermaid(n),S=e.split("").reduce((O,C)=>(O<<5)-O+C.charCodeAt(0)|0,0),Y=`mermaid-${Math.abs(S)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:L}=await F.render(Y,e);h(L),f(L)}catch(F){if(!(d||c)){let S=F instanceof Error?F.message:"Failed to render Mermaid chart";s(S)}}finally{u(!1)}})()}},[e,n,p,I,w]),!(I||c||d))return g("div",{className:Z("my-4 min-h-[200px]",t),ref:A});if(o&&!c&&!d)return g("div",{className:Z("my-4 flex justify-center p-4",t),ref:A,children:g("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[g("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),g("span",{className:"text-sm",children:"Loading diagram..."})]})});if(a&&!c&&!d)return y?g("div",{ref:A,children:g(y,{chart:e,error:a,retry:()=>m(S=>S+1)})}):g("div",{className:Z("rounded-md bg-red-50 p-4",t),ref:A,children:[g("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",a]}),g("details",{className:"mt-2",children:[g("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),g("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]});let D=c||d;return g("div",{className:Z("size-full",t),"data-streamdown":"mermaid",ref:A,children:g(my,{className:Z(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:g("div",{"aria-label":"Mermaid chart",className:Z("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};function gy({href:e,children:t}){return g("a",{href:e,target:"_blank",rel:"noopener noreferrer",class:"fr hover:text-a-9 focus-visible:rounded-kin-xs text-inherit underline underline-offset-2 transition-all hover:underline-offset-4",children:t})}const by={a:gy};function V0({content:e,isStreaming:t=!1}){return e?g("div",{class:"kin-markdown text-n-12 border-n-4 border-b pb-2.5 text-sm leading-relaxed",children:g(Y0,{isAnimating:t,mode:t?"streaming":"static",components:by,children:e})}):null}const Ey={thinking:{label:"Thinking…",icon:xo},responding:{label:"Writing response…",icon:Ao},processing_results:{label:"Processing results…",icon:xo},processing_cv:{label:"Scanning your CV…",icon:wo},searchJobs:{label:"Searching jobs…",icon:yo},matchJobs:{label:"Matching jobs…",icon:yo},searchKnowledge:{label:"Searching company info…",icon:Vh},getProfileSummary:{label:"Reviewing your profile…",icon:wo},updatePreferences:{label:"Updating your preferences…",icon:qh},remember:{label:"Saving details…",icon:Wh},suggestQuickReplies:{label:"Preparing reply options…",icon:Ao}},q0=Yt({base:"animate-kin-message-in flex max-w-[85%] flex-col",variants:{side:{user:"self-end",assistant:"self-start gap-1.5 p-1"}}});function _y(){const e=ve(null);return g("div",{ref:e,class:"pl-safe-l pr-safe-r [&::-webkit-scrollbar-thumb]:bg-n-4 [&::-webkit-scrollbar-thumb]:rounded-kin-xs flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto overscroll-contain scroll-smooth break-words py-4 [mask-image:linear-gradient(to_bottom,transparent_0,_black_1.5rem,_black_calc(100%-1.5rem),transparent_100%)] sm:overscroll-auto sm:px-4 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar]:w-1.5 [&>:first-child]:mt-auto",role:"log","aria-label":"Chat messages","aria-live":"polite","aria-relevant":"additions",children:[g(ky,{}),g(xy,{}),g(yy,{}),g(Ty,{containerRef:e})]})}const As=e=>e.scrollHeight-e.scrollTop-e.clientHeight<80;function Ty({containerRef:e}){const[t,n]=ce(!0),r=ve(!1),i=j.messages.value.length,a=j.messages.value.at(-1)?.role==="user",s=j.liveAssistantMessage.value?.content,o=j.assistantStatus.value,u=j.quickReplies.value.length,c=()=>{const h=e.current;h&&(r.current=!0,h.scrollTop=h.scrollHeight,n(!0))};return Ne(()=>{const h=e.current;if(!h)return;c();const d=()=>r.current?As(h)&&(r.current=!1):n(As(h));return h.addEventListener("scroll",d,{passive:!0}),()=>h.removeEventListener("scroll",d)},[]),Ne(()=>{(e.current&&As(e.current)||a)&&c()},[i,s,o,u,a]),t?null:g("button",{type:"button",class:Pn({variant:"neutral",size:"sm",class:"absolute bottom-3 left-1/2 -translate-x-1/2"}),"aria-label":"Scroll to latest message",onClick:c,children:g(Gh,{strokeWidth:2})})}function ky(){const e=j.messages.value.length,t=!!(j.liveAssistantMessage.value||j.isStreaming.value||j.assistantStatus.value);return e||t?null:g("div",{class:"animate-kin-fade-in my-auto px-6 py-6 text-center",style:{animationDelay:"150ms"},children:[g("div",{class:"text-n-9 mx-auto mb-4 size-12 opacity-50","aria-hidden":"true",children:g(Hh,{class:"h-full w-full"})}),g("p",{class:"text-n-12 mb-2 text-base",children:"Hi there, you're speaking with Kin AI Agent."}),g("p",{class:"text-n-9 text-sm",children:"How can I help you today?"})]})}function xy(){return g(Ee,{children:j.messages.value.filter(e=>e.role!=="assistant"||!!e.content.trim()).filter(e=>e.role!=="user"||!!e.content.trim()||!!e.attachment).map((e,t)=>g(wy,{message:e,animationIndex:t},e.id))})}function W0({statusMeta:e,timestamp:t}){const n=e?.icon;return g("div",{class:"text-n-9 inline-flex items-center gap-1.5 text-xs","aria-hidden":"true",children:n?g(Ee,{children:[g(n,{class:"size-3 shrink-0 animate-pulse"}),g("span",{class:"animate-kin-shimmer bg-[linear-gradient(90deg,oklch(var(--n-9))_40%,oklch(var(--n-11))_50%,oklch(var(--n-9))_60%)] bg-[length:200%_100%] bg-clip-text text-transparent",children:e.label})]}):g("span",{children:["Kin • AI Agent • ",t?Ay(t):"typing..."]})})}function yy(){const e=j.liveAssistantMessage.value,t=j.isStreaming.value,n=j.assistantStatus.value,r=n?Ey[n]:void 0;return!e&&!t&&!r?null:g("article",{class:q0({side:"assistant"}),"aria-label":"Message from Kin AI Agent",children:[e?.content?g(V0,{content:e.content,isStreaming:t}):null,g(W0,{statusMeta:r,timestamp:t?void 0:e?.timestamp})]})}function wy({message:e,animationIndex:t}){const{role:n,content:r,timestamp:i,attachment:a}=e,s=n==="user",o=Math.min((t+1)*.05,.35);return n==="system"?g("div",{class:"flex justify-center px-4 py-2",role:"status","aria-label":"System notification",children:g("span",{class:"border-n-6/40 bg-n-3 text-n-9 corner-smooth rounded-kin-lg border px-3 py-1.5 text-xs",children:r})}):g("article",{class:q0({side:s?"user":"assistant"}),style:{animationDelay:`${o}s`},"aria-label":`Message from ${s?"You":"Kin AI Agent"}`,children:[s&&g("div",{class:"bg-n-3 text-n-12 corner-smooth rounded-kin-lg relative px-3.5 py-2 text-sm",children:[a&&g("div",{class:"text-n-10 flex items-center gap-1.5",children:[g(ko,{class:"text-n-9 size-3.5 shrink-0"}),g("span",{class:"max-w-full truncate",children:a.name})]}),g("p",{children:r}),g("svg",{class:"text-n-3 absolute -bottom-1.5 right-1.5 w-4","aria-hidden":"true",viewBox:"0 0 16 8",children:g("path",{d:"M15 0S16 3 16 7C16 8 15 7 15 7 11 3 9 2 0 2Z",fill:"currentColor"})})]}),!s&&r&&g(V0,{content:r}),!s&&g(W0,{timestamp:i})]})}function Ay(e){const n=new Date().getTime()-e.getTime();return n<6e4?"Just now":n<36e5?`${Math.floor(n/6e4)}m ago`:e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function G0({content:e,children:t}){const[n,r]=ce(!1),[i,a]=ce(!1),s=ve(null),o=ve(null),u=n||i,c=t.props,h=Ws(t,{ref:s,onMouseEnter:Ci(c.onMouseEnter,()=>r(!0)),onMouseLeave:Ci(c.onMouseLeave,()=>r(!1)),onFocus:Ci(c.onFocus,()=>a(!0)),onBlur:Ci(c.onBlur,()=>a(!1))});xh(()=>{const f=s.current,p=o.current;if(!u||!f||!p)return;const m=f.getBoundingClientRect(),T=p.offsetWidth,w=p.offsetHeight,y=m.top>w+8,I=Math.max(4,Math.min(m.left+(m.width-T)/2,innerWidth-T-4)),A=m.left+m.width/2-I;p.setAttribute("data-side",y?"top":"bottom"),p.style.left=`${I}px`,p.style.top=`${y?m.top-w-6:m.bottom+6}px`,p.style.setProperty("--ax",`${A-12}px`),p.style.setProperty("--origin",`${A}px ${y?"100%":"0%"}`),requestAnimationFrame(()=>p.setAttribute("data-open",""))},[u,e]);const d=u?s.current?.getRootNode():null;return g(Ee,{children:[h,d&&Do(g("span",{ref:o,"data-side":"top",role:"tooltip",class:"bg-n-12 text-n-1 corner-smooth ease-out-back rounded-kin-sm group pointer-events-none fixed z-[999999] origin-[--origin] scale-90 whitespace-nowrap px-2.5 py-1.5 text-xs opacity-0 transition-[opacity,transform] duration-300 data-[open]:scale-100 data-[open]:opacity-100 data-[open]:delay-300",children:[e,g("svg",{viewBox:"0 0 32 32","aria-hidden":"true",class:"fill-n-12 absolute left-[--ax] w-6 group-data-[side=bottom]:-top-6 group-data-[side=top]:-bottom-6 group-data-[side=top]:rotate-180",children:g("path",{d:"M3 32C9 32 10 31 15 26Q16 25 17 26C22 31 23 32 29 32"})})]}),d)]})}function Ci(e,t){return typeof e=="function"?(...n)=>{e(...n),t()}:t}const Cy=Yt({base:"relative animate-none flex min-h-0 w-full flex-1 flex-col overflow-hidden",variants:{embedded:{false:"sm:animate-kin-panel-in [will-change:transform,opacity]"}}});function Sy({embedded:e=!1,onClose:t,onClearData:n,onSkipToInput:r}){const[i,a]=ce(!1),s=()=>a(!1),o=c=>{if(c.key==="Escape"){if(c.preventDefault(),i){s();return}e||t()}},u=()=>{if(i){n(),s();return}a(!0)};return g("div",{class:Cy({embedded:e}),role:"dialog","aria-modal":!e,"aria-labelledby":"kin-panel-title",onKeyDown:o,children:[g("button",{type:"button",class:"fr bg-n-2 text-n-12 rounded-kin-sm absolute -top-full left-1/2 z-[1000000] -translate-x-1/2 px-3 py-1.5 text-sm font-medium no-underline focus:top-2",onClick:r,children:"Skip to chat input"}),g("header",{class:"pl-safe-l pr-safe-r pt-safe-t from-a-2/50 flex items-center justify-between bg-gradient-to-b to-transparent px-4 pb-3 sm:pl-5 sm:pr-3 sm:pt-3",children:[g("h2",{id:"kin-panel-title",class:"text-n-12 m-0 text-base font-semibold sm:text-sm sm:font-medium",children:"Kin Assistant"}),g("div",{class:"flex items-center gap-1.5",children:[g(G0,{content:i?"Click again to confirm":"Clear my data",children:g("button",{class:Pn({variant:i?"accent":"ghost",size:"sm"}),"aria-label":i?"Confirm clear data":"Clear my data",type:"button",onClick:u,onBlur:s,children:i?g(Yh,{}):g($h,{})})}),!e&&g("button",{class:Pn({variant:"neutral",size:"sm"}),"aria-label":"Close chat",type:"button",onClick:t,children:g(zh,{strokeWidth:2})})]})]}),g(_y,{})]})}const Iy={"application/pdf":{maxSize:1e7},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{maxSize:1e7},"application/msword":{maxSize:1e7},"text/plain":{maxSize:1e6},"image/jpeg":{maxSize:1e7},"image/png":{maxSize:1e7},"image/webp":{maxSize:1e7}},Ny=".pdf,.docx,.doc,.txt,.jpg,.jpeg,.png,.webp";function vy(e){const t=Iy[e.type];return t?e.size>t.maxSize?{valid:!1,error:`File is too large. Maximum size is ${Math.round(t.maxSize/1e6)}MB.`}:e.size===0?{valid:!1,error:"The file appears to be empty."}:{valid:!0}:{valid:!1,error:"Unsupported file format. Please upload a PDF, Word document, text file, or image."}}function Ly(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{typeof r.result=="string"?t(r.result):n(new Error("Failed to read file"))},r.onerror=()=>n(r.error),r.readAsDataURL(e)})}function Ry({url:e,onMessage:t,onOpen:n,onClose:r,onError:i}){let a=null,s=[];const o=()=>a?.readyState===WebSocket.OPEN,u=f=>{o()&&a.send(JSON.stringify(f))},c=f=>u({type:"user_message",content:f}),h=()=>{if(o()){for(const f of s)c(f);s.length=0}};return(()=>{a=new WebSocket(e),a.onopen=()=>{n(),h()},a.onmessage=f=>{try{const p=JSON.parse(f.data);t(p)}catch{}},a.onclose=()=>{s=[],r(),a=null},a.onerror=f=>{i(f)}})(),{sendMessage:f=>{a&&(o()?c(f):a.readyState===WebSocket.CONNECTING&&s.push(f))},uploadFile:async(f,p)=>{if(!o())return{success:!1,error:"Not connected"};const m=vy(f);if(!m.valid)return{success:!1,error:m.error};try{const T=await Ly(f);return o()?(u({type:"file_upload",fileType:p,fileName:f.name,mimeType:f.type,data:T}),{success:!0}):{success:!1,error:"Connection lost while reading file. Please try again."}}catch(T){return{success:!1,error:T instanceof Error?T.message:"Failed to read file"}}},clearData:()=>{u({type:"clear_data"})},disconnect:()=>{a&&(a.close(),a=null)},isConnected:()=>a?.readyState===WebSocket.OPEN}}const Q0=2e3,K0="absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-kin-sm bg-red-600 px-3 py-2 text-xs text-white animate-kin-error-in",Oy=Yt({base:"w-full pt-1 px-2",variants:{embedded:{true:"pb-2",false:"pb-safe-b"},panelOpen:{true:"bg-gradient-to-b from-transparent to-n-2"}}}),Dy=Yt({base:"border outline relative flex p-0.5 gap-1 flex-col corner-smooth rounded-kin-3xl bg-highest transition-all duration-200",variants:{panelOpen:{true:"outline-1 outline-transparent border-n-4 focus-within:outline-[3px] focus-within:outline-a-4/50 focus-within:border-a-6/50 shadow-md shadow-n-4/30",false:"outline-2 outline-a-9 border-transparent shadow-xl shadow-a-9/10"}}});function Py({embedded:e=!1,panelOpen:t,suggestions:n,onSubmit:r,onEscape:i,onFocus:a,onBlur:s,onUploadFile:o,inputRef:u}){const[c,h]=ce(""),d=ve(null),f=u??d,p=ve(null),m=j.isStreaming.value,T=j.connectionState.value,w=j.uploadState.value,y=j.uploadError.value,I=j.uploadFileName.value,A=T==="connected",D=T==="connecting",F=T==="disconnected",S=T==="idle",Y=w==="uploading"||w==="processing",L=c.length>Q0,O=c.trim(),C=O.length>0,$=j.messages.value.length>0,M=n.length>0,U=I?`Uploading ${I}...`:"Uploading file...",K=C&&!m&&!Y&&!L&&(A||D),Q=A&&!m&&!Y,J=W=>{W.preventDefault(),K&&(r(O),h(""))},re=W=>{W.key==="Enter"&&!W.shiftKey?(W.preventDefault(),J(W)):W.key==="Escape"&&(W.preventDefault(),W.stopPropagation(),i())},he=W=>{const x=W.target,we=x.files?.[0];we&&o(we,"cv"),x.value=""},Te=()=>M?"Or type a message...":Y?U:D?"Connecting...":F?"Disconnected - Click to retry":m?"Waiting for response...":!t&&$?"Continue conversation...":"Ask me anything...",_=()=>Y?U:m?"Waiting for response":S?"Click to connect":D?"Connecting...":C?A?"Send message":"Cannot send message":"Enter a message to send",Oe=()=>Y?U:Q?"Attach file (CV, document, or image)":"Cannot upload file";return g("div",{class:Oy({panelOpen:t,embedded:e}),role:"search","aria-label":"Chat with Kin AI",children:g("form",{onSubmit:J,class:Dy({panelOpen:t}),children:[M&&g("div",{class:"bg-n-3/75 corner-smooth shadow-n-4/50 rounded-b-kin-sm rounded-t-kin-2xl flex flex-wrap gap-1.5 p-2 shadow-inner","aria-label":"Suggested prompts",children:n.map((W,x)=>g("button",{type:"button",class:"fr bg-highest animate-kin-pop-in text-n-11 corner-smooth outline-n-4/50 hover:outline-n-7/50 hover:text-n-12 rounded-kin-xl inline-flex items-center whitespace-nowrap px-3 py-1.5 text-sm outline outline-1 transition-all hover:outline-2 active:scale-95",style:{animationDelay:`${.05+x*.05}s`},onPointerDown:we=>we.preventDefault(),onClick:()=>r(W.value),children:W.label},W.id))}),g("div",{class:"flex items-center gap-1 p-1 pl-3",children:[g("label",{for:"kin-input",class:"sr-only",children:"Ask Kin a question"}),g("input",{id:"kin-input",ref:f,type:"text",class:"text-n-12 placeholder:text-n-9 min-w-0 flex-1 border-none bg-transparent text-sm outline-none disabled:cursor-not-allowed",placeholder:Te(),value:c,onInput:W=>h(W.target.value),onFocus:a,onBlur:W=>s(W.relatedTarget),onKeyDown:re,"aria-describedby":"kin-input-status",autoComplete:"off",disabled:Y}),g("input",{ref:p,type:"file",class:"sr-only",accept:Ny,onChange:he,"aria-hidden":"true",tabIndex:-1}),g(G0,{content:Oe(),children:g("button",{type:"button",class:Pn({variant:"ghost"}),disabled:!Q,"aria-label":Oe(),onPointerDown:W=>W.preventDefault(),onClick:()=>p.current?.click(),children:Y?g(jh,{class:"animate-kin-spin"}):g(ko,{})})}),g("button",{type:"submit",class:Pn({variant:"accent"}),disabled:!K,"aria-label":_(),children:g(Uh,{strokeWidth:2})})]}),g("div",{id:"kin-input-status",class:"sr-only",role:"status","aria-live":"polite",children:[D&&"Connecting to Kin...",F&&"Connection lost. Click input to retry.",m&&"Kin is responding...",Y&&U]}),y&&w==="error"&&g("div",{class:`${K0} max-w-[calc(100%-32px)] truncate`,role:"alert",children:y}),L&&g("div",{class:K0,role:"alert",children:["Message too long (",c.length.toLocaleString(),"/",Q0.toLocaleString()," characters)"]})]})})}const My="(max-width: 639px)",By='button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex="-1"])';function X0(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}const Fy=Yt({base:"font-kin text-kin text-n-12 flex w-full",variants:{layout:{embedded:"relative h-full items-stretch",closed:"items-end",open:"top-0 h-dvh items-stretch [touch-action:manipulation] sm:top-auto sm:h-auto sm:items-end sm:[touch-action:auto]"},placement:{left:"sm:left-4",center:"sm:left-1/2 sm:-translate-x-1/2",right:"sm:right-4",embedded:""}},compoundVariants:[{layout:["closed","open"],class:"fixed inset-x-0 bottom-0 z-[999999] sm:inset-x-auto sm:bottom-4 sm:w-auto"}]}),Hy=Yt({base:"pointer-events-auto flex w-full flex-col transition-all duration-300 corner-smooth ease-kin-open",variants:{layout:{embedded:"",closed:"mx-3 sm:mx-0 sm:w-[360px]",open:"sm:w-[480px] sm:min-h-[50vh] sm:max-h-[90vh] sm:rounded-kin-4xl sm:outline sm:outline-1 sm:outline-n-6/50 sm:shadow-2xl sm:shadow-n-6/30"}},compoundVariants:[{layout:["embedded","open"],class:"h-full overflow-hidden rounded-none bg-n-1"}]});function Uy({starterPrompts:e,onSendMessage:t,onOpen:n,onClose:r,onConnect:i,onClearData:a,onUploadFile:s,placement:o="center"}){const u=o==="embedded",c=j.isOpen.value,h=u?"embedded":c?"open":"closed",d=h!=="closed",[f,p]=ce(!1),m=ve(null),T=ve(null),w=ve(null),y=j.messages.value.length>0,I=j.quickReplies.value,A=!d&&!y&&f&&e.length>0,D=d&&I.length>0,F=A?e.map((U,K)=>({id:`sp-${K}`,label:U.label,value:U.message})):D?I.map((U,K)=>({id:`qr-${K}`,label:U,value:U})):[];Ne(()=>{if(d){const U=X0();T.current=U instanceof HTMLElement&&!m.current?.contains(U)?U:null,requestAnimationFrame(()=>w.current?.focus())}else p(!1)},[d]),Ne(()=>{u&&!c&&n()},[u,n,c]),Ne(()=>{if(h!=="open")return;const U=window.matchMedia(My);let K=0,Q="",J=!1;const re=()=>{J||(K=window.scrollY,Q=document.body.style.overflow,document.body.style.overflow="hidden",J=!0)},he=()=>{J&&(document.body.style.overflow=Q,window.scrollTo(0,K),J=!1)},Te=()=>U.matches?re():he();return Te(),U.addEventListener("change",Te),()=>{U.removeEventListener("change",Te),he()}},[h]),Ne(()=>{if(h!=="open")return;const U=K=>{if(K.key!=="Tab")return;const Q=m.current;if(!Q)return;const J=Q.querySelectorAll(By),re=J[0],he=J[J.length-1];if(!re||!he)return;const Te=X0();K.shiftKey&&Te===re?(K.preventDefault(),he.focus()):!K.shiftKey&&Te===he&&(K.preventDefault(),re.focus())};return document.addEventListener("keydown",U),()=>document.removeEventListener("keydown",U)},[h]);const S=()=>{h==="closed"&&n()},Y=()=>{h==="open"&&(r(),T.current&&requestAnimationFrame(()=>T.current?.focus()))},L=U=>{const K=U.trim();if(!K)return;const Q=j.isStreaming.value,J=j.uploadState.value==="uploading"||j.uploadState.value==="processing",re=j.connectionState.value;!Q&&!J&&(re==="connected"||re==="connecting")&&(j.addMessage({role:"user",content:K}),S(),i(),t(K))},O=()=>{p(!0),i(),!d&&y&&S()},C=U=>{U instanceof Node&&m.current?.contains(U)||p(!1)},$=()=>{d?Y():w.current?.blur()},M=(U,K)=>{S(),s(U,K)};return g("div",{ref:m,class:Fy({layout:h,placement:o}),role:"region","aria-label":"Kin AI Chat",children:g("div",{class:Hy({layout:h}),children:[g("div",{class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true",children:d?"Chat panel opened":""}),d&&g(Sy,{embedded:u,onClose:Y,onClearData:a,onSkipToInput:()=>w.current?.focus()}),g(Py,{embedded:u,panelOpen:d,suggestions:F,onSubmit:L,onEscape:$,onFocus:O,onBlur:C,onUploadFile:M,inputRef:w})]})})}const zy=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*{box-sizing:border-box;font:inherit;border:0 solid;-webkit-tap-highlight-color:transparent}button{all:unset;cursor:pointer;touch-action:manipulation}ul,ol,li,p{margin:0;padding:0}ul,ol{list-style:none}svg{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-x-0{left:0;right:0}.-bottom-1\\.5{bottom:-.375rem}.-top-full{top:-100%}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.bottom-full{bottom:100%}.left-1\\/2{left:50%}.left-\\[--ax\\]{left:var(--ax)}.right-1\\.5{right:.375rem}.top-0{top:0}.z-\\[1000000\\]{z-index:1000000}.z-\\[999999\\]{z-index:999999}.m-0{margin:0}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-top:auto;margin-bottom:auto}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-8{width:2rem;height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.min-h-0{min-height:0px}.w-4{width:1rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[calc\\(100\\%-32px\\)\\]{max-width:calc(100% - 32px)}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-\\[--origin\\]{transform-origin:var(--origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes kin-error-in{0%{opacity:0;transform:translate(-50%) translateY(4px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.animate-kin-error-in{animation:kin-error-in .2s ease}@keyframes kin-fade{0%{opacity:0}to{opacity:1}}.animate-kin-fade-in{animation:kin-fade .4s ease both}@keyframes kin-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-kin-message-in{animation:kin-slide-up .3s cubic-bezier(.32,.72,0,1) both}@keyframes kin-pop{0%{opacity:0;scale:.9}to{opacity:1;scale:1}}.animate-kin-pop-in{animation:kin-pop .3s cubic-bezier(.34,1.56,.64,1) backwards}@keyframes kin-shimmer{0%{background-position:200% 50%}to{background-position:-200% 50%}}.animate-kin-shimmer{animation:kin-shimmer 2.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-kin-spin{animation:spin 1s linear infinite}.animate-none{animation:none}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-4{gap:1rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-kin-2xl{border-radius:var(--kin-r-2xl)}.rounded-kin-3xl{border-radius:var(--kin-r-3xl)}.rounded-kin-lg{border-radius:var(--kin-r-lg)}.rounded-kin-sm{border-radius:var(--kin-r-sm)}.rounded-kin-xl{border-radius:var(--kin-r-xl)}.rounded-none{border-radius:0}.rounded-b-kin-sm{border-bottom-right-radius:var(--kin-r-sm);border-bottom-left-radius:var(--kin-r-sm)}.rounded-t-kin-2xl{border-top-left-radius:var(--kin-r-2xl);border-top-right-radius:var(--kin-r-2xl)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-none{border-style:none}.border-n-4{--tw-border-opacity: 1;border-color:oklch(var(--n-4) / var(--tw-border-opacity, 1))}.border-n-6\\/40{border-color:oklch(var(--n-6) / .4)}.border-transparent{border-color:transparent}.bg-a-9{--tw-bg-opacity: 1;background-color:oklch(var(--a-9) / var(--tw-bg-opacity, 1))}.bg-highest{--tw-bg-opacity: 1;background-color:oklch(var(--highest) / var(--tw-bg-opacity, 1))}.bg-n-1{--tw-bg-opacity: 1;background-color:oklch(var(--n-1) / var(--tw-bg-opacity, 1))}.bg-n-12{--tw-bg-opacity: 1;background-color:oklch(var(--n-12) / var(--tw-bg-opacity, 1))}.bg-n-2{--tw-bg-opacity: 1;background-color:oklch(var(--n-2) / var(--tw-bg-opacity, 1))}.bg-n-3{--tw-bg-opacity: 1;background-color:oklch(var(--n-3) / var(--tw-bg-opacity, 1))}.bg-n-3\\/75{background-color:oklch(var(--n-3) / .75)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-\\[linear-gradient\\(90deg\\,oklch\\(var\\(--n-9\\)\\)_40\\%\\,oklch\\(var\\(--n-11\\)\\)_50\\%\\,oklch\\(var\\(--n-9\\)\\)_60\\%\\)\\]{background-image:linear-gradient(90deg,oklch(var(--n-9)) 40%,oklch(var(--n-11)) 50%,oklch(var(--n-9)) 60%)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-a-2\\/50{--tw-gradient-from: oklch(var(--a-2) / .5) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-n-2{--tw-gradient-to: oklch(var(--n-2) / 1) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-\\[length\\:200\\%_100\\%\\]{background-size:200% 100%}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-n-12{fill:oklch(var(--n-12) / 1)}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pb-2{padding-bottom:.5rem}.pb-2\\.5{padding-bottom:.625rem}.pb-3{padding-bottom:.75rem}.pb-safe-b{padding-bottom:max(.5rem,calc(env(safe-area-inset-bottom,0px) + .5rem))}.pl-3{padding-left:.75rem}.pl-safe-l{padding-left:max(1rem,env(safe-area-inset-left,1rem))}.pr-safe-r{padding-right:max(1rem,env(safe-area-inset-right,1rem))}.pt-1{padding-top:.25rem}.pt-safe-t{padding-top:max(1rem,env(safe-area-inset-top,1rem))}.text-center{text-align:center}.font-kin{font-family:var(--kin-font-family)}.text-base{font-size:1rem;line-height:1.5rem}.text-kin{font-size:max(14px,1rem);line-height:1.5}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-inherit{color:inherit}.text-n-1{--tw-text-opacity: 1;color:oklch(var(--n-1) / var(--tw-text-opacity, 1))}.text-n-10{--tw-text-opacity: 1;color:oklch(var(--n-10) / var(--tw-text-opacity, 1))}.text-n-11{--tw-text-opacity: 1;color:oklch(var(--n-11) / var(--tw-text-opacity, 1))}.text-n-12{--tw-text-opacity: 1;color:oklch(var(--n-12) / var(--tw-text-opacity, 1))}.text-n-3{--tw-text-opacity: 1;color:oklch(var(--n-3) / var(--tw-text-opacity, 1))}.text-n-8{--tw-text-opacity: 1;color:oklch(var(--n-8) / var(--tw-text-opacity, 1))}.text-n-9{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-a-9\\/10{--tw-shadow-color: oklch(var(--a-9) / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-n-4\\/30{--tw-shadow-color: oklch(var(--n-4) / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-n-4\\/50{--tw-shadow-color: oklch(var(--n-4) / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-a-9{outline-color:oklch(var(--a-9) / 1)}.outline-n-4\\/50{outline-color:oklch(var(--n-4) / .5)}.outline-transparent{outline-color:transparent}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-kin-open{transition-timing-function:cubic-bezier(.32,.72,0,1)}.ease-out-back{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}.fr:focus-visible{outline:2px solid oklch(var(--a-9) / .5);outline-offset:2px}.corner-smooth{corner-shape:superellipse(1.25)}.\\[mask-image\\:linear-gradient\\(to_bottom\\,transparent_0\\,_black_1\\.5rem\\,_black_calc\\(100\\%-1\\.5rem\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to bottom,transparent 0,black 1.5rem,black calc(100% - 1.5rem),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,black 1.5rem,black calc(100% - 1.5rem),transparent 100%)}.\\[touch-action\\:manipulation\\]{touch-action:manipulation}.\\[will-change\\:transform\\,opacity\\]{will-change:transform,opacity}:host{--a-1: 99.4% .003 22.8;--a-2: 98.4% .007 31;--a-3: 95.4% .022 30.9;--a-4: 92.6% .047 31.8;--a-5: 89.2% .063 31.5;--a-6: 85.2% .077 32;--a-7: 80.3% .094 32.2;--a-8: 74.1% .118 32.1;--a-9: 62.7% .194 33.3;--a-10: 60.4% .195 33.3;--a-11: 56.7% .198 32.8;--a-12: 34.6% .08 30.5;--n-1: 99.1% 0 0;--n-2: 98.1% 0 0;--n-3: 95.3% 0 0;--n-4: 93% 0 0;--n-5: 90.8% 0 0;--n-6: 88.4% 0 0;--n-7: 85.1% 0 0;--n-8: 79.1% 0 0;--n-9: 64.3% 0 0;--n-10: 60.9% 0 0;--n-11: 50.3% 0 0;--n-12: 24.3% 0 0;--kin-transition: .2s ease;--kin-font-family: inherit}.kin-markdown p{margin:0 0 1em}.kin-markdown p:last-child{margin-bottom:0}.kin-markdown :is(strong,b){font-weight:600}.kin-markdown :is(em,i){font-style:italic}.kin-markdown code{background:rgba(255,255,255,.1);padding:.15em .4em;border-radius:var(--kin-r-xs);font-family:SF Mono,Monaco,Consolas,monospace;font-size:.875em}.kin-markdown pre{background:rgba(0,0,0,.4);padding:14px 16px;border-radius:var(--kin-r-sm);overflow-x:auto;margin:1em 0;border:1px solid oklch(var(--n-6) / .4)}.kin-markdown pre code{background:none;padding:0;font-size:.85em;line-height:1.5}.kin-markdown :is(ul,ol){margin:.75em 0;padding-left:1.5em}.kin-markdown ul{list-style-type:disc}.kin-markdown ol{list-style-type:decimal}.kin-markdown li{margin:.35em 0}.kin-markdown li::marker{color:oklch(var(--n-9))}.kin-markdown :is(ul,ol) :is(ul,ol){margin:.25em 0}.kin-markdown blockquote{border-left:3px solid oklch(var(--a-9));margin:1em 0;padding:.5em 0 .5em 1em;color:oklch(var(--n-11));font-style:italic}.kin-markdown :is(h1,h2,h3,h4){font-weight:600;margin:1.25em 0 .5em;line-height:1.3}.kin-markdown :is(h1,h2,h3):first-child{margin-top:0}.kin-markdown h1{font-size:1.4em}.kin-markdown h2{font-size:1.25em}.kin-markdown h3{font-size:1.1em}.kin-markdown table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9em}.kin-markdown :is(th,td){padding:.5em .75em;border:1px solid oklch(var(--n-6) / .4);text-align:left}.kin-markdown th{background:oklch(var(--n-4));font-weight:600}.kin-markdown hr{border:none;border-top:1px solid oklch(var(--n-6) / .4);margin:1.5em 0}.kin-markdown hr+p{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:.75em;color:oklch(var(--n-9));margin:-1em 0 0;line-height:1.6}.kin-markdown input[type=checkbox]{margin-right:.5em;accent-color:oklch(var(--a-9))}.kin-markdown .streamdown-caret{display:inline-block;width:2px;height:1em;background:oklch(var(--a-9));margin-left:2px;animation:kin-caret 1s ease-in-out infinite;vertical-align:text-bottom}@keyframes kin-caret{0%,to{opacity:1}50%{opacity:0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.placeholder\\:text-n-9::-moz-placeholder{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.placeholder\\:text-n-9::placeholder{--tw-text-opacity: 1;color:oklch(var(--n-9) / var(--tw-text-opacity, 1))}.focus-within\\:border-a-6\\/50:focus-within{border-color:oklch(var(--a-6) / .5)}.focus-within\\:outline-\\[3px\\]:focus-within{outline-width:3px}.focus-within\\:outline-a-4\\/50:focus-within{outline-color:oklch(var(--a-4) / .5)}.hover\\:bg-a-10:hover{--tw-bg-opacity: 1;background-color:oklch(var(--a-10) / var(--tw-bg-opacity, 1))}.hover\\:bg-n-3:hover{--tw-bg-opacity: 1;background-color:oklch(var(--n-3) / var(--tw-bg-opacity, 1))}.hover\\:bg-n-4:hover{--tw-bg-opacity: 1;background-color:oklch(var(--n-4) / var(--tw-bg-opacity, 1))}.hover\\:text-a-9:hover{--tw-text-opacity: 1;color:oklch(var(--a-9) / var(--tw-text-opacity, 1))}.hover\\:text-n-11:hover{--tw-text-opacity: 1;color:oklch(var(--n-11) / var(--tw-text-opacity, 1))}.hover\\:text-n-12:hover{--tw-text-opacity: 1;color:oklch(var(--n-12) / var(--tw-text-opacity, 1))}.hover\\:underline-offset-4:hover{text-underline-offset:4px}.hover\\:outline-2:hover{outline-width:2px}.hover\\:outline-n-7\\/50:hover{outline-color:oklch(var(--n-7) / .5)}.focus\\:top-2:focus{top:.5rem}.focus-visible\\:rounded-kin-xs:focus-visible{border-radius:var(--kin-r-xs)}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-n-6:disabled{--tw-text-opacity: 1;color:oklch(var(--n-6) / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.data-\\[open\\]\\:scale-100[data-open]{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[open\\]\\:opacity-100[data-open]{opacity:1}.data-\\[open\\]\\:delay-300[data-open]{transition-delay:.3s}.group[data-side=bottom] .group-data-\\[side\\=bottom\\]\\:-top-6{top:-1.5rem}.group[data-side=top] .group-data-\\[side\\=top\\]\\:-bottom-6{bottom:-1.5rem}.group[data-side=top] .group-data-\\[side\\=top\\]\\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\\:inset-x-auto{left:auto;right:auto}.sm\\:bottom-4{bottom:1rem}.sm\\:left-1\\/2{left:50%}.sm\\:left-4{left:1rem}.sm\\:right-4{right:1rem}.sm\\:top-auto{top:auto}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:size-7{width:1.75rem;height:1.75rem}.sm\\:size-8{width:2rem;height:2rem}.sm\\:h-auto{height:auto}.sm\\:max-h-\\[90vh\\]{max-height:90vh}.sm\\:min-h-\\[50vh\\]{min-height:50vh}.sm\\:w-\\[360px\\]{width:360px}.sm\\:w-\\[480px\\]{width:480px}.sm\\:w-auto{width:auto}.sm\\:-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes kin-slide-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.sm\\:animate-kin-panel-in{animation:kin-slide-up .35s cubic-bezier(.32,.72,0,1) both}.sm\\:items-end{align-items:flex-end}.sm\\:overscroll-auto{overscroll-behavior:auto}.sm\\:rounded-kin-4xl{border-radius:var(--kin-r-4xl)}.sm\\:rounded-kin-xl{border-radius:var(--kin-r-xl)}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:pl-5{padding-left:1.25rem}.sm\\:pr-3{padding-right:.75rem}.sm\\:pt-3{padding-top:.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:font-medium{font-weight:500}.sm\\:shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.sm\\:shadow-n-6\\/30{--tw-shadow-color: oklch(var(--n-6) / .3);--tw-shadow: var(--tw-shadow-colored)}.sm\\:outline{outline-style:solid}.sm\\:outline-1{outline-width:1px}.sm\\:outline-n-6\\/50{outline-color:oklch(var(--n-6) / .5)}.sm\\:\\[touch-action\\:auto\\]{touch-action:auto}}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:rounded-kin-xs::-webkit-scrollbar-thumb{border-radius:var(--kin-r-xs)}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:bg-n-4::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:oklch(var(--n-4) / var(--tw-bg-opacity, 1))}.\\[\\&\\:\\:-webkit-scrollbar-track\\]\\:bg-transparent::-webkit-scrollbar-track{background-color:transparent}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:w-1\\.5::-webkit-scrollbar{width:.375rem}.\\[\\&\\>\\:first-child\\]\\:mt-auto>:first-child{margin-top:auto}.\\[\\&_svg\\]\\:size-3\\.5 svg{width:.875rem;height:.875rem}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}
121
+ `,Z0=["gray","mauve","slate","sage","olive","sand","tomato","red","ruby","crimson","pink","plum","purple","violet","iris","indigo","blue","cyan","teal","jade","green","grass","brown","orange","sky","mint","lime","yellow","amber","bronze","gold"],J0={gray:[[.178,0,null],[.213,0,null],[.254,0,null],[.283,0,null],[.313,0,null],[.349,0,null],[.402,0,null],[.488,0,null],[.538,0,null],[.584,0,null],[.77,0,null],[.949,0,null]],mauve:[[.18,.004,307.8],[.215,.004,307.8],[.255,.006,306.5],[.284,.008,307.8],[.314,.009,306.9],[.35,.01,304],[.402,.012,304.4],[.492,.016,300.7],[.54,.017,294],[.586,.017,295.4],[.77,.014,296.6],[.949,.003,286.3]],slate:[[.179,.004,286],[.213,.004,264.4],[.253,.006,261.2],[.283,.007,259.5],[.311,.008,259.7],[.346,.01,256.5],[.398,.012,253.8],[.49,.016,247.6],[.537,.015,261.1],[.583,.014,263.3],[.768,.01,261.3],[.949,.003,264.6]],sage:[[.179,.004,167.4],[.211,.004,160.2],[.251,.004,164.2],[.281,.005,164.9],[.311,.005,167.4],[.347,.006,167.4],[.399,.008,167.4],[.488,.009,169.8],[.533,.018,170.8],[.579,.016,170.5],[.766,.01,167.5],[.947,.002,167.7]],olive:[[.18,.004,128.3],[.212,.004,128.3],[.252,.005,129],[.281,.006,131.4],[.31,.007,131.4],[.346,.008,134.4],[.399,.01,136],[.488,.012,140.8],[.535,.018,139.6],[.581,.016,140.1],[.766,.013,139.5],[.947,.003,144.8]],sand:[[.178,.002,106.6],[.213,.002,106.6],[.253,.003,106.6],[.283,.004,99],[.312,.004,100.7],[.349,.006,102.2],[.401,.007,96.1],[.49,.01,91.7],[.535,.011,94.1],[.581,.011,94],[.767,.009,97.4],[.948,.003,106.4]],tomato:[[.187,.012,19.6],[.208,.017,32],[.254,.054,26.9],[.291,.087,28.2],[.331,.097,28.7],[.38,.099,30],[.447,.107,31.5],[.538,.13,32.9],[.627,.194,33.3],[.665,.179,34.1],[.784,.164,36],[.899,.047,31.1]],red:[[.188,.013,19.4],[.205,.022,14.7],[.25,.064,13.1],[.289,.096,14.3],[.332,.107,15.5],[.383,.111,16.9],[.451,.121,18.9],[.544,.147,21.4],[.625,.193,23],[.665,.177,23.1],[.784,.162,22.3],[.902,.053,6.14]],ruby:[[.189,.014,2.9],[.208,.016,5.29],[.254,.06,6.54],[.292,.089,5.5],[.333,.1,6.4],[.382,.105,7.59],[.448,.117,9.02],[.544,.145,11.1],[.628,.195,13.2],[.664,.179,13.7],[.786,.161,17],[.905,.053,355.8]],crimson:[[.189,.014,354.2],[.207,.022,352.9],[.256,.059,353.9],[.293,.094,354.1],[.333,.104,354.7],[.382,.109,355.5],[.45,.12,356.7],[.542,.148,358.3],[.634,.213,1.3],[.664,.197,1.95],[.787,.167,6.72],[.909,.054,346.7]],pink:[[.191,.017,334.9],[.207,.031,338.2],[.261,.061,337.5],[.299,.098,340.1],[.338,.104,340.6],[.389,.107,341.6],[.459,.119,342.6],[.545,.145,344.1],[.617,.208,346.1],[.65,.197,346.2],[.789,.19,350.7],[.905,.059,343.2]],plum:[[.19,.017,327],[.21,.031,327.7],[.266,.062,326.7],[.307,.088,325.3],[.343,.095,324.6],[.389,.097,324.2],[.456,.106,323.4],[.545,.128,322.2],[.579,.188,322.1],[.616,.182,322.1],[.786,.154,322.1],[.906,.055,325.8]],purple:[[.192,.022,316],[.213,.031,314.3],[.266,.062,312],[.308,.083,310.7],[.344,.091,310.1],[.388,.097,309.7],[.45,.108,308.7],[.541,.133,307.1],[.555,.183,305.9],[.596,.177,306.3],[.785,.156,307.9],[.911,.049,310.9]],violet:[[.191,.026,290.5],[.211,.032,299.5],[.271,.066,293.9],[.312,.093,291.7],[.348,.099,291.4],[.39,.102,291.8],[.445,.111,291.6],[.516,.131,290.2],[.542,.179,288.1],[.588,.17,289.7],[.778,.137,293.6],[.912,.045,292.6]],iris:[[.193,.022,284.2],[.209,.029,286.5],[.273,.069,278.6],[.319,.102,276.1],[.358,.109,277.4],[.399,.112,279.6],[.448,.12,280.8],[.507,.138,281.1],[.54,.184,278.3],[.587,.172,281.2],[.776,.131,286.6],[.914,.042,287]],indigo:[[.191,.025,276.7],[.209,.03,276],[.272,.069,267.8],[.319,.093,267],[.362,.105,267.5],[.404,.111,268.3],[.45,.12,268.8],[.503,.137,268.4],[.544,.191,267.1],[.59,.176,269.2],[.777,.123,273.3],[.911,.043,270]],blue:[[.193,.026,256.8],[.213,.03,258.8],[.274,.067,254],[.317,.1,248.3],[.365,.108,249.7],[.416,.112,251.7],[.475,.121,252.8],[.541,.14,253.2],[.649,.193,251.8],[.689,.17,251.5],[.768,.135,248.8],[.907,.051,238.3]],cyan:[[.191,.017,219.9],[.214,.018,225.4],[.272,.044,222.5],[.315,.063,222.1],[.362,.07,221.5],[.414,.075,221.7],[.478,.083,221.4],[.558,.098,220.7],[.661,.122,221.5],[.698,.12,219.1],[.786,.115,213.4],[.909,.057,211.7]],teal:[[.189,.012,184.5],[.217,.017,189.3],[.274,.038,186.3],[.317,.055,187],[.363,.06,186.5],[.414,.065,185.4],[.473,.074,184.5],[.539,.087,183.5],[.649,.113,182],[.687,.123,180.3],[.789,.147,175.7],[.905,.072,175.3]],jade:[[.188,.014,166.3],[.216,.018,166.1],[.272,.042,166.8],[.316,.057,168],[.362,.064,168.5],[.411,.068,169.7],[.468,.075,170.6],[.537,.088,171.8],[.642,.115,170.8],[.678,.125,169.9],[.785,.156,167.1],[.903,.078,167]],green:[[.189,.013,163.3],[.213,.016,162.2],[.271,.039,162.7],[.318,.057,161.5],[.365,.066,161.1],[.413,.073,160.7],[.467,.083,159.9],[.527,.096,159.2],[.64,.133,157.8],[.676,.141,157.6],[.78,.166,157.2],[.905,.083,158.3]],grass:[[.188,.014,155.8],[.211,.014,151.5],[.267,.03,150.7],[.319,.052,150.4],[.367,.062,149.9],[.416,.072,149.3],[.468,.084,148.9],[.524,.097,148.2],[.652,.147,147.4],[.69,.145,147.6],[.78,.142,148.5],[.911,.078,144.9]],brown:[[.178,.005,81.5],[.213,.007,51.6],[.254,.013,53.5],[.288,.018,55.4],[.325,.024,55.9],[.37,.032,57.7],[.429,.041,59.8],[.509,.053,62.2],[.633,.078,60.8],[.674,.075,61.5],[.798,.063,62.5],[.918,.036,75.7]],bronze:[[.181,.005,41.6],[.215,.005,41.5],[.255,.008,42.7],[.291,.01,45.5],[.329,.013,43.3],[.374,.016,44.3],[.43,.02,44.8],[.499,.024,45.2],[.627,.046,44.3],[.669,.045,44.3],[.792,.043,44.5],[.915,.017,50.3]],gold:[[.182,.002,106.6],[.216,.006,92.5],[.255,.008,88.3],[.291,.01,86.8],[.329,.011,83.7],[.374,.014,82.4],[.429,.016,80.9],[.498,.02,79.5],[.621,.049,78.1],[.662,.047,77.2],[.794,.041,77.2],[.915,.014,77.4]],sky:[[.19,.024,257.1],[.216,.029,258.5],[.271,.054,251.9],[.322,.07,247.8],[.372,.079,245.8],[.427,.087,243.6],[.488,.098,240.7],[.557,.114,237.2],[.861,.103,217.8],[.908,.073,214.9],[.793,.099,231.7],[.934,.053,214.4]],mint:[[.188,.012,192.3],[.21,.017,196.6],[.269,.039,192.5],[.313,.058,191.6],[.359,.063,188.9],[.41,.067,186.3],[.471,.073,183.4],[.54,.085,179.6],[.87,.1,178],[.916,.08,179.4],[.795,.118,176.4],[.93,.057,168.5]],lime:[[.18,.014,120.3],[.208,.019,129],[.266,.034,132.2],[.317,.047,131.8],[.363,.058,131.6],[.412,.069,131.4],[.464,.08,131.2],[.524,.095,130.9],[.888,.175,126.1],[.942,.175,123.7],[.868,.156,124.8],[.946,.082,122.6]],yellow:[[.181,.013,86],[.209,.017,92.1],[.259,.047,90.3],[.293,.069,94.2],[.333,.079,94.6],[.384,.077,93.3],[.452,.081,91.5],[.535,.095,89.9],[.927,.209,102.1],[.971,.182,109.4],[.9,.166,101.6],[.941,.075,101]],amber:[[.184,.013,77.3],[.212,.018,78.7],[.258,.044,74.6],[.296,.071,76.2],[.337,.081,76.4],[.387,.078,75.1],[.453,.082,74.5],[.536,.096,73.6],[.856,.178,81.4],[.902,.206,97],[.871,.175,85.1],[.935,.072,86]],orange:[[.186,.012,53.7],[.209,.019,67.4],[.257,.045,59.5],[.293,.08,58.6],[.335,.087,58.1],[.386,.087,55.2],[.453,.095,53.1],[.541,.116,49.7],[.689,.191,44.8],[.741,.199,46.3],[.799,.163,50.8],[.925,.052,66.2]]},eh={gray:[[.991,0,null],[.981,0,null],[.953,0,null],[.93,0,null],[.908,0,null],[.884,0,null],[.851,0,null],[.791,0,null],[.643,0,null],[.609,0,null],[.503,0,null],[.243,0,null]],mauve:[[.992,.002,321.1],[.983,.003,311.2],[.956,.006,314.2],[.932,.008,310],[.909,.01,306.6],[.886,.012,304],[.854,.014,300.6],[.794,.019,293.5],[.646,.019,292.6],[.611,.018,293.1],[.505,.016,296.1],[.245,.013,298]],slate:[[.991,.001,286.4],[.982,.003,286.3],[.956,.004,281.9],[.931,.006,283],[.91,.008,283.6],[.888,.009,281.8],[.853,.012,280.8],[.794,.016,278.1],[.646,.016,277.8],[.61,.016,273.2],[.503,.014,263.4],[.241,.01,249.5]],sage:[[.992,.003,160.4],[.981,.003,171.2],[.955,.003,170.4],[.931,.003,170.4],[.909,.004,167.7],[.885,.004,167.7],[.851,.004,169.9],[.792,.005,169.5],[.639,.01,172.4],[.605,.01,172.8],[.501,.008,175.9],[.24,.012,166.8]],olive:[[.993,.002,149.1],[.983,.003,144.8],[.956,.004,141.1],[.932,.004,142.1],[.909,.005,139.3],[.886,.006,141.1],[.852,.006,141.1],[.792,.007,140.6],[.64,.011,136.5],[.605,.012,136.5],[.5,.011,139.9],[.242,.011,138.2]],sand:[[.994,.001,106.4],[.982,.001,106.4],[.956,.002,97.6],[.932,.003,100.6],[.91,.004,95.9],[.886,.005,98.3],[.853,.006,96.6],[.792,.008,96.5],[.641,.01,106.7],[.606,.01,106.7],[.498,.008,106.7],[.243,.008,96.3]],tomato:[[.994,.003,22.8],[.984,.007,31],[.954,.022,30.9],[.926,.047,31.8],[.892,.063,31.5],[.852,.077,32],[.803,.094,32.2],[.741,.118,32.1],[.627,.194,33.3],[.604,.195,33.3],[.567,.198,32.8],[.346,.08,30.5]],red:[[.994,.003,22.8],[.983,.008,16],[.956,.021,16.2],[.928,.047,16.7],[.896,.062,17.3],[.857,.075,17.9],[.807,.089,18.4],[.745,.113,19.1],[.625,.193,23],[.6,.195,23.9],[.557,.198,25.1],[.339,.109,16.7]],ruby:[[.994,.003,356.3],[.983,.008,8.41],[.954,.022,8.56],[.928,.042,8.46],[.896,.055,8.16],[.858,.066,7.84],[.81,.08,7.49],[.749,.101,6.86],[.628,.195,13.2],[.601,.196,13.4],[.549,.199,13.9],[.341,.11,10]],crimson:[[.994,.003,356.3],[.982,.008,357.2],[.954,.026,356.3],[.925,.041,356.3],[.893,.054,355.8],[.855,.065,355.6],[.808,.078,354.8],[.75,.099,354.1],[.634,.213,1.3],[.608,.211,2.36],[.552,.207,4.49],[.341,.113,356.8]],pink:[[.994,.004,336.3],[.983,.009,340],[.954,.027,340.6],[.925,.042,340.7],[.893,.054,340.9],[.855,.067,340.9],[.809,.083,341.2],[.752,.107,341.6],[.617,.208,346.1],[.596,.207,346.5],[.557,.206,347.3],[.35,.129,345.5]],plum:[[.993,.005,316.9],[.983,.009,326],[.957,.027,325.5],[.929,.044,324.9],[.898,.057,324.4],[.86,.072,323.9],[.809,.091,323.1],[.742,.12,321.9],[.579,.188,322.1],[.553,.181,322.1],[.521,.173,322],[.338,.125,321.4]],purple:[[.993,.004,325.4],[.982,.009,313.1],[.959,.024,313.3],[.933,.039,312.1],[.901,.054,311.6],[.86,.071,311],[.804,.093,309.9],[.733,.123,308],[.555,.183,305.9],[.524,.176,305.7],[.516,.174,305.7],[.322,.11,303.8]],violet:[[.992,.003,308],[.983,.009,295],[.963,.019,296.6],[.934,.039,295.4],[.904,.057,294.1],[.864,.072,293.9],[.806,.09,293.5],[.729,.119,292.4],[.542,.179,288.1],[.511,.177,287.6],[.508,.159,288.6],[.313,.098,286.8]],iris:[[.994,.003,286.4],[.981,.009,284.1],[.961,.018,283.8],[.935,.035,283.4],[.904,.053,283.8],[.865,.07,283.1],[.808,.088,282.9],[.729,.118,281.5],[.54,.184,278.3],[.509,.186,277.5],[.51,.173,279.7],[.315,.099,277.4]],indigo:[[.994,.001,286.4],[.983,.008,271.4],[.961,.017,268.5],[.935,.034,268.5],[.903,.051,270],[.863,.071,271.5],[.807,.087,271.4],[.73,.113,270.5],[.544,.191,267.1],[.511,.195,266.5],[.51,.173,267.1],[.313,.086,268.6]],blue:[[.993,.003,247.6],[.982,.01,243.3],[.96,.02,236.7],[.937,.037,239],[.906,.053,242.8],[.864,.069,243.2],[.809,.088,243.3],[.735,.121,243],[.649,.193,251.8],[.621,.184,251.9],[.558,.189,253],[.324,.097,259]],cyan:[[.992,.004,219.2],[.98,.009,202.9],[.958,.026,203.6],[.932,.041,204.7],[.9,.054,206.5],[.859,.066,207.7],[.805,.082,209.6],[.727,.11,211.7],[.661,.122,221.5],[.627,.114,221.3],[.54,.127,223.7],[.332,.053,218.6]],teal:[[.994,.005,177.5],[.981,.009,179],[.961,.027,180.3],[.935,.042,180.2],[.9,.054,180.5],[.856,.064,181.4],[.797,.076,182.2],[.721,.097,183.5],[.649,.113,182],[.619,.11,181.2],[.53,.124,179],[.327,.05,185]],jade:[[.995,.004,172.6],[.982,.009,160.3],[.96,.022,161.9],[.934,.034,163.5],[.902,.046,164.8],[.859,.059,166.9],[.8,.077,169.5],[.721,.103,173.4],[.642,.115,170.8],[.613,.11,170.6],[.529,.127,167.2],[.326,.041,169.8]],green:[[.994,.004,159.1],[.982,.009,155.3],[.959,.023,156.4],[.933,.036,156.6],[.9,.05,157.2],[.857,.065,157.9],[.798,.084,159],[.714,.112,160.6],[.64,.133,157.8],[.611,.126,158.3],[.529,.133,158.3],[.322,.047,164.6]],grass:[[.994,.005,146.4],[.982,.009,145.9],[.961,.023,145.3],[.934,.037,146.2],[.901,.053,146.4],[.858,.071,146.8],[.798,.095,147.5],[.716,.13,148.3],[.652,.147,147.4],[.614,.142,147.3],[.527,.13,147.2],[.327,.053,148.6]],brown:[[.994,.002,63.2],[.983,.006,65.7],[.954,.013,67.8],[.926,.02,66.9],[.897,.029,65.8],[.862,.039,65.5],[.815,.053,64.2],[.747,.072,62.4],[.633,.078,60.8],[.597,.072,59.3],[.512,.058,55.5],[.332,.018,47]],bronze:[[.992,.001,15.9],[.981,.007,43],[.953,.01,44.3],[.925,.014,43.6],[.895,.018,42.6],[.86,.023,43.4],[.811,.03,41.9],[.742,.039,41.2],[.627,.046,44.3],[.588,.045,42.4],[.51,.044,38.4],[.329,.029,35.2]],gold:[[.994,.001,106.4],[.981,.009,97.3],[.953,.012,94.7],[.926,.015,93.2],[.896,.019,90.7],[.86,.025,88.4],[.81,.032,83.4],[.739,.042,78.2],[.621,.049,78.1],[.588,.047,77.4],[.504,.039,78.1],[.332,.019,81.7]],sky:[[.993,.005,211.9],[.98,.01,217.7],[.961,.024,219.6],[.936,.036,220.4],[.903,.047,221.4],[.861,.058,222.9],[.806,.072,225.7],[.729,.096,228],[.861,.103,217.8],[.838,.104,219.6],[.526,.108,232.5],[.351,.057,241.6]],mint:[[.993,.005,183.7],[.982,.01,178.7],[.96,.03,179.6],[.933,.047,179],[.899,.061,178.7],[.856,.072,178.7],[.798,.085,178.2],[.722,.107,177.7],[.87,.1,178],[.841,.1,177.8],[.512,.095,176],[.35,.051,181.4]],lime:[[.992,.004,120.7],[.982,.01,116.7],[.959,.043,119.1],[.932,.069,120.4],[.897,.087,121.8],[.853,.099,123.4],[.795,.111,125.3],[.724,.135,128.1],[.888,.175,126.1],[.859,.188,126.7],[.544,.111,128.6],[.354,.057,121.2]],yellow:[[.993,.005,106.5],[.988,.025,102.9],[.974,.084,104.4],[.953,.117,101.7],[.925,.141,98.2],[.881,.134,95.4],[.836,.12,92.8],[.766,.137,89.8],[.927,.209,102.1],[.897,.185,97.5],[.574,.136,81.7],[.358,.046,86.6]],amber:[[.994,.003,84.6],[.986,.024,100.3],[.969,.069,100.4],[.945,.104,98.2],[.918,.133,98.4],[.881,.124,93.2],[.827,.122,86.2],[.758,.14,76.7],[.856,.178,81.4],[.831,.168,80.9],[.569,.144,67.3],[.352,.049,53.7]],orange:[[.992,.003,40.7],[.979,.015,70.8],[.958,.037,78.1],[.92,.081,74.2],[.89,.107,70.8],[.857,.11,64.4],[.805,.113,59.9],[.745,.132,54.8],[.689,.191,44.8],[.662,.194,43.5],[.592,.186,47],[.35,.069,40.8]]},Cs=e=>(e/=255,e<=.04045?e/12.92:((e+.055)/1.055)**2.4),$y=(e,t,n)=>{const r=.4122214708*e+.5363325363*t+.0514459929*n,i=.2119034982*e+.6806995451*t+.1073969566*n,a=.0883024619*e+.2817188376*t+.6299787005*n,s=Math.cbrt(r),o=Math.cbrt(i),u=Math.cbrt(a),c=.2104542553*s+.793617785*o-.0040720468*u,h=1.9779984951*s-2.428592205*o+.4505937099*u,d=.0259040371*s+.7827717662*o-.808675766*u;return[c,h,d]},th=([e,t,n])=>{const r=Math.sqrt(t*t+n*n),i=Math.atan2(n,t)*180/Math.PI;return[e,r,(i+360)%360]},Si=([e,t,n])=>{const r=(n??0)*Math.PI/180;return[e,t*Math.cos(r),t*Math.sin(r)]},Yy=e=>{const t=e.replace("#",""),n=parseInt(t.length===3?t.replace(/./g,s=>s+s):t,16),r=Cs(n>>16&255),i=Cs(n>>8&255),a=Cs(n&255);return th($y(r,i,a))},Er=(e,t)=>{const[n,r,i]=Si(e),[a,s,o]=Si(t);return Math.hypot(n-a,r-s,i-o)},jy=(e,t,n)=>{const r=Si(e),i=Si(t),a=[r[0]+(i[0]-r[0])*n,r[1]+(i[1]-r[1])*n,r[2]+(i[2]-r[2])*n];return th(a)},Vy=([e,t,n])=>`oklch(${(e*100).toFixed(1)}% ${+t.toFixed(3)} ${+(n??0).toFixed(2)})`,nh=["1","2","3","4","5","6","7","8","9","10","11","12"],Ss=["gray","mauve","slate","sage","olive","sand"];function Ii(e,t){return Object.fromEntries(t.map(n=>[n,e[n]]))}const qy=Ii(eh,Z0),Wy=Ii(J0,Z0),Gy=Ii(eh,Ss),Qy=Ii(J0,Ss),rh=({prefix:e,appearance:t,color:n,isNeutral:r=!1})=>{if(!/^#?[0-9A-Fa-f]{6}$/.test(n))throw new Error("Color must be a valid 6-digit hex");const i=t==="light"?qy:Wy,a=t==="light"?Gy:Qy,s=Yy(n),o=r?ih(s,a):ih(s,i);if(!r){o[8]=s,o[9]=Ky(s,[o]);const u=Math.max(o[8][1],o[7][1]);o[10][1]=Math.min(u,o[10][1]),o[11][1]=Math.min(u,o[11][1])}return Object.fromEntries(nh.map((u,c)=>[`${e}${u}`,Vy(o[c])]))};function Ky(e,t){const[n,r,i]=e,a=n>.4?n-.03/(n+.1):n+.03/(n+.1),s=n>.4&&i!==null?r*.93:r,o=[a,s,i];let u=o,c=1/0;for(const h of t)for(const d of h){const f=Er(o,d);f<c&&(c=f,u=d)}return[a,u[1],u[2]]}function ih(e,t){const n=[];for(const[A,D]of Object.entries(t))for(const F of D)n.push({scale:A,color:F,distance:Er(e,F)});n.sort((A,D)=>A.distance-D.distance);const r=n.filter((A,D,F)=>D===F.findIndex(S=>S.scale===A.scale)),i=new Set(Ss);if(!r.every(A=>i.has(A.scale))&&i.has(r[0].scale))for(;r.length>1&&i.has(r[1].scale);)r.splice(1,1);const[s,o]=[r[0],r[1]],u=o.distance,c=s.distance,h=Er(s.color,o.color),d=(c**2+h**2-u**2)/(2*c*h),f=(u**2+h**2-c**2)/(2*u*h),p=Math.max(0,d/Math.sqrt(1-d**2)/(f/Math.sqrt(1-f**2)))*.5,m=t[s.scale],T=t[o.scale],w=nh.map((A,D)=>jy(m[D],T[D],p)),y=w.slice().sort((A,D)=>Er(e,A)-Er(e,D))[0],I=e[1]/(y[1]||1e-6);for(const A of w)A[1]=Math.min(e[1]*1.5,A[1]*I),A[2]=e[2];return w}const Xy=e=>e.slice(6,-1),ah=e=>Object.entries(e).map(([t,n])=>`--${t}: ${Xy(n)};`);function Zy(e){const t=rh({prefix:"a-",appearance:e.mode,color:e.accentColor}),n=rh({prefix:"n-",appearance:e.mode,color:e.neutralColor??"#555555",isNeutral:!0}),r=`--highest: ${e.mode==="light"?"100% 0 0":"10% 0 0"};`;return[...ah(t),...ah(n),r].join(`
122
+ `)}const Jy={sm:.25,md:.5,lg:1},e5={"kin-r-xs":4,"kin-r-sm":8,"kin-r-md":10,"kin-r-lg":12,"kin-r-xl":16,"kin-r-2xl":20,"kin-r-3xl":24,"kin-r-4xl":32},t5=e=>`${Number(e.toFixed(3))}px`;function n5(e){return Object.entries(e5).map(([t,n])=>`--${t}: ${t5(n*Jy[e])};`).join(`
123
+ `)}const sh={accentColor:"#FF4D00",neutralColor:"#555555",mode:"light",rounded:"lg"},r5="wss://agents.inploi.com",i5=/^\[System: CV uploaded and processed - "(.+?)"/,a5=({serviceUrl:e=r5,theme:t=sh,starterPrompts:n=[],placement:r="center",container:i})=>Ut(({logger:a,publishableKey:s})=>{if(!s)throw new Error("Kin plugin requires a publishableKey. Pass it to initialiseSdk().");let o=!1,u=null,c={...sh,...t},h=null,d=!1,f=null,p=null,m=!1;const T=r==="embedded",w=()=>{if(i)if(typeof i=="string"){const C=document.querySelector(i);if(C instanceof HTMLElement)return p=C,m=!1,C}else return p=i,m=!1,i;const L=document.getElementById("inploi-kin-root");if(L)return p=L,m=!1,L;const O=document.createElement("div");return O.id="inploi-kin-root",document.body.appendChild(O),p=O,m=!0,O},y=L=>{const O=Zy(L),C=n5(L.rounded??"lg");return`${zy}
163
124
 
164
125
  /* Theme overrides */
165
126
  :host {
166
127
  ${O}
167
- }`;return T&&(C+=Xy),C},I=()=>{if(typeof window>"u")return;const L=w();L.dataset.mode=c.mode;const O=L.shadowRoot||L.attachShadow({mode:"open"});Cr(ut(Ee,{},[ut("style",{id:"kin-styles"},y(c)),ut(My,{starterPrompts:n,embedded:T,onSendMessage:C=>u?.sendMessage(C),onOpen:()=>H(),onClose:()=>{T||($.isOpen.value=!1)},onConnect:()=>S(),onClearData:()=>u?.clearData(),onUploadFile:async(C,B)=>{if(!u){$.setUploadState("error",C.name,"Not connected");return}const{id:R}=$.addMessage({role:"user",content:"",attachment:{name:C.name}});$.setUploadState("uploading",C.name);const j=await u.uploadFile(C,B);j.success||($.removeMessage(R),$.setUploadState("error",C.name,j.error))}})]),O)},A=()=>{o||(h=Ns(),I(),o=!0)},P=()=>{$.isOpen.value=!0,$.hasUnreadMessages.value=!1},H=()=>{S(),P()},S=()=>{if(u)return;$.connectionState.value="connecting",h||(h=Ns());const L=`${e}/agent/candidate/${h}?key=${s}`;u=Iy({url:L,onMessage:O=>{switch(O.type){case"authenticated":a.info(`Authenticated with ${O.company}`),$.connectionState.value="connected";break;case"history":O.messages&&O.messages.length>0&&(a.info(`Loaded ${O.messages.length} messages from server`),$.setMessages(O.messages.flatMap(C=>{if(C.role==="system")return[];if(C.role==="user"){const B=Zy.exec(C.content)?.[1];if(B)return[{role:"user",content:"",attachment:{name:B}}];if(C.content.startsWith("[System:"))return[]}return[{role:C.role,content:C.content}]})));break;case"response_start":$.startAssistantResponse();break;case"response_chunk":$.assistantStatus.value="responding",$.appendToLiveAssistantMessage(O.content||"");break;case"response_end":$.finishAssistantResponse(),$.isOpen.value||($.hasUnreadMessages.value=!0);break;case"quick_replies":O.options&&O.options.length>=2&&($.quickReplies.value=O.options),$.assistantStatus.value=null;break;case"tool_call":$.assistantStatus.value=O.tool??"thinking";break;case"tool_result":O.tool&&O.tool!=="suggestQuickReplies"&&($.assistantStatus.value="processing_results");break;case"data_cleared":a.info("User data cleared"),$.clearMessages(),$.addMessage({role:"system",content:"Your conversation data has been cleared."});break;case"guardrail_block":$.finishAssistantResponse({broadcast:!1}),a.warn("Content blocked by safety policy"),$.addMessage({role:"system",content:O.content||"I'm not able to help with that request."});break;case"upload_received":case"file_processing":a.info(`File ${O.type==="upload_received"?"received":"processing"}: ${O.fileName}`),$.setUploadState("processing",O.fileName),$.assistantStatus.value="processing_cv";break;case"file_processed":O.status==="success"?(a.info(`File processed: ${O.fileName}`),$.setUploadState("success",O.fileName),$.assistantStatus.value=null,setTimeout(()=>$.setUploadState("idle"),2e3)):(a.error(`File processing failed: ${O.error}`),$.setUploadState("error",O.fileName,O.error),$.assistantStatus.value=null);break;case"error":$.finishAssistantResponse({broadcast:!1}),$.uploadState.value!=="idle"&&$.setUploadState("error",void 0,O.content),a.error("Kin error:",O.content),$.addMessage({role:"assistant",content:O.content||"An error occurred"});break}},onOpen:()=>{a.info("WebSocket opened, awaiting authentication...")},onClose:()=>{a.info("Disconnected from Kin service"),$.connectionState.value="disconnected",$.finishAssistantResponse({broadcast:!1});const O=d;u=null,d=!1,!O&&$.isOpen.value&&(a.info("Attempting to reconnect..."),f=setTimeout(()=>{f=null,S()},1e3))},onError:O=>{a.error("Kin connection error:",O),$.connectionState.value="error",$.finishAssistantResponse({broadcast:!1})}})},Y=()=>{f&&(clearTimeout(f),f=null),u&&(d=!0,u.disconnect(),u=null)};return{prepare:()=>{typeof window>"u"||o||(A(),S(),a.info("Kin plugin prepared"))},open:()=>{typeof window>"u"||(A(),H(),a.info("Kin opened"))},close:()=>{typeof window>"u"||($.isOpen.value=!1,a.info("Kin closed"))},toggle:()=>{typeof window>"u"||($.isOpen.value?$.isOpen.value=!1:(A(),H()))},setTheme:L=>{if(c=L,o&&p){p.dataset.mode=L.mode;const O=p.shadowRoot?.getElementById("kin-styles");O&&(O.textContent=y(c))}a.info("Kin theme updated:",L)},destroy:()=>{typeof window>"u"||(Y(),p&&(p.shadowRoot&&Cr(null,p.shadowRoot),m&&p.remove()),$.resetState(),o=!1,p=null,m=!1,a.info("Kin plugin destroyed"))}}});if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.kinPlugin=Jy;var e5=({code:e,language:t,raw:n,className:r,...i})=>{let{shikiTheme:a}=Ye(Ze),s=kx(),[o,u]=de(n);return Se(()=>{if(!s){u(n);return}let c=s.highlight({code:e,language:t,themes:a},h=>{u(h)});c&&u(c)},[e,t,a,s,n]),g(Qd,{className:r,language:t,result:o,...i})};const t5=Object.freeze(Object.defineProperty({__proto__:null,HighlightedCodeBlockBody:e5},Symbol.toStringTag,{value:"Module"})),n5=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:Y0},Symbol.toStringTag,{value:"Module"}))})();
128
+ ${C}
129
+ }`},I=()=>{if(typeof window>"u")return;const L=w();L.dataset.mode=c.mode;const O=L.shadowRoot||L.attachShadow({mode:"open"});Sr(ut(Ee,{},[ut("style",{id:"kin-styles"},y(c)),ut(Uy,{starterPrompts:n,placement:r,onSendMessage:C=>u?.sendMessage(C),onOpen:()=>F(),onClose:()=>{T||(j.isOpen.value=!1)},onConnect:()=>S(),onClearData:()=>u?.clearData(),onUploadFile:async(C,$)=>{if(!u){j.setUploadState("error",C.name,"Not connected");return}const{id:M}=j.addMessage({role:"user",content:"",attachment:{name:C.name}});j.setUploadState("uploading",C.name);const U=await u.uploadFile(C,$);U.success||(j.removeMessage(M),j.setUploadState("error",C.name,U.error))}})]),O)},A=()=>{o||(h=vs(),I(),o=!0)},D=()=>{j.isOpen.value=!0,j.hasUnreadMessages.value=!1},F=()=>{S(),D()},S=()=>{if(u)return;j.connectionState.value="connecting",h||(h=vs());const L=`${e}/agent/candidate/${h}?key=${s}`;u=Ry({url:L,onMessage:O=>{switch(O.type){case"authenticated":a.info(`Authenticated with ${O.company}`),j.connectionState.value="connected";break;case"history":O.messages&&O.messages.length>0&&(a.info(`Loaded ${O.messages.length} messages from server`),j.setMessages(O.messages.flatMap(C=>{if(C.role==="system")return[];if(C.role==="user"){const $=i5.exec(C.content)?.[1];if($)return[{role:"user",content:"",attachment:{name:$}}];if(C.content.startsWith("[System:"))return[]}return[{role:C.role,content:C.content}]})));break;case"response_start":j.startAssistantResponse();break;case"response_chunk":j.assistantStatus.value="responding",j.appendToLiveAssistantMessage(O.content||"");break;case"response_end":j.finishAssistantResponse(),j.isOpen.value||(j.hasUnreadMessages.value=!0);break;case"quick_replies":O.options&&O.options.length>=2&&(j.quickReplies.value=O.options),j.assistantStatus.value=null;break;case"tool_call":j.assistantStatus.value=O.tool??"thinking";break;case"tool_result":O.tool&&O.tool!=="suggestQuickReplies"&&(j.assistantStatus.value="processing_results");break;case"data_cleared":a.info("User data cleared"),j.clearMessages(),j.addMessage({role:"system",content:"Your conversation data has been cleared."});break;case"guardrail_block":j.finishAssistantResponse({broadcast:!1}),a.warn("Content blocked by safety policy"),j.addMessage({role:"system",content:O.content||"I'm not able to help with that request."});break;case"upload_received":case"file_processing":a.info(`File ${O.type==="upload_received"?"received":"processing"}: ${O.fileName}`),j.setUploadState("processing",O.fileName),j.assistantStatus.value="processing_cv";break;case"file_processed":O.status==="success"?(a.info(`File processed: ${O.fileName}`),j.setUploadState("success",O.fileName),j.assistantStatus.value=null,setTimeout(()=>j.setUploadState("idle"),2e3)):(a.error(`File processing failed: ${O.error}`),j.setUploadState("error",O.fileName,O.error),j.assistantStatus.value=null);break;case"error":j.finishAssistantResponse({broadcast:!1}),j.uploadState.value!=="idle"&&j.setUploadState("error",void 0,O.content),a.error("Kin error:",O.content),j.addMessage({role:"assistant",content:O.content||"An error occurred"});break}},onOpen:()=>{a.info("WebSocket opened, awaiting authentication...")},onClose:()=>{a.info("Disconnected from Kin service"),j.connectionState.value="disconnected",j.finishAssistantResponse({broadcast:!1});const O=d;u=null,d=!1,!O&&j.isOpen.value&&(a.info("Attempting to reconnect..."),f=setTimeout(()=>{f=null,S()},1e3))},onError:O=>{a.error("Kin connection error:",O),j.connectionState.value="error",j.finishAssistantResponse({broadcast:!1})}})},Y=()=>{f&&(clearTimeout(f),f=null),u&&(d=!0,u.disconnect(),u=null)};return{prepare:()=>{typeof window>"u"||o||(A(),S(),a.info("Kin plugin prepared"))},open:()=>{typeof window>"u"||(A(),F(),a.info("Kin opened"))},close:()=>{typeof window>"u"||(j.isOpen.value=!1,a.info("Kin closed"))},toggle:()=>{typeof window>"u"||(j.isOpen.value?j.isOpen.value=!1:(A(),F()))},setTheme:L=>{if(c={rounded:c.rounded,...L},o&&p){p.dataset.mode=c.mode;const O=p.shadowRoot?.getElementById("kin-styles");O&&(O.textContent=y(c))}a.info("Kin theme updated:",L)},destroy:()=>{typeof window>"u"||(Y(),p&&(p.shadowRoot&&Sr(null,p.shadowRoot),m&&p.remove()),j.resetState(),o=!1,p=null,m=!1,a.info("Kin plugin destroyed"))}}});if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.kinPlugin=a5;var s5=({code:e,language:t,raw:n,className:r,...i})=>{let{shikiTheme:a}=Ye(Ze),s=wx(),[o,u]=ce(n);return Ne(()=>{if(!s){u(n);return}let c=s.highlight({code:e,language:t,themes:a},h=>{u(h)});c&&u(c)},[e,t,a,s,n]),g(Kd,{className:r,language:t,result:o,...i})};const o5=Object.freeze(Object.defineProperty({__proto__:null,HighlightedCodeBlockBody:s5},Symbol.toStringTag,{value:"Module"})),u5=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:j0},Symbol.toStringTag,{value:"Module"}))})();