${e}
`}br(){return this.options.xhtml?"An error occurred:
"+je(n.message+"",!0)+"";throw n}try{const n=lt.lex(s,e);if(e.walkTokens){if(e.async)return Promise.all(q.walkTokens(n,e.walkTokens)).then(()=>it.parse(n,e)).catch(r);q.walkTokens(n,e.walkTokens)}return it.parse(n,e)}catch(n){r(n)}}q.options=q.setOptions=function(s){return nt(q.defaults,s),sc(q.defaults),q};q.getDefaults=Ui;q.defaults=Vt;q.use=function(...s){const e=q.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(t=>{const r=nt({},t);if(r.async=q.defaults.async||r.async,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){const i=e.renderers[n.name];i?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=i.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[n.level]?e[n.level].unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),t.renderer){const n=q.defaults.renderer||new Tr;for(const i in t.renderer){const l=n[i];n[i]=(...a)=>{let o=t.renderer[i].apply(n,a);return o===!1&&(o=l.apply(n,a)),o}}r.renderer=n}if(t.tokenizer){const n=q.defaults.tokenizer||new Pr;for(const i in t.tokenizer){const l=n[i];n[i]=(...a)=>{let o=t.tokenizer[i].apply(n,a);return o===!1&&(o=l.apply(n,a)),o}}r.tokenizer=n}if(t.walkTokens){const n=q.defaults.walkTokens;r.walkTokens=function(i){let l=[];return l.push(t.walkTokens.call(this,i)),n&&(l=l.concat(n.call(this,i))),l}}q.setOptions(r)})};q.walkTokens=function(s,e){let t=[];for(const r of s)switch(t=t.concat(e.call(q,r)),r.type){case"table":{for(const n of r.header)t=t.concat(q.walkTokens(n.tokens,e));for(const n of r.rows)for(const i of n)t=t.concat(q.walkTokens(i.tokens,e));break}case"list":{t=t.concat(q.walkTokens(r.items,e));break}default:q.defaults.extensions&&q.defaults.extensions.childTokens&&q.defaults.extensions.childTokens[r.type]?q.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(q.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(q.walkTokens(r.tokens,e)))}return t};q.parseInline=function(s,e){if(typeof s>"u"||s===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof s!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected");e=nt({},q.defaults,e||{}),Li(e);try{const t=lt.lexInline(s,e);return e.walkTokens&&q.walkTokens(t,e.walkTokens),it.parseInline(t,e)}catch(t){if(t.message+=` -Please report this to https://github.com/markedjs/marked.`,e.silent)return"
An error occurred:
"+je(t.message+"",!0)+"";throw t}};q.Parser=it;q.parser=it.parse;q.Renderer=Tr;q.TextRenderer=Ni;q.Lexer=lt;q.lexer=lt.lex;q.Tokenizer=Pr;q.Slugger=$r;q.parse=q;q.options;q.setOptions;q.use;q.walkTokens;q.parseInline;it.parse;lt.lex;const qi={};function vc(s){let e;return{c(){e=ae(s[1])},m(t,r){k(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:U,o:U,d(t){t&&y(e)}}}function wc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h6"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function yc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h5"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function kc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h4"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Oc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h3"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Sc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h2"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ac(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h1"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ec(s){let e,t,r,n;const i=[Ac,Sc,Oc,kc,yc,wc,vc],l=[];function a(o,c){return o[0]===1?0:o[0]===2?1:o[0]===3?2:o[0]===4?3:o[0]===5?4:o[0]===6?5:6}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function Pc(s,e,t){let r,{$$slots:n={},$$scope:i}=e,{depth:l}=e,{raw:a}=e,{text:o}=e;const{slug:c,getOptions:u}=ll(qi),f=u();return s.$$set=d=>{"depth"in d&&t(0,l=d.depth),"raw"in d&&t(1,a=d.raw),"text"in d&&t(3,o=d.text),"$$scope"in d&&t(4,i=d.$$scope)},s.$$.update=()=>{s.$$.dirty&8&&t(2,r=f.headerIds?f.headerPrefix+c(o):void 0)},[l,a,r,o,i,n]}class Tc extends ee{constructor(e){super(),X(this,e,Pc,Ec,Z,{depth:0,raw:1,text:3})}}function $c(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("p"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Cc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let Rc=class extends ee{constructor(e){super(),X(this,e,Cc,$c,Z,{})}};function xc(s){let e;const t=s[3].default,r=de(t,s,s[2],null);return{c(){r&&r.c()},m(n,i){r&&r.m(n,i),e=!0},p(n,[i]){r&&r.p&&(!e||i&4)&&pe(r,t,n,n[2],e?he(t,n[2],i,null):me(n[2]),null)},i(n){e||(S(r,n),e=!0)},o(n){A(r,n),e=!1},d(n){r&&r.d(n)}}}function Ic(s,e,t){let{$$slots:r={},$$scope:n}=e,{text:i}=e,{raw:l}=e;return s.$$set=a=>{"text"in a&&t(0,i=a.text),"raw"in a&&t(1,l=a.raw),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class jc extends ee{constructor(e){super(),X(this,e,Ic,xc,Z,{text:0,raw:1})}}function Fc(s){let e,t;return{c(){e=b("img"),Ae(e.src,t=s[0])||p(e,"src",t),p(e,"title",s[1]),p(e,"alt",s[2])},m(r,n){k(r,e,n)},p(r,[n]){n&1&&!Ae(e.src,t=r[0])&&p(e,"src",t),n&2&&p(e,"title",r[1]),n&4&&p(e,"alt",r[2])},i:U,o:U,d(r){r&&y(e)}}}function Mc(s,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:i=""}=e;return s.$$set=l=>{"href"in l&&t(0,r=l.href),"title"in l&&t(1,n=l.title),"text"in l&&t(2,i=l.text)},[r,n,i]}class Uc extends ee{constructor(e){super(),X(this,e,Mc,Fc,Z,{href:0,title:1,text:2})}}function Bc(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("a"),n&&n.c(),p(e,"href",s[0]),p(e,"title",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&1)&&p(e,"href",i[0]),(!t||l&2)&&p(e,"title",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Vc(s,e,t){let{$$slots:r={},$$scope:n}=e,{href:i=""}=e,{title:l=void 0}=e;return s.$$set=a=>{"href"in a&&t(0,i=a.href),"title"in a&&t(1,l=a.title),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class Dc extends ee{constructor(e){super(),X(this,e,Vc,Bc,Z,{href:0,title:1})}}function Lc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("em"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Nc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let qc=class extends ee{constructor(e){super(),X(this,e,Nc,Lc,Z,{})}};function zc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("del"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Hc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Jc extends ee{constructor(e){super(),X(this,e,Hc,zc,Z,{})}}function Gc(s){let e,t=s[0].replace(/`/g,"")+"",r;return{c(){e=b("code"),r=ae(t)},m(n,i){k(n,e,i),g(e,r)},p(n,[i]){i&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:U,o:U,d(n){n&&y(e)}}}function Qc(s,e,t){let{raw:r}=e;return s.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class Yc extends ee{constructor(e){super(),X(this,e,Qc,Gc,Z,{raw:0})}}function Wc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("strong"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Kc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Zc extends ee{constructor(e){super(),X(this,e,Kc,Wc,Z,{})}}function Xc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("table"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function eu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class tu extends ee{constructor(e){super(),X(this,e,eu,Xc,Z,{})}}function nu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("thead"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function ru(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class su extends ee{constructor(e){super(),X(this,e,ru,nu,Z,{})}}function iu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("tbody"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function lu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class ou extends ee{constructor(e){super(),X(this,e,lu,iu,Z,{})}}function au(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("tr"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function cu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class uu extends ee{constructor(e){super(),X(this,e,cu,au,Z,{})}}function fu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("td"),n&&n.c(),p(e,"align",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"align",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function du(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("th"),n&&n.c(),p(e,"align",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"align",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function hu(s){let e,t,r,n;const i=[du,fu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function pu(s,e,t){let{$$slots:r={},$$scope:n}=e,{header:i}=e,{align:l}=e;return s.$$set=a=>{"header"in a&&t(0,i=a.header),"align"in a&&t(1,l=a.align),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class mu extends ee{constructor(e){super(),X(this,e,pu,hu,Z,{header:0,align:1})}}function gu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ul"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function _u(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ol"),n&&n.c(),p(e,"start",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"start",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function bu(s){let e,t,r,n;const i=[_u,gu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function vu(s,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:i}=e,{start:l}=e;return s.$$set=a=>{"ordered"in a&&t(0,i=a.ordered),"start"in a&&t(1,l=a.start),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class wu extends ee{constructor(e){super(),X(this,e,vu,bu,Z,{ordered:0,start:1})}}function yu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("li"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function ku(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let Ou=class extends ee{constructor(e){super(),X(this,e,ku,yu,Z,{})}};function Su(s){let e;return{c(){e=b("hr")},m(t,r){k(t,e,r)},p:U,i:U,o:U,d(t){t&&y(e)}}}class Au extends ee{constructor(e){super(),X(this,e,null,Su,Z,{})}}function Eu(s){let e,t;return{c(){e=new nl(!1),t=ge(),e.a=t},m(r,n){e.m(s[0],r,n),k(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:U,o:U,d(r){r&&y(t),r&&e.d()}}}function Pu(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}let Tu=class extends ee{constructor(e){super(),X(this,e,Pu,Eu,Z,{text:0})}};function $u(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("blockquote"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Cu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Ru extends ee{constructor(e){super(),X(this,e,Cu,$u,Z,{})}}function xu(s){let e,t,r;return{c(){e=b("pre"),t=b("code"),r=ae(s[1]),p(e,"class",s[0])},m(n,i){k(n,e,i),g(e,t),g(t,r)},p(n,[i]){i&2&&Pe(r,n[1]),i&1&&p(e,"class",n[0])},i:U,o:U,d(n){n&&y(e)}}}function Iu(s,e,t){let{lang:r}=e,{text:n}=e;return s.$$set=i=>{"lang"in i&&t(0,r=i.lang),"text"in i&&t(1,n=i.text)},[r,n]}let ju=class extends ee{constructor(e){super(),X(this,e,Iu,xu,Z,{lang:0,text:1})}};function Fu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("br"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(i,l),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Mu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Uu extends ee{constructor(e){super(),X(this,e,Mu,Fu,Z,{})}}const Bu={heading:Tc,paragraph:Rc,text:jc,image:Uc,link:Dc,em:qc,strong:Zc,codespan:Yc,del:Jc,table:tu,tablehead:su,tablebody:ou,tablerow:uu,tablecell:mu,list:wu,orderedlistitem:null,unorderedlistitem:null,listitem:Ou,hr:Au,html:Tu,blockquote:Ru,code:ju,br:Uu},Vu={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function Du(s){let e,t;return e=new St({props:{tokens:s[0],renderers:s[1]}}),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},p(r,[n]){const i={};n&1&&(i.tokens=r[0]),n&2&&(i.renderers=r[1]),e.$set(i)},i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Lu(s,e,t){let r,n,i,l,{source:a=[]}=e,{renderers:o={}}=e,{options:c={}}=e,{isInline:u=!1}=e;const f=wn();let d,h,_;return il(qi,{slug:m=>n?n.slug(m):"",getOptions:()=>i}),vn(()=>{t(7,_=!0)}),s.$$set=m=>{"source"in m&&t(2,a=m.source),"renderers"in m&&t(3,o=m.renderers),"options"in m&&t(4,c=m.options),"isInline"in m&&t(5,u=m.isInline)},s.$$.update=()=>{s.$$.dirty&4&&t(8,r=Array.isArray(a)),s.$$.dirty&4&&(n=a?new $r:void 0),s.$$.dirty&16&&t(9,i={...Vu,...c}),s.$$.dirty&869&&(r?t(0,d=a):(t(6,h=new lt(i)),t(0,d=u?h.inlineTokens(a):h.lex(a)),f("parsed",{tokens:d}))),s.$$.dirty&8&&t(1,l={...Bu,...o}),s.$$.dirty&385&&_&&!r&&f("parsed",{tokens:d})},[d,l,a,o,c,u,h,_,r,i]}class zi extends ee{constructor(e){super(),X(this,e,Lu,Du,Z,{source:2,renderers:3,options:4,isInline:5})}}function Nu(s){let e,t,r,n,i,l,a,o,c;return{c(){e=b("div"),t=b("div"),r=b("button"),r.textContent="Copy code",n=$(),i=b("pre"),l=b("code"),a=ae(s[0]),p(r,"class","svelte-hssbda"),p(t,"class","copycode svelte-hssbda"),p(i,"class","svelte-hssbda"),rt(e,"position","relative")},m(u,f){k(u,e,f),g(e,t),g(t,r),g(e,n),g(e,i),g(i,l),g(l,a),o||(c=L(r,"click",s[1]),o=!0)},p(u,[f]){f&1&&Pe(a,u[0])},i:U,o:U,d(u){u&&y(e),o=!1,c()}}}function qu(s,e,t){let{text:r}=e;const n=async()=>{try{await navigator.clipboard.writeText(r)}catch(i){console.error("Error copying text: ",i)}};return s.$$set=i=>{"text"in i&&t(0,r=i.text)},[r,n]}class zu extends ee{constructor(e){super(),X(this,e,qu,Nu,Z,{text:0})}}function Hu(s){let e,t;return{c(){e=b("div"),t=ae(s[0]),rt(e,"position","relative")},m(r,n){k(r,e,n),g(e,t)},p(r,[n]){n&1&&Pe(t,r[0])},i:U,o:U,d(r){r&&y(e)}}}function Ju(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Gu extends ee{constructor(e){super(),X(this,e,Ju,Hu,Z,{text:0})}}function Qu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("em"),n&&n.c(),p(e,"class","svelte-djznuz")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Yu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Hi extends ee{constructor(e){super(),X(this,e,Yu,Qu,Z,{})}}function Wu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ul"),n&&n.c(),p(e,"class","svelte-1dicnom")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ku(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ol"),n&&n.c(),p(e,"start",s[1]),p(e,"class","svelte-1dicnom")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"start",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Zu(s){let e,t,r,n;const i=[Ku,Wu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function Xu(s,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:i}=e,{start:l}=e;return s.$$set=a=>{"ordered"in a&&t(0,i=a.ordered),"start"in a&&t(1,l=a.start),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class Ji extends ee{constructor(e){super(),X(this,e,Xu,Zu,Z,{ordered:0,start:1})}}function ef(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("li"),n&&n.c(),p(e,"class","svelte-fm7yqp")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function tf(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Gi extends ee{constructor(e){super(),X(this,e,tf,ef,Z,{})}}function nf(s){let e,t=s[0].replace(/`/g,"")+"",r;return{c(){e=b("code"),r=ae(t),p(e,"class","svelte-we39e")},m(n,i){k(n,e,i),g(e,r)},p(n,[i]){i&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:U,o:U,d(n){n&&y(e)}}}function rf(s,e,t){let{raw:r}=e;return s.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class sf extends ee{constructor(e){super(),X(this,e,rf,nf,Z,{raw:0})}}function lf(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("p"),n&&n.c(),p(e,"class","svelte-jw73bw")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function of(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Qi extends ee{constructor(e){super(),X(this,e,of,lf,Z,{})}}function af(s){let e;return{c(){e=ae(s[0])},m(t,r){k(t,e,r)},p(t,[r]){r&1&&Pe(e,t[0])},i:U,o:U,d(t){t&&y(e)}}}function cf(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Yi extends ee{constructor(e){super(),X(this,e,cf,af,Z,{text:0})}}const uf="/assets/delete-f3f148b5.svg",ff="/assets/CopyIcon-6270aedf.svg",Zs="/assets/UserIcon-57b535eb.svg",Xs="/assets/RobotIcon-76293781.svg",df="/assets/send-8e88dbd9.svg",hf="/assets/wait-8f30b8f8.svg",pf="/assets/upload-icon-8c25e619.svg",mf="/assets/pdf-icon-d4c18e5d.svg",gf="modulepreload",_f=function(s){return"/"+s},ei={},bf=function(e,t,r){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=_f(i),i in ei)return;ei[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let u=n.length-1;u>=0;u--){const f=n[u];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":gf,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};async function vf(){const s=await bf(()=>import("./pdf-ea9598b5.js"),[]);return s.GlobalWorkerOptions.workerSrc="/workers/pdf.worker.min.mjs",s}function wf(s){const t=/^D:(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/.exec(s);if(t){const r=parseInt(t[1],10),n=parseInt(t[2],10)-1,i=parseInt(t[3],10),l=parseInt(t[4],10),a=parseInt(t[5],10),o=parseInt(t[6],10);return new Date(r,n,i,l,a,o).toISOString().split("T")[0]}return"Unknown Date"}async function yf(s){try{const e=new FileReader,t=await vf();return new Promise((r,n)=>{e.onload=async i=>{const l=new Uint8Array(i.target.result),o=await t.getDocument({data:l}).promise,c=o.numPages;let u="";for(let E=1;E<=c;E++){const O=await(await o.getPage(E)).getTextContent();u+=O.items.map(F=>"str"in F?F.str:"").join(" ")}const f=u.split(/\s+/).length,h=(await o.getMetadata()).info,_=s.name,m=h.Title||"Untitled",w=h.Author||"Unknown Author",v=h.CreationDate?wf(h.CreationDate):"Unknown Date";r(`The user uploaded a PDF titled "${m}" with a file name of "${_}". It has ${c} pages and ${f} words. File metadata includes Author: "${w}" and creation date: ${v}. The extracted text is as follows: ${u}`)},e.onerror=n,e.readAsArrayBuffer(s)})}catch(e){return console.error("Error processing PDF:",e),Promise.reject("Failed to load the PDF file.")}}function ti(s,e,t){const r=s.slice();return r[53]=e[t],r[55]=t,r}function kf(s){let e;return{c(){e=ae("SmoothGPT")},m(t,r){k(t,e,r)},p:U,d(t){t&&y(e)}}}function Of(s){let e=(s[3][s[2]].title||"SmoothGPT")+"",t;return{c(){t=ae(e)},m(r,n){k(r,t,n)},p(r,n){n[0]&12&&e!==(e=(r[3][r[2]].title||"SmoothGPT")+"")&&Pe(t,e)},d(r){r&&y(t)}}}function ni(s){let e,t;return e=new Ca({}),e.$on("settings-changed",ra),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},p:U,i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function ri(s){let e,t;return e=new Ia({}),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Sf(s){let e;return{c(){e=b("div"),e.innerHTML="
No conversation selected. Start a new conversation.
",p(e,"class","flex justify-center items-center h-full")},m(t,r){k(t,e,r)},p:U,i:U,o:U,d(t){t&&y(e)}}}function Af(s){let e,t,r,n=s[3][s[2]].history,i=[];for(let a=0;aAn error occurred:
"+je(t.message+"",!0)+"";throw t}};q.Parser=it;q.parser=it.parse;q.Renderer=Tr;q.TextRenderer=Ni;q.Lexer=lt;q.lexer=lt.lex;q.Tokenizer=Pr;q.Slugger=$r;q.parse=q;q.options;q.setOptions;q.use;q.walkTokens;q.parseInline;it.parse;lt.lex;const qi={};function vc(s){let e;return{c(){e=ae(s[1])},m(t,r){k(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:U,o:U,d(t){t&&y(e)}}}function wc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h6"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function yc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h5"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function kc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h4"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Oc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h3"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Sc(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h2"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ac(s){let e,t;const r=s[5].default,n=de(r,s,s[4],null);return{c(){e=b("h1"),n&&n.c(),p(e,"id",s[2])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&16)&&pe(n,r,i,i[4],t?he(r,i[4],l,null):me(i[4]),null),(!t||l&4)&&p(e,"id",i[2])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ec(s){let e,t,r,n;const i=[Ac,Sc,Oc,kc,yc,wc,vc],l=[];function a(o,c){return o[0]===1?0:o[0]===2?1:o[0]===3?2:o[0]===4?3:o[0]===5?4:o[0]===6?5:6}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function Pc(s,e,t){let r,{$$slots:n={},$$scope:i}=e,{depth:l}=e,{raw:a}=e,{text:o}=e;const{slug:c,getOptions:u}=ll(qi),f=u();return s.$$set=d=>{"depth"in d&&t(0,l=d.depth),"raw"in d&&t(1,a=d.raw),"text"in d&&t(3,o=d.text),"$$scope"in d&&t(4,i=d.$$scope)},s.$$.update=()=>{s.$$.dirty&8&&t(2,r=f.headerIds?f.headerPrefix+c(o):void 0)},[l,a,r,o,i,n]}class Tc extends ee{constructor(e){super(),X(this,e,Pc,Ec,Z,{depth:0,raw:1,text:3})}}function $c(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("p"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Cc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let Rc=class extends ee{constructor(e){super(),X(this,e,Cc,$c,Z,{})}};function xc(s){let e;const t=s[3].default,r=de(t,s,s[2],null);return{c(){r&&r.c()},m(n,i){r&&r.m(n,i),e=!0},p(n,[i]){r&&r.p&&(!e||i&4)&&pe(r,t,n,n[2],e?he(t,n[2],i,null):me(n[2]),null)},i(n){e||(S(r,n),e=!0)},o(n){A(r,n),e=!1},d(n){r&&r.d(n)}}}function Ic(s,e,t){let{$$slots:r={},$$scope:n}=e,{text:i}=e,{raw:l}=e;return s.$$set=a=>{"text"in a&&t(0,i=a.text),"raw"in a&&t(1,l=a.raw),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class jc extends ee{constructor(e){super(),X(this,e,Ic,xc,Z,{text:0,raw:1})}}function Fc(s){let e,t;return{c(){e=b("img"),Ae(e.src,t=s[0])||p(e,"src",t),p(e,"title",s[1]),p(e,"alt",s[2])},m(r,n){k(r,e,n)},p(r,[n]){n&1&&!Ae(e.src,t=r[0])&&p(e,"src",t),n&2&&p(e,"title",r[1]),n&4&&p(e,"alt",r[2])},i:U,o:U,d(r){r&&y(e)}}}function Mc(s,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:i=""}=e;return s.$$set=l=>{"href"in l&&t(0,r=l.href),"title"in l&&t(1,n=l.title),"text"in l&&t(2,i=l.text)},[r,n,i]}class Uc extends ee{constructor(e){super(),X(this,e,Mc,Fc,Z,{href:0,title:1,text:2})}}function Bc(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("a"),n&&n.c(),p(e,"href",s[0]),p(e,"title",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&1)&&p(e,"href",i[0]),(!t||l&2)&&p(e,"title",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Vc(s,e,t){let{$$slots:r={},$$scope:n}=e,{href:i=""}=e,{title:l=void 0}=e;return s.$$set=a=>{"href"in a&&t(0,i=a.href),"title"in a&&t(1,l=a.title),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class Dc extends ee{constructor(e){super(),X(this,e,Vc,Bc,Z,{href:0,title:1})}}function Lc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("em"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Nc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let qc=class extends ee{constructor(e){super(),X(this,e,Nc,Lc,Z,{})}};function zc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("del"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Hc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Jc extends ee{constructor(e){super(),X(this,e,Hc,zc,Z,{})}}function Gc(s){let e,t=s[0].replace(/`/g,"")+"",r;return{c(){e=b("code"),r=ae(t)},m(n,i){k(n,e,i),g(e,r)},p(n,[i]){i&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:U,o:U,d(n){n&&y(e)}}}function Qc(s,e,t){let{raw:r}=e;return s.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class Yc extends ee{constructor(e){super(),X(this,e,Qc,Gc,Z,{raw:0})}}function Wc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("strong"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Kc(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Zc extends ee{constructor(e){super(),X(this,e,Kc,Wc,Z,{})}}function Xc(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("table"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function eu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class tu extends ee{constructor(e){super(),X(this,e,eu,Xc,Z,{})}}function nu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("thead"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function ru(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class su extends ee{constructor(e){super(),X(this,e,ru,nu,Z,{})}}function iu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("tbody"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function lu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class ou extends ee{constructor(e){super(),X(this,e,lu,iu,Z,{})}}function au(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("tr"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function cu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class uu extends ee{constructor(e){super(),X(this,e,cu,au,Z,{})}}function fu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("td"),n&&n.c(),p(e,"align",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"align",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function du(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("th"),n&&n.c(),p(e,"align",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"align",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function hu(s){let e,t,r,n;const i=[du,fu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function pu(s,e,t){let{$$slots:r={},$$scope:n}=e,{header:i}=e,{align:l}=e;return s.$$set=a=>{"header"in a&&t(0,i=a.header),"align"in a&&t(1,l=a.align),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class mu extends ee{constructor(e){super(),X(this,e,pu,hu,Z,{header:0,align:1})}}function gu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ul"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function _u(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ol"),n&&n.c(),p(e,"start",s[1])},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"start",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function bu(s){let e,t,r,n;const i=[_u,gu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function vu(s,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:i}=e,{start:l}=e;return s.$$set=a=>{"ordered"in a&&t(0,i=a.ordered),"start"in a&&t(1,l=a.start),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class wu extends ee{constructor(e){super(),X(this,e,vu,bu,Z,{ordered:0,start:1})}}function yu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("li"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function ku(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}let Ou=class extends ee{constructor(e){super(),X(this,e,ku,yu,Z,{})}};function Su(s){let e;return{c(){e=b("hr")},m(t,r){k(t,e,r)},p:U,i:U,o:U,d(t){t&&y(e)}}}class Au extends ee{constructor(e){super(),X(this,e,null,Su,Z,{})}}function Eu(s){let e,t;return{c(){e=new nl(!1),t=ge(),e.a=t},m(r,n){e.m(s[0],r,n),k(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:U,o:U,d(r){r&&y(t),r&&e.d()}}}function Pu(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}let Tu=class extends ee{constructor(e){super(),X(this,e,Pu,Eu,Z,{text:0})}};function $u(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("blockquote"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Cu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Ru extends ee{constructor(e){super(),X(this,e,Cu,$u,Z,{})}}function xu(s){let e,t,r;return{c(){e=b("pre"),t=b("code"),r=ae(s[1]),p(e,"class",s[0])},m(n,i){k(n,e,i),g(e,t),g(t,r)},p(n,[i]){i&2&&Pe(r,n[1]),i&1&&p(e,"class",n[0])},i:U,o:U,d(n){n&&y(e)}}}function Iu(s,e,t){let{lang:r}=e,{text:n}=e;return s.$$set=i=>{"lang"in i&&t(0,r=i.lang),"text"in i&&t(1,n=i.text)},[r,n]}let ju=class extends ee{constructor(e){super(),X(this,e,Iu,xu,Z,{lang:0,text:1})}};function Fu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("br"),n&&n.c()},m(i,l){k(i,e,l),n&&n.m(i,l),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Mu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Uu extends ee{constructor(e){super(),X(this,e,Mu,Fu,Z,{})}}const Bu={heading:Tc,paragraph:Rc,text:jc,image:Uc,link:Dc,em:qc,strong:Zc,codespan:Yc,del:Jc,table:tu,tablehead:su,tablebody:ou,tablerow:uu,tablecell:mu,list:wu,orderedlistitem:null,unorderedlistitem:null,listitem:Ou,hr:Au,html:Tu,blockquote:Ru,code:ju,br:Uu},Vu={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function Du(s){let e,t;return e=new St({props:{tokens:s[0],renderers:s[1]}}),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},p(r,[n]){const i={};n&1&&(i.tokens=r[0]),n&2&&(i.renderers=r[1]),e.$set(i)},i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Lu(s,e,t){let r,n,i,l,{source:a=[]}=e,{renderers:o={}}=e,{options:c={}}=e,{isInline:u=!1}=e;const f=wn();let d,h,_;return il(qi,{slug:m=>n?n.slug(m):"",getOptions:()=>i}),vn(()=>{t(7,_=!0)}),s.$$set=m=>{"source"in m&&t(2,a=m.source),"renderers"in m&&t(3,o=m.renderers),"options"in m&&t(4,c=m.options),"isInline"in m&&t(5,u=m.isInline)},s.$$.update=()=>{s.$$.dirty&4&&t(8,r=Array.isArray(a)),s.$$.dirty&4&&(n=a?new $r:void 0),s.$$.dirty&16&&t(9,i={...Vu,...c}),s.$$.dirty&869&&(r?t(0,d=a):(t(6,h=new lt(i)),t(0,d=u?h.inlineTokens(a):h.lex(a)),f("parsed",{tokens:d}))),s.$$.dirty&8&&t(1,l={...Bu,...o}),s.$$.dirty&385&&_&&!r&&f("parsed",{tokens:d})},[d,l,a,o,c,u,h,_,r,i]}class zi extends ee{constructor(e){super(),X(this,e,Lu,Du,Z,{source:2,renderers:3,options:4,isInline:5})}}function Nu(s){let e,t,r,n,i,l,a,o,c;return{c(){e=b("div"),t=b("div"),r=b("button"),r.textContent="Copy code",n=$(),i=b("pre"),l=b("code"),a=ae(s[0]),p(r,"class","svelte-hssbda"),p(t,"class","copycode svelte-hssbda"),p(i,"class","svelte-hssbda"),rt(e,"position","relative")},m(u,f){k(u,e,f),g(e,t),g(t,r),g(e,n),g(e,i),g(i,l),g(l,a),o||(c=L(r,"click",s[1]),o=!0)},p(u,[f]){f&1&&Pe(a,u[0])},i:U,o:U,d(u){u&&y(e),o=!1,c()}}}function qu(s,e,t){let{text:r}=e;const n=async()=>{try{await navigator.clipboard.writeText(r)}catch(i){console.error("Error copying text: ",i)}};return s.$$set=i=>{"text"in i&&t(0,r=i.text)},[r,n]}class zu extends ee{constructor(e){super(),X(this,e,qu,Nu,Z,{text:0})}}function Hu(s){let e,t;return{c(){e=b("div"),t=ae(s[0]),rt(e,"position","relative")},m(r,n){k(r,e,n),g(e,t)},p(r,[n]){n&1&&Pe(t,r[0])},i:U,o:U,d(r){r&&y(e)}}}function Ju(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Gu extends ee{constructor(e){super(),X(this,e,Ju,Hu,Z,{text:0})}}function Qu(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("em"),n&&n.c(),p(e,"class","svelte-djznuz")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Yu(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Hi extends ee{constructor(e){super(),X(this,e,Yu,Qu,Z,{})}}function Wu(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ul"),n&&n.c(),p(e,"class","svelte-1dicnom")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Ku(s){let e,t;const r=s[3].default,n=de(r,s,s[2],null);return{c(){e=b("ol"),n&&n.c(),p(e,"start",s[1]),p(e,"class","svelte-1dicnom")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,l){n&&n.p&&(!t||l&4)&&pe(n,r,i,i[2],t?he(r,i[2],l,null):me(i[2]),null),(!t||l&2)&&p(e,"start",i[1])},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function Zu(s){let e,t,r,n;const i=[Ku,Wu],l=[];function a(o,c){return o[0]?0:1}return e=a(s),t=l[e]=i[e](s),{c(){t.c(),r=ge()},m(o,c){l[e].m(o,c),k(o,r,c),n=!0},p(o,[c]){let u=e;e=a(o),e===u?l[e].p(o,c):(ie(),A(l[u],1,1,()=>{l[u]=null}),le(),t=l[e],t?t.p(o,c):(t=l[e]=i[e](o),t.c()),S(t,1),t.m(r.parentNode,r))},i(o){n||(S(t),n=!0)},o(o){A(t),n=!1},d(o){l[e].d(o),o&&y(r)}}}function Xu(s,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:i}=e,{start:l}=e;return s.$$set=a=>{"ordered"in a&&t(0,i=a.ordered),"start"in a&&t(1,l=a.start),"$$scope"in a&&t(2,n=a.$$scope)},[i,l,n,r]}class Ji extends ee{constructor(e){super(),X(this,e,Xu,Zu,Z,{ordered:0,start:1})}}function ef(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("li"),n&&n.c(),p(e,"class","svelte-fm7yqp")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function tf(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Gi extends ee{constructor(e){super(),X(this,e,tf,ef,Z,{})}}function nf(s){let e,t=s[0].replace(/`/g,"")+"",r;return{c(){e=b("code"),r=ae(t),p(e,"class","svelte-we39e")},m(n,i){k(n,e,i),g(e,r)},p(n,[i]){i&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:U,o:U,d(n){n&&y(e)}}}function rf(s,e,t){let{raw:r}=e;return s.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class sf extends ee{constructor(e){super(),X(this,e,rf,nf,Z,{raw:0})}}function lf(s){let e,t;const r=s[1].default,n=de(r,s,s[0],null);return{c(){e=b("p"),n&&n.c(),p(e,"class","svelte-jw73bw")},m(i,l){k(i,e,l),n&&n.m(e,null),t=!0},p(i,[l]){n&&n.p&&(!t||l&1)&&pe(n,r,i,i[0],t?he(r,i[0],l,null):me(i[0]),null)},i(i){t||(S(n,i),t=!0)},o(i){A(n,i),t=!1},d(i){i&&y(e),n&&n.d(i)}}}function of(s,e,t){let{$$slots:r={},$$scope:n}=e;return s.$$set=i=>{"$$scope"in i&&t(0,n=i.$$scope)},[n,r]}class Qi extends ee{constructor(e){super(),X(this,e,of,lf,Z,{})}}function af(s){let e;return{c(){e=ae(s[0])},m(t,r){k(t,e,r)},p(t,[r]){r&1&&Pe(e,t[0])},i:U,o:U,d(t){t&&y(e)}}}function cf(s,e,t){let{text:r}=e;return s.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class Yi extends ee{constructor(e){super(),X(this,e,cf,af,Z,{text:0})}}const uf="/assets/delete-f3f148b5.svg",ff="/assets/CopyIcon-6270aedf.svg",Zs="/assets/UserIcon-57b535eb.svg",Xs="/assets/RobotIcon-76293781.svg",df="/assets/send-8e88dbd9.svg",hf="/assets/wait-8f30b8f8.svg",pf="/assets/upload-icon-8c25e619.svg",mf="/assets/pdf-icon-d4c18e5d.svg",gf="modulepreload",_f=function(s){return"/"+s},ei={},bf=function(e,t,r){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(i=>{if(i=_f(i),i in ei)return;ei[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let u=n.length-1;u>=0;u--){const f=n[u];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":gf,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())};async function vf(){const s=await bf(()=>import("./pdf-36ee9169.js"),[]);return s.GlobalWorkerOptions.workerSrc="/workers/pdf.worker.min.mjs",s}function wf(s){const t=/^D:(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/.exec(s);if(t){const r=parseInt(t[1],10),n=parseInt(t[2],10)-1,i=parseInt(t[3],10),l=parseInt(t[4],10),a=parseInt(t[5],10),o=parseInt(t[6],10);return new Date(r,n,i,l,a,o).toISOString().split("T")[0]}return"Unknown Date"}async function yf(s){try{const e=new FileReader,t=await vf();return new Promise((r,n)=>{e.onload=async i=>{const l=new Uint8Array(i.target.result),o=await t.getDocument({data:l}).promise,c=o.numPages;let u="";for(let E=1;E<=c;E++){const O=await(await o.getPage(E)).getTextContent();u+=O.items.map(F=>"str"in F?F.str:"").join(" ")}const f=u.split(/\s+/).length,h=(await o.getMetadata()).info,_=s.name,m=h.Title||"Untitled",w=h.Author||"Unknown Author",v=h.CreationDate?wf(h.CreationDate):"Unknown Date";r(`The user uploaded a PDF titled "${m}" with a file name of "${_}". It has ${c} pages and ${f} words. File metadata includes Author: "${w}" and creation date: ${v}. The extracted text is as follows: ${u}`)},e.onerror=n,e.readAsArrayBuffer(s)})}catch(e){return console.error("Error processing PDF:",e),Promise.reject("Failed to load the PDF file.")}}function ti(s,e,t){const r=s.slice();return r[53]=e[t],r[55]=t,r}function kf(s){let e;return{c(){e=ae("SmoothGPT")},m(t,r){k(t,e,r)},p:U,d(t){t&&y(e)}}}function Of(s){let e=(s[3][s[2]].title||"SmoothGPT")+"",t;return{c(){t=ae(e)},m(r,n){k(r,t,n)},p(r,n){n[0]&12&&e!==(e=(r[3][r[2]].title||"SmoothGPT")+"")&&Pe(t,e)},d(r){r&&y(t)}}}function ni(s){let e,t;return e=new Ca({}),e.$on("settings-changed",ra),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},p:U,i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function ri(s){let e,t;return e=new Ia({}),{c(){K(e.$$.fragment)},m(r,n){Y(e,r,n),t=!0},i(r){t||(S(e.$$.fragment,r),t=!0)},o(r){A(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Sf(s){let e;return{c(){e=b("div"),e.innerHTML="
No conversation selected. Start a new conversation.
",p(e,"class","flex justify-center items-center h-full")},m(t,r){k(t,e,r)},p:U,i:U,o:U,d(t){t&&y(e)}}}function Af(s){let e,t,r,n=s[3][s[2]].history,i=[];for(let a=0;ait?a:nt*8-7,mt=gt&-8;let At=0,bt=0;for(;ut >8,l[h-2]=l[h-2]*p+n*w>>8,l[h-1]=l[h-1]*p+a*w>>8}}}function Q(l,e,n){const a=l.length,i=1/255;for(let h=3;h>8]>>8:e[i]*h>>16}}function at(l,e,n,a,i,h,p,w,E,R,P){const L=!!h,x=L?h[0]:0,k=L?h[1]:0,D=L?h[2]:0,j=i==="Luminosity"?K:Q,$=Math.min(a,Math.ceil(1048576/n));for(let tt=0;ttv&&typeof a=="function",P=R?Date.now()+f:0;let L=0;const x=this.commonObjs,k=this.objs;let D;for(;;){if(i!==void 0&&w===i.nextBreakPoint)return i.breakIt(w,a),w;if(D=p[w],D!==y.OPS.dependency)this[D].apply(this,h[w]);else for(const j of h[w]){const J=j.startsWith("g_")?x:k;if(!J.has(j))return J.get(j,a),w}if(w++,w===E)return w;if(R&&++L>v){if(Date.now()>P)return a(),w;L=0}}}#t(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#t(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const n of e.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#e()}#e(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const n=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}}_scaleImage(e,n){const a=e.width,i=e.height;let h=Math.max(Math.hypot(n[0],n[1]),1),p=Math.max(Math.hypot(n[2],n[3]),1),w=a,E=i,R="prescale1",P,L;for(;h>2&&w>1||p>2&&E>1;){let x=w,k=E;h>2&&w>1&&(x=w>=16384?Math.floor(w/2)-1||1:Math.ceil(w/2),h/=w/x),p>2&&E>1&&(k=E>=16384?Math.floor(E/2)-1||1:Math.ceil(E)/2,p/=E/k),P=this.cachedCanvases.getCanvas(R,x,k),L=P.context,L.clearRect(0,0,x,k),L.drawImage(e,0,0,w,E,0,0,x,k),e=P.canvas,w=x,E=k,R=R==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:w,paintHeight:E}}_createMaskCanvas(e){const n=this.ctx,{width:a,height:i}=e,h=this.current.fillColor,p=this.current.patternFill,w=(0,z.getCurrentTransform)(n);let E,R,P,L;if((e.bitmap||e.data)&&e.count>1){const gt=e.bitmap||e.data.buffer;R=JSON.stringify(p?w:[w.slice(0,4),h]),E=this._cachedBitmapsMap.get(gt),E||(E=new Map,this._cachedBitmapsMap.set(gt,E));const mt=E.get(R);if(mt&&!p){const At=Math.round(Math.min(w[0],w[2])+w[4]),bt=Math.round(Math.min(w[1],w[3])+w[5]);return{canvas:mt,offsetX:At,offsetY:bt}}P=mt}P||(L=this.cachedCanvases.getCanvas("maskCanvas",a,i),X(L.context,e));let x=y.Util.transform(w,[1/a,0,0,-1/i,0,0]);x=y.Util.transform(x,[1,0,0,1,0,-i]);const[k,D,j,J]=y.Util.getAxialAlignedBoundingBox([0,0,a,i],x),$=Math.round(j-k)||1,tt=Math.round(J-D)||1,it=this.cachedCanvases.getCanvas("fillCanvas",$,tt),W=it.context,rt=k,nt=D;W.translate(-rt,-nt),W.transform(...x),P||(P=this._scaleImage(L.canvas,(0,z.getCurrentTransformInverse)(W)),P=P.img,E&&p&&E.set(R,P)),W.imageSmoothingEnabled=lt((0,z.getCurrentTransform)(W),e.interpolate),N(W,P,0,0,P.width,P.height,0,0,a,i),W.globalCompositeOperation="source-in";const ut=y.Util.transform((0,z.getCurrentTransformInverse)(W),[1,0,0,1,-rt,-nt]);return W.fillStyle=p?h.getPattern(n,this,ut,_.FILL):h,W.fillRect(0,0,a,i),E&&!p&&(this.cachedCanvases.delete("fillCanvas"),E.set(R,it.canvas)),{canvas:it.canvas,offsetX:Math.round(rt),offsetY:Math.round(nt)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=ht[e]}setLineJoin(e){this.ctx.lineJoin=ft[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,n){const a=this.ctx;a.setLineDash!==void 0&&(a.setLineDash(e),a.lineDashOffset=n)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[n,a]of e)switch(n){case"LW":this.setLineWidth(a);break;case"LC":this.setLineCap(a);break;case"LJ":this.setLineJoin(a);break;case"ML":this.setMiterLimit(a);break;case"D":this.setDash(a[0],a[1]);break;case"RI":this.setRenderingIntent(a);break;case"FL":this.setFlatness(a);break;case"Font":this.setFont(a[0],a[1]);break;case"CA":this.current.strokeAlpha=a;break;case"ca":this.current.fillAlpha=a,this.ctx.globalAlpha=a;break;case"BM":this.ctx.globalCompositeOperation=a;break;case"SMask":this.current.activeSMask=a?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(a);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,n=this.ctx.canvas.height,a="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(a,e,n);this.suspendedCtx=this.ctx,this.ctx=i.context;const h=this.ctx;h.setTransform(...(0,z.getCurrentTransform)(this.suspendedCtx)),H(this.suspendedCtx,h),I(h,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),H(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,a=this.suspendedCtx;ot(a,n,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(H(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),H(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,n,a,i,h,p){this.ctx.transform(e,n,a,i,h,p),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,n,a){const i=this.ctx,h=this.current;let p=h.x,w=h.y,E,R;const P=(0,z.getCurrentTransform)(i),L=P[0]===0&&P[3]===0||P[1]===0&&P[2]===0,x=L?a.slice(0):null;for(let k=0,D=0,j=e.length;k