@htmlbricks/hb-markdown-viewer 0.66.6 → 0.66.8

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/main.iife.js CHANGED
@@ -1,63 +1,63 @@
1
- (function(Qt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const fr=2,Gt="[",Yt="[!",Ut="[?",Vt="]",ye={},R=Symbol(),pr="http://www.w3.org/1999/xhtml",dr="http://www.w3.org/2000/svg",gr="http://www.w3.org/1998/Math/MathML",kr=!1;var _r=Array.isArray,vr=Array.prototype.indexOf,$e=Array.prototype.includes,wr=Array.from,Qe=Object.keys,Ge=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,br=Object.prototype,mr=Array.prototype,xr=Object.getPrototypeOf,Wt=Object.isExtensible;const yr=()=>{};function $r(t){for(var e=0;e<t.length;e++)t[e]()}function Kt(){var t,e,n=new Promise((s,r)=>{t=s,e=r});return{promise:n,resolve:t,reject:e}}const $=2,Re=4,Ye=8,Xt=1<<24,ne=16,W=32,re=64,gt=128,I=512,S=1024,E=2048,G=4096,se=8192,B=16384,ie=32768,Jt=1<<25,Ue=65536,en=1<<17,Sr=1<<18,de=1<<19,Rr=1<<20,ge=65536,kt=1<<21,_t=1<<22,le=1<<23,vt=Symbol("$state"),Tr=Symbol("legacy props"),K=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ve=8;function Er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ar(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Pr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ir(){throw new Error("https://svelte.dev/e/hydration_failed")}function Lr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Or(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function We(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Dr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function Ke(t){T=t}let m;function ae(t){if(t===null)throw We(),ye;return m=t}function Xe(){return ae(fe(m))}function Je(t){if(T){if(fe(m)!==null)throw We(),ye;m=t}}function Br(t=1){if(T){for(var e=t,n=m;e--;)n=fe(n);m=n}}function qr(t=!0){for(var e=0,n=m;;){if(n.nodeType===Ve){var s=n.data;if(s===Vt){if(e===0)return n;e-=1}else(s===Gt||s===Yt||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(e+=1)}var r=fe(n);t&&n.remove(),n=r}}function tn(t){return t===this.v}function jr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fr(t){return!jr(t,this.v)}let Hr=!1,L=null;function Te(t){L=t}function nn(t,e=!1,n){L={p:L,i:!1,c:null,e:null,s:t,x:null,r:k,l:null}}function rn(t){var e=L,n=e.e;if(n!==null){e.e=null;for(var s of n)Tn(s)}return t!==void 0&&(e.x=t),e.i=!0,L=e.p,t??{}}function sn(){return!0}let ke=[];function ln(){var t=ke;ke=[],$r(t)}function Ee(t){if(ke.length===0&&!Ie){var e=ke;queueMicrotask(()=>{e===ke&&ln()})}ke.push(t)}function Zr(){for(;ke.length>0;)ln()}function an(t){var e=k;if(e===null)return g.f|=le,t;if((e.f&ie)===0&&(e.f&Re)===0)throw t;oe(t,e)}function oe(t,e){for(;e!==null;){if((e.f&gt)!==0){if((e.f&ie)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Qr=-7169;function x(t,e){t.f=t.f&Qr|e}function wt(t){(t.f&I)!==0||t.deps===null?x(t,S):x(t,G)}function on(t){if(t!==null)for(const e of t)(e.f&$)===0||(e.f&ge)===0||(e.f^=ge,on(e.deps))}function un(t,e,n){(t.f&E)!==0?e.add(t):(t.f&G)!==0&&n.add(t),on(t.deps),x(t,S)}const ue=new Set;let b=null,q=null,bt=null,Ie=!1,mt=!1,Ae=null,et=null;var cn=0;let Gr=1;class ce{id=Gr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#i=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#s=new Set;#a=new Map;is_fork=!1;#h=!1;#u=new Set;#f(){return this.is_fork||this.#o.size>0}#d(){for(const s of this.#u)for(const r of s.#o.keys()){for(var e=!1,n=r;n.parent!==null;){if(this.#a.has(n)){e=!0;break}n=n.parent}if(!e)return!0}return!1}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var n=this.#a.get(e);if(n){this.#a.delete(e);for(var s of n.d)x(s,E),this.schedule(s);for(s of n.m)x(s,G),this.schedule(s)}}#p(){if(cn++>1e3&&(ue.delete(this),Yr()),!this.#f()){for(const o of this.#r)this.#s.delete(o),x(o,E),this.schedule(o);for(const o of this.#s)x(o,G),this.schedule(o)}const e=this.#t;this.#t=[],this.apply();var n=Ae=[],s=[],r=et=[];for(const o of e)try{this.#c(o,n,s)}catch(a){throw gn(o),a}if(b=null,r.length>0){var i=ce.ensure();for(const o of r)i.schedule(o)}if(Ae=null,et=null,this.#f()||this.#d()){this.#g(s),this.#g(n);for(const[o,a]of this.#a)dn(o,a)}else{this.#i.size===0&&ue.delete(this),this.#r.clear(),this.#s.clear();for(const o of this.#e)o(this);this.#e.clear(),hn(s),hn(n),this.#l?.resolve()}var l=b;if(this.#t.length>0){const o=l??=this;o.#t.push(...this.#t.filter(a=>!o.#t.includes(a)))}l!==null&&(ue.add(l),l.#p()),ue.has(this)||this.#k()}#c(e,n,s){e.f^=S;for(var r=e.first;r!==null;){var i=r.f,l=(i&(W|re))!==0,o=l&&(i&S)!==0,a=o||(i&se)!==0||this.#a.has(r);if(!a&&r.fn!==null){l?r.f^=S:(i&Re)!==0?n.push(r):Oe(r)&&((i&ne)!==0&&this.#s.add(r),ze(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var c=r.next;if(c!==null){r=c;break}r=r.parent}}}#g(e){for(var n=0;n<e.length;n+=1)un(e[n],this.#r,this.#s)}capture(e,n,s=!1){n!==R&&!this.previous.has(e)&&this.previous.set(e,n),(e.f&le)===0&&(this.current.set(e,[e.v,s]),q?.set(e,e.v))}activate(){b=this}deactivate(){b=null,q=null}flush(){try{mt=!0,b=this,this.#p()}finally{cn=0,bt=null,Ae=null,et=null,mt=!1,b=null,q=null,he.clear()}}discard(){for(const e of this.#n)e(this);this.#n.clear(),ue.delete(this)}#k(){for(const u of ue){var e=u.id<this.id,n=[];for(const[c,[f,h]]of this.current){if(u.current.has(c)){var s=u.current.get(c)[0];if(e&&f!==s)u.current.set(c,[f,h]);else continue}n.push(c)}var r=[...u.current.keys()].filter(c=>!this.current.has(c));if(r.length===0)e&&u.discard();else if(n.length>0){u.activate();var i=new Set,l=new Map;for(var o of n)fn(o,r,i,l);if(u.#t.length>0){u.apply();for(var a of u.#t)u.#c(a,[],[]);u.#t=[]}u.deactivate()}}for(const u of ue)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#f()&&(u.activate(),u.#p()))}increment(e,n){let s=this.#i.get(n)??0;if(this.#i.set(n,s+1),e){let r=this.#o.get(n)??0;this.#o.set(n,r+1)}}decrement(e,n,s){let r=this.#i.get(n)??0;if(r===1?this.#i.delete(n):this.#i.set(n,r-1),e){let i=this.#o.get(n)??0;i===1?this.#o.delete(n):this.#o.set(n,i-1)}this.#h||s||(this.#h=!0,Ee(()=>{this.#h=!1,this.flush()}))}transfer_effects(e,n){for(const s of e)this.#r.add(s);for(const s of n)this.#s.add(s);e.clear(),n.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#n.add(e)}settled(){return(this.#l??=Kt()).promise}static ensure(){if(b===null){const e=b=new ce;mt||(ue.add(b),Ie||Ee(()=>{b===e&&e.flush()}))}return b}apply(){{q=null;return}}schedule(e){if(bt=e,e.b?.is_pending&&(e.f&(Re|Ye|Xt))!==0&&(e.f&ie)===0){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var s=n.f;if(Ae!==null&&n===k&&(g===null||(g.f&$)===0))return;if((s&(re|W))!==0){if((s&S)===0)return;n.f^=S}}this.#t.push(n)}}function xt(t){var e=Ie;Ie=!0;try{for(var n;;){if(Zr(),b===null)return n;b.flush()}}finally{Ie=e}}function Yr(){try{Cr()}catch(t){oe(t,bt)}}let X=null;function hn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var s=t[n++];if((s.f&(B|se))===0&&Oe(s)&&(X=new Set,ze(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&Pn(s),X?.size>0)){he.clear();for(const r of X){if((r.f&(B|se))!==0)continue;const i=[r];let l=r.parent;for(;l!==null;)X.has(l)&&(X.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(B|se))===0&&ze(a)}}X.clear()}}X=null}}function fn(t,e,n,s){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const i=r.f;(i&$)!==0?fn(r,e,n,s):(i&(_t|ne))!==0&&(i&E)===0&&pn(r,e,s)&&(x(r,E),yt(r))}}function pn(t,e,n){const s=n.get(t);if(s!==void 0)return s;if(t.deps!==null)for(const r of t.deps){if($e.call(e,r))return!0;if((r.f&$)!==0&&pn(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function yt(t){b.schedule(t)}function dn(t,e){if(!((t.f&W)!==0&&(t.f&S)!==0)){(t.f&E)!==0?e.d.push(t):(t.f&G)!==0&&e.m.push(t),x(t,S);for(var n=t.first;n!==null;)dn(n,e),n=n.next}}function gn(t){x(t,S);for(var e=t.first;e!==null;)gn(e),e=e.next}function Ur(t){let e=0,n=Le(0),s;return()=>{At()&&(D(n),En(()=>(e===0&&(s=xs(()=>t(()=>Ne(n)))),e+=1,()=>{Ee(()=>{e-=1,e===0&&(s?.(),s=void 0,Ne(n))})})))}}var Vr=Ue|de;function Wr(t,e,n,s){new Kr(t,e,n,s)}class Kr{parent;is_pending=!1;transform_error;#e;#n=T?m:null;#i;#o;#l;#t=null;#r=null;#s=null;#a=null;#h=0;#u=0;#f=!1;#d=new Set;#p=new Set;#c=null;#g=Ur(()=>(this.#c=Le(this.#h),()=>{this.#c=null}));constructor(e,n,s,r){this.#e=e,this.#i=n,this.#o=i=>{var l=k;l.b=this,l.f|=gt,s(i)},this.parent=k.b,this.transform_error=r??this.parent?.transform_error??(i=>i),this.#l=ks(()=>{if(T){const i=this.#n;Xe();const l=i.data===Yt;if(i.data.startsWith(Ut)){const a=JSON.parse(i.data.slice(Ut.length));this.#m(a)}else l?this.#x():this.#k()}else this.#w()},Vr),T&&(this.#e=m)}#k(){try{this.#t=_e(()=>this.#o(this.#e))}catch(e){this.error(e)}}#m(e){const n=this.#i.failed;n&&(this.#s=_e(()=>{n(this.#e,()=>e,()=>()=>{})}))}#x(){const e=this.#i.pending;e&&(this.is_pending=!0,this.#r=_e(()=>e(this.#e)),Ee(()=>{var n=this.#a=document.createDocumentFragment(),s=Tt();n.append(s),this.#t=this.#v(()=>_e(()=>this.#o(s))),this.#u===0&&(this.#e.before(n),this.#a=null,st(this.#r,()=>{this.#r=null}),this.#_(b))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#h=0,this.#t=_e(()=>{this.#o(this.#e)}),this.#u>0){var e=this.#a=document.createDocumentFragment();vs(this.#t,e);const n=this.#i.pending;this.#r=_e(()=>n(this.#e))}else this.#_(b)}catch(n){this.error(n)}}#_(e){this.is_pending=!1,e.transfer_effects(this.#d,this.#p)}defer_effect(e){un(e,this.#d,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#v(e){var n=k,s=g,r=L;U(this.#l),N(this.#l),Te(this.#l.ctx);try{return ce.ensure(),e()}catch(i){return an(i),null}finally{U(n),N(s),Te(r)}}#b(e,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e,n);return}this.#u+=e,this.#u===0&&(this.#_(n),this.#r&&st(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(e,n){this.#b(e,n),this.#h+=e,!(!this.#c||this.#f)&&(this.#f=!0,Ee(()=>{this.#f=!1,this.#c&&nt(this.#c,this.#h)}))}get_effect_pending(){return this.#g(),D(this.#c)}error(e){var n=this.#i.onerror;let s=this.#i.failed;if(!n&&!s)throw e;this.#t&&(F(this.#t),this.#t=null),this.#r&&(F(this.#r),this.#r=null),this.#s&&(F(this.#s),this.#s=null),T&&(ae(this.#n),Br(),ae(qr()));var r=!1,i=!1;const l=()=>{if(r){Dr();return}r=!0,i&&Or(),this.#s!==null&&st(this.#s,()=>{this.#s=null}),this.#v(()=>{this.#w()})},o=a=>{try{i=!0,n?.(a,l),i=!1}catch(u){oe(u,this.#l&&this.#l.parent)}s&&(this.#s=this.#v(()=>{try{return _e(()=>{var u=k;u.b=this,u.f|=gt,s(this.#e,()=>a,()=>l)})}catch(u){return oe(u,this.#l.parent),null}}))};Ee(()=>{var a;try{a=this.transform_error(e)}catch(u){oe(u,this.#l&&this.#l.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,u=>oe(u,this.#l&&this.#l.parent)):o(a)})}}function Xr(t,e,n,s){const r=_n;var i=t.filter(h=>!h.settled);if(n.length===0&&i.length===0){s(e.map(r));return}var l=k,o=Jr(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(h=>h.promise)):null;function u(h){o();try{s(h)}catch(d){(l.f&B)===0&&oe(d,l)}tt()}if(n.length===0){a.then(()=>u(e.map(r)));return}var c=kn();function f(){Promise.all(n.map(h=>es(h))).then(h=>u([...e.map(r),...h])).catch(h=>oe(h,l)).finally(()=>c())}a?a.then(()=>{o(),f(),tt()}):f()}function Jr(){var t=k,e=g,n=L,s=b;return function(i=!0){U(t),N(e),Te(n),i&&(t.f&B)===0&&(s?.activate(),s?.apply())}}function tt(t=!0){U(null),N(null),Te(null),t&&b?.deactivate()}function kn(){var t=k,e=t.b,n=b,s=e.is_rendered();return e.update_pending_count(1,n),n.increment(s,t),(r=!1)=>{e.update_pending_count(-1,n),n.decrement(s,t,r)}}function _n(t){var e=$|E,n=g!==null&&(g.f&$)!==0?g:null;return k!==null&&(k.f|=de),{ctx:L,deps:null,effects:null,equals:tn,f:e,fn:t,reactions:null,rv:0,v:R,wv:0,parent:n??k,ac:null}}function es(t,e,n){let s=k;s===null&&Er();var r=void 0,i=Le(R),l=!g,o=new Map;return ds(()=>{var a=k,u=Kt();r=u.promise;try{Promise.resolve(t()).then(u.resolve,u.reject).finally(tt)}catch(d){u.reject(d),tt()}var c=b;if(l){if((a.f&ie)!==0)var f=kn();if(s.b.is_rendered())o.get(c)?.reject(K),o.delete(c);else{for(const d of o.values())d.reject(K);o.clear()}o.set(c,u)}const h=(d,p=void 0)=>{if(f){var _=p===K;f(_)}if(!(p===K||(a.f&B)!==0)){if(c.activate(),p)i.f|=le,nt(i,p);else{(i.f&le)!==0&&(i.f^=le),nt(i,d);for(const[y,P]of o){if(o.delete(y),y===c)break;P.reject(K)}}c.deactivate()}};u.promise.then(h,d=>h(null,d||"unknown"))}),us(()=>{for(const a of o.values())a.reject(K)}),new Promise(a=>{function u(c){function f(){c===r?a(i):u(r)}c.then(f,f)}u(r)})}function ts(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)F(e[n])}}function ns(t){for(var e=t.parent;e!==null;){if((e.f&$)===0)return(e.f&B)===0?e:null;e=e.parent}return null}function $t(t){var e,n=k;U(ns(t));try{t.f&=~ge,ts(t),e=Dn(t)}finally{U(n)}return e}function vn(t){var e=t.v,n=$t(t);if(!t.equals(n)&&(t.wv=Mn(),(!b?.is_fork||t.deps===null)&&(t.v=n,b?.capture(t,e,!0),t.deps===null))){x(t,S);return}pe||(q!==null?(At()||b?.is_fork)&&q.set(t,n):wt(t))}function rs(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(K),e.teardown=yr,e.ac=null,De(e,0),zt(e))}function wn(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ze(e)}let St=new Set;const he=new Map;let bn=!1;function Le(t,e){var n={f:0,v:t,reactions:null,equals:tn,rv:0,wv:0};return n}function J(t,e){const n=Le(t);return ws(n),n}function ss(t,e=!1,n=!0){const s=Le(t);return e||(s.equals=Fr),s}function j(t,e,n=!1){g!==null&&(!H||(g.f&en)!==0)&&sn()&&(g.f&($|ne|_t|en))!==0&&(M===null||!$e.call(M,t))&&Mr();let s=n?Me(e):e;return nt(t,s,et)}function nt(t,e,n=null){if(!t.equals(e)){var s=t.v;pe?he.set(t,e):he.set(t,s),t.v=e;var r=ce.ensure();if(r.capture(t,s),(t.f&$)!==0){const i=t;(t.f&E)!==0&&$t(i),q===null&&wt(i)}t.wv=Mn(),mn(t,E,n),k!==null&&(k.f&S)!==0&&(k.f&(W|re))===0&&(O===null?bs([t]):O.push(t)),!r.is_fork&&St.size>0&&!bn&&is()}return e}function is(){bn=!1;for(const t of St)(t.f&S)!==0&&x(t,G),Oe(t)&&ze(t);St.clear()}function Ne(t){j(t,t.v+1)}function mn(t,e,n){var s=t.reactions;if(s!==null)for(var r=s.length,i=0;i<r;i++){var l=s[i],o=l.f,a=(o&E)===0;if(a&&x(l,e),(o&$)!==0){var u=l;q?.delete(u),(o&ge)===0&&(o&I&&(l.f|=ge),mn(u,G,n))}else if(a){var c=l;(o&ne)!==0&&X!==null&&X.add(c),n!==null?n.push(c):yt(c)}}}function Me(t){if(typeof t!="object"||t===null||vt in t)return t;const e=xr(t);if(e!==br&&e!==mr)return t;var n=new Map,s=_r(t),r=J(0),i=we,l=o=>{if(we===i)return o();var a=g,u=we;N(null),Nn(i);var c=o();return N(a),Nn(u),c};return s&&n.set("length",J(t.length)),new Proxy(t,{defineProperty(o,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Lr();var c=n.get(a);return c===void 0?l(()=>{var f=J(u.value);return n.set(a,f),f}):j(c,u.value,!0),!0},deleteProperty(o,a){var u=n.get(a);if(u===void 0){if(a in o){const c=l(()=>J(R));n.set(a,c),Ne(r)}}else j(u,R),Ne(r);return!0},get(o,a,u){if(a===vt)return t;var c=n.get(a),f=a in o;if(c===void 0&&(!f||Se(o,a)?.writable)&&(c=l(()=>{var d=Me(f?o[a]:R),p=J(d);return p}),n.set(a,c)),c!==void 0){var h=D(c);return h===R?void 0:h}return Reflect.get(o,a,u)},getOwnPropertyDescriptor(o,a){var u=Reflect.getOwnPropertyDescriptor(o,a);if(u&&"value"in u){var c=n.get(a);c&&(u.value=D(c))}else if(u===void 0){var f=n.get(a),h=f?.v;if(f!==void 0&&h!==R)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(o,a){if(a===vt)return!0;var u=n.get(a),c=u!==void 0&&u.v!==R||Reflect.has(o,a);if(u!==void 0||k!==null&&(!c||Se(o,a)?.writable)){u===void 0&&(u=l(()=>{var h=c?Me(o[a]):R,d=J(h);return d}),n.set(a,u));var f=D(u);if(f===R)return!1}return c},set(o,a,u,c){var f=n.get(a),h=a in o;if(s&&a==="length")for(var d=u;d<f.v;d+=1){var p=n.get(d+"");p!==void 0?j(p,R):d in o&&(p=l(()=>J(R)),n.set(d+"",p))}if(f===void 0)(!h||Se(o,a)?.writable)&&(f=l(()=>J(void 0)),j(f,Me(u)),n.set(a,f));else{h=f.v!==R;var _=l(()=>Me(u));j(f,_)}var y=Reflect.getOwnPropertyDescriptor(o,a);if(y?.set&&y.set.call(c,u),!h){if(s&&typeof a=="string"){var P=n.get("length"),te=Number(a);Number.isInteger(te)&&te>=P.v&&j(P,te+1)}Ne(r)}return!0},ownKeys(o){D(r);var a=Reflect.ownKeys(o).filter(f=>{var h=n.get(f);return h===void 0||h.v!==R});for(var[u,c]of n)c.v!==R&&!(u in o)&&a.push(u);return a},setPrototypeOf(){Nr()}})}var xn,yn,$n,Sn;function Rt(){if(xn===void 0){xn=window,yn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;$n=Se(e,"firstChild").get,Sn=Se(e,"nextSibling").get,Wt(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wt(n)&&(n.__t=void 0)}}function Tt(t=""){return document.createTextNode(t)}function ee(t){return $n.call(t)}function fe(t){return Sn.call(t)}function Et(t,e){if(!T)return ee(t);var n=ee(m);return n===null&&(n=m.appendChild(Tt())),ae(n),n}function ls(t){t.textContent=""}function rt(t,e,n){return document.createElementNS(e??pr,t,void 0)}function Rn(t){var e=g,n=k;N(null),U(null);try{return t()}finally{N(e),U(n)}}function as(t){k===null&&(g===null&&Pr(),zr()),pe&&Ar()}function os(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Y(t,e){var n=k;n!==null&&(n.f&se)!==0&&(t|=se);var s={ctx:L,deps:null,nodes:null,f:t|E|I,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},r=s;if((t&Re)!==0)Ae!==null?Ae.push(s):ce.ensure().schedule(s);else if(e!==null){try{ze(s)}catch(l){throw F(s),l}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&(r.f&de)===0&&(r=r.first,(t&ne)!==0&&(t&Ue)!==0&&r!==null&&(r.f|=Ue))}if(r!==null&&(r.parent=n,n!==null&&os(r,n),g!==null&&(g.f&$)!==0&&(t&re)===0)){var i=g;(i.effects??=[]).push(r)}return s}function At(){return g!==null&&!H}function us(t){const e=Y(Ye,null);return x(e,S),e.teardown=t,e}function cs(t){as();var e=k.f,n=!g&&(e&W)!==0&&(e&ie)===0;if(n){var s=L;(s.e??=[]).push(t)}else return Tn(t)}function Tn(t){return Y(Re|Rr,t)}function hs(t){ce.ensure();const e=Y(re|de,t);return()=>{F(e)}}function fs(t){ce.ensure();const e=Y(re|de,t);return(n={})=>new Promise(s=>{n.outro?st(e,()=>{F(e),s(void 0)}):(F(e),s(void 0))})}function ps(t){return Y(Re,t)}function ds(t){return Y(_t|de,t)}function En(t,e=0){return Y(Ye|e,t)}function gs(t,e=[],n=[],s=[]){Xr(s,e,n,r=>{Y(Ye,()=>t(...r.map(D)))})}function ks(t,e=0){var n=Y(ne|e,t);return n}function _e(t){return Y(W|de,t)}function An(t){var e=t.teardown;if(e!==null){const n=pe,s=g;In(!0),N(null);try{e.call(null)}finally{In(n),N(s)}}}function zt(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&Rn(()=>{r.abort(K)});var s=n.next;(n.f&re)!==0?n.parent=null:F(n,e),n=s}}function _s(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&W)===0&&F(e),e=n}}function F(t,e=!0){var n=!1;(e||(t.f&Sr)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(zn(t.nodes.start,t.nodes.end),n=!0),x(t,Jt),zt(t,e&&!n),De(t,0);var s=t.nodes&&t.nodes.t;if(s!==null)for(const i of s)i.stop();An(t),t.f^=Jt,t.f|=B;var r=t.parent;r!==null&&r.first!==null&&Pn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function zn(t,e){for(;t!==null;){var n=t===e?null:fe(t);t.remove(),t=n}}function Pn(t){var e=t.parent,n=t.prev,s=t.next;n!==null&&(n.next=s),s!==null&&(s.prev=n),e!==null&&(e.first===t&&(e.first=s),e.last===t&&(e.last=n))}function st(t,e,n=!0){var s=[];Cn(t,s,!0);var r=()=>{n&&F(t),e&&e()},i=s.length;if(i>0){var l=()=>--i||r();for(var o of s)o.out(l)}else r()}function Cn(t,e,n){if((t.f&se)===0){t.f^=se;var s=t.nodes&&t.nodes.t;if(s!==null)for(const o of s)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var i=r.next,l=(r.f&Ue)!==0||(r.f&W)!==0&&(t.f&ne)!==0;Cn(r,e,l?n:!1),r=i}}}function vs(t,e){if(t.nodes)for(var n=t.nodes.start,s=t.nodes.end;n!==null;){var r=n===s?null:fe(n);e.append(n),n=r}}let it=!1,pe=!1;function In(t){pe=t}let g=null,H=!1;function N(t){g=t}let k=null;function U(t){k=t}let M=null;function ws(t){g!==null&&(M===null?M=[t]:M.push(t))}let z=null,C=0,O=null;function bs(t){O=t}let Ln=1,ve=0,we=ve;function Nn(t){we=t}function Mn(){return++Ln}function Oe(t){var e=t.f;if((e&E)!==0)return!0;if(e&$&&(t.f&=~ge),(e&G)!==0){for(var n=t.deps,s=n.length,r=0;r<s;r++){var i=n[r];if(Oe(i)&&vn(i),i.wv>t.wv)return!0}(e&I)!==0&&q===null&&x(t,S)}return!1}function On(t,e,n=!0){var s=t.reactions;if(s!==null&&!(M!==null&&$e.call(M,t)))for(var r=0;r<s.length;r++){var i=s[r];(i.f&$)!==0?On(i,e,!1):e===i&&(n?x(i,E):(i.f&S)!==0&&x(i,G),yt(i))}}function Dn(t){var e=z,n=C,s=O,r=g,i=M,l=L,o=H,a=we,u=t.f;z=null,C=0,O=null,g=(u&(W|re))===0?t:null,M=null,Te(t.ctx),H=!1,we=++ve,t.ac!==null&&(Rn(()=>{t.ac.abort(K)}),t.ac=null);try{t.f|=kt;var c=t.fn,f=c();t.f|=ie;var h=t.deps,d=b?.is_fork;if(z!==null){var p;if(d||De(t,C),h!==null&&C>0)for(h.length=C+z.length,p=0;p<z.length;p++)h[C+p]=z[p];else t.deps=h=z;if(At()&&(t.f&I)!==0)for(p=C;p<h.length;p++)(h[p].reactions??=[]).push(t)}else!d&&h!==null&&C<h.length&&(De(t,C),h.length=C);if(sn()&&O!==null&&!H&&h!==null&&(t.f&($|G|E))===0)for(p=0;p<O.length;p++)On(O[p],t);if(r!==null&&r!==t){if(ve++,r.deps!==null)for(let _=0;_<n;_+=1)r.deps[_].rv=ve;if(e!==null)for(const _ of e)_.rv=ve;O!==null&&(s===null?s=O:s.push(...O))}return(t.f&le)!==0&&(t.f^=le),f}catch(_){return an(_)}finally{t.f^=kt,z=e,C=n,O=s,g=r,M=i,Te(l),H=o,we=a}}function ms(t,e){let n=e.reactions;if(n!==null){var s=vr.call(n,t);if(s!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[s]=n[r],n.pop())}}if(n===null&&(e.f&$)!==0&&(z===null||!$e.call(z,e))){var i=e;(i.f&I)!==0&&(i.f^=I,i.f&=~ge),wt(i),rs(i),De(i,0)}}function De(t,e){var n=t.deps;if(n!==null)for(var s=e;s<n.length;s++)ms(t,n[s])}function ze(t){var e=t.f;if((e&B)===0){x(t,S);var n=k,s=it;k=t,it=!0;try{(e&(ne|Xt))!==0?_s(t):zt(t),An(t);var r=Dn(t);t.teardown=typeof r=="function"?r:null,t.wv=Ln;var i;kr&&Hr&&(t.f&E)!==0&&t.deps}finally{it=s,k=n}}}function D(t){var e=t.f,n=(e&$)!==0;if(g!==null&&!H){var s=k!==null&&(k.f&B)!==0;if(!s&&(M===null||!$e.call(M,t))){var r=g.deps;if((g.f&kt)!==0)t.rv<ve&&(t.rv=ve,z===null&&r!==null&&r[C]===t?C++:z===null?z=[t]:z.push(t));else{(g.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[g]:$e.call(i,g)||i.push(g)}}}if(pe&&he.has(t))return he.get(t);if(n){var l=t;if(pe){var o=l.v;return((l.f&S)===0&&l.reactions!==null||qn(l))&&(o=$t(l)),he.set(l,o),o}var a=(l.f&I)===0&&!H&&g!==null&&(it||(g.f&I)!==0),u=(l.f&ie)===0;Oe(l)&&(a&&(l.f|=I),vn(l)),a&&!u&&(wn(l),Bn(l))}if(q?.has(t))return q.get(t);if((t.f&le)!==0)throw t.v;return t.v}function Bn(t){if(t.f|=I,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&$)!==0&&(e.f&I)===0&&(wn(e),Bn(e))}function qn(t){if(t.v===R)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(he.has(e)||(e.f&$)!==0&&qn(e))return!0;return!1}function xs(t){var e=H;try{return H=!0,t()}finally{H=e}}const lt=Symbol("events"),ys=new Set,jn=new Set;let Fn=null;function Hn(t){var e=this,n=e.ownerDocument,s=t.type,r=t.composedPath?.()||[],i=r[0]||t.target;Fn=t;var l=0,o=Fn===t&&t[lt];if(o){var a=r.indexOf(o);if(a!==-1&&(e===document||e===window)){t[lt]=e;return}var u=r.indexOf(e);if(u===-1)return;a<=u&&(l=a)}if(i=r[l]||t.target,i!==e){Ge(t,"currentTarget",{configurable:!0,get(){return i||n}});var c=g,f=k;N(null),U(null);try{for(var h,d=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var _=i[lt]?.[s];_!=null&&(!i.disabled||t.target===i)&&_.call(i,t)}catch(y){h?d.push(y):h=y}if(t.cancelBubble||p===e||p===null)break;i=p}if(h){for(let y of d)queueMicrotask(()=>{throw y});throw h}}finally{t[lt]=e,delete t.currentTarget,N(c),U(f)}}}const $s=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Ss(t){return $s?.createHTML(t)??t}function Rs(t){var e=rt("template");return e.innerHTML=Ss(t.replaceAll("<!>","<!---->")),e.content}function Pe(t,e){var n=k;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function Ts(t,e){var n=(e&fr)!==0,s,r=!t.startsWith("<!>");return()=>{if(T)return Pe(m,null),m;s===void 0&&(s=Rs(r?t:"<!>"+t),s=ee(s));var i=n||yn?document.importNode(s,!0):s.cloneNode(!0);return Pe(i,i),i}}function Zn(t,e){if(T){var n=k;((n.f&ie)===0||n.nodes.end===null)&&(n.nodes.end=m),Xe();return}t!==null&&t.before(e)}const Es=["touchstart","touchmove"];function As(t){return Es.includes(t)}function Qn(t,e){return Gn(t,e)}function zs(t,e){Rt(),e.intro=e.intro??!1;const n=e.target,s=T,r=m;try{for(var i=ee(n);i&&(i.nodeType!==Ve||i.data!==Gt);)i=fe(i);if(!i)throw ye;Ke(!0),ae(i);const l=Gn(t,{...e,anchor:i});return Ke(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==ye&&console.warn("Failed to hydrate: ",l),e.recover===!1&&Ir(),Rt(),ls(n),Ke(!1),Qn(t,e)}finally{Ke(s),ae(r)}}const at=new Map;function Gn(t,{target:e,anchor:n,props:s={},events:r,context:i,intro:l=!0,transformError:o}){Rt();var a=void 0,u=fs(()=>{var c=n??e.appendChild(Tt());Wr(c,{pending:()=>{}},d=>{nn({});var p=L;if(i&&(p.c=i),r&&(s.$$events=r),T&&Pe(d,null),a=t(d,s)||{},T&&(k.nodes.end=m,m===null||m.nodeType!==Ve||m.data!==Vt))throw We(),ye;rn()},o);var f=new Set,h=d=>{for(var p=0;p<d.length;p++){var _=d[p];if(!f.has(_)){f.add(_);var y=As(_);for(const He of[e,document]){var P=at.get(He);P===void 0&&(P=new Map,at.set(He,P));var te=P.get(_);te===void 0?(He.addEventListener(_,Hn,{passive:y}),P.set(_,1)):P.set(_,te+1)}}}};return h(wr(ys)),jn.add(h),()=>{for(var d of f)for(const y of[e,document]){var p=at.get(y),_=p.get(d);--_==0?(y.removeEventListener(d,Hn),p.delete(d),p.size===0&&at.delete(y)):p.set(d,_)}jn.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return Pt.set(a,u),a}let Pt=new WeakMap;function Ps(t,e){const n=Pt.get(t);return n?(Pt.delete(t),n(e)):Promise.resolve()}function Cs(t,e,n=!1,s=!1,r=!1,i=!1){var l=t,o="";if(n){var a=t;T&&(l=ae(ee(a)))}gs(()=>{var u=k;if(o===(o=e()??"")){T&&Xe();return}if(n&&!T){u.nodes=null,a.innerHTML=o,o!==""&&Pe(ee(a),a.lastChild);return}if(u.nodes!==null&&(zn(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){if(T){m.data;for(var c=Xe(),f=c;c!==null&&(c.nodeType!==Ve||c.data!=="");)f=c,c=fe(c);if(c===null)throw We(),ye;Pe(m,f),l=ae(c);return}var h=s?dr:r?gr:void 0,d=rt(s?"svg":r?"math":"template",h);d.innerHTML=o;var p=s||r?d:d.content;if(Pe(ee(p),p.lastChild),s||r)for(;ee(p);)l.before(ee(p));else l.before(p)}})}function Is(t,e){ps(()=>{var n=t.getRootNode(),s=n.host?n:n.head??n.ownerDocument.head;if(!s.querySelector("#"+e.hash)){const r=rt("style");r.id=e.hash,r.textContent=e.code,s.appendChild(r)}})}function Yn(t,e,n,s){var r=s,i=!0,l=()=>(i&&(i=!1,r=s),r),o;o=t[e],o===void 0&&s!==void 0&&(o=l());var a;a=()=>{var h=t[e];return h===void 0?l():(i=!0,h)};var u=!1,c=_n(()=>(u=!1,a())),f=k;return(function(h,d){if(arguments.length>0){const p=d?D(c):h;return j(c,p),u=!0,r!==void 0&&(r=p),h}return pe&&u||(f.f&B)!==0?c.v:D(c)})}function Ls(t){return new Ns(t)}class Ns{#e;#n;constructor(e){var n=new Map,s=(i,l)=>{var o=ss(l,!1,!1);return n.set(i,o),o};const r=new Proxy({...e.props||{},$$events:{}},{get(i,l){return D(n.get(l)??s(l,Reflect.get(i,l)))},has(i,l){return l===Tr?!0:(D(n.get(l)??s(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return j(n.get(l)??s(l,o),o),Reflect.set(i,l,o)}});this.#n=(e.hydrate?zs:Qn)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&xt(),this.#e=r.$$events;for(const i of Object.keys(this.#n))i==="$set"||i==="$destroy"||i==="$on"||Ge(this,i,{get(){return this.#n[i]},set(l){this.#n[i]=l},enumerable:!0});this.#n.$set=i=>{Object.assign(r,i)},this.#n.$destroy=()=>{Ps(this.#n)}}$set(e){this.#n.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const s=(...r)=>n.call(this,...r);return this.#e[e].push(s),()=>{this.#e[e]=this.#e[e].filter(r=>r!==s)}}$destroy(){this.#n.$destroy()}}let Un;typeof HTMLElement=="function"&&(Un=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return r=>{const i=rt("slot");s!=="default"&&(i.name=s),Zn(r,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Ms(this);for(const s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=t(s),e.default=!0):e[s]=t(s));for(const s of this.attributes){const r=this.$$g_p(s.name);r in this.$$d||(this.$$d[r]=ot(r,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Ls({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=hs(()=>{En(()=>{this.$$r=!0;for(const s of Qe(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const r=ot(s,this.$$d[s],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,r)}this.$$r=!1})});for(const s in this.$$l)for(const r of this.$$l[s]){const i=this.$$c.$on(s,r);this.$$l_u.set(r,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ot(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Qe(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ot(t,e,n,s){const r=n[t]?.type;if(e=r==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!n[t])return e;if(s==="toAttribute")switch(r){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(r){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ms(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Os(t,e,n,s,r,i){let l=class extends Un{constructor(){super(t,n,r),this.$$p_d=e}static get observedAttributes(){return Qe(e).map(o=>(e[o].attribute||o).toLowerCase())}};return Qe(e).forEach(o=>{Ge(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=ot(o,a,e),this.$$d[o]=a;var u=this.$$c;if(u){var c=Se(u,o)?.get;c?u[o]=a:u.$set({[o]:a})}}})}),s.forEach(o=>{Ge(l.prototype,o,{get(){return this.$$c?.[o]}})}),t.element=l,l}function Ct(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var be=Ct();function Vn(t){be=t}var me={exec:()=>null};function v(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(A.caret,"$1"),n=n.replace(r,l),s},getRegex:()=>new RegExp(n,e)};return s}var Ds=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),A={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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Bs=/^(?:[ \t]*(?:\n|$))+/,qs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,js=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Be=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Fs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,It=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Kn=v(Wn).replace(/bull/g,It).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(),Hs=v(Wn).replace(/bull/g,It).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(),Lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Zs=/^[^\n]+/,Nt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qs=v(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Nt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gs=v(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,It).getRegex(),ut="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",Mt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ys=v("^ {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",Mt).replace("tag",ut).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xn=v(Lt).replace("hr",Be).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",ut).getRegex(),Us=v(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xn).getRegex(),Ot={blockquote:Us,code:qs,def:Qs,fences:js,heading:Fs,hr:Be,html:Ys,lheading:Kn,list:Gs,newline:Bs,paragraph:Xn,table:me,text:Zs},Jn=v("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Be).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",ut).getRegex(),Vs={...Ot,lheading:Hs,table:Jn,paragraph:v(Lt).replace("hr",Be).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jn).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",ut).getRegex()},Ws={...Ot,html:v(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mt).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:me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:v(Lt).replace("hr",Be).replace("heading",` *#{1,6} *[^
3
- ]`).replace("lheading",Kn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ks=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,er=/^( {2,}|\\)\n(?!\s*$)/,Js=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ce=/[\p{P}\p{S}]/u,ct=/[\s\p{P}\p{S}]/u,Dt=/[^\s\p{P}\p{S}]/u,ei=v(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ct).getRegex(),tr=/(?!~)[\p{P}\p{S}]/u,ti=/(?!~)[\s\p{P}\p{S}]/u,ni=/(?:[^\s\p{P}\p{S}]|~)/u,ri=v(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ds?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),nr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,si=v(nr,"u").replace(/punct/g,Ce).getRegex(),ii=v(nr,"u").replace(/punct/g,tr).getRegex(),rr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",li=v(rr,"gu").replace(/notPunctSpace/g,Dt).replace(/punctSpace/g,ct).replace(/punct/g,Ce).getRegex(),ai=v(rr,"gu").replace(/notPunctSpace/g,ni).replace(/punctSpace/g,ti).replace(/punct/g,tr).getRegex(),oi=v("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Dt).replace(/punctSpace/g,ct).replace(/punct/g,Ce).getRegex(),ui=v(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ce).getRegex(),ci="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",hi=v(ci,"gu").replace(/notPunctSpace/g,Dt).replace(/punctSpace/g,ct).replace(/punct/g,Ce).getRegex(),fi=v(/\\(punct)/,"gu").replace(/punct/g,Ce).getRegex(),pi=v(/^<(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(),di=v(Mt).replace("(?:-->|$)","-->").getRegex(),gi=v("^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",di).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ht=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ki=v(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ht).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sr=v(/^!?\[(label)\]\[(ref)\]/).replace("label",ht).replace("ref",Nt).getRegex(),ir=v(/^!?\[(ref)\](?:\[\])?/).replace("ref",Nt).getRegex(),_i=v("reflink|nolink(?!\\()","g").replace("reflink",sr).replace("nolink",ir).getRegex(),lr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Bt={_backpedal:me,anyPunctuation:fi,autolink:pi,blockSkip:ri,br:er,code:Xs,del:me,delLDelim:me,delRDelim:me,emStrongLDelim:si,emStrongRDelimAst:li,emStrongRDelimUnd:oi,escape:Ks,link:ki,nolink:ir,punctuation:ei,reflink:sr,reflinkSearch:_i,tag:gi,text:Js,url:me},vi={...Bt,link:v(/^!?\[(label)\]\((.*?)\)/).replace("label",ht).getRegex(),reflink:v(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ht).getRegex()},qt={...Bt,emStrongRDelimAst:ai,emStrongLDelim:ii,delLDelim:ui,delRDelim:hi,url:v(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",lr).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:v(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",lr).getRegex()},wi={...qt,br:v(er).replace("{2,}","*").getRegex(),text:v(qt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ft={normal:Ot,gfm:Vs,pedantic:Ws},qe={normal:Bt,gfm:qt,breaks:wi,pedantic:vi},bi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ar=t=>bi[t];function V(t,e){if(e){if(A.escapeTest.test(t))return t.replace(A.escapeReplace,ar)}else if(A.escapeTestNoEncode.test(t))return t.replace(A.escapeReplaceNoEncode,ar);return t}function or(t){try{t=encodeURI(t).replace(A.percentDecode,"%")}catch{return null}return t}function ur(t,e){let n=t.replace(A.findPipe,(i,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),s=n.split(A.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(A.slashPipe,"|");return s}function je(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s&&t.charAt(s-r-1)===e;)r++;return t.slice(0,s-r)}function mi(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function xi(t,e=0){let n=e,s="";for(let r of t)if(r===" "){let i=4-n%4;s+=" ".repeat(i),n+=i}else s+=r,n++;return s}function cr(t,e,n,s,r){let i=e.href,l=e.title||null,o=t[1].replace(r.other.outputLinkReplace,"$1");s.state.inLink=!0;let a={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:l,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}function yi(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
4
- `).map(i=>{let l=i.match(n.other.beginningSpace);if(l===null)return i;let[o]=l;return o.length>=r.length?i.slice(r.length):i}).join(`
5
- `)}var pt=class{options;rules;lexer;constructor(t){this.options=t||be}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:je(n,`
6
- `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],s=yi(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=je(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(n=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:je(e[0],`
7
- `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=je(e[0],`
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/2000/svg`,i=`http://www.w3.org/1998/Math/MathML`,a=Array.isArray,o=Array.prototype.indexOf,s=Array.prototype.includes,c=Array.from,l=Object.keys,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,ee=()=>{};function te(e){for(var t=0;t<e.length;t++)e[t]()}function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var _=1024,v=2048,ne=4096,re=8192,ie=16384,ae=32768,oe=1<<25,se=65536,ce=1<<19,le=1<<20,ue=65536,de=1<<21,fe=1<<22,pe=1<<23,me=Symbol(`$state`),he=Symbol(`legacy props`),y=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"};globalThis.document?.contentType;function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var b=!1;function ke(e){b=e}var x;function S(e){if(e===null)throw De(),t;return x=e}function Ae(){return S(P(x))}function je(e){if(b){if(P(x)!==null)throw De(),t;x=e}}function Me(e=1){if(b){for(var t=e,n=x;t--;)n=P(n);x=n}}function Ne(e=!0){for(var t=0,n=x;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=P(n);e&&n.remove(),n=i}}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,C=null;function ze(e){C=e}function Be(e,t=!1,n){C={p:C,i:!1,c:null,e:null,s:e,x:null,r:V,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=C,n=t.e;if(n!==null){t.e=null;for(var r of n)on(r)}return e!==void 0&&(t.x=e),t.i=!0,C=t.p,e??{}}function He(){return!Re||C!==null&&C.l===null}var Ue=[];function We(){var e=Ue;Ue=[],te(e)}function Ge(e){if(Ue.length===0&&!nt){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ke(){for(;Ue.length>0;)We()}function qe(e){var t=V;if(t===null)return R.f|=pe,e;if(!(t.f&32768)&&!(t.f&4))throw e;w(e,t)}function w(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(v|ne|_);function T(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?T(e,_):T(e,ne)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ue,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),T(e,_)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var E=new Set,D=null,O=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)T(n,v),this.schedule(n);for(n of t.m)T(n,ne),this.schedule(n)}}#p(){if(ot++>1e3&&(E.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),T(e,v),this.schedule(e);for(let e of this.#s)T(e,ne),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(D=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&E.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=D;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(E.add(o),o.#p()),E.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Le&&i&16777224?n.push(r):Nn(r)&&(i&16&&this.#s.add(r),Rn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),O?.set(e,e.v))}activate(){D=this}deactivate(){D=null,O=null}flush(){try{rt=!0,D=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,D=null,O=null,A.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),E.delete(this)}#g(){for(let c of E){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ft(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of E)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ge(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=g()).promise}static ensure(){if(D===null){let t=D=new e;rt||(E.add(D),nt||Ge(()=>{D===t&&t.flush()}))}return D}apply(){if(!Le||!this.is_fork&&E.size===1){O=null;return}O=new Map;for(let[e,[t]]of this.current)O.set(e,t);for(let n of E)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)O.has(e)||O.set(e,t)}}schedule(e){if(tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(it!==null&&t===V&&(Le||(R===null||!(R.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function lt(e){var t=nt;nt=!0;try{var n;for(e&&(D!==null&&!D.is_fork&&D.flush(),n=e());;){if(Ke(),D===null)return n;D.flush()}}finally{nt=t}}function ut(){try{be()}catch(e){w(e,tt)}}var k=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Nn(r)&&(k=new Set,Rn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yn(r),k?.size>0)){A.clear();for(let e of k){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)k.has(n)&&(k.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Rn(n)}}k.clear()}}k=null}}function ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(T(i,v),mt(i))}}function pt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(s.call(t,r))return!0;if(r.f&2&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){D.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),T(e,_);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){T(e,_);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=It(0),r;return()=>{nn()&&(q(n),dn(()=>(t===0&&(r=Vn(()=>e(()=>Bt(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Bt(n))})})))}}var vt=se|ce;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=b?x:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=_t(()=>(this.#m=It(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=V;t.b=this,t.f|=128,n(e)},this.parent=V.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=pn(()=>{if(b){let e=this.#t;Ae();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},vt),b&&(this.#e=x)}#g(){try{this.#a=mn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=mn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=mn(()=>e(this.#e)),Ge(()=>{var e=this.#c=document.createDocumentFragment(),t=Jt();e.append(t),this.#a=this.#x(()=>mn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,bn(this.#o,()=>{this.#o=null}),this.#b(D))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=mn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Sn(this.#a,e);let t=this.#n.pending;this.#o=mn(()=>t(this.#e))}else this.#b(D)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=V,n=R,r=C;H(this.#i),B(this.#i),ze(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return qe(e),null}finally{H(t),B(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&bn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ge(()=>{this.#d=!1,this.#m&&Rt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(I(this.#a),null),this.#o&&=(I(this.#o),null),this.#s&&=(I(this.#s),null),b&&(S(this.#t),Me(),S(Ne()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&bn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){w(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return mn(()=>{var t=V;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return w(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){w(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>w(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=He()?Tt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=V,s=St(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||w(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>w(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=V,t=R,n=C,r=D;return function(i=!0){H(e),B(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){H(null),B(null),ze(null),e&&D?.deactivate()}function wt(){var e=V,t=e.b,n=D,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Tt(e){var t=2|v,r=R!==null&&R.f&2?R:null;return V!==null&&(V.f|=ce),{ctx:C,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??V,ac:null}}function Et(e,t,r){let i=V;i===null&&ge();var a=void 0,o=It(n),s=!R,c=new Map;return un(()=>{var t=V,n=g();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=D;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(y),c.delete(r);else{for(let e of c.values())e.reject(y);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===y),!(n===y||t.f&16384)){if(r.activate(),n)o.f|=pe,Rt(o,n);else{o.f&8388608&&(o.f^=pe),Rt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(y)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),rn(()=>{for(let e of c.values())e.reject(y)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return t.equals=Ie,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=V;H(kt(e));try{e.f&=~ue,Ot(e),t=Fn(e)}finally{H(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Mn(),(!D?.is_fork||e.deps===null)&&(e.v=n,D?.capture(e,t,!0),e.deps===null))){T(e,_);return}L||(O===null?Ye(e):(nn()||D?.is_fork)&&O.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(y),t.teardown=ee,t.ac=null,Ln(t,0),gn(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Rn(t)}var Pt=new Set,A=new Map,Ft=!1;function It(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function j(e,t){let n=It(e,t);return En(n),n}function Lt(e,t=!1,n=!0){let r=It(e);return t||(r.equals=Ie),Re&&n&&C!==null&&C.l!==null&&(C.l.s??=[]).push(r),r}function M(e,t,n=!1){return R!==null&&(!z||R.f&131072)&&He()&&R.f&4325394&&(U===null||!s.call(U,e))&&Te(),Rt(e,n?Ht(t):t,at)}function Rt(e,t,n=null){if(!e.equals(t)){var r=e.v;L?A.set(e,t):A.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),O===null&&Ye(t)}e.wv=Mn(),Vt(e,v,n),He()&&V!==null&&V.f&1024&&!(V.f&96)&&(K===null?Dn([e]):K.push(e)),!i.is_fork&&Pt.size>0&&!Ft&&zt()}return t}function zt(){Ft=!1;for(let e of Pt)e.f&1024&&T(e,ne),Nn(e)&&Rn(e);Pt.clear()}function Bt(e){M(e,e.v+1)}function Vt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===V)){var l=(c&v)===0;if(l&&T(s,t),c&2){var u=s;O?.delete(u),c&65536||(c&512&&(s.f|=ue),Vt(u,ne,n))}else if(l){var d=s;c&16&&k!==null&&k.add(d),n===null?mt(d):n.push(d)}}}}function Ht(e){if(typeof e!=`object`||!e||me in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,i=a(e),o=j(0),s=null,c=An,l=e=>{if(An===c)return e();var t=R,n=An;B(null),jn(c);var r=e();return B(t),jn(n),r};return i&&r.set(`length`,j(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=j(n.value,s);return r.set(t,e),e}):M(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>j(n,s));r.set(t,e),Bt(o)}}else M(i,n),Bt(o);return!0},get(t,i,a){if(i===me)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||d(t,i)?.writable)&&(o=l(()=>j(Ht(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var u=q(o);return u===n?void 0:u}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===me)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||V!==null&&(!a||d(e,t)?.writable))&&(i===void 0&&(i=l(()=>j(a?Ht(e[t]):n,s)),r.set(t,i)),q(i)===n)?!1:a},set(e,t,a,c){var u=r.get(t),f=t in e;if(i&&t===`length`)for(var p=a;p<u.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>j(n,s)),r.set(p+``,m)):M(m,n)}if(u===void 0)(!f||d(e,t)?.writable)&&(u=l(()=>j(void 0,s)),M(u,Ht(a)),r.set(t,u));else{f=u.v!==n;var h=l(()=>Ht(a));M(u,h)}var ee=Reflect.getOwnPropertyDescriptor(e,t);if(ee?.set&&ee.set.call(c,a),!f){if(i&&typeof t==`string`){var te=r.get(`length`),g=Number(t);Number.isInteger(g)&&g>=te.v&&M(te,g+1)}Bt(o)}return!0},ownKeys(e){q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Ut,Wt,Gt,Kt;function qt(){if(Ut===void 0){Ut=window,Wt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Gt=d(t,`firstChild`).get,Kt=d(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function Jt(e=``){return document.createTextNode(e)}function N(e){return Gt.call(e)}function P(e){return Kt.call(e)}function Yt(e,t){if(!b)return N(e);var n=N(x);if(n===null)n=x.appendChild(Jt());else if(t&&n.nodeType!==3){var r=Jt();return n?.before(r),S(r),r}return t&&Qt(n),S(n),n}function Xt(e){e.textContent=``}function Zt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Qt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function $t(e){var t=R,n=V;B(null),H(null);try{return e()}finally{B(t),H(n)}}function en(e){V===null&&(R===null&&ye(e),ve()),L&&_e(e)}function tn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function F(e,t){var n=V;n!==null&&n.f&8192&&(e|=re);var r={ctx:C,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Rn(r)}catch(e){throw I(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=se))}if(i!==null&&(i.parent=n,n!==null&&tn(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function nn(){return R!==null&&!z}function rn(e){let t=F(8,null);return T(t,_),t.teardown=e,t}function an(e){en(`$effect`);var t=V.f;if(!R&&t&32&&!(t&32768)){var n=C;(n.e??=[]).push(e)}else return on(e)}function on(e){return F(4|le,e)}function sn(e){ct.ensure();let t=F(64|ce,e);return()=>{I(t)}}function cn(e){ct.ensure();let t=F(64|ce,e);return(e={})=>new Promise(n=>{e.outro?bn(t,()=>{I(t),n(void 0)}):(I(t),n(void 0))})}function ln(e){return F(4,e)}function un(e){return F(fe|ce,e)}function dn(e,t=0){return F(8|t,e)}function fn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{F(8,()=>e(...t.map(q)))})}function pn(e,t=0){return F(16|t,e)}function mn(e){return F(32|ce,e)}function hn(e){var t=e.teardown;if(t!==null){let e=L,n=R;Tn(!0),B(null);try{t.call(null)}finally{Tn(e),B(n)}}}function gn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&$t(()=>{e.abort(y)});var r=n.next;n.f&64?n.parent=null:I(n,t),n=r}}function _n(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||I(t),t=n}}function I(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vn(e.nodes.start,e.nodes.end),n=!0),T(e,oe),gn(e,t&&!n),Ln(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hn(e),e.f^=oe,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&yn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vn(e,t){for(;e!==null;){var n=e===t?null:P(e);e.remove(),e=n}}function yn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function bn(e,t,n=!0){var r=[];xn(e,r,!0);var i=()=>{n&&I(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xn(e,t,n){if(!(e.f&8192)){e.f^=re;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xn(i,t,o?n:!1),i=a}}}function Sn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:P(n);t.append(n),n=i}}var Cn=null,wn=!1,L=!1;function Tn(e){L=e}var R=null,z=!1;function B(e){R=e}var V=null;function H(e){V=e}var U=null;function En(e){R!==null&&(!Le||R.f&2)&&(U===null?U=[e]:U.push(e))}var W=null,G=0,K=null;function Dn(e){K=e}var On=1,kn=0,An=kn;function jn(e){An=e}function Mn(){return++On}function Nn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ue),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Nn(a)&&jt(a),a.wv>e.wv)return!0}t&512&&O===null&&T(e,_)}return!1}function Pn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&U!==null&&s.call(U,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Pn(a,t,!1):t===a&&(n?T(a,v):a.f&1024&&T(a,ne),mt(a))}}function Fn(e){var t=W,n=G,r=K,i=R,a=U,o=C,s=z,c=An,l=e.f;W=null,G=0,K=null,R=l&96?null:e,U=null,ze(e.ctx),z=!1,An=++kn,e.ac!==null&&($t(()=>{e.ac.abort(y)}),e.ac=null);try{e.f|=de;var u=e.fn,d=u();e.f|=ae;var f=e.deps,p=D?.is_fork;if(W!==null){var m;if(p||Ln(e,G),f!==null&&G>0)for(f.length=G+W.length,m=0;m<W.length;m++)f[G+m]=W[m];else e.deps=f=W;if(nn()&&e.f&512)for(m=G;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&G<f.length&&(Ln(e,G),f.length=G);if(He()&&K!==null&&!z&&f!==null&&!(e.f&6146))for(m=0;m<K.length;m++)Pn(K[m],e);if(i!==null&&i!==e){if(kn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=kn;if(t!==null)for(let e of t)e.rv=kn;K!==null&&(r===null?r=K:r.push(...K))}return e.f&8388608&&(e.f^=pe),d}catch(e){return qe(e)}finally{e.f^=de,W=t,G=n,K=r,R=i,U=a,ze(o),z=s,An=c}}function In(e,t){let n=t.reactions;if(n!==null){var r=o.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(W===null||!s.call(W,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~ue),Ye(a),Mt(a),Ln(a,0)}}function Ln(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)In(e,n[r])}function Rn(e){var t=e.f;if(!(t&16384)){T(e,_);var n=V,r=wn;V=e,wn=!0;try{t&16777232?_n(e):gn(e),hn(e);var i=Fn(e);e.teardown=typeof i==`function`?i:null,e.wv=On}finally{wn=r,V=n}}}function q(e){var t=(e.f&2)!=0;if(Cn?.add(e),R!==null&&!z&&!(V!==null&&V.f&16384)&&(U===null||!s.call(U,e))){var n=R.deps;if(R.f&2097152)e.rv<kn&&(e.rv=kn,W===null&&n!==null&&n[G]===e?G++:W===null?W=[e]:W.push(e));else{(R.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[R]:s.call(r,R)||r.push(R)}}if(L&&A.has(e))return A.get(e);if(t){var i=e;if(L){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Bn(i))&&(a=At(i)),A.set(i,a),a}var o=(i.f&512)==0&&!z&&R!==null&&(wn||(R.f&512)!=0),c=(i.f&ae)===0;Nn(i)&&(o&&(i.f|=512),jt(i)),o&&!c&&(Nt(i),zn(i))}if(O?.has(e))return O.get(e);if(e.f&8388608)throw e.v;return e.v}function zn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),zn(t))}function Bn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(A.has(t)||t.f&2&&Bn(t))return!0;return!1}function Vn(e){var t=z;try{return z=!0,e()}finally{z=t}}var Hn=Symbol(`events`),Un=new Set,Wn=new Set,Gn=null;function Kn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Gn=e;var o=0,s=Gn===e&&e[Hn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Hn]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){u(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=R,f=V;B(null),H(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var ee=a[Hn]?.[r];ee!=null&&(!a.disabled||e.target===a)&&ee.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Hn]=t,delete e.currentTarget,B(d),H(f)}}}var qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Jn(e){return qn?.createHTML(e)??e}function Yn(e){var t=Zt(`template`);return t.innerHTML=Jn(e.replaceAll(`<!>`,`<!---->`)),t.content}function Xn(e,t){var n=V;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Zn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(b)return Xn(x,null),x;i===void 0&&(i=Yn(a?e:`<!>`+e),n||(i=N(i)));var t=r||Wt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=N(t),s=t.lastChild;Xn(o,s)}else Xn(t,t);return t}}function Qn(e,t){if(b){var n=V;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=x),Ae();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var $n=[`touchstart`,`touchmove`];function er(e){return $n.includes(e)}function tr(e,t){return ir(e,t)}function nr(e,n){qt(),n.intro=n.intro??!1;let r=n.target,i=b,a=x;try{for(var o=N(r);o&&(o.nodeType!==8||o.data!==`[`);)o=P(o);if(!o)throw t;ke(!0),S(o);let i=ir(e,{...n,anchor:o});return ke(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),qt(),Xt(r),ke(!1),tr(e,n)}finally{ke(i),S(a)}}var rr=new Map;function ir(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:s=!0,transformError:l}){qt();var u=void 0,d=cn(()=>{var s=r??n.appendChild(Jt());yt(s,{pending:()=>{}},n=>{Be({});var r=C;if(o&&(r.c=o),a&&(i.$$events=a),b&&Xn(n,null),u=e(n,i)||{},b&&(V.nodes.end=x,x===null||x.nodeType!==8||x.data!==`]`))throw De(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=er(r);for(let e of[n,document]){var a=rr.get(e);a===void 0&&(a=new Map,rr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Kn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(c(Un)),Wn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=rr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Kn),t.delete(e),t.size===0&&rr.delete(r)):t.set(e,i)}Wn.delete(f),s!==r&&s.parentNode?.removeChild(s)}});return ar.set(u,d),u}var ar=new WeakMap;function or(e,t){let n=ar.get(e);return n?(ar.delete(e),n(t)):Promise.resolve()}function sr(e,n,a=!1,o=!1,s=!1,c=!1){var l=e,u=``;if(a){var d=e;b&&(l=S(N(d)))}fn(()=>{var e=V;if(u===(u=n()??``)){b&&Ae();return}if(a&&!b){e.nodes=null,d.innerHTML=u,u!==``&&Xn(N(d),d.lastChild);return}if(e.nodes!==null&&(vn(e.nodes.start,e.nodes.end),e.nodes=null),u!==``){if(b){for(var c=x.data,f=Ae(),p=f;f!==null&&(f.nodeType!==8||f.data!==``);)p=f,f=P(f);if(f===null)throw De(),t;Xn(x,p),l=S(f);return}var m=Zt(o?`svg`:s?`math`:`template`,o?r:s?i:void 0);m.innerHTML=u;var h=o||s?m:m.content;if(Xn(N(h),h.lastChild),o||s)for(;N(h);)l.before(N(h));else l.before(h)}})}function cr(e,t){ln(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Zt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function lr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Vn(r):r),s);let u;if(a){var f=me in e||he in e;u=d(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),u&&(i&&Se(t),u(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(u){var ee=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||ee||m)&&u(t?h():e),e):h()})}var te=!1,g=(n&1?Tt:Dt)(()=>(te=!1,h()));a&&q(g);var _=V;return(function(e,t){if(arguments.length>0){let n=t?q(g):i&&a?Ht(e):e;return M(g,n),te=!0,s!==void 0&&(s=n),e}return L&&te||_.f&16384?g.v:q(g)})}function ur(e){return new dr(e)}var dr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Lt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===he?!0:(q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return M(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?nr:tr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&lt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||u(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{or(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},fr;typeof HTMLElement==`function`&&(fr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Zt(`slot`);e!==`default`&&(n.name=e),Qn(t,n)}}let t={},n=mr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=pr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=ur({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=sn(()=>{dn(()=>{this.$$r=!0;for(let e of l(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=pr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=pr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return l(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function pr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function mr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function hr(e,t,n,r,i,a){let o=class extends fr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return l(t).map(e=>(t[e].attribute||e).toLowerCase())}};return l(t).forEach(e=>{u(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=pr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(d(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{u(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function gr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var _r=gr();function vr(e){_r=e}var yr={exec:()=>null};function J(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Y.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var br=(()=>{try{return!0}catch{return!1}})(),Y={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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},xr=/^(?:[ \t]*(?:\n|$))+/,Sr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Cr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,wr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Tr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Er=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Dr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Or=J(Dr).replace(/bull/g,Er).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(),kr=J(Dr).replace(/bull/g,Er).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(),Ar=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jr=/^[^\n]+/,Mr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Nr=J(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Mr).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pr=J(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Er).getRegex(),Fr=`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`,Ir=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lr=J(`^ {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`,Ir).replace(`tag`,Fr).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Rr=J(Ar).replace(`hr`,wr).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`,Fr).getRegex(),zr={blockquote:J(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Rr).getRegex(),code:Sr,def:Nr,fences:Cr,heading:Tr,hr:wr,html:Lr,lheading:Or,list:Pr,newline:xr,paragraph:Rr,table:yr,text:jr},Br=J(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,wr).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`,Fr).getRegex(),Vr={...zr,lheading:kr,table:Br,paragraph:J(Ar).replace(`hr`,wr).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Br).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`,Fr).getRegex()},Hr={...zr,html:J(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Ir).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:yr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:J(Ar).replace(`hr`,wr).replace(`heading`,` *#{1,6} *[^
3
+ ]`).replace(`lheading`,Or).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Ur=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gr=/^( {2,}|\\)\n(?!\s*$)/,Kr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,qr=/[\p{P}\p{S}]/u,Jr=/[\s\p{P}\p{S}]/u,Yr=/[^\s\p{P}\p{S}]/u,Xr=J(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Jr).getRegex(),Zr=/(?!~)[\p{P}\p{S}]/u,Qr=/(?!~)[\s\p{P}\p{S}]/u,$r=/(?:[^\s\p{P}\p{S}]|~)/u,ei=J(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,br?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),ti=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ni=J(ti,`u`).replace(/punct/g,qr).getRegex(),ri=J(ti,`u`).replace(/punct/g,Zr).getRegex(),ii=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,ai=J(ii,`gu`).replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,Jr).replace(/punct/g,qr).getRegex(),oi=J(ii,`gu`).replace(/notPunctSpace/g,$r).replace(/punctSpace/g,Qr).replace(/punct/g,Zr).getRegex(),si=J(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,Jr).replace(/punct/g,qr).getRegex(),ci=J(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,qr).getRegex(),li=J(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Yr).replace(/punctSpace/g,Jr).replace(/punct/g,qr).getRegex(),ui=J(/\\(punct)/,`gu`).replace(/punct/g,qr).getRegex(),di=J(/^<(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(),fi=J(Ir).replace(`(?:-->|$)`,`-->`).getRegex(),pi=J(`^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`,fi).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,hi=J(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,mi).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gi=J(/^!?\[(label)\]\[(ref)\]/).replace(`label`,mi).replace(`ref`,Mr).getRegex(),_i=J(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Mr).getRegex(),vi=J(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,gi).replace(`nolink`,_i).getRegex(),yi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bi={_backpedal:yr,anyPunctuation:ui,autolink:di,blockSkip:ei,br:Gr,code:Wr,del:yr,delLDelim:yr,delRDelim:yr,emStrongLDelim:ni,emStrongRDelimAst:ai,emStrongRDelimUnd:si,escape:Ur,link:hi,nolink:_i,punctuation:Xr,reflink:gi,reflinkSearch:vi,tag:pi,text:Kr,url:yr},xi={...bi,link:J(/^!?\[(label)\]\((.*?)\)/).replace(`label`,mi).getRegex(),reflink:J(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,mi).getRegex()},Si={...bi,emStrongRDelimAst:oi,emStrongLDelim:ri,delLDelim:ci,delRDelim:li,url:J(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,yi).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:J(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,yi).getRegex()},Ci={...Si,br:J(Gr).replace(`{2,}`,`*`).getRegex(),text:J(Si.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},wi={normal:zr,gfm:Vr,pedantic:Hr},Ti={normal:bi,gfm:Si,breaks:Ci,pedantic:xi},Ei={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Di=e=>Ei[e];function X(e,t){if(t){if(Y.escapeTest.test(e))return e.replace(Y.escapeReplace,Di)}else if(Y.escapeTestNoEncode.test(e))return e.replace(Y.escapeReplaceNoEncode,Di);return e}function Oi(e){try{e=encodeURI(e).replace(Y.percentDecode,`%`)}catch{return null}return e}function ki(e,t){let n=e.replace(Y.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Y.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Y.slashPipe,`|`);return n}function Ai(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 ji(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 Mi(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Ni(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Pi(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
4
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
5
+ `)}var Fi=class{options;rules;lexer;constructor(e){this.options=e||_r}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 e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:Ai(e,`
6
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Pi(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ai(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ai(t[0],`
7
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ai(t[0],`
8
8
  `).split(`
9
- `),s="",r="",i=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let u=o.join(`
10
- `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
11
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
12
- ${u}`:u,r=r?`${r}
13
- ${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=f,n.length===0)break;let h=i.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let d=h,p=d.raw+`
14
- `+n.join(`
15
- `),_=this.blockquote(p);i[i.length-1]=_,s=s.substring(0,s.length-d.raw.length)+_.raw,r=r.substring(0,r.length-d.text.length)+_.text;break}else if(h?.type==="list"){let d=h,p=d.raw+`
16
- `+n.join(`
17
- `),_=this.list(p);i[i.length-1]=_,s=s.substring(0,s.length-h.raw.length)+_.raw,r=r.substring(0,r.length-d.raw.length)+_.raw,n=p.substring(i.at(-1).raw.length).split(`
18
- `);continue}}return{type:"blockquote",raw:s,tokens:i,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let i=this.rules.other.listItemRegex(n),l=!1;for(;t;){let a=!1,u="",c="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;u=e[0],t=t.substring(u.length);let f=xi(e[2].split(`
19
- `,1)[0],e[1].length),h=t.split(`
20
- `,1)[0],d=!f.trim(),p=0;if(this.options.pedantic?(p=2,c=f.trimStart()):d?p=e[1].length+1:(p=f.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=f.slice(p),p+=e[1].length),d&&this.rules.other.blankLine.test(h)&&(u+=h+`
21
- `,t=t.substring(h.length+1),a=!0),!a){let _=this.rules.other.nextBulletRegex(p),y=this.rules.other.hrRegex(p),P=this.rules.other.fencesBeginRegex(p),te=this.rules.other.headingBeginRegex(p),He=this.rules.other.htmlBeginRegex(p),Ti=this.rules.other.blockquoteBeginRegex(p);for(;t;){let Ft=t.split(`
22
- `,1)[0],Ze;if(h=Ft,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),Ze=h):Ze=h.replace(this.rules.other.tabCharGlobal," "),P.test(h)||te.test(h)||He.test(h)||Ti.test(h)||_.test(h)||y.test(h))break;if(Ze.search(this.rules.other.nonSpaceChar)>=p||!h.trim())c+=`
23
- `+Ze.slice(p);else{if(d||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||P.test(f)||te.test(f)||y.test(f))break;c+=`
24
- `+h}d=!h.trim(),u+=Ft+`
25
- `,t=t.substring(Ft.length+1),f=Ze.slice(p)}}r.loose||(l?r.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(l=!0)),r.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),r.raw+=u}let o=r.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let a of r.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),a.tokens[0]?.type==="text"||a.tokens[0]?.type==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(a.raw);if(u){let c={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};a.checked=c.checked,r.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=c.raw+a.tokens[0].raw,a.tokens[0].text=c.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(c)):a.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):a.tokens.unshift(c)}}if(!r.loose){let u=a.tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=c}}if(r.loose)for(let a of r.items){a.loose=!0;for(let u of a.tokens)u.type==="text"&&(u.type="paragraph")}return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:s,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=ur(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
26
- `):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<n.length;l++)i.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:i.align[l]});for(let l of r)i.rows.push(ur(l,i.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[a]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===`
27
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=je(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=mi(e[2],"()");if(i===-2)return;if(i>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],r="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],r=i[3])}else r=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?s=s.slice(1):s=s.slice(1,-1)),cr(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[s.toLowerCase()];if(!r){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return cr(n,r,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,i,l,o=r,a=0,u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,e=e.slice(-1*t.length+r);(s=u.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(l=[...i].length,s[3]||s[4]){o+=l;continue}else if((s[5]||s[6])&&r%3&&!((r+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let c=[...s[0]][0].length,f=t.slice(0,r+s.index+c+l);if(Math.min(r,l)%2){let d=f.slice(1,-1);return{type:"em",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}let h=f.slice(2,-2);return{type:"strong",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,i,l,o=r,a=this.rules.inline.delRDelim;for(a.lastIndex=0,e=e.slice(-1*t.length+r);(s=a.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i||(l=[...i].length,l!==r))continue;if(s[3]||s[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let u=[...s[0]][0].length,c=t.slice(0,r+s.index+u+l),f=c.slice(r,-r);return{type:"del",raw:c,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},Z=class Ht{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||be,this.options.tokenizer=this.options.tokenizer||new pt,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:A,block:ft.normal,inline:qe.normal};this.options.pedantic?(n.block=ft.pedantic,n.inline=qe.pedantic):this.options.gfm&&(n.block=ft.gfm,this.options.breaks?n.inline=qe.breaks:n.inline=qe.gfm),this.tokenizer.rules=n}static get rules(){return{block:ft,inline:qe}}static lex(e,n){return new Ht(n).lex(e)}static lexInline(e,n){return new Ht(n).inlineTokens(e)}lex(e){e=e.replace(A.carriageReturn,`
28
- `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(A.tabCharGlobal," ").replace(A.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let l=n.at(-1);r.raw.length===1&&l!==void 0?l.raw+=`
29
- `:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
30
- `)?"":`
31
- `)+r.raw,l.text+=`
32
- `+r.text,this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
33
- `)?"":`
34
- `)+r.raw,l.text+=`
35
- `+r.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},n.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let l=1/0,o=e.slice(1),a;this.options.extensions.startBlock.forEach(u=>{a=u.call({lexer:this},o),typeof a=="number"&&a>=0&&(l=Math.min(l,a))}),l<1/0&&l>=0&&(i=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
36
- `)?"":`
37
- `)+r.raw,l.text+=`
38
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r),s=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
39
- `)?"":`
40
- `)+r.raw,l.text+=`
41
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(r);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let s=e,r=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)a.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)i=r[2]?r[2].length:0,s=s.slice(0,r.index+i)+"["+"a".repeat(r[0].length-i-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,o="";for(;e;){l||(o=""),l=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},e,n))?(e=e.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let c=n.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(e,s,o)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(e,s,o)){e=e.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),n.push(a);continue}let u=e;if(this.options.extensions?.startInline){let c=1/0,f=e.slice(1),h;this.options.extensions.startInline.forEach(d=>{h=d.call({lexer:this},f),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(u=e.substring(0,c+1))}if(a=this.tokenizer.inlineText(u)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),l=!0;let c=n.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):n.push(a);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}},dt=class{options;parser;constructor(t){this.options=t||be}space(t){return""}code({text:t,lang:e,escaped:n}){let s=(e||"").match(A.notSpaceStart)?.[0],r=t.replace(A.endingNewline,"")+`
42
- `;return s?'<pre><code class="language-'+V(s)+'">'+(n?r:V(r,!0))+`</code></pre>
43
- `:"<pre><code>"+(n?r:V(r,!0))+`</code></pre>
44
- `}blockquote({tokens:t}){return`<blockquote>
45
- ${this.parser.parse(t)}</blockquote>
46
- `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
47
- `}hr(t){return`<hr>
48
- `}list(t){let e=t.ordered,n=t.start,s="";for(let l=0;l<t.items.length;l++){let o=t.items[l];s+=this.listitem(o)}let r=e?"ol":"ul",i=e&&n!==1?' start="'+n+'"':"";return"<"+r+i+`>
49
- `+s+"</"+r+`>
50
- `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
51
- `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
52
- `}table(t){let e="",n="";for(let r=0;r<t.header.length;r++)n+=this.tablecell(t.header[r]);e+=this.tablerow({text:n});let s="";for(let r=0;r<t.rows.length;r++){let i=t.rows[r];n="";for(let l=0;l<i.length;l++)n+=this.tablecell(i[l]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
9
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
10
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
11
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
12
+ ${s}`:s,r=r?`${r}
13
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
14
+ `+e.join(`
15
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
16
+ `+e.join(`
17
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
18
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}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),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Mi(t[2].split(`
19
+ `,1)[0],t[1].length),l=e.split(`
20
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
21
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
22
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
23
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
24
+ `+l}u=!l.trim(),r+=p+`
25
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.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 e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ki(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
26
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(ki(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
27
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}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 e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Ai(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=ji(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Ni(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.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 e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Ni(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}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 n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Z=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_r,this.options.tokenizer=this.options.tokenizer||new Fi,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 t={other:Y,block:wi.normal,inline:Ti.normal};this.options.pedantic?(t.block=wi.pedantic,t.inline=Ti.pedantic):this.options.gfm&&(t.block=wi.gfm,this.options.breaks?t.inline=Ti.breaks:t.inline=Ti.gfm),this.tokenizer.rules=t}static get rules(){return{block:wi,inline:Ti}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Y.carriageReturn,`
28
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Y.tabCharGlobal,` `).replace(Y.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
29
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
30
+ `)?``:`
31
+ `)+r.raw,n.text+=`
32
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
33
+ `)?``:`
34
+ `)+r.raw,n.text+=`
35
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
36
+ `)?``:`
37
+ `)+r.raw,a.text+=`
38
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
39
+ `)?``:`
40
+ `)+r.raw,n.text+=`
41
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},Ii=class{options;parser;constructor(e){this.options=e||_r}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Y.notSpaceStart)?.[0],i=e.replace(Y.endingNewline,``)+`
42
+ `;return r?`<pre><code class="language-`+X(r)+`">`+(n?i:X(i,!0))+`</code></pre>
43
+ `:`<pre><code>`+(n?i:X(i,!0))+`</code></pre>
44
+ `}blockquote({tokens:e}){return`<blockquote>
45
+ ${this.parser.parse(e)}</blockquote>
46
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
47
+ `}hr(e){return`<hr>
48
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
49
+ `+r+`</`+i+`>
50
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
51
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
52
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
53
53
  <thead>
54
- `+e+`</thead>
55
- `+s+`</table>
56
- `}tablerow({text:t}){return`<tr>
57
- ${t}</tr>
58
- `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
59
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${V(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let s=this.parser.parseInline(n),r=or(t);if(r===null)return s;t=r;let i='<a href="'+t+'"';return e&&(i+=' title="'+V(e)+'"'),i+=">"+s+"</a>",i}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=or(t);if(r===null)return V(n);t=r;let i=`<img src="${t}" alt="${V(n)}"`;return e&&(i+=` title="${V(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:V(t.text)}},jt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},Q=class Zt{options;renderer;textRenderer;constructor(e){this.options=e||be,this.options.renderer=this.options.renderer||new dt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new jt}static parse(e,n){return new Zt(n).parse(e)}static parseInline(e,n){return new Zt(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let l=r,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=o||"";continue}}let i=r;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let s="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=o||"";continue}}let l=i;switch(l.type){case"escape":{s+=n.text(l);break}case"html":{s+=n.html(l);break}case"link":{s+=n.link(l);break}case"image":{s+=n.image(l);break}case"checkbox":{s+=n.checkbox(l);break}case"strong":{s+=n.strong(l);break}case"em":{s+=n.em(l);break}case"codespan":{s+=n.codespan(l);break}case"br":{s+=n.br(l);break}case"del":{s+=n.del(l);break}case"text":{s+=n.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},Fe=class{options;block;constructor(t){this.options=t||be}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Z.lex:Z.lexInline}provideParser(){return this.block?Q.parse:Q.parseInline}},$i=class{defaults=Ct();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Q;Renderer=dt;TextRenderer=jt;Lexer=Z;Tokenizer=pt;Hooks=Fe;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let r=s;for(let i of r.header)n=n.concat(this.walkTokens(i.tokens,e));for(let i of r.rows)for(let l of i)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let r=s;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{let l=r[i].flat(1/0);n=n.concat(this.walkTokens(l,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let i=e.renderers[r.name];i?e.renderers[r.name]=function(...l){let o=r.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[r.level];i?i.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new dt(this.defaults);for(let i in n.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,o=n.renderer[l],a=r[l];r[l]=(...u)=>{let c=o.apply(r,u);return c===!1&&(c=a.apply(r,u)),c||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new pt(this.defaults);for(let i in n.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,o=n.tokenizer[l],a=r[l];r[l]=(...u)=>{let c=o.apply(r,u);return c===!1&&(c=a.apply(r,u)),c}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new Fe;for(let i in n.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,o=n.hooks[l],a=r[l];Fe.passThroughHooks.has(i)?r[l]=u=>{if(this.defaults.async&&Fe.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await o.call(r,u);return a.call(r,f)})();let c=o.call(r,u);return a.call(r,c)}:r[l]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await o.apply(r,u);return f===!1&&(f=await a.apply(r,u)),f})();let c=o.apply(r,u);return c===!1&&(c=a.apply(r,u)),c}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,i=n.walkTokens;s.walkTokens=function(l){let o=[];return o.push(i.call(this,l)),r&&(o=o.concat(r.call(this,l))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Z.lex(t,e??this.defaults)}parser(t,e){return Q.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},i=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return i(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 e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let l=r.hooks?await r.hooks.preprocess(e):e,o=await(r.hooks?await r.hooks.provideLexer():t?Z.lex:Z.lexInline)(l,r),a=r.hooks?await r.hooks.processAllTokens(o):o;r.walkTokens&&await Promise.all(this.walkTokens(a,r.walkTokens));let u=await(r.hooks?await r.hooks.provideParser():t?Q.parse:Q.parseInline)(a,r);return r.hooks?await r.hooks.postprocess(u):u})().catch(i);try{r.hooks&&(e=r.hooks.preprocess(e));let l=(r.hooks?r.hooks.provideLexer():t?Z.lex:Z.lexInline)(e,r);r.hooks&&(l=r.hooks.processAllTokens(l)),r.walkTokens&&this.walkTokens(l,r.walkTokens);let o=(r.hooks?r.hooks.provideParser():t?Q.parse:Q.parseInline)(l,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(l){return i(l)}}}onError(t,e){return n=>{if(n.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+V(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},xe=new $i;function w(t,e){return xe.parse(t,e)}w.options=w.setOptions=function(t){return xe.setOptions(t),w.defaults=xe.defaults,Vn(w.defaults),w},w.getDefaults=Ct,w.defaults=be,w.use=function(...t){return xe.use(...t),w.defaults=xe.defaults,Vn(w.defaults),w},w.walkTokens=function(t,e){return xe.walkTokens(t,e)},w.parseInline=xe.parseInline,w.Parser=Q,w.parser=Q.parse,w.Renderer=dt,w.TextRenderer=jt,w.Lexer=Z,w.lexer=Z.lex,w.Tokenizer=pt,w.Hooks=Fe,w.parse=w,w.options,w.setOptions,w.use,w.walkTokens,w.parseInline,Q.parse,Z.lex;var Si=Ts('<div class="container-fluid svelte-6x087g"><div class="row svelte-6x087g"><div class="col-12 svelte-6x087g"><div id="markdown-content" class="markdown-body svelte-6x087g"></div></div></div></div>');const Ri={hash:"svelte-6x087g",code:`@charset "UTF-8";
54
+ `+t+`</thead>
55
+ `+r+`</table>
56
+ `}tablerow({text:e}){return`<tr>
57
+ ${e}</tr>
58
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
59
+ `}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>${X(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=Oi(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+X(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=Oi(e);if(i===null)return X(n);e=i;let a=`<img src="${e}" alt="${X(n)}"`;return t&&(a+=` title="${X(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:X(e.text)}},Li=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}},Q=class e{options;renderer;textRenderer;constructor(e){this.options=e||_r,this.options.renderer=this.options.renderer||new Ii,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Li}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Ri=class{options;block;constructor(e){this.options=e||_r}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?Z.lex:Z.lexInline}provideParser(){return this.block?Q.parse:Q.parseInline}},zi=new class{defaults=gr();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Q;Renderer=Ii;TextRenderer=Li;Lexer=Z;Tokenizer=Fi;Hooks=Ri;constructor(...e){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 e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Ii(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Fi(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ri;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Ri.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Ri.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Z.lex(e,t??this.defaults)}parser(e,t){return Q.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(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(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(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 n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?Z.lex:Z.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?Q.parse:Q.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?Z.lex:Z.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?Q.parse:Q.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+X(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function $(e,t){return zi.parse(e,t)}$.options=$.setOptions=function(e){return zi.setOptions(e),$.defaults=zi.defaults,vr($.defaults),$},$.getDefaults=gr,$.defaults=_r,$.use=function(...e){return zi.use(...e),$.defaults=zi.defaults,vr($.defaults),$},$.walkTokens=function(e,t){return zi.walkTokens(e,t)},$.parseInline=zi.parseInline,$.Parser=Q,$.parser=Q.parse,$.Renderer=Ii,$.TextRenderer=Li,$.Lexer=Z,$.lexer=Z.lex,$.Tokenizer=Fi,$.Hooks=Ri,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,Q.parse,Z.lex;var Bi=Zn(`<div class="container-fluid svelte-6x087g"><div class="row svelte-6x087g"><div class="col-12 svelte-6x087g"><div id="markdown-content" class="markdown-body svelte-6x087g"></div></div></div></div>`),Vi={hash:`svelte-6x087g`,code:`@charset "UTF-8";
61
61
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.markdown-body.svelte-6x087g {color:inherit;font-size:1rem;line-height:1.6;tab-size:4;}
62
62
  /*!
63
63
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
@@ -142,11 +142,11 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
142
142
  @media (min-width: 1200px) {
143
143
  }
144
144
  @media print {
145
- }`};function hr(t,e){nn(e,!0),Is(t,Ri);let n=Yn(e,"id",7,""),s=Yn(e,"data",7,"{}"),r=J("");function i(f){if(!f)return"";let h=f.replace(/\r\n?/g,`
146
- `);return h=h.replace(/\s\*\s+/g,`
147
- * `),h=h.replace(/([\.:])\s+\*\*/g,`$1
145
+ }`};function Hi(e,t){Be(t,!0),cr(e,Vi);let n=lr(t,`id`,7,``),r=lr(t,`data`,7,`{}`),i=j(``);function a(e){if(!e)return``;let t=e.replace(/\r\n?/g,`
146
+ `);return t=t.replace(/\s\*\s+/g,`
147
+ * `),t=t.replace(/([\.:])\s+\*\*/g,`$1
148
148
 
149
- **`),h=h.replace(/([^\n])\n\*\s/g,`$1
149
+ **`),t=t.replace(/([^\n])\n\*\s/g,`$1
150
150
 
151
- * `),h}w.setOptions({gfm:!0,breaks:!0,smartLists:!0}),cs(()=>{if(typeof s()=="string")try{s(JSON.parse(s()))}catch(f){console.error("error parsing data",f)}try{const f=i(s()?.content??""),h=w.parse(f);j(r,h,!0)}catch(f){console.error("error rendering markdown",f),j(r,s()?.content??"",!0)}});var l={get id(){return n()},set id(f=""){n(f),xt()},get data(){return s()},set data(f="{}"){s(f),xt()}},o=Si(),a=Et(o),u=Et(a),c=Et(u);return Cs(c,()=>D(r),!0),Je(c),Je(u),Je(a),Je(o),Zn(t,o),rn(l)}customElements.define("hb-markdown-viewer",Os(hr,{id:{},data:{}},[],[],{mode:"open"})),Qt.Component=hr,Object.defineProperty(Qt,Symbol.toStringTag,{value:"Module"})})(this["markdown-viewer"]=this["markdown-viewer"]||{});
152
- //# sourceMappingURL=main.iife.js.map
151
+ * `),t}$.setOptions({gfm:!0,breaks:!0,smartLists:!0}),an(()=>{if(typeof r()==`string`)try{r(JSON.parse(r()))}catch(e){console.error(`error parsing data`,e)}try{let e=a(r()?.content??``);M(i,$.parse(e),!0)}catch(e){console.error(`error rendering markdown`,e),M(i,r()?.content??``,!0)}});var o={get id(){return n()},set id(e=``){n(e),lt()},get data(){return r()},set data(e=`{}`){r(e),lt()}},s=Bi(),c=Yt(s),l=Yt(c),u=Yt(l);return sr(u,()=>q(i),!0),je(u),je(l),je(c),je(s),Qn(e,s),Ve(o)}customElements.define(`hb-markdown-viewer`,hr(Hi,{id:{},data:{}},[],[],{mode:`open`})),e.Component=Hi})(this[`markdown-viewer`]=this[`markdown-viewer`]||{});
152
+ //# sourceMappingURL=main.iife.js.map