diff options
author | jakobst1n <undefined> | 2020-10-14 13:18:09 +0200 |
---|---|---|
committer | jakobst1n <undefined> | 2020-10-14 13:18:09 +0200 |
commit | ca54e66e264f200d7e95db0159e2c50c865d6234 (patch) | |
tree | 628d37a288aa41bc928e2e71c0a39bea2b2f488a | |
parent | 2a58e5697f208efe49b6c92424f5dd3b9b23b5a0 (diff) | |
download | Aurora-data-ca54e66e264f200d7e95db0159e2c50c865d6234.tar.gz Aurora-data-ca54e66e264f200d7e95db0159e2c50c865d6234.zip |
Updates
-rw-r--r-- | client/client.2977978b.js (renamed from client/client.9199399a.js) | 2 | ||||
-rw-r--r-- | client/index-9477b324.css | 7 | ||||
-rw-r--r-- | client/index-b0c626b8.css | 7 | ||||
-rw-r--r-- | client/index.bdacbdbd.js | 1 | ||||
-rw-r--r-- | client/index.d2745b3f.js | 1 | ||||
-rw-r--r-- | client/legacy/client.4e5e1d47.js (renamed from client/legacy/client.11fb8289.js) | 2 | ||||
-rw-r--r-- | client/legacy/index-9477b324.css | 7 | ||||
-rw-r--r-- | client/legacy/index-b0c626b8.css | 7 | ||||
-rw-r--r-- | client/legacy/index.155945f7.js | 1 | ||||
-rw-r--r-- | client/legacy/index.285229ba.js | 1 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | service-worker-index.html | 2 | ||||
-rw-r--r-- | service-worker.js | 2 |
13 files changed, 21 insertions, 21 deletions
diff --git a/client/client.9199399a.js b/client/client.2977978b.js index c368b9d..f557557 100644 --- a/client/client.9199399a.js +++ b/client/client.2977978b.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 c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function a(t,e,n,r,o,s,c){const a=function(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}(e,r,o,s);if(a){const o=i(e,n,r,c);t.p(o,a)}}function l(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode.removeChild(t)}function p(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function d(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}function g(){return h("")}function $(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t){return Array.from(t.childNodes)}function v(t,e,n,r){for(let r=0;r<t.length;r+=1){const o=t[r];if(o.nodeName===e){let e=0;const s=[];for(;e<o.attributes.length;){const t=o.attributes[e++];n[t.name]||s.push(t.name)}for(let t=0;t<s.length;t++)o.removeAttribute(s[t]);return t.splice(r,1)[0]}}return r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):d(e)}function b(t,e){for(let n=0;n<t.length;n+=1){const r=t[n];if(3===r.nodeType)return r.data=""+e,t.splice(n,1)[0]}return h(e)}function _(t){return b(t," ")}function x(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function w(t,e=document.body){return Array.from(e.querySelectorAll(t))}let E;function S(t){E=t}function R(){if(!E)throw new Error("Function called outside component initialization");return E}function N(t){R().$$.on_mount.push(t)}const k=[],P=[],j=[],A=[],L=Promise.resolve();let q=!1;function O(t){j.push(t)}let U=!1;const C=new Set;function T(){if(!U){U=!0;do{for(let t=0;t<k.length;t+=1){const e=k[t];S(e),I(e.$$)}for(S(null),k.length=0;P.length;)P.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];C.has(e)||(C.add(e),e())}j.length=0}while(k.length);for(;A.length;)A.pop()();q=!1,U=!1,C.clear()}}function I(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(O)}}const B=new Set;let J;function K(){J={r:0,c:[],p:J}}function V(){J.r||o(J.c),J=J.p}function D(t,e){t&&t.i&&(B.delete(t),t.i(e))}function M(t,e,n,r){if(t&&t.o){if(B.has(t))return;B.add(t),J.c.push((()=>{B.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function z(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const c=t[s],i=e[s];if(i){for(const t in c)t in i||(r[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[s]=i}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function H(t){return"object"==typeof t&&null!==t?t:{}}function Y(t){t&&t.c()}function F(t,e){t&&t.l(e)}function G(t,e,r){const{fragment:c,on_mount:i,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,r),O((()=>{const e=i.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(O)}function W(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 X(t,e){-1===t.$$.dirty[0]&&(k.push(t),q||(q=!0,L.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Q(e,n,s,c,i,a,l=[-1]){const u=E;S(e);const p=n.props||{},d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:i,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:r(),dirty:l,skip_bound:!1};let h=!1;if(d.ctx=s?s(e,p,((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&i(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&X(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!c&&c(d.ctx),n.target){if(n.hydrate){const t=y(n.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();n.intro&&D(e.$$.fragment),G(e,n.target,n.anchor),T()}S(u)}class Z{$destroy(){W(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 tt=[];function et(e,n=t){let r;const o=[];function s(t){if(c(e,t)&&(e=t,r)){const t=!tt.length;for(let t=0;t<o.length;t+=1){const n=o[t];n[1](),tt.push(n,e)}if(t){for(let t=0;t<tt.length;t+=2)tt[t][0](tt[t+1]);tt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(c,i=t){const a=[c,i];return o.push(a),1===o.length&&(r=n(s)||t),c(e),()=>{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const nt={};function rt(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=i(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=d("div"),o&&o.c(),this.h()},l(t){e=v(t,"DIV",{class:!0});var n=y(e);o&&o.l(n),n.forEach(f),this.h()},h(){$(e,"class","app-container svelte-lkkhqy")},m(t,r){u(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&1&e&&a(o,r,t,t[0],e,null,null)},i(t){n||(D(o,t),n=!0)},o(t){M(o,t),n=!1},d(t){t&&f(e),o&&o.d(t)}}}function ot(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class st extends Z{constructor(t){super(),Q(this,t,ot,rt,c,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=d("pre"),n=h(r)},l(t){e=v(t,"PRE",{});var o=y(e);n=b(o,r),o.forEach(f)},m(t,r){u(t,e,r),l(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&x(n,r)},d(t){t&&f(e)}}}function it(e){let n,r,o,s,c,i,a,p,E,S=e[1].message+"";document.title=n=e[0];let R=e[2]&&e[1].stack&&ct(e);return{c(){r=m(),o=d("h1"),s=h(e[0]),c=m(),i=d("p"),a=h(S),p=m(),R&&R.c(),E=g(),this.h()},l(t){w('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(f),r=_(t),o=v(t,"H1",{class:!0});var n=y(o);s=b(n,e[0]),n.forEach(f),c=_(t),i=v(t,"P",{class:!0});var l=y(i);a=b(l,S),l.forEach(f),p=_(t),R&&R.l(t),E=g(),this.h()},h(){$(o,"class","svelte-jpshsi"),$(i,"class","svelte-jpshsi")},m(t,e){u(t,r,e),u(t,o,e),l(o,s),u(t,c,e),u(t,i,e),l(i,a),u(t,p,e),R&&R.m(t,e),u(t,E,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&x(s,t[0]),2&e&&S!==(S=t[1].message+"")&&x(a,S),t[2]&&t[1].stack?R?R.p(t,e):(R=ct(t),R.c(),R.m(E.parentNode,E)):R&&(R.d(1),R=null)},i:t,o:t,d(t){t&&f(r),t&&f(o),t&&f(c),t&&f(i),t&&f(p),R&&R.d(t),t&&f(E)}}}function at(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 lt extends Z{constructor(t){super(),Q(this,t,at,it,c,{status:0,error:1})}}function ut(t){let n,r,o;const s=[t[4].props];var c=t[4].component;function i(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return c&&(n=new c(i())),{c(){n&&Y(n.$$.fragment),r=g()},l(t){n&&F(n.$$.fragment,t),r=g()},m(t,e){n&&G(n,t,e),u(t,r,e),o=!0},p(t,e){const o=16&e?z(s,[H(t[4].props)]):{};if(c!==(c=t[4].component)){if(n){K();const t=n;M(t.$$.fragment,1,0,(()=>{W(t,1)})),V()}c?(n=new c(i()),Y(n.$$.fragment),D(n.$$.fragment,1),G(n,r.parentNode,r)):n=null}else c&&n.$set(o)},i(t){o||(n&&D(n.$$.fragment,t),o=!0)},o(t){n&&M(n.$$.fragment,t),o=!1},d(t){t&&f(r),n&&W(n,t)}}}function ft(t){let e,n;return e=new lt({props:{error:t[0],status:t[1]}}),{c(){Y(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){G(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||(D(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){W(e,t)}}}function pt(t){let e,n,r,o;const s=[ft,ut],c=[];function i(t,e){return t[0]?0:1}return e=i(t),n=c[e]=s[e](t),{c(){n.c(),r=g()},l(t){n.l(t),r=g()},m(t,n){c[e].m(t,n),u(t,r,n),o=!0},p(t,o){let a=e;e=i(t),e===a?c[e].p(t,o):(K(),M(c[a],1,1,(()=>{c[a]=null})),V(),n=c[e],n||(n=c[e]=s[e](t),n.c()),D(n,1),n.m(r.parentNode,r))},i(t){o||(D(n),o=!0)},o(t){M(n),o=!1},d(t){c[e].d(t),t&&f(r)}}}function dt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[pt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new st({props:s}),{c(){Y(n.$$.fragment)},l(t){F(n.$$.fragment,t)},m(t,e){G(n,t,e),r=!0},p(t,[e]){const r=12&e?z(o,[4&e&&{segment:t[2][0]},8&e&&H(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(D(n.$$.fragment,t),r=!0)},o(t){M(n.$$.fragment,t),r=!1},d(t){W(n,t)}}}function ht(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:c}=e,{level0:i}=e,{level1:a=null}=e,{notify:l}=e;var u,f,p;return u=l,R().$$.after_update.push(u),f=nt,p=r,R().$$.context.set(f,p),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,c=t.segments),"level0"in t&&n(3,i=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,c,i,a,r,l]}class mt extends Z{constructor(t){super(),Q(this,t,ht,dt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const gt=[],$t=[{js:()=>Promise.all([import("./index.bdacbdbd.js"),__inject_styles(["client-ea61129f.css","index-9477b324.css"])]).then((function(t){return t[0]}))}],yt=[{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 c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function a(t,e,n,r,o,s,c){const a=function(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}(e,r,o,s);if(a){const o=i(e,n,r,c);t.p(o,a)}}function l(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function f(t){t.parentNode.removeChild(t)}function p(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function d(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}function g(){return h("")}function $(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t){return Array.from(t.childNodes)}function v(t,e,n,r){for(let r=0;r<t.length;r+=1){const o=t[r];if(o.nodeName===e){let e=0;const s=[];for(;e<o.attributes.length;){const t=o.attributes[e++];n[t.name]||s.push(t.name)}for(let t=0;t<s.length;t++)o.removeAttribute(s[t]);return t.splice(r,1)[0]}}return r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):d(e)}function b(t,e){for(let n=0;n<t.length;n+=1){const r=t[n];if(3===r.nodeType)return r.data=""+e,t.splice(n,1)[0]}return h(e)}function _(t){return b(t," ")}function x(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function w(t,e=document.body){return Array.from(e.querySelectorAll(t))}let E;function S(t){E=t}function R(){if(!E)throw new Error("Function called outside component initialization");return E}function N(t){R().$$.on_mount.push(t)}const k=[],P=[],j=[],A=[],L=Promise.resolve();let q=!1;function O(t){j.push(t)}let U=!1;const C=new Set;function T(){if(!U){U=!0;do{for(let t=0;t<k.length;t+=1){const e=k[t];S(e),I(e.$$)}for(S(null),k.length=0;P.length;)P.pop()();for(let t=0;t<j.length;t+=1){const e=j[t];C.has(e)||(C.add(e),e())}j.length=0}while(k.length);for(;A.length;)A.pop()();q=!1,U=!1,C.clear()}}function I(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(O)}}const B=new Set;let J;function K(){J={r:0,c:[],p:J}}function V(){J.r||o(J.c),J=J.p}function D(t,e){t&&t.i&&(B.delete(t),t.i(e))}function M(t,e,n,r){if(t&&t.o){if(B.has(t))return;B.add(t),J.c.push((()=>{B.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function z(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const c=t[s],i=e[s];if(i){for(const t in c)t in i||(r[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[s]=i}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function H(t){return"object"==typeof t&&null!==t?t:{}}function Y(t){t&&t.c()}function F(t,e){t&&t.l(e)}function G(t,e,r){const{fragment:c,on_mount:i,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,r),O((()=>{const e=i.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(O)}function W(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 X(t,e){-1===t.$$.dirty[0]&&(k.push(t),q||(q=!0,L.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Q(e,n,s,c,i,a,l=[-1]){const u=E;S(e);const p=n.props||{},d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:i,bound:r(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:r(),dirty:l,skip_bound:!1};let h=!1;if(d.ctx=s?s(e,p,((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&i(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&X(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!c&&c(d.ctx),n.target){if(n.hydrate){const t=y(n.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();n.intro&&D(e.$$.fragment),G(e,n.target,n.anchor),T()}S(u)}class Z{$destroy(){W(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 tt=[];function et(e,n=t){let r;const o=[];function s(t){if(c(e,t)&&(e=t,r)){const t=!tt.length;for(let t=0;t<o.length;t+=1){const n=o[t];n[1](),tt.push(n,e)}if(t){for(let t=0;t<tt.length;t+=2)tt[t][0](tt[t+1]);tt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(c,i=t){const a=[c,i];return o.push(a),1===o.length&&(r=n(s)||t),c(e),()=>{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const nt={};function rt(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=i(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=d("div"),o&&o.c(),this.h()},l(t){e=v(t,"DIV",{class:!0});var n=y(e);o&&o.l(n),n.forEach(f),this.h()},h(){$(e,"class","app-container svelte-lkkhqy")},m(t,r){u(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&1&e&&a(o,r,t,t[0],e,null,null)},i(t){n||(D(o,t),n=!0)},o(t){M(o,t),n=!1},d(t){t&&f(e),o&&o.d(t)}}}function ot(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class st extends Z{constructor(t){super(),Q(this,t,ot,rt,c,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=d("pre"),n=h(r)},l(t){e=v(t,"PRE",{});var o=y(e);n=b(o,r),o.forEach(f)},m(t,r){u(t,e,r),l(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&x(n,r)},d(t){t&&f(e)}}}function it(e){let n,r,o,s,c,i,a,p,E,S=e[1].message+"";document.title=n=e[0];let R=e[2]&&e[1].stack&&ct(e);return{c(){r=m(),o=d("h1"),s=h(e[0]),c=m(),i=d("p"),a=h(S),p=m(),R&&R.c(),E=g(),this.h()},l(t){w('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(f),r=_(t),o=v(t,"H1",{class:!0});var n=y(o);s=b(n,e[0]),n.forEach(f),c=_(t),i=v(t,"P",{class:!0});var l=y(i);a=b(l,S),l.forEach(f),p=_(t),R&&R.l(t),E=g(),this.h()},h(){$(o,"class","svelte-jpshsi"),$(i,"class","svelte-jpshsi")},m(t,e){u(t,r,e),u(t,o,e),l(o,s),u(t,c,e),u(t,i,e),l(i,a),u(t,p,e),R&&R.m(t,e),u(t,E,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&x(s,t[0]),2&e&&S!==(S=t[1].message+"")&&x(a,S),t[2]&&t[1].stack?R?R.p(t,e):(R=ct(t),R.c(),R.m(E.parentNode,E)):R&&(R.d(1),R=null)},i:t,o:t,d(t){t&&f(r),t&&f(o),t&&f(c),t&&f(i),t&&f(p),R&&R.d(t),t&&f(E)}}}function at(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 lt extends Z{constructor(t){super(),Q(this,t,at,it,c,{status:0,error:1})}}function ut(t){let n,r,o;const s=[t[4].props];var c=t[4].component;function i(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return c&&(n=new c(i())),{c(){n&&Y(n.$$.fragment),r=g()},l(t){n&&F(n.$$.fragment,t),r=g()},m(t,e){n&&G(n,t,e),u(t,r,e),o=!0},p(t,e){const o=16&e?z(s,[H(t[4].props)]):{};if(c!==(c=t[4].component)){if(n){K();const t=n;M(t.$$.fragment,1,0,(()=>{W(t,1)})),V()}c?(n=new c(i()),Y(n.$$.fragment),D(n.$$.fragment,1),G(n,r.parentNode,r)):n=null}else c&&n.$set(o)},i(t){o||(n&&D(n.$$.fragment,t),o=!0)},o(t){n&&M(n.$$.fragment,t),o=!1},d(t){t&&f(r),n&&W(n,t)}}}function ft(t){let e,n;return e=new lt({props:{error:t[0],status:t[1]}}),{c(){Y(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){G(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||(D(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){W(e,t)}}}function pt(t){let e,n,r,o;const s=[ft,ut],c=[];function i(t,e){return t[0]?0:1}return e=i(t),n=c[e]=s[e](t),{c(){n.c(),r=g()},l(t){n.l(t),r=g()},m(t,n){c[e].m(t,n),u(t,r,n),o=!0},p(t,o){let a=e;e=i(t),e===a?c[e].p(t,o):(K(),M(c[a],1,1,(()=>{c[a]=null})),V(),n=c[e],n||(n=c[e]=s[e](t),n.c()),D(n,1),n.m(r.parentNode,r))},i(t){o||(D(n),o=!0)},o(t){M(n),o=!1},d(t){c[e].d(t),t&&f(r)}}}function dt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[pt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new st({props:s}),{c(){Y(n.$$.fragment)},l(t){F(n.$$.fragment,t)},m(t,e){G(n,t,e),r=!0},p(t,[e]){const r=12&e?z(o,[4&e&&{segment:t[2][0]},8&e&&H(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(D(n.$$.fragment,t),r=!0)},o(t){M(n.$$.fragment,t),r=!1},d(t){W(n,t)}}}function ht(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:c}=e,{level0:i}=e,{level1:a=null}=e,{notify:l}=e;var u,f,p;return u=l,R().$$.after_update.push(u),f=nt,p=r,R().$$.context.set(f,p),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,c=t.segments),"level0"in t&&n(3,i=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,c,i,a,r,l]}class mt extends Z{constructor(t){super(),Q(this,t,ht,dt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const gt=[],$t=[{js:()=>Promise.all([import("./index.d2745b3f.js"),__inject_styles(["client-ea61129f.css","index-b0c626b8.css"])]).then((function(t){return t[0]}))}],yt=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/index-9477b324.css b/client/index-9477b324.css deleted file mode 100644 index e555f61..0000000 --- a/client/index-9477b324.css +++ /dev/null @@ -1,7 +0,0 @@ -.weatherCurrent-wrapper.svelte-mz1ju5.svelte-mz1ju5{height:calc(100% + 1rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( - rgba(0, 0, 0, 0.5), - rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-mz1ju5.svelte-mz1ju5{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-mz1ju5.svelte-mz1ju5{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-mz1ju5 .symbol.svelte-mz1ju5{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-mz1ju5 h1.svelte-mz1ju5{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-mz1ju5 h2.svelte-mz1ju5{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-mz1ju5.svelte-mz1ju5{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:0.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-mz1ju5 p.svelte-mz1ju5{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} -.predicted-weather.svelte-l8czgl.svelte-l8czgl{border-top-left-radius:1rem;border-top-right-radius:1rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-l8czgl.svelte-l8czgl{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-l8czgl.svelte-l8czgl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-l8czgl h2.svelte-l8czgl{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-l8czgl.svelte-l8czgl{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-l8czgl.svelte-l8czgl::-webkit-scrollbar{display:none}.no-data.svelte-l8czgl.svelte-l8czgl{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-l8czgl.svelte-l8czgl{margin-top:1rem} -.homescreen.svelte-19pefkm{display:grid;grid-template-rows:35vh 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-b0c626b8.css b/client/index-b0c626b8.css new file mode 100644 index 0000000..cd464b7 --- /dev/null +++ b/client/index-b0c626b8.css @@ -0,0 +1,7 @@ +.weatherCurrent-wrapper.svelte-13muhi2.svelte-13muhi2{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( + rgba(0, 0, 0, 0.5), + rgba(0, 0, 0, 0.5) + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-13muhi2.svelte-13muhi2{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-13muhi2.svelte-13muhi2{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-13muhi2 .symbol.svelte-13muhi2{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-13muhi2 h1.svelte-13muhi2{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-13muhi2 h2.svelte-13muhi2{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-13muhi2.svelte-13muhi2{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:0.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-13muhi2 p.svelte-13muhi2{line-height:1.375} +.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} +.predicted-weather.svelte-bhvysr.svelte-bhvysr{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-bhvysr.svelte-bhvysr{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-bhvysr.svelte-bhvysr{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-bhvysr h2.svelte-bhvysr{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-bhvysr.svelte-bhvysr{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-bhvysr.svelte-bhvysr::-webkit-scrollbar{display:none}.no-data.svelte-bhvysr.svelte-bhvysr{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-bhvysr.svelte-bhvysr{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.bdacbdbd.js b/client/index.bdacbdbd.js deleted file mode 100644 index 8a6280e..0000000 --- a/client/index.bdacbdbd.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t,i as a,s as e,e as s,a as r,t as n,c,b as o,d as l,f as i,g as h,h as u,j as f,k as d,l as v,n as p,o as m,m as g,p as E,q as w,r as $,u as D,v as y,w as P,x as j,y as b,z as I}from"./client.9199399a.js";function z(t){let a,e,m,g,E,w,$,D,y,P,j,b,I,z,x,C,N,T,M,_,k,A,S,H,J,K,B,O,q,F,Z,G,L,Q,R,U,W,X,Y,tt,at,et,st,rt,nt,ct,ot,lt,it;return{c(){a=s("div"),e=s("div"),m=s("div"),g=s("i"),E=r(),w=s("h1"),$=n(V),D=r(),y=s("div"),P=s("p"),j=n(t[0]),b=r(),I=s("div"),z=s("h2"),x=n("KP "),C=n(t[1]),N=r(),T=s("p"),M=s("span"),_=n("↑ KP "),k=n(t[3]),A=r(),S=s("span"),H=n("↓ KP "),J=n(t[2]),K=r(),B=s("div"),O=s("div"),q=s("p"),F=n("BZ"),Z=r(),G=s("p"),L=n(t[4]),Q=r(),R=s("div"),U=s("p"),W=n("Temp"),X=r(),Y=s("p"),tt=n(t[6]),at=n("°C"),et=r(),st=s("div"),rt=s("p"),nt=n("Clouds"),ct=r(),ot=s("p"),lt=n(t[5]),it=n("%"),this.h()},l(s){a=c(s,"DIV",{class:!0});var r=o(a);e=c(r,"DIV",{class:!0});var n=o(e);m=c(n,"DIV",{class:!0});var u=o(m);g=c(u,"I",{class:!0}),o(g).forEach(l),E=i(u),w=c(u,"H1",{class:!0});var f=o(w);$=h(f,V),f.forEach(l),u.forEach(l),D=i(n),y=c(n,"DIV",{class:!0});var d=o(y);P=c(d,"P",{});var v=o(P);j=h(v,t[0]),v.forEach(l),d.forEach(l),b=i(n),I=c(n,"DIV",{class:!0});var p=o(I);z=c(p,"H2",{class:!0});var ht=o(z);x=h(ht,"KP "),C=h(ht,t[1]),ht.forEach(l),N=i(p),T=c(p,"P",{});var ut=o(T);M=c(ut,"SPAN",{className:!0});var ft=o(M);_=h(ft,"↑ KP "),k=h(ft,t[3]),ft.forEach(l),A=i(ut),S=c(ut,"SPAN",{className:!0});var dt=o(S);H=h(dt,"↓ KP "),J=h(dt,t[2]),dt.forEach(l),ut.forEach(l),p.forEach(l),K=i(n),B=c(n,"DIV",{class:!0});var vt=o(B);O=c(vt,"DIV",{});var pt=o(O);q=c(pt,"P",{class:!0});var mt=o(q);F=h(mt,"BZ"),mt.forEach(l),Z=i(pt),G=c(pt,"P",{class:!0});var gt=o(G);L=h(gt,t[4]),gt.forEach(l),pt.forEach(l),Q=i(vt),R=c(vt,"DIV",{});var Et=o(R);U=c(Et,"P",{class:!0});var wt=o(U);W=h(wt,"Temp"),wt.forEach(l),X=i(Et),Y=c(Et,"P",{class:!0});var $t=o(Y);tt=h($t,t[6]),at=h($t,"°C"),$t.forEach(l),Et.forEach(l),et=i(vt),st=c(vt,"DIV",{});var Dt=o(st);rt=c(Dt,"P",{class:!0});var yt=o(rt);nt=h(yt,"Clouds"),yt.forEach(l),ct=i(Dt),ot=c(Dt,"P",{class:!0});var Pt=o(ot);lt=h(Pt,t[5]),it=h(Pt,"%"),Pt.forEach(l),Dt.forEach(l),vt.forEach(l),n.forEach(l),r.forEach(l),this.h()},h(){u(g,"class","symbol fas fa-map-marker-alt svelte-mz1ju5"),u(w,"class","svelte-mz1ju5"),u(m,"class","weatherCurrent-data-location svelte-mz1ju5"),u(y,"class","weatherCurrent-data-date"),u(z,"class","svelte-mz1ju5"),u(M,"classname","pr-2"),u(S,"classname","pl-2"),u(I,"class","weatherCurrent-data-kp svelte-mz1ju5"),u(q,"class","svelte-mz1ju5"),u(G,"class","svelte-mz1ju5"),u(U,"class","svelte-mz1ju5"),u(Y,"class","svelte-mz1ju5"),u(rt,"class","svelte-mz1ju5"),u(ot,"class","svelte-mz1ju5"),u(B,"class","current-details svelte-mz1ju5"),u(e,"class","weatherCurrent-data svelte-mz1ju5"),u(a,"class","weatherCurrent-wrapper svelte-mz1ju5")},m(t,s){f(t,a,s),d(a,e),d(e,m),d(m,g),d(m,E),d(m,w),d(w,$),d(e,D),d(e,y),d(y,P),d(P,j),d(e,b),d(e,I),d(I,z),d(z,x),d(z,C),d(I,N),d(I,T),d(T,M),d(M,_),d(M,k),d(T,A),d(T,S),d(S,H),d(S,J),d(e,K),d(e,B),d(B,O),d(O,q),d(q,F),d(O,Z),d(O,G),d(G,L),d(B,Q),d(B,R),d(R,U),d(U,W),d(R,X),d(R,Y),d(Y,tt),d(Y,at),d(B,et),d(B,st),d(st,rt),d(rt,nt),d(st,ct),d(st,ot),d(ot,lt),d(ot,it)},p(t,[a]){1&a&&v(j,t[0]),2&a&&v(C,t[1]),8&a&&v(k,t[3]),4&a&&v(J,t[2]),16&a&&v(L,t[4]),64&a&&v(tt,t[6]),32&a&&v(lt,t[5])},i:p,o:p,d(t){t&&l(a)}}}let V="The earth";function x(t,a,e){var s=this&&this.__awaiter||function(t,a,e,s){return new(e||(e=Promise))((function(r,n){function c(t){try{l(s.next(t))}catch(t){n(t)}}function o(t){try{l(s.throw(t))}catch(t){n(t)}}function l(t){var a;t.done?r(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(c,o)}l((s=s.apply(t,a||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];let n,c,o="-",l="-",i="-",h="-",u="-",f="-",d="-";function v(t){n=t.coords.longitude,c=t.coords.latitude,function(t,a){s(this,void 0,void 0,(function*(){let s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a}&lon=${t}`).then((t=>t.json()));e(5,f=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(6,d=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(n,c)}function p(t){g()}function g(){n=28.283333,c=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){e(4,u=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let a=new Date,s=new Date(0,0,0),n=1e3,c=0;t.forEach(((t,r)=>{t[1]>c&&(c=t[1]),t[1]<n&&(n=t[1]);let o=new Date(t[0]);Math.abs(o.getTime()-a.getTime())<Math.abs(s.getTime()-a.getTime())&&(s=o,e(1,l=t[1]))})),e(2,i=n.toString()),e(3,h=c.toString()),e(0,o=s.getDay()+". "+r[s.getMonth()]+" "+s.getHours()+":"+s.getMinutes())}))}(),navigator.geolocation?navigator.geolocation.getCurrentPosition(v,p):g()})),[o,l,i,h,u,f,d]}class C extends t{constructor(t){super(),a(this,t,x,z,e,{})}}function N(t){let a,e,v,m,g,E,w,$,D,y,P,j,b=t[5]&&function(t){let a,e,v,m,g,E,w,$,D,y,P,j;return{c(){a=s("div"),e=s("p"),v=s("i"),m=r(),g=n(t[3]),E=n("°C"),w=r(),$=s("p"),D=s("i"),y=r(),P=n(t[4]),j=n("%"),this.h()},l(s){a=c(s,"DIV",{});var r=o(a);e=c(r,"P",{});var n=o(e);v=c(n,"I",{class:!0}),o(v).forEach(l),m=i(n),g=h(n,t[3]),E=h(n,"°C"),n.forEach(l),w=i(r),$=c(r,"P",{});var u=o($);D=c(u,"I",{class:!0}),o(D).forEach(l),y=i(u),P=h(u,t[4]),j=h(u,"%"),u.forEach(l),r.forEach(l),this.h()},h(){u(v,"class","fas fa-thermometer-half"),u(D,"class","fas fa-cloud")},m(t,s){f(t,a,s),d(a,e),d(e,v),d(e,m),d(e,g),d(e,E),d(a,w),d(a,$),d($,D),d($,y),d($,P),d($,j)},p:p,d(t){t&&l(a)}}}(t);return{c(){a=s("div"),e=s("div"),v=s("h3"),m=n(t[2]),g=r(),E=s("p"),w=n(t[1]),$=r(),D=s("div"),y=s("h2"),P=n(t[0]),j=r(),b&&b.c(),this.h()},l(s){a=c(s,"DIV",{class:!0});var r=o(a);e=c(r,"DIV",{});var n=o(e);v=c(n,"H3",{class:!0});var u=o(v);m=h(u,t[2]),u.forEach(l),g=i(n),E=c(n,"P",{});var f=o(E);w=h(f,t[1]),f.forEach(l),n.forEach(l),$=i(r),D=c(r,"DIV",{class:!0});var d=o(D);y=c(d,"H2",{class:!0});var p=o(y);P=h(p,t[0]),p.forEach(l),j=i(d),b&&b.l(d),d.forEach(l),r.forEach(l),this.h()},h(){u(v,"class","svelte-u548p6"),u(y,"class","svelte-u548p6"),u(D,"class","data svelte-u548p6"),u(a,"class","prediction-details svelte-u548p6")},m(t,s){f(t,a,s),d(a,e),d(e,v),d(v,m),d(e,g),d(e,E),d(E,w),d(a,$),d(a,D),d(D,y),d(y,P),d(D,j),b&&b.m(D,null)},p(t,[a]){t[5]&&b.p(t,a)},i:p,o:p,d(t){t&&l(a),b&&b.d()}}}function T(t,a,e){let{prediction:s}=a;let r=s.kp,n=s.time.split(" "),c=Number(n[0].split("-")[2])+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][Number(n[0].split("-")[1])],o=n[1].substring(0,5),l=s.temp,i=s.clouds,h=s.hasNOMETData;return t.$$set=t=>{"prediction"in t&&e(6,s=t.prediction)},[r,c,o,l,i,h,s]}class M extends t{constructor(t){super(),a(this,t,T,N,e,{prediction:6})}}function _(t,a,e){const s=t.slice();return s[13]=a[e],s[15]=e,s}function k(t){let a,e,v,m,g;return{c(){a=s("div"),e=s("i"),v=r(),m=s("p"),g=n("No prediction data"),this.h()},l(t){a=c(t,"DIV",{class:!0});var s=o(a);e=c(s,"I",{class:!0}),o(e).forEach(l),v=i(s),m=c(s,"P",{});var r=o(m);g=h(r,"No prediction data"),r.forEach(l),s.forEach(l),this.h()},h(){u(e,"class","fas fa-7x fa-exclamation-triangle"),u(a,"class","no-data svelte-l8czgl")},m(t,s){f(t,a,s),d(a,e),d(a,v),d(a,m),d(m,g)},p:p,i:p,o:p,d(t){t&&l(a)}}}function A(t){let a,e,v,p,m,D,y=t[0],P=[];for(let a=0;a<y.length;a+=1)P[a]=S(_(t,y,a));const j=t=>E(P[t],1,1,(()=>{P[t]=null}));return{c(){a=s("div"),e=s("h2"),v=n("Predicted"),p=r(),m=s("div");for(let t=0;t<P.length;t+=1)P[t].c();this.h()},l(t){a=c(t,"DIV",{className:!0});var s=o(a);e=c(s,"H2",{class:!0});var r=o(e);v=h(r,"Predicted"),r.forEach(l),s.forEach(l),p=i(t),m=c(t,"DIV",{class:!0});var n=o(m);for(let t=0;t<P.length;t+=1)P[t].l(n);n.forEach(l),this.h()},h(){u(e,"class","svelte-l8czgl"),u(a,"classname","flex flex-row justify-between items-top"),u(m,"class","prediction-table svelte-l8czgl")},m(t,s){f(t,a,s),d(a,e),d(e,v),f(t,p,s),f(t,m,s);for(let t=0;t<P.length;t+=1)P[t].m(m,null);D=!0},p(t,a){if(1&a){let e;for(y=t[0],e=0;e<y.length;e+=1){const s=_(t,y,e);P[e]?(P[e].p(s,a),$(P[e],1)):(P[e]=S(s),P[e].c(),$(P[e],1),P[e].m(m,null))}for(g(),e=y.length;e<P.length;e+=1)j(e);w()}},i(t){if(!D){for(let t=0;t<y.length;t+=1)$(P[t]);D=!0}},o(t){P=P.filter(Boolean);for(let t=0;t<P.length;t+=1)E(P[t]);D=!1},d(t){t&&l(a),t&&l(p),t&&l(m),b(P,t)}}}function S(t){let a,e;return a=new M({props:{prediction:t[13]}}),{c(){D(a.$$.fragment)},l(t){y(a.$$.fragment,t)},m(t,s){P(a,t,s),e=!0},p(t,e){const s={};1&e&&(s.prediction=t[13]),a.$set(s)},i(t){e||($(a.$$.fragment,t),e=!0)},o(t){E(a.$$.fragment,t),e=!1},d(t){j(a,t)}}}function H(t){let a,e,r,n;const i=[A,k],h=[];function d(t,a){return t[0]?0:1}return e=d(t),r=h[e]=i[e](t),{c(){a=s("div"),r.c(),this.h()},l(t){a=c(t,"DIV",{class:!0});var e=o(a);r.l(e),e.forEach(l),this.h()},h(){u(a,"class","predicted-weather svelte-l8czgl")},m(t,s){f(t,a,s),h[e].m(a,null),n=!0},p(t,[s]){let n=e;e=d(t),e===n?h[e].p(t,s):(g(),E(h[n],1,1,(()=>{h[n]=null})),w(),r=h[e],r||(r=h[e]=i[e](t),r.c()),$(r,1),r.m(a,null))},i(t){n||($(r),n=!0)},o(t){E(r),n=!1},d(t){t&&l(a),h[e].d()}}}function J(t,a,e){var s=this&&this.__awaiter||function(t,a,e,s){return new(e||(e=Promise))((function(r,n){function c(t){try{l(s.next(t))}catch(t){n(t)}}function o(t){try{l(s.throw(t))}catch(t){n(t)}}function l(t){var a;t.done?r(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(c,o)}l((s=s.apply(t,a||[])).next())}))};let r,n,c,o=!1;function l(t,a){return s(this,void 0,void 0,(function*(){let s;o&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let n=[];r.forEach(((t,a)=>{if("observed"!=t[2]){let a,e,r=new Date(t[0]),c=new Date(0,0,0);o&&s.properties.timeseries.forEach(((t,s)=>{let n=new Date(t.time);Math.abs(n.getTime()-r.getTime())<Math.abs(c.getTime()-r.getTime())&&(c=n,a=t.data.instant.details.air_temperature,e=t.data.instant.details.cloud_area_fraction)})),n.push({time:t[0],kp:t[1],temp:a,clouds:e,hasNOMETData:o})}})),e(0,c=n)}))}function i(t){r=t.coords.longitude,n=t.coords.latitude,l(r,n)}function h(t){u()}function u(){r=28.283333,n=-15.416667,l(0,0)}return m((function(){navigator.geolocation?(o=!0,navigator.geolocation.getCurrentPosition(i,h)):(o=!1,u())})),[c]}class K extends t{constructor(t){super(),a(this,t,J,H,e,{})}}function B(t){let a,e,n,h,v,m;return n=new C({}),v=new K({}),{c(){a=r(),e=s("div"),D(n.$$.fragment),h=r(),D(v.$$.fragment),this.h()},l(t){I('[data-svelte="svelte-1q3846k"]',document.head).forEach(l),a=i(t),e=c(t,"DIV",{class:!0});var s=o(e);y(n.$$.fragment,s),h=i(s),y(v.$$.fragment,s),s.forEach(l),this.h()},h(){document.title="Aurora data",u(e,"class","homescreen svelte-19pefkm")},m(t,s){f(t,a,s),f(t,e,s),P(n,e,null),d(e,h),P(v,e,null),m=!0},p:p,i(t){m||($(n.$$.fragment,t),$(v.$$.fragment,t),m=!0)},o(t){E(n.$$.fragment,t),E(v.$$.fragment,t),m=!1},d(t){t&&l(a),t&&l(e),j(n),j(v)}}}export default class extends t{constructor(t){super(),a(this,t,null,B,e,{})}} diff --git a/client/index.d2745b3f.js b/client/index.d2745b3f.js new file mode 100644 index 0000000..04a5f9e --- /dev/null +++ b/client/index.d2745b3f.js @@ -0,0 +1 @@ +import{S as t,i as a,s as e,e as s,a as r,t as n,c,b as o,d as i,f as l,g as h,h as u,j as f,k as v,l as d,n as p,o as m,m as g,p as E,q as w,r as y,u as $,v as D,w as b,x as P,y as I,z as V}from"./client.2977978b.js";function x(t){let a,e,m,g,E,w,y,$,D,b,P,I,V,x,N,T,M,j,_,k,A,S,H,J,K,B,O,q,z,F,Z,G,L,Q,R,U,W,X,Y,tt,at,et,st,rt,nt,ct,ot,it,lt;return{c(){a=s("div"),e=s("div"),m=s("div"),g=s("i"),E=r(),w=s("h1"),y=n(C),$=r(),D=s("div"),b=s("p"),P=n(t[0]),I=r(),V=s("div"),x=s("h2"),N=n("KP "),T=n(t[1]),M=r(),j=s("p"),_=s("span"),k=n("↑ KP "),A=n(t[3]),S=r(),H=s("span"),J=n("↓ KP "),K=n(t[2]),B=r(),O=s("div"),q=s("div"),z=s("p"),F=n("BZ"),Z=r(),G=s("p"),L=n(t[4]),Q=r(),R=s("div"),U=s("p"),W=n("Temp"),X=r(),Y=s("p"),tt=n(t[6]),at=n("°C"),et=r(),st=s("div"),rt=s("p"),nt=n("Clouds"),ct=r(),ot=s("p"),it=n(t[5]),lt=n("%"),this.h()},l(s){a=c(s,"DIV",{class:!0});var r=o(a);e=c(r,"DIV",{class:!0});var n=o(e);m=c(n,"DIV",{class:!0});var u=o(m);g=c(u,"I",{class:!0}),o(g).forEach(i),E=l(u),w=c(u,"H1",{class:!0});var f=o(w);y=h(f,C),f.forEach(i),u.forEach(i),$=l(n),D=c(n,"DIV",{class:!0});var v=o(D);b=c(v,"P",{});var d=o(b);P=h(d,t[0]),d.forEach(i),v.forEach(i),I=l(n),V=c(n,"DIV",{class:!0});var p=o(V);x=c(p,"H2",{class:!0});var ht=o(x);N=h(ht,"KP "),T=h(ht,t[1]),ht.forEach(i),M=l(p),j=c(p,"P",{});var ut=o(j);_=c(ut,"SPAN",{className:!0});var ft=o(_);k=h(ft,"↑ KP "),A=h(ft,t[3]),ft.forEach(i),S=l(ut),H=c(ut,"SPAN",{className:!0});var vt=o(H);J=h(vt,"↓ KP "),K=h(vt,t[2]),vt.forEach(i),ut.forEach(i),p.forEach(i),B=l(n),O=c(n,"DIV",{class:!0});var dt=o(O);q=c(dt,"DIV",{});var pt=o(q);z=c(pt,"P",{class:!0});var mt=o(z);F=h(mt,"BZ"),mt.forEach(i),Z=l(pt),G=c(pt,"P",{class:!0});var gt=o(G);L=h(gt,t[4]),gt.forEach(i),pt.forEach(i),Q=l(dt),R=c(dt,"DIV",{});var Et=o(R);U=c(Et,"P",{class:!0});var wt=o(U);W=h(wt,"Temp"),wt.forEach(i),X=l(Et),Y=c(Et,"P",{class:!0});var yt=o(Y);tt=h(yt,t[6]),at=h(yt,"°C"),yt.forEach(i),Et.forEach(i),et=l(dt),st=c(dt,"DIV",{});var $t=o(st);rt=c($t,"P",{class:!0});var Dt=o(rt);nt=h(Dt,"Clouds"),Dt.forEach(i),ct=l($t),ot=c($t,"P",{class:!0});var bt=o(ot);it=h(bt,t[5]),lt=h(bt,"%"),bt.forEach(i),$t.forEach(i),dt.forEach(i),n.forEach(i),r.forEach(i),this.h()},h(){u(g,"class","symbol fas fa-map-marker-alt svelte-13muhi2"),u(w,"class","svelte-13muhi2"),u(m,"class","weatherCurrent-data-location svelte-13muhi2"),u(D,"class","weatherCurrent-data-date"),u(x,"class","svelte-13muhi2"),u(_,"classname","pr-2"),u(H,"classname","pl-2"),u(V,"class","weatherCurrent-data-kp svelte-13muhi2"),u(z,"class","svelte-13muhi2"),u(G,"class","svelte-13muhi2"),u(U,"class","svelte-13muhi2"),u(Y,"class","svelte-13muhi2"),u(rt,"class","svelte-13muhi2"),u(ot,"class","svelte-13muhi2"),u(O,"class","current-details svelte-13muhi2"),u(e,"class","weatherCurrent-data svelte-13muhi2"),u(a,"class","weatherCurrent-wrapper svelte-13muhi2")},m(t,s){f(t,a,s),v(a,e),v(e,m),v(m,g),v(m,E),v(m,w),v(w,y),v(e,$),v(e,D),v(D,b),v(b,P),v(e,I),v(e,V),v(V,x),v(x,N),v(x,T),v(V,M),v(V,j),v(j,_),v(_,k),v(_,A),v(j,S),v(j,H),v(H,J),v(H,K),v(e,B),v(e,O),v(O,q),v(q,z),v(z,F),v(q,Z),v(q,G),v(G,L),v(O,Q),v(O,R),v(R,U),v(U,W),v(R,X),v(R,Y),v(Y,tt),v(Y,at),v(O,et),v(O,st),v(st,rt),v(rt,nt),v(st,ct),v(st,ot),v(ot,it),v(ot,lt)},p(t,[a]){1&a&&d(P,t[0]),2&a&&d(T,t[1]),8&a&&d(A,t[3]),4&a&&d(K,t[2]),16&a&&d(L,t[4]),64&a&&d(tt,t[6]),32&a&&d(it,t[5])},i:p,o:p,d(t){t&&i(a)}}}let C="The earth";function N(t,a,e){var s=this&&this.__awaiter||function(t,a,e,s){return new(e||(e=Promise))((function(r,n){function c(t){try{i(s.next(t))}catch(t){n(t)}}function o(t){try{i(s.throw(t))}catch(t){n(t)}}function i(t){var a;t.done?r(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(c,o)}i((s=s.apply(t,a||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];let n,c,o="-",i="-",l="-",h="-",u="-",f="-",v="-";function d(t){n=t.coords.longitude,c=t.coords.latitude,function(t,a){s(this,void 0,void 0,(function*(){let s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a}&lon=${t}`).then((t=>t.json()));e(5,f=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(6,v=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(n,c)}function p(t){g()}function g(){n=28.283333,c=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){e(4,u=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let a=new Date,s=new Date(0,0,0),n=1e3,c=0;t.forEach(((t,r)=>{t[1]>c&&(c=t[1]),t[1]<n&&(n=t[1]);let o=new Date(t[0]);Math.abs(o.getTime()-a.getTime())<Math.abs(s.getTime()-a.getTime())&&(s=o,e(1,i=t[1]))})),e(2,l=n.toString()),e(3,h=c.toString()),e(0,o=s.getDay()+". "+r[s.getMonth()]+" "+s.getHours()+":"+s.getMinutes())}))}(),navigator.geolocation?navigator.geolocation.getCurrentPosition(d,p):g()})),[o,i,l,h,u,f,v]}class T extends t{constructor(t){super(),a(this,t,N,x,e,{})}}function M(t){let a,e,d,m,g,E,w,y,$,D,b,P,I=t[5]&&function(t){let a,e,d,m,g,E,w,y,$,D,b,P;return{c(){a=s("div"),e=s("p"),d=s("i"),m=r(),g=n(t[3]),E=n("°C"),w=r(),y=s("p"),$=s("i"),D=r(),b=n(t[4]),P=n("%"),this.h()},l(s){a=c(s,"DIV",{});var r=o(a);e=c(r,"P",{});var n=o(e);d=c(n,"I",{class:!0}),o(d).forEach(i),m=l(n),g=h(n,t[3]),E=h(n,"°C"),n.forEach(i),w=l(r),y=c(r,"P",{});var u=o(y);$=c(u,"I",{class:!0}),o($).forEach(i),D=l(u),b=h(u,t[4]),P=h(u,"%"),u.forEach(i),r.forEach(i),this.h()},h(){u(d,"class","fas fa-thermometer-half"),u($,"class","fas fa-cloud")},m(t,s){f(t,a,s),v(a,e),v(e,d),v(e,m),v(e,g),v(e,E),v(a,w),v(a,y),v(y,$),v(y,D),v(y,b),v(y,P)},p:p,d(t){t&&i(a)}}}(t);return{c(){a=s("div"),e=s("div"),d=s("h3"),m=n(t[2]),g=r(),E=s("p"),w=n(t[1]),y=r(),$=s("div"),D=s("h2"),b=n(t[0]),P=r(),I&&I.c(),this.h()},l(s){a=c(s,"DIV",{class:!0});var r=o(a);e=c(r,"DIV",{});var n=o(e);d=c(n,"H3",{class:!0});var u=o(d);m=h(u,t[2]),u.forEach(i),g=l(n),E=c(n,"P",{});var f=o(E);w=h(f,t[1]),f.forEach(i),n.forEach(i),y=l(r),$=c(r,"DIV",{class:!0});var v=o($);D=c(v,"H2",{class:!0});var p=o(D);b=h(p,t[0]),p.forEach(i),P=l(v),I&&I.l(v),v.forEach(i),r.forEach(i),this.h()},h(){u(d,"class","svelte-u548p6"),u(D,"class","svelte-u548p6"),u($,"class","data svelte-u548p6"),u(a,"class","prediction-details svelte-u548p6")},m(t,s){f(t,a,s),v(a,e),v(e,d),v(d,m),v(e,g),v(e,E),v(E,w),v(a,y),v(a,$),v($,D),v(D,b),v($,P),I&&I.m($,null)},p(t,[a]){t[5]&&I.p(t,a)},i:p,o:p,d(t){t&&i(a),I&&I.d()}}}function j(t,a,e){let{prediction:s}=a;let r=s.kp,n=s.time.split(" "),c=Number(n[0].split("-")[2])+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][Number(n[0].split("-")[1])],o=n[1].substring(0,5),i=s.temp,l=s.clouds,h=s.hasNOMETData;return t.$$set=t=>{"prediction"in t&&e(6,s=t.prediction)},[r,c,o,i,l,h,s]}class _ extends t{constructor(t){super(),a(this,t,j,M,e,{prediction:6})}}function k(t,a,e){const s=t.slice();return s[13]=a[e],s[15]=e,s}function A(t){let a,e,d,m,g;return{c(){a=s("div"),e=s("i"),d=r(),m=s("p"),g=n("No prediction data"),this.h()},l(t){a=c(t,"DIV",{class:!0});var s=o(a);e=c(s,"I",{class:!0}),o(e).forEach(i),d=l(s),m=c(s,"P",{});var r=o(m);g=h(r,"No prediction data"),r.forEach(i),s.forEach(i),this.h()},h(){u(e,"class","fas fa-7x fa-exclamation-triangle"),u(a,"class","no-data svelte-bhvysr")},m(t,s){f(t,a,s),v(a,e),v(a,d),v(a,m),v(m,g)},p:p,i:p,o:p,d(t){t&&i(a)}}}function S(t){let a,e,d,p,m,$,D=t[0],b=[];for(let a=0;a<D.length;a+=1)b[a]=H(k(t,D,a));const P=t=>E(b[t],1,1,(()=>{b[t]=null}));return{c(){a=s("div"),e=s("h2"),d=n("Predicted"),p=r(),m=s("div");for(let t=0;t<b.length;t+=1)b[t].c();this.h()},l(t){a=c(t,"DIV",{className:!0});var s=o(a);e=c(s,"H2",{class:!0});var r=o(e);d=h(r,"Predicted"),r.forEach(i),s.forEach(i),p=l(t),m=c(t,"DIV",{class:!0});var n=o(m);for(let t=0;t<b.length;t+=1)b[t].l(n);n.forEach(i),this.h()},h(){u(e,"class","svelte-bhvysr"),u(a,"classname","flex flex-row justify-between items-top"),u(m,"class","prediction-table svelte-bhvysr")},m(t,s){f(t,a,s),v(a,e),v(e,d),f(t,p,s),f(t,m,s);for(let t=0;t<b.length;t+=1)b[t].m(m,null);$=!0},p(t,a){if(1&a){let e;for(D=t[0],e=0;e<D.length;e+=1){const s=k(t,D,e);b[e]?(b[e].p(s,a),y(b[e],1)):(b[e]=H(s),b[e].c(),y(b[e],1),b[e].m(m,null))}for(g(),e=D.length;e<b.length;e+=1)P(e);w()}},i(t){if(!$){for(let t=0;t<D.length;t+=1)y(b[t]);$=!0}},o(t){b=b.filter(Boolean);for(let t=0;t<b.length;t+=1)E(b[t]);$=!1},d(t){t&&i(a),t&&i(p),t&&i(m),I(b,t)}}}function H(t){let a,e;return a=new _({props:{prediction:t[13]}}),{c(){$(a.$$.fragment)},l(t){D(a.$$.fragment,t)},m(t,s){b(a,t,s),e=!0},p(t,e){const s={};1&e&&(s.prediction=t[13]),a.$set(s)},i(t){e||(y(a.$$.fragment,t),e=!0)},o(t){E(a.$$.fragment,t),e=!1},d(t){P(a,t)}}}function J(t){let a,e,r,n;const l=[S,A],h=[];function v(t,a){return t[0]?0:1}return e=v(t),r=h[e]=l[e](t),{c(){a=s("div"),r.c(),this.h()},l(t){a=c(t,"DIV",{class:!0});var e=o(a);r.l(e),e.forEach(i),this.h()},h(){u(a,"class","predicted-weather svelte-bhvysr")},m(t,s){f(t,a,s),h[e].m(a,null),n=!0},p(t,[s]){let n=e;e=v(t),e===n?h[e].p(t,s):(g(),E(h[n],1,1,(()=>{h[n]=null})),w(),r=h[e],r||(r=h[e]=l[e](t),r.c()),y(r,1),r.m(a,null))},i(t){n||(y(r),n=!0)},o(t){E(r),n=!1},d(t){t&&i(a),h[e].d()}}}function K(t,a,e){var s=this&&this.__awaiter||function(t,a,e,s){return new(e||(e=Promise))((function(r,n){function c(t){try{i(s.next(t))}catch(t){n(t)}}function o(t){try{i(s.throw(t))}catch(t){n(t)}}function i(t){var a;t.done?r(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(c,o)}i((s=s.apply(t,a||[])).next())}))};let r,n,c,o=!1;function i(t,a){return s(this,void 0,void 0,(function*(){let s;o&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let n=[];r.forEach(((t,a)=>{if("observed"!=t[2]){let a,e,r=new Date(t[0]),c=new Date(0,0,0);o&&s.properties.timeseries.forEach(((t,s)=>{let n=new Date(t.time);Math.abs(n.getTime()-r.getTime())<Math.abs(c.getTime()-r.getTime())&&(c=n,a=t.data.instant.details.air_temperature,e=t.data.instant.details.cloud_area_fraction)})),n.push({time:t[0],kp:t[1],temp:a,clouds:e,hasNOMETData:o})}})),e(0,c=n)}))}function l(t){r=t.coords.longitude,n=t.coords.latitude,i(r,n)}function h(t){u()}function u(){r=28.283333,n=-15.416667,i(0,0)}return m((function(){navigator.geolocation?(o=!0,navigator.geolocation.getCurrentPosition(l,h)):(o=!1,u())})),[c]}class B extends t{constructor(t){super(),a(this,t,K,J,e,{})}}function O(t){let a,e,n,h,d,m;return n=new T({}),d=new B({}),{c(){a=r(),e=s("div"),$(n.$$.fragment),h=r(),$(d.$$.fragment),this.h()},l(t){V('[data-svelte="svelte-1q3846k"]',document.head).forEach(i),a=l(t),e=c(t,"DIV",{class:!0});var s=o(e);D(n.$$.fragment,s),h=l(s),D(d.$$.fragment,s),s.forEach(i),this.h()},h(){document.title="Aurora data",u(e,"class","homescreen svelte-pf4p6y")},m(t,s){f(t,a,s),f(t,e,s),b(n,e,null),v(e,h),b(d,e,null),m=!0},p:p,i(t){m||(y(n.$$.fragment,t),y(d.$$.fragment,t),m=!0)},o(t){E(n.$$.fragment,t),E(d.$$.fragment,t),m=!1},d(t){t&&i(a),t&&i(e),P(n),P(d)}}}export default class extends t{constructor(t){super(),a(this,t,null,O,e,{})}} diff --git a/client/legacy/client.11fb8289.js b/client/legacy/client.4e5e1d47.js index 1370194..3799e48 100644 --- a/client/legacy/client.11fb8289.js +++ b/client/legacy/client.4e5e1d47.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})(e)}var e,n,r,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=p;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}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===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,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 p="suspendedStart",h="suspendedYield",v="executing",d="completed",m={};function y(){}function g(){}function b(){}var w={};w[a]=function(){return this};var x=Object.getPrototypeOf,$=x&&x(x(R([])));$&&$!==r&&o.call($,a)&&(w=$);var _=b.prototype=y.prototype=Object.create(w);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,p=s.value;return p&&"object"===t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(p).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:P}}function P(){return{value:n,done:!0}}return g.prototype=_.constructor=b,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),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"),_[a]=function(){return this},_.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(t){Function("r","regeneratorRuntime = r")(n)}}(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports);function i(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 a(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||a(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.")}()}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(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}}),e&&f(t,e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?l(e):n}function h(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(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 v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(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 m(){}function y(t,e){for(var n in e)t[n]=e[n];return t}function g(t){return t()}function b(){return Object.create(null)}function w(t){t.forEach(g)}function x(t){return"function"==typeof t}function $(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function _(t,e,n,r){return t[1]&&r?y(n.ctx.slice(),t[1](r(e))):n.ctx}function E(e,n,r,o,i,a,u){var c=function(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}(n,o,i,a);if(c){var f=_(n,r,o,u);e.p(f,c)}}function S(t,e){t.appendChild(e)}function k(t,e,n){t.insertBefore(e,n||null)}function L(t){t.parentNode.removeChild(t)}function j(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function O(t){return document.createElement(t)}function R(t){return document.createTextNode(t)}function P(){return R(" ")}function A(){return R("")}function N(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function T(t){return Array.from(t.childNodes)}function q(t,e,n,r){for(var o=0;o<t.length;o+=1){var i=t[o];if(i.nodeName===e){for(var a=0,u=[];a<i.attributes.length;){var c=i.attributes[a++];n[c.name]||u.push(c.name)}for(var f=0;f<u.length;f++)i.removeAttribute(u[f]);return t.splice(o,1)[0]}}return r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):O(e)}function I(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(3===r.nodeType)return r.data=""+e,t.splice(n,1)[0]}return R(e)}function C(t){return I(t," ")}function U(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function G(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function B(t){F().$$.on_mount.push(t)}var J=[],K=[],M=[],V=[],Y=Promise.resolve(),z=!1;function H(t){M.push(t)}var W=!1,X=new Set;function Q(){if(!W){W=!0;do{for(var t=0;t<J.length;t+=1){var e=J[t];G(e),Z(e.$$)}for(G(null),J.length=0;K.length;)K.pop()();for(var n=0;n<M.length;n+=1){var r=M[n];X.has(r)||(X.add(r),r())}M.length=0}while(J.length);for(;V.length;)V.pop()();z=!1,W=!1,X.clear()}}function Z(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(H)}}var tt,et=new Set;function nt(){tt={r:0,c:[],p:tt}}function rt(){tt.r||w(tt.c),tt=tt.p}function ot(t,e){t&&t.i&&(et.delete(t),t.i(e))}function it(t,e,n,r){if(t&&t.o){if(et.has(t))return;et.add(t),tt.c.push((function(){et.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function at(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 ut(e){return"object"===t(e)&&null!==e?e:{}}function ct(t){t&&t.c()}function ft(t,e){t&&t.l(e)}function st(t,e,n){var r=t.$$,o=r.fragment,i=r.on_mount,a=r.on_destroy,u=r.after_update;o&&o.m(e,n),H((function(){var e=i.map(g).filter(x);a?a.push.apply(a,h(e)):w(e),t.$$.on_mount=[]})),u.forEach(H)}function lt(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 pt(t,e){-1===t.$$.dirty[0]&&(J.push(t),z||(z=!0,Y.then(Q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ht(t,e,n,o,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],c=r;G(t);var f=e.props||{},s=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:i,bound:b(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:u,skip_bound:!1},l=!1;if(s.ctx=n?n(t,f,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&i(s.ctx[e],s.ctx[e]=r)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](r),l&&pt(t,e)),n})):[],s.update(),l=!0,w(s.before_update),s.fragment=!!o&&o(s.ctx),e.target){if(e.hydrate){var p=T(e.target);s.fragment&&s.fragment.l(p),p.forEach(L)}else s.fragment&&s.fragment.c();e.intro&&ot(t.$$.fragment),st(t,e.target,e.anchor),Q()}G(c)}var vt=function(){function t(){v(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){lt(this,1),this.$destroy=m}},{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)}}])&&d(e.prototype,n),r&&d(e,r),t}(),dt=[];function mt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=[];function o(n){if($(t,n)&&(t=n,e)){for(var o=!dt.length,i=0;i<r.length;i+=1){var a=r[i];a[1](),dt.push(a,t)}if(o){for(var u=0;u<dt.length;u+=2)dt[u][0](dt[u+1]);dt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,u=[i,a];return r.push(u),1===r.length&&(e=n(o)||m),i(t),function(){var t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var yt={};function gt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function bt(t){var e,n,r=t[1].default,o=function(t,e,n,r){if(t){var o=_(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c:function(){e=O("div"),o&&o.c(),this.h()},l:function(t){var n=T(e=q(t,"DIV",{class:!0}));o&&o.l(n),n.forEach(L),this.h()},h:function(){N(e,"class","app-container svelte-lkkhqy")},m:function(t,r){k(t,e,r),o&&o.m(e,null),n=!0},p:function(t,e){var n=u(e,1)[0];o&&o.p&&1&n&&E(o,r,t,t[0],n,null,null)},i:function(t){n||(ot(o,t),n=!0)},o:function(t){it(o,t),n=!1},d:function(t){t&&L(e),o&&o.d(t)}}}function wt(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 xt=function(t){s(n,vt);var e=gt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,wt,bt,$,{}),r}return n}();function $t(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function _t(t){var e,n,r=t[1].stack+"";return{c:function(){e=O("pre"),n=R(r)},l:function(t){var o=T(e=q(t,"PRE",{}));n=I(o,r),o.forEach(L)},m:function(t,r){k(t,e,r),S(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&U(n,r)},d:function(t){t&&L(e)}}}function Et(t){var e,n,r,o,i,a,c,f,s,l=t[1].message+"";document.title=e=t[0];var p=t[2]&&t[1].stack&&_t(t);return{c:function(){n=P(),r=O("h1"),o=R(t[0]),i=P(),a=O("p"),c=R(l),f=P(),p&&p.c(),s=A(),this.h()},l:function(e){D('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(L),n=C(e);var u=T(r=q(e,"H1",{class:!0}));o=I(u,t[0]),u.forEach(L),i=C(e);var h=T(a=q(e,"P",{class:!0}));c=I(h,l),h.forEach(L),f=C(e),p&&p.l(e),s=A(),this.h()},h:function(){N(r,"class","svelte-jpshsi"),N(a,"class","svelte-jpshsi")},m:function(t,e){k(t,n,e),k(t,r,e),S(r,o),k(t,i,e),k(t,a,e),S(a,c),k(t,f,e),p&&p.m(t,e),k(t,s,e)},p:function(t,n){var r=u(n,1)[0];1&r&&e!==(e=t[0])&&(document.title=e),1&r&&U(o,t[0]),2&r&&l!==(l=t[1].message+"")&&U(c,l),t[2]&&t[1].stack?p?p.p(t,r):((p=_t(t)).c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i:m,o:m,d:function(t){t&&L(n),t&&L(r),t&&L(i),t&&L(a),t&&L(f),p&&p.d(t),t&&L(s)}}}function St(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){s(n,vt);var e=$t(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,St,Et,$,{status:0,error:1}),r}return n}();function Lt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function jt(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=y(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&ct(e.$$.fragment),n=A()},l:function(t){e&&ft(e.$$.fragment,t),n=A()},m:function(t,o){e&&st(e,t,o),k(t,n,o),r=!0},p:function(t,r){var u=16&r?at(o,[ut(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){nt();var c=e;it(c.$$.fragment,1,0,(function(){lt(c,1)})),rt()}i?(ct((e=new i(a())).$$.fragment),ot(e.$$.fragment,1),st(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&ot(e.$$.fragment,t),r=!0)},o:function(t){e&&it(e.$$.fragment,t),r=!1},d:function(t){t&&L(n),e&<(e,t)}}}function Ot(t){var e,n;return e=new kt({props:{error:t[0],status:t[1]}}),{c:function(){ct(e.$$.fragment)},l:function(t){ft(e.$$.fragment,t)},m:function(t,r){st(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||(ot(e.$$.fragment,t),n=!0)},o:function(t){it(e.$$.fragment,t),n=!1},d:function(t){lt(e,t)}}}function Rt(t){var e,n,r,o,i=[Ot,jt],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=A()},l:function(t){n.l(t),r=A()},m:function(t,n){a[e].m(t,n),k(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(nt(),it(a[c],1,1,(function(){a[c]=null})),rt(),(n=a[e])||(n=a[e]=i[e](t)).c(),ot(n,1),n.m(r.parentNode,r))},i:function(t){o||(ot(n),o=!0)},o:function(t){it(n),o=!1},d:function(t){a[e].d(t),t&&L(r)}}}function Pt(t){for(var e,n,r=[{segment:t[2][0]},t[3].props],o={$$slots:{default:[Rt]},$$scope:{ctx:t}},i=0;i<r.length;i+=1)o=y(o,r[i]);return e=new xt({props:o}),{c:function(){ct(e.$$.fragment)},l:function(t){ft(e.$$.fragment,t)},m:function(t,r){st(e,t,r),n=!0},p:function(t,n){var o=u(n,1)[0],i=12&o?at(r,[4&o&&{segment:t[2][0]},8&o&&ut(t[3].props)]):{};147&o&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i:function(t){n||(ot(e.$$.fragment,t),n=!0)},o:function(t){it(e.$$.fragment,t),n=!1},d:function(t){lt(e,t)}}}function At(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,p=e.notify;return function(t){F().$$.after_update.push(t)}(p),r=yt,o=i,F().$$.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,p=t.notify)},[a,u,c,f,l,i,p]}var Nt=function(t){s(n,vt);var e=Lt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,At,Pt,$,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return n}(),Tt=[],qt=[{js:function(){return Promise.all([import("./index.285229ba.js"),__inject_styles(["client-ea61129f.css","index-9477b324.css"])]).then((function(t){return t[0]}))}}],It=[{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})(e)}var e,n,r,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=p;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}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===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,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 p="suspendedStart",h="suspendedYield",v="executing",d="completed",m={};function y(){}function g(){}function b(){}var w={};w[a]=function(){return this};var x=Object.getPrototypeOf,$=x&&x(x(R([])));$&&$!==r&&o.call($,a)&&(w=$);var _=b.prototype=y.prototype=Object.create(w);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,p=s.value;return p&&"object"===t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(p).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:P}}function P(){return{value:n,done:!0}}return g.prototype=_.constructor=b,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),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"),_[a]=function(){return this},_.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(t){Function("r","regeneratorRuntime = r")(n)}}(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports);function i(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 a(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||a(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.")}()}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(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}}),e&&f(t,e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?l(e):n}function h(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(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 v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(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 m(){}function y(t,e){for(var n in e)t[n]=e[n];return t}function g(t){return t()}function b(){return Object.create(null)}function w(t){t.forEach(g)}function x(t){return"function"==typeof t}function $(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function _(t,e,n,r){return t[1]&&r?y(n.ctx.slice(),t[1](r(e))):n.ctx}function E(e,n,r,o,i,a,u){var c=function(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}(n,o,i,a);if(c){var f=_(n,r,o,u);e.p(f,c)}}function S(t,e){t.appendChild(e)}function k(t,e,n){t.insertBefore(e,n||null)}function L(t){t.parentNode.removeChild(t)}function j(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function O(t){return document.createElement(t)}function R(t){return document.createTextNode(t)}function P(){return R(" ")}function A(){return R("")}function N(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function T(t){return Array.from(t.childNodes)}function q(t,e,n,r){for(var o=0;o<t.length;o+=1){var i=t[o];if(i.nodeName===e){for(var a=0,u=[];a<i.attributes.length;){var c=i.attributes[a++];n[c.name]||u.push(c.name)}for(var f=0;f<u.length;f++)i.removeAttribute(u[f]);return t.splice(o,1)[0]}}return r?function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}(e):O(e)}function I(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(3===r.nodeType)return r.data=""+e,t.splice(n,1)[0]}return R(e)}function C(t){return I(t," ")}function U(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function G(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function B(t){F().$$.on_mount.push(t)}var J=[],K=[],M=[],V=[],Y=Promise.resolve(),z=!1;function H(t){M.push(t)}var W=!1,X=new Set;function Q(){if(!W){W=!0;do{for(var t=0;t<J.length;t+=1){var e=J[t];G(e),Z(e.$$)}for(G(null),J.length=0;K.length;)K.pop()();for(var n=0;n<M.length;n+=1){var r=M[n];X.has(r)||(X.add(r),r())}M.length=0}while(J.length);for(;V.length;)V.pop()();z=!1,W=!1,X.clear()}}function Z(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(H)}}var tt,et=new Set;function nt(){tt={r:0,c:[],p:tt}}function rt(){tt.r||w(tt.c),tt=tt.p}function ot(t,e){t&&t.i&&(et.delete(t),t.i(e))}function it(t,e,n,r){if(t&&t.o){if(et.has(t))return;et.add(t),tt.c.push((function(){et.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function at(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 ut(e){return"object"===t(e)&&null!==e?e:{}}function ct(t){t&&t.c()}function ft(t,e){t&&t.l(e)}function st(t,e,n){var r=t.$$,o=r.fragment,i=r.on_mount,a=r.on_destroy,u=r.after_update;o&&o.m(e,n),H((function(){var e=i.map(g).filter(x);a?a.push.apply(a,h(e)):w(e),t.$$.on_mount=[]})),u.forEach(H)}function lt(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 pt(t,e){-1===t.$$.dirty[0]&&(J.push(t),z||(z=!0,Y.then(Q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ht(t,e,n,o,i,a){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],c=r;G(t);var f=e.props||{},s=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:i,bound:b(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:u,skip_bound:!1},l=!1;if(s.ctx=n?n(t,f,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&i(s.ctx[e],s.ctx[e]=r)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](r),l&&pt(t,e)),n})):[],s.update(),l=!0,w(s.before_update),s.fragment=!!o&&o(s.ctx),e.target){if(e.hydrate){var p=T(e.target);s.fragment&&s.fragment.l(p),p.forEach(L)}else s.fragment&&s.fragment.c();e.intro&&ot(t.$$.fragment),st(t,e.target,e.anchor),Q()}G(c)}var vt=function(){function t(){v(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){lt(this,1),this.$destroy=m}},{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)}}])&&d(e.prototype,n),r&&d(e,r),t}(),dt=[];function mt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=[];function o(n){if($(t,n)&&(t=n,e)){for(var o=!dt.length,i=0;i<r.length;i+=1){var a=r[i];a[1](),dt.push(a,t)}if(o){for(var u=0;u<dt.length;u+=2)dt[u][0](dt[u+1]);dt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,u=[i,a];return r.push(u),1===r.length&&(e=n(o)||m),i(t),function(){var t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var yt={};function gt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function bt(t){var e,n,r=t[1].default,o=function(t,e,n,r){if(t){var o=_(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c:function(){e=O("div"),o&&o.c(),this.h()},l:function(t){var n=T(e=q(t,"DIV",{class:!0}));o&&o.l(n),n.forEach(L),this.h()},h:function(){N(e,"class","app-container svelte-lkkhqy")},m:function(t,r){k(t,e,r),o&&o.m(e,null),n=!0},p:function(t,e){var n=u(e,1)[0];o&&o.p&&1&n&&E(o,r,t,t[0],n,null,null)},i:function(t){n||(ot(o,t),n=!0)},o:function(t){it(o,t),n=!1},d:function(t){t&&L(e),o&&o.d(t)}}}function wt(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 xt=function(t){s(n,vt);var e=gt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,wt,bt,$,{}),r}return n}();function $t(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function _t(t){var e,n,r=t[1].stack+"";return{c:function(){e=O("pre"),n=R(r)},l:function(t){var o=T(e=q(t,"PRE",{}));n=I(o,r),o.forEach(L)},m:function(t,r){k(t,e,r),S(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&U(n,r)},d:function(t){t&&L(e)}}}function Et(t){var e,n,r,o,i,a,c,f,s,l=t[1].message+"";document.title=e=t[0];var p=t[2]&&t[1].stack&&_t(t);return{c:function(){n=P(),r=O("h1"),o=R(t[0]),i=P(),a=O("p"),c=R(l),f=P(),p&&p.c(),s=A(),this.h()},l:function(e){D('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(L),n=C(e);var u=T(r=q(e,"H1",{class:!0}));o=I(u,t[0]),u.forEach(L),i=C(e);var h=T(a=q(e,"P",{class:!0}));c=I(h,l),h.forEach(L),f=C(e),p&&p.l(e),s=A(),this.h()},h:function(){N(r,"class","svelte-jpshsi"),N(a,"class","svelte-jpshsi")},m:function(t,e){k(t,n,e),k(t,r,e),S(r,o),k(t,i,e),k(t,a,e),S(a,c),k(t,f,e),p&&p.m(t,e),k(t,s,e)},p:function(t,n){var r=u(n,1)[0];1&r&&e!==(e=t[0])&&(document.title=e),1&r&&U(o,t[0]),2&r&&l!==(l=t[1].message+"")&&U(c,l),t[2]&&t[1].stack?p?p.p(t,r):((p=_t(t)).c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i:m,o:m,d:function(t){t&&L(n),t&&L(r),t&&L(i),t&&L(a),t&&L(f),p&&p.d(t),t&&L(s)}}}function St(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){s(n,vt);var e=$t(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,St,Et,$,{status:0,error:1}),r}return n}();function Lt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function jt(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=y(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&ct(e.$$.fragment),n=A()},l:function(t){e&&ft(e.$$.fragment,t),n=A()},m:function(t,o){e&&st(e,t,o),k(t,n,o),r=!0},p:function(t,r){var u=16&r?at(o,[ut(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){nt();var c=e;it(c.$$.fragment,1,0,(function(){lt(c,1)})),rt()}i?(ct((e=new i(a())).$$.fragment),ot(e.$$.fragment,1),st(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&ot(e.$$.fragment,t),r=!0)},o:function(t){e&&it(e.$$.fragment,t),r=!1},d:function(t){t&&L(n),e&<(e,t)}}}function Ot(t){var e,n;return e=new kt({props:{error:t[0],status:t[1]}}),{c:function(){ct(e.$$.fragment)},l:function(t){ft(e.$$.fragment,t)},m:function(t,r){st(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||(ot(e.$$.fragment,t),n=!0)},o:function(t){it(e.$$.fragment,t),n=!1},d:function(t){lt(e,t)}}}function Rt(t){var e,n,r,o,i=[Ot,jt],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=A()},l:function(t){n.l(t),r=A()},m:function(t,n){a[e].m(t,n),k(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(nt(),it(a[c],1,1,(function(){a[c]=null})),rt(),(n=a[e])||(n=a[e]=i[e](t)).c(),ot(n,1),n.m(r.parentNode,r))},i:function(t){o||(ot(n),o=!0)},o:function(t){it(n),o=!1},d:function(t){a[e].d(t),t&&L(r)}}}function Pt(t){for(var e,n,r=[{segment:t[2][0]},t[3].props],o={$$slots:{default:[Rt]},$$scope:{ctx:t}},i=0;i<r.length;i+=1)o=y(o,r[i]);return e=new xt({props:o}),{c:function(){ct(e.$$.fragment)},l:function(t){ft(e.$$.fragment,t)},m:function(t,r){st(e,t,r),n=!0},p:function(t,n){var o=u(n,1)[0],i=12&o?at(r,[4&o&&{segment:t[2][0]},8&o&&ut(t[3].props)]):{};147&o&&(i.$$scope={dirty:o,ctx:t}),e.$set(i)},i:function(t){n||(ot(e.$$.fragment,t),n=!0)},o:function(t){it(e.$$.fragment,t),n=!1},d:function(t){lt(e,t)}}}function At(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,p=e.notify;return function(t){F().$$.after_update.push(t)}(p),r=yt,o=i,F().$$.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,p=t.notify)},[a,u,c,f,l,i,p]}var Nt=function(t){s(n,vt);var e=Lt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,At,Pt,$,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return n}(),Tt=[],qt=[{js:function(){return Promise.all([import("./index.155945f7.js"),__inject_styles(["client-ea61129f.css","index-b0c626b8.css"])]).then((function(t){return t[0]}))}}],It=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/legacy/index-9477b324.css b/client/legacy/index-9477b324.css deleted file mode 100644 index e555f61..0000000 --- a/client/legacy/index-9477b324.css +++ /dev/null @@ -1,7 +0,0 @@ -.weatherCurrent-wrapper.svelte-mz1ju5.svelte-mz1ju5{height:calc(100% + 1rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( - rgba(0, 0, 0, 0.5), - rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-mz1ju5.svelte-mz1ju5{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-mz1ju5.svelte-mz1ju5{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-mz1ju5 .symbol.svelte-mz1ju5{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-mz1ju5 h1.svelte-mz1ju5{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-mz1ju5 h2.svelte-mz1ju5{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-mz1ju5.svelte-mz1ju5{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:0.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-mz1ju5 p.svelte-mz1ju5{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} -.predicted-weather.svelte-l8czgl.svelte-l8czgl{border-top-left-radius:1rem;border-top-right-radius:1rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-l8czgl.svelte-l8czgl{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-l8czgl.svelte-l8czgl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-l8czgl h2.svelte-l8czgl{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-l8czgl.svelte-l8czgl{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-l8czgl.svelte-l8czgl::-webkit-scrollbar{display:none}.no-data.svelte-l8czgl.svelte-l8czgl{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-l8czgl.svelte-l8czgl{margin-top:1rem} -.homescreen.svelte-19pefkm{display:grid;grid-template-rows:35vh 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-b0c626b8.css b/client/legacy/index-b0c626b8.css new file mode 100644 index 0000000..cd464b7 --- /dev/null +++ b/client/legacy/index-b0c626b8.css @@ -0,0 +1,7 @@ +.weatherCurrent-wrapper.svelte-13muhi2.svelte-13muhi2{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( + rgba(0, 0, 0, 0.5), + rgba(0, 0, 0, 0.5) + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-13muhi2.svelte-13muhi2{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-13muhi2.svelte-13muhi2{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-13muhi2 .symbol.svelte-13muhi2{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-13muhi2 h1.svelte-13muhi2{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-13muhi2 h2.svelte-13muhi2{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-13muhi2.svelte-13muhi2{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:0.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-13muhi2 p.svelte-13muhi2{line-height:1.375} +.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} +.predicted-weather.svelte-bhvysr.svelte-bhvysr{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-bhvysr.svelte-bhvysr{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-bhvysr.svelte-bhvysr{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-bhvysr h2.svelte-bhvysr{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-bhvysr.svelte-bhvysr{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-bhvysr.svelte-bhvysr::-webkit-scrollbar{display:none}.no-data.svelte-bhvysr.svelte-bhvysr{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-bhvysr.svelte-bhvysr{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.155945f7.js b/client/legacy/index.155945f7.js new file mode 100644 index 0000000..19bfeb1 --- /dev/null +++ b/client/legacy/index.155945f7.js @@ -0,0 +1 @@ +import{_ as t,a as n,b as e,c as r,i as a,s as c,d as o,S as s,e as i,f as u,t as f,g as l,h,j as v,k as p,l as d,m,n as g,o as y,p as E,q as w,r as D,u as P,v as b,w as $,x,y as I,z as R,A as V,B as C,C as N,D as T,E as k,F as M}from"./client.4e5e1d47.js";function j(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function S(t){var n,e,r,a,c,o,s,P,b,$,x,I,R,V,C,N,T,k,M,j,S,A,H,J,K,B,O,F,q,z,Z,G,L,Q,U,W,X,Y,tt,nt,et,rt,at,ct,ot,st,it,ut,ft;return{c:function(){n=i("div"),e=i("div"),r=i("div"),a=i("i"),c=u(),o=i("h1"),s=f(_),P=u(),b=i("div"),$=i("p"),x=f(t[0]),I=u(),R=i("div"),V=i("h2"),C=f("KP "),N=f(t[1]),T=u(),k=i("p"),M=i("span"),j=f("↑ KP "),S=f(t[3]),A=u(),H=i("span"),J=f("↓ KP "),K=f(t[2]),B=u(),O=i("div"),F=i("div"),q=i("p"),z=f("BZ"),Z=u(),G=i("p"),L=f(t[4]),Q=u(),U=i("div"),W=i("p"),X=f("Temp"),Y=u(),tt=i("p"),nt=f(t[6]),et=f("°C"),rt=u(),at=i("div"),ct=i("p"),ot=f("Clouds"),st=u(),it=i("p"),ut=f(t[5]),ft=f("%"),this.h()},l:function(i){n=l(i,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{class:!0});var f=h(e);r=l(f,"DIV",{class:!0});var m=h(r);a=l(m,"I",{class:!0}),h(a).forEach(v),c=p(m),o=l(m,"H1",{class:!0});var g=h(o);s=d(g,_),g.forEach(v),m.forEach(v),P=p(f),b=l(f,"DIV",{class:!0});var y=h(b);$=l(y,"P",{});var E=h($);x=d(E,t[0]),E.forEach(v),y.forEach(v),I=p(f),R=l(f,"DIV",{class:!0});var w=h(R);V=l(w,"H2",{class:!0});var D=h(V);C=d(D,"KP "),N=d(D,t[1]),D.forEach(v),T=p(w),k=l(w,"P",{});var lt=h(k);M=l(lt,"SPAN",{className:!0});var ht=h(M);j=d(ht,"↑ KP "),S=d(ht,t[3]),ht.forEach(v),A=p(lt),H=l(lt,"SPAN",{className:!0});var vt=h(H);J=d(vt,"↓ KP "),K=d(vt,t[2]),vt.forEach(v),lt.forEach(v),w.forEach(v),B=p(f),O=l(f,"DIV",{class:!0});var pt=h(O);F=l(pt,"DIV",{});var dt=h(F);q=l(dt,"P",{class:!0});var mt=h(q);z=d(mt,"BZ"),mt.forEach(v),Z=p(dt),G=l(dt,"P",{class:!0});var gt=h(G);L=d(gt,t[4]),gt.forEach(v),dt.forEach(v),Q=p(pt),U=l(pt,"DIV",{});var yt=h(U);W=l(yt,"P",{class:!0});var Et=h(W);X=d(Et,"Temp"),Et.forEach(v),Y=p(yt),tt=l(yt,"P",{class:!0});var wt=h(tt);nt=d(wt,t[6]),et=d(wt,"°C"),wt.forEach(v),yt.forEach(v),rt=p(pt),at=l(pt,"DIV",{});var Dt=h(at);ct=l(Dt,"P",{class:!0});var Pt=h(ct);ot=d(Pt,"Clouds"),Pt.forEach(v),st=p(Dt),it=l(Dt,"P",{class:!0});var bt=h(it);ut=d(bt,t[5]),ft=d(bt,"%"),bt.forEach(v),Dt.forEach(v),pt.forEach(v),f.forEach(v),u.forEach(v),this.h()},h:function(){m(a,"class","symbol fas fa-map-marker-alt svelte-13muhi2"),m(o,"class","svelte-13muhi2"),m(r,"class","weatherCurrent-data-location svelte-13muhi2"),m(b,"class","weatherCurrent-data-date"),m(V,"class","svelte-13muhi2"),m(M,"classname","pr-2"),m(H,"classname","pl-2"),m(R,"class","weatherCurrent-data-kp svelte-13muhi2"),m(q,"class","svelte-13muhi2"),m(G,"class","svelte-13muhi2"),m(W,"class","svelte-13muhi2"),m(tt,"class","svelte-13muhi2"),m(ct,"class","svelte-13muhi2"),m(it,"class","svelte-13muhi2"),m(O,"class","current-details svelte-13muhi2"),m(e,"class","weatherCurrent-data svelte-13muhi2"),m(n,"class","weatherCurrent-wrapper svelte-13muhi2")},m:function(t,i){g(t,n,i),y(n,e),y(e,r),y(r,a),y(r,c),y(r,o),y(o,s),y(e,P),y(e,b),y(b,$),y($,x),y(e,I),y(e,R),y(R,V),y(V,C),y(V,N),y(R,T),y(R,k),y(k,M),y(M,j),y(M,S),y(k,A),y(k,H),y(H,J),y(H,K),y(e,B),y(e,O),y(O,F),y(F,q),y(q,z),y(F,Z),y(F,G),y(G,L),y(O,Q),y(O,U),y(U,W),y(W,X),y(U,Y),y(U,tt),y(tt,nt),y(tt,et),y(O,rt),y(O,at),y(at,ct),y(ct,ot),y(at,st),y(at,it),y(it,ut),y(it,ft)},p:function(t,n){var e=E(n,1)[0];1&e&&w(x,t[0]),2&e&&w(N,t[1]),8&e&&w(S,t[3]),4&e&&w(K,t[2]),16&e&&w(L,t[4]),64&e&&w(nt,t[6]),32&e&&w(ut,t[5])},i:D,o:D,d:function(t){t&&v(n)}}}var _="The earth";function A(t,n,e){var r,a,c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{i(r.next(t))}catch(t){c(t)}}function s(t){try{i(r.throw(t))}catch(t){c(t)}}function i(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}i((r=r.apply(t,n||[])).next())}))},o=["January","February","March","April","May","June","July","August","September","October","November","December"],s="-",i="-",u="-",f="-",l="-",h="-",v="-";function p(t){r=t.coords.longitude,a=t.coords.latitude,function(t,n){c(this,void 0,void 0,b.mark((function r(){var a;return b.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 2:a=r.sent,e(5,h=a.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(6,v=a.properties.timeseries[0].data.instant.details.air_temperature);case 5:case"end":return r.stop()}}),r)})))}(r,a)}function d(t){m()}function m(){r=28.283333,a=-15.416667}return P((function(){!function(){c(this,void 0,void 0,b.mark((function t(){var n,r,a,c,h;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((function(t){return t.json()}));case 3:return t.t1=l=t.sent.Bz,(0,t.t0)(4,t.t1),t.next=7,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 7:(n=t.sent).shift(),r=new Date,a=new Date(0,0,0),c=1e3,h=0,n.forEach((function(t,n){t[1]>h&&(h=t[1]),t[1]<c&&(c=t[1]);var o=new Date(t[0]);Math.abs(o.getTime()-r.getTime())<Math.abs(a.getTime()-r.getTime())&&(a=o,e(1,i=t[1]))})),e(2,u=c.toString()),e(3,f=h.toString()),e(0,s=a.getDay()+". "+o[a.getMonth()]+" "+a.getHours()+":"+a.getMinutes());case 17:case"end":return t.stop()}}),t)})))}(),navigator.geolocation?navigator.geolocation.getCurrentPosition(p,d):m()})),[s,i,u,f,l,h,v]}var H=function(n){t(i,s);var e=j(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,A,S,c,{}),n}return i}();function J(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function K(t){var n,e,r,a,c,o,s,w,P,b,$,x,I=t[5]&&function(t){var n,e,r,a,c,o,s,E,w,P,b,$;return{c:function(){n=i("div"),e=i("p"),r=i("i"),a=u(),c=f(t[3]),o=f("°C"),s=u(),E=i("p"),w=i("i"),P=u(),b=f(t[4]),$=f("%"),this.h()},l:function(i){n=l(i,"DIV",{});var u=h(n);e=l(u,"P",{});var f=h(e);r=l(f,"I",{class:!0}),h(r).forEach(v),a=p(f),c=d(f,t[3]),o=d(f,"°C"),f.forEach(v),s=p(u),E=l(u,"P",{});var m=h(E);w=l(m,"I",{class:!0}),h(w).forEach(v),P=p(m),b=d(m,t[4]),$=d(m,"%"),m.forEach(v),u.forEach(v),this.h()},h:function(){m(r,"class","fas fa-thermometer-half"),m(w,"class","fas fa-cloud")},m:function(t,i){g(t,n,i),y(n,e),y(e,r),y(e,a),y(e,c),y(e,o),y(n,s),y(n,E),y(E,w),y(E,P),y(E,b),y(E,$)},p:D,d:function(t){t&&v(n)}}}(t);return{c:function(){n=i("div"),e=i("div"),r=i("h3"),a=f(t[2]),c=u(),o=i("p"),s=f(t[1]),w=u(),P=i("div"),b=i("h2"),$=f(t[0]),x=u(),I&&I.c(),this.h()},l:function(i){n=l(i,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{});var f=h(e);r=l(f,"H3",{class:!0});var m=h(r);a=d(m,t[2]),m.forEach(v),c=p(f),o=l(f,"P",{});var g=h(o);s=d(g,t[1]),g.forEach(v),f.forEach(v),w=p(u),P=l(u,"DIV",{class:!0});var y=h(P);b=l(y,"H2",{class:!0});var E=h(b);$=d(E,t[0]),E.forEach(v),x=p(y),I&&I.l(y),y.forEach(v),u.forEach(v),this.h()},h:function(){m(r,"class","svelte-u548p6"),m(b,"class","svelte-u548p6"),m(P,"class","data svelte-u548p6"),m(n,"class","prediction-details svelte-u548p6")},m:function(t,i){g(t,n,i),y(n,e),y(e,r),y(r,a),y(e,c),y(e,o),y(o,s),y(n,w),y(n,P),y(P,b),y(b,$),y(P,x),I&&I.m(P,null)},p:function(t,n){var e=E(n,1)[0];t[5]&&I.p(t,e)},i:D,o:D,d:function(t){t&&v(n),I&&I.d()}}}function B(t,n,e){var r=n.prediction,a=r.kp,c=r.time.split(" "),o=Number(c[0].split("-")[2])+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][Number(c[0].split("-")[1])],s=c[1].substring(0,5),i=r.temp,u=r.clouds,f=r.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,r=t.prediction)},[a,o,s,i,u,f,r]}var O=function(n){t(i,s);var e=J(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,B,K,c,{prediction:6}),n}return i}();function F(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function q(t,n,e){var r=t.slice();return r[13]=n[e],r[15]=e,r}function z(t){var n,e,r,a,c;return{c:function(){n=i("div"),e=i("i"),r=u(),a=i("p"),c=f("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var o=h(n);e=l(o,"I",{class:!0}),h(e).forEach(v),r=p(o),a=l(o,"P",{});var s=h(a);c=d(s,"No prediction data"),s.forEach(v),o.forEach(v),this.h()},h:function(){m(e,"class","fas fa-7x fa-exclamation-triangle"),m(n,"class","no-data svelte-bhvysr")},m:function(t,o){g(t,n,o),y(n,e),y(n,r),y(n,a),y(a,c)},p:D,i:D,o:D,d:function(t){t&&v(n)}}}function Z(t){for(var n,e,r,a,c,o,s=t[0],E=[],w=0;w<s.length;w+=1)E[w]=G(q(t,s,w));var D=function(t){return x(E[t],1,1,(function(){E[t]=null}))};return{c:function(){n=i("div"),e=i("h2"),r=f("Predicted"),a=u(),c=i("div");for(var t=0;t<E.length;t+=1)E[t].c();this.h()},l:function(t){n=l(t,"DIV",{className:!0});var o=h(n);e=l(o,"H2",{class:!0});var s=h(e);r=d(s,"Predicted"),s.forEach(v),o.forEach(v),a=p(t),c=l(t,"DIV",{class:!0});for(var i=h(c),u=0;u<E.length;u+=1)E[u].l(i);i.forEach(v),this.h()},h:function(){m(e,"class","svelte-bhvysr"),m(n,"classname","flex flex-row justify-between items-top"),m(c,"class","prediction-table svelte-bhvysr")},m:function(t,s){g(t,n,s),y(n,e),y(e,r),g(t,a,s),g(t,c,s);for(var i=0;i<E.length;i+=1)E[i].m(c,null);o=!0},p:function(t,n){if(1&n){var e;for(s=t[0],e=0;e<s.length;e+=1){var r=q(t,s,e);E[e]?(E[e].p(r,n),R(E[e],1)):(E[e]=G(r),E[e].c(),R(E[e],1),E[e].m(c,null))}for($(),e=s.length;e<E.length;e+=1)D(e);I()}},i:function(t){if(!o){for(var n=0;n<s.length;n+=1)R(E[n]);o=!0}},o:function(t){E=E.filter(Boolean);for(var n=0;n<E.length;n+=1)x(E[n]);o=!1},d:function(t){t&&v(n),t&&v(a),t&&v(c),k(E,t)}}}function G(t){var n,e;return n=new O({props:{prediction:t[13]}}),{c:function(){V(n.$$.fragment)},l:function(t){C(n.$$.fragment,t)},m:function(t,r){N(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.prediction=t[13]),n.$set(r)},i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){x(n.$$.fragment,t),e=!1},d:function(t){T(n,t)}}}function L(t){var n,e,r,a,c=[Z,z],o=[];function s(t,n){return t[0]?0:1}return e=s(t),r=o[e]=c[e](t),{c:function(){n=i("div"),r.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=h(n);r.l(e),e.forEach(v),this.h()},h:function(){m(n,"class","predicted-weather svelte-bhvysr")},m:function(t,r){g(t,n,r),o[e].m(n,null),a=!0},p:function(t,a){var i=E(a,1)[0],u=e;(e=s(t))===u?o[e].p(t,i):($(),x(o[u],1,1,(function(){o[u]=null})),I(),(r=o[e])||(r=o[e]=c[e](t)).c(),R(r,1),r.m(n,null))},i:function(t){a||(R(r),a=!0)},o:function(t){x(r),a=!1},d:function(t){t&&v(n),o[e].d()}}}function Q(t,n,e){var r,a,c,o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{i(r.next(t))}catch(t){c(t)}}function s(t){try{i(r.throw(t))}catch(t){c(t)}}function i(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}i((r=r.apply(t,n||[])).next())}))},s=!1;function i(t,n){return o(this,void 0,void 0,b.mark((function r(){var a,o,i;return b.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!s){r.next=4;break}return r.next=3,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 3:a=r.sent;case 4:return r.next=6,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 6:(o=r.sent).shift(),i=[],o.forEach((function(t,n){if("observed"!=t[2]){var e,r,c=new Date(t[0]),o=new Date(0,0,0);s&&a.properties.timeseries.forEach((function(t,n){var a=new Date(t.time);Math.abs(a.getTime()-c.getTime())<Math.abs(o.getTime()-c.getTime())&&(o=a,e=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),i.push({time:t[0],kp:t[1],temp:e,clouds:r,hasNOMETData:s})}})),e(0,c=i);case 11:case"end":return r.stop()}}),r)})))}function u(t){r=t.coords.longitude,a=t.coords.latitude,i(r,a)}function f(t){l()}function l(){r=28.283333,a=-15.416667,i(0,0)}return P((function(){navigator.geolocation?(s=!0,navigator.geolocation.getCurrentPosition(u,f)):(s=!1,l())})),[c]}var U=function(n){t(i,s);var e=F(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,Q,L,c,{}),n}return i}();function W(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function X(t){var n,e,r,a,c,o;return r=new H({}),c=new U({}),{c:function(){n=u(),e=i("div"),V(r.$$.fragment),a=u(),V(c.$$.fragment),this.h()},l:function(t){M('[data-svelte="svelte-1q3846k"]',document.head).forEach(v),n=p(t),e=l(t,"DIV",{class:!0});var o=h(e);C(r.$$.fragment,o),a=p(o),C(c.$$.fragment,o),o.forEach(v),this.h()},h:function(){document.title="Aurora data",m(e,"class","homescreen svelte-pf4p6y")},m:function(t,s){g(t,n,s),g(t,e,s),N(r,e,null),y(e,a),N(c,e,null),o=!0},p:D,i:function(t){o||(R(r.$$.fragment,t),R(c.$$.fragment,t),o=!0)},o:function(t){x(r.$$.fragment,t),x(c.$$.fragment,t),o=!1},d:function(t){t&&v(n),t&&v(e),T(r),T(c)}}}var Y=function(n){t(i,s);var e=W(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,null,X,c,{}),n}return i}();export default Y; diff --git a/client/legacy/index.285229ba.js b/client/legacy/index.285229ba.js deleted file mode 100644 index f62eef8..0000000 --- a/client/legacy/index.285229ba.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,a as n,b as e,c as r,i as a,s as c,d as o,S as s,e as i,f as u,t as f,g as l,h,j as v,k as p,l as d,m,n as g,o as E,p as y,q as w,r as D,u as P,v as $,w as j,x,y as b,z as I,A as z,B as R,C as V,D as C,E as k,F as N}from"./client.11fb8289.js";function T(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function M(t){var n,e,r,a,c,o,s,P,$,j,x,b,I,z,R,V,C,k,N,T,M,_,A,H,J,K,B,O,F,q,Z,G,L,Q,U,W,X,Y,tt,nt,et,rt,at,ct,ot,st,it,ut,ft;return{c:function(){n=i("div"),e=i("div"),r=i("div"),a=i("i"),c=u(),o=i("h1"),s=f(S),P=u(),$=i("div"),j=i("p"),x=f(t[0]),b=u(),I=i("div"),z=i("h2"),R=f("KP "),V=f(t[1]),C=u(),k=i("p"),N=i("span"),T=f("↑ KP "),M=f(t[3]),_=u(),A=i("span"),H=f("↓ KP "),J=f(t[2]),K=u(),B=i("div"),O=i("div"),F=i("p"),q=f("BZ"),Z=u(),G=i("p"),L=f(t[4]),Q=u(),U=i("div"),W=i("p"),X=f("Temp"),Y=u(),tt=i("p"),nt=f(t[6]),et=f("°C"),rt=u(),at=i("div"),ct=i("p"),ot=f("Clouds"),st=u(),it=i("p"),ut=f(t[5]),ft=f("%"),this.h()},l:function(i){n=l(i,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{class:!0});var f=h(e);r=l(f,"DIV",{class:!0});var m=h(r);a=l(m,"I",{class:!0}),h(a).forEach(v),c=p(m),o=l(m,"H1",{class:!0});var g=h(o);s=d(g,S),g.forEach(v),m.forEach(v),P=p(f),$=l(f,"DIV",{class:!0});var E=h($);j=l(E,"P",{});var y=h(j);x=d(y,t[0]),y.forEach(v),E.forEach(v),b=p(f),I=l(f,"DIV",{class:!0});var w=h(I);z=l(w,"H2",{class:!0});var D=h(z);R=d(D,"KP "),V=d(D,t[1]),D.forEach(v),C=p(w),k=l(w,"P",{});var lt=h(k);N=l(lt,"SPAN",{className:!0});var ht=h(N);T=d(ht,"↑ KP "),M=d(ht,t[3]),ht.forEach(v),_=p(lt),A=l(lt,"SPAN",{className:!0});var vt=h(A);H=d(vt,"↓ KP "),J=d(vt,t[2]),vt.forEach(v),lt.forEach(v),w.forEach(v),K=p(f),B=l(f,"DIV",{class:!0});var pt=h(B);O=l(pt,"DIV",{});var dt=h(O);F=l(dt,"P",{class:!0});var mt=h(F);q=d(mt,"BZ"),mt.forEach(v),Z=p(dt),G=l(dt,"P",{class:!0});var gt=h(G);L=d(gt,t[4]),gt.forEach(v),dt.forEach(v),Q=p(pt),U=l(pt,"DIV",{});var Et=h(U);W=l(Et,"P",{class:!0});var yt=h(W);X=d(yt,"Temp"),yt.forEach(v),Y=p(Et),tt=l(Et,"P",{class:!0});var wt=h(tt);nt=d(wt,t[6]),et=d(wt,"°C"),wt.forEach(v),Et.forEach(v),rt=p(pt),at=l(pt,"DIV",{});var Dt=h(at);ct=l(Dt,"P",{class:!0});var Pt=h(ct);ot=d(Pt,"Clouds"),Pt.forEach(v),st=p(Dt),it=l(Dt,"P",{class:!0});var $t=h(it);ut=d($t,t[5]),ft=d($t,"%"),$t.forEach(v),Dt.forEach(v),pt.forEach(v),f.forEach(v),u.forEach(v),this.h()},h:function(){m(a,"class","symbol fas fa-map-marker-alt svelte-mz1ju5"),m(o,"class","svelte-mz1ju5"),m(r,"class","weatherCurrent-data-location svelte-mz1ju5"),m($,"class","weatherCurrent-data-date"),m(z,"class","svelte-mz1ju5"),m(N,"classname","pr-2"),m(A,"classname","pl-2"),m(I,"class","weatherCurrent-data-kp svelte-mz1ju5"),m(F,"class","svelte-mz1ju5"),m(G,"class","svelte-mz1ju5"),m(W,"class","svelte-mz1ju5"),m(tt,"class","svelte-mz1ju5"),m(ct,"class","svelte-mz1ju5"),m(it,"class","svelte-mz1ju5"),m(B,"class","current-details svelte-mz1ju5"),m(e,"class","weatherCurrent-data svelte-mz1ju5"),m(n,"class","weatherCurrent-wrapper svelte-mz1ju5")},m:function(t,i){g(t,n,i),E(n,e),E(e,r),E(r,a),E(r,c),E(r,o),E(o,s),E(e,P),E(e,$),E($,j),E(j,x),E(e,b),E(e,I),E(I,z),E(z,R),E(z,V),E(I,C),E(I,k),E(k,N),E(N,T),E(N,M),E(k,_),E(k,A),E(A,H),E(A,J),E(e,K),E(e,B),E(B,O),E(O,F),E(F,q),E(O,Z),E(O,G),E(G,L),E(B,Q),E(B,U),E(U,W),E(W,X),E(U,Y),E(U,tt),E(tt,nt),E(tt,et),E(B,rt),E(B,at),E(at,ct),E(ct,ot),E(at,st),E(at,it),E(it,ut),E(it,ft)},p:function(t,n){var e=y(n,1)[0];1&e&&w(x,t[0]),2&e&&w(V,t[1]),8&e&&w(M,t[3]),4&e&&w(J,t[2]),16&e&&w(L,t[4]),64&e&&w(nt,t[6]),32&e&&w(ut,t[5])},i:D,o:D,d:function(t){t&&v(n)}}}var S="The earth";function _(t,n,e){var r,a,c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{i(r.next(t))}catch(t){c(t)}}function s(t){try{i(r.throw(t))}catch(t){c(t)}}function i(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}i((r=r.apply(t,n||[])).next())}))},o=["January","February","March","April","May","June","July","August","September","October","November","December"],s="-",i="-",u="-",f="-",l="-",h="-",v="-";function p(t){r=t.coords.longitude,a=t.coords.latitude,function(t,n){c(this,void 0,void 0,$.mark((function r(){var a;return $.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 2:a=r.sent,e(5,h=a.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(6,v=a.properties.timeseries[0].data.instant.details.air_temperature);case 5:case"end":return r.stop()}}),r)})))}(r,a)}function d(t){m()}function m(){r=28.283333,a=-15.416667}return P((function(){!function(){c(this,void 0,void 0,$.mark((function t(){var n,r,a,c,h;return $.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((function(t){return t.json()}));case 3:return t.t1=l=t.sent.Bz,(0,t.t0)(4,t.t1),t.next=7,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 7:(n=t.sent).shift(),r=new Date,a=new Date(0,0,0),c=1e3,h=0,n.forEach((function(t,n){t[1]>h&&(h=t[1]),t[1]<c&&(c=t[1]);var o=new Date(t[0]);Math.abs(o.getTime()-r.getTime())<Math.abs(a.getTime()-r.getTime())&&(a=o,e(1,i=t[1]))})),e(2,u=c.toString()),e(3,f=h.toString()),e(0,s=a.getDay()+". "+o[a.getMonth()]+" "+a.getHours()+":"+a.getMinutes());case 17:case"end":return t.stop()}}),t)})))}(),navigator.geolocation?navigator.geolocation.getCurrentPosition(p,d):m()})),[s,i,u,f,l,h,v]}var A=function(n){t(i,s);var e=T(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,_,M,c,{}),n}return i}();function H(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function J(t){var n,e,r,a,c,o,s,w,P,$,j,x,b=t[5]&&function(t){var n,e,r,a,c,o,s,y,w,P,$,j;return{c:function(){n=i("div"),e=i("p"),r=i("i"),a=u(),c=f(t[3]),o=f("°C"),s=u(),y=i("p"),w=i("i"),P=u(),$=f(t[4]),j=f("%"),this.h()},l:function(i){n=l(i,"DIV",{});var u=h(n);e=l(u,"P",{});var f=h(e);r=l(f,"I",{class:!0}),h(r).forEach(v),a=p(f),c=d(f,t[3]),o=d(f,"°C"),f.forEach(v),s=p(u),y=l(u,"P",{});var m=h(y);w=l(m,"I",{class:!0}),h(w).forEach(v),P=p(m),$=d(m,t[4]),j=d(m,"%"),m.forEach(v),u.forEach(v),this.h()},h:function(){m(r,"class","fas fa-thermometer-half"),m(w,"class","fas fa-cloud")},m:function(t,i){g(t,n,i),E(n,e),E(e,r),E(e,a),E(e,c),E(e,o),E(n,s),E(n,y),E(y,w),E(y,P),E(y,$),E(y,j)},p:D,d:function(t){t&&v(n)}}}(t);return{c:function(){n=i("div"),e=i("div"),r=i("h3"),a=f(t[2]),c=u(),o=i("p"),s=f(t[1]),w=u(),P=i("div"),$=i("h2"),j=f(t[0]),x=u(),b&&b.c(),this.h()},l:function(i){n=l(i,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{});var f=h(e);r=l(f,"H3",{class:!0});var m=h(r);a=d(m,t[2]),m.forEach(v),c=p(f),o=l(f,"P",{});var g=h(o);s=d(g,t[1]),g.forEach(v),f.forEach(v),w=p(u),P=l(u,"DIV",{class:!0});var E=h(P);$=l(E,"H2",{class:!0});var y=h($);j=d(y,t[0]),y.forEach(v),x=p(E),b&&b.l(E),E.forEach(v),u.forEach(v),this.h()},h:function(){m(r,"class","svelte-u548p6"),m($,"class","svelte-u548p6"),m(P,"class","data svelte-u548p6"),m(n,"class","prediction-details svelte-u548p6")},m:function(t,i){g(t,n,i),E(n,e),E(e,r),E(r,a),E(e,c),E(e,o),E(o,s),E(n,w),E(n,P),E(P,$),E($,j),E(P,x),b&&b.m(P,null)},p:function(t,n){var e=y(n,1)[0];t[5]&&b.p(t,e)},i:D,o:D,d:function(t){t&&v(n),b&&b.d()}}}function K(t,n,e){var r=n.prediction,a=r.kp,c=r.time.split(" "),o=Number(c[0].split("-")[2])+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][Number(c[0].split("-")[1])],s=c[1].substring(0,5),i=r.temp,u=r.clouds,f=r.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,r=t.prediction)},[a,o,s,i,u,f,r]}var B=function(n){t(i,s);var e=H(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,K,J,c,{prediction:6}),n}return i}();function O(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function F(t,n,e){var r=t.slice();return r[13]=n[e],r[15]=e,r}function q(t){var n,e,r,a,c;return{c:function(){n=i("div"),e=i("i"),r=u(),a=i("p"),c=f("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var o=h(n);e=l(o,"I",{class:!0}),h(e).forEach(v),r=p(o),a=l(o,"P",{});var s=h(a);c=d(s,"No prediction data"),s.forEach(v),o.forEach(v),this.h()},h:function(){m(e,"class","fas fa-7x fa-exclamation-triangle"),m(n,"class","no-data svelte-l8czgl")},m:function(t,o){g(t,n,o),E(n,e),E(n,r),E(n,a),E(a,c)},p:D,i:D,o:D,d:function(t){t&&v(n)}}}function Z(t){for(var n,e,r,a,c,o,s=t[0],y=[],w=0;w<s.length;w+=1)y[w]=G(F(t,s,w));var D=function(t){return x(y[t],1,1,(function(){y[t]=null}))};return{c:function(){n=i("div"),e=i("h2"),r=f("Predicted"),a=u(),c=i("div");for(var t=0;t<y.length;t+=1)y[t].c();this.h()},l:function(t){n=l(t,"DIV",{className:!0});var o=h(n);e=l(o,"H2",{class:!0});var s=h(e);r=d(s,"Predicted"),s.forEach(v),o.forEach(v),a=p(t),c=l(t,"DIV",{class:!0});for(var i=h(c),u=0;u<y.length;u+=1)y[u].l(i);i.forEach(v),this.h()},h:function(){m(e,"class","svelte-l8czgl"),m(n,"classname","flex flex-row justify-between items-top"),m(c,"class","prediction-table svelte-l8czgl")},m:function(t,s){g(t,n,s),E(n,e),E(e,r),g(t,a,s),g(t,c,s);for(var i=0;i<y.length;i+=1)y[i].m(c,null);o=!0},p:function(t,n){if(1&n){var e;for(s=t[0],e=0;e<s.length;e+=1){var r=F(t,s,e);y[e]?(y[e].p(r,n),I(y[e],1)):(y[e]=G(r),y[e].c(),I(y[e],1),y[e].m(c,null))}for(j(),e=s.length;e<y.length;e+=1)D(e);b()}},i:function(t){if(!o){for(var n=0;n<s.length;n+=1)I(y[n]);o=!0}},o:function(t){y=y.filter(Boolean);for(var n=0;n<y.length;n+=1)x(y[n]);o=!1},d:function(t){t&&v(n),t&&v(a),t&&v(c),k(y,t)}}}function G(t){var n,e;return n=new B({props:{prediction:t[13]}}),{c:function(){z(n.$$.fragment)},l:function(t){R(n.$$.fragment,t)},m:function(t,r){V(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.prediction=t[13]),n.$set(r)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){x(n.$$.fragment,t),e=!1},d:function(t){C(n,t)}}}function L(t){var n,e,r,a,c=[Z,q],o=[];function s(t,n){return t[0]?0:1}return e=s(t),r=o[e]=c[e](t),{c:function(){n=i("div"),r.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=h(n);r.l(e),e.forEach(v),this.h()},h:function(){m(n,"class","predicted-weather svelte-l8czgl")},m:function(t,r){g(t,n,r),o[e].m(n,null),a=!0},p:function(t,a){var i=y(a,1)[0],u=e;(e=s(t))===u?o[e].p(t,i):(j(),x(o[u],1,1,(function(){o[u]=null})),b(),(r=o[e])||(r=o[e]=c[e](t)).c(),I(r,1),r.m(n,null))},i:function(t){a||(I(r),a=!0)},o:function(t){x(r),a=!1},d:function(t){t&&v(n),o[e].d()}}}function Q(t,n,e){var r,a,c,o=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{i(r.next(t))}catch(t){c(t)}}function s(t){try{i(r.throw(t))}catch(t){c(t)}}function i(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}i((r=r.apply(t,n||[])).next())}))},s=!1;function i(t,n){return o(this,void 0,void 0,$.mark((function r(){var a,o,i;return $.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!s){r.next=4;break}return r.next=3,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 3:a=r.sent;case 4:return r.next=6,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 6:(o=r.sent).shift(),i=[],o.forEach((function(t,n){if("observed"!=t[2]){var e,r,c=new Date(t[0]),o=new Date(0,0,0);s&&a.properties.timeseries.forEach((function(t,n){var a=new Date(t.time);Math.abs(a.getTime()-c.getTime())<Math.abs(o.getTime()-c.getTime())&&(o=a,e=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),i.push({time:t[0],kp:t[1],temp:e,clouds:r,hasNOMETData:s})}})),e(0,c=i);case 11:case"end":return r.stop()}}),r)})))}function u(t){r=t.coords.longitude,a=t.coords.latitude,i(r,a)}function f(t){l()}function l(){r=28.283333,a=-15.416667,i(0,0)}return P((function(){navigator.geolocation?(s=!0,navigator.geolocation.getCurrentPosition(u,f)):(s=!1,l())})),[c]}var U=function(n){t(i,s);var e=O(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,Q,L,c,{}),n}return i}();function W(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function X(t){var n,e,r,a,c,o;return r=new A({}),c=new U({}),{c:function(){n=u(),e=i("div"),z(r.$$.fragment),a=u(),z(c.$$.fragment),this.h()},l:function(t){N('[data-svelte="svelte-1q3846k"]',document.head).forEach(v),n=p(t),e=l(t,"DIV",{class:!0});var o=h(e);R(r.$$.fragment,o),a=p(o),R(c.$$.fragment,o),o.forEach(v),this.h()},h:function(){document.title="Aurora data",m(e,"class","homescreen svelte-19pefkm")},m:function(t,s){g(t,n,s),g(t,e,s),V(r,e,null),E(e,a),V(c,e,null),o=!0},p:D,i:function(t){o||(I(r.$$.fragment,t),I(c.$$.fragment,t),o=!0)},o:function(t){x(r.$$.fragment,t),x(c.$$.fragment,t),o=!1},d:function(t){t&&v(n),t&&v(e),C(r),C(c)}}}var Y=function(n){t(i,s);var e=W(i);function i(t){var n;return r(this,i),n=e.call(this),a(o(n),t,null,X,c,{}),n}return i}();export default Y; @@ -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=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.9199399a.js"}catch(e){main="/Aurora-data/client/legacy/client.11fb8289.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> <title>Aurora data</title> <link href=/Aurora-data/client/client.9199399a.js rel=preload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> <div class="homescreen svelte-19pefkm"><div class="svelte-mz1ju5 weatherCurrent-wrapper"><div class="svelte-mz1ju5 weatherCurrent-data"><div class="svelte-mz1ju5 weatherCurrent-data-location"><i class="svelte-mz1ju5 fa-map-marker-alt fas symbol"></i> <h1 class=svelte-mz1ju5>The earth</h1></div> <div class=weatherCurrent-data-date><p>-</div> <div class="svelte-mz1ju5 weatherCurrent-data-kp"><h2 class=svelte-mz1ju5>KP -</h2> <p><span classname=pr-2>↑ KP -</span> <span classname=pl-2>↓ KP -</span></div> <div class="svelte-mz1ju5 current-details"><div><p class=svelte-mz1ju5>BZ</p> <p class=svelte-mz1ju5>-</div> <div><p class=svelte-mz1ju5>Temp</p> <p class=svelte-mz1ju5>-°C</div> <div><p class=svelte-mz1ju5>Clouds</p> <p class=svelte-mz1ju5>-%</div></div></div></div> <div class="svelte-l8czgl predicted-weather"><div class="svelte-l8czgl no-data"><i class="fas fa-7x fa-exclamation-triangle"></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=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.2977978b.js"}catch(e){main="/Aurora-data/client/legacy/client.4e5e1d47.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> <title>Aurora data</title> <link href=/Aurora-data/client/client.2977978b.js rel=preload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.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-13muhi2 weatherCurrent-wrapper"><div class="svelte-13muhi2 weatherCurrent-data"><div class="svelte-13muhi2 weatherCurrent-data-location"><i class="svelte-13muhi2 fa-map-marker-alt fas symbol"></i> <h1 class=svelte-13muhi2>The earth</h1></div> <div class=weatherCurrent-data-date><p>-</div> <div class="svelte-13muhi2 weatherCurrent-data-kp"><h2 class=svelte-13muhi2>KP -</h2> <p><span classname=pr-2>↑ KP -</span> <span classname=pl-2>↓ KP -</span></div> <div class="svelte-13muhi2 current-details"><div><p class=svelte-13muhi2>BZ</p> <p class=svelte-13muhi2>-</div> <div><p class=svelte-13muhi2>Temp</p> <p class=svelte-13muhi2>-°C</div> <div><p class=svelte-13muhi2>Clouds</p> <p class=svelte-13muhi2>-%</div></div></div></div> <div class="svelte-bhvysr predicted-weather"><div class="svelte-bhvysr no-data"><i class="fas fa-7x fa-exclamation-triangle"></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 b8d38c2..503dd27 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=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.9199399a.js"}catch(e){main="/Aurora-data/client/legacy/client.11fb8289.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=/Aurora-data/client/client.9199399a.js rel=preload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.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=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.2977978b.js"}catch(e){main="/Aurora-data/client/legacy/client.4e5e1d47.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=/Aurora-data/client/client.2977978b.js rel=preload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.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 8b66b68..8336ba1 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1602674112639,t="cache"+e,s=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),a=["/client/inject_styles.5607aec6.js","/client/index.bdacbdbd.js","/client/client.9199399a.js"].map((e=>"/Aurora-data"+e)).concat(s),n=new Set(a);self.addEventListener("install",(e=>{e.waitUntil(caches.open(t).then((e=>e.addAll(a))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const s of e)s!==t&&await caches.delete(s);self.clients.claim()})))})),self.addEventListener("fetch",(t=>{if("GET"!==t.request.method||t.request.headers.has("range"))return;const s=new URL(t.request.url);s.protocol.startsWith("http")&&(s.hostname===self.location.hostname&&s.port!==self.location.port||(s.host===self.location.host&&n.has(s.pathname)?t.respondWith(caches.match(t.request)):"only-if-cached"!==t.request.cache&&t.respondWith(caches.open("offline"+e).then((async e=>{try{const s=await fetch(t.request);return e.put(t.request,s.clone()),s}catch(s){const a=await e.match(t.request);if(a)return a;throw s}})))))}))}(); +!function(){"use strict";const e=1602674277086,t="cache"+e,s=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/inject_styles.5607aec6.js","/client/index.d2745b3f.js","/client/client.2977978b.js"].map((e=>"/Aurora-data"+e)).concat(s),a=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(t).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const s of e)s!==t&&await caches.delete(s);self.clients.claim()})))})),self.addEventListener("fetch",(t=>{if("GET"!==t.request.method||t.request.headers.has("range"))return;const s=new URL(t.request.url);s.protocol.startsWith("http")&&(s.hostname===self.location.hostname&&s.port!==self.location.port||(s.host===self.location.host&&a.has(s.pathname)?t.respondWith(caches.match(t.request)):"only-if-cached"!==t.request.cache&&t.respondWith(caches.open("offline"+e).then((async e=>{try{const s=await fetch(t.request);return e.put(t.request,s.clone()),s}catch(s){const n=await e.match(t.request);if(n)return n;throw s}})))))}))}(); |