Cannot fetch quotes. Try again later.
',d(e,"class","svelte-1ebnxd5")},m(n,o){w(n,e,o)},p:h,i:h,o:h,d(n){n&&b(e)}}}function lt(t){let e,n,o,l,c,r,s,i;function u(_,p){return _[1]?rt:ct}let m=u(t),a=m(t),f=t[9].desc&&ae(t);r=new X({props:{id:"randomize",$$slots:{default:[st]},$$scope:{ctx:t}}}),r.$on("click",t[6]);let g=!t[2]&&de(t);return{c(){e=v("blockquote"),a.c(),n=C(),o=v("div"),f&&f.c(),l=C(),c=v("div"),N(r.$$.fragment),s=C(),g&&g.c(),d(e,"class","svelte-1ebnxd5"),d(c,"class","control"),d(o,"id","btn-container"),d(o,"class","svelte-1ebnxd5")},m(_,p){w(_,e,p),a.m(e,null),w(_,n,p),w(_,o,p),f&&f.m(o,null),k(o,l),k(o,c),F(r,c,null),k(c,s),g&&g.m(c,null),i=!0},p(_,p){m===(m=u(_))&&a?a.p(_,p):(a.d(1),a=m(_),a&&(a.c(),a.m(e,null))),_[9].desc?f?(f.p(_,p),p&1&&$(f,1)):(f=ae(_),f.c(),$(f,1),f.m(o,l)):f&&(K(),q(f,1,1,()=>{f=null}),Y());const y={};p&1024&&(y.$$scope={dirty:p,ctx:_}),r.$set(y),_[2]?g&&(K(),q(g,1,1,()=>{g=null}),Y()):g?(g.p(_,p),p&4&&$(g,1)):(g=de(_),g.c(),$(g,1),g.m(c,null))},i(_){i||($(f),$(r.$$.fragment,_),$(g),i=!0)},o(_){q(f),q(r.$$.fragment,_),q(g),i=!1},d(_){_&&(b(e),b(n),b(o)),a.d(),f&&f.d(),E(r),g&&g.d()}}}function ct(t){let e,n=t[9].title+"",o,l,c,r=t[9].desc&&fe(t);return{c(){e=v("p"),o=L(n),l=C(),r&&r.c(),c=Ie(),d(e,"id","title"),d(e,"class","svelte-1ebnxd5")},m(s,i){w(s,e,i),k(e,o),w(s,l,i),r&&r.m(s,i),w(s,c,i)},p(s,i){i&1&&n!==(n=s[9].title+"")&&P(o,n),s[9].desc?r?r.p(s,i):(r=fe(s),r.c(),r.m(c.parentNode,c)):r&&(r.d(1),r=null)},d(s){s&&(b(e),b(l),b(c)),r&&r.d(s)}}}function rt(t){let e,n,o=t[9].title+"",l,c,r,s,i,u=t[9].desc+"",m;return{c(){e=v("p"),n=L('"'),l=L(o),c=L('"'),r=C(),s=v("p"),i=L("- "),m=L(u),d(e,"id","text"),d(e,"class","svelte-1ebnxd5"),d(s,"id","author"),d(s,"class","svelte-1ebnxd5")},m(a,f){w(a,e,f),k(e,n),k(e,l),k(e,c),w(a,r,f),w(a,s,f),k(s,i),k(s,m)},p(a,f){f&1&&o!==(o=a[9].title+"")&&P(l,o),f&1&&u!==(u=a[9].desc+"")&&P(m,u)},d(a){a&&(b(e),b(r),b(s))}}}function fe(t){let e,n=t[9].desc+"",o;return{c(){e=v("p"),o=L(n),d(e,"id","desc"),d(e,"class","svelte-1ebnxd5")},m(l,c){w(l,e,c),k(e,o)},p(l,c){c&1&&n!==(n=l[9].desc+"")&&P(o,n)},d(l){l&&b(e)}}}function ae(t){let e,n,o,l,c;return n=new ue({props:{id:"tweet-quote",icon:Je,href:t[4](t[9].desc,t[9].title),alt:"Twitter"}}),l=new ue({props:{id:"share-quote",icon:Xe,href:t[5](t[9].desc,t[9].title),alt:"Tumblr"}}),{c(){e=v("div"),N(n.$$.fragment),o=C(),N(l.$$.fragment)},m(r,s){w(r,e,s),F(n,e,null),k(e,o),F(l,e,null),c=!0},p(r,s){const i={};s&1&&(i.href=r[4](r[9].desc,r[9].title)),n.$set(i);const u={};s&1&&(u.href=r[5](r[9].desc,r[9].title)),l.$set(u)},i(r){c||($(n.$$.fragment,r),$(l.$$.fragment,r),c=!0)},o(r){q(n.$$.fragment,r),q(l.$$.fragment,r),c=!1},d(r){r&&b(e),E(n),E(l)}}}function st(t){let e,n;return{c(){e=v("img"),T(e.src,n=et)||d(e,"src",n),d(e,"alt","Random Quote")},m(o,l){w(o,e,l)},p:h,d(o){o&&b(e)}}}function de(t){let e,n,o,l;return e=new X({props:{id:"previous-quote",$$slots:{default:[it]},$$scope:{ctx:t}}}),e.$on("click",t[7]),o=new X({props:{id:"next-quote",$$slots:{default:[ut]},$$scope:{ctx:t}}}),o.$on("click",t[8]),{c(){N(e.$$.fragment),n=C(),N(o.$$.fragment)},m(c,r){F(e,c,r),w(c,n,r),F(o,c,r),l=!0},p(c,r){const s={};r&1024&&(s.$$scope={dirty:r,ctx:c}),e.$set(s);const i={};r&1024&&(i.$$scope={dirty:r,ctx:c}),o.$set(i)},i(c){l||($(e.$$.fragment,c),$(o.$$.fragment,c),l=!0)},o(c){q(e.$$.fragment,c),q(o.$$.fragment,c),l=!1},d(c){c&&b(n),E(e,c),E(o,c)}}}function it(t){let e,n;return{c(){e=v("img"),T(e.src,n=tt)||d(e,"src",n),d(e,"alt","Previous Quote")},m(o,l){w(o,e,l)},p:h,d(o){o&&b(e)}}}function ut(t){let e,n;return{c(){e=v("img"),T(e.src,n=nt)||d(e,"src",n),d(e,"alt","Next Quote")},m(o,l){w(o,e,l)},p:h,d(o){o&&b(e)}}}function ft(t){let e;return{c(){e=v("blockquote"),e.innerHTML='Fetching quote...
',d(e,"class","svelte-1ebnxd5")},m(n,o){w(n,e,o)},p:h,i:h,o:h,d(n){n&&b(e)}}}function at(t){let e,n,o,l={ctx:t,current:null,token:null,hasCatch:!0,pending:ft,then:lt,catch:ot,value:9,blocks:[,,,]};return J(n=t[0],l),{c(){e=v("section"),l.block.c(),d(e,"id","quote-box"),d(e,"class","svelte-1ebnxd5")},m(c,r){w(c,e,r),l.block.m(e,l.anchor=null),l.mount=()=>e,l.anchor=null,o=!0},p(c,[r]){t=c,l.ctx=t,r&1&&n!==(n=t[0])&&J(n,l)||ke(l,t,r)},i(c){o||($(l.block),o=!0)},o(c){for(let r=0;r<3;r+=1){const s=l.blocks[r];q(s)}o=!1},d(c){c&&b(e),l.block.d(),l.token=null,l=null}}}function dt(t,e,n){let{quote:o}=e,{villains:l=!1}=e,{randomOnly:c=!1}=e;const r=Be();function s(f,g){return l?`https://twitter.com/intent/tweet?hashtags=quotes&text=${encodeURIComponent(`"${g}" - ${f}`)}`:`https://twitter.com/intent/tweet?hashtags=quotes&text=${encodeURIComponent(`"${f}" - ${g}`)}`}function i(f,g){return l?`https://www.tumblr.com/widgets/share/tool?posttype=quote&tags=quotes&caption=${encodeURIComponent(f)} + &content=${encodeURIComponent(g)} + &canonicalUrl=https%3A%2F%2Fwww.tumblr.com%2Fbuttons&shareSource=tumblr_share_button`:`https://www.tumblr.com/widgets/share/tool?posttype=quote&tags=quotes&caption=${encodeURIComponent(g)} + &content=${encodeURIComponent(f)} + &canonicalUrl=https%3A%2F%2Fwww.tumblr.com%2Fbuttons&shareSource=tumblr_share_button`}const u=()=>r("randomQuote"),m=()=>r("previousQuote"),a=()=>r("nextQuote");return t.$$set=f=>{"quote"in f&&n(0,o=f.quote),"villains"in f&&n(1,l=f.villains),"randomOnly"in f&&n(2,c=f.randomOnly)},[o,l,c,r,s,i,u,m,a]}class mt extends R{constructor(e){super(),B(this,e,dt,at,z,{quote:0,villains:1,randomOnly:2})}}const ht="data:image/svg+xml,%3csvg%20viewBox='0%200%2017%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='%23fff'%20fill-rule='evenodd'%3e%3cpath%20d='m8.20003216%200c-4.5281696%200-8.20003216%203.67233045-8.20003216%208.2025137%200%203.6241466%202.34955472%206.6987785%205.60770169%207.7833978.40979259.0759104.5602814-.1779394.5602814-.3946059%200-.195566-.00765306-.84177-.01112588-1.5271516-2.28132027.4961843-2.76269151-.9677944-2.76269151-.9677944-.37300645-.948109-.91045728-1.2001576-.91045728-1.2001576-.74395492-.5091149.05607959-.4986933.05607959-.4986933.82344388.0578979%201.25703171.8453083%201.25703171.8453083.73134987%201.2540026%201.9182821.8914335%202.38621225.6819077.07357231-.5302154.28612167-.8920125.52060124-1.0968421-1.82130043-.2074672-3.73598109-.9107972-3.73598109-4.05374848%200-.89548638.32033536-1.62725057.84492391-2.20166134-.08514837-.20663091-.36580356-1.04087425.07942464-2.17071817%200%200%20.68858276-.22046205%202.25559569.8408051.6540475-.18179917%201.35555686-.27289175%202.0524358-.27597964.69687893.00308789%201.39890278.09418047%202.05423654.27597964%201.5651479-1.06126715%202.252766-.8408051%202.252766-.8408051.4463215%201.12984392.1655376%201.96408726.0803893%202.17071817.5257461.57441077.8438949%201.30611063.8438949%202.20166134%200%203.15041368-1.9182821%203.84415838-3.74421295%204.04718668.29409628.2545575.55616545.7537654.55616545%201.5189817%200%201.0974854-.0095181%201.9808133-.0095181%202.2510031%200%20.2182748.1475948.4740546.5633041.3935122%203.2563462-1.0858415%205.6029426-4.1593798%205.6029426-7.7823041%200-4.53018325-3.6713481-8.2025137-8.19996784-8.2025137'/%3e%3cpath%20d='m3.07518929%2011.6824029c-.01787762.0408541-.08159856.0531168-.13950928.0251063-.05905999-.0268489-.09226129-.0826118-.07310669-.1236596.01755837-.0420803.08127932-.0538267.14021161-.025558.05918769.0267843.09289978.0830636.07240436.1241113m.40045868.3611685c-.03881997.0364008-.11473601.0194912-.16626186-.0380143-.05324977-.0573765-.06321015-.1340506-.02381554-.1710323.0400331-.0363363.11365058-.0193621.16702804.0380789.05324977.0580219.06359325.1342442.02298552.1710322m.27480455.4620452c-.04992964.0350455-.1315282.0021944-.18190478-.0709945-.04986579-.0731243-.04986579-.1608994.00108543-.1960739.05056812-.0351746.13088971-.0035497.18196863.0690583.04980194.0744151.04980194.1621902-.00121313.1980747m.46462657.5351695c-.0446302.0496962-.13963698.0364009-.209232-.0314957-.07112739-.0663476-.09098432-.1605121-.04622642-.2102728.04514099-.0498253.14072241-.03582.21082822.0314957.07068044.0662185.09226128.161093.04469405.2102728m.60036877.1807134c-.01960153.0644113-.11116048.0937127-.20335792.0663476-.09206974-.0282042-.15234286-.1037166-.1337629-.1688379.01915459-.0648632.11109663-.0953908.20399641-.0660894.09194204.0280751.15234286.1030065.13318826.1685797m.68337202.0766095c.00229855.0678966-.07591604.1241759-.17271058.1254021-.09736918.0021299-.17609455-.0527941-.17711613-.1195289%200-.068542.07642682-.124305.17373215-.1259185.09679454-.0019362.17609456.0526005.17609456.1200453m.67130462-.0260098c.01162045.0662185-.05567602.1342442-.15176823.1523155-.09449599.0174259-.18196862-.0234282-.19403602-.0890659-.01174815-.0678965.05682529-.1358576.15112974-.1534772.09628375-.0169096.18241557.0229119.19467451.0902276'%20fill-rule='nonzero'/%3e%3c/g%3e%3c/svg%3e";function gt(t){let e,n,o,l;return{c(){e=v("footer"),n=v("span"),n.textContent=`Copyright @ ${t[0]} ChiefWoods`,o=C(),l=v("a"),l.innerHTML=``,d(n,"class","made-by"),d(l,"class","github-link"),d(l,"href","https://github.com/ChiefWoods/random-quote-machine"),d(l,"target","_blank")},m(c,r){w(c,e,r),k(e,n),k(e,o),k(e,l)},p:h,i:h,o:h,d(c){c&&b(e)}}}function _t(t){return[new Date().getFullYear()]}class pt extends R{constructor(e){super(),B(this,e,_t,gt,z,{})}}function me(t,e,n){const o=t.slice();return o[2]=e[n].name,o[3]=e[n].fullName,o}function he(t){let e,n=t[3]+"",o,l;return{c(){e=v("option"),o=L(n),e.__value=l=t[2],oe(e,e.__value)},m(c,r){w(c,e,r),k(e,o)},p(c,r){r&1&&n!==(n=c[3]+"")&&P(o,n),r&1&&l!==(l=c[2])&&(e.__value=l,oe(e,e.__value))},d(c){c&&b(e)}}}function bt(t){let e,n,o,l=re(t[0]),c=[];for(let r=0;r