From ad2ba45dbf073978c390fc2d5979f977ea62635e Mon Sep 17 00:00:00 2001 From: Alex Hewitson Date: Sat, 26 Jun 2021 15:36:26 +0100 Subject: [PATCH] Pocus update 1 - Add adjusting background - Update settings to no longer refresh page --- public/.gitignore | 1 + public/build/bundle.css | 2 +- public/build/bundle.js | 2 +- public/build/bundle.js.map | 2 +- public/index.html | 2 +- src/App.svelte | 104 +++++++++++++++++++++++-------------- 6 files changed, 71 insertions(+), 42 deletions(-) create mode 100644 public/.gitignore diff --git a/public/.gitignore b/public/.gitignore new file mode 100644 index 0000000..e985853 --- /dev/null +++ b/public/.gitignore @@ -0,0 +1 @@ +.vercel diff --git a/public/build/bundle.css b/public/build/bundle.css index 2235448..e74193a 100644 --- a/public/build/bundle.css +++ b/public/build/bundle.css @@ -1 +1 @@ -:root{--clr-primary:#2cc09c;--clr-done:#5b54ca;--clr-todo:#ffcb5f;--clr-progress:#f26950;--clr-mute:#e9e9e9;--transition-time:500ms}main.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{display:flex;flex-direction:column;height:100%;width:100%;align-items:center;justify-content:center}main.svelte-j2gv4s>h1.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{color:var(--clr-done);text-transform:uppercase;font-size:4em;font-weight:100;opacity:1;transition:all var(--transition-time) ease}main.svelte-j2gv4s>h1.hidden.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{opacity:0}.timer.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{border-radius:50%;border:5px solid var(--clr-done);height:20rem;width:20rem;display:flex;justify-content:center;align-items:center;transition:all var(--transition-time) ease;position:relative;bottom:0}.timer--active.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{bottom:10rem}.timer--break.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{border-color:var(--clr-primary)}#start.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{position:absolute;padding-top:1rem;background-color:transparent;border:none;opacity:0;transition:opacity var(--transition-time) ease}#start.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s:hover{opacity:1}ul.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{padding:0;display:flex}li.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{display:flex;font-size:0.5rem;list-style-type:none;padding:1em;text-transform:uppercase;flex-direction:column;align-items:center;justify-content:center}li.svelte-j2gv4s span.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{display:block;font-size:4.5rem}li.svelte-j2gv4s #colon.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{font-size:2rem}.settings.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{width:100%;padding:1rem;position:fixed;bottom:0;border-top:1px solid var(--clr-mute);background-color:#ffffff;transition:bottom ease var(--transition-time)}.settings.svelte-j2gv4s>h2.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{text-align:center;margin:0;margin-bottom:0.75rem;color:var(--clr-done);text-transform:uppercase;font-weight:200}.settings.svelte-j2gv4s>form.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{display:flex;flex-wrap:wrap;position:relative;padding-bottom:3.5rem;justify-content:center}.settings.svelte-j2gv4s>form.svelte-j2gv4s>div.svelte-j2gv4s.svelte-j2gv4s{margin:0 1rem 0.5rem}.settings.svelte-j2gv4s>form.svelte-j2gv4s>div.svelte-j2gv4s>label.svelte-j2gv4s{text-align:center}.settings.svelte-j2gv4s>form.svelte-j2gv4s>div.svelte-j2gv4s>input.svelte-j2gv4s{width:100%}.settings.svelte-j2gv4s>form.svelte-j2gv4s>button.svelte-j2gv4s.svelte-j2gv4s{position:absolute;bottom:0;background-color:var(--clr-primary);border:none;padding:0.5rem 2rem;font-size:1.1rem;font-weight:500;border-radius:2rem;color:#ffffff}.settings__button.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s,.settings__close.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{cursor:pointer;position:fixed;margin-right:1rem;margin-bottom:1rem;padding:0;border:none;background-color:transparent;border-radius:50%;height:3.5rem;width:3.5rem;transition:background-color ease var(--transition-time)}.settings__button.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s:hover,.settings__close.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s:hover{background-color:var(--clr-mute)}.settings__button.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{bottom:0;right:0}.settings__close.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{right:0.5rem;top:0.5rem;bottom:none;position:absolute}.settings__hidden.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{bottom:-40rem}.github.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s{color:#000000;cursor:pointer;position:fixed;margin-left:1rem;margin-bottom:1rem;padding:0;border:none;background-color:transparent;border-radius:50%;height:3.5rem;width:3.5rem;transition:background-color ease var(--transition-time);bottom:0;left:0}.github.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s.svelte-j2gv4s:hover{background-color:var(--clr-mute)}.fa-icon.svelte-1dof0an{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1dof0an{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1dof0an{transform:scale(1, -1)}.fa-spin.svelte-1dof0an{animation:svelte-1dof0an-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1dof0an{color:#fff}.fa-pulse.svelte-1dof0an{animation:svelte-1dof0an-fa-spin 1s infinite steps(8)}@keyframes svelte-1dof0an-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} \ No newline at end of file +:root{--clr-break:#2cc09c;--clr-pocus:#5b54ca;--clr-mute:#e9e9e9;--clr-mute-text:#b6b6b6;--transition-time:500ms}main.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{display:flex;flex-direction:column;height:100%;width:100%;align-items:center;justify-content:center}main.svelte-1jrpofp>h1.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{color:var(--clr-pocus);text-transform:uppercase;font-size:4em;font-weight:100;opacity:1;transition:all var(--transition-time) ease}main.svelte-1jrpofp>h1.hidden.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{opacity:0}.timer.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{border-radius:50%;height:20rem;width:20rem;display:flex;justify-content:center;align-items:center;transition:all var(--transition-time) ease;position:relative;bottom:0;background:conic-gradient(var(--clr-pocus) 100%, var(--clr-mute) 0)}.timer--active.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{bottom:10rem}.timer--break.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{border-color:var(--clr-break)}#start.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{position:absolute;padding-top:1rem;background-color:transparent;border:none;opacity:0;transition:opacity var(--transition-time) ease}#start.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp:hover{opacity:1}ul.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{padding:0;display:flex;background:#ffffff;width:97%;height:97%;align-items:center;justify-content:center;border-radius:50%}li.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{display:flex;font-size:0.5rem;list-style-type:none;padding:1em;text-transform:uppercase;flex-direction:column;align-items:center;justify-content:center}li.svelte-1jrpofp span.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{display:block;font-size:4.5rem}li.svelte-1jrpofp #colon.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{font-size:2rem}.settings.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{width:100%;padding:1rem;position:fixed;bottom:0;border-top:1px solid var(--clr-mute);background-color:#ffffff;transition:bottom ease var(--transition-time)}.settings.svelte-1jrpofp>h2.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{text-align:center;margin:0;margin-bottom:0.75rem;color:var(--clr-pocus);text-transform:uppercase;font-weight:200}.settings.svelte-1jrpofp>form.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{display:flex;flex-wrap:wrap;position:relative;justify-content:center;padding-bottom:1rem}.settings.svelte-1jrpofp>form.svelte-1jrpofp>div.svelte-1jrpofp.svelte-1jrpofp{margin:0 1rem 0.5rem;flex:1 1 0px}.settings.svelte-1jrpofp>form.svelte-1jrpofp>div.svelte-1jrpofp>label.svelte-1jrpofp{text-align:center;white-space:nowrap}.settings.svelte-1jrpofp>form.svelte-1jrpofp>div.svelte-1jrpofp>input.svelte-1jrpofp{width:100%}.settings.svelte-1jrpofp>form.svelte-1jrpofp>p.svelte-1jrpofp.svelte-1jrpofp{font-size:0.9rem;color:var(--clr-mute-text);position:absolute;bottom:-0.9rem}.settings__button.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp,.settings__close.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{cursor:pointer;position:fixed;margin-right:1rem;margin-bottom:1rem;padding:0;border:none;background-color:transparent;border-radius:50%;height:3.5rem;width:3.5rem;transition:background-color ease var(--transition-time)}.settings__button.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp:hover,.settings__close.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp:hover{background-color:var(--clr-mute)}.settings__button.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{bottom:0;right:0}.settings__close.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{right:0.5rem;top:0.5rem;bottom:none;position:absolute}.settings__hidden.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{bottom:-40rem}.github.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp{color:#000000;cursor:pointer;position:fixed;margin-left:1rem;margin-bottom:1rem;padding:0;border:none;background-color:transparent;border-radius:50%;height:3.5rem;width:3.5rem;transition:background-color ease var(--transition-time);bottom:0;left:0}.github.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp.svelte-1jrpofp:hover{background-color:var(--clr-mute)}.fa-icon.svelte-1dof0an{display:inline-block;fill:currentColor}.fa-flip-horizontal.svelte-1dof0an{transform:scale(-1, 1)}.fa-flip-vertical.svelte-1dof0an{transform:scale(1, -1)}.fa-spin.svelte-1dof0an{animation:svelte-1dof0an-fa-spin 1s 0s infinite linear}.fa-inverse.svelte-1dof0an{color:#fff}.fa-pulse.svelte-1dof0an{animation:svelte-1dof0an-fa-spin 1s infinite steps(8)}@keyframes svelte-1dof0an-fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} \ No newline at end of file diff --git a/public/build/bundle.js b/public/build/bundle.js index 9039b7b..d44674e 100644 --- a/public/build/bundle.js +++ b/public/build/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function s(){return Object.create(null)}function o(t){t.forEach(n)}function l(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function r(t,e,n,s){if(t){const o=c(t,e,n,s);return t[0](o)}}function c(t,n,s,o){return t[1]&&o?e(s.ctx.slice(),t[1](o(n))):s.ctx}function a(t,e,n,s,o,l,i){const r=function(t,e,n,s){if(t[2]&&s){const o=t[2](s(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let s=0;st.removeEventListener(e,n,s)}function y(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function k(t,e){for(const n in e)y(t,n,e[n])}function q(t){return""===t?null:+t}function x(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e){t.value=null==e?"":e}function w(t,e,n){t.classList[n?"add":"remove"](e)}let M;function S(t){M=t}const B=[],I=[],z=[],N=[],L=Promise.resolve();let T=!1;function E(t){z.push(t)}let C=!1;const A=new Set;function P(){if(!C){C=!0;do{for(let t=0;t{D.delete(t),s&&(n&&t.d(1),s())})),t.o(e)}}function F(t,e){const n={},s={},o={$$scope:1};let l=t.length;for(;l--;){const i=t[l],r=e[l];if(r){for(const t in i)t in r||(s[t]=1);for(const t in r)o[t]||(n[t]=r[t],o[t]=1);t[l]=r}else for(const t in i)o[t]=1}for(const t in s)t in n||(n[t]=void 0);return n}function G(t){t&&t.c()}function J(t,e,s,i){const{fragment:r,on_mount:c,on_destroy:a,after_update:u}=t.$$;r&&r.m(e,s),i||E((()=>{const e=c.map(n).filter(l);a?a.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(E)}function Q(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function V(t,e){-1===t.$$.dirty[0]&&(B.push(t),T||(T=!0,L.then(P)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=s.length?s[0]:n;return p.ctx&&r(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),f&&V(e,t)),n})):[],p.update(),f=!0,o(p.before_update),p.fragment=!!i&&i(p.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);p.fragment&&p.fragment.l(t),t.forEach(d)}else p.fragment&&p.fragment.c();n.intro&&K(e.$$.fragment),J(e,n.target,n.anchor,n.customElement),P()}S(u)}class Y{$destroy(){Q(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Z(n){let s,o,l=[{key:o="path-"+n[0]},n[1]],i={};for(let t=0;t{"id"in t&&n(0,s=t.id),"data"in t&&n(1,o=t.data)},[s,o]}class et extends Y{constructor(t){super(),X(this,t,tt,Z,i,{id:0,data:1})}}function nt(n){let s,o,l=[{key:o="polygon-"+n[0]},n[1]],i={};for(let t=0;t{"id"in t&&n(0,s=t.id),"data"in t&&n(1,o=t.data)},[s,o]}class ot extends Y{constructor(t){super(),X(this,t,st,nt,i,{id:0,data:1})}}function lt(e){let n;return{c(){n=m("g")},m(t,s){f(t,n,s),n.innerHTML=e[0]},p(t,[e]){1&e&&(n.innerHTML=t[0])},i:t,o:t,d(t){t&&d(n)}}}function it(t,e,n){let s,o=870711;let{data:l}=e;function i(t){if(!t||!t.raw)return null;let e=t.raw;const n={};return e=e.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,((t,e)=>{const s=(o+=1,`fa-${o.toString(16)}`);return n[e]=s,` id="${s}"`})),e=e.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,((t,e,s,o)=>{const l=e||o;return l&&n[l]?`#${n[l]}`:t})),e}return t.$$set=t=>{"data"in t&&n(1,l=t.data)},t.$$.update=()=>{2&t.$$.dirty&&n(0,s=i(l))},[s,l]}class rt extends Y{constructor(t){super(),X(this,t,it,lt,i,{data:1})}}function ct(t){let e,n,s,o;const l=t[13].default,i=r(l,t,t[12],null);return{c(){e=m("svg"),i&&i.c(),y(e,"version","1.1"),y(e,"class",n="fa-icon "+t[0]+" svelte-1dof0an"),y(e,"x",t[8]),y(e,"y",t[9]),y(e,"width",t[1]),y(e,"height",t[2]),y(e,"aria-label",t[11]),y(e,"role",s=t[11]?"img":"presentation"),y(e,"viewBox",t[3]),y(e,"style",t[10]),w(e,"fa-spin",t[4]),w(e,"fa-pulse",t[6]),w(e,"fa-inverse",t[5]),w(e,"fa-flip-horizontal","horizontal"===t[7]),w(e,"fa-flip-vertical","vertical"===t[7])},m(t,n){f(t,e,n),i&&i.m(e,null),o=!0},p(t,[r]){i&&i.p&&(!o||4096&r)&&a(i,l,t,t[12],r,null,null),(!o||1&r&&n!==(n="fa-icon "+t[0]+" svelte-1dof0an"))&&y(e,"class",n),(!o||256&r)&&y(e,"x",t[8]),(!o||512&r)&&y(e,"y",t[9]),(!o||2&r)&&y(e,"width",t[1]),(!o||4&r)&&y(e,"height",t[2]),(!o||2048&r)&&y(e,"aria-label",t[11]),(!o||2048&r&&s!==(s=t[11]?"img":"presentation"))&&y(e,"role",s),(!o||8&r)&&y(e,"viewBox",t[3]),(!o||1024&r)&&y(e,"style",t[10]),17&r&&w(e,"fa-spin",t[4]),65&r&&w(e,"fa-pulse",t[6]),33&r&&w(e,"fa-inverse",t[5]),129&r&&w(e,"fa-flip-horizontal","horizontal"===t[7]),129&r&&w(e,"fa-flip-vertical","vertical"===t[7])},i(t){o||(K(i,t),o=!0)},o(t){R(i,t),o=!1},d(t){t&&d(e),i&&i.d(t)}}}function at(t,e,n){let{$$slots:s={},$$scope:o}=e,{class:l}=e,{width:i}=e,{height:r}=e,{box:c}=e,{spin:a=!1}=e,{inverse:u=!1}=e,{pulse:p=!1}=e,{flip:f=null}=e,{x:d}=e,{y:g}=e,{style:h}=e,{label:m}=e;return t.$$set=t=>{"class"in t&&n(0,l=t.class),"width"in t&&n(1,i=t.width),"height"in t&&n(2,r=t.height),"box"in t&&n(3,c=t.box),"spin"in t&&n(4,a=t.spin),"inverse"in t&&n(5,u=t.inverse),"pulse"in t&&n(6,p=t.pulse),"flip"in t&&n(7,f=t.flip),"x"in t&&n(8,d=t.x),"y"in t&&n(9,g=t.y),"style"in t&&n(10,h=t.style),"label"in t&&n(11,m=t.label),"$$scope"in t&&n(12,o=t.$$scope)},[l,i,r,c,a,u,p,f,d,g,h,m,o,s]}class ut extends Y{constructor(t){super(),X(this,t,at,ct,i,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,x:8,y:9,style:10,label:11})}}function pt(t,e,n){const s=t.slice();return s[24]=e[n],s[26]=n,s}function ft(t,e,n){const s=t.slice();return s[27]=e[n],s[26]=n,s}function dt(t){let e,n,s,o,l=t[0].paths&>(t),i=t[0].polygons&&mt(t),r=t[0].raw&&$t(t);return{c(){l&&l.c(),e=$(),i&&i.c(),n=$(),r&&r.c(),s=b()},m(t,c){l&&l.m(t,c),f(t,e,c),i&&i.m(t,c),f(t,n,c),r&&r.m(t,c),f(t,s,c),o=!0},p(t,o){t[0].paths?l?(l.p(t,o),1&o&&K(l,1)):(l=gt(t),l.c(),K(l,1),l.m(e.parentNode,e)):l&&(U(),R(l,1,1,(()=>{l=null})),W()),t[0].polygons?i?(i.p(t,o),1&o&&K(i,1)):(i=mt(t),i.c(),K(i,1),i.m(n.parentNode,n)):i&&(U(),R(i,1,1,(()=>{i=null})),W()),t[0].raw?r?(r.p(t,o),1&o&&K(r,1)):(r=$t(t),r.c(),K(r,1),r.m(s.parentNode,s)):r&&(U(),R(r,1,1,(()=>{r=null})),W())},i(t){o||(K(l),K(i),K(r),o=!0)},o(t){R(l),R(i),R(r),o=!1},d(t){l&&l.d(t),t&&d(e),i&&i.d(t),t&&d(n),r&&r.d(t),t&&d(s)}}}function gt(t){let e,n,s=t[0].paths,o=[];for(let e=0;eR(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;tR(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;tfunction(t,e,n){const s=t.$$.props[e];void 0!==s&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}(e,"data",o))),{c(){G(e.$$.fragment)},m(t,n){J(e,t,n),s=!0},p(t,s){const o={};var l;!n&&1&s&&(n=!0,o.data=t[0],l=()=>n=!1,N.push(l)),e.$set(o)},i(t){s||(K(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function bt(t){let e;const n=t[14].default,s=r(n,t,t[16],null),o=s||function(t){let e,n,s=t[0]&&dt(t);return{c(){s&&s.c(),e=b()},m(t,o){s&&s.m(t,o),f(t,e,o),n=!0},p(t,n){t[0]?s?(s.p(t,n),1&n&&K(s,1)):(s=dt(t),s.c(),K(s,1),s.m(e.parentNode,e)):s&&(U(),R(s,1,1,(()=>{s=null})),W())},i(t){n||(K(s),n=!0)},o(t){R(s),n=!1},d(t){s&&s.d(t),t&&d(e)}}}(t);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,l){s?s.p&&(!e||65536&l)&&a(s,n,t,t[16],l,null,null):o&&o.p&&1&l&&o.p(t,l)},i(t){e||(K(o,t),e=!0)},o(t){R(o,t),e=!1},d(t){o&&o.d(t)}}}function _t(t){let e,n;return e=new ut({props:{label:t[6],width:t[7],height:t[8],box:t[10],style:t[9],spin:t[2],flip:t[5],inverse:t[3],pulse:t[4],class:t[1],$$slots:{default:[bt]},$$scope:{ctx:t}}}),{c(){G(e.$$.fragment)},m(t,s){J(e,t,s),n=!0},p(t,[n]){const s={};64&n&&(s.label=t[6]),128&n&&(s.width=t[7]),256&n&&(s.height=t[8]),1024&n&&(s.box=t[10]),512&n&&(s.style=t[9]),4&n&&(s.spin=t[2]),32&n&&(s.flip=t[5]),8&n&&(s.inverse=t[3]),16&n&&(s.pulse=t[4]),2&n&&(s.class=t[1]),65537&n&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){R(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function yt(t,e,n){let s,o,l,i,{$$slots:r={},$$scope:c}=e,{class:a=""}=e,{data:u}=e,{scale:p=1}=e,{spin:f=!1}=e,{inverse:d=!1}=e,{pulse:g=!1}=e,{flip:h=null}=e,{label:m=null}=e,{self:v=null}=e,{style:$=null}=e;function b(){let t=1;return void 0!==p&&(t=Number(p)),isNaN(t)||t<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*t}function _(){return v?Math.max(v.width,v.height)/16:1}return t.$$set=t=>{"class"in t&&n(1,a=t.class),"data"in t&&n(11,u=t.data),"scale"in t&&n(12,p=t.scale),"spin"in t&&n(2,f=t.spin),"inverse"in t&&n(3,d=t.inverse),"pulse"in t&&n(4,g=t.pulse),"flip"in t&&n(5,h=t.flip),"label"in t&&n(6,m=t.label),"self"in t&&n(0,v=t.self),"style"in t&&n(13,$=t.style),"$$scope"in t&&n(16,c=t.$$scope)},t.$$.update=()=>{14336&t.$$.dirty&&(!function(){if(void 0===u)return;const t=function(t){if("iconName"in t&&"icon"in t){let e={},n=t.icon,s=t.iconName,o={width:n[0],height:n[1],paths:[{d:n[4]}]};return e[s]=o,e}return t}(u),[e]=Object.keys(t),s=t[e];s.paths||(s.paths=[]),s.d&&s.paths.push({d:s.d}),s.polygons||(s.polygons=[]),s.points&&s.polygons.push({points:s.points}),n(0,v=s)}(),n(7,s=v?v.width/_()*b():0),n(8,o=v?v.height/_()*b():0),n(9,l=function(){let t="";null!==$&&(t+=$);let e=b();return 1===e?t:(""===t||t.endsWith(";")||(t+="; "),`${t}font-size: ${e}em`)}()),n(10,i=v?`0 0 ${v.width} ${v.height}`:`0 0 ${s} ${o}`))},[v,a,f,d,g,h,m,s,o,l,i,u,p,$,r,function(t){v=t,n(0,v)},c]}class kt extends Y{constructor(t){super(),X(this,t,yt,_t,i,{class:1,data:11,scale:12,spin:2,inverse:3,pulse:4,flip:5,label:6,self:0,style:13})}}var qt={times:{width:1408,height:1792,paths:[{d:"M1298 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"}]}},xt={cog:{width:1536,height:1792,paths:[{d:"M1024 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1536 787v222q0 12-8 23t-20 13l-185 28q-19 54-39 91 35 50 107 138 10 12 10 25t-9 23q-27 37-99 108t-94 71q-12 0-26-9l-138-108q-44 23-91 38-16 136-29 186-7 28-36 28h-222q-14 0-24.5-8.5t-11.5-21.5l-28-184q-49-16-90-37l-141 107q-10 9-25 9-14 0-25-11-126-114-165-168-7-10-7-23 0-12 8-23 15-21 51-66.5t54-70.5q-27-50-41-99l-183-27q-13-2-21-12.5t-8-23.5v-222q0-12 8-23t19-13l186-28q14-46 39-92-40-57-107-138-10-12-10-24 0-10 9-23 26-36 98.5-107.5t94.5-71.5q13 0 26 10l138 107q44-23 91-38 16-136 29-186 7-28 36-28h222q14 0 24.5 8.5t11.5 21.5l28 184q49 16 90 37l142-107q9-9 24-9 13 0 25 10 129 119 165 170 7 8 7 22 0 12-8 23-15 21-51 66.5t-54 70.5q26 50 41 98l183 28q13 2 21 12.5t8 23.5z"}]}},jt={play:{width:1408,height:1792,paths:[{d:"M1384 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z"}]}},wt={pause:{width:1536,height:1792,paths:[{d:"M1536 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45zM640 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45z"}]}},Mt={github:{width:1536,height:1792,paths:[{d:"M768 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 0.5-76.5t0.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 0.5 88.5t0.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zM291 1231q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zM322 1265q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zM352 1310q9-7 0-19-8-13-17-6-9 5 0 18t17 7zM394 1352q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zM451 1377q3-11-13-16-15-4-19 7t13 15q15 6 19-6zM514 1382q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zM572 1372q-2-11-18-9-16 3-14 15t18 8 14-14z"}]}};function St(t){const e=document.cookie.split("; ").find((e=>e.startsWith(t)));return e?e.split("=")[1]:""}function Bt(t,e){document.cookie=t+"="+e}function It(t){return""!=St(t)}function zt(e){let n,s;return n=new kt({props:{data:jt,scale:"5"}}),{c(){G(n.$$.fragment)},m(t,e){J(n,t,e),s=!0},p:t,i(t){s||(K(n.$$.fragment,t),s=!0)},o(t){R(n.$$.fragment,t),s=!1},d(t){Q(n,t)}}}function Nt(e){let n,s;return n=new kt({props:{data:wt,scale:"5"}}),{c(){G(n.$$.fragment)},m(t,e){J(n,t,e),s=!0},p:t,i(t){s||(K(n.$$.fragment,t),s=!0)},o(t){R(n.$$.fragment,t),s=!1},d(t){Q(n,t)}}}function Lt(t){let e,n,s,l,i,r,c,a,g,m,b,k,w,M,S,B,I,z,N,L,T,E,C,A,P,O,D,H,F,V,X,Y,Z,tt,et,nt,st,ot,lt,it,rt,ct,at,ut,pt,ft,dt,gt,ht,mt,vt,$t,bt,_t,yt,jt,wt,St,Bt,It,Lt,Tt,Et,Ct,At,Pt,Ot,Dt,Ht,Ut,Wt,Kt,Rt,Ft,Gt,Jt,Qt=t[2]&&zt(),Vt=!t[2]&&Nt();return P=new kt({props:{style:"margin-top: 0.25rem",data:xt,scale:"3"}}),H=new kt({props:{style:"margin-top: 0.25rem; margin-left:0.45rem",data:Mt,scale:"3"}}),Kt=new kt({props:{data:qt,scale:"3"}}),{c(){e=h("main"),n=h("h1"),s=v(t[1]),i=$(),r=h("div"),c=h("button"),Qt&&Qt.c(),a=$(),Vt&&Vt.c(),g=$(),m=h("ul"),b=h("li"),k=h("span"),w=v(t[4]),M=v("Minutes"),S=$(),B=h("li"),B.innerHTML=':',I=$(),z=h("li"),N=h("span"),L=v(t[5]),T=v("Seconds"),C=$(),A=h("button"),G(P.$$.fragment),O=$(),D=h("a"),G(H.$$.fragment),F=$(),V=h("div"),X=h("h2"),X.textContent="Settings",Y=$(),Z=h("form"),tt=h("div"),et=h("label"),et.textContent="Pocus Minutes",nt=$(),st=h("input"),ot=$(),lt=h("div"),it=h("label"),it.textContent="Pocus Seconds",rt=$(),ct=h("input"),at=$(),ut=h("div"),pt=h("label"),pt.textContent="Break Minutes",ft=$(),dt=h("input"),gt=$(),ht=h("div"),mt=h("label"),mt.textContent="Break Seconds",vt=$(),$t=h("input"),bt=$(),_t=h("div"),yt=h("label"),yt.textContent="Long Break Minutes",jt=$(),wt=h("input"),St=$(),Bt=h("div"),It=h("label"),It.textContent="Long Break Seconds",Lt=$(),Tt=h("input"),Et=$(),Ct=h("div"),At=h("label"),At.textContent="Number of Pocus' till long break",Pt=$(),Ot=h("input"),Dt=$(),Ht=h("button"),Ht.textContent="Save",Ut=$(),Wt=h("button"),G(Kt.$$.fragment),y(n,"class",l=u(t[2]?"":"hidden")+" svelte-j2gv4s"),y(c,"id","start"),y(c,"class","svelte-j2gv4s"),y(k,"id","minutes"),y(k,"class","svelte-j2gv4s"),y(b,"class","svelte-j2gv4s"),y(B,"class","svelte-j2gv4s"),y(N,"id","seconds"),y(N,"class","svelte-j2gv4s"),y(z,"class","svelte-j2gv4s"),y(m,"class","svelte-j2gv4s"),y(r,"class",E=u(t[2]?t[3]?"timer timer--break":"timer":t[3]?"timer timer--active timer--break":"timer timer--active")+" svelte-j2gv4s"),y(A,"class","settings__button svelte-j2gv4s"),y(D,"href","https://github.com/ExistentialAlex"),y(D,"target","_blank"),y(D,"class","github svelte-j2gv4s"),y(X,"class","svelte-j2gv4s"),y(et,"for","pocus_minutes"),y(et,"class","svelte-j2gv4s"),y(st,"id","pocus_minutes"),y(st,"type","number"),y(st,"class","svelte-j2gv4s"),y(tt,"class","svelte-j2gv4s"),y(it,"for","pocus_seconds"),y(it,"class","svelte-j2gv4s"),y(ct,"id","pocus_seconds"),y(ct,"type","number"),y(ct,"class","svelte-j2gv4s"),y(lt,"class","svelte-j2gv4s"),y(pt,"for","break_minutes"),y(pt,"class","svelte-j2gv4s"),y(dt,"id","break_minutes"),y(dt,"type","number"),y(dt,"class","svelte-j2gv4s"),y(ut,"class","svelte-j2gv4s"),y(mt,"for","break_seconds"),y(mt,"class","svelte-j2gv4s"),y($t,"id","break_seconds"),y($t,"type","number"),y($t,"class","svelte-j2gv4s"),y(ht,"class","svelte-j2gv4s"),y(yt,"for","long_break_minutes"),y(yt,"class","svelte-j2gv4s"),y(wt,"id","long_break_minutes"),y(wt,"type","number"),y(wt,"class","svelte-j2gv4s"),y(_t,"class","svelte-j2gv4s"),y(It,"for","long_break_seconds"),y(It,"class","svelte-j2gv4s"),y(Tt,"id","long_break_seconds"),y(Tt,"type","number"),y(Tt,"class","svelte-j2gv4s"),y(Bt,"class","svelte-j2gv4s"),y(At,"for","num_till_long_break"),y(At,"class","svelte-j2gv4s"),y(Ot,"id","num_till_long_break"),y(Ot,"type","number"),y(Ot,"class","svelte-j2gv4s"),y(Ct,"class","svelte-j2gv4s"),y(Ht,"type","submit"),y(Ht,"class","svelte-j2gv4s"),y(Z,"class","svelte-j2gv4s"),y(Wt,"class","settings__close svelte-j2gv4s"),y(V,"id","settings"),y(V,"class",Rt=u(t[6]?"settings":"settings settings__hidden")+" svelte-j2gv4s"),y(e,"class","svelte-j2gv4s")},m(o,l){f(o,e,l),p(e,n),p(n,s),p(e,i),p(e,r),p(r,c),Qt&&Qt.m(c,null),p(c,a),Vt&&Vt.m(c,null),p(r,g),p(r,m),p(m,b),p(b,k),p(k,w),p(b,M),p(m,S),p(m,B),p(m,I),p(m,z),p(z,N),p(N,L),p(z,T),p(e,C),p(e,A),J(P,A,null),p(e,O),p(e,D),J(H,D,null),p(e,F),p(e,V),p(V,X),p(V,Y),p(V,Z),p(Z,tt),p(tt,et),p(tt,nt),p(tt,st),j(st,t[0].pocus_pocusMinutes),p(Z,ot),p(Z,lt),p(lt,it),p(lt,rt),p(lt,ct),j(ct,t[0].pocus_pocusSeconds),p(Z,at),p(Z,ut),p(ut,pt),p(ut,ft),p(ut,dt),j(dt,t[0].pocus_breakMinutes),p(Z,gt),p(Z,ht),p(ht,mt),p(ht,vt),p(ht,$t),j($t,t[0].pocus_breakSeconds),p(Z,bt),p(Z,_t),p(_t,yt),p(_t,jt),p(_t,wt),j(wt,t[0].pocus_longBreakMinutes),p(Z,St),p(Z,Bt),p(Bt,It),p(Bt,Lt),p(Bt,Tt),j(Tt,t[0].pocus_longBreakSeconds),p(Z,Et),p(Z,Ct),p(Ct,At),p(Ct,Pt),p(Ct,Ot),j(Ot,t[0].pocus_numTillLongBreak),p(Z,Dt),p(Z,Ht),p(V,Ut),p(V,Wt),J(Kt,Wt,null),Ft=!0,Gt||(Jt=[_(c,"click",t[7]),_(A,"click",t[9]),_(st,"input",t[10]),_(ct,"input",t[11]),_(dt,"input",t[12]),_($t,"input",t[13]),_(wt,"input",t[14]),_(Tt,"input",t[15]),_(Ot,"input",t[16]),_(Z,"submit",t[8]),_(Wt,"click",t[9])],Gt=!0)},p(t,[e]){(!Ft||2&e)&&x(s,t[1]),(!Ft||4&e&&l!==(l=u(t[2]?"":"hidden")+" svelte-j2gv4s"))&&y(n,"class",l),t[2]?Qt?(Qt.p(t,e),4&e&&K(Qt,1)):(Qt=zt(),Qt.c(),K(Qt,1),Qt.m(c,a)):Qt&&(U(),R(Qt,1,1,(()=>{Qt=null})),W()),t[2]?Vt&&(U(),R(Vt,1,1,(()=>{Vt=null})),W()):Vt?(Vt.p(t,e),4&e&&K(Vt,1)):(Vt=Nt(),Vt.c(),K(Vt,1),Vt.m(c,null)),(!Ft||16&e)&&x(w,t[4]),(!Ft||32&e)&&x(L,t[5]),(!Ft||12&e&&E!==(E=u(t[2]?t[3]?"timer timer--break":"timer":t[3]?"timer timer--active timer--break":"timer timer--active")+" svelte-j2gv4s"))&&y(r,"class",E),1&e&&q(st.value)!==t[0].pocus_pocusMinutes&&j(st,t[0].pocus_pocusMinutes),1&e&&q(ct.value)!==t[0].pocus_pocusSeconds&&j(ct,t[0].pocus_pocusSeconds),1&e&&q(dt.value)!==t[0].pocus_breakMinutes&&j(dt,t[0].pocus_breakMinutes),1&e&&q($t.value)!==t[0].pocus_breakSeconds&&j($t,t[0].pocus_breakSeconds),1&e&&q(wt.value)!==t[0].pocus_longBreakMinutes&&j(wt,t[0].pocus_longBreakMinutes),1&e&&q(Tt.value)!==t[0].pocus_longBreakSeconds&&j(Tt,t[0].pocus_longBreakSeconds),1&e&&q(Ot.value)!==t[0].pocus_numTillLongBreak&&j(Ot,t[0].pocus_numTillLongBreak),(!Ft||64&e&&Rt!==(Rt=u(t[6]?"settings":"settings settings__hidden")+" svelte-j2gv4s"))&&y(V,"class",Rt)},i(t){Ft||(K(Qt),K(Vt),K(P.$$.fragment,t),K(H.$$.fragment,t),K(Kt.$$.fragment,t),Ft=!0)},o(t){R(Qt),R(Vt),R(P.$$.fragment,t),R(H.$$.fragment,t),R(Kt.$$.fragment,t),Ft=!1},d(t){t&&d(e),Qt&&Qt.d(),Vt&&Vt.d(),Q(P),Q(H),Q(Kt),Gt=!1,o(Jt)}}}const Tt="pocus_pocusMinutes",Et="pocus_pocusSeconds",Ct="pocus_breakMinutes",At="pocus_breakSeconds",Pt="pocus_longBreakMinutes",Ot="pocus_longBreakSeconds",Dt="pocus_numTillLongBreak",Ht="POCUS",Ut="BREAK";function Wt(t){return t<10?"0"+t.toString():t.toString()}function Kt(t,e,n){let s={[Tt]:It(Tt)?parseInt(St(Tt)):25,[Et]:It(Et)?parseInt(St(Et)):0,[Dt]:It(Dt)?parseInt(St(Dt)):4,[Ct]:It(Ct)?parseInt(St(Ct)):5,[At]:It(At)?parseInt(St(At)):0,[Pt]:It(Pt)?parseInt(St(Pt)):15,[Ot]:It(Ot)?parseInt(St(Ot)):0};It(Tt)||Bt(Tt,s.pocus_pocusMinutes.toString()),It(Et)||Bt(Et,s.pocus_pocusSeconds.toString()),It(Ct)||Bt(Ct,s.pocus_breakMinutes.toString()),It(At)||Bt(At,s.pocus_breakSeconds.toString()),It(Pt)||Bt(Pt,s.pocus_longBreakMinutes.toString()),It(Ot)||Bt(Ot,s.pocus_longBreakSeconds.toString()),It(Dt)||Bt(Dt,s.pocus_numTillLongBreak.toString());let o=Ht,l=!0,i=!1,r=0,c=Wt(s.pocus_pocusMinutes),a=Wt(s.pocus_pocusSeconds),u=!1;return[s,o,l,i,c,a,u,function(){l?(n(2,l=!1),function(t,e){const s=1e3,u=60*s,p=60*u;let f=(new Date).toString(),d=new Date(f).getTime()+t*u+e*s,g=setInterval((function(){let t=(new Date).getTime(),e=d-t;n(4,c=Wt(Math.floor(e%p/u))),n(5,a=Wt(Math.floor(e%u/s))),(e<0||l)&&(clearInterval(g),e<0&&(n(4,c=Wt(parseInt(St(Tt)))),n(5,a=Wt(parseInt(St(Et)))),n(1,o=Ht),n(3,i=!i),n(2,l=!0),new Audio("assets/ping.mp3").play(),i&&(r+=1,n(1,o=Ut),n(4,c=Wt(parseInt(St(Ct)))),n(5,a=Wt(parseInt(St(At)))),r==parseInt(St(Dt))&&(r=0,n(4,c=Wt(parseInt(St(Pt)))),n(5,a=Wt(parseInt(St(Ot))))))))}),0)}(parseInt(c),parseInt(a))):(n(2,l=!0),n(1,o="PAUSED"))},function(){document.getElementById("settings").classList.add("settings__hidden"),setTimeout((()=>{for(const t in s)Bt(t,s[t])}),1e3)},function(){n(6,u=!u)},function(){s.pocus_pocusMinutes=q(this.value),n(0,s)},function(){s.pocus_pocusSeconds=q(this.value),n(0,s)},function(){s.pocus_breakMinutes=q(this.value),n(0,s)},function(){s.pocus_breakSeconds=q(this.value),n(0,s)},function(){s.pocus_longBreakMinutes=q(this.value),n(0,s)},function(){s.pocus_longBreakSeconds=q(this.value),n(0,s)},function(){s.pocus_numTillLongBreak=q(this.value),n(0,s)}]}return new class extends Y{constructor(t){super(),X(this,t,Kt,Lt,i,{})}}({target:document.body})}(); +var app=function(){"use strict";function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function s(){return Object.create(null)}function o(t){t.forEach(n)}function l(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e,n,s){if(t){const o=c(t,e,n,s);return t[0](o)}}function c(t,n,s,o){return t[1]&&o?e(s.ctx.slice(),t[1](o(n))):s.ctx}function u(t,e,n,s,o,l,r){const i=function(t,e,n,s){if(t[2]&&s){const o=t[2](s(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let s=0;st.removeEventListener(e,n,s)}function k(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e){for(const n in e)k(t,n,e[n])}function q(t){return""===t?null:+t}function x(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function M(t,e){t.value=null==e?"":e}function j(t,e,n){t.classList[n?"add":"remove"](e)}let w;function S(t){w=t}const B=[],z=[],N=[],I=[],L=Promise.resolve();let T=!1;function E(t){N.push(t)}let C=!1;const A=new Set;function P(){if(!C){C=!0;do{for(let t=0;t{D.delete(t),s&&(n&&t.d(1),s())})),t.o(e)}}function F(t,e){const n={},s={},o={$$scope:1};let l=t.length;for(;l--;){const r=t[l],i=e[l];if(i){for(const t in r)t in i||(s[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[l]=i}else for(const t in r)o[t]=1}for(const t in s)t in n||(n[t]=void 0);return n}function G(t){t&&t.c()}function J(t,e,s,r){const{fragment:i,on_mount:c,on_destroy:u,after_update:a}=t.$$;i&&i.m(e,s),r||E((()=>{const e=c.map(n).filter(l);u?u.push(...e):o(e),t.$$.on_mount=[]})),a.forEach(E)}function Q(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function V(t,e){-1===t.$$.dirty[0]&&(B.push(t),T||(T=!0,L.then(P)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=s.length?s[0]:n;return p.ctx&&i(p.ctx[t],p.ctx[t]=o)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](o),f&&V(e,t)),n})):[],p.update(),f=!0,o(p.before_update),p.fragment=!!r&&r(p.ctx),n.target){if(n.hydrate){const t=function(t){return Array.from(t.childNodes)}(n.target);p.fragment&&p.fragment.l(t),t.forEach(d)}else p.fragment&&p.fragment.c();n.intro&&K(e.$$.fragment),J(e,n.target,n.anchor,n.customElement),P()}S(a)}class Y{$destroy(){Q(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Z(n){let s,o,l=[{key:o="path-"+n[0]},n[1]],r={};for(let t=0;t{"id"in t&&n(0,s=t.id),"data"in t&&n(1,o=t.data)},[s,o]}class et extends Y{constructor(t){super(),X(this,t,tt,Z,r,{id:0,data:1})}}function nt(n){let s,o,l=[{key:o="polygon-"+n[0]},n[1]],r={};for(let t=0;t{"id"in t&&n(0,s=t.id),"data"in t&&n(1,o=t.data)},[s,o]}class ot extends Y{constructor(t){super(),X(this,t,st,nt,r,{id:0,data:1})}}function lt(e){let n;return{c(){n=m("g")},m(t,s){f(t,n,s),n.innerHTML=e[0]},p(t,[e]){1&e&&(n.innerHTML=t[0])},i:t,o:t,d(t){t&&d(n)}}}function rt(t,e,n){let s,o=870711;let{data:l}=e;function r(t){if(!t||!t.raw)return null;let e=t.raw;const n={};return e=e.replace(/\s(?:xml:)?id=["']?([^"')\s]+)/g,((t,e)=>{const s=(o+=1,`fa-${o.toString(16)}`);return n[e]=s,` id="${s}"`})),e=e.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,((t,e,s,o)=>{const l=e||o;return l&&n[l]?`#${n[l]}`:t})),e}return t.$$set=t=>{"data"in t&&n(1,l=t.data)},t.$$.update=()=>{2&t.$$.dirty&&n(0,s=r(l))},[s,l]}class it extends Y{constructor(t){super(),X(this,t,rt,lt,r,{data:1})}}function ct(t){let e,n,s,o;const l=t[13].default,r=i(l,t,t[12],null);return{c(){e=m("svg"),r&&r.c(),k(e,"version","1.1"),k(e,"class",n="fa-icon "+t[0]+" svelte-1dof0an"),k(e,"x",t[8]),k(e,"y",t[9]),k(e,"width",t[1]),k(e,"height",t[2]),k(e,"aria-label",t[11]),k(e,"role",s=t[11]?"img":"presentation"),k(e,"viewBox",t[3]),k(e,"style",t[10]),j(e,"fa-spin",t[4]),j(e,"fa-pulse",t[6]),j(e,"fa-inverse",t[5]),j(e,"fa-flip-horizontal","horizontal"===t[7]),j(e,"fa-flip-vertical","vertical"===t[7])},m(t,n){f(t,e,n),r&&r.m(e,null),o=!0},p(t,[i]){r&&r.p&&(!o||4096&i)&&u(r,l,t,t[12],i,null,null),(!o||1&i&&n!==(n="fa-icon "+t[0]+" svelte-1dof0an"))&&k(e,"class",n),(!o||256&i)&&k(e,"x",t[8]),(!o||512&i)&&k(e,"y",t[9]),(!o||2&i)&&k(e,"width",t[1]),(!o||4&i)&&k(e,"height",t[2]),(!o||2048&i)&&k(e,"aria-label",t[11]),(!o||2048&i&&s!==(s=t[11]?"img":"presentation"))&&k(e,"role",s),(!o||8&i)&&k(e,"viewBox",t[3]),(!o||1024&i)&&k(e,"style",t[10]),17&i&&j(e,"fa-spin",t[4]),65&i&&j(e,"fa-pulse",t[6]),33&i&&j(e,"fa-inverse",t[5]),129&i&&j(e,"fa-flip-horizontal","horizontal"===t[7]),129&i&&j(e,"fa-flip-vertical","vertical"===t[7])},i(t){o||(K(r,t),o=!0)},o(t){R(r,t),o=!1},d(t){t&&d(e),r&&r.d(t)}}}function ut(t,e,n){let{$$slots:s={},$$scope:o}=e,{class:l}=e,{width:r}=e,{height:i}=e,{box:c}=e,{spin:u=!1}=e,{inverse:a=!1}=e,{pulse:p=!1}=e,{flip:f=null}=e,{x:d}=e,{y:g}=e,{style:h}=e,{label:m}=e;return t.$$set=t=>{"class"in t&&n(0,l=t.class),"width"in t&&n(1,r=t.width),"height"in t&&n(2,i=t.height),"box"in t&&n(3,c=t.box),"spin"in t&&n(4,u=t.spin),"inverse"in t&&n(5,a=t.inverse),"pulse"in t&&n(6,p=t.pulse),"flip"in t&&n(7,f=t.flip),"x"in t&&n(8,d=t.x),"y"in t&&n(9,g=t.y),"style"in t&&n(10,h=t.style),"label"in t&&n(11,m=t.label),"$$scope"in t&&n(12,o=t.$$scope)},[l,r,i,c,u,a,p,f,d,g,h,m,o,s]}class at extends Y{constructor(t){super(),X(this,t,ut,ct,r,{class:0,width:1,height:2,box:3,spin:4,inverse:5,pulse:6,flip:7,x:8,y:9,style:10,label:11})}}function pt(t,e,n){const s=t.slice();return s[24]=e[n],s[26]=n,s}function ft(t,e,n){const s=t.slice();return s[27]=e[n],s[26]=n,s}function dt(t){let e,n,s,o,l=t[0].paths&>(t),r=t[0].polygons&&mt(t),i=t[0].raw&&vt(t);return{c(){l&&l.c(),e=v(),r&&r.c(),n=v(),i&&i.c(),s=_()},m(t,c){l&&l.m(t,c),f(t,e,c),r&&r.m(t,c),f(t,n,c),i&&i.m(t,c),f(t,s,c),o=!0},p(t,o){t[0].paths?l?(l.p(t,o),1&o&&K(l,1)):(l=gt(t),l.c(),K(l,1),l.m(e.parentNode,e)):l&&(U(),R(l,1,1,(()=>{l=null})),W()),t[0].polygons?r?(r.p(t,o),1&o&&K(r,1)):(r=mt(t),r.c(),K(r,1),r.m(n.parentNode,n)):r&&(U(),R(r,1,1,(()=>{r=null})),W()),t[0].raw?i?(i.p(t,o),1&o&&K(i,1)):(i=vt(t),i.c(),K(i,1),i.m(s.parentNode,s)):i&&(U(),R(i,1,1,(()=>{i=null})),W())},i(t){o||(K(l),K(r),K(i),o=!0)},o(t){R(l),R(r),R(i),o=!1},d(t){l&&l.d(t),t&&d(e),r&&r.d(t),t&&d(n),i&&i.d(t),t&&d(s)}}}function gt(t){let e,n,s=t[0].paths,o=[];for(let e=0;eR(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;tR(o[t],1,1,(()=>{o[t]=null}));return{c(){for(let t=0;tfunction(t,e,n){const s=t.$$.props[e];void 0!==s&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}(e,"data",o))),{c(){G(e.$$.fragment)},m(t,n){J(e,t,n),s=!0},p(t,s){const o={};var l;!n&&1&s&&(n=!0,o.data=t[0],l=()=>n=!1,I.push(l)),e.$set(o)},i(t){s||(K(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){Q(e,t)}}}function _t(t){let e;const n=t[14].default,s=i(n,t,t[16],null),o=s||function(t){let e,n,s=t[0]&&dt(t);return{c(){s&&s.c(),e=_()},m(t,o){s&&s.m(t,o),f(t,e,o),n=!0},p(t,n){t[0]?s?(s.p(t,n),1&n&&K(s,1)):(s=dt(t),s.c(),K(s,1),s.m(e.parentNode,e)):s&&(U(),R(s,1,1,(()=>{s=null})),W())},i(t){n||(K(s),n=!0)},o(t){R(s),n=!1},d(t){s&&s.d(t),t&&d(e)}}}(t);return{c(){o&&o.c()},m(t,n){o&&o.m(t,n),e=!0},p(t,l){s?s.p&&(!e||65536&l)&&u(s,n,t,t[16],l,null,null):o&&o.p&&1&l&&o.p(t,l)},i(t){e||(K(o,t),e=!0)},o(t){R(o,t),e=!1},d(t){o&&o.d(t)}}}function bt(t){let e,n;return e=new at({props:{label:t[6],width:t[7],height:t[8],box:t[10],style:t[9],spin:t[2],flip:t[5],inverse:t[3],pulse:t[4],class:t[1],$$slots:{default:[_t]},$$scope:{ctx:t}}}),{c(){G(e.$$.fragment)},m(t,s){J(e,t,s),n=!0},p(t,[n]){const s={};64&n&&(s.label=t[6]),128&n&&(s.width=t[7]),256&n&&(s.height=t[8]),1024&n&&(s.box=t[10]),512&n&&(s.style=t[9]),4&n&&(s.spin=t[2]),32&n&&(s.flip=t[5]),8&n&&(s.inverse=t[3]),16&n&&(s.pulse=t[4]),2&n&&(s.class=t[1]),65537&n&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){n||(K(e.$$.fragment,t),n=!0)},o(t){R(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function kt(t,e,n){let s,o,l,r,{$$slots:i={},$$scope:c}=e,{class:u=""}=e,{data:a}=e,{scale:p=1}=e,{spin:f=!1}=e,{inverse:d=!1}=e,{pulse:g=!1}=e,{flip:h=null}=e,{label:m=null}=e,{self:$=null}=e,{style:v=null}=e;function _(){let t=1;return void 0!==p&&(t=Number(p)),isNaN(t)||t<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.'),1):1*t}function b(){return $?Math.max($.width,$.height)/16:1}return t.$$set=t=>{"class"in t&&n(1,u=t.class),"data"in t&&n(11,a=t.data),"scale"in t&&n(12,p=t.scale),"spin"in t&&n(2,f=t.spin),"inverse"in t&&n(3,d=t.inverse),"pulse"in t&&n(4,g=t.pulse),"flip"in t&&n(5,h=t.flip),"label"in t&&n(6,m=t.label),"self"in t&&n(0,$=t.self),"style"in t&&n(13,v=t.style),"$$scope"in t&&n(16,c=t.$$scope)},t.$$.update=()=>{14336&t.$$.dirty&&(!function(){if(void 0===a)return;const t=function(t){if("iconName"in t&&"icon"in t){let e={},n=t.icon,s=t.iconName,o={width:n[0],height:n[1],paths:[{d:n[4]}]};return e[s]=o,e}return t}(a),[e]=Object.keys(t),s=t[e];s.paths||(s.paths=[]),s.d&&s.paths.push({d:s.d}),s.polygons||(s.polygons=[]),s.points&&s.polygons.push({points:s.points}),n(0,$=s)}(),n(7,s=$?$.width/b()*_():0),n(8,o=$?$.height/b()*_():0),n(9,l=function(){let t="";null!==v&&(t+=v);let e=_();return 1===e?t:(""===t||t.endsWith(";")||(t+="; "),`${t}font-size: ${e}em`)}()),n(10,r=$?`0 0 ${$.width} ${$.height}`:`0 0 ${s} ${o}`))},[$,u,f,d,g,h,m,s,o,l,r,a,p,v,i,function(t){$=t,n(0,$)},c]}class yt extends Y{constructor(t){super(),X(this,t,kt,bt,r,{class:1,data:11,scale:12,spin:2,inverse:3,pulse:4,flip:5,label:6,self:0,style:13})}}var qt={times:{width:1408,height:1792,paths:[{d:"M1298 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"}]}},xt={cog:{width:1536,height:1792,paths:[{d:"M1024 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1536 787v222q0 12-8 23t-20 13l-185 28q-19 54-39 91 35 50 107 138 10 12 10 25t-9 23q-27 37-99 108t-94 71q-12 0-26-9l-138-108q-44 23-91 38-16 136-29 186-7 28-36 28h-222q-14 0-24.5-8.5t-11.5-21.5l-28-184q-49-16-90-37l-141 107q-10 9-25 9-14 0-25-11-126-114-165-168-7-10-7-23 0-12 8-23 15-21 51-66.5t54-70.5q-27-50-41-99l-183-27q-13-2-21-12.5t-8-23.5v-222q0-12 8-23t19-13l186-28q14-46 39-92-40-57-107-138-10-12-10-24 0-10 9-23 26-36 98.5-107.5t94.5-71.5q13 0 26 10l138 107q44-23 91-38 16-136 29-186 7-28 36-28h222q14 0 24.5 8.5t11.5 21.5l28 184q49 16 90 37l142-107q9-9 24-9 13 0 25 10 129 119 165 170 7 8 7 22 0 12-8 23-15 21-51 66.5t-54 70.5q26 50 41 98l183 28q13 2 21 12.5t8 23.5z"}]}},Mt={play:{width:1408,height:1792,paths:[{d:"M1384 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z"}]}},jt={pause:{width:1536,height:1792,paths:[{d:"M1536 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45zM640 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45z"}]}},wt={github:{width:1536,height:1792,paths:[{d:"M768 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 0.5-76.5t0.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 0.5 88.5t0.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zM291 1231q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zM322 1265q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zM352 1310q9-7 0-19-8-13-17-6-9 5 0 18t17 7zM394 1352q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zM451 1377q3-11-13-16-15-4-19 7t13 15q15 6 19-6zM514 1382q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zM572 1372q-2-11-18-9-16 3-14 15t18 8 14-14z"}]}};function St(t){const e=document.cookie.split("; ").find((e=>e.startsWith(t)));return e?e.split("=")[1]:""}function Bt(t,e){document.cookie=t+"="+e}function zt(t){return""!=St(t)}function Nt(e){let n,s;return n=new yt({props:{data:Mt,scale:"5"}}),{c(){G(n.$$.fragment)},m(t,e){J(n,t,e),s=!0},p:t,i(t){s||(K(n.$$.fragment,t),s=!0)},o(t){R(n.$$.fragment,t),s=!1},d(t){Q(n,t)}}}function It(e){let n,s;return n=new yt({props:{data:jt,scale:"5"}}),{c(){G(n.$$.fragment)},m(t,e){J(n,t,e),s=!0},p:t,i(t){s||(K(n.$$.fragment,t),s=!0)},o(t){R(n.$$.fragment,t),s=!1},d(t){Q(n,t)}}}function Lt(t){let e,n,s,l,r,i,c,u,g,m,_,y,j,w,S,B,z,N,I,L,T,E,C,A,P,O,D,H,F,V,X,Y,Z,tt,et,nt,st,ot,lt,rt,it,ct,ut,at,pt,ft,dt,gt,ht,mt,$t,vt,_t,bt,kt,Mt,jt,St,Bt,zt,Lt,Tt,Et,Ct,At,Pt,Ot,Dt,Ht,Ut,Wt,Kt,Rt,Ft,Gt,Jt,Qt=t[2]&&Nt(),Vt=!t[2]&&It();return P=new yt({props:{style:"margin-top: 0.25rem",data:xt,scale:"3"}}),H=new yt({props:{style:"margin-top: 0.25rem; margin-left:0.45rem",data:wt,scale:"3"}}),Kt=new yt({props:{data:qt,scale:"3"}}),{c(){e=h("main"),n=h("h1"),s=$(t[1]),r=v(),i=h("div"),c=h("button"),Qt&&Qt.c(),u=v(),Vt&&Vt.c(),g=v(),m=h("ul"),_=h("li"),y=h("span"),j=$(t[4]),w=$("Minutes"),S=v(),B=h("li"),B.innerHTML=':',z=v(),N=h("li"),I=h("span"),L=$(t[5]),T=$("Seconds"),C=v(),A=h("button"),G(P.$$.fragment),O=v(),D=h("a"),G(H.$$.fragment),F=v(),V=h("div"),X=h("h2"),X.textContent="Settings",Y=v(),Z=h("form"),tt=h("div"),et=h("label"),et.textContent="Pocus Minutes",nt=v(),st=h("input"),ot=v(),lt=h("div"),rt=h("label"),rt.textContent="Pocus Seconds",it=v(),ct=h("input"),ut=v(),at=h("div"),pt=h("label"),pt.textContent="Break Minutes",ft=v(),dt=h("input"),gt=v(),ht=h("div"),mt=h("label"),mt.textContent="Break Seconds",$t=v(),vt=h("input"),_t=v(),bt=h("div"),kt=h("label"),kt.textContent="Long Break Minutes",Mt=v(),jt=h("input"),St=v(),Bt=h("div"),zt=h("label"),zt.textContent="Long Break Seconds",Lt=v(),Tt=h("input"),Et=v(),Ct=h("div"),At=h("label"),At.textContent="Number of Pocus' till long break",Pt=v(),Ot=h("input"),Dt=v(),Ht=h("p"),Ht.textContent="Settings saved after pocus is completed",Ut=v(),Wt=h("button"),G(Kt.$$.fragment),k(n,"class",l=a(t[2]?"":"hidden")+" svelte-1jrpofp"),k(c,"id","start"),k(c,"class","svelte-1jrpofp"),k(y,"id","minutes"),k(y,"class","svelte-1jrpofp"),k(_,"class","svelte-1jrpofp"),k(B,"class","svelte-1jrpofp"),k(I,"id","seconds"),k(I,"class","svelte-1jrpofp"),k(N,"class","svelte-1jrpofp"),k(m,"class","svelte-1jrpofp"),k(i,"id","timer"),k(i,"class",E=a(t[2]?t[3]?"timer timer--break":"timer":t[3]?"timer timer--active timer--break":"timer timer--active")+" svelte-1jrpofp"),k(A,"class","settings__button svelte-1jrpofp"),k(D,"href","https://github.com/ExistentialAlex"),k(D,"target","_blank"),k(D,"class","github svelte-1jrpofp"),k(X,"class","svelte-1jrpofp"),k(et,"for","pocus_minutes"),k(et,"class","svelte-1jrpofp"),k(st,"id","pocus_minutes"),k(st,"type","number"),k(st,"class","svelte-1jrpofp"),k(tt,"class","svelte-1jrpofp"),k(rt,"for","pocus_seconds"),k(rt,"class","svelte-1jrpofp"),k(ct,"id","pocus_seconds"),k(ct,"type","number"),k(ct,"class","svelte-1jrpofp"),k(lt,"class","svelte-1jrpofp"),k(pt,"for","break_minutes"),k(pt,"class","svelte-1jrpofp"),k(dt,"id","break_minutes"),k(dt,"type","number"),k(dt,"class","svelte-1jrpofp"),k(at,"class","svelte-1jrpofp"),k(mt,"for","break_seconds"),k(mt,"class","svelte-1jrpofp"),k(vt,"id","break_seconds"),k(vt,"type","number"),k(vt,"class","svelte-1jrpofp"),k(ht,"class","svelte-1jrpofp"),k(kt,"for","long_break_minutes"),k(kt,"class","svelte-1jrpofp"),k(jt,"id","long_break_minutes"),k(jt,"type","number"),k(jt,"class","svelte-1jrpofp"),k(bt,"class","svelte-1jrpofp"),k(zt,"for","long_break_seconds"),k(zt,"class","svelte-1jrpofp"),k(Tt,"id","long_break_seconds"),k(Tt,"type","number"),k(Tt,"class","svelte-1jrpofp"),k(Bt,"class","svelte-1jrpofp"),k(At,"for","num_till_long_break"),k(At,"class","svelte-1jrpofp"),k(Ot,"id","num_till_long_break"),k(Ot,"type","number"),k(Ot,"class","svelte-1jrpofp"),k(Ct,"class","svelte-1jrpofp"),k(Ht,"class","svelte-1jrpofp"),k(Z,"class","svelte-1jrpofp"),k(Wt,"class","settings__close svelte-1jrpofp"),k(V,"id","settings"),k(V,"class",Rt=a(t[6]?"settings":"settings settings__hidden")+" svelte-1jrpofp"),k(e,"class","svelte-1jrpofp")},m(o,l){f(o,e,l),p(e,n),p(n,s),p(e,r),p(e,i),p(i,c),Qt&&Qt.m(c,null),p(c,u),Vt&&Vt.m(c,null),p(i,g),p(i,m),p(m,_),p(_,y),p(y,j),p(_,w),p(m,S),p(m,B),p(m,z),p(m,N),p(N,I),p(I,L),p(N,T),p(e,C),p(e,A),J(P,A,null),p(e,O),p(e,D),J(H,D,null),p(e,F),p(e,V),p(V,X),p(V,Y),p(V,Z),p(Z,tt),p(tt,et),p(tt,nt),p(tt,st),M(st,t[0].pocus_pocusMinutes),p(Z,ot),p(Z,lt),p(lt,rt),p(lt,it),p(lt,ct),M(ct,t[0].pocus_pocusSeconds),p(Z,ut),p(Z,at),p(at,pt),p(at,ft),p(at,dt),M(dt,t[0].pocus_breakMinutes),p(Z,gt),p(Z,ht),p(ht,mt),p(ht,$t),p(ht,vt),M(vt,t[0].pocus_breakSeconds),p(Z,_t),p(Z,bt),p(bt,kt),p(bt,Mt),p(bt,jt),M(jt,t[0].pocus_longBreakMinutes),p(Z,St),p(Z,Bt),p(Bt,zt),p(Bt,Lt),p(Bt,Tt),M(Tt,t[0].pocus_longBreakSeconds),p(Z,Et),p(Z,Ct),p(Ct,At),p(Ct,Pt),p(Ct,Ot),M(Ot,t[0].pocus_numTillLongBreak),p(Z,Dt),p(Z,Ht),p(V,Ut),p(V,Wt),J(Kt,Wt,null),Ft=!0,Gt||(Jt=[b(c,"click",t[7]),b(A,"click",t[8]),b(st,"input",t[9]),b(ct,"input",t[10]),b(dt,"input",t[11]),b(vt,"input",t[12]),b(jt,"input",t[13]),b(Tt,"input",t[14]),b(Ot,"input",t[15]),b(Wt,"click",t[8])],Gt=!0)},p(t,[e]){(!Ft||2&e)&&x(s,t[1]),(!Ft||4&e&&l!==(l=a(t[2]?"":"hidden")+" svelte-1jrpofp"))&&k(n,"class",l),t[2]?Qt?(Qt.p(t,e),4&e&&K(Qt,1)):(Qt=Nt(),Qt.c(),K(Qt,1),Qt.m(c,u)):Qt&&(U(),R(Qt,1,1,(()=>{Qt=null})),W()),t[2]?Vt&&(U(),R(Vt,1,1,(()=>{Vt=null})),W()):Vt?(Vt.p(t,e),4&e&&K(Vt,1)):(Vt=It(),Vt.c(),K(Vt,1),Vt.m(c,null)),(!Ft||16&e)&&x(j,t[4]),(!Ft||32&e)&&x(L,t[5]),(!Ft||12&e&&E!==(E=a(t[2]?t[3]?"timer timer--break":"timer":t[3]?"timer timer--active timer--break":"timer timer--active")+" svelte-1jrpofp"))&&k(i,"class",E),1&e&&q(st.value)!==t[0].pocus_pocusMinutes&&M(st,t[0].pocus_pocusMinutes),1&e&&q(ct.value)!==t[0].pocus_pocusSeconds&&M(ct,t[0].pocus_pocusSeconds),1&e&&q(dt.value)!==t[0].pocus_breakMinutes&&M(dt,t[0].pocus_breakMinutes),1&e&&q(vt.value)!==t[0].pocus_breakSeconds&&M(vt,t[0].pocus_breakSeconds),1&e&&q(jt.value)!==t[0].pocus_longBreakMinutes&&M(jt,t[0].pocus_longBreakMinutes),1&e&&q(Tt.value)!==t[0].pocus_longBreakSeconds&&M(Tt,t[0].pocus_longBreakSeconds),1&e&&q(Ot.value)!==t[0].pocus_numTillLongBreak&&M(Ot,t[0].pocus_numTillLongBreak),(!Ft||64&e&&Rt!==(Rt=a(t[6]?"settings":"settings settings__hidden")+" svelte-1jrpofp"))&&k(V,"class",Rt)},i(t){Ft||(K(Qt),K(Vt),K(P.$$.fragment,t),K(H.$$.fragment,t),K(Kt.$$.fragment,t),Ft=!0)},o(t){R(Qt),R(Vt),R(P.$$.fragment,t),R(H.$$.fragment,t),R(Kt.$$.fragment,t),Ft=!1},d(t){t&&d(e),Qt&&Qt.d(),Vt&&Vt.d(),Q(P),Q(H),Q(Kt),Gt=!1,o(Jt)}}}const Tt="pocus_pocusMinutes",Et="pocus_pocusSeconds",Ct="pocus_breakMinutes",At="pocus_breakSeconds",Pt="pocus_longBreakMinutes",Ot="pocus_longBreakSeconds",Dt="pocus_numTillLongBreak",Ht="POCUS",Ut="BREAK",Wt=1e3;function Kt(t){return t<10?"0"+t.toString():t.toString()}function Rt(t,e,n){let s={[Tt]:zt(Tt)?parseInt(St(Tt)):25,[Et]:zt(Et)?parseInt(St(Et)):0,[Dt]:zt(Dt)?parseInt(St(Dt)):4,[Ct]:zt(Ct)?parseInt(St(Ct)):5,[At]:zt(At)?parseInt(St(At)):0,[Pt]:zt(Pt)?parseInt(St(Pt)):15,[Ot]:zt(Ot)?parseInt(St(Ot)):0};zt(Tt)||Bt(Tt,s.pocus_pocusMinutes.toString()),zt(Et)||Bt(Et,s.pocus_pocusSeconds.toString()),zt(Ct)||Bt(Ct,s.pocus_breakMinutes.toString()),zt(At)||Bt(At,s.pocus_breakSeconds.toString()),zt(Pt)||Bt(Pt,s.pocus_longBreakMinutes.toString()),zt(Ot)||Bt(Ot,s.pocus_longBreakSeconds.toString()),zt(Dt)||Bt(Dt,s.pocus_numTillLongBreak.toString());const o=6e4,l=36e5;let r=Ht,i=!0,c=!1,u=0,a=Kt(s.pocus_pocusMinutes),p=Kt(s.pocus_pocusSeconds),f=!1;function d(){document.getElementById("timer").style.background=`conic-gradient(var(${c?"--clr-break":"--clr-pocus"}) ${function(t,e){const n=c?s.pocus_breakMinutes:s.pocus_pocusMinutes,l=c?s.pocus_breakSeconds:s.pocus_pocusSeconds;return(t*o+e*Wt)/(n*o+l*Wt)*100}(parseInt(a),parseInt(p))}%, var(--clr-mute) 0)`}return[s,r,i,c,a,p,f,function(){i?(n(2,i=!1),function(t,e){let f=(new Date).toString(),g=new Date(f).getTime()+t*o+e*Wt,h=setInterval((function(){let t=(new Date).getTime(),e=g-t;n(4,a=Kt(Math.floor(e%l/o))),n(5,p=Kt(Math.floor(e%o/Wt))),d(),(e<0||i)&&(clearInterval(h),e<0&&(n(4,a=Kt(s.pocus_pocusMinutes)),n(5,p=Kt(s.pocus_pocusSeconds)),n(1,r=Ht),n(3,c=!c),n(2,i=!0),new Audio("assets/ping.mp3").play(),function(){for(const t in s)Bt(t,s[t])}(),c&&(u+=1,n(1,r=Ut),n(4,a=Kt(s.pocus_breakMinutes)),n(5,p=Kt(s.pocus_breakSeconds)),u==s.pocus_numTillLongBreak&&(u=0,n(4,a=Kt(s.pocus_longBreakMinutes)),n(5,p=Kt(s.pocus_longBreakSeconds)))),d()))}),0)}(parseInt(a),parseInt(p))):(n(2,i=!0),n(1,r="PAUSED"))},function(){n(6,f=!f)},function(){s.pocus_pocusMinutes=q(this.value),n(0,s)},function(){s.pocus_pocusSeconds=q(this.value),n(0,s)},function(){s.pocus_breakMinutes=q(this.value),n(0,s)},function(){s.pocus_breakSeconds=q(this.value),n(0,s)},function(){s.pocus_longBreakMinutes=q(this.value),n(0,s)},function(){s.pocus_longBreakSeconds=q(this.value),n(0,s)},function(){s.pocus_numTillLongBreak=q(this.value),n(0,s)}]}return new class extends Y{constructor(t){super(),X(this,t,Rt,Lt,r,{})}}({target:document.body})}(); //# sourceMappingURL=bundle.js.map diff --git a/public/build/bundle.js.map b/public/build/bundle.js.map index 31ea233..855eed0 100644 --- a/public/build/bundle.js.map +++ b/public/build/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte-awesome/components/svg/Path.svelte","../../node_modules/svelte-awesome/components/svg/Polygon.svelte","../../node_modules/svelte-awesome/components/svg/Raw.svelte","../../node_modules/svelte-awesome/components/svg/Svg.svelte","../../node_modules/svelte-awesome/components/Icon.svelte","../../node_modules/svelte-awesome/icons/times.js","../../node_modules/svelte-awesome/icons/cog.js","../../node_modules/svelte-awesome/icons/play.js","../../node_modules/svelte-awesome/icons/pause.js","../../node_modules/svelte-awesome/icons/github.js","../../src/helpers/cookie-helper.ts","../../src/App.svelte","../../src/main.ts"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","\n\n\n","\n\n\n","\n{@html raw}\n\n\n\n","\n \n\n\n\n\n\n","\n \n {#if self}\n {#if self.paths}\n {#each self.paths as path, i}\n \n {/each}\n {/if}\n {#if self.polygons}\n {#each self.polygons as polygon, i}\n \n {/each}\n {/if}\n {#if self.raw}\n \n {/if}\n {/if}\n \n\n\n\n","export default { times: { width: 1408, height: 1792, paths: [{ d: 'M1298 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z' }] } };\n","export default { cog: { width: 1536, height: 1792, paths: [{ d: 'M1024 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1536 787v222q0 12-8 23t-20 13l-185 28q-19 54-39 91 35 50 107 138 10 12 10 25t-9 23q-27 37-99 108t-94 71q-12 0-26-9l-138-108q-44 23-91 38-16 136-29 186-7 28-36 28h-222q-14 0-24.5-8.5t-11.5-21.5l-28-184q-49-16-90-37l-141 107q-10 9-25 9-14 0-25-11-126-114-165-168-7-10-7-23 0-12 8-23 15-21 51-66.5t54-70.5q-27-50-41-99l-183-27q-13-2-21-12.5t-8-23.5v-222q0-12 8-23t19-13l186-28q14-46 39-92-40-57-107-138-10-12-10-24 0-10 9-23 26-36 98.5-107.5t94.5-71.5q13 0 26 10l138 107q44-23 91-38 16-136 29-186 7-28 36-28h222q14 0 24.5 8.5t11.5 21.5l28 184q49 16 90 37l142-107q9-9 24-9 13 0 25 10 129 119 165 170 7 8 7 22 0 12-8 23-15 21-51 66.5t-54 70.5q26 50 41 98l183 28q13 2 21 12.5t8 23.5z' }] } };\n","export default { play: { width: 1408, height: 1792, paths: [{ d: 'M1384 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z' }] } };\n","export default { pause: { width: 1536, height: 1792, paths: [{ d: 'M1536 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45zM640 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45z' }] } };\n","export default { github: { width: 1536, height: 1792, paths: [{ d: 'M768 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 0.5-76.5t0.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 0.5 88.5t0.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zM291 1231q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zM322 1265q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zM352 1310q9-7 0-19-8-13-17-6-9 5 0 18t17 7zM394 1352q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zM451 1377q3-11-13-16-15-4-19 7t13 15q15 6 19-6zM514 1382q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zM572 1372q-2-11-18-9-16 3-14 15t18 8 14-14z' }] } };\n","export function getCookie(name) {\r\n const cookie = document.cookie\r\n .split(\"; \")\r\n .find((cookie) => cookie.startsWith(name));\r\n return cookie ? cookie.split(\"=\")[1] : \"\";\r\n}\r\nexport function setCookie(name, value) {\r\n document.cookie = name + \"=\" + value;\r\n}\r\nexport function deleteCookie(name) {\r\n document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC;`;\r\n}\r\nexport function checkCookie(name) {\r\n return getCookie(name) != \"\";\r\n}\r\n","\n\n
\n

{title}

\n \n \n \n
\n\n\n","import App from \"./App.svelte\";\r\nconst app = new App({\r\n target: document.body,\r\n});\r\nexport default app;\r\n"],"names":["noop","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","null_to_empty","value","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","svg_element","createElementNS","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_svg_attributes","attributes","key","to_number","set_data","wholeText","set_input_value","input","toggle_class","toggle","classList","current_component","set_current_component","component","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","push","flushing","seen_callbacks","Set","flush","update","$$","pop","callback","has","add","clear","fragment","before_update","after_update","outroing","outros","group_outros","r","c","check_outros","transition_in","block","local","delete","transition_out","o","get_spread_update","levels","updates","to_null_out","accounted_for","n","create_component","mount_component","customElement","on_mount","on_destroy","m","new_on_destroy","map","filter","destroy_component","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","SvelteComponent","[object Object]","this","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","id","raw","cursor","getRaw","rawData","ids","replace","match","uniqueId","toString","rawId","_","pointerId","className","width","height","box","spin","inverse","pulse","flip","x","y","style","label","paths","polygons","combinedStyle","scale","self","normalisedScale","numScale","Number","isNaN","console","warn","calculateRatio","normalisedData","faIcon","icon","iconName","iconData","normaliseData","points","combined","size","endsWith","calculateStyle","times","cog","play","pause","github","getCookie","cookie","split","find","startsWith","setCookie","checkCookie","pocus_pocusMinutes","pocus_pocusSeconds","pocus_breakMinutes","pocus_breakSeconds","pocus_longBreakMinutes","pocus_longBreakSeconds","pocus_numTillLongBreak","pocusMinsCookie","pocusSecsCookie","breakMinsCookie","breakSecsCookie","longBreakMinsCookie","longBreakSecsCookie","numTillLongBreakCookie","_pocus","_break","pad","settings","parseInt","title","isPaused","isBreak","pocusCount","remainingMins","remainingSecs","settingsVisible","minutes","seconds","second","minute","hour","startTime","Date","countDown","getTime","setInterval","now","distance","floor","clearInterval","Audio","startTimer","getElementById","setTimeout","body"],"mappings":"gCAAA,SAASA,KAET,SAASC,EAAOC,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EA4BhF,SAASE,EAAYC,E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A,GAAW,YAQKM,EAAiBC,SAC7BC,EAAS,IACTC,EAAkB,GAATD,EACTE,EAAgB,GAATD,MAGTE,OAAgBC,MAAOnF,WACvBoF,MACED,KAAKD,GAAWG,UAAYR,EAAUG,EAASF,EAAUC,EAC3DnE,EAAI0E,4BACFC,OAAkBJ,MAAOE,UACzBG,EAAmBJ,EAAYG,MAEnCb,EAAgBP,GAAIjO,KAAKuP,MAAOD,EAAWP,EAAQD,SACnDL,EAAgBR,GAAIjO,KAAKuP,MAAOD,EAAWR,EAAUD,MAGjDS,EAAW,GAAKjB,KAClBmB,cAAc9E,GAEV4E,EAAW,QACbd,EAAgBP,GAAIE,SAASzB,GAAUc,WACvCiB,EAAgBR,GAAIE,SAASzB,GAAUe,WACvCW,EAAQL,QACRO,GAAWA,OACXD,GAAW,OAwBboB,MAAM,mBAAmBlD,OArBnB+B,IACFC,GAAc,MACdH,EAAQJ,QACRQ,EAAgBP,GAAIE,SAASzB,GAAUgB,WACvCe,EAAgBR,GAAIE,SAASzB,GAAUiB,OAEnCY,GAAcJ,SAASzB,GAAUoB,OACnCS,EAAa,MACbC,EAAgBP,GAAIE,SAASzB,GAAUkB,WACvCa,EAAgBR,GAAIE,SAASzB,GAAUmB,aAM9C,GAlDD6B,CAAWvB,SAASK,GAAgBL,SAASM,UAE7CJ,GAAW,OACXD,EAlBoB,uBA+EtB3M,SAASkO,eAAe,YAAYpM,UAAUuB,IAAI,oBAClD8K,2BACa7M,KAAOmL,EAChBnB,GAAUhK,EAAKmL,EAASnL,MAEzB,qBAIH2L,GAAmBA,eAmDDR,EAASjB,oDAQTiB,EAAShB,oDAQTgB,EAASf,oDAQTe,EAASd,oDAQTc,EAASb,wDAQTa,EAASZ,wDASTY,EAASX,qDC/PnB,kEAAQ,CAChB7M,OAAQe,SAASoO"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte-awesome/components/svg/Path.svelte","../../node_modules/svelte-awesome/components/svg/Polygon.svelte","../../node_modules/svelte-awesome/components/svg/Raw.svelte","../../node_modules/svelte-awesome/components/svg/Svg.svelte","../../node_modules/svelte-awesome/components/Icon.svelte","../../node_modules/svelte-awesome/icons/times.js","../../node_modules/svelte-awesome/icons/cog.js","../../node_modules/svelte-awesome/icons/play.js","../../node_modules/svelte-awesome/icons/pause.js","../../node_modules/svelte-awesome/icons/github.js","../../src/helpers/cookie-helper.ts","../../src/App.svelte","../../src/main.ts"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","\n\n\n","\n\n\n","\n{@html raw}\n\n\n\n","\n \n\n\n\n\n\n","\n \n {#if self}\n {#if self.paths}\n {#each self.paths as path, i}\n \n {/each}\n {/if}\n {#if self.polygons}\n {#each self.polygons as polygon, i}\n \n {/each}\n {/if}\n {#if self.raw}\n \n {/if}\n {/if}\n \n\n\n\n","export default { times: { width: 1408, height: 1792, paths: [{ d: 'M1298 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z' }] } };\n","export default { cog: { width: 1536, height: 1792, paths: [{ d: 'M1024 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zM1536 787v222q0 12-8 23t-20 13l-185 28q-19 54-39 91 35 50 107 138 10 12 10 25t-9 23q-27 37-99 108t-94 71q-12 0-26-9l-138-108q-44 23-91 38-16 136-29 186-7 28-36 28h-222q-14 0-24.5-8.5t-11.5-21.5l-28-184q-49-16-90-37l-141 107q-10 9-25 9-14 0-25-11-126-114-165-168-7-10-7-23 0-12 8-23 15-21 51-66.5t54-70.5q-27-50-41-99l-183-27q-13-2-21-12.5t-8-23.5v-222q0-12 8-23t19-13l186-28q14-46 39-92-40-57-107-138-10-12-10-24 0-10 9-23 26-36 98.5-107.5t94.5-71.5q13 0 26 10l138 107q44-23 91-38 16-136 29-186 7-28 36-28h222q14 0 24.5 8.5t11.5 21.5l28 184q49 16 90 37l142-107q9-9 24-9 13 0 25 10 129 119 165 170 7 8 7 22 0 12-8 23-15 21-51 66.5t-54 70.5q26 50 41 98l183 28q13 2 21 12.5t8 23.5z' }] } };\n","export default { play: { width: 1408, height: 1792, paths: [{ d: 'M1384 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z' }] } };\n","export default { pause: { width: 1536, height: 1792, paths: [{ d: 'M1536 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45zM640 192v1408q0 26-19 45t-45 19h-512q-26 0-45-19t-19-45v-1408q0-26 19-45t45-19h512q26 0 45 19t19 45z' }] } };\n","export default { github: { width: 1536, height: 1792, paths: [{ d: 'M768 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 0.5-76.5t0.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 0.5 88.5t0.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zM291 1231q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zM322 1265q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zM352 1310q9-7 0-19-8-13-17-6-9 5 0 18t17 7zM394 1352q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zM451 1377q3-11-13-16-15-4-19 7t13 15q15 6 19-6zM514 1382q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zM572 1372q-2-11-18-9-16 3-14 15t18 8 14-14z' }] } };\n","export function getCookie(name) {\r\n const cookie = document.cookie\r\n .split(\"; \")\r\n .find((cookie) => cookie.startsWith(name));\r\n return cookie ? cookie.split(\"=\")[1] : \"\";\r\n}\r\nexport function setCookie(name, value) {\r\n document.cookie = name + \"=\" + value;\r\n}\r\nexport function deleteCookie(name) {\r\n document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 UTC;`;\r\n}\r\nexport function checkCookie(name) {\r\n return getCookie(name) != \"\";\r\n}\r\n","\n\n
\n

