@htmlbricks/hb-markdown-viewer 0.66.0 → 0.66.2

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