import{g as e,y as t,q as r,o as n,n as a,k as i,j as o,R as u,r as s,z as l,e as c,p as d,f as p,A as h,v as f,B as g,t as _,C as m,D,s as b,F as v,l as y,h as w,E,a as C,_ as A,H as F,G as k,i as x,c as S,I}from"./4.DsIPCrft.chunk.js";import{k as T}from"./5.C_rgEAoe.chunk.js";import{a as B,g as z,c as P,b as O,h as R,d as M,t as $}from"./6.CoSZoCaB.chunk.js";var j="__test_storage_support__",q=function(e){void 0===e&&(e="local");try{var t="session"===e?window.sessionStorage:window.localStorage;return t.setItem(j,"@@test"),"@@test"!==t.getItem(j)?!1:(t.removeItem(j),!0)}catch(r){return!1}},N=function(){var e=Object.create(null);return{getItem:function(t){var r=e[t];return"string"==typeof r?r:null},setItem:function(t,r){e[t]=r},removeItem:function(t){delete e[t]},clear:function(){e=Object.create(null)}}}();const U=e(e=>(t,r)=>{if(0!==t)return;if("function"!=typeof e)return r(0,()=>{}),void r(2);let n,a=!1;r(0,e=>{a||(a=2===e,a&&"function"==typeof n&&n())}),a||(n=e(e=>{a||r(1,e)},e=>{a||void 0===e||(a=!0,r(2,e))},()=>{a||(a=!0,r(2))}))});var L;L="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var Z,V,H=("function"==typeof(V=L.Symbol)?V.observable?Z=V.observable:(Z=V("observable"),V.observable=Z):Z="@@observable",Z);const W=t(Object.freeze(Object.defineProperty({__proto__:null,default:H},Symbol.toStringTag,{value:"Module"}))).default;const Y=e(e=>(t,r)=>{if(0!==t)return;let n;r(0,e=>{2===e&&n&&(n.unsubscribe?n.unsubscribe():n())}),e=e[W]?e[W]():e,n=e.subscribe({next:e=>r(1,e),error:e=>r(2,e),complete:()=>r(2)})});const G=e((function(){let e=[];return(t,r)=>{if(0===t){const t=r;e.push(t),t(0,r=>{if(2===r){const r=e.indexOf(t);r>-1&&e.splice(r,1)}})}else{const n=e.slice(0);for(let a,i=0,o=n.length;i "+e+"
\n":"'+(r?e:re(e,!0))+"
\n"},t.blockquote=function(e){return""+(r?e:re(e,!0))+"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,r,n){return this.options.headerIds?"
\n":"
\n"},t.list=function(e,t,r){var n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+""+n+">\n"},t.listitem=function(e){return"\n\n"+e+"\n"+t+"
\n"},t.tablerow=function(e){return"\n"+e+" \n"},t.tablecell=function(e,t){var r=t.header?"th":"td";return(t.align?"<"+r+' align="'+t.align+'">':"<"+r+">")+e+""+r+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+"
"},t.br=function(){return this.options.xhtml?"
":"
"},t.del=function(e){return""+e+""},t.link=function(e,t,r){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return r;var n='"+r+""},t.image=function(e,t,r){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return r;var n='":">"},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,r){return""+r},t.image=function(e,t,r){return""+r},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{r=e+"-"+ ++n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r},t.slug=function(e,t){void 0===t&&(t={});var r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)},e}(),oe=ne,ue=ae,se=ie,le=n.exports.defaults,ce=E,de=X,pe=function(){function e(e){this.options=e||le,this.options.renderer=this.options.renderer||new oe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ue,this.slugger=new se}e.parse=function(t,r){return new e(r).parse(t)},e.parseInline=function(t,r){return new e(r).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var r,n,a,i,o,u,s,l,c,d,p,h,f,g,_,m,D,b,v,y="",w=e.length;for(r=0;r
"+be(s.message+"",!0)+"";throw s}}return Ee.options=Ee.setOptions=function(e){return me(Ee.defaults,e),ye(Ee.defaults),Ee},Ee.getDefaults=ve,Ee.defaults=we,Ee.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n
"+be(n.message+"",!0)+"";throw n}},Ee.Parser=pe,Ee.parser=pe.parse,Ee.Renderer=fe,Ee.TextRenderer=ge,Ee.Lexer=de,Ee.lexer=de.lex,Ee.Tokenizer=he,Ee.Slugger=_e,Ee.parse=Ee,Ee}();const hn=e(pn),fn=new cn,{map:gn}=Array.prototype,_n=["A","UL","OL","LI","STRONG","EM","BR","DEL","CODE","PRE"],mn=new pn.Renderer;mn.link=function(e,t,r){const n=fn.match(r);return n&&n.length>1?r:''+r+""};const Dn=new pn.Renderer;Object.assign(Dn,mn),Dn.list=function(e,t,r){let n=r;return e.replace(bn,()=>t?n+++". ":"- ")},Dn.listitem=function(e){return""+bn+e};const bn="%list-item%",vn=e=>e.replace(/\n+$/,"");function yn(e,t,r){if(function(e,t){let r=e.parentNode;for(;r;){if(r.nodeName===t)return!0;r=r.parentNode}return!1}(e,"A"))return e.textContent;if(null===e.textContent)return null;const n=fn.match(e.textContent);if(!n||0===n.length)return e.textContent;const[a]=Array.from(n).reduce((t,a,i)=>{let[u,s]=t;return u.push(e.textContent.slice(s,a.index),o.createElement(null!=r?r:"a",{href:a.url,target:"_blank",rel:"nofollow noopener"},a.text)),i===n.length-1&&u.push(e.textContent.slice(a.lastIndex)),[u,a.lastIndex]},[[],0]);return o.createElement(o.Fragment,{key:t},...a)}function wn(e){const t=hn(e,{renderer:Dn}),r=new DOMParser,{body:n}=r.parseFromString(t,"text/html");return n?vn(n.textContent||""):""}const En=e=>{var t,r;let{template:n,root:a,preserveLists:i,limit:u,linkComponent:s=null}=e;const l=null!=(t=null==a?void 0:a.props)?t:{},c=null!=(r=null==a?void 0:a.component)?r:o.Fragment,d=o.useMemo(()=>{try{const e=new DOMParser,t=vn(hn(n,i?{renderer:Dn}:{renderer:mn})),{body:r}=e.parseFromString(t,"text/html");return r?function(e,t,r){let n=0,a=!1;const i=e=>gn.call(e,(e,u)=>{if("#text"===e.nodeName)return r?a?null:e.textContent&&e.textContent.length+n