{title}

\n \n
\n\n\n","import App from \"./App.svelte\";\r\nconst app = new App({\r\n target: document.body,\r\n});\r\nexport default app;\r\n"],"names":["noop","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","null_to_empty","value","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","svg_element","createElementNS","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_svg_attributes","attributes","key","to_number","set_data","wholeText","set_input_value","input","toggle_class","toggle","classList","current_component","set_current_component","component","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","push","flushing","seen_callbacks","Set","flush","update","$$","pop","callback","has","add","clear","fragment","before_update","after_update","outroing","outros","group_outros","r","c","check_outros","transition_in","block","local","delete","transition_out","o","get_spread_update","levels","updates","to_null_out","accounted_for","n","create_component","mount_component","customElement","on_mount","on_destroy","m","new_on_destroy","map","filter","destroy_component","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","SvelteComponent","[object Object]","this","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","id","raw","cursor","getRaw","rawData","ids","replace","match","uniqueId","toString","rawId","_","pointerId","className","width","height","box","spin","inverse","pulse","flip","x","y","style","label","paths","polygons","combinedStyle","scale","self","normalisedScale","numScale","Number","isNaN","console","warn","calculateRatio","normalisedData","faIcon","icon","iconName","iconData","normaliseData","points","combined","size","endsWith","calculateStyle","times","cog","play","pause","github","getCookie","cookie","split","find","startsWith","setCookie","checkCookie","pocus_pocusMinutes","pocus_pocusSeconds","pocus_breakMinutes","pocus_breakSeconds","pocus_longBreakMinutes","pocus_longBreakSeconds","pocus_numTillLongBreak","pocusMinsCookie","pocusSecsCookie","breakMinsCookie","breakSecsCookie","longBreakMinsCookie","longBreakSecsCookie","numTillLongBreakCookie","_pocus","_break","second","pad","settings","parseInt","minute","hour","title","isPaused","isBreak","pocusCount","remainingMins","remainingSecs","settingsVisible","workoutWheelPercentage","getElementById","background","minutes","seconds","settingsMins","settingsSecs","calculatePercentageDone","startTime","Date","countDown","getTime","setInterval","now","distance","floor","clearInterval","Audio","saveSettings","startTimer","body"],"mappings":"gCAAA,SAASA,KAET,SAASC,EAAOC,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EA4BhF,SAASE,EAAYC,EAAYC,EAAKC,EAASf,GAC3C,GAAIa,EAAY,CACZ,MAAMG,EAAWC,EAAiBJ,EAAYC,EAAKC,EAASf,GAC5D,OAAOa,EAAW,GAAGG,IAG7B,SAASC,EAAiBJ,EAAYC,EAAKC,EAASf,GAChD,OAAOa,EAAW,IAAMb,EAClBL,EAAOoB,EAAQD,IAAII,QAASL,EAAW,GAAGb,EAAGc,KAC7CC,EAAQD,IAoBlB,SAASK,EAAYC,EAAMC,EAAiBP,EAAKC,EAASO,EAAOC,EAAqBC,GAClF,MAAMC,EAnBV,SAA0BZ,EAAYE,EAASO,EAAOtB,GAClD,GAAIa,EAAW,IAAMb,EAAI,CACrB,MAAM0B,EAAOb,EAAW,GAAGb,EAAGsB,IAC9B,QAAsBK,IAAlBZ,EAAQO,MACR,OAAOI,EAEX,GAAoB,iBAATA,EAAmB,CAC1B,MAAME,EAAS,GACTC,EAAMC,KAAKC,IAAIhB,EAAQO,MAAMU,OAAQN,EAAKM,QACh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EAAUJ,MAErDa,KAGIc,EAAW,GAAKpB,KAClBsB,cAAcpF,GAEVkF,EAAW,QACbjB,EAAgBT,GAAIC,EAASlB,yBAC7B2B,EAAgBV,GAAIC,EAASjB,yBAC7BqB,EAAQR,QACRU,GAAWA,OACXD,GAAW,OA2BbuB,MAAM,mBAAmBxD,4BAQlBxJ,KAAOoL,EAChBpB,GAAUhK,EAAKoL,EAASpL,IAlCpBiN,GAEIvB,IACFC,GAAc,MACdH,EAAQP,QACRW,EAAgBT,GAAIC,EAAShB,yBAC7ByB,EAAgBV,GAAIC,EAASf,qBAEzBsB,GAAcP,EAASZ,yBACzBmB,EAAa,MACbC,EAAgBT,GAAIC,EAASd,6BAC7BuB,EAAgBV,GAAIC,EAASb,2BAIjCwB,QAIH,GAlDDmB,CAAW7B,SAASO,GAAgBP,SAASQ,UAE7CJ,GAAW,OACXD,EArBoB,2BAwFtBM,GAAmBA,eA4EDV,EAASlB,oDAQTkB,EAASjB,oDAQTiB,EAAShB,oDAQTgB,EAASf,oDAQTe,EAASd,wDAQTc,EAASb,wDASTa,EAASZ,qDCxRnB,kEAAQ,CAChB7M,OAAQe,SAASyO"} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 0d21921..319c31c 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ - Svelte app + Pocus diff --git a/src/App.svelte b/src/App.svelte index c90887c..8a8cff4 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -68,6 +68,9 @@ const _pocus: string = "POCUS"; const _paused: string = "PAUSED"; const _break: string = "BREAK"; + const second = 1000; + const minute = second * 60; + const hour = minute * 60; let title: string = _pocus; let isPaused = true; let isBreak = false; @@ -89,11 +92,6 @@ } function startTimer(minutes: number, seconds: number): void { - const second = 1000; - const minute = second * 60; - const hour = minute * 60; - const day = hour * 24; - let startTime = new Date().toString(); let countDown = new Date(startTime).getTime() + minutes * minute + seconds * second; @@ -104,30 +102,35 @@ remainingMins = pad(Math.floor((distance % hour) / minute)); remainingSecs = pad(Math.floor((distance % minute) / second)); + workoutWheelPercentage(); + //do something later when date is reached if (distance < 0 || isPaused) { clearInterval(x); if (distance < 0) { - remainingMins = pad(parseInt(getCookie(pocusMinsCookie))); - remainingSecs = pad(parseInt(getCookie(pocusSecsCookie))); + remainingMins = pad(settings.pocus_pocusMinutes); + remainingSecs = pad(settings.pocus_pocusSeconds); title = _pocus; isBreak = !isBreak; isPaused = true; playPing(); + saveSettings(); if (isBreak) { pocusCount += 1; title = _break; - remainingMins = pad(parseInt(getCookie(breakMinsCookie))); - remainingSecs = pad(parseInt(getCookie(breakSecsCookie))); + remainingMins = pad(settings.pocus_breakMinutes); + remainingSecs = pad(settings.pocus_breakSeconds); - if (pocusCount == parseInt(getCookie(numTillLongBreakCookie))) { + if (pocusCount == settings.pocus_numTillLongBreak) { pocusCount = 0; - remainingMins = pad(parseInt(getCookie(longBreakMinsCookie))); - remainingSecs = pad(parseInt(getCookie(longBreakSecsCookie))); + remainingMins = pad(settings.pocus_longBreakMinutes); + remainingSecs = pad(settings.pocus_longBreakSeconds); } } + + workoutWheelPercentage(); } } //seconds @@ -145,23 +148,45 @@ } function saveSettings() { - document.getElementById("settings").classList.add("settings__hidden"); - setTimeout(() => { - for (const key in settings) { - setCookie(key, settings[key]); - } - }, 1000); + for (const key in settings) { + setCookie(key, settings[key]); + } } function toggleSettingsVisible() { settingsVisible = !settingsVisible; } + + function calculatePercentageDone(minutes: number, seconds: number): number { + const settingsMins = !isBreak + ? settings.pocus_pocusMinutes + : settings.pocus_breakMinutes; + const settingsSecs = !isBreak + ? settings.pocus_pocusSeconds + : settings.pocus_breakSeconds; + + return ( + ((minutes * minute + seconds * second) / + (settingsMins * minute + settingsSecs * second)) * + 100 + ); + } + + function workoutWheelPercentage() { + document.getElementById("timer").style.background = `conic-gradient(var(${ + !isBreak ? "--clr-pocus" : "--clr-break" + }) ${calculatePercentageDone( + parseInt(remainingMins), + parseInt(remainingSecs) + )}%, var(--clr-mute) 0)`; + } //#endregion Helper Functions

{title}

Settings

-
+
- +

Settings saved after pocus is completed

:root { - --clr-primary: #2cc09c; - --clr-done: #5b54ca; - --clr-todo: #ffcb5f; - --clr-progress: #f26950; + --clr-break: #2cc09c; + --clr-pocus: #5b54ca; --clr-mute: #e9e9e9; + --clr-mute-text: #b6b6b6; --transition-time: 500ms; } @@ -284,7 +308,7 @@ justify-content: center; & > h1 { - color: var(--clr-done); + color: var(--clr-pocus); text-transform: uppercase; font-size: 4em; font-weight: 100; @@ -299,7 +323,7 @@ .timer { border-radius: 50%; - border: 5px solid var(--clr-done); + // border: 5px solid var(--clr-pocus); height: 20rem; width: 20rem; display: flex; @@ -308,13 +332,14 @@ transition: all var(--transition-time) ease; position: relative; bottom: 0; + background: conic-gradient(var(--clr-pocus) 100%, var(--clr-mute) 0); &--active { bottom: 10rem; } &--break { - border-color: var(--clr-primary); + border-color: var(--clr-break); } } @@ -334,6 +359,12 @@ ul { padding: 0; display: flex; + background: #ffffff; + width: 97%; + height: 97%; + align-items: center; + justify-content: center; + border-radius: 50%; } li { @@ -369,7 +400,7 @@ text-align: center; margin: 0; margin-bottom: 0.75rem; - color: var(--clr-done); + color: var(--clr-pocus); text-transform: uppercase; font-weight: 200; } @@ -378,13 +409,15 @@ display: flex; flex-wrap: wrap; position: relative; - padding-bottom: 3.5rem; justify-content: center; + padding-bottom: 1rem; & > div { margin: 0 1rem 0.5rem; + flex: 1 1 0px; & > label { text-align: center; + white-space: nowrap; } & > input { @@ -392,16 +425,11 @@ } } - & > button { + & > p { + font-size: 0.9rem; + color: var(--clr-mute-text); position: absolute; - bottom: 0; - background-color: var(--clr-primary); - border: none; - padding: 0.5rem 2rem; - font-size: 1.1rem; - font-weight: 500; - border-radius: 2rem; - color: #ffffff; + bottom: -0.9rem; } }