summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakobst1n <undefined>2022-05-02 23:07:42 +0200
committerjakobst1n <undefined>2022-05-02 23:07:42 +0200
commitdc6f9f735a8d8fb5d68f35686b96174af3653d85 (patch)
tree329c5c201bf907e5f79a14e250ef2ba534a8e872
parenta5ea1c2dfa550be03f7ce5e5a86467a3ddbe8d90 (diff)
downloadAurora-data-dc6f9f735a8d8fb5d68f35686b96174af3653d85.tar.gz
Aurora-data-dc6f9f735a8d8fb5d68f35686b96174af3653d85.zip
Updates
-rw-r--r--client/client.c340c0cb.js (renamed from client/client.0692ce05.js)4
-rw-r--r--client/index-8f3929f0.css (renamed from client/legacy/index-7c6f2209.css)2
-rw-r--r--client/index.1b1af70b.js1
-rw-r--r--client/index.f6ed59e6.js1
-rw-r--r--client/legacy/client.e32a6024.js (renamed from client/legacy/client.fc5112f8.js)4
-rw-r--r--client/legacy/index-8f3929f0.css (renamed from client/index-7c6f2209.css)2
-rw-r--r--client/legacy/index.26d02218.js1
-rw-r--r--client/legacy/index.b9026ed4.js1
-rw-r--r--index.html2
-rw-r--r--service-worker-index.html2
-rw-r--r--service-worker.js2
-rw-r--r--theme.css9
12 files changed, 16 insertions, 15 deletions
diff --git a/client/client.0692ce05.js b/client/client.c340c0cb.js
index 620e342..205ede9 100644
--- a/client/client.0692ce05.js
+++ b/client/client.c340c0cb.js
@@ -1,4 +1,4 @@
-function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function a(t){let e;return c(t,(t=>e=t))(),e}function l(t,e,n){t.$$.on_destroy.push(c(e,n))}function u(t,e,n,r){if(t){const o=f(t,e,n,r);return t[0](o)}}function f(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function d(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function p(t,e,n,r,o,s){if(o){const i=f(e,n,r,s);t.p(i,o)}}function h(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let m,g=!1;function $(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function y(t,e){if(g){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&e[n[o]].claim_order<=s?o+1:$(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function _(t,e,n){g&&!n?y(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function v(t){t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function x(t){return document.createElement(t)}function E(t){return document.createTextNode(t)}function S(){return E(" ")}function w(){return E("")}function N(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function A(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function R(t){return Array.from(t.childNodes)}function P(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;r>=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function L(t,e,n){return function(t,e,n,r){return P(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,x)}function k(t,e){return P(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>E(e)),!0)}function j(t){return k(t," ")}function q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function C(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function O(t,e,n){t.classList[n?"add":"remove"](e)}function T(t,e=document.body){return Array.from(e.querySelectorAll(t))}function U(t){m=t}function I(){if(!m)throw new Error("Function called outside component initialization");return m}const B=[],J=[],D=[],K=[],z=Promise.resolve();let H=!1;function M(t){D.push(t)}const V=new Set;let F=0;function G(){const t=m;do{for(;F<B.length;){const t=B[F];F++,U(t),W(t.$$)}for(U(null),B.length=0,F=0;J.length;)J.pop()();for(let t=0;t<D.length;t+=1){const e=D[t];V.has(e)||(V.add(e),e())}D.length=0}while(B.length);for(;K.length;)K.pop()();H=!1,V.clear(),U(t)}function W(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M)}}const Y=new Set;let X;function Q(){X={r:0,c:[],p:X}}function Z(){X.r||o(X.c),X=X.p}function tt(t,e){t&&t.i&&(Y.delete(t),t.i(e))}function et(t,e,n,r){if(t&&t.o){if(Y.has(t))return;Y.add(t),X.c.push((()=>{Y.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function nt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function rt(t){return"object"==typeof t&&null!==t?t:{}}function ot(t){t&&t.c()}function st(t,e){t&&t.l(e)}function it(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||M((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(M)}function ct(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 at(t,e){-1===t.$$.dirty[0]&&(B.push(t),H||(H=!0,z.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function lt(e,n,s,i,c,a,l,u=[-1]){const f=m;U(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let p=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),p&&at(e,t)),n})):[],d.update(),p=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){g=!0;const t=R(n.target);d.fragment&&d.fragment.l(t),t.forEach(v)}else d.fragment&&d.fragment.c();n.intro&&tt(e.$$.fragment),it(e,n.target,n.anchor,n.customElement),g=!1,G()}U(f)}class ut{$destroy(){ct(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)}}const ft=[];function dt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!ft.length;for(const t of o)t[1](),ft.push(t,e);if(t){for(let t=0;t<ft.length;t+=2)ft[t][0](ft[t+1]);ft.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const pt={};function ht(t){let e,n;const r=t[1].default,o=u(r,t,t[0],null);return{c(){e=x("div"),o&&o.c(),this.h()},l(t){e=L(t,"DIV",{class:!0});var n=R(e);o&&o.l(n),n.forEach(v),this.h()},h(){A(e,"class","app-container svelte-lkkhqy")},m(t,r){_(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&p(o,r,t,t[0],n?d(r,t[0],e,null):h(t[0]),null)},i(t){n||(tt(o,t),n=!0)},o(t){et(o,t),n=!1},d(t){t&&v(e),o&&o.d(t)}}}function mt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class gt extends ut{constructor(t){super(),lt(this,t,mt,ht,i,{})}}function $t(t){let e,n,r=t[1].stack+"";return{c(){e=x("pre"),n=E(r)},l(t){e=L(t,"PRE",{});var o=R(e);n=k(o,r),o.forEach(v)},m(t,r){_(t,e,r),y(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&q(n,r)},d(t){t&&v(e)}}}function yt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&$t(e);return{c(){r=S(),o=x("h1"),s=E(e[0]),i=S(),c=x("p"),a=E(f),l=S(),d&&d.c(),u=w(),this.h()},l(t){T('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(v),r=j(t),o=L(t,"H1",{class:!0});var n=R(o);s=k(n,e[0]),n.forEach(v),i=j(t),c=L(t,"P",{class:!0});var p=R(c);a=k(p,f),p.forEach(v),l=j(t),d&&d.l(t),u=w(),this.h()},h(){A(o,"class","svelte-jpshsi"),A(c,"class","svelte-jpshsi")},m(t,e){_(t,r,e),_(t,o,e),y(o,s),_(t,i,e),_(t,c,e),y(c,a),_(t,l,e),d&&d.m(t,e),_(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&q(s,t[0]),2&e&&f!==(f=t[1].message+"")&&q(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=$t(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&v(r),t&&v(o),t&&v(i),t&&v(c),t&&v(l),d&&d.d(t),t&&v(u)}}}function _t(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class vt extends ut{constructor(t){super(),lt(this,t,_t,yt,i,{status:0,error:1})}}function bt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&ot(n.$$.fragment),r=w()},l(t){n&&st(n.$$.fragment,t),r=w()},m(t,e){n&&it(n,t,e),_(t,r,e),o=!0},p(t,e){const o=16&e?nt(s,[rt(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){Q();const t=n;et(t.$$.fragment,1,0,(()=>{ct(t,1)})),Z()}i?(n=new i(c()),ot(n.$$.fragment),tt(n.$$.fragment,1),it(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&tt(n.$$.fragment,t),o=!0)},o(t){n&&et(n.$$.fragment,t),o=!1},d(t){t&&v(r),n&&ct(n,t)}}}function xt(t){let e,n;return e=new vt({props:{error:t[0],status:t[1]}}),{c(){ot(e.$$.fragment)},l(t){st(e.$$.fragment,t)},m(t,r){it(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Et(t){let e,n,r,o;const s=[xt,bt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=w()},l(t){n.l(t),r=w()},m(t,n){i[e].m(t,n),_(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(Q(),et(i[a],1,1,(()=>{i[a]=null})),Z(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),tt(n,1),n.m(r.parentNode,r))},i(t){o||(tt(n),o=!0)},o(t){et(n),o=!1},d(t){i[e].d(t),t&&v(r)}}}function St(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[Et]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new gt({props:s}),{c(){ot(n.$$.fragment)},l(t){st(n.$$.fragment,t)},m(t,e){it(n,t,e),r=!0},p(t,[e]){const r=12&e?nt(o,[4&e&&{segment:t[2][0]},8&e&&rt(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(tt(n.$$.fragment,t),r=!0)},o(t){et(n.$$.fragment,t),r=!1},d(t){ct(n,t)}}}function wt(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,I().$$.after_update.push(u),f=pt,d=r,I().$$.context.set(f,d),t.$$set=t=>{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class Nt extends ut{constructor(t){super(),lt(this,t,wt,St,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const At=[],Rt=[{js:()=>Promise.all([import("./index.f6ed59e6.js"),__inject_styles(["client-ea61129f.css","index-7c6f2209.css"])]).then((function(t){return t[0]}))}],Pt=[{pattern:/^\/$/,parts:[{i:0}]}];
+function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function a(t){let e;return c(t,(t=>e=t))(),e}function l(t,e,n){t.$$.on_destroy.push(c(e,n))}function u(t,e,n,r){if(t){const o=f(t,e,n,r);return t[0](o)}}function f(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function d(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function p(t,e,n,r,o,s){if(o){const i=f(e,n,r,s);t.p(i,o)}}function h(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let m,g=!1;function $(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function y(t,e){if(g){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&e[n[o]].claim_order<=s?o+1:$(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function _(t,e,n){g&&!n?y(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function v(t){t.parentNode.removeChild(t)}function b(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function x(t){return document.createElement(t)}function E(t){return document.createTextNode(t)}function S(){return E(" ")}function w(){return E("")}function N(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function A(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function R(t){return Array.from(t.childNodes)}function P(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;r>=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function L(t,e,n){return function(t,e,n,r){return P(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,x)}function k(t,e){return P(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>E(e)),!0)}function j(t){return k(t," ")}function q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function C(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function O(t,e,n){t.classList[n?"add":"remove"](e)}function T(t,e=document.body){return Array.from(e.querySelectorAll(t))}function U(t){m=t}function I(){if(!m)throw new Error("Function called outside component initialization");return m}const B=[],J=[],D=[],K=[],z=Promise.resolve();let H=!1;function M(t){D.push(t)}const V=new Set;let F=0;function G(){const t=m;do{for(;F<B.length;){const t=B[F];F++,U(t),W(t.$$)}for(U(null),B.length=0,F=0;J.length;)J.pop()();for(let t=0;t<D.length;t+=1){const e=D[t];V.has(e)||(V.add(e),e())}D.length=0}while(B.length);for(;K.length;)K.pop()();H=!1,V.clear(),U(t)}function W(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M)}}const Y=new Set;let X;function Q(){X={r:0,c:[],p:X}}function Z(){X.r||o(X.c),X=X.p}function tt(t,e){t&&t.i&&(Y.delete(t),t.i(e))}function et(t,e,n,r){if(t&&t.o){if(Y.has(t))return;Y.add(t),X.c.push((()=>{Y.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function nt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function rt(t){return"object"==typeof t&&null!==t?t:{}}function ot(t){t&&t.c()}function st(t,e){t&&t.l(e)}function it(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||M((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(M)}function ct(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 at(t,e){-1===t.$$.dirty[0]&&(B.push(t),H||(H=!0,z.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function lt(e,n,s,i,c,a,l,u=[-1]){const f=m;U(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let p=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),p&&at(e,t)),n})):[],d.update(),p=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){g=!0;const t=R(n.target);d.fragment&&d.fragment.l(t),t.forEach(v)}else d.fragment&&d.fragment.c();n.intro&&tt(e.$$.fragment),it(e,n.target,n.anchor,n.customElement),g=!1,G()}U(f)}class ut{$destroy(){ct(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)}}const ft=[];function dt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!ft.length;for(const t of o)t[1](),ft.push(t,e);if(t){for(let t=0;t<ft.length;t+=2)ft[t][0](ft[t+1]);ft.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const pt={};function ht(t){let e,n;const r=t[1].default,o=u(r,t,t[0],null);return{c(){e=x("div"),o&&o.c(),this.h()},l(t){e=L(t,"DIV",{class:!0});var n=R(e);o&&o.l(n),n.forEach(v),this.h()},h(){A(e,"class","app-container svelte-lkkhqy")},m(t,r){_(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&p(o,r,t,t[0],n?d(r,t[0],e,null):h(t[0]),null)},i(t){n||(tt(o,t),n=!0)},o(t){et(o,t),n=!1},d(t){t&&v(e),o&&o.d(t)}}}function mt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class gt extends ut{constructor(t){super(),lt(this,t,mt,ht,i,{})}}function $t(t){let e,n,r=t[1].stack+"";return{c(){e=x("pre"),n=E(r)},l(t){e=L(t,"PRE",{});var o=R(e);n=k(o,r),o.forEach(v)},m(t,r){_(t,e,r),y(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&q(n,r)},d(t){t&&v(e)}}}function yt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&$t(e);return{c(){r=S(),o=x("h1"),s=E(e[0]),i=S(),c=x("p"),a=E(f),l=S(),d&&d.c(),u=w(),this.h()},l(t){T('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(v),r=j(t),o=L(t,"H1",{class:!0});var n=R(o);s=k(n,e[0]),n.forEach(v),i=j(t),c=L(t,"P",{class:!0});var p=R(c);a=k(p,f),p.forEach(v),l=j(t),d&&d.l(t),u=w(),this.h()},h(){A(o,"class","svelte-jpshsi"),A(c,"class","svelte-jpshsi")},m(t,e){_(t,r,e),_(t,o,e),y(o,s),_(t,i,e),_(t,c,e),y(c,a),_(t,l,e),d&&d.m(t,e),_(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&q(s,t[0]),2&e&&f!==(f=t[1].message+"")&&q(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=$t(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&v(r),t&&v(o),t&&v(i),t&&v(c),t&&v(l),d&&d.d(t),t&&v(u)}}}function _t(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class vt extends ut{constructor(t){super(),lt(this,t,_t,yt,i,{status:0,error:1})}}function bt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&ot(n.$$.fragment),r=w()},l(t){n&&st(n.$$.fragment,t),r=w()},m(t,e){n&&it(n,t,e),_(t,r,e),o=!0},p(t,e){const o=16&e?nt(s,[rt(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){Q();const t=n;et(t.$$.fragment,1,0,(()=>{ct(t,1)})),Z()}i?(n=new i(c()),ot(n.$$.fragment),tt(n.$$.fragment,1),it(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&tt(n.$$.fragment,t),o=!0)},o(t){n&&et(n.$$.fragment,t),o=!1},d(t){t&&v(r),n&&ct(n,t)}}}function xt(t){let e,n;return e=new vt({props:{error:t[0],status:t[1]}}),{c(){ot(e.$$.fragment)},l(t){st(e.$$.fragment,t)},m(t,r){it(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Et(t){let e,n,r,o;const s=[xt,bt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=w()},l(t){n.l(t),r=w()},m(t,n){i[e].m(t,n),_(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(Q(),et(i[a],1,1,(()=>{i[a]=null})),Z(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),tt(n,1),n.m(r.parentNode,r))},i(t){o||(tt(n),o=!0)},o(t){et(n),o=!1},d(t){i[e].d(t),t&&v(r)}}}function St(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[Et]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new gt({props:s}),{c(){ot(n.$$.fragment)},l(t){st(n.$$.fragment,t)},m(t,e){it(n,t,e),r=!0},p(t,[e]){const r=12&e?nt(o,[4&e&&{segment:t[2][0]},8&e&&rt(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(tt(n.$$.fragment,t),r=!0)},o(t){et(n.$$.fragment,t),r=!1},d(t){ct(n,t)}}}function wt(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,I().$$.after_update.push(u),f=pt,d=r,I().$$.context.set(f,d),t.$$set=t=>{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class Nt extends ut{constructor(t){super(),lt(this,t,wt,St,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const At=[],Rt=[{js:()=>Promise.all([import("./index.1b1af70b.js"),__inject_styles(["client-ea61129f.css","index-8f3929f0.css"])]).then((function(t){return t[0]}))}],Pt=[{pattern:/^\/$/,parts:[{i:0}]}];
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
@@ -13,6 +13,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
-function Lt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function kt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let jt,qt=1;const Ct="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Ot={};let Tt,Ut;function It(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Bt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Tt))return null;let e=t.pathname.slice(Tt.length);if(""===e&&(e="/"),!At.some((t=>t.test(e))))for(let n=0;n<Pt.length;n+=1){const r=Pt[n],o=r.pattern.exec(e);if(o){const n=It(t.search),s=r.parts[r.parts.length-1],i=s.params?s.params(o):{},c={host:location.host,path:e,query:n,params:i};return{href:t.href,route:r,match:o,page:c}}}}function Jt(t){if(1!==function(t){return null===t.which?t.button:t.which}(t))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const e=kt(t.target);if(!e)return;if(!e.href)return;const n="object"==typeof e.href&&"SVGAnimatedString"===e.href.constructor.name,r=String(n?e.href.baseVal:e.href);if(r===location.href)return void(location.hash||t.preventDefault());if(e.hasAttribute("download")||"external"===e.getAttribute("rel"))return;if(n?e.target.baseVal:e.target)return;const o=new URL(r);if(o.pathname===location.pathname&&o.search===location.search)return;const s=Bt(o);if(s){zt(s,null,e.hasAttribute("sapper:noscroll"),o.hash),t.preventDefault(),Ct.pushState({id:jt},"",o.href)}}function Dt(){return{x:pageXOffset,y:pageYOffset}}function Kt(t){if(Ot[jt]=Dt(),t.state){const e=Bt(new URL(location.href));e?zt(e,t.state.id):location.href=location.href}else qt=qt+1,function(t){jt=t}(qt),Ct.replaceState({id:jt},"",location.href)}function zt(t,e,n,r){return Lt(this,void 0,void 0,(function*(){const o=!!e;if(o)jt=e;else{const t=Dt();Ot[jt]=t,jt=e=++qt,Ot[jt]=n?t:{x:0,y:0}}if(yield Ut(t),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let t,n=Ot[e];r&&(t=document.getElementById(r.slice(1)),t&&(n={x:0,y:t.getBoundingClientRect().top+scrollY})),Ot[jt]=n,o||t?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function Ht(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}let Mt,Vt=null;function Ft(t){const e=kt(t.target);e&&"prefetch"===e.rel&&function(t){const e=Bt(new URL(t,Ht(document)));if(e)Vt&&t===Vt.href||(Vt={href:t,promise:ue(e)}),Vt.promise}(e.href)}function Gt(t){clearTimeout(Mt),Mt=setTimeout((()=>{Ft(t)}),20)}function Wt(t,e={noscroll:!1,replaceState:!1}){const n=Bt(new URL(t,Ht(document)));return n?(Ct[e.replaceState?"replaceState":"pushState"]({id:jt},"",t),zt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Yt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Xt,Qt,Zt,te=!1,ee=[],ne="{}";const re={page:function(t){const e=dt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:dt(null),session:dt(Yt&&Yt.session)};let oe,se,ie;function ce(t,e){const{error:n}=t;return Object.assign({error:n},e)}function ae(t){return Lt(this,void 0,void 0,(function*(){Xt&&re.preloading.set(!0);const e=function(t){return Vt&&Vt.href===t.href?Vt.promise:ue(t)}(t),n=Qt={},r=yield e,{redirect:o}=r;if(n===Qt)if(o)yield Wt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield le(n,e,ce(e,t.page))}}))}function le(t,e,n){return Lt(this,void 0,void 0,(function*(){re.page.set(n),re.preloading.set(!1),Xt?Xt.$set(e):(e.stores={page:{subscribe:re.page.subscribe},preloading:{subscribe:re.preloading.subscribe},session:re.session},e.level0={props:yield Zt},e.notify=re.page.notify,Xt=new Nt({target:ie,props:e,hydrate:!0})),ee=t,ne=JSON.stringify(n.query),te=!0,se=!1}))}function ue(t){return Lt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Zt){const t=()=>({});Zt=Yt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},oe)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>Lt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==ne)return!0;const o=ee[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!se&&!u&&ee[c]&&ee[c].part===e.i)return ee[c];u=!1;const{default:p,preload:h}=yield Rt[e.i].js();let m;return m=te||!Yt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},oe):{}:Yt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var fe,de,pe;re.session.subscribe((t=>Lt(void 0,void 0,void 0,(function*(){if(oe=t,!te)return;se=!0;const e=Bt(new URL(location.href)),n=Qt={},{redirect:r,props:o,branch:s}=yield ue(e);n===Qt&&(r?yield Wt(r.location,{replaceState:!0}):yield le(s,o,ce(o,e.page)))})))),fe={target:document.querySelector(".app")},de=fe.target,ie=de,pe=Yt.baseUrl,Tt=pe,Ut=ae,"scrollRestoration"in Ct&&(Ct.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{Ct.scrollRestoration="auto"})),addEventListener("load",(()=>{Ct.scrollRestoration="manual"})),addEventListener("click",Jt),addEventListener("popstate",Kt),addEventListener("touchstart",Ft),addEventListener("mousemove",Gt),Yt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Yt;Zt||(Zt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Zt},level1:{props:{status:s,error:i},component:vt},segments:o},a=It(n);le([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;Ct.replaceState({id:qt},"",e);const n=Bt(new URL(location.href));if(n)return zt(n,qt,!0,t)}));export{ct as A,u as B,p as C,h as D,d as E,C as F,b as G,O as H,N as I,o as J,T as K,ut as S,R as a,A as b,L as c,v as d,x as e,_ as f,y as g,a as h,lt as i,S as j,j as k,k as l,q as m,t as n,w as o,Q as p,et as q,Z as r,i as s,E as t,tt as u,l as v,dt as w,ot as x,st as y,it as z};
+function Lt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function kt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let jt,qt=1;const Ct="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Ot={};let Tt,Ut;function It(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Bt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Tt))return null;let e=t.pathname.slice(Tt.length);if(""===e&&(e="/"),!At.some((t=>t.test(e))))for(let n=0;n<Pt.length;n+=1){const r=Pt[n],o=r.pattern.exec(e);if(o){const n=It(t.search),s=r.parts[r.parts.length-1],i=s.params?s.params(o):{},c={host:location.host,path:e,query:n,params:i};return{href:t.href,route:r,match:o,page:c}}}}function Jt(t){if(1!==function(t){return null===t.which?t.button:t.which}(t))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const e=kt(t.target);if(!e)return;if(!e.href)return;const n="object"==typeof e.href&&"SVGAnimatedString"===e.href.constructor.name,r=String(n?e.href.baseVal:e.href);if(r===location.href)return void(location.hash||t.preventDefault());if(e.hasAttribute("download")||"external"===e.getAttribute("rel"))return;if(n?e.target.baseVal:e.target)return;const o=new URL(r);if(o.pathname===location.pathname&&o.search===location.search)return;const s=Bt(o);if(s){zt(s,null,e.hasAttribute("sapper:noscroll"),o.hash),t.preventDefault(),Ct.pushState({id:jt},"",o.href)}}function Dt(){return{x:pageXOffset,y:pageYOffset}}function Kt(t){if(Ot[jt]=Dt(),t.state){const e=Bt(new URL(location.href));e?zt(e,t.state.id):location.href=location.href}else qt=qt+1,function(t){jt=t}(qt),Ct.replaceState({id:jt},"",location.href)}function zt(t,e,n,r){return Lt(this,void 0,void 0,(function*(){const o=!!e;if(o)jt=e;else{const t=Dt();Ot[jt]=t,jt=e=++qt,Ot[jt]=n?t:{x:0,y:0}}if(yield Ut(t),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let t,n=Ot[e];r&&(t=document.getElementById(r.slice(1)),t&&(n={x:0,y:t.getBoundingClientRect().top+scrollY})),Ot[jt]=n,o||t?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function Ht(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}let Mt,Vt=null;function Ft(t){const e=kt(t.target);e&&"prefetch"===e.rel&&function(t){const e=Bt(new URL(t,Ht(document)));if(e)Vt&&t===Vt.href||(Vt={href:t,promise:ue(e)}),Vt.promise}(e.href)}function Gt(t){clearTimeout(Mt),Mt=setTimeout((()=>{Ft(t)}),20)}function Wt(t,e={noscroll:!1,replaceState:!1}){const n=Bt(new URL(t,Ht(document)));return n?(Ct[e.replaceState?"replaceState":"pushState"]({id:jt},"",t),zt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Yt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Xt,Qt,Zt,te=!1,ee=[],ne="{}";const re={page:function(t){const e=dt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:dt(null),session:dt(Yt&&Yt.session)};let oe,se,ie;function ce(t,e){const{error:n}=t;return Object.assign({error:n},e)}function ae(t){return Lt(this,void 0,void 0,(function*(){Xt&&re.preloading.set(!0);const e=function(t){return Vt&&Vt.href===t.href?Vt.promise:ue(t)}(t),n=Qt={},r=yield e,{redirect:o}=r;if(n===Qt)if(o)yield Wt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield le(n,e,ce(e,t.page))}}))}function le(t,e,n){return Lt(this,void 0,void 0,(function*(){re.page.set(n),re.preloading.set(!1),Xt?Xt.$set(e):(e.stores={page:{subscribe:re.page.subscribe},preloading:{subscribe:re.preloading.subscribe},session:re.session},e.level0={props:yield Zt},e.notify=re.page.notify,Xt=new Nt({target:ie,props:e,hydrate:!0})),ee=t,ne=JSON.stringify(n.query),te=!0,se=!1}))}function ue(t){return Lt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Zt){const t=()=>({});Zt=Yt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},oe)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>Lt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==ne)return!0;const o=ee[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!se&&!u&&ee[c]&&ee[c].part===e.i)return ee[c];u=!1;const{default:p,preload:h}=yield Rt[e.i].js();let m;return m=te||!Yt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},oe):{}:Yt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var fe,de,pe;re.session.subscribe((t=>Lt(void 0,void 0,void 0,(function*(){if(oe=t,!te)return;se=!0;const e=Bt(new URL(location.href)),n=Qt={},{redirect:r,props:o,branch:s}=yield ue(e);n===Qt&&(r?yield Wt(r.location,{replaceState:!0}):yield le(s,o,ce(o,e.page)))})))),fe={target:document.querySelector(".app")},de=fe.target,ie=de,pe=Yt.baseUrl,Tt=pe,Ut=ae,"scrollRestoration"in Ct&&(Ct.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{Ct.scrollRestoration="auto"})),addEventListener("load",(()=>{Ct.scrollRestoration="manual"})),addEventListener("click",Jt),addEventListener("popstate",Kt),addEventListener("touchstart",Ft),addEventListener("mousemove",Gt),Yt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Yt;Zt||(Zt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Zt},level1:{props:{status:s,error:i},component:vt},segments:o},a=It(n);le([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;Ct.replaceState({id:qt},"",e);const n=Bt(new URL(location.href));if(n)return zt(n,qt,!0,t)}));export{ct as A,u as B,p as C,h as D,d as E,C as F,b as G,O as H,N as I,o as J,T as K,ut as S,R as a,A as b,L as c,v as d,x as e,_ as f,y as g,a as h,lt as i,S as j,w as k,j as l,k as m,t as n,q as o,Q as p,et as q,Z as r,i as s,E as t,tt as u,l as v,dt as w,ot as x,st as y,it as z};
import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file
diff --git a/client/legacy/index-7c6f2209.css b/client/index-8f3929f0.css
index 3daa89c..aa46831 100644
--- a/client/legacy/index-7c6f2209.css
+++ b/client/index-8f3929f0.css
@@ -11,5 +11,5 @@
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem}
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
-.drawer.svelte-2wkoqk.svelte-2wkoqk{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-2wkoqk.svelte-2wkoqk{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-2wkoqk.svelte-2wkoqk{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-2wkoqk .header.svelte-2wkoqk{display:flex;align-items:flex-start}.drawer.svelte-2wkoqk h2.svelte-2wkoqk{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-2wkoqk.svelte-2wkoqk{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-2wkoqk>.svelte-2wkoqk{transition:all 0.1s ease}.version-picker.svelte-2wkoqk .selected.svelte-2wkoqk{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-2wkoqk.svelte-2wkoqk{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-2wkoqk.svelte-2wkoqk{margin-top:1rem}
+.drawer.svelte-11gsg4a.svelte-11gsg4a{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-11gsg4a.svelte-11gsg4a{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-11gsg4a.svelte-11gsg4a{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-11gsg4a .header.svelte-11gsg4a{display:flex;align-items:flex-start}.drawer.svelte-11gsg4a h2.svelte-11gsg4a{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-11gsg4a.svelte-11gsg4a{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-11gsg4a>.svelte-11gsg4a{transition:all 0.1s ease}.version-picker.svelte-11gsg4a .selected.svelte-11gsg4a{background-color:var(--elevation-1, #c2c2c2);padding:3px 5px;box-sizing:border-box;border-radius:10px;color:var(--on-elevation-1, #000000)}.no-data.svelte-11gsg4a.svelte-11gsg4a{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-11gsg4a.svelte-11gsg4a{margin-top:1rem}
.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25}
diff --git a/client/index.1b1af70b.js b/client/index.1b1af70b.js
new file mode 100644
index 0000000..30c9fc8
--- /dev/null
+++ b/client/index.1b1af70b.js
@@ -0,0 +1 @@
+import{S as e,i as t,s as a,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as u,w as d,h,j as f,k as p,l as m,t as g,m as v,o as _,p as k,q as b,r as $,u as w,v as E,x as D,y,z as I,A as V,B as j,C as O,D as q,E as T,F as M,G as x,H as P,I as S,J as N,K as A}from"./client.c340c0cb.js";function C(e){let t,a,d,h,f,p,m,g,v;return{c(){t=s("div"),a=s("div"),d=s("div"),h=s("div"),f=s("div"),p=s("div"),m=s("div"),g=s("div"),v=s("div"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0}),n(a).forEach(r),d=l(s,"DIV",{class:!0}),n(d).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(t,f),o(t,p),o(t,m),o(t,g),o(t,v)},p:u,i:u,o:u,d(e){e&&r(t)}}}class J extends e{constructor(e){super(),t(this,e,null,C,a,{})}}const B={January:1,Feb:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12};function H(e){return e=function(e){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(e))return e;if(/^\d{4}\s[a-z,A-Z]+\s\d{2}$/.test(e)){let t=e.split(" ");return`${t[0]}-${function(e,t=2){let a=e.toString();for(;t-a.length>0;)a="0"+a;return a}(B[t[1]])}-${t[2]}T00:00:00Z`}return/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test(e)?e.replace(" ","T")+"Z":/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{4}/.test(e)?e.replace(" ","T").split(".")[0]+"Z":(console.warn(e),e)}(e),new Date(e)}const K=d("light");setInterval((function(){if("undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";e!=h(K)&&K.set(e)}),1e3),K.subscribe((e=>{"undefined"!=typeof window&&("dark"==e?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));const z={updated:!1,updating:!0},F=d(Object.assign(Object.assign({},z),{available:!1,longitude:null,latitude:null,city:null})),Z=d(Object.assign(Object.assign({},z),{available:!1})),L=d(Object.assign({},z));!async function(){if("undefined"==typeof window)return;let e;R(F,!0);try{e=await async function(){return new Promise(((e,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{e({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(e=>{t(e)})):t(Error())}))}()}catch(e){return console.log(e),F.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void R(F,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();F.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),R(F,!1)}(),F.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return Z.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void R(Z,!1);R(Z,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e.latitude}&lon=${e.longitude}`),a=await t.json(),s={clouds:null,temp:null};try{s.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((e=>Object.assign(Object.assign({},e),{time:H(e.time)})))}catch(e){}Z.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),R(Z,!1)})),async function(){if("undefined"==typeof window)return;R(L,!0);let e=await async function(){let e,t={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await a.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=H(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,a=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),e=await a.json(),e=e.map((e=>Object.assign(Object.assign({},e),{model_prediction_time:H(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),e=[...e.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],e=e.map((e=>Object.assign(Object.assign({},e.groups),{time:H(e.groups.time)}))),t.usnoaa_data_raw.outlook_27_day=e,a=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await a.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let s=new Date,l=new Date(0,0,0),n=1e3,r=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,a)=>{e[1]>r&&(r=e[1]),e[1]<n&&(n=e[1]);let c=H(e[0]);Math.abs(c.getTime()-s.getTime())<Math.abs(l.getTime()-s.getTime())&&(l=c,t.now.kp=e[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[a]={time:c,kp:e[1],observed:e[2]}})),t.now.kp_min=n.toString(),t.now.kp_max=r.toString(),console.log(t),t}();L.update((t=>Object.assign(Object.assign({},t),e))),R(L,!1)}();const G=(e,t)=>{"undefined"!=typeof window&&localStorage.setItem(e,JSON.stringify(t))};function R(e,t=!1){let a=t?{}:{updated:new Date};e.update((e=>Object.assign(Object.assign(Object.assign({},e),a),{updating:t})))}function Q(e){let t,a,o;function u(e,t){return void 0!==e[0].city?W:U}let d=u(e),h=d(e);return{c(){t=s("i"),a=f(),h.c(),o=p(),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=m(e),h.l(e),o=p(),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),h.m(e,s),i(e,o,s)},p(e,t){d===(d=u(e))&&h?h.p(e,t):(h.d(1),h=d(e),h&&(h.c(),h.m(o.parentNode,o)))},d(e){e&&r(t),e&&r(a),h.d(e),e&&r(o)}}}function U(e){let t,a,u,d,h,f,p=e[0].longitude+"",m=e[0].latitude+"";return{c(){t=s("h1"),a=g("long: "),u=g(p),d=s("br"),h=g("lat: "),f=g(m),this.h()},l(e){t=l(e,"H1",{class:!0});var s=n(t);a=v(s,"long: "),u=v(s,p),d=l(s,"BR",{}),h=v(s,"lat: "),f=v(s,m),s.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(t,u),o(t,d),o(t,h),o(t,f)},p(e,t){1&t&&p!==(p=e[0].longitude+"")&&_(u,p),1&t&&m!==(m=e[0].latitude+"")&&_(f,m)},d(e){e&&r(t)}}}function W(e){let t,a,u=e[0].city+"";return{c(){t=s("h1"),a=g(u),this.h()},l(e){t=l(e,"H1",{class:!0});var s=n(t);a=v(s,u),s.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a)},p(e,t){1&t&&u!==(u=e[0].city+"")&&_(a,u)},d(e){e&&r(t)}}}function X(e){let t,a;function s(e,a){return 6&a&&(t=null),null==t&&(t=!!(Math.abs(e[1].updated-e[2].updated)>6e5)),t?ee:Y}let l=s(e,-1),n=l(e);return{c(){n.c(),a=p()},l(e){n.l(e),a=p()},m(e,t){n.m(e,t),i(e,a,t)},p(e,t){l===(l=s(e,t))&&n?n.p(e,t):(n.d(1),n=l(e),n&&(n.c(),n.m(a.parentNode,a)))},d(e){n.d(e),e&&r(a)}}}function Y(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=g(c)},l(e){t=l(e,"P",{});var s=n(t);a=v(s,c),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p(e,t){2&t&&c!==(c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&_(a,c)},d(e){e&&r(t)}}}function ee(e){let t,a;return{c(){t=s("p"),a=g("There is more than 10 minutes difference between data updates")},l(e){t=l(e,"P",{});var s=n(t);a=v(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p:u,d(e){e&&r(t)}}}function te(e){let t,a,d,h,p,k,b,$,w,E,D,y,I=e[2].now.kp+"",V=e[2].now.kp_max+"",j=e[2].now.kp_min+"";return{c(){t=s("h2"),a=g("KP "),d=g(I),h=f(),p=s("p"),k=s("span"),b=g("↑ KP "),$=g(V),w=f(),E=s("span"),D=g("↓ KP "),y=g(j),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=v(s,"KP "),d=v(s,I),s.forEach(r),h=m(e),p=l(e,"P",{});var c=n(p);k=l(c,"SPAN",{classname:!0});var i=n(k);b=v(i,"↑ KP "),$=v(i,V),i.forEach(r),w=m(c),E=l(c,"SPAN",{classname:!0});var o=n(E);D=v(o,"↓ KP "),y=v(o,j),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(k,"classname","pr-2"),c(E,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,d),i(e,h,s),i(e,p,s),o(p,k),o(k,b),o(k,$),o(p,w),o(p,E),o(E,D),o(E,y)},p(e,t){4&t&&I!==(I=e[2].now.kp+"")&&_(d,I),4&t&&V!==(V=e[2].now.kp_max+"")&&_($,V),4&t&&j!==(j=e[2].now.kp_min+"")&&_(y,j)},i:u,o:u,d(e){e&&r(t),e&&r(h),e&&r(p)}}}function ae(e){let t,a;return t=new J({}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p:u,i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function se(e){let t,a,u,d,h,k,b,$,w,E,D,y,I,V,j,O=e[2].now.bz+"",q=e[2].now.bt+"",T=e[1].available&&le(e);return{c(){t=s("div"),a=s("p"),u=g("BZ"),d=f(),h=s("p"),k=g(O),b=f(),$=s("div"),w=s("p"),E=g("BT"),D=f(),y=s("p"),I=g(q),V=f(),T&&T.c(),j=p(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=v(c,"BZ"),c.forEach(r),d=m(s),h=l(s,"P",{class:!0});var i=n(h);k=v(i,O),i.forEach(r),s.forEach(r),b=m(e),$=l(e,"DIV",{});var o=n($);w=l(o,"P",{class:!0});var f=n(w);E=v(f,"BT"),f.forEach(r),D=m(o),y=l(o,"P",{class:!0});var g=n(y);I=v(g,q),g.forEach(r),o.forEach(r),V=m(e),T&&T.l(e),j=p(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(h,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,h),o(h,k),i(e,b,s),i(e,$,s),o($,w),o(w,E),o($,D),o($,y),o(y,I),i(e,V,s),T&&T.m(e,s),i(e,j,s)},p(e,t){4&t&&O!==(O=e[2].now.bz+"")&&_(k,O),4&t&&q!==(q=e[2].now.bt+"")&&_(I,q),e[1].available?T?T.p(e,t):(T=le(e),T.c(),T.m(j.parentNode,j)):T&&(T.d(1),T=null)},d(e){e&&r(t),e&&r(b),e&&r($),e&&r(V),T&&T.d(e),e&&r(j)}}}function le(e){let t,a,u,d,h,p,k,b,$,w,E,D,y,I,V,j=e[1].now.temp+"",O=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),u=g("Temp"),d=f(),h=s("p"),p=g(j),k=g("°C"),b=f(),$=s("div"),w=s("p"),E=g("Clouds"),D=f(),y=s("p"),I=g(O),V=g("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=v(c,"Temp"),c.forEach(r),d=m(s),h=l(s,"P",{class:!0});var i=n(h);p=v(i,j),k=v(i,"°C"),i.forEach(r),s.forEach(r),b=m(e),$=l(e,"DIV",{});var o=n($);w=l(o,"P",{class:!0});var f=n(w);E=v(f,"Clouds"),f.forEach(r),D=m(o),y=l(o,"P",{class:!0});var g=n(y);I=v(g,O),V=v(g,"%"),g.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(h,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,h),o(h,p),o(h,k),i(e,b,s),i(e,$,s),o($,w),o(w,E),o($,D),o($,y),o(y,I),o(y,V)},p(e,t){2&t&&j!==(j=e[1].now.temp+"")&&_(p,j),2&t&&O!==(O=e[1].now.clouds+"")&&_(I,O)},d(e){e&&r(t),e&&r(b),e&&r($)}}}function ne(e){let t,a,u,d,h,p,g,v,_,E,D,y,I=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&Q(e),V=!e[1].updating&&!e[2].updating&&X(e);const j=[ae,te],O=[];function q(e,t){return e[2].updating||e[1].updating?0:1}v=q(e),_=O[v]=j[v](e);let T=!e[2].updating&&!e[1].updating&&se(e);return{c(){t=s("div"),a=s("div"),u=s("div"),I&&I.c(),d=f(),h=s("div"),V&&V.c(),p=f(),g=s("div"),_.c(),E=f(),D=s("div"),T&&T.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0});var c=n(a);u=l(c,"DIV",{class:!0});var i=n(u);I&&I.l(i),i.forEach(r),d=m(c),h=l(c,"DIV",{class:!0});var o=n(h);V&&V.l(o),o.forEach(r),p=m(c),g=l(c,"DIV",{class:!0});var f=n(g);_.l(f),f.forEach(r),E=m(c),D=l(c,"DIV",{class:!0});var v=n(D);T&&T.l(v),v.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9kdo4s"),c(h,"class","weatherCurrent-data-date"),c(g,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(a,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),I&&I.m(u,null),o(a,d),o(a,h),V&&V.m(h,null),o(a,p),o(a,g),O[v].m(g,null),o(a,E),o(a,D),T&&T.m(D,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=Q(e),I.c(),I.m(u,null)),e[1].updating||e[2].updating?V&&(V.d(1),V=null):V?V.p(e,t):(V=X(e),V.c(),V.m(h,null));let a=v;v=q(e),v===a?O[v].p(e,t):(k(),b(O[a],1,1,(()=>{O[a]=null})),$(),_=O[v],_?_.p(e,t):(_=O[v]=j[v](e),_.c()),w(_,1),_.m(g,null)),e[2].updating||e[1].updating?T&&(T.d(1),T=null):T?T.p(e,t):(T=se(e),T.c(),T.m(D,null))},i(e){y||(w(_),y=!0)},o(e){b(_),y=!1},d(e){e&&r(t),I&&I.d(),V&&V.d(),O[v].d(),T&&T.d()}}}function re(e,t,a){let s,l,n;return E(e,F,(e=>a(0,s=e))),E(e,Z,(e=>a(1,l=e))),E(e,L,(e=>a(2,n=e))),[s,l,n]}F.subscribe((e=>G("navigator_location",e))),Z.subscribe((e=>G("earth_weather",e))),L.subscribe((e=>G("space_weather",e)));class ce extends e{constructor(e){super(),t(this,e,re,ne,a,{})}}function ie(e){let t,a;const o=e[1].default,u=j(o,e,e[0],null);return{c(){t=s("div"),u&&u.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);u&&u.l(a),a.forEach(r),this.h()},h(){c(t,"class","chip svelte-1jb0ny7")},m(e,s){i(e,t,s),u&&u.m(t,null),a=!0},p(e,[t]){u&&u.p&&(!a||1&t)&&O(u,o,e,e[0],a?T(o,e[0],t,null):q(e[0]),null)},i(e){a||(w(u,e),a=!0)},o(e){b(u,e),a=!1},d(e){e&&r(t),u&&u.d(e)}}}function oe(e,t,a){let{$$slots:s={},$$scope:l}=t;return e.$$set=e=>{"$$scope"in e&&a(0,l=e.$$scope)},[l,s]}class ue extends e{constructor(e){super(),t(this,e,oe,ie,a,{})}}function de(e){let t,a,d,h,p,k;return{c(){t=s("div"),a=s("div"),d=s("div"),h=f(),p=s("span"),k=g(e[1]),this.h()},l(s){t=l(s,"DIV",{class:!0,style:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"DIV",{class:!0}),n(d).forEach(r),i.forEach(r),h=m(c),p=l(c,"SPAN",{class:!0});var o=n(p);k=v(o,e[1]),o.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","bar svelte-1mo8cjf"),c(a,"class","bar-wrapper svelte-1mo8cjf"),c(p,"class","value svelte-1mo8cjf"),c(t,"class","wrapper svelte-1mo8cjf"),M(t,"--progress",100*e[0]+"%")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,h),o(t,p),o(p,k)},p(e,[a]){2&a&&_(k,e[1]),1&a&&M(t,"--progress",100*e[0]+"%")},i:u,o:u,d(e){e&&r(t)}}}function he(e,t,a){let{percentage:s}=t,{value:l}=t;return e.$$set=e=>{"percentage"in e&&a(0,s=e.percentage),"value"in e&&a(1,l=e.value)},[s,l]}class fe extends e{constructor(e){super(),t(this,e,he,de,a,{percentage:0,value:1})}}function pe(e){let t,a,d,h,p,_,k,$,E,j,O,q,T;j=new fe({props:{percentage:e[0]/9,value:e[0]}});let M=e[5]&&function(e){let t,a,d,h,p,_,k,b,$,w,E,D,y=Math.round(e[3])+"",I=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),h=f(),p=g(y),_=g("°C"),k=f(),b=s("p"),$=s("i"),w=f(),E=g(I),D=g("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),h=m(c),p=v(c,y),_=v(c,"°C"),c.forEach(r),k=m(s),b=l(s,"P",{class:!0});var i=n(b);$=l(i,"I",{class:!0}),n($).forEach(r),w=m(i),E=v(i,I),D=v(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c($,"class","fas fa-cloud svelte-m9qkku"),c(b,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,h),o(a,p),o(a,_),o(t,k),o(t,b),o(b,$),o(b,w),o(b,E),o(b,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),h=g(e[2]),p=f(),_=s("p"),k=g(e[1]),$=f(),E=s("div"),D(j.$$.fragment),O=f(),q=s("div"),M&&M.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);h=v(o,e[2]),o.forEach(r),p=m(i),_=l(i,"P",{class:!0});var u=n(_);k=v(u,e[1]),u.forEach(r),i.forEach(r),$=m(c),E=l(c,"DIV",{class:!0});var f=n(E);y(j.$$.fragment,f),f.forEach(r),O=m(c),q=l(c,"DIV",{class:!0});var g=n(q);M&&M.l(g),g.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(_,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(E,"class","KP svelte-m9qkku"),c(q,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,h),o(a,p),o(a,_),o(_,k),o(t,$),o(t,E),I(j,E,null),o(t,O),o(t,q),M&&M.m(q,null),T=!0},p(e,[t]){e[5]&&M.p(e,t)},i(e){T||(w(j.$$.fragment,e),T=!0)},o(e){b(j.$$.fragment,e),T=!1},d(e){e&&r(t),V(j),M&&M.d()}}}function me(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function ge(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=me(s.time.getHours().toString())+":"+me(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class ve extends e{constructor(e){super(),t(this,e,ge,pe,a,{prediction:6})}}function _e(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function ke(e){let t,a;return t=new ve({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function be(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=ke(_e(e,o,t));const d=e=>b(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=_e(e,o,s);u[s]?(u[s].p(l,a),w(u[s],1)):(u[s]=ke(l),u[s].c(),w(u[s],1),u[s].m(t,null))}for(k(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)w(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)b(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function $e(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((e=>e.model_prediction_time>=new Date));a(0,n=e.map((e=>({time:e.model_prediction_time,kp:Math.round(e.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>18e6)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,Z,(e=>a(1,s=e))),E(e,L,(e=>a(2,l=e))),L.subscribe(r),Z.subscribe(r),[n]}class we extends e{constructor(e){super(),t(this,e,$e,be,a,{})}}function Ee(e){let t,a,o;return a=new ue({props:{$$slots:{default:[De]},$$scope:{ctx:e}}}),{c(){t=s("div"),D(a.$$.fragment),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);y(a.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),I(a,t,null),o=!0},p(e,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(w(a.$$.fragment,e),o=!0)},o(e){b(a.$$.fragment,e),o=!1},d(e){e&&r(t),V(a)}}}function De(e){let t,a=e[0].observed+"";return{c(){t=g(a)},l(e){t=v(e,a)},m(e,a){i(e,t,a)},p(e,s){1&s&&a!==(a=e[0].observed+"")&&_(t,a)},d(e){e&&r(t)}}}function ye(e){let t,a,d,h,p,_,E,j,O,q,T,M,x,P,S="predicted"!=e[0].observed&&Ee(e);T=new fe({props:{percentage:e[1]/9,value:e[1]}});let N=e[6]&&function(e){let t,a,d,h,p,_,k,b,$,w,E,D,y=Math.round(e[4])+"",I=Math.round(e[5])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),h=f(),p=g(y),_=g("°C"),k=f(),b=s("p"),$=s("i"),w=f(),E=g(I),D=g("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),h=m(c),p=v(c,y),_=v(c,"°C"),c.forEach(r),k=m(s),b=l(s,"P",{class:!0});var i=n(b);$=l(i,"I",{class:!0}),n($).forEach(r),w=m(i),E=v(i,I),D=v(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c($,"class","fas fa-cloud svelte-m9qkku"),c(b,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,h),o(a,p),o(a,_),o(t,k),o(t,b),o(b,$),o(b,w),o(b,E),o(b,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),h=g(e[3]),p=f(),_=s("p"),E=g(e[2]),j=f(),S&&S.c(),O=f(),q=s("div"),D(T.$$.fragment),M=f(),x=s("div"),N&&N.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);h=v(o,e[3]),o.forEach(r),p=m(i),_=l(i,"P",{class:!0});var u=n(_);E=v(u,e[2]),u.forEach(r),i.forEach(r),j=m(c),S&&S.l(c),O=m(c),q=l(c,"DIV",{class:!0});var f=n(q);y(T.$$.fragment,f),f.forEach(r),M=m(c),x=l(c,"DIV",{class:!0});var g=n(x);N&&N.l(g),g.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(_,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(q,"class","KP svelte-m9qkku"),c(x,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,h),o(a,p),o(a,_),o(_,E),o(t,j),S&&S.m(t,null),o(t,O),o(t,q),I(T,q,null),o(t,M),o(t,x),N&&N.m(x,null),P=!0},p(e,[a]){"predicted"!=e[0].observed?S?(S.p(e,a),1&a&&w(S,1)):(S=Ee(e),S.c(),w(S,1),S.m(t,O)):S&&(k(),b(S,1,1,(()=>{S=null})),$()),e[6]&&N.p(e,a)},i(e){P||(w(S),w(T.$$.fragment,e),P=!0)},o(e){b(S),b(T.$$.fragment,e),P=!1},d(e){e&&r(t),S&&S.d(),V(T),N&&N.d()}}}function Ie(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function Ve(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=Ie(s.time.getHours().toString())+":"+Ie(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(0,s=e.prediction)},[s,l,n,r,c,i,o]}class je extends e{constructor(e){super(),t(this,e,Ve,ye,a,{prediction:0})}}function Oe(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function qe(e){let t,a;return t=new je({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function Te(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=qe(Oe(e,o,t));const d=e=>b(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Oe(e,o,s);u[s]?(u[s].p(l,a),w(u[s],1)):(u[s]=qe(l),u[s].c(),w(u[s],1),u[s].m(t,null))}for(k(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)w(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)b(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function Me(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((e=>"observed"!==e.observed));a(0,n=e.map((e=>({time:e.time,kp:e.kp,observed:e.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return E(e,Z,(e=>a(1,s=e))),E(e,L,(e=>a(2,l=e))),L.subscribe(r),Z.subscribe(r),[n]}class xe extends e{constructor(e){super(),t(this,e,Me,Te,a,{})}}function Pe(e){let t,a,u,d,h,p,_,k,$,E;return _=new fe({props:{percentage:e[0]/9,value:e[0]}}),{c(){t=s("div"),a=s("div"),u=s("h3"),d=g(e[1]),h=f(),p=s("div"),D(_.$$.fragment),k=f(),$=s("div"),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);d=v(o,e[1]),o.forEach(r),i.forEach(r),h=m(c),p=l(c,"DIV",{class:!0});var f=n(p);y(_.$$.fragment,f),f.forEach(r),k=m(c),$=l(c,"DIV",{class:!0}),n($).forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(p,"class","KP svelte-m9qkku"),c($,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,d),o(t,h),o(t,p),I(_,p,null),o(t,k),o(t,$),E=!0},p(e,[t]){},i(e){E||(w(_.$$.fragment,e),E=!0)},o(e){b(_.$$.fragment,e),E=!1},d(e){e&&r(t),V(_)}}}function Se(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function Ne(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()];Se(s.time.getHours().toString()),Se(s.time.getMinutes().toString());let r=s.temp,c=s.clouds;return e.$$set=e=>{"prediction"in e&&a(4,s=e.prediction)},[l,n,r,c,s]}class Ae extends e{constructor(e){super(),t(this,e,Ne,Pe,a,{prediction:4})}}function Ce(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function Je(e){let t,a;return t=new Ae({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function Be(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=Je(Ce(e,o,t));const d=e=>b(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Ce(e,o,s);u[s]?(u[s].p(l,a),w(u[s],1)):(u[s]=Je(l),u[s].c(),w(u[s],1),u[s].m(t,null))}for(k(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)w(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)b(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function He(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.outlook_27_day.filter((e=>e.time>=new Date));a(0,n=e.map((e=>({time:e.time,kp:e.kindex,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>864e5)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,Z,(e=>a(1,s=e))),E(e,L,(e=>a(2,l=e))),L.subscribe(r),Z.subscribe(r),[n]}class Ke extends e{constructor(e){super(),t(this,e,He,Be,a,{})}}function ze(e){let t,a,d,h,p;return{c(){t=s("div"),a=s("i"),d=f(),h=s("p"),p=g("No prediction data"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"I",{class:!0}),n(a).forEach(r),d=m(s),h=l(s,"P",{});var c=n(h);p=v(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(a,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-11gsg4a")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(h,p)},p:u,i:u,o:u,d(e){e&&r(t)}}}function Fe(e){let t,a,u,d,h,_,E,j,O,q,T,M,x,A,C,J,B,H,K;var z=e[0];return z&&(C=new z({})),{c(){t=s("div"),a=s("h2"),u=g("Forecast"),d=f(),h=s("div"),_=s("div"),E=g("hour"),j=f(),O=s("div"),q=g("3 day"),T=f(),M=s("div"),x=g("Longterm"),A=f(),C&&D(C.$$.fragment),J=p(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"H2",{class:!0});var c=n(a);u=v(c,"Forecast"),c.forEach(r),d=m(s),h=l(s,"DIV",{class:!0});var i=n(h);_=l(i,"DIV",{class:!0});var o=n(_);E=v(o,"hour"),o.forEach(r),j=m(i),O=l(i,"DIV",{class:!0});var f=n(O);q=v(f,"3 day"),f.forEach(r),T=m(i),M=l(i,"DIV",{class:!0});var g=n(M);x=v(g,"Longterm"),g.forEach(r),i.forEach(r),s.forEach(r),A=m(e),C&&y(C.$$.fragment,e),J=p(),this.h()},h(){c(a,"class","svelte-11gsg4a"),c(_,"class","svelte-11gsg4a"),P(_,"selected",e[0]==we),c(O,"class","svelte-11gsg4a"),P(O,"selected",e[0]==xe),c(M,"class","svelte-11gsg4a"),P(M,"selected",e[0]==Ke),c(h,"class","version-picker svelte-11gsg4a"),c(t,"class","header svelte-11gsg4a")},m(s,l){i(s,t,l),o(t,a),o(a,u),o(t,d),o(t,h),o(h,_),o(_,E),o(h,j),o(h,O),o(O,q),o(h,T),o(h,M),o(M,x),i(s,A,l),C&&I(C,s,l),i(s,J,l),B=!0,H||(K=[S(_,"click",e[3]),S(O,"click",e[4]),S(M,"click",e[5])],H=!0)},p(e,t){if(1&t&&P(_,"selected",e[0]==we),1&t&&P(O,"selected",e[0]==xe),1&t&&P(M,"selected",e[0]==Ke),z!==(z=e[0])){if(C){k();const e=C;b(e.$$.fragment,1,0,(()=>{V(e,1)})),$()}z?(C=new z({}),D(C.$$.fragment),w(C.$$.fragment,1),I(C,J.parentNode,J)):C=null}},i(e){B||(C&&w(C.$$.fragment,e),B=!0)},o(e){C&&b(C.$$.fragment,e),B=!1},d(e){e&&r(t),e&&r(A),e&&r(J),C&&V(C,e),H=!1,N(K)}}}function Ze(e){let t,a,o,u;const d=[Fe,ze],h=[];function f(e,t){return e[1].updating||e[2].updating?1:0}return a=f(e),o=h[a]=d[a](e),{c(){t=s("div"),o.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);o.l(a),a.forEach(r),this.h()},h(){c(t,"class","drawer svelte-11gsg4a")},m(e,s){i(e,t,s),h[a].m(t,null),u=!0},p(e,[s]){let l=a;a=f(e),a===l?h[a].p(e,s):(k(),b(h[l],1,1,(()=>{h[l]=null})),$(),o=h[a],o?o.p(e,s):(o=h[a]=d[a](e),o.c()),w(o,1),o.m(t,null))},i(e){u||(w(o),u=!0)},o(e){b(o),u=!1},d(e){e&&r(t),h[a].d()}}}function Le(e,t,a){let s,l;E(e,Z,(e=>a(1,s=e))),E(e,L,(e=>a(2,l=e)));let n=xe;return[n,s,l,()=>a(0,n=we),()=>a(0,n=xe),()=>a(0,n=Ke)]}class Ge extends e{constructor(e){super(),t(this,e,Le,Ze,a,{})}}function Re(e){let t,a,d,h,p,g;return d=new ce({}),p=new Ge({}),{c(){t=f(),a=s("div"),D(d.$$.fragment),h=f(),D(p.$$.fragment),this.h()},l(e){A('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=m(e),a=l(e,"DIV",{class:!0});var s=n(a);y(d.$$.fragment,s),h=m(s),y(p.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(a,"class","homescreen svelte-pf4p6y")},m(e,s){i(e,t,s),i(e,a,s),I(d,a,null),o(a,h),I(p,a,null),g=!0},p:u,i(e){g||(w(d.$$.fragment,e),w(p.$$.fragment,e),g=!0)},o(e){b(d.$$.fragment,e),b(p.$$.fragment,e),g=!1},d(e){e&&r(t),e&&r(a),V(d),V(p)}}}class Qe extends e{constructor(e){super(),t(this,e,null,Re,a,{})}}export{Qe as default};
diff --git a/client/index.f6ed59e6.js b/client/index.f6ed59e6.js
deleted file mode 100644
index d51d98f..0000000
--- a/client/index.f6ed59e6.js
+++ /dev/null
@@ -1 +0,0 @@
-import{S as e,i as t,s as a,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as u,w as d,h,j as f,t as p,k as m,l as v,m as g,o as k,p as _,q as w,r as $,u as b,v as E,x as D,y,z as I,A as V,B as j,C as q,D as O,E as T,F as x,G as M,H as P,I as S,J as N,K as C}from"./client.0692ce05.js";function A(e){let t,a,d,h,f,p,m,v,g;return{c(){t=s("div"),a=s("div"),d=s("div"),h=s("div"),f=s("div"),p=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0}),n(a).forEach(r),d=l(s,"DIV",{class:!0}),n(d).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(t,f),o(t,p),o(t,m),o(t,v),o(t,g)},p:u,i:u,o:u,d(e){e&&r(t)}}}class B extends e{constructor(e){super(),t(this,e,null,A,a,{})}}const H=d("light");setInterval((function(){if("undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";e!=h(H)&&H.set(e)}),1e3),H.subscribe((e=>{"undefined"!=typeof window&&("dark"==e?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));const J={updated:!1,updating:!0},K=d(Object.assign(Object.assign({},J),{available:!1,longitude:null,latitude:null,city:null})),z=d(Object.assign(Object.assign({},J),{available:!1})),F=d(Object.assign({},J));function L(e,t=!1){let a=t?{}:{updated:new Date};e.update((e=>Object.assign(Object.assign(Object.assign({},e),a),{updating:t})))}function U(e){let t,a,u,d,h=e[0].city+"";return{c(){t=s("i"),a=f(),u=s("h1"),d=p(h),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=m(e),u=l(e,"H1",{class:!0});var s=n(u);d=v(s,h),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(u,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),i(e,u,s),o(u,d)},p(e,t){1&t&&h!==(h=e[0].city+"")&&g(d,h)},d(e){e&&r(t),e&&r(a),e&&r(u)}}}function Z(e){let t,a;function s(e,a){return 6&a&&(t=null),null==t&&(t=!!(Math.abs(e[1].updated-e[2].updated)>6e5)),t?Q:G}let l=s(e,-1),n=l(e);return{c(){n.c(),a=k()},l(e){n.l(e),a=k()},m(e,t){n.m(e,t),i(e,a,t)},p(e,t){l===(l=s(e,t))&&n?n.p(e,t):(n.d(1),n=l(e),n&&(n.c(),n.m(a.parentNode,a)))},d(e){n.d(e),e&&r(a)}}}function G(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=p(c)},l(e){t=l(e,"P",{});var s=n(t);a=v(s,c),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p(e,t){2&t&&c!==(c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&g(a,c)},d(e){e&&r(t)}}}function Q(e){let t,a;return{c(){t=s("p"),a=p("There is more than 10 minutes difference between data updates")},l(e){t=l(e,"P",{});var s=n(t);a=v(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p:u,d(e){e&&r(t)}}}function R(e){let t,a,d,h,k,_,w,$,b,E,D,y,I=e[2].now.kp+"",V=e[2].now.kp_max+"",j=e[2].now.kp_min+"";return{c(){t=s("h2"),a=p("KP "),d=p(I),h=f(),k=s("p"),_=s("span"),w=p("↑ KP "),$=p(V),b=f(),E=s("span"),D=p("↓ KP "),y=p(j),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=v(s,"KP "),d=v(s,I),s.forEach(r),h=m(e),k=l(e,"P",{});var c=n(k);_=l(c,"SPAN",{classname:!0});var i=n(_);w=v(i,"↑ KP "),$=v(i,V),i.forEach(r),b=m(c),E=l(c,"SPAN",{classname:!0});var o=n(E);D=v(o,"↓ KP "),y=v(o,j),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(_,"classname","pr-2"),c(E,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,d),i(e,h,s),i(e,k,s),o(k,_),o(_,w),o(_,$),o(k,b),o(k,E),o(E,D),o(E,y)},p(e,t){4&t&&I!==(I=e[2].now.kp+"")&&g(d,I),4&t&&V!==(V=e[2].now.kp_max+"")&&g($,V),4&t&&j!==(j=e[2].now.kp_min+"")&&g(y,j)},i:u,o:u,d(e){e&&r(t),e&&r(h),e&&r(k)}}}function W(e){let t,a;return t=new B({}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p:u,i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){w(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function X(e){let t,a,u,d,h,_,w,$,b,E,D,y,I,V,j,q=e[2].now.bz+"",O=e[2].now.bt+"",T=e[1].available&&Y(e);return{c(){t=s("div"),a=s("p"),u=p("BZ"),d=f(),h=s("p"),_=p(q),w=f(),$=s("div"),b=s("p"),E=p("BT"),D=f(),y=s("p"),I=p(O),V=f(),T&&T.c(),j=k(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=v(c,"BZ"),c.forEach(r),d=m(s),h=l(s,"P",{class:!0});var i=n(h);_=v(i,q),i.forEach(r),s.forEach(r),w=m(e),$=l(e,"DIV",{});var o=n($);b=l(o,"P",{class:!0});var f=n(b);E=v(f,"BT"),f.forEach(r),D=m(o),y=l(o,"P",{class:!0});var p=n(y);I=v(p,O),p.forEach(r),o.forEach(r),V=m(e),T&&T.l(e),j=k(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(h,"class","svelte-9kdo4s"),c(b,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,h),o(h,_),i(e,w,s),i(e,$,s),o($,b),o(b,E),o($,D),o($,y),o(y,I),i(e,V,s),T&&T.m(e,s),i(e,j,s)},p(e,t){4&t&&q!==(q=e[2].now.bz+"")&&g(_,q),4&t&&O!==(O=e[2].now.bt+"")&&g(I,O),e[1].available?T?T.p(e,t):(T=Y(e),T.c(),T.m(j.parentNode,j)):T&&(T.d(1),T=null)},d(e){e&&r(t),e&&r(w),e&&r($),e&&r(V),T&&T.d(e),e&&r(j)}}}function Y(e){let t,a,u,d,h,k,_,w,$,b,E,D,y,I,V,j=e[1].now.temp+"",q=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),u=p("Temp"),d=f(),h=s("p"),k=p(j),_=p("°C"),w=f(),$=s("div"),b=s("p"),E=p("Clouds"),D=f(),y=s("p"),I=p(q),V=p("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=v(c,"Temp"),c.forEach(r),d=m(s),h=l(s,"P",{class:!0});var i=n(h);k=v(i,j),_=v(i,"°C"),i.forEach(r),s.forEach(r),w=m(e),$=l(e,"DIV",{});var o=n($);b=l(o,"P",{class:!0});var f=n(b);E=v(f,"Clouds"),f.forEach(r),D=m(o),y=l(o,"P",{class:!0});var p=n(y);I=v(p,q),V=v(p,"%"),p.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(h,"class","svelte-9kdo4s"),c(b,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,h),o(h,k),o(h,_),i(e,w,s),i(e,$,s),o($,b),o(b,E),o($,D),o($,y),o(y,I),o(y,V)},p(e,t){2&t&&j!==(j=e[1].now.temp+"")&&g(k,j),2&t&&q!==(q=e[1].now.clouds+"")&&g(I,q)},d(e){e&&r(t),e&&r(w),e&&r($)}}}function ee(e){let t,a,u,d,h,p,v,g,k,E,D,y,I=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&U(e),V=!e[1].updating&&!e[2].updating&&Z(e);const j=[W,R],q=[];function O(e,t){return e[2].updating||e[1].updating?0:1}g=O(e),k=q[g]=j[g](e);let T=!e[2].updating&&!e[1].updating&&X(e);return{c(){t=s("div"),a=s("div"),u=s("div"),I&&I.c(),d=f(),h=s("div"),V&&V.c(),p=f(),v=s("div"),k.c(),E=f(),D=s("div"),T&&T.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0});var c=n(a);u=l(c,"DIV",{class:!0});var i=n(u);I&&I.l(i),i.forEach(r),d=m(c),h=l(c,"DIV",{class:!0});var o=n(h);V&&V.l(o),o.forEach(r),p=m(c),v=l(c,"DIV",{class:!0});var f=n(v);k.l(f),f.forEach(r),E=m(c),D=l(c,"DIV",{class:!0});var g=n(D);T&&T.l(g),g.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9kdo4s"),c(h,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(a,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),I&&I.m(u,null),o(a,d),o(a,h),V&&V.m(h,null),o(a,p),o(a,v),q[g].m(v,null),o(a,E),o(a,D),T&&T.m(D,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=U(e),I.c(),I.m(u,null)),e[1].updating||e[2].updating?V&&(V.d(1),V=null):V?V.p(e,t):(V=Z(e),V.c(),V.m(h,null));let a=g;g=O(e),g===a?q[g].p(e,t):(_(),w(q[a],1,1,(()=>{q[a]=null})),$(),k=q[g],k?k.p(e,t):(k=q[g]=j[g](e),k.c()),b(k,1),k.m(v,null)),e[2].updating||e[1].updating?T&&(T.d(1),T=null):T?T.p(e,t):(T=X(e),T.c(),T.m(D,null))},i(e){y||(b(k),y=!0)},o(e){w(k),y=!1},d(e){e&&r(t),I&&I.d(),V&&V.d(),q[g].d(),T&&T.d()}}}function te(e,t,a){let s,l,n;return E(e,K,(e=>a(0,s=e))),E(e,z,(e=>a(1,l=e))),E(e,F,(e=>a(2,n=e))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let e;L(K,!0);try{e=await async function(){return new Promise(((e,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{e({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(e=>{t(e)})):t(Error())}))}()}catch(e){return console.log(e),K.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void L(K,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();K.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),L(K,!1)}(),K.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return z.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void L(z,!1);L(z,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e.latitude}&lon=${e.longitude}`),a=await t.json(),s={clouds:null,temp:null};try{s.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((e=>Object.assign(Object.assign({},e),{time:new Date(e.time)})))}catch(e){}z.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),L(z,!1)})),async function(){if("undefined"==typeof window)return;L(F,!0);let e=await async function(){let e,t={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await a.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,a=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),e=await a.json(),e=e.map((e=>Object.assign(Object.assign({},e),{model_prediction_time:new Date(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),e=[...e.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],e=e.map((e=>Object.assign(Object.assign({},e.groups),{time:new Date(e.groups.time+" UTC")}))),t.usnoaa_data_raw.outlook_27_day=e,a=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await a.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let s=new Date,l=new Date(0,0,0),n=1e3,r=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,a)=>{e[1]>r&&(r=e[1]),e[1]<n&&(n=e[1]);let c=new Date(e[0]+" UTC");Math.abs(c.getTime()-s.getTime())<Math.abs(l.getTime()-s.getTime())&&(l=c,t.now.kp=e[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[a]={time:c,kp:e[1],observed:e[2]}})),t.now.kp_min=n.toString(),t.now.kp_max=r.toString(),console.log(t),t}();F.update((t=>Object.assign(Object.assign({},t),e))),L(F,!1)}();class ae extends e{constructor(e){super(),t(this,e,te,ee,a,{})}}function se(e){let t,a;const o=e[1].default,u=j(o,e,e[0],null);return{c(){t=s("div"),u&&u.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);u&&u.l(a),a.forEach(r),this.h()},h(){c(t,"class","chip svelte-1jb0ny7")},m(e,s){i(e,t,s),u&&u.m(t,null),a=!0},p(e,[t]){u&&u.p&&(!a||1&t)&&q(u,o,e,e[0],a?T(o,e[0],t,null):O(e[0]),null)},i(e){a||(b(u,e),a=!0)},o(e){w(u,e),a=!1},d(e){e&&r(t),u&&u.d(e)}}}function le(e,t,a){let{$$slots:s={},$$scope:l}=t;return e.$$set=e=>{"$$scope"in e&&a(0,l=e.$$scope)},[l,s]}class ne extends e{constructor(e){super(),t(this,e,le,se,a,{})}}function re(e){let t,a,d,h,k,_;return{c(){t=s("div"),a=s("div"),d=s("div"),h=f(),k=s("span"),_=p(e[1]),this.h()},l(s){t=l(s,"DIV",{class:!0,style:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"DIV",{class:!0}),n(d).forEach(r),i.forEach(r),h=m(c),k=l(c,"SPAN",{class:!0});var o=n(k);_=v(o,e[1]),o.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","bar svelte-1mo8cjf"),c(a,"class","bar-wrapper svelte-1mo8cjf"),c(k,"class","value svelte-1mo8cjf"),c(t,"class","wrapper svelte-1mo8cjf"),x(t,"--progress",100*e[0]+"%")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,h),o(t,k),o(k,_)},p(e,[a]){2&a&&g(_,e[1]),1&a&&x(t,"--progress",100*e[0]+"%")},i:u,o:u,d(e){e&&r(t)}}}function ce(e,t,a){let{percentage:s}=t,{value:l}=t;return e.$$set=e=>{"percentage"in e&&a(0,s=e.percentage),"value"in e&&a(1,l=e.value)},[s,l]}class ie extends e{constructor(e){super(),t(this,e,ce,re,a,{percentage:0,value:1})}}function oe(e){let t,a,d,h,g,k,_,$,E,j,q,O,T;j=new ie({props:{percentage:e[0]/9,value:e[0]}});let x=e[5]&&function(e){let t,a,d,h,g,k,_,w,$,b,E,D,y=Math.round(e[3])+"",I=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),h=f(),g=p(y),k=p("°C"),_=f(),w=s("p"),$=s("i"),b=f(),E=p(I),D=p("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),h=m(c),g=v(c,y),k=v(c,"°C"),c.forEach(r),_=m(s),w=l(s,"P",{class:!0});var i=n(w);$=l(i,"I",{class:!0}),n($).forEach(r),b=m(i),E=v(i,I),D=v(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c($,"class","fas fa-cloud svelte-m9qkku"),c(w,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,h),o(a,g),o(a,k),o(t,_),o(t,w),o(w,$),o(w,b),o(w,E),o(w,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),h=p(e[2]),g=f(),k=s("p"),_=p(e[1]),$=f(),E=s("div"),D(j.$$.fragment),q=f(),O=s("div"),x&&x.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);h=v(o,e[2]),o.forEach(r),g=m(i),k=l(i,"P",{class:!0});var u=n(k);_=v(u,e[1]),u.forEach(r),i.forEach(r),$=m(c),E=l(c,"DIV",{class:!0});var f=n(E);y(j.$$.fragment,f),f.forEach(r),q=m(c),O=l(c,"DIV",{class:!0});var p=n(O);x&&x.l(p),p.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(k,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(E,"class","KP svelte-m9qkku"),c(O,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,h),o(a,g),o(a,k),o(k,_),o(t,$),o(t,E),I(j,E,null),o(t,q),o(t,O),x&&x.m(O,null),T=!0},p(e,[t]){e[5]&&x.p(e,t)},i(e){T||(b(j.$$.fragment,e),T=!0)},o(e){w(j.$$.fragment,e),T=!1},d(e){e&&r(t),V(j),x&&x.d()}}}function ue(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function de(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ue(s.time.getHours().toString())+":"+ue(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class he extends e{constructor(e){super(),t(this,e,de,oe,a,{prediction:6})}}function fe(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function pe(e){let t,a;return t=new he({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){w(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function me(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=pe(fe(e,o,t));const d=e=>w(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=fe(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=pe(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)w(u[e]);a=!1},d(e){e&&r(t),M(u,e)}}}function ve(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((e=>e.model_prediction_time>=new Date));a(0,n=e.map((e=>({time:e.model_prediction_time,kp:Math.round(e.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>18e6)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,z,(e=>a(1,s=e))),E(e,F,(e=>a(2,l=e))),F.subscribe(r),z.subscribe(r),[n]}class ge extends e{constructor(e){super(),t(this,e,ve,me,a,{})}}function ke(e){let t,a,o;return a=new ne({props:{$$slots:{default:[_e]},$$scope:{ctx:e}}}),{c(){t=s("div"),D(a.$$.fragment),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);y(a.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),I(a,t,null),o=!0},p(e,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(b(a.$$.fragment,e),o=!0)},o(e){w(a.$$.fragment,e),o=!1},d(e){e&&r(t),V(a)}}}function _e(e){let t,a=e[0].observed+"";return{c(){t=p(a)},l(e){t=v(e,a)},m(e,a){i(e,t,a)},p(e,s){1&s&&a!==(a=e[0].observed+"")&&g(t,a)},d(e){e&&r(t)}}}function we(e){let t,a,d,h,g,k,E,j,q,O,T,x,M,P,S="predicted"!=e[0].observed&&ke(e);T=new ie({props:{percentage:e[1]/9,value:e[1]}});let N=e[6]&&function(e){let t,a,d,h,g,k,_,w,$,b,E,D,y=Math.round(e[4])+"",I=Math.round(e[5])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),h=f(),g=p(y),k=p("°C"),_=f(),w=s("p"),$=s("i"),b=f(),E=p(I),D=p("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),h=m(c),g=v(c,y),k=v(c,"°C"),c.forEach(r),_=m(s),w=l(s,"P",{class:!0});var i=n(w);$=l(i,"I",{class:!0}),n($).forEach(r),b=m(i),E=v(i,I),D=v(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c($,"class","fas fa-cloud svelte-m9qkku"),c(w,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,h),o(a,g),o(a,k),o(t,_),o(t,w),o(w,$),o(w,b),o(w,E),o(w,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),h=p(e[3]),g=f(),k=s("p"),E=p(e[2]),j=f(),S&&S.c(),q=f(),O=s("div"),D(T.$$.fragment),x=f(),M=s("div"),N&&N.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);h=v(o,e[3]),o.forEach(r),g=m(i),k=l(i,"P",{class:!0});var u=n(k);E=v(u,e[2]),u.forEach(r),i.forEach(r),j=m(c),S&&S.l(c),q=m(c),O=l(c,"DIV",{class:!0});var f=n(O);y(T.$$.fragment,f),f.forEach(r),x=m(c),M=l(c,"DIV",{class:!0});var p=n(M);N&&N.l(p),p.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(k,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(O,"class","KP svelte-m9qkku"),c(M,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,h),o(a,g),o(a,k),o(k,E),o(t,j),S&&S.m(t,null),o(t,q),o(t,O),I(T,O,null),o(t,x),o(t,M),N&&N.m(M,null),P=!0},p(e,[a]){"predicted"!=e[0].observed?S?(S.p(e,a),1&a&&b(S,1)):(S=ke(e),S.c(),b(S,1),S.m(t,q)):S&&(_(),w(S,1,1,(()=>{S=null})),$()),e[6]&&N.p(e,a)},i(e){P||(b(S),b(T.$$.fragment,e),P=!0)},o(e){w(S),w(T.$$.fragment,e),P=!1},d(e){e&&r(t),S&&S.d(),V(T),N&&N.d()}}}function $e(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function be(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=$e(s.time.getHours().toString())+":"+$e(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(0,s=e.prediction)},[s,l,n,r,c,i,o]}class Ee extends e{constructor(e){super(),t(this,e,be,we,a,{prediction:0})}}function De(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function ye(e){let t,a;return t=new Ee({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){w(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function Ie(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=ye(De(e,o,t));const d=e=>w(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=De(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=ye(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)w(u[e]);a=!1},d(e){e&&r(t),M(u,e)}}}function Ve(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((e=>"observed"!==e.observed));a(0,n=e.map((e=>({time:e.time,kp:e.kp,observed:e.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return E(e,z,(e=>a(1,s=e))),E(e,F,(e=>a(2,l=e))),F.subscribe(r),z.subscribe(r),[n]}class je extends e{constructor(e){super(),t(this,e,Ve,Ie,a,{})}}function qe(e){let t,a,u,d,h,g,k,_,$,E;return k=new ie({props:{percentage:e[0]/9,value:e[0]}}),{c(){t=s("div"),a=s("div"),u=s("h3"),d=p(e[1]),h=f(),g=s("div"),D(k.$$.fragment),_=f(),$=s("div"),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);d=v(o,e[1]),o.forEach(r),i.forEach(r),h=m(c),g=l(c,"DIV",{class:!0});var f=n(g);y(k.$$.fragment,f),f.forEach(r),_=m(c),$=l(c,"DIV",{class:!0}),n($).forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(g,"class","KP svelte-m9qkku"),c($,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,d),o(t,h),o(t,g),I(k,g,null),o(t,_),o(t,$),E=!0},p(e,[t]){},i(e){E||(b(k.$$.fragment,e),E=!0)},o(e){w(k.$$.fragment,e),E=!1},d(e){e&&r(t),V(k)}}}function Oe(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function Te(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()];Oe(s.time.getHours().toString()),Oe(s.time.getMinutes().toString());let r=s.temp,c=s.clouds;return e.$$set=e=>{"prediction"in e&&a(4,s=e.prediction)},[l,n,r,c,s]}class xe extends e{constructor(e){super(),t(this,e,Te,qe,a,{prediction:4})}}function Me(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function Pe(e){let t,a;return t=new xe({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){I(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){w(t.$$.fragment,e),a=!1},d(e){V(t,e)}}}function Se(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=Pe(Me(e,o,t));const d=e=>w(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Me(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=Pe(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)w(u[e]);a=!1},d(e){e&&r(t),M(u,e)}}}function Ne(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.outlook_27_day.filter((e=>e.time>=new Date));a(0,n=e.map((e=>({time:e.time,kp:e.kindex,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>864e5)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,z,(e=>a(1,s=e))),E(e,F,(e=>a(2,l=e))),F.subscribe(r),z.subscribe(r),[n]}class Ce extends e{constructor(e){super(),t(this,e,Ne,Se,a,{})}}function Ae(e){let t,a,d,h,g;return{c(){t=s("div"),a=s("i"),d=f(),h=s("p"),g=p("No prediction data"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"I",{class:!0}),n(a).forEach(r),d=m(s),h=l(s,"P",{});var c=n(h);g=v(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(a,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-2wkoqk")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(h,g)},p:u,i:u,o:u,d(e){e&&r(t)}}}function Be(e){let t,a,u,d,h,g,E,j,q,O,T,x,M,C,A,B,H,J,K;var z=e[0];return z&&(A=new z({})),{c(){t=s("div"),a=s("h2"),u=p("Forecast"),d=f(),h=s("div"),g=s("div"),E=p("hour"),j=f(),q=s("div"),O=p("3 day"),T=f(),x=s("div"),M=p("Long time"),C=f(),A&&D(A.$$.fragment),B=k(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"H2",{class:!0});var c=n(a);u=v(c,"Forecast"),c.forEach(r),d=m(s),h=l(s,"DIV",{class:!0});var i=n(h);g=l(i,"DIV",{class:!0});var o=n(g);E=v(o,"hour"),o.forEach(r),j=m(i),q=l(i,"DIV",{class:!0});var f=n(q);O=v(f,"3 day"),f.forEach(r),T=m(i),x=l(i,"DIV",{class:!0});var p=n(x);M=v(p,"Long time"),p.forEach(r),i.forEach(r),s.forEach(r),C=m(e),A&&y(A.$$.fragment,e),B=k(),this.h()},h(){c(a,"class","svelte-2wkoqk"),c(g,"class","svelte-2wkoqk"),P(g,"selected",e[0]==ge),c(q,"class","svelte-2wkoqk"),P(q,"selected",e[0]==je),c(x,"class","svelte-2wkoqk"),P(x,"selected",e[0]==Ce),c(h,"class","version-picker svelte-2wkoqk"),c(t,"class","header svelte-2wkoqk")},m(s,l){i(s,t,l),o(t,a),o(a,u),o(t,d),o(t,h),o(h,g),o(g,E),o(h,j),o(h,q),o(q,O),o(h,T),o(h,x),o(x,M),i(s,C,l),A&&I(A,s,l),i(s,B,l),H=!0,J||(K=[S(g,"click",e[3]),S(q,"click",e[4]),S(x,"click",e[5])],J=!0)},p(e,t){if(1&t&&P(g,"selected",e[0]==ge),1&t&&P(q,"selected",e[0]==je),1&t&&P(x,"selected",e[0]==Ce),z!==(z=e[0])){if(A){_();const e=A;w(e.$$.fragment,1,0,(()=>{V(e,1)})),$()}z?(A=new z({}),D(A.$$.fragment),b(A.$$.fragment,1),I(A,B.parentNode,B)):A=null}},i(e){H||(A&&b(A.$$.fragment,e),H=!0)},o(e){A&&w(A.$$.fragment,e),H=!1},d(e){e&&r(t),e&&r(C),e&&r(B),A&&V(A,e),J=!1,N(K)}}}function He(e){let t,a,o,u;const d=[Be,Ae],h=[];function f(e,t){return e[1].updating||e[2].updating?1:0}return a=f(e),o=h[a]=d[a](e),{c(){t=s("div"),o.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);o.l(a),a.forEach(r),this.h()},h(){c(t,"class","drawer svelte-2wkoqk")},m(e,s){i(e,t,s),h[a].m(t,null),u=!0},p(e,[s]){let l=a;a=f(e),a===l?h[a].p(e,s):(_(),w(h[l],1,1,(()=>{h[l]=null})),$(),o=h[a],o?o.p(e,s):(o=h[a]=d[a](e),o.c()),b(o,1),o.m(t,null))},i(e){u||(b(o),u=!0)},o(e){w(o),u=!1},d(e){e&&r(t),h[a].d()}}}function Je(e,t,a){let s,l;E(e,z,(e=>a(1,s=e))),E(e,F,(e=>a(2,l=e)));let n=je;return[n,s,l,()=>a(0,n=ge),()=>a(0,n=je),()=>a(0,n=Ce)]}class Ke extends e{constructor(e){super(),t(this,e,Je,He,a,{})}}function ze(e){let t,a,d,h,p,v;return d=new ae({}),p=new Ke({}),{c(){t=f(),a=s("div"),D(d.$$.fragment),h=f(),D(p.$$.fragment),this.h()},l(e){C('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=m(e),a=l(e,"DIV",{class:!0});var s=n(a);y(d.$$.fragment,s),h=m(s),y(p.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(a,"class","homescreen svelte-pf4p6y")},m(e,s){i(e,t,s),i(e,a,s),I(d,a,null),o(a,h),I(p,a,null),v=!0},p:u,i(e){v||(b(d.$$.fragment,e),b(p.$$.fragment,e),v=!0)},o(e){w(d.$$.fragment,e),w(p.$$.fragment,e),v=!1},d(e){e&&r(t),e&&r(a),V(d),V(p)}}}class Fe extends e{constructor(e){super(),t(this,e,null,ze,a,{})}}export{Fe as default};
diff --git a/client/legacy/client.fc5112f8.js b/client/legacy/client.e32a6024.js
index 8b4cef5..57887da 100644
--- a/client/legacy/client.fc5112f8.js
+++ b/client/legacy/client.e32a6024.js
@@ -1,4 +1,4 @@
-function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}function k(t){var e;return S(t,(function(t){return e=t}))(),e}function L(t,e,n){t.$$.on_destroy.push(S(e,n))}function j(t,e,n,r){if(t){var o=O(t,e,n,r);return t[0](o)}}function O(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function R(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function A(t,e,n,r,o,i){if(o){var a=O(e,n,r,i);t.p(a,o)}}function P(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var N,T=!1;function I(){T=!0}function q(){T=!1}function C(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function B(t,e){if(T){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:C(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function U(t,e,n){T&&!n?B(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function G(t){t.parentNode.removeChild(t)}function F(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function D(t){return document.createElement(t)}function M(t){return document.createTextNode(t)}function J(){return M(" ")}function K(){return M("")}function z(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function V(t){return Array.from(t.childNodes)}function Y(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function W(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Y(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Q(t,e,n){return function(t,e,n,r){return W(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,D)}function X(t,e){return W(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return M(e)}),!0)}function Z(t){return X(t," ")}function tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function et(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function nt(t,e,n){t.classList[n?"add":"remove"](e)}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function ot(t){N=t}function it(){if(!N)throw new Error("Function called outside component initialization");return N}var at=[],ut=[],ct=[],ft=[],st=Promise.resolve(),lt=!1;function ht(t){ct.push(t)}var pt=new Set,dt=0;function vt(){var t=N;do{for(;dt<at.length;){var e=at[dt];dt++,ot(e),mt(e.$$)}for(ot(null),at.length=0,dt=0;ut.length;)ut.pop()();for(var n=0;n<ct.length;n+=1){var r=ct[n];pt.has(r)||(pt.add(r),r())}ct.length=0}while(at.length);for(;ft.length;)ft.pop()();lt=!1,pt.clear(),ot(t)}function mt(t){if(null!==t.fragment){t.update(),w(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ht)}}var yt,gt=new Set;function bt(){yt={r:0,c:[],p:yt}}function _t(){yt.r||w(yt.c),yt=yt.p}function xt(t,e){t&&t.i&&(gt.delete(t),t.i(e))}function wt(t,e,n,r){if(t&&t.o){if(gt.has(t))return;gt.add(t),yt.c.push((function(){gt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function $t(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],u=e[i];if(u){for(var c in a)c in u||(r[c]=1);for(var f in u)o[f]||(n[f]=u[f],o[f]=1);t[i]=u}else for(var s in a)o[s]=1}for(var l in r)l in n||(n[l]=void 0);return n}function Et(e){return"object"===t(e)&&null!==e?e:{}}function St(t){t&&t.c()}function kt(t,e){t&&t.l(e)}function Lt(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||ht((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ht)}function jt(t,e){var n=t.$$;null!==n.fragment&&(w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e){-1===t.$$.dirty[0]&&(at.push(t),lt||(lt=!0,st.then(vt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Rt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=N;ot(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&Ot(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){I();var l=V(e.target);f.fragment&&f.fragment.l(l),l.forEach(G)}else f.fragment&&f.fragment.c();e.intro&&xt(t.$$.fragment),Lt(t,e.target,e.anchor,e.customElement),q(),vt()}ot(c)}var At=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){jt(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Pt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Tt=[];function It(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!Tt.length,a=Pt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Tt.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Tt.length;c+=2)Tt[c][0](Tt[c+1]);Tt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var qt={};function Ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Bt(t){var e,n,o=t[1].default,i=j(o,t,t[0],null);return{c:function(){e=D("div"),i&&i.c(),this.h()},l:function(t){var n=V(e=Q(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(G),this.h()},h:function(){H(e,"class","app-container svelte-lkkhqy")},m:function(t,r){U(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&A(i,o,t,t[0],n?R(o,t[0],a,null):P(t[0]),null)},i:function(t){n||(xt(i,t),n=!0)},o:function(t){wt(i,t),n=!1},d:function(t){t&&G(e),i&&i.d(t)}}}function Ut(t,e,n){var r=e.$$slots,o=void 0===r?{}:r,i=e.$$scope;return t.$$set=function(t){"$$scope"in t&&n(0,i=t.$$scope)},[i,o]}var Gt=function(t){h(n,At);var e=Ct(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Ut,Bt,E,{}),r}return y(n)}();function Ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Dt(t){var e,n,r=t[1].stack+"";return{c:function(){e=D("pre"),n=M(r)},l:function(t){var o=V(e=Q(t,"PRE",{}));n=X(o,r),o.forEach(G)},m:function(t,r){U(t,e,r),B(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&tt(n,r)},d:function(t){t&&G(e)}}}function Mt(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Dt(t);return{c:function(){n=J(),o=D("h1"),i=M(t[0]),a=J(),u=D("p"),c=M(l),f=J(),h&&h.c(),s=K(),this.h()},l:function(e){rt('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(G),n=Z(e);var r=V(o=Q(e,"H1",{class:!0}));i=X(r,t[0]),r.forEach(G),a=Z(e);var p=V(u=Q(e,"P",{class:!0}));c=X(p,l),p.forEach(G),f=Z(e),h&&h.l(e),s=K(),this.h()},h:function(){H(o,"class","svelte-jpshsi"),H(u,"class","svelte-jpshsi")},m:function(t,e){U(t,n,e),U(t,o,e),B(o,i),U(t,a,e),U(t,u,e),B(u,c),U(t,f,e),h&&h.m(t,e),U(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&tt(i,t[0]),2&o&&l!==(l=t[1].message+"")&&tt(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Dt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&G(n),t&&G(o),t&&G(a),t&&G(u),t&&G(f),h&&h.d(t),t&&G(s)}}}function Jt(t,e,n){var r=e.status,o=e.error;return t.$$set=function(t){"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}var Kt=function(t){h(n,At);var e=Ft(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Jt,Mt,E,{status:0,error:1}),r}return y(n)}();function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Ht(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&St(e.$$.fragment),n=K()},l:function(t){e&&kt(e.$$.fragment,t),n=K()},m:function(t,o){e&&Lt(e,t,o),U(t,n,o),r=!0},p:function(t,r){var u=16&r?$t(o,[Et(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){bt();var c=e;wt(c.$$.fragment,1,0,(function(){jt(c,1)})),_t()}i?(St((e=new i(a())).$$.fragment),xt(e.$$.fragment,1),Lt(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&xt(e.$$.fragment,t),r=!0)},o:function(t){e&&wt(e.$$.fragment,t),r=!1},d:function(t){t&&G(n),e&&jt(e,t)}}}function Vt(t){var e,n;return e=new Kt({props:{error:t[0],status:t[1]}}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i:function(t){n||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Yt(t){var e,n,r,o,i=[Vt,Ht],a=[];function u(t,e){return t[0]?0:1}return e=u(t),n=a[e]=i[e](t),{c:function(){n.c(),r=K()},l:function(t){n.l(t),r=K()},m:function(t,n){a[e].m(t,n),U(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(bt(),wt(a[c],1,1,(function(){a[c]=null})),_t(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),xt(n,1),n.m(r.parentNode,r))},i:function(t){o||(xt(n),o=!0)},o:function(t){wt(n),o=!1},d:function(t){a[e].d(t),t&&G(r)}}}function Wt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Yt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Gt({props:i}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?$t(o,[4&i&&{segment:t[2][0]},8&i&&Et(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Qt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){it().$$.after_update.push(t)}(h),r=qt,o=i,it().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Xt=function(t){h(n,At);var e=zt(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Qt,Wt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Zt=[],te=[{js:function(){return Promise.all([import("./index.26d02218.js"),__inject_styles(["client-ea61129f.css","index-7c6f2209.css"])]).then((function(t){return t[0]}))}}],ee=[{pattern:/^\/$/,parts:[{i:0}]}];
+function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}function k(t){var e;return S(t,(function(t){return e=t}))(),e}function L(t,e,n){t.$$.on_destroy.push(S(e,n))}function j(t,e,n,r){if(t){var o=O(t,e,n,r);return t[0](o)}}function O(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function R(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function A(t,e,n,r,o,i){if(o){var a=O(e,n,r,i);t.p(a,o)}}function P(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var N,T=!1;function I(){T=!0}function q(){T=!1}function C(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function B(t,e){if(T){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:C(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function U(t,e,n){T&&!n?B(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function G(t){t.parentNode.removeChild(t)}function F(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function D(t){return document.createElement(t)}function M(t){return document.createTextNode(t)}function J(){return M(" ")}function K(){return M("")}function z(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function V(t){return Array.from(t.childNodes)}function Y(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function W(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Y(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Q(t,e,n){return function(t,e,n,r){return W(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,D)}function X(t,e){return W(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return M(e)}),!0)}function Z(t){return X(t," ")}function tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function et(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function nt(t,e,n){t.classList[n?"add":"remove"](e)}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function ot(t){N=t}function it(){if(!N)throw new Error("Function called outside component initialization");return N}var at=[],ut=[],ct=[],ft=[],st=Promise.resolve(),lt=!1;function ht(t){ct.push(t)}var pt=new Set,dt=0;function vt(){var t=N;do{for(;dt<at.length;){var e=at[dt];dt++,ot(e),mt(e.$$)}for(ot(null),at.length=0,dt=0;ut.length;)ut.pop()();for(var n=0;n<ct.length;n+=1){var r=ct[n];pt.has(r)||(pt.add(r),r())}ct.length=0}while(at.length);for(;ft.length;)ft.pop()();lt=!1,pt.clear(),ot(t)}function mt(t){if(null!==t.fragment){t.update(),w(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ht)}}var yt,gt=new Set;function bt(){yt={r:0,c:[],p:yt}}function _t(){yt.r||w(yt.c),yt=yt.p}function xt(t,e){t&&t.i&&(gt.delete(t),t.i(e))}function wt(t,e,n,r){if(t&&t.o){if(gt.has(t))return;gt.add(t),yt.c.push((function(){gt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function $t(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],u=e[i];if(u){for(var c in a)c in u||(r[c]=1);for(var f in u)o[f]||(n[f]=u[f],o[f]=1);t[i]=u}else for(var s in a)o[s]=1}for(var l in r)l in n||(n[l]=void 0);return n}function Et(e){return"object"===t(e)&&null!==e?e:{}}function St(t){t&&t.c()}function kt(t,e){t&&t.l(e)}function Lt(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||ht((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ht)}function jt(t,e){var n=t.$$;null!==n.fragment&&(w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ot(t,e){-1===t.$$.dirty[0]&&(at.push(t),lt||(lt=!0,st.then(vt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Rt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=N;ot(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&Ot(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){I();var l=V(e.target);f.fragment&&f.fragment.l(l),l.forEach(G)}else f.fragment&&f.fragment.c();e.intro&&xt(t.$$.fragment),Lt(t,e.target,e.anchor,e.customElement),q(),vt()}ot(c)}var At=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){jt(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Pt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Nt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Tt=[];function It(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!Tt.length,a=Pt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Tt.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Tt.length;c+=2)Tt[c][0](Tt[c+1]);Tt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var qt={};function Ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Bt(t){var e,n,o=t[1].default,i=j(o,t,t[0],null);return{c:function(){e=D("div"),i&&i.c(),this.h()},l:function(t){var n=V(e=Q(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(G),this.h()},h:function(){H(e,"class","app-container svelte-lkkhqy")},m:function(t,r){U(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&A(i,o,t,t[0],n?R(o,t[0],a,null):P(t[0]),null)},i:function(t){n||(xt(i,t),n=!0)},o:function(t){wt(i,t),n=!1},d:function(t){t&&G(e),i&&i.d(t)}}}function Ut(t,e,n){var r=e.$$slots,o=void 0===r?{}:r,i=e.$$scope;return t.$$set=function(t){"$$scope"in t&&n(0,i=t.$$scope)},[i,o]}var Gt=function(t){h(n,At);var e=Ct(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Ut,Bt,E,{}),r}return y(n)}();function Ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Dt(t){var e,n,r=t[1].stack+"";return{c:function(){e=D("pre"),n=M(r)},l:function(t){var o=V(e=Q(t,"PRE",{}));n=X(o,r),o.forEach(G)},m:function(t,r){U(t,e,r),B(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&tt(n,r)},d:function(t){t&&G(e)}}}function Mt(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Dt(t);return{c:function(){n=J(),o=D("h1"),i=M(t[0]),a=J(),u=D("p"),c=M(l),f=J(),h&&h.c(),s=K(),this.h()},l:function(e){rt('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(G),n=Z(e);var r=V(o=Q(e,"H1",{class:!0}));i=X(r,t[0]),r.forEach(G),a=Z(e);var p=V(u=Q(e,"P",{class:!0}));c=X(p,l),p.forEach(G),f=Z(e),h&&h.l(e),s=K(),this.h()},h:function(){H(o,"class","svelte-jpshsi"),H(u,"class","svelte-jpshsi")},m:function(t,e){U(t,n,e),U(t,o,e),B(o,i),U(t,a,e),U(t,u,e),B(u,c),U(t,f,e),h&&h.m(t,e),U(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&tt(i,t[0]),2&o&&l!==(l=t[1].message+"")&&tt(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Dt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&G(n),t&&G(o),t&&G(a),t&&G(u),t&&G(f),h&&h.d(t),t&&G(s)}}}function Jt(t,e,n){var r=e.status,o=e.error;return t.$$set=function(t){"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}var Kt=function(t){h(n,At);var e=Ft(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Jt,Mt,E,{status:0,error:1}),r}return y(n)}();function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Ht(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&St(e.$$.fragment),n=K()},l:function(t){e&&kt(e.$$.fragment,t),n=K()},m:function(t,o){e&&Lt(e,t,o),U(t,n,o),r=!0},p:function(t,r){var u=16&r?$t(o,[Et(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){bt();var c=e;wt(c.$$.fragment,1,0,(function(){jt(c,1)})),_t()}i?(St((e=new i(a())).$$.fragment),xt(e.$$.fragment,1),Lt(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&xt(e.$$.fragment,t),r=!0)},o:function(t){e&&wt(e.$$.fragment,t),r=!1},d:function(t){t&&G(n),e&&jt(e,t)}}}function Vt(t){var e,n;return e=new Kt({props:{error:t[0],status:t[1]}}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i:function(t){n||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Yt(t){var e,n,r,o,i=[Vt,Ht],a=[];function u(t,e){return t[0]?0:1}return e=u(t),n=a[e]=i[e](t),{c:function(){n.c(),r=K()},l:function(t){n.l(t),r=K()},m:function(t,n){a[e].m(t,n),U(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(bt(),wt(a[c],1,1,(function(){a[c]=null})),_t(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),xt(n,1),n.m(r.parentNode,r))},i:function(t){o||(xt(n),o=!0)},o:function(t){wt(n),o=!1},d:function(t){a[e].d(t),t&&G(r)}}}function Wt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Yt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Gt({props:i}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?$t(o,[4&i&&{segment:t[2][0]},8&i&&Et(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Qt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){it().$$.after_update.push(t)}(h),r=qt,o=i,it().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Xt=function(t){h(n,At);var e=zt(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Qt,Wt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Zt=[],te=[{js:function(){return Promise.all([import("./index.b9026ed4.js"),__inject_styles(["client-ea61129f.css","index-8f3929f0.css"])]).then((function(t){return t[0]}))}}],ee=[{pattern:/^\/$/,parts:[{i:0}]}];
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
@@ -13,6 +13,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
-function ne(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function re(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var oe,ie=1;var ae,ue,ce="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},fe={};function se(e){var n=Object.create(null);return e.length>0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),i=o[1],a=o[2],u=void 0===a?"":a;"string"==typeof n[i]&&(n[i]=[n[i]]),"object"===t(n[i])?n[i].push(u):n[i]=u})),n}function le(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(ae))return null;var e=t.pathname.slice(ae.length);if(""===e&&(e="/"),!Zt.some((function(t){return t.test(e)})))for(var n=0;n<ee.length;n+=1){var r=ee[n],o=r.pattern.exec(e);if(o){var i=se(t.search),a=r.parts[r.parts.length-1],u=a.params?a.params(o):{},c={host:location.host,path:e,query:i,params:u};return{href:t.href,route:r,match:o,page:c}}}}function he(e){if(1===function(t){return null===t.which?t.button:t.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)){var n=re(e.target);if(n&&n.href){var r="object"===t(n.href)&&"SVGAnimatedString"===n.href.constructor.name,o=String(r?n.href.baseVal:n.href);if(o!==location.href){if(!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")&&!(r?n.target.baseVal:n.target)){var i=new URL(o);if(i.pathname!==location.pathname||i.search!==location.search){var a=le(i);if(a)ve(a,null,n.hasAttribute("sapper:noscroll"),i.hash),e.preventDefault(),ce.pushState({id:oe},"",i.href)}}}else location.hash||e.preventDefault()}}}function pe(){return{x:pageXOffset,y:pageYOffset}}function de(t){if(fe[oe]=pe(),t.state){var e=le(new URL(location.href));e?ve(e,t.state.id):location.href=location.href}else(function(t){oe=t})(ie=ie+1),ce.replaceState({id:oe},"",location.href)}function ve(t,e,n,r){return ne(this,void 0,void 0,c.mark((function o(){var i,a,u,f;return c.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(i=!!e)?oe=e:(a=pe(),fe[oe]=a,oe=e=++ie,fe[oe]=n?a:{x:0,y:0}),o.next=4,ue(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n||(u=fe[e],r&&(f=document.getElementById(r.slice(1)))&&(u={x:0,y:f.getBoundingClientRect().top+scrollY}),fe[oe]=u,i||f?scrollTo(u.x,u.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function me(t){var e=t.baseURI;if(!e){var n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}var ye,ge=null;function be(t){return ge&&ge.href===t.href?ge.promise:Fe(t)}function _e(t){var e=re(t.target);e&&"prefetch"===e.rel&&function(t){var e=le(new URL(t,me(document)));if(e)ge&&t===ge.href||(ge={href:t,promise:Fe(e)}),ge.promise}(e.href)}function xe(t){clearTimeout(ye),ye=setTimeout((function(){_e(t)}),20)}function we(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=le(new URL(t,me(document)));return n?(ce[e.replaceState?"replaceState":"pushState"]({id:oe},"",t),ve(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var $e,Ee,Se,ke,Le,je,Oe,Re,Ae,Pe="undefined"!=typeof __SAPPER__&&__SAPPER__,Ne=!1,Te=[],Ie="{}",qe={page:function(t){var e=It(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:It(null),session:It(Pe&&Pe.session)};function Ce(t,e){var n=t.error;return Object.assign({error:n},e)}function Be(t){return ne(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $e&&qe.preloading.set(!0),n=be(t),r=Ee={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===Ee){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,we(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Ue(u,a,Ce(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Ue(t,e,n){return ne(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(qe.page.set(n),qe.preloading.set(!1),!$e){r.next=6;break}$e.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:qe.page.subscribe},preloading:{subscribe:qe.preloading.subscribe},session:qe.session},r.next=9,Se;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=qe.page.notify,$e=new Xt({target:je,props:e,hydrate:!0});case 13:Te=t,Ie=JSON.stringify(n.query),Ne=!0,Le=!1;case 17:case"end":return r.stop()}}),r)})))}function Ge(t,e,n,r){if(r!==Ie)return!0;var o=Te[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function Fe(t){return ne(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u,f,s,l,h,p,d,v=this;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},u={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){a.error="string"==typeof e?new Error(e):e,a.status=t}},Se||(f=function(){return{}},Se=Pe.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},ke)),l=1,e.prev=7,h=JSON.stringify(r.query),p=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return ne(v,void 0,void 0,c.mark((function i(){var f,s,v,m,y,g;return c.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[n],Ge(n,f,p,h)&&(d=!0),a.segments[l]=o[n+1],e){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,Le||d||!Te[n]||Te[n].part!==e.i){i.next=8;break}return i.abrupt("return",Te[n]);case 8:return d=!1,i.next=11,te[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Ne&&Pe.preloaded[n+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(u,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ke);case 18:i.t0=i.sent,i.next=22;break;case 21:i.t0={};case 22:g=i.t0,i.next=26;break;case 25:g=Pe.preloaded[n+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:e.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),a.error=e.t0,a.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}qe.session.subscribe((function(t){return ne(void 0,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ke=t,Ne){e.next=3;break}return e.abrupt("return");case 3:return Le=!0,n=le(new URL(location.href)),r=Ee={},e.next=8,Fe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===Ee){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,we(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Ue(u,a,Ce(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),Oe={target:document.querySelector(".app")},Re=Oe.target,je=Re,Ae=Pe.baseUrl,ae=Ae,ue=Be,"scrollRestoration"in ce&&(ce.scrollRestoration="manual"),addEventListener("beforeunload",(function(){ce.scrollRestoration="auto"})),addEventListener("load",(function(){ce.scrollRestoration="manual"})),addEventListener("click",he),addEventListener("popstate",de),addEventListener("touchstart",_e),addEventListener("mousemove",xe),Pe.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=Pe.session,i=Pe.preloaded,a=Pe.status,u=Pe.error;Se||(Se=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:Se},level1:{props:{status:a,error:u},component:Kt},segments:i},f=se(r);Ue([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;ce.replaceState({id:ie},"",n);var r=le(new URL(location.href));if(r)return ve(r,ie,!0,e)}));export{_t as A,xt as B,L as C,St as D,kt as E,Lt as F,jt as G,j as H,A as I,P as J,R as K,et as L,F as M,c as N,nt as O,z as P,w as Q,rt as R,At as S,h as _,f as a,d as b,v as c,p as d,y as e,D as f,Q as g,V as h,Rt as i,G as j,H as k,U as l,B as m,g as n,k as o,J as p,Z as q,X as r,E as s,M as t,tt as u,K as v,It as w,r as x,bt as y,wt as z};
+function ne(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function re(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var oe,ie=1;var ae,ue,ce="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},fe={};function se(e){var n=Object.create(null);return e.length>0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),i=o[1],a=o[2],u=void 0===a?"":a;"string"==typeof n[i]&&(n[i]=[n[i]]),"object"===t(n[i])?n[i].push(u):n[i]=u})),n}function le(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(ae))return null;var e=t.pathname.slice(ae.length);if(""===e&&(e="/"),!Zt.some((function(t){return t.test(e)})))for(var n=0;n<ee.length;n+=1){var r=ee[n],o=r.pattern.exec(e);if(o){var i=se(t.search),a=r.parts[r.parts.length-1],u=a.params?a.params(o):{},c={host:location.host,path:e,query:i,params:u};return{href:t.href,route:r,match:o,page:c}}}}function he(e){if(1===function(t){return null===t.which?t.button:t.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)){var n=re(e.target);if(n&&n.href){var r="object"===t(n.href)&&"SVGAnimatedString"===n.href.constructor.name,o=String(r?n.href.baseVal:n.href);if(o!==location.href){if(!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")&&!(r?n.target.baseVal:n.target)){var i=new URL(o);if(i.pathname!==location.pathname||i.search!==location.search){var a=le(i);if(a)ve(a,null,n.hasAttribute("sapper:noscroll"),i.hash),e.preventDefault(),ce.pushState({id:oe},"",i.href)}}}else location.hash||e.preventDefault()}}}function pe(){return{x:pageXOffset,y:pageYOffset}}function de(t){if(fe[oe]=pe(),t.state){var e=le(new URL(location.href));e?ve(e,t.state.id):location.href=location.href}else(function(t){oe=t})(ie=ie+1),ce.replaceState({id:oe},"",location.href)}function ve(t,e,n,r){return ne(this,void 0,void 0,c.mark((function o(){var i,a,u,f;return c.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(i=!!e)?oe=e:(a=pe(),fe[oe]=a,oe=e=++ie,fe[oe]=n?a:{x:0,y:0}),o.next=4,ue(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n||(u=fe[e],r&&(f=document.getElementById(r.slice(1)))&&(u={x:0,y:f.getBoundingClientRect().top+scrollY}),fe[oe]=u,i||f?scrollTo(u.x,u.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function me(t){var e=t.baseURI;if(!e){var n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}var ye,ge=null;function be(t){return ge&&ge.href===t.href?ge.promise:Fe(t)}function _e(t){var e=re(t.target);e&&"prefetch"===e.rel&&function(t){var e=le(new URL(t,me(document)));if(e)ge&&t===ge.href||(ge={href:t,promise:Fe(e)}),ge.promise}(e.href)}function xe(t){clearTimeout(ye),ye=setTimeout((function(){_e(t)}),20)}function we(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=le(new URL(t,me(document)));return n?(ce[e.replaceState?"replaceState":"pushState"]({id:oe},"",t),ve(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var $e,Ee,Se,ke,Le,je,Oe,Re,Ae,Pe="undefined"!=typeof __SAPPER__&&__SAPPER__,Ne=!1,Te=[],Ie="{}",qe={page:function(t){var e=It(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:It(null),session:It(Pe&&Pe.session)};function Ce(t,e){var n=t.error;return Object.assign({error:n},e)}function Be(t){return ne(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $e&&qe.preloading.set(!0),n=be(t),r=Ee={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===Ee){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,we(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Ue(u,a,Ce(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Ue(t,e,n){return ne(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(qe.page.set(n),qe.preloading.set(!1),!$e){r.next=6;break}$e.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:qe.page.subscribe},preloading:{subscribe:qe.preloading.subscribe},session:qe.session},r.next=9,Se;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=qe.page.notify,$e=new Xt({target:je,props:e,hydrate:!0});case 13:Te=t,Ie=JSON.stringify(n.query),Ne=!0,Le=!1;case 17:case"end":return r.stop()}}),r)})))}function Ge(t,e,n,r){if(r!==Ie)return!0;var o=Te[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function Fe(t){return ne(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u,f,s,l,h,p,d,v=this;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},u={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){a.error="string"==typeof e?new Error(e):e,a.status=t}},Se||(f=function(){return{}},Se=Pe.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},ke)),l=1,e.prev=7,h=JSON.stringify(r.query),p=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return ne(v,void 0,void 0,c.mark((function i(){var f,s,v,m,y,g;return c.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[n],Ge(n,f,p,h)&&(d=!0),a.segments[l]=o[n+1],e){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,Le||d||!Te[n]||Te[n].part!==e.i){i.next=8;break}return i.abrupt("return",Te[n]);case 8:return d=!1,i.next=11,te[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Ne&&Pe.preloaded[n+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(u,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ke);case 18:i.t0=i.sent,i.next=22;break;case 21:i.t0={};case 22:g=i.t0,i.next=26;break;case 25:g=Pe.preloaded[n+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:e.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),a.error=e.t0,a.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}qe.session.subscribe((function(t){return ne(void 0,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ke=t,Ne){e.next=3;break}return e.abrupt("return");case 3:return Le=!0,n=le(new URL(location.href)),r=Ee={},e.next=8,Fe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===Ee){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,we(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Ue(u,a,Ce(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),Oe={target:document.querySelector(".app")},Re=Oe.target,je=Re,Ae=Pe.baseUrl,ae=Ae,ue=Be,"scrollRestoration"in ce&&(ce.scrollRestoration="manual"),addEventListener("beforeunload",(function(){ce.scrollRestoration="auto"})),addEventListener("load",(function(){ce.scrollRestoration="manual"})),addEventListener("click",he),addEventListener("popstate",de),addEventListener("touchstart",_e),addEventListener("mousemove",xe),Pe.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=Pe.session,i=Pe.preloaded,a=Pe.status,u=Pe.error;Se||(Se=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:Se},level1:{props:{status:a,error:u},component:Kt},segments:i},f=se(r);Ue([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;ce.replaceState({id:ie},"",n);var r=le(new URL(location.href));if(r)return ve(r,ie,!0,e)}));export{_t as A,xt as B,L as C,St as D,kt as E,Lt as F,jt as G,j as H,A as I,P as J,R as K,et as L,F as M,c as N,nt as O,z as P,w as Q,rt as R,At as S,h as _,f as a,d as b,v as c,p as d,y as e,D as f,Q as g,V as h,Rt as i,G as j,H as k,U as l,B as m,g as n,k as o,J as p,K as q,Z as r,E as s,M as t,X as u,tt as v,It as w,r as x,bt as y,wt as z};
import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file
diff --git a/client/index-7c6f2209.css b/client/legacy/index-8f3929f0.css
index 3daa89c..aa46831 100644
--- a/client/index-7c6f2209.css
+++ b/client/legacy/index-8f3929f0.css
@@ -11,5 +11,5 @@
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem}
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
-.drawer.svelte-2wkoqk.svelte-2wkoqk{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-2wkoqk.svelte-2wkoqk{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-2wkoqk.svelte-2wkoqk{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-2wkoqk .header.svelte-2wkoqk{display:flex;align-items:flex-start}.drawer.svelte-2wkoqk h2.svelte-2wkoqk{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-2wkoqk.svelte-2wkoqk{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-2wkoqk>.svelte-2wkoqk{transition:all 0.1s ease}.version-picker.svelte-2wkoqk .selected.svelte-2wkoqk{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-2wkoqk.svelte-2wkoqk{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-2wkoqk.svelte-2wkoqk{margin-top:1rem}
+.drawer.svelte-11gsg4a.svelte-11gsg4a{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-11gsg4a.svelte-11gsg4a{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-11gsg4a.svelte-11gsg4a{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-11gsg4a .header.svelte-11gsg4a{display:flex;align-items:flex-start}.drawer.svelte-11gsg4a h2.svelte-11gsg4a{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-11gsg4a.svelte-11gsg4a{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-11gsg4a>.svelte-11gsg4a{transition:all 0.1s ease}.version-picker.svelte-11gsg4a .selected.svelte-11gsg4a{background-color:var(--elevation-1, #c2c2c2);padding:3px 5px;box-sizing:border-box;border-radius:10px;color:var(--on-elevation-1, #000000)}.no-data.svelte-11gsg4a.svelte-11gsg4a{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-11gsg4a.svelte-11gsg4a{margin-top:1rem}
.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25}
diff --git a/client/legacy/index.26d02218.js b/client/legacy/index.26d02218.js
deleted file mode 100644
index eff03fc..0000000
--- a/client/legacy/index.26d02218.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as f,h as l,j as d,k as v,l as h,m as p,n as m,w as g,o as k,p as y,t as w,q as _,r as $,u as b,v as E,x as D,y as R,z as I,A as O,B as V,C as j,D as q,E as P,F as x,G as T,H as M,I as B,J as S,K as N,L as C,M as A,N as H,O as J,P as K,Q as z,R as L}from"./client.fc5112f8.js";function F(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function U(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0}),l(e).forEach(d),a=f(u,"DIV",{class:!0}),l(a).forEach(d),r=f(u,"DIV",{class:!0}),l(r).forEach(d),c=f(u,"DIV",{class:!0}),l(c).forEach(d),i=f(u,"DIV",{class:!0}),l(i).forEach(d),o=f(u,"DIV",{class:!0}),l(o).forEach(d),s=f(u,"DIV",{class:!0}),l(s).forEach(d),g=f(u,"DIV",{class:!0}),l(g).forEach(d),u.forEach(d),this.h()},h:function(){v(e,"class","svelte-7k6qu0"),v(a,"class","svelte-7k6qu0"),v(r,"class","svelte-7k6qu0"),v(c,"class","svelte-7k6qu0"),v(i,"class","svelte-7k6qu0"),v(o,"class","svelte-7k6qu0"),v(s,"class","svelte-7k6qu0"),v(g,"class","svelte-7k6qu0"),v(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var Z=function(n){t(u,s);var e=F(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,U,c,{}),n}return o(u)}();const G=g("light");setInterval((function(){if("undefined"==typeof window)return;let t=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";t!=k(G)&&G.set(t)}),1e3),G.subscribe((t=>{"undefined"!=typeof window&&("dark"==t?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));const Q={updated:!1,updating:!0},W=g(Object.assign(Object.assign({},Q),{available:!1,longitude:null,latitude:null,city:null})),X=g(Object.assign(Object.assign({},Q),{available:!1})),Y=g(Object.assign({},Q));function tt(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function nt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function et(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=y(),a=u("h1"),r=w(c),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(d),e=_(t),a=f(t,"H1",{class:!0});var i=l(a);r=$(i,c),i.forEach(d),this.h()},h:function(){v(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),v(a,"class","svelte-9kdo4s")},m:function(t,c){h(t,n,c),h(t,e,c),h(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&b(r,c)},d:function(t){t&&d(n),t&&d(e),t&&d(a)}}}function at(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?ct:rt}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=E()},l:function(t){c.l(t),e=E()},m:function(t,n){c.m(t,n),h(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&d(e)}}}function rt(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=w(a)},l:function(t){n=f(t,"P",{});var r=l(n);e=$(r,a),r.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&b(e,a)},d:function(t){t&&d(n)}}}function ct(t){var n,e;return{c:function(){n=u("p"),e=w("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var a=l(n);e=$(a,"There is more than 10 minutes difference between data updates"),a.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:m,d:function(t){t&&d(n)}}}function it(t){var n,e,a,r,c,i,o,s,g,k,E,D,R=t[2].now.kp+"",I=t[2].now.kp_max+"",O=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=w("KP "),a=w(R),r=y(),c=u("p"),i=u("span"),o=w("↑ KP "),s=w(I),g=y(),k=u("span"),E=w("↓ KP "),D=w(O),this.h()},l:function(t){n=f(t,"H2",{class:!0});var u=l(n);e=$(u,"KP "),a=$(u,R),u.forEach(d),r=_(t),c=f(t,"P",{});var v=l(c);i=f(v,"SPAN",{classname:!0});var h=l(i);o=$(h,"↑ KP "),s=$(h,I),h.forEach(d),g=_(v),k=f(v,"SPAN",{classname:!0});var p=l(k);E=$(p,"↓ KP "),D=$(p,O),p.forEach(d),v.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s"),v(i,"classname","pr-2"),v(k,"classname","pl-2")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),h(t,r,u),h(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,k),p(k,E),p(k,D)},p:function(t,n){4&n&&R!==(R=t[2].now.kp+"")&&b(a,R),4&n&&I!==(I=t[2].now.kp_max+"")&&b(s,I),4&n&&O!==(O=t[2].now.kp_min+"")&&b(D,O)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function ot(t){var n,e;return n=new Z({}),{c:function(){q(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:m,i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){T(n,t)}}}function st(t){var n,e,a,r,c,i,o,s,m,g,k,D,R,I,O,V=t[2].now.bz+"",j=t[2].now.bt+"",q=t[1].available&&ut(t);return{c:function(){n=u("div"),e=u("p"),a=w("BZ"),r=y(),c=u("p"),i=w(V),o=y(),s=u("div"),m=u("p"),g=w("BT"),k=y(),D=u("p"),R=w(j),I=y(),q&&q.c(),O=E(),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=$(v,"BZ"),v.forEach(d),r=_(u),c=f(u,"P",{class:!0});var h=l(c);i=$(h,V),h.forEach(d),u.forEach(d),o=_(t),s=f(t,"DIV",{});var p=l(s);m=f(p,"P",{class:!0});var y=l(m);g=$(y,"BT"),y.forEach(d),k=_(p),D=f(p,"P",{class:!0});var w=l(D);R=$(w,j),w.forEach(d),p.forEach(d),I=_(t),q&&q.l(t),O=E(),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(m,"class","svelte-9kdo4s"),v(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),h(t,o,u),h(t,s,u),p(s,m),p(m,g),p(s,k),p(s,D),p(D,R),h(t,I,u),q&&q.m(t,u),h(t,O,u)},p:function(t,n){4&n&&V!==(V=t[2].now.bz+"")&&b(i,V),4&n&&j!==(j=t[2].now.bt+"")&&b(R,j),t[1].available?q?q.p(t,n):((q=ut(t)).c(),q.m(O.parentNode,O)):q&&(q.d(1),q=null)},d:function(t){t&&d(n),t&&d(o),t&&d(s),t&&d(I),q&&q.d(t),t&&d(O)}}}function ut(t){var n,e,a,r,c,i,o,s,m,g,k,E,D,R,I,O=t[1].now.temp+"",V=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=w("Temp"),r=y(),c=u("p"),i=w(O),o=w("°C"),s=y(),m=u("div"),g=u("p"),k=w("Clouds"),E=y(),D=u("p"),R=w(V),I=w("%"),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=$(v,"Temp"),v.forEach(d),r=_(u),c=f(u,"P",{class:!0});var h=l(c);i=$(h,O),o=$(h,"°C"),h.forEach(d),u.forEach(d),s=_(t),m=f(t,"DIV",{});var p=l(m);g=f(p,"P",{class:!0});var y=l(g);k=$(y,"Clouds"),y.forEach(d),E=_(p),D=f(p,"P",{class:!0});var w=l(D);R=$(w,V),I=$(w,"%"),w.forEach(d),p.forEach(d),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(g,"class","svelte-9kdo4s"),v(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),h(t,s,u),h(t,m,u),p(m,g),p(g,k),p(m,E),p(m,D),p(D,R),p(D,I)},p:function(t,n){2&n&&O!==(O=t[1].now.temp+"")&&b(i,O),2&n&&V!==(V=t[1].now.clouds+"")&&b(R,V)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function ft(t){var n,e,a,r,c,i,o,s,m,g,k,w,$=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&et(t),b=!t[1].updating&&!t[2].updating&&at(t),E=[ot,it],j=[];function q(t,n){return t[2].updating||t[1].updating?0:1}s=q(t),m=j[s]=E[s](t);var P=!t[2].updating&&!t[1].updating&&st(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),$&&$.c(),r=y(),c=u("div"),b&&b.c(),i=y(),o=u("div"),m.c(),g=y(),k=u("div"),P&&P.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0});var v=l(a);$&&$.l(v),v.forEach(d),r=_(u),c=f(u,"DIV",{class:!0});var h=l(c);b&&b.l(h),h.forEach(d),i=_(u),o=f(u,"DIV",{class:!0});var p=l(o);m.l(p),p.forEach(d),g=_(u),k=f(u,"DIV",{class:!0});var y=l(k);P&&P.l(y),y.forEach(d),u.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","weatherCurrent-data-location svelte-9kdo4s"),v(c,"class","weatherCurrent-data-date"),v(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),v(k,"class","current-details svelte-9kdo4s"),v(e,"class","weatherCurrent-data svelte-9kdo4s"),v(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),$&&$.m(a,null),p(e,r),p(e,c),b&&b.m(c,null),p(e,i),p(e,o),j[s].m(o,null),p(e,g),p(e,k),P&&P.m(k,null),w=!0},p:function(t,n){var e=D(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=et(t)).c(),$.m(a,null)),t[1].updating||t[2].updating?b&&(b.d(1),b=null):b?b.p(t,e):((b=at(t)).c(),b.m(c,null));var r=s;(s=q(t))===r?j[s].p(t,e):(R(),I(j[r],1,1,(function(){j[r]=null})),O(),(m=j[s])?m.p(t,e):(m=j[s]=E[s](t)).c(),V(m,1),m.m(o,null)),t[2].updating||t[1].updating?P&&(P.d(1),P=null):P?P.p(t,e):((P=st(t)).c(),P.m(k,null))},i:function(t){w||(V(m),w=!0)},o:function(t){I(m),w=!1},d:function(t){t&&d(n),$&&$.d(),b&&b.d(),j[s].d(),P&&P.d()}}}function lt(t,n,e){var a,r,c;return j(t,W,(function(t){return e(0,a=t)})),j(t,X,(function(t){return e(1,r=t)})),j(t,Y,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;tt(W,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),W.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void tt(W,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();W.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),tt(W,!1)}(),W.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return X.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void tt(X,!1);tt(X,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}X.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),tt(X,!1)})),async function(){if("undefined"==typeof window)return;tt(Y,!0);let t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:new Date(t.groups.time+" UTC")}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=new Date(t[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();Y.update((n=>Object.assign(Object.assign({},n),t))),tt(Y,!1)}();var dt=function(n){t(u,s);var e=nt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,lt,ft,c,{}),n}return o(u)}();function vt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function ht(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){vt(c,a,r,i,o,"next",t)}function o(t){vt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function pt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function mt(t){var n,e,a=t[1].default,r=M(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r&&r.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","chip svelte-1jb0ny7")},m:function(t,a){h(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=D(n,1)[0];r&&r.p&&(!e||1&c)&&B(r,a,t,t[0],e?N(a,t[0],c,null):S(t[0]),null)},i:function(t){e||(V(r,t),e=!0)},o:function(t){I(r,t),e=!1},d:function(t){t&&d(n),r&&r.d(t)}}}function gt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var kt=function(n){t(u,s);var e=pt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,gt,mt,c,{}),n}return o(u)}();function yt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function wt(t){var n,e,a,r,c,i;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=y(),c=u("span"),i=w(t[1]),this.h()},l:function(o){n=f(o,"DIV",{class:!0,style:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0}),l(a).forEach(d),u.forEach(d),r=_(s),c=f(s,"SPAN",{class:!0});var v=l(c);i=$(v,t[1]),v.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","bar svelte-1mo8cjf"),v(e,"class","bar-wrapper svelte-1mo8cjf"),v(c,"class","value svelte-1mo8cjf"),v(n,"class","wrapper svelte-1mo8cjf"),C(n,"--progress",100*t[0]+"%")},m:function(t,o){h(t,n,o),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i)},p:function(t,e){var a=D(e,1)[0];2&a&&b(i,t[1]),1&a&&C(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&d(n)}}}function _t(t,n,e){var a=n.percentage,r=n.value;return t.$$set=function(t){"percentage"in t&&e(0,a=t.percentage),"value"in t&&e(1,r=t.value)},[a,r]}var $t=function(n){t(u,s);var e=yt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,_t,wt,c,{percentage:0,value:1}),n}return o(u)}();function bt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Et(t){var n,e,a,r,c,i,o,s,g,k,b,E,R;k=new $t({props:{percentage:t[0]/9,value:t[0]}});var O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,k,b,E,D=Math.round(t[3])+"",R=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=w(D),i=w("°C"),o=y(),s=u("p"),g=u("i"),k=y(),b=w(R),E=w("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=_(v),c=$(v,D),i=$(v,"°C"),v.forEach(d),o=_(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),k=_(h),b=$(h,R),E=$(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,k),p(s,b),p(s,E)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[2]),c=y(),i=u("p"),o=w(t[1]),s=y(),g=u("div"),q(k.$$.fragment),b=y(),E=u("div"),O&&O.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[2]),p.forEach(d),c=_(h),i=f(h,"P",{class:!0});var m=l(i);o=$(m,t[1]),m.forEach(d),h.forEach(d),s=_(v),g=f(v,"DIV",{class:!0});var y=l(g);P(k.$$.fragment,y),y.forEach(d),b=_(v),E=f(v,"DIV",{class:!0});var w=l(E);O&&O.l(w),w.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(i,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","KP svelte-m9qkku"),v(E,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),x(k,g,null),p(n,b),p(n,E),O&&O.m(E,null),R=!0},p:function(t,n){var e=D(n,1)[0];t[5]&&O.p(t,e)},i:function(t){R||(V(k.$$.fragment,t),R=!0)},o:function(t){I(k.$$.fragment,t),R=!1},d:function(t){t&&d(n),T(k),O&&O.d()}}}function Dt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Rt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Dt(a.time.getHours().toString())+":"+Dt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var It=function(n){t(u,s);var e=bt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Rt,Et,c,{prediction:6}),n}return o(u)}();function Ot(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Vt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function jt(t){var n,e;return n=new It({props:{prediction:t[5]}}),{c:function(){q(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){T(n,t)}}}function qt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=jt(Vt(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Vt(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=jt(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),A(r,t)}}}function Pt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ht(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,X,(function(t){return e(1,a=t)})),j(t,Y,(function(t){return e(2,r=t)})),Y.subscribe(i),X.subscribe(i),[c]}var xt=function(n){t(u,s);var e=Ot(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Pt,qt,c,{}),n}return o(u)}();function Tt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Mt(t){var n,e,a;return e=new kt({props:{$$slots:{default:[Bt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),q(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var a=l(n);P(e.$$.fragment,a),a.forEach(d),this.h()},h:function(){v(n,"class","svelte-m9qkku")},m:function(t,r){h(t,n,r),x(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(V(e.$$.fragment,t),a=!0)},o:function(t){I(e.$$.fragment,t),a=!1},d:function(t){t&&d(n),T(e)}}}function Bt(t){var n,e=t[0].observed+"";return{c:function(){n=w(e)},l:function(t){n=$(t,e)},m:function(t,e){h(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&b(n,e)},d:function(t){t&&d(n)}}}function St(t){var n,e,a,r,c,i,o,s,g,k,b,E,j,M,B="predicted"!=t[0].observed&&Mt(t);b=new $t({props:{percentage:t[1]/9,value:t[1]}});var S=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,k,b,E,D=Math.round(t[4])+"",R=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=w(D),i=w("°C"),o=y(),s=u("p"),g=u("i"),k=y(),b=w(R),E=w("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=_(v),c=$(v,D),i=$(v,"°C"),v.forEach(d),o=_(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),k=_(h),b=$(h,R),E=$(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,k),p(s,b),p(s,E)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[3]),c=y(),i=u("p"),o=w(t[2]),s=y(),B&&B.c(),g=y(),k=u("div"),q(b.$$.fragment),E=y(),j=u("div"),S&&S.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[3]),p.forEach(d),c=_(h),i=f(h,"P",{class:!0});var m=l(i);o=$(m,t[2]),m.forEach(d),h.forEach(d),s=_(v),B&&B.l(v),g=_(v),k=f(v,"DIV",{class:!0});var y=l(k);P(b.$$.fragment,y),y.forEach(d),E=_(v),j=f(v,"DIV",{class:!0});var w=l(j);S&&S.l(w),w.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(i,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(k,"class","KP svelte-m9qkku"),v(j,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),B&&B.m(n,null),p(n,g),p(n,k),x(b,k,null),p(n,E),p(n,j),S&&S.m(j,null),M=!0},p:function(t,e){var a=D(e,1)[0];"predicted"!=t[0].observed?B?(B.p(t,a),1&a&&V(B,1)):((B=Mt(t)).c(),V(B,1),B.m(n,g)):B&&(R(),I(B,1,1,(function(){B=null})),O()),t[6]&&S.p(t,a)},i:function(t){M||(V(B),V(b.$$.fragment,t),M=!0)},o:function(t){I(B),I(b.$$.fragment,t),M=!1},d:function(t){t&&d(n),B&&B.d(),T(b),S&&S.d()}}}function Nt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Ct(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Nt(a.time.getHours().toString())+":"+Nt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var At=function(n){t(u,s);var e=Tt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Ct,St,c,{prediction:0}),n}return o(u)}();function Ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Jt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Kt(t){var n,e;return n=new At({props:{prediction:t[5]}}),{c:function(){q(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){T(n,t)}}}function zt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Kt(Jt(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Jt(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=Kt(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),A(r,t)}}}function Lt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ht(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,X,(function(t){return e(1,a=t)})),j(t,Y,(function(t){return e(2,r=t)})),Y.subscribe(i),X.subscribe(i),[c]}var Ft=function(n){t(u,s);var e=Ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Lt,zt,c,{}),n}return o(u)}();function Ut(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Zt(t){var n,e,a,r,c,i,o,s,m,g;return o=new $t({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[1]),c=y(),i=u("div"),q(o.$$.fragment),s=y(),m=u("div"),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[1]),p.forEach(d),h.forEach(d),c=_(v),i=f(v,"DIV",{class:!0});var g=l(i);P(o.$$.fragment,g),g.forEach(d),s=_(v),m=f(v,"DIV",{class:!0}),l(m).forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(i,"class","KP svelte-m9qkku"),v(m,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(n,c),p(n,i),x(o,i,null),p(n,s),p(n,m),g=!0},p:function(t,n){D(n,1)[0]},i:function(t){g||(V(o.$$.fragment,t),g=!0)},o:function(t){I(o.$$.fragment,t),g=!1},d:function(t){t&&d(n),T(o)}}}function Gt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Qt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()];Gt(a.time.getHours().toString()),Gt(a.time.getMinutes().toString());var i=a.temp,o=a.clouds;return t.$$set=function(t){"prediction"in t&&e(4,a=t.prediction)},[r,c,i,o,a]}var Wt=function(n){t(u,s);var e=Ut(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Qt,Zt,c,{prediction:4}),n}return o(u)}();function Xt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Yt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function tn(t){var n,e;return n=new Wt({props:{prediction:t[5]}}),{c:function(){q(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){T(n,t)}}}function nn(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=tn(Yt(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Yt(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=tn(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),A(r,t)}}}function en(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ht(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,X,(function(t){return e(1,a=t)})),j(t,Y,(function(t){return e(2,r=t)})),Y.subscribe(i),X.subscribe(i),[c]}var an=function(n){t(u,s);var e=Xt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,en,nn,c,{}),n}return o(u)}();function rn(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function cn(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=w("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(d),a=_(i),r=f(i,"P",{});var o=l(r);c=$(o,"No prediction data"),o.forEach(d),i.forEach(d),this.h()},h:function(){v(e,"class","fas fa-7x fa-exclamation-triangle"),v(n,"class","no-data svelte-2wkoqk")},m:function(t,i){h(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function on(t){var n,e,a,r,c,i,o,s,m,g,k,b,D,j,M,B,S,N,C,A=t[0];return A&&(M=new A({})),{c:function(){n=u("div"),e=u("h2"),a=w("Forecast"),r=y(),c=u("div"),i=u("div"),o=w("hour"),s=y(),m=u("div"),g=w("3 day"),k=y(),b=u("div"),D=w("Long time"),j=y(),M&&q(M.$$.fragment),B=E(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"H2",{class:!0});var v=l(e);a=$(v,"Forecast"),v.forEach(d),r=_(u),c=f(u,"DIV",{class:!0});var h=l(c);i=f(h,"DIV",{class:!0});var p=l(i);o=$(p,"hour"),p.forEach(d),s=_(h),m=f(h,"DIV",{class:!0});var y=l(m);g=$(y,"3 day"),y.forEach(d),k=_(h),b=f(h,"DIV",{class:!0});var w=l(b);D=$(w,"Long time"),w.forEach(d),h.forEach(d),u.forEach(d),j=_(t),M&&P(M.$$.fragment,t),B=E(),this.h()},h:function(){v(e,"class","svelte-2wkoqk"),v(i,"class","svelte-2wkoqk"),J(i,"selected",t[0]==xt),v(m,"class","svelte-2wkoqk"),J(m,"selected",t[0]==Ft),v(b,"class","svelte-2wkoqk"),J(b,"selected",t[0]==an),v(c,"class","version-picker svelte-2wkoqk"),v(n,"class","header svelte-2wkoqk")},m:function(u,f){h(u,n,f),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,k),p(c,b),p(b,D),h(u,j,f),M&&x(M,u,f),h(u,B,f),S=!0,N||(C=[K(i,"click",t[3]),K(m,"click",t[4]),K(b,"click",t[5])],N=!0)},p:function(t,n){if(1&n&&J(i,"selected",t[0]==xt),1&n&&J(m,"selected",t[0]==Ft),1&n&&J(b,"selected",t[0]==an),A!==(A=t[0])){if(M){R();var e=M;I(e.$$.fragment,1,0,(function(){T(e,1)})),O()}A?(M=new A({}),q(M.$$.fragment),V(M.$$.fragment,1),x(M,B.parentNode,B)):M=null}},i:function(t){S||(M&&V(M.$$.fragment,t),S=!0)},o:function(t){M&&I(M.$$.fragment,t),S=!1},d:function(t){t&&d(n),t&&d(j),t&&d(B),M&&T(M,t),N=!1,z(C)}}}function sn(t){var n,e,a,r,c=[on,cn],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","drawer svelte-2wkoqk")},m:function(t,a){h(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=D(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(R(),I(i[u],1,1,(function(){i[u]=null})),O(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),V(a,1),a.m(n,null))},i:function(t){r||(V(a),r=!0)},o:function(t){I(a),r=!1},d:function(t){t&&d(n),i[e].d()}}}function un(t,n,e){var a,r;j(t,X,(function(t){return e(1,a=t)})),j(t,Y,(function(t){return e(2,r=t)}));var c=Ft;return[c,a,r,function(){return e(0,c=xt)},function(){return e(0,c=Ft)},function(){return e(0,c=an)}]}var fn=function(n){t(u,s);var e=rn(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,un,sn,c,{}),n}return o(u)}();function ln(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function dn(t){var n,e,a,r,c,i;return a=new dt({}),c=new fn({}),{c:function(){n=y(),e=u("div"),q(a.$$.fragment),r=y(),q(c.$$.fragment),this.h()},l:function(t){L('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=_(t),e=f(t,"DIV",{class:!0});var i=l(e);P(a.$$.fragment,i),r=_(i),P(c.$$.fragment,i),i.forEach(d),this.h()},h:function(){document.title="Aurora data",v(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){h(t,n,o),h(t,e,o),x(a,e,null),p(e,r),x(c,e,null),i=!0},p:m,i:function(t){i||(V(a.$$.fragment,t),V(c.$$.fragment,t),i=!0)},o:function(t){I(a.$$.fragment,t),I(c.$$.fragment,t),i=!1},d:function(t){t&&d(n),t&&d(e),T(a),T(c)}}}var vn=function(n){t(u,s);var e=ln(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,dn,c,{}),n}return o(u)}();export{vn as default};
diff --git a/client/legacy/index.b9026ed4.js b/client/legacy/index.b9026ed4.js
new file mode 100644
index 0000000..c33323c
--- /dev/null
+++ b/client/legacy/index.b9026ed4.js
@@ -0,0 +1 @@
+import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as f,h as l,j as d,k as v,l as h,m as p,n as m,w as g,o as y,p as k,q as _,r as b,t as w,u as $,v as E,x as D,y as R,z as I,A as O,B as V,C as j,D as P,E as x,F as q,G as M,H as T,I as B,J as S,K as N,L as A,M as C,N as J,O as H,P as K,Q as z,R as F}from"./client.e32a6024.js";function L(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Z(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0}),l(e).forEach(d),a=f(u,"DIV",{class:!0}),l(a).forEach(d),r=f(u,"DIV",{class:!0}),l(r).forEach(d),c=f(u,"DIV",{class:!0}),l(c).forEach(d),i=f(u,"DIV",{class:!0}),l(i).forEach(d),o=f(u,"DIV",{class:!0}),l(o).forEach(d),s=f(u,"DIV",{class:!0}),l(s).forEach(d),g=f(u,"DIV",{class:!0}),l(g).forEach(d),u.forEach(d),this.h()},h:function(){v(e,"class","svelte-7k6qu0"),v(a,"class","svelte-7k6qu0"),v(r,"class","svelte-7k6qu0"),v(c,"class","svelte-7k6qu0"),v(i,"class","svelte-7k6qu0"),v(o,"class","svelte-7k6qu0"),v(s,"class","svelte-7k6qu0"),v(g,"class","svelte-7k6qu0"),v(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var G=function(n){t(u,s);var e=L(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,Z,c,{}),n}return o(u)}(),Q={January:1,Feb:2,March:3,April:4,May:5,June:6,July:7,August:8,September:9,October:10,November:11,December:12};function U(t){return t=function(t){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(t))return t;if(/^\d{4}\s[a-z,A-Z]+\s\d{2}$/.test(t)){var n=t.split(" ");return t="".concat(n[0],"-").concat(function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t.toString();n-e.length>0;)e="0"+e;return e}(Q[n[1]]),"-").concat(n[2],"T00:00:00Z"),t}return/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test(t)?t.replace(" ","T")+"Z":/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{4}/.test(t)?t.replace(" ","T").split(".")[0]+"Z":(console.warn(t),t)}(t),new Date(t)}const W=g("light");setInterval((function(){if("undefined"==typeof window)return;let t=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";t!=y(W)&&W.set(t)}),1e3),W.subscribe((t=>{"undefined"!=typeof window&&("dark"==t?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));const X={updated:!1,updating:!0},Y=g(Object.assign(Object.assign({},X),{available:!1,longitude:null,latitude:null,city:null})),tt=g(Object.assign(Object.assign({},X),{available:!1})),nt=g(Object.assign({},X));!async function(){if("undefined"==typeof window)return;let t;at(Y,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),Y.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void at(Y,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();Y.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),at(Y,!1)}(),Y.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return tt.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void at(tt,!1);at(tt,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:U(t.time)})))}catch(t){}tt.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),at(tt,!1)})),async function(){if("undefined"==typeof window)return;at(nt,!0);let t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=U(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:U(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:U(t.groups.time)}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=U(t[0]);Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();nt.update((n=>Object.assign(Object.assign({},n),t))),at(nt,!1)}();const et=(t,n)=>{"undefined"!=typeof window&&localStorage.setItem(t,JSON.stringify(n))};function at(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function rt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function ct(t){var n,e,a;function r(t,n){return void 0!==t[0].city?ot:it}var c=r(t),i=c(t);return{c:function(){n=u("i"),e=k(),i.c(),a=_(),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(d),e=b(t),i.l(t),a=_(),this.h()},h:function(){v(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s")},m:function(t,r){h(t,n,r),h(t,e,r),i.m(t,r),h(t,a,r)},p:function(t,n){c===(c=r(t))&&i?i.p(t,n):(i.d(1),(i=c(t))&&(i.c(),i.m(a.parentNode,a)))},d:function(t){t&&d(n),t&&d(e),i.d(t),t&&d(a)}}}function it(t){var n,e,a,r,c,i,o=t[0].longitude+"",s=t[0].latitude+"";return{c:function(){n=u("h1"),e=w("long: "),a=w(o),r=u("br"),c=w("lat: "),i=w(s),this.h()},l:function(t){n=f(t,"H1",{class:!0});var u=l(n);e=$(u,"long: "),a=$(u,o),r=f(u,"BR",{}),c=$(u,"lat: "),i=$(u,s),u.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s")},m:function(t,o){h(t,n,o),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i)},p:function(t,n){1&n&&o!==(o=t[0].longitude+"")&&E(a,o),1&n&&s!==(s=t[0].latitude+"")&&E(i,s)},d:function(t){t&&d(n)}}}function ot(t){var n,e,a=t[0].city+"";return{c:function(){n=u("h1"),e=w(a),this.h()},l:function(t){n=f(t,"H1",{class:!0});var r=l(n);e=$(r,a),r.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s")},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){1&n&&a!==(a=t[0].city+"")&&E(e,a)},d:function(t){t&&d(n)}}}function st(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?ft:ut}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=_()},l:function(t){c.l(t),e=_()},m:function(t,n){c.m(t,n),h(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&d(e)}}}function ut(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=w(a)},l:function(t){n=f(t,"P",{});var r=l(n);e=$(r,a),r.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(e,a)},d:function(t){t&&d(n)}}}function ft(t){var n,e;return{c:function(){n=u("p"),e=w("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var a=l(n);e=$(a,"There is more than 10 minutes difference between data updates"),a.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:m,d:function(t){t&&d(n)}}}function lt(t){var n,e,a,r,c,i,o,s,g,y,_,D,R=t[2].now.kp+"",I=t[2].now.kp_max+"",O=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=w("KP "),a=w(R),r=k(),c=u("p"),i=u("span"),o=w("↑ KP "),s=w(I),g=k(),y=u("span"),_=w("↓ KP "),D=w(O),this.h()},l:function(t){n=f(t,"H2",{class:!0});var u=l(n);e=$(u,"KP "),a=$(u,R),u.forEach(d),r=b(t),c=f(t,"P",{});var v=l(c);i=f(v,"SPAN",{classname:!0});var h=l(i);o=$(h,"↑ KP "),s=$(h,I),h.forEach(d),g=b(v),y=f(v,"SPAN",{classname:!0});var p=l(y);_=$(p,"↓ KP "),D=$(p,O),p.forEach(d),v.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s"),v(i,"classname","pr-2"),v(y,"classname","pl-2")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),h(t,r,u),h(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,y),p(y,_),p(y,D)},p:function(t,n){4&n&&R!==(R=t[2].now.kp+"")&&E(a,R),4&n&&I!==(I=t[2].now.kp_max+"")&&E(s,I),4&n&&O!==(O=t[2].now.kp_min+"")&&E(D,O)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function dt(t){var n,e;return n=new G({}),{c:function(){P(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:m,i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function vt(t){var n,e,a,r,c,i,o,s,m,g,y,D,R,I,O,V=t[2].now.bz+"",j=t[2].now.bt+"",P=t[1].available&&ht(t);return{c:function(){n=u("div"),e=u("p"),a=w("BZ"),r=k(),c=u("p"),i=w(V),o=k(),s=u("div"),m=u("p"),g=w("BT"),y=k(),D=u("p"),R=w(j),I=k(),P&&P.c(),O=_(),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=$(v,"BZ"),v.forEach(d),r=b(u),c=f(u,"P",{class:!0});var h=l(c);i=$(h,V),h.forEach(d),u.forEach(d),o=b(t),s=f(t,"DIV",{});var p=l(s);m=f(p,"P",{class:!0});var k=l(m);g=$(k,"BT"),k.forEach(d),y=b(p),D=f(p,"P",{class:!0});var w=l(D);R=$(w,j),w.forEach(d),p.forEach(d),I=b(t),P&&P.l(t),O=_(),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(m,"class","svelte-9kdo4s"),v(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),h(t,o,u),h(t,s,u),p(s,m),p(m,g),p(s,y),p(s,D),p(D,R),h(t,I,u),P&&P.m(t,u),h(t,O,u)},p:function(t,n){4&n&&V!==(V=t[2].now.bz+"")&&E(i,V),4&n&&j!==(j=t[2].now.bt+"")&&E(R,j),t[1].available?P?P.p(t,n):((P=ht(t)).c(),P.m(O.parentNode,O)):P&&(P.d(1),P=null)},d:function(t){t&&d(n),t&&d(o),t&&d(s),t&&d(I),P&&P.d(t),t&&d(O)}}}function ht(t){var n,e,a,r,c,i,o,s,m,g,y,_,D,R,I,O=t[1].now.temp+"",V=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=w("Temp"),r=k(),c=u("p"),i=w(O),o=w("°C"),s=k(),m=u("div"),g=u("p"),y=w("Clouds"),_=k(),D=u("p"),R=w(V),I=w("%"),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=$(v,"Temp"),v.forEach(d),r=b(u),c=f(u,"P",{class:!0});var h=l(c);i=$(h,O),o=$(h,"°C"),h.forEach(d),u.forEach(d),s=b(t),m=f(t,"DIV",{});var p=l(m);g=f(p,"P",{class:!0});var k=l(g);y=$(k,"Clouds"),k.forEach(d),_=b(p),D=f(p,"P",{class:!0});var w=l(D);R=$(w,V),I=$(w,"%"),w.forEach(d),p.forEach(d),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(g,"class","svelte-9kdo4s"),v(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),h(t,s,u),h(t,m,u),p(m,g),p(g,y),p(m,_),p(m,D),p(D,R),p(D,I)},p:function(t,n){2&n&&O!==(O=t[1].now.temp+"")&&E(i,O),2&n&&V!==(V=t[1].now.clouds+"")&&E(R,V)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function pt(t){var n,e,a,r,c,i,o,s,m,g,y,_,w=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&ct(t),$=!t[1].updating&&!t[2].updating&&st(t),E=[dt,lt],j=[];function P(t,n){return t[2].updating||t[1].updating?0:1}s=P(t),m=j[s]=E[s](t);var x=!t[2].updating&&!t[1].updating&&vt(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),w&&w.c(),r=k(),c=u("div"),$&&$.c(),i=k(),o=u("div"),m.c(),g=k(),y=u("div"),x&&x.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0});var v=l(a);w&&w.l(v),v.forEach(d),r=b(u),c=f(u,"DIV",{class:!0});var h=l(c);$&&$.l(h),h.forEach(d),i=b(u),o=f(u,"DIV",{class:!0});var p=l(o);m.l(p),p.forEach(d),g=b(u),y=f(u,"DIV",{class:!0});var k=l(y);x&&x.l(k),k.forEach(d),u.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","weatherCurrent-data-location svelte-9kdo4s"),v(c,"class","weatherCurrent-data-date"),v(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),v(y,"class","current-details svelte-9kdo4s"),v(e,"class","weatherCurrent-data svelte-9kdo4s"),v(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),w&&w.m(a,null),p(e,r),p(e,c),$&&$.m(c,null),p(e,i),p(e,o),j[s].m(o,null),p(e,g),p(e,y),x&&x.m(y,null),_=!0},p:function(t,n){var e=D(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?w&&(w.d(1),w=null):w?w.p(t,e):((w=ct(t)).c(),w.m(a,null)),t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=st(t)).c(),$.m(c,null));var r=s;(s=P(t))===r?j[s].p(t,e):(R(),I(j[r],1,1,(function(){j[r]=null})),O(),(m=j[s])?m.p(t,e):(m=j[s]=E[s](t)).c(),V(m,1),m.m(o,null)),t[2].updating||t[1].updating?x&&(x.d(1),x=null):x?x.p(t,e):((x=vt(t)).c(),x.m(y,null))},i:function(t){_||(V(m),_=!0)},o:function(t){I(m),_=!1},d:function(t){t&&d(n),w&&w.d(),$&&$.d(),j[s].d(),x&&x.d()}}}function mt(t,n,e){var a,r,c;return j(t,Y,(function(t){return e(0,a=t)})),j(t,tt,(function(t){return e(1,r=t)})),j(t,nt,(function(t){return e(2,c=t)})),[a,r,c]}Y.subscribe((t=>et("navigator_location",t))),tt.subscribe((t=>et("earth_weather",t))),nt.subscribe((t=>et("space_weather",t)));var gt=function(n){t(u,s);var e=rt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,mt,pt,c,{}),n}return o(u)}();function yt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function kt(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){yt(c,a,r,i,o,"next",t)}function o(t){yt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function _t(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function bt(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r&&r.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","chip svelte-1jb0ny7")},m:function(t,a){h(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=D(n,1)[0];r&&r.p&&(!e||1&c)&&B(r,a,t,t[0],e?N(a,t[0],c,null):S(t[0]),null)},i:function(t){e||(V(r,t),e=!0)},o:function(t){I(r,t),e=!1},d:function(t){t&&d(n),r&&r.d(t)}}}function wt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var $t=function(n){t(u,s);var e=_t(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,wt,bt,c,{}),n}return o(u)}();function Et(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Dt(t){var n,e,a,r,c,i;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=k(),c=u("span"),i=w(t[1]),this.h()},l:function(o){n=f(o,"DIV",{class:!0,style:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0}),l(a).forEach(d),u.forEach(d),r=b(s),c=f(s,"SPAN",{class:!0});var v=l(c);i=$(v,t[1]),v.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","bar svelte-1mo8cjf"),v(e,"class","bar-wrapper svelte-1mo8cjf"),v(c,"class","value svelte-1mo8cjf"),v(n,"class","wrapper svelte-1mo8cjf"),A(n,"--progress",100*t[0]+"%")},m:function(t,o){h(t,n,o),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i)},p:function(t,e){var a=D(e,1)[0];2&a&&E(i,t[1]),1&a&&A(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&d(n)}}}function Rt(t,n,e){var a=n.percentage,r=n.value;return t.$$set=function(t){"percentage"in t&&e(0,a=t.percentage),"value"in t&&e(1,r=t.value)},[a,r]}var It=function(n){t(u,s);var e=Et(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Rt,Dt,c,{percentage:0,value:1}),n}return o(u)}();function Ot(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Vt(t){var n,e,a,r,c,i,o,s,g,y,_,E,R;y=new It({props:{percentage:t[0]/9,value:t[0]}});var O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,y,_,E,D=Math.round(t[3])+"",R=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=k(),c=w(D),i=w("°C"),o=k(),s=u("p"),g=u("i"),y=k(),_=w(R),E=w("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=b(v),c=$(v,D),i=$(v,"°C"),v.forEach(d),o=b(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),y=b(h),_=$(h,R),E=$(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,y),p(s,_),p(s,E)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[2]),c=k(),i=u("p"),o=w(t[1]),s=k(),g=u("div"),P(y.$$.fragment),_=k(),E=u("div"),O&&O.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[2]),p.forEach(d),c=b(h),i=f(h,"P",{class:!0});var m=l(i);o=$(m,t[1]),m.forEach(d),h.forEach(d),s=b(v),g=f(v,"DIV",{class:!0});var k=l(g);x(y.$$.fragment,k),k.forEach(d),_=b(v),E=f(v,"DIV",{class:!0});var w=l(E);O&&O.l(w),w.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(i,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","KP svelte-m9qkku"),v(E,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),q(y,g,null),p(n,_),p(n,E),O&&O.m(E,null),R=!0},p:function(t,n){var e=D(n,1)[0];t[5]&&O.p(t,e)},i:function(t){R||(V(y.$$.fragment,t),R=!0)},o:function(t){I(y.$$.fragment,t),R=!1},d:function(t){t&&d(n),M(y),O&&O.d()}}}function jt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Pt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=jt(a.time.getHours().toString())+":"+jt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var xt=function(n){t(u,s);var e=Ot(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Pt,Vt,c,{prediction:6}),n}return o(u)}();function qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Mt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Tt(t){var n,e;return n=new xt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Bt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Tt(Mt(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Mt(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=Tt(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),C(r,t)}}}function St(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=kt(J.mark((function t(){var n;return J.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,tt,(function(t){return e(1,a=t)})),j(t,nt,(function(t){return e(2,r=t)})),nt.subscribe(i),tt.subscribe(i),[c]}var Nt=function(n){t(u,s);var e=qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,St,Bt,c,{}),n}return o(u)}();function At(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Ct(t){var n,e,a;return e=new $t({props:{$$slots:{default:[Jt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),P(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var a=l(n);x(e.$$.fragment,a),a.forEach(d),this.h()},h:function(){v(n,"class","svelte-m9qkku")},m:function(t,r){h(t,n,r),q(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(V(e.$$.fragment,t),a=!0)},o:function(t){I(e.$$.fragment,t),a=!1},d:function(t){t&&d(n),M(e)}}}function Jt(t){var n,e=t[0].observed+"";return{c:function(){n=w(e)},l:function(t){n=$(t,e)},m:function(t,e){h(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&E(n,e)},d:function(t){t&&d(n)}}}function Ht(t){var n,e,a,r,c,i,o,s,g,y,_,E,j,T,B="predicted"!=t[0].observed&&Ct(t);_=new It({props:{percentage:t[1]/9,value:t[1]}});var S=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,y,_,E,D=Math.round(t[4])+"",R=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=k(),c=w(D),i=w("°C"),o=k(),s=u("p"),g=u("i"),y=k(),_=w(R),E=w("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=b(v),c=$(v,D),i=$(v,"°C"),v.forEach(d),o=b(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),y=b(h),_=$(h,R),E=$(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,y),p(s,_),p(s,E)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[3]),c=k(),i=u("p"),o=w(t[2]),s=k(),B&&B.c(),g=k(),y=u("div"),P(_.$$.fragment),E=k(),j=u("div"),S&&S.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[3]),p.forEach(d),c=b(h),i=f(h,"P",{class:!0});var m=l(i);o=$(m,t[2]),m.forEach(d),h.forEach(d),s=b(v),B&&B.l(v),g=b(v),y=f(v,"DIV",{class:!0});var k=l(y);x(_.$$.fragment,k),k.forEach(d),E=b(v),j=f(v,"DIV",{class:!0});var w=l(j);S&&S.l(w),w.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(i,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(y,"class","KP svelte-m9qkku"),v(j,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),B&&B.m(n,null),p(n,g),p(n,y),q(_,y,null),p(n,E),p(n,j),S&&S.m(j,null),T=!0},p:function(t,e){var a=D(e,1)[0];"predicted"!=t[0].observed?B?(B.p(t,a),1&a&&V(B,1)):((B=Ct(t)).c(),V(B,1),B.m(n,g)):B&&(R(),I(B,1,1,(function(){B=null})),O()),t[6]&&S.p(t,a)},i:function(t){T||(V(B),V(_.$$.fragment,t),T=!0)},o:function(t){I(B),I(_.$$.fragment,t),T=!1},d:function(t){t&&d(n),B&&B.d(),M(_),S&&S.d()}}}function Kt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function zt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Kt(a.time.getHours().toString())+":"+Kt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var Ft=function(n){t(u,s);var e=At(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,zt,Ht,c,{prediction:0}),n}return o(u)}();function Lt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Zt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Gt(t){var n,e;return n=new Ft({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Qt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Gt(Zt(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Zt(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=Gt(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),C(r,t)}}}function Ut(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=kt(J.mark((function t(){var n;return J.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,tt,(function(t){return e(1,a=t)})),j(t,nt,(function(t){return e(2,r=t)})),nt.subscribe(i),tt.subscribe(i),[c]}var Wt=function(n){t(u,s);var e=Lt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Ut,Qt,c,{}),n}return o(u)}();function Xt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Yt(t){var n,e,a,r,c,i,o,s,m,g;return o=new It({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=w(t[1]),c=k(),i=u("div"),P(o.$$.fragment),s=k(),m=u("div"),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=$(p,t[1]),p.forEach(d),h.forEach(d),c=b(v),i=f(v,"DIV",{class:!0});var g=l(i);x(o.$$.fragment,g),g.forEach(d),s=b(v),m=f(v,"DIV",{class:!0}),l(m).forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(i,"class","KP svelte-m9qkku"),v(m,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(n,c),p(n,i),q(o,i,null),p(n,s),p(n,m),g=!0},p:function(t,n){D(n,1)[0]},i:function(t){g||(V(o.$$.fragment,t),g=!0)},o:function(t){I(o.$$.fragment,t),g=!1},d:function(t){t&&d(n),M(o)}}}function tn(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function nn(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()];tn(a.time.getHours().toString()),tn(a.time.getMinutes().toString());var i=a.temp,o=a.clouds;return t.$$set=function(t){"prediction"in t&&e(4,a=t.prediction)},[r,c,i,o,a]}var en=function(n){t(u,s);var e=Xt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,nn,Yt,c,{prediction:4}),n}return o(u)}();function an(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function rn(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function cn(t){var n,e;return n=new en({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function on(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=cn(rn(t,a,c));var i=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=rn(t,a,o);r[o]?(r[o].p(s,c),V(r[o],1)):(r[o]=cn(s),r[o].c(),V(r[o],1),r[o].m(n,null))}for(R(),o=a.length;o<r.length;o+=1)i(o);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),C(r,t)}}}function sn(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=kt(J.mark((function t(){var n;return J.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return j(t,tt,(function(t){return e(1,a=t)})),j(t,nt,(function(t){return e(2,r=t)})),nt.subscribe(i),tt.subscribe(i),[c]}var un=function(n){t(u,s);var e=an(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,sn,on,c,{}),n}return o(u)}();function fn(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function ln(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=k(),r=u("p"),c=w("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(d),a=b(i),r=f(i,"P",{});var o=l(r);c=$(o,"No prediction data"),o.forEach(d),i.forEach(d),this.h()},h:function(){v(e,"class","fas fa-7x fa-exclamation-triangle"),v(n,"class","no-data svelte-11gsg4a")},m:function(t,i){h(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function dn(t){var n,e,a,r,c,i,o,s,m,g,y,E,D,j,T,B,S,N,A,C=t[0];return C&&(T=new C({})),{c:function(){n=u("div"),e=u("h2"),a=w("Forecast"),r=k(),c=u("div"),i=u("div"),o=w("hour"),s=k(),m=u("div"),g=w("3 day"),y=k(),E=u("div"),D=w("Longterm"),j=k(),T&&P(T.$$.fragment),B=_(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"H2",{class:!0});var v=l(e);a=$(v,"Forecast"),v.forEach(d),r=b(u),c=f(u,"DIV",{class:!0});var h=l(c);i=f(h,"DIV",{class:!0});var p=l(i);o=$(p,"hour"),p.forEach(d),s=b(h),m=f(h,"DIV",{class:!0});var k=l(m);g=$(k,"3 day"),k.forEach(d),y=b(h),E=f(h,"DIV",{class:!0});var w=l(E);D=$(w,"Longterm"),w.forEach(d),h.forEach(d),u.forEach(d),j=b(t),T&&x(T.$$.fragment,t),B=_(),this.h()},h:function(){v(e,"class","svelte-11gsg4a"),v(i,"class","svelte-11gsg4a"),H(i,"selected",t[0]==Nt),v(m,"class","svelte-11gsg4a"),H(m,"selected",t[0]==Wt),v(E,"class","svelte-11gsg4a"),H(E,"selected",t[0]==un),v(c,"class","version-picker svelte-11gsg4a"),v(n,"class","header svelte-11gsg4a")},m:function(u,f){h(u,n,f),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,y),p(c,E),p(E,D),h(u,j,f),T&&q(T,u,f),h(u,B,f),S=!0,N||(A=[K(i,"click",t[3]),K(m,"click",t[4]),K(E,"click",t[5])],N=!0)},p:function(t,n){if(1&n&&H(i,"selected",t[0]==Nt),1&n&&H(m,"selected",t[0]==Wt),1&n&&H(E,"selected",t[0]==un),C!==(C=t[0])){if(T){R();var e=T;I(e.$$.fragment,1,0,(function(){M(e,1)})),O()}C?(T=new C({}),P(T.$$.fragment),V(T.$$.fragment,1),q(T,B.parentNode,B)):T=null}},i:function(t){S||(T&&V(T.$$.fragment,t),S=!0)},o:function(t){T&&I(T.$$.fragment,t),S=!1},d:function(t){t&&d(n),t&&d(j),t&&d(B),T&&M(T,t),N=!1,z(A)}}}function vn(t){var n,e,a,r,c=[dn,ln],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","drawer svelte-11gsg4a")},m:function(t,a){h(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=D(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(R(),I(i[u],1,1,(function(){i[u]=null})),O(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),V(a,1),a.m(n,null))},i:function(t){r||(V(a),r=!0)},o:function(t){I(a),r=!1},d:function(t){t&&d(n),i[e].d()}}}function hn(t,n,e){var a,r;j(t,tt,(function(t){return e(1,a=t)})),j(t,nt,(function(t){return e(2,r=t)}));var c=Wt;return[c,a,r,function(){return e(0,c=Nt)},function(){return e(0,c=Wt)},function(){return e(0,c=un)}]}var pn=function(n){t(u,s);var e=fn(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,hn,vn,c,{}),n}return o(u)}();function mn(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function gn(t){var n,e,a,r,c,i;return a=new gt({}),c=new pn({}),{c:function(){n=k(),e=u("div"),P(a.$$.fragment),r=k(),P(c.$$.fragment),this.h()},l:function(t){F('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=b(t),e=f(t,"DIV",{class:!0});var i=l(e);x(a.$$.fragment,i),r=b(i),x(c.$$.fragment,i),i.forEach(d),this.h()},h:function(){document.title="Aurora data",v(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){h(t,n,o),h(t,e,o),q(a,e,null),p(e,r),q(c,e,null),i=!0},p:m,i:function(t){i||(V(a.$$.fragment,t),V(c.$$.fragment,t),i=!0)},o:function(t){I(a.$$.fragment,t),I(c.$$.fragment,t),i=!1},d:function(t){t&&d(n),t&&d(e),M(a),M(c)}}}var yn=function(n){t(u,s);var e=mn(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,gn,c,{}),n}return o(u)}();export{yn as default};
diff --git a/index.html b/index.html
index 97e733e..b875184 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=theme.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0,{}]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.0692ce05.js"}catch(e){main="/Aurora-data/client/legacy/client.fc5112f8.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-7c6f2209.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.0692ce05.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.f6ed59e6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-7c6f2209.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> <div class="homescreen svelte-pf4p6y"><div class="svelte-9kdo4s weatherCurrent-wrapper"><div class="svelte-9kdo4s weatherCurrent-data"><div class="svelte-9kdo4s weatherCurrent-data-location"></div> <div class=weatherCurrent-data-date></div> <div class="svelte-9kdo4s weatherCurrent-data-kp"><div class="svelte-7k6qu0 lds-roller"><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div></div></div> <div class="svelte-9kdo4s current-details"></div></div></div> <div class="svelte-2wkoqk drawer"><div class="svelte-2wkoqk no-data"><i class="fa-7x fa-exclamation-triangle fas"></i> <p>No prediction data</div></div></div></div> </div> \ No newline at end of file
+<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=theme.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0,{}]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.c340c0cb.js"}catch(e){main="/Aurora-data/client/legacy/client.e32a6024.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-8f3929f0.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.c340c0cb.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.1b1af70b.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-8f3929f0.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> <div class="homescreen svelte-pf4p6y"><div class="svelte-9kdo4s weatherCurrent-wrapper"><div class="svelte-9kdo4s weatherCurrent-data"><div class="svelte-9kdo4s weatherCurrent-data-location"></div> <div class=weatherCurrent-data-date></div> <div class="svelte-9kdo4s weatherCurrent-data-kp"><div class="svelte-7k6qu0 lds-roller"><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div></div></div> <div class="svelte-9kdo4s current-details"></div></div></div> <div class="svelte-11gsg4a drawer"><div class="svelte-11gsg4a no-data"><i class="fa-7x fa-exclamation-triangle fas"></i> <p>No prediction data</div></div></div></div> </div> \ No newline at end of file
diff --git a/service-worker-index.html b/service-worker-index.html
index e077a4a..b162025 100644
--- a/service-worker-index.html
+++ b/service-worker-index.html
@@ -1 +1 @@
-<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=theme.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.0692ce05.js"}catch(e){main="/Aurora-data/client/legacy/client.fc5112f8.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-7c6f2209.css rel=stylesheet> <link href=/Aurora-data/client/client.0692ce05.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.f6ed59e6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-7c6f2209.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> </div> </div> \ No newline at end of file
+<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=theme.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.c340c0cb.js"}catch(e){main="/Aurora-data/client/legacy/client.e32a6024.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-8f3929f0.css rel=stylesheet> <link href=/Aurora-data/client/client.c340c0cb.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.1b1af70b.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-8f3929f0.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> </div> </div> \ No newline at end of file
diff --git a/service-worker.js b/service-worker.js
index 383b0ec..502fd6b 100644
--- a/service-worker.js
+++ b/service-worker.js
@@ -1 +1 @@
-!function(){"use strict";const e=1651153271348,t=[{pattern:/^\/$/}],s=`cache${e}`,n=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js","/theme.css"].map((e=>"/Aurora-data"+e)),a=["/client/client.0692ce05.js","/client/inject_styles.5607aec6.js","/client/index.f6ed59e6.js"].map((e=>"/Aurora-data"+e)).concat(n),c=new Set(a);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(a))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const n=new URL(s.request.url);n.protocol.startsWith("http")&&(n.hostname===self.location.hostname&&n.port!==self.location.port||(n.host===self.location.host&&c.has(n.pathname)?s.respondWith(caches.match(s.request)):n.origin===self.origin&&t.find((e=>e.pattern.test(n.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open(`offline${e}`).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const n=await e.match(s.request);if(n)return n;throw t}})))))}))}();
+!function(){"use strict";const e=1651525655332,t=[{pattern:/^\/$/}],s=`cache${e}`,a=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js","/theme.css"].map((e=>"/Aurora-data"+e)),n=["/client/client.c340c0cb.js","/client/inject_styles.5607aec6.js","/client/index.1b1af70b.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open(`offline${e}`).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const a=await e.match(s.request);if(a)return a;throw t}})))))}))}();
diff --git a/theme.css b/theme.css
index 7e0d6fc..d76d865 100644
--- a/theme.css
+++ b/theme.css
@@ -3,6 +3,8 @@ body {
--surface: #f7fafc;
--on-surface: #1a202c;
--elevation-1-shadow: 0px -6px 7px 0px black;
+ --elevation-1: #c2c2c2;
+ --on-elevation-1: #000000;
--divider: #e2e8f0;
--gradient-1: linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;
@@ -16,11 +18,10 @@ body.dark {
--surface: #161616;
--on-surface: #a5a5a5;
--elevation-1-shadow: none;
+ --elevation-1: #3b3b3b;
+ --on-elevation-1: #afafaf;
--divider: #363636;
--gradient-1: linear-gradient(90deg, #0c5f2b, #0a2531 51%, #1e6439) 100% / 200%;
- --gradient-2: linear-gradient(90deg, rgb(110 0 96) 20%,
- rgb(27 142 43) 60%,
- rgb(42 70 61) 85%,
- var(--surface) 100%);
+ --gradient-2: linear-gradient(to right, rgb(110, 0, 96) 11.34%, rgb(27, 142, 43) 51.68%, rgb(11, 73, 41) 76.05%, #161616 96.22%)
